From d7540c3305376e016ecd55e8026564eaae5d899f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Wed, 22 Jun 2022 17:04:18 +0200 Subject: [PATCH 01/15] Adding MFA --- server/src/uds/REST/__init__.py | 5 +- server/src/uds/REST/methods/authenticators.py | 2 +- server/src/uds/REST/methods/mfas.py | 92 +++++++++++++++ server/src/uds/core/auths/auth.py | 30 +++-- server/src/uds/core/auths/authenticator.py | 10 ++ server/src/uds/core/mfas/__init__.py | 44 +++++++ server/src/uds/core/mfas/mfa.png | Bin 0 -> 1168 bytes server/src/uds/core/mfas/mfa.py | 92 +++++++++++++++ server/src/uds/core/mfas/mfafactory.py | 61 ++++++++++ server/src/uds/core/module.py | 2 +- server/src/uds/core/ui/user_interface.py | 1 + .../src/uds/core/util/middleware/request.py | 7 +- server/src/uds/core/util/request.py | 4 +- server/src/uds/models/__init__.py | 3 + server/src/uds/models/authenticator.py | 4 + server/src/uds/models/mfa.py | 107 ++++++++++++++++++ server/src/uds/web/util/configjs.py | 2 +- server/src/uds/web/views/auth.py | 3 - server/src/uds/web/views/modern.py | 5 + 19 files changed, 451 insertions(+), 23 deletions(-) create mode 100644 server/src/uds/REST/methods/mfas.py create mode 100644 server/src/uds/core/mfas/__init__.py create mode 100755 server/src/uds/core/mfas/mfa.png create mode 100644 server/src/uds/core/mfas/mfa.py create mode 100644 server/src/uds/core/mfas/mfafactory.py create mode 100644 server/src/uds/models/mfa.py diff --git a/server/src/uds/REST/__init__.py b/server/src/uds/REST/__init__.py index d2b0c1bfc..818d46e81 100644 --- a/server/src/uds/REST/__init__.py +++ b/server/src/uds/REST/__init__.py @@ -82,9 +82,6 @@ class Dispatcher(View): """ Processes the REST request and routes it wherever it needs to be routed """ - # Remove session from request, so response middleware do nothing with this - del request.session - # Now we extract method and possible variables from path path: typing.List[str] = kwargs['arguments'].split('/') del kwargs['arguments'] @@ -240,7 +237,7 @@ class Dispatcher(View): # Dinamycally import children of this package. package = 'methods' - pkgpath = os.path.join(os.path.dirname(sys.modules[__name__].__file__), package) + pkgpath = os.path.join(os.path.dirname(typing.cast(str, sys.modules[__name__].__file__)), package) for _, name, _ in pkgutil.iter_modules([pkgpath]): # __import__(__name__ + '.' + package + '.' + name, globals(), locals(), [], 0) importlib.import_module( diff --git a/server/src/uds/REST/methods/authenticators.py b/server/src/uds/REST/methods/authenticators.py index dc91ed091..2c8cd299a 100644 --- a/server/src/uds/REST/methods/authenticators.py +++ b/server/src/uds/REST/methods/authenticators.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # -# Copyright (c) 2014-2019 Virtual Cable S.L. +# Copyright (c) 2014-2022 Virtual Cable S.L.U. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, diff --git a/server/src/uds/REST/methods/mfas.py b/server/src/uds/REST/methods/mfas.py new file mode 100644 index 000000000..e6ee92a71 --- /dev/null +++ b/server/src/uds/REST/methods/mfas.py @@ -0,0 +1,92 @@ +# -*- coding: utf-8 -*- + +# +# Copyright (c) 2014-2021 Virtual Cable S.L.U. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, +# are permitted provided that the following conditions are met: +# +# * Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# * Neither the name of Virtual Cable S.L.U. nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +''' +@itemor: Adolfo Gómez, dkmaster at dkmon dot com +''' +import logging +import typing + +from django.utils.translation import gettext_lazy as _, gettext +from uds import models +from uds.core import mfas +from uds.core.ui import gui +from uds.core.util import permissions + +from uds.REST.model import ModelHandler + + +logger = logging.getLogger(__name__) + +# Enclosed methods under /item path + + +class Notifiers(ModelHandler): + path = 'mfa' + model = models.MFA + save_fields = [ + 'name', + 'comments', + 'tags', + ] + + table_title = _('Notifiers') + table_fields = [ + {'name': {'title': _('Name'), 'visible': True, 'type': 'iconType'}}, + {'type_name': {'title': _('Type')}}, + {'comments': {'title': _('Comments')}}, + {'tags': {'title': _('tags'), 'visible': False}}, + ] + + def enum_types(self) -> typing.Iterable[typing.Type[mfas.MFA]]: + return mfas.factory().providers().values() + + def getGui(self, type_: str) -> typing.List[typing.Any]: + mfa = mfas.factory().lookup(type_) + + if not mfa: + raise self.invalidItemException() + + localGui = self.addDefaultFields( + mfa.guiDescription(), ['name', 'comments', 'tags'] + ) + + return localGui + + def item_as_dict(self, item: models.MFA) -> typing.Dict[str, typing.Any]: + type_ = item.getType() + return { + 'id': item.uuid, + 'name': item.name, + 'tags': [tag.tag for tag in item.tags.all()], + 'comments': item.comments, + 'type': type_.type(), + 'type_name': type_.name(), + 'permission': permissions.getEffectivePermission(self._user, item), + } diff --git a/server/src/uds/core/auths/auth.py b/server/src/uds/core/auths/auth.py index c500b382b..3b236b93f 100644 --- a/server/src/uds/core/auths/auth.py +++ b/server/src/uds/core/auths/auth.py @@ -69,6 +69,7 @@ authLogger = logging.getLogger('authLog') USER_KEY = 'uk' PASS_KEY = 'pk' EXPIRY_KEY = 'ek' +AUTHORIZED_KEY = 'ak' ROOT_ID = -20091204 # Any negative number will do the trick UDS_COOKIE_LENGTH = 48 @@ -123,7 +124,9 @@ def getRootUser() -> User: # Decorator to make easier protect pages that needs to be logged in def webLoginRequired( admin: typing.Union[bool, str] = False -) -> typing.Callable[[typing.Callable[..., RT]], typing.Callable[..., RT]]: +) -> typing.Callable[ + [typing.Callable[..., HttpResponse]], typing.Callable[..., HttpResponse] +]: """ Decorator to set protection to access page Look for samples at uds.core.web.views @@ -131,23 +134,24 @@ def webLoginRequired( if admin == 'admin', needs admin """ - def decorator(view_func: typing.Callable[..., RT]) -> typing.Callable[..., RT]: - def _wrapped_view(request: 'ExtendedHttpRequest', *args, **kwargs) -> RT: + def decorator( + view_func: typing.Callable[..., HttpResponse] + ) -> typing.Callable[..., HttpResponse]: + def _wrapped_view( + request: 'ExtendedHttpRequest', *args, **kwargs + ) -> HttpResponse: """ Wrapped function for decorator """ - if not request.user: - # url = request.build_absolute_uri(GlobalConfig.LOGIN_URL.get()) - # if GlobalConfig.REDIRECT_TO_HTTPS.getBool() is True: - # url = url.replace('http://', 'https://') - # logger.debug('No user found, redirecting to %s', url) - return HttpResponseRedirect(reverse('page.login')) # type: ignore + # If no user or user authorization is not completed... + if not request.user or not request.authorized: + return HttpResponseRedirect(reverse('page.login')) if admin is True or admin == 'admin': # bool or string "admin" if request.user.isStaff() is False or ( admin == 'admin' and not request.user.is_admin ): - return HttpResponseForbidden(_('Forbidden')) # type: ignore + return HttpResponseForbidden(_('Forbidden')) return view_func(request, *args, **kwargs) @@ -437,6 +441,8 @@ def webLogout( # Try to delete session request.session.flush() + # set authorized to False + request.authorized = False response = HttpResponseRedirect(request.build_absolute_uri(exit_url)) if authenticator: @@ -483,7 +489,9 @@ def authLogLogin( log.doLog( user, level, - '{} from {} where OS is {}'.format(logStr, request.ip, request.os['OS'].value[0]), + '{} from {} where OS is {}'.format( + logStr, request.ip, request.os['OS'].value[0] + ), log.WEB, ) except Exception: diff --git a/server/src/uds/core/auths/authenticator.py b/server/src/uds/core/auths/authenticator.py index 032008294..04c978b69 100644 --- a/server/src/uds/core/auths/authenticator.py +++ b/server/src/uds/core/auths/authenticator.py @@ -290,6 +290,16 @@ class Authenticator(Module): # pylint: disable=too-many-public-methods """ return [] + def mfa_identifier(self) -> str: + """ + If this method is provided by an authenticator, the user will be allowed to enter a MFA code + You must return the value used by a MFA provider to identify the user (i.e. email, phone number, etc) + If not provided, or the return value is '', the user will be allowed to access UDS without MFA + + Note: Field capture will be responsible of provider. Put it on MFA tab of user form. + """ + return '' + def authenticate( self, username: str, credentials: str, groupsManager: 'GroupsManager' ) -> bool: diff --git a/server/src/uds/core/mfas/__init__.py b/server/src/uds/core/mfas/__init__.py new file mode 100644 index 000000000..d8dbee789 --- /dev/null +++ b/server/src/uds/core/mfas/__init__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- + +# +# Copyright (c) 2022 Virtual Cable S.L.U. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, +# are permitted provided that the following conditions are met: +# +# * Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# * Neither the name of Virtual Cable S.L. nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +""" +UDS os managers related interfaces and classes + +.. moduleauthor:: Adolfo Gómez, dkmaster at dkmon dot com +""" +from .mfa import MFA + + +def factory(): + """ + Returns factory for register/access to authenticators + """ + from .mfafactory import MFAsFactory + + return MFAsFactory.factory() diff --git a/server/src/uds/core/mfas/mfa.png b/server/src/uds/core/mfas/mfa.png new file mode 100755 index 0000000000000000000000000000000000000000..ece1ae0fa4577b5eb294a0be7e7c350b7f3daa54 GIT binary patch literal 1168 zcmV;B1aJF^P)Be|P7vIIZIt{6*}fsTD(DVCaHC?SfR080f%)1Y>6+Wno5QL5e67 z11l({LMRIipa?}&5LHcuA|Zk+mxLH&C#~z)O>(h)cMP_Z_}iiW%H{sko!+zF`#<-) z=Xvh#H5f8v$dDmJhR&*leoQ(yzYvsEz1O=OgwUIgM8V zrpCvxTFh82W~L?r0BESM_4<5z9ssTBZ6}Dj4?tOwjTi^HJaR5iWFywMDq!l@#HpPu z%d3C%y$tq^0Qcw!k|ZKYB5v2n*(2b^&_u=lQfl>V5ilsKB;aOtS`vjDXj}noU70ce zL-Ri2>nB>5yvo3mBB?XH<5;UD;AVDO5`?>GTlctAt~Yt-(+5>A)s{S?ZYPU z+C)s}&92Jm##d>>^Nz+*kMd%0c?7%Csw z4edTklZZq~UlehgRhI77X8m+tAiBJQFC1dnr8m|CrPpTDR-0)|~qLa$sJxa4Sb zf;Eq+S@lc>z#yQ!F<0u*-+SwIT^s)LyF~zI3<6qIfgy`YS4Q`91tSOiuRb8M`R`Lr z5Dxk)_OD(4psn96eDRr41qQYglyiBan{m>aEC5c&IVQ*a*lpHf}`T`j~;m_M$+6I=WhOX!P$cFi9T0#KKPQ&$B}YW}p5(2@XAJo;30 z;W;nsErKx_@EsaI{@YIHfKHLrG63T~52{-HVm;AD0IH8a^#p{2{)%V%a2utr*)c{Z zsE79fgQP||rQ>~oLBN3OX>*D}z~Ppr$q0gNPd>nIvo?H>ewwu_9~7;k?bi@cP?cW* zmRHxrUVT5CA;DIUOWQ6?g({ z0Wn}5NH;2jX&_lLEmK@hriTFRQCy;#JZ`=o0cCkgGz`(Ff0lJn8n9n7zEwTg%$$Yd i`dU2@AOpF2gZ}|D25ekNa+Bu(0000 'MFAsFactory': + return MFAsFactory() + + def providers(self) -> typing.Mapping[str, typing.Type['MFA']]: + return self._mfas + + def insert(self, type_: typing.Type['MFA']) -> None: + logger.debug('Adding Multi Factor Auth %s as %s', type_.type(), type_) + typeName = type_.type().lower() + self._mfas[typeName] = type_ + + def lookup(self, typeName: str) -> typing.Optional[typing.Type['MFA']]: + return self._mfas.get(typeName.lower(), None) diff --git a/server/src/uds/core/module.py b/server/src/uds/core/module.py index 688ecbdb4..f46da07c4 100644 --- a/server/src/uds/core/module.py +++ b/server/src/uds/core/module.py @@ -181,7 +181,7 @@ class Module(UserInterface, Environmentable, Serializable): 'iconFile' class attribute """ file_ = open( - os.path.dirname(sys.modules[cls.__module__].__file__) + '/' + cls.iconFile, + os.path.dirname(typing.cast(str, sys.modules[cls.__module__].__file__)) + '/' + cls.iconFile, 'rb', ) data = file_.read() diff --git a/server/src/uds/core/ui/user_interface.py b/server/src/uds/core/ui/user_interface.py index 0f8e01bd4..4e9e93c08 100644 --- a/server/src/uds/core/ui/user_interface.py +++ b/server/src/uds/core/ui/user_interface.py @@ -101,6 +101,7 @@ class gui: CREDENTIALS_TAB: typing.ClassVar[str] = ugettext_noop('Credentials') TUNNEL_TAB: typing.ClassVar[str] = ugettext_noop('Tunnel') DISPLAY_TAB: typing.ClassVar[str] = ugettext_noop('Display') + MFA_TAB: typing.ClassVar[str] = ugettext_noop('MFA') # : Static Callbacks simple registry callbacks: typing.Dict[ diff --git a/server/src/uds/core/util/middleware/request.py b/server/src/uds/core/util/middleware/request.py index 6276f9491..b1e9fd911 100644 --- a/server/src/uds/core/util/middleware/request.py +++ b/server/src/uds/core/util/middleware/request.py @@ -37,7 +37,7 @@ from django.utils import timezone from uds.core.util import os_detector as OsDetector from uds.core.util.config import GlobalConfig -from uds.core.auths.auth import EXPIRY_KEY, ROOT_ID, USER_KEY, getRootUser, webLogout +from uds.core.auths.auth import AUTHORIZED_KEY, EXPIRY_KEY, ROOT_ID, USER_KEY, getRootUser, webLogout from uds.core.util.request import ( setRequest, delCurrentRequest, @@ -70,6 +70,7 @@ class GlobalRequestMiddleware: def __call__(self, request: ExtendedHttpRequest): # Add IP to request GlobalRequestMiddleware.fillIps(request) + request.authorized = request.session.get(AUTHORIZED_KEY, False) # Store request on cache setRequest(request=request) @@ -103,6 +104,10 @@ class GlobalRequestMiddleware: response = self._get_response(request) + # Update authorized on session + if hasattr(request, 'session'): + request.session[AUTHORIZED_KEY] = request.authorized + return self._process_response(request, response) @staticmethod diff --git a/server/src/uds/core/util/request.py b/server/src/uds/core/util/request.py index a175e4957..95b9d115d 100644 --- a/server/src/uds/core/util/request.py +++ b/server/src/uds/core/util/request.py @@ -49,7 +49,9 @@ class ExtendedHttpRequest(HttpRequest): ip: str ip_proxy: str os: DictAsObj - user: typing.Optional[User] # type: ignore + user: typing.Optional[User] + authorized: bool + class ExtendedHttpRequestWithUser(ExtendedHttpRequest): diff --git a/server/src/uds/models/__init__.py b/server/src/uds/models/__init__.py index f8f3251d7..47fe34b04 100644 --- a/server/src/uds/models/__init__.py +++ b/server/src/uds/models/__init__.py @@ -114,4 +114,7 @@ from .dbfile import DBFile from .actor_token import ActorToken from .tunnel_token import TunnelToken +# Multi factor authentication +from .mfa import MFA + logger = logging.getLogger(__name__) diff --git a/server/src/uds/models/authenticator.py b/server/src/uds/models/authenticator.py index 88f486e1b..b9dfa5fcf 100644 --- a/server/src/uds/models/authenticator.py +++ b/server/src/uds/models/authenticator.py @@ -42,6 +42,7 @@ from uds.core.util.state import State from .managed_object_model import ManagedObjectModel from .tag import TaggingMixin +from .mfa import MFA from .util import NEVER # Not imported at runtime, just for type checking @@ -67,6 +68,9 @@ class Authenticator(ManagedObjectModel, TaggingMixin): users: 'models.manager.RelatedManager[User]' groups: 'models.manager.RelatedManager[Group]' + # MFA associated to this authenticator. Can be null + mfa = models.ForeignKey(MFA, on_delete=models.SET_NULL, null=True, blank=True, related_name='authenticators') + class Meta(ManagedObjectModel.Meta): # pylint: disable=too-few-public-methods """ Meta class to declare default order diff --git a/server/src/uds/models/mfa.py b/server/src/uds/models/mfa.py new file mode 100644 index 000000000..671f4f4f3 --- /dev/null +++ b/server/src/uds/models/mfa.py @@ -0,0 +1,107 @@ +# -*- coding: utf-8 -*- + +# +# Copyright (c) 2012-2019 Virtual Cable S.L. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, +# are permitted provided that the following conditions are met: +# +# * Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# * Neither the name of Virtual Cable S.L. nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +""" +.. moduleauthor:: Adolfo Gómez, dkmaster at dkmon dot com +""" +import logging +import typing + +from django.db import models + +from .managed_object_model import ManagedObjectModel +from .tag import TaggingMixin + +# Not imported at runtime, just for type checking +if typing.TYPE_CHECKING: + from .authenticator import Authenticator + from uds.core import mfas + +logger = logging.getLogger(__name__) + + +class MFA(ManagedObjectModel, TaggingMixin): # type: ignore + """ + An OS Manager represents a manager for responding requests for agents inside services. + """ + + # "fake" declarations for type checking + objects: 'models.BaseManager[MFA]' + authenticators: 'models.manager.RelatedManager[Authenticator]' + + def getInstance( + self, values: typing.Optional[typing.Dict[str, str]] = None + ) -> 'mfas.MFA': + return typing.cast('mfas.MFA', super().getInstance(values=values)) + + def getType(self) -> typing.Type['mfas.MFA']: + """ + Get the type of the object this record represents. + + The type is Python type, it obtains this OsManagersFactory and associated record field. + + Returns: + The python type for this record object + + :note: We only need to get info from this, not access specific data (class specific info) + """ + # We only need to get info from this, not access specific data (class specific info) + from uds.core import mfas + + return mfas.factory().lookup(self.data_type) or mfas.MFA + + + def __str__(self) -> str: + return "{0} of type {1} (id:{2})".format(self.name, self.data_type, self.id) + + @staticmethod + def beforeDelete(sender, **kwargs) -> None: + """ + Used to invoke the Service class "Destroy" before deleting it from database. + + The main purpuse of this hook is to call the "destroy" method of the object to delete and + to clear related data of the object (environment data such as own storage, cache, etc... + + :note: If destroy raises an exception, the deletion is not taken. + """ + toDelete: 'MFA' = kwargs['instance'] + # Only tries to get instance if data is not empty + if toDelete.data: + try: + s = toDelete.getInstance() + s.destroy() + s.env.clearRelatedData() + except Exception as e: + logger.error('Error processing deletion of notifier %s: %s (forced deletion)', toDelete.name, e) + + logger.debug('Before delete mfa provider %s', toDelete) + + +# : Connects a pre deletion signal to OS Manager +models.signals.pre_delete.connect(MFA.beforeDelete, sender=MFA) diff --git a/server/src/uds/web/util/configjs.py b/server/src/uds/web/util/configjs.py index 3b0c57d85..447c97390 100644 --- a/server/src/uds/web/util/configjs.py +++ b/server/src/uds/web/util/configjs.py @@ -65,7 +65,7 @@ def udsJs(request: 'ExtendedHttpRequest') -> str: ) # Last one is a placeholder in case we can't locate host name role: str = 'user' - user: typing.Optional['User'] = request.user + user: typing.Optional['User'] = request.user if request.authorized else None if user: role = ( diff --git a/server/src/uds/web/views/auth.py b/server/src/uds/web/views/auth.py index 26b904934..0d85c6544 100644 --- a/server/src/uds/web/views/auth.py +++ b/server/src/uds/web/views/auth.py @@ -147,9 +147,6 @@ def authCallback_stage2( logger.exception('authCallback') return errors.exceptionView(request, e) - # Will never reach this - raise RuntimeError('Unreachable point reached!!!') - @csrf_exempt def authInfo(request: 'HttpRequest', authName: str) -> HttpResponse: diff --git a/server/src/uds/web/views/modern.py b/server/src/uds/web/views/modern.py index d840303b9..56ac64a2e 100644 --- a/server/src/uds/web/views/modern.py +++ b/server/src/uds/web/views/modern.py @@ -80,13 +80,18 @@ def login( ) -> HttpResponse: # Default empty form logger.debug('Tag: %s', tag) + if request.method == 'POST': request.session['restricted'] = False # Access is from login + request.authorized = False # Ensure that on login page, user is unauthorized first + form = LoginForm(request.POST, tag=tag) user, data = checkLogin(request, form, tag) if isinstance(user, str): return HttpResponseRedirect(user) if user: + # TODO: Check if MFA to set authorize or redirect to MFA page + request.authorized = True # For now, always True response = HttpResponseRedirect(reverse('page.index')) # save tag, weblogin will clear session tag = request.session.get('tag') From 81ea07f0a0dba2b6d0049f3a6bea638db65c4368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Wed, 22 Jun 2022 21:40:23 +0200 Subject: [PATCH 02/15] Created migrations --- .../uds/migrations/0043_auto_20220622_2133.py | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 server/src/uds/migrations/0043_auto_20220622_2133.py diff --git a/server/src/uds/migrations/0043_auto_20220622_2133.py b/server/src/uds/migrations/0043_auto_20220622_2133.py new file mode 100644 index 000000000..acddaaed4 --- /dev/null +++ b/server/src/uds/migrations/0043_auto_20220622_2133.py @@ -0,0 +1,34 @@ +# Generated by Django 3.2.10 on 2022-06-22 21:33 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('uds', '0042_auto_20210628_1533'), + ] + + operations = [ + migrations.CreateModel( + name='MFA', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('uuid', models.CharField(default=None, max_length=50, null=True, unique=True)), + ('name', models.CharField(db_index=True, max_length=128)), + ('data_type', models.CharField(max_length=128)), + ('data', models.TextField(default='')), + ('comments', models.CharField(max_length=256)), + ('tags', models.ManyToManyField(to='uds.Tag')), + ], + options={ + 'abstract': False, + }, + ), + migrations.AddField( + model_name='authenticator', + name='mfa', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='authenticators', to='uds.mfa'), + ), + ] From 68e327847b53e74dd9d38ffdf794efa3ceab6efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Wed, 22 Jun 2022 21:40:43 +0200 Subject: [PATCH 03/15] Created migrations --- server/src/uds/core/auths/auth.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/uds/core/auths/auth.py b/server/src/uds/core/auths/auth.py index 3b236b93f..75bdc1518 100644 --- a/server/src/uds/core/auths/auth.py +++ b/server/src/uds/core/auths/auth.py @@ -69,7 +69,6 @@ authLogger = logging.getLogger('authLog') USER_KEY = 'uk' PASS_KEY = 'pk' EXPIRY_KEY = 'ek' -AUTHORIZED_KEY = 'ak' ROOT_ID = -20091204 # Any negative number will do the trick UDS_COOKIE_LENGTH = 48 @@ -198,7 +197,7 @@ def denyNonAuthenticated( ) -> typing.Callable[..., RT]: @wraps(view_func) def _wrapped_view(request: 'ExtendedHttpRequest', *args, **kwargs) -> RT: - if not request.user: + if not request.user or not request.authorized: return HttpResponseForbidden() # type: ignore return view_func(request, *args, **kwargs) From 0de655d14fbad65507f306c2532597c4fb36dbfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Wed, 22 Jun 2022 23:39:11 +0200 Subject: [PATCH 04/15] Adding MFA authorization page --- server/src/uds/REST/methods/authenticators.py | 34 +++++++++++-- server/src/uds/core/auths/auth.py | 3 ++ server/src/uds/core/auths/authenticator.py | 30 +++++++++++- server/src/uds/core/auths/exceptions.py | 32 +++++++++++-- server/src/uds/models/authenticator.py | 2 +- server/src/uds/urls.py | 2 + server/src/uds/web/forms/LoginForm.py | 2 +- server/src/uds/web/forms/MFAForm.py | 48 +++++++++++++++++++ server/src/uds/web/util/authentication.py | 4 +- server/src/uds/web/util/errors.py | 2 + server/src/uds/web/views/auth.py | 14 +++++- server/src/uds/web/views/modern.py | 46 +++++++++++++++++- 12 files changed, 203 insertions(+), 16 deletions(-) create mode 100644 server/src/uds/web/forms/MFAForm.py diff --git a/server/src/uds/REST/methods/authenticators.py b/server/src/uds/REST/methods/authenticators.py index 2c8cd299a..1ae1239cb 100644 --- a/server/src/uds/REST/methods/authenticators.py +++ b/server/src/uds/REST/methods/authenticators.py @@ -34,7 +34,7 @@ import logging import typing from django.utils.translation import ugettext, ugettext_lazy as _ -from uds.models import Authenticator +from uds.models import Authenticator, MFA from uds.core import auths from uds.REST import NotFound @@ -70,6 +70,7 @@ class Authenticators(ModelHandler): {'visible': {'title': _('Visible'), 'type': 'callback', 'width': '3em'}}, {'small_name': {'title': _('Label')}}, {'users_count': {'title': _('Users'), 'type': 'numeric', 'width': '5em'}}, + {'mfa': {'title': _('MFA'), 'type': 'callback', 'width': '3em'}}, {'tags': {'title': _('tags'), 'visible': False}}, ] @@ -87,16 +88,17 @@ class Authenticators(ModelHandler): 'passwordLabel': _(type_.passwordLabel), 'canCreateUsers': type_.createUser != auths.Authenticator.createUser, # type: ignore 'isExternal': type_.isExternalSource, + 'supportsMFA': type_.providesMfa(), } # Not of my type return {} def getGui(self, type_: str) -> typing.List[typing.Any]: try: - tgui = auths.factory().lookup(type_) - if tgui: + authType = auths.factory().lookup(type_) + if authType: g = self.addDefaultFields( - tgui.guiDescription(), + authType.guiDescription(), ['name', 'comments', 'tags', 'priority', 'small_name'], ) self.addField( @@ -110,9 +112,31 @@ class Authenticators(ModelHandler): ), 'type': gui.InputField.CHECKBOX_TYPE, 'order': 107, - 'tab': ugettext('Display'), + 'tab': gui.DISPLAY_TAB, }, ) + # If supports mfa, add MFA provider selector field + if authType.providesMfa(): + self.addField( + g, + { + 'name': 'mfa', + 'values': [gui.choiceItem('', _('None'))] + + gui.sortedChoices( + [ + gui.choiceItem(v.uuid, v.name) + for v in MFA.objects.all() + ] + ), + 'label': ugettext('MFA Provider'), + 'tooltip': ugettext( + 'MFA provider to use for this authenticator' + ), + 'type': gui.InputField.CHOICE_TYPE, + 'order': 108, + 'tab': gui.MFA_TAB, + }, + ) return g raise Exception() # Not found except Exception: diff --git a/server/src/uds/core/auths/auth.py b/server/src/uds/core/auths/auth.py index 75bdc1518..44e252b73 100644 --- a/server/src/uds/core/auths/auth.py +++ b/server/src/uds/core/auths/auth.py @@ -69,6 +69,7 @@ authLogger = logging.getLogger('authLog') USER_KEY = 'uk' PASS_KEY = 'pk' EXPIRY_KEY = 'ek' +AUTHORIZED_KEY = 'ak' ROOT_ID = -20091204 # Any negative number will do the trick UDS_COOKIE_LENGTH = 48 @@ -291,6 +292,7 @@ def authenticate( username, ) return None + return __registerUser(authenticator, authInstance, username) @@ -375,6 +377,7 @@ def webLogin( cookie = getUDSCookie(request, response) user.updateLastAccess() + request.authorized = False # For now, we don't know if the user is authorized until MFA is checked request.session[USER_KEY] = user.id request.session[PASS_KEY] = cryptoManager().symCrypt( password, cookie diff --git a/server/src/uds/core/auths/authenticator.py b/server/src/uds/core/auths/authenticator.py index 04c978b69..447fc34db 100644 --- a/server/src/uds/core/auths/authenticator.py +++ b/server/src/uds/core/auths/authenticator.py @@ -290,7 +290,7 @@ class Authenticator(Module): # pylint: disable=too-many-public-methods """ return [] - def mfa_identifier(self) -> str: + def mfaIdentifier(self) -> str: """ If this method is provided by an authenticator, the user will be allowed to enter a MFA code You must return the value used by a MFA provider to identify the user (i.e. email, phone number, etc) @@ -300,6 +300,34 @@ class Authenticator(Module): # pylint: disable=too-many-public-methods """ return '' + def mfaFieldName(self) -> str: + """ + This method will be invoked from the MFA form, to know the human name of the field + that will be used to enter the MFA code. + """ + return 'MFA Code' + + def mfaSendCode(self) -> None: + """ + This method will be invoked from the MFA form, to send the MFA code to the user. + The identifier where to send the code, will be obtained from "mfaIdentifier" method. + """ + raise NotImplementedError() + + def mfaValidate(self, identifier: str, code: str) -> None: + """ + If this method is provided by an authenticator, the user will be allowed to enter a MFA code + You must raise an "exceptions.MFAError" if the code is not valid. + """ + pass + + @classmethod + def providesMfa(cls) -> bool: + """ + Returns if this authenticator provides a MFA identifier + """ + return cls.mfaIdentifier is not Authenticator.mfaIdentifier + def authenticate( self, username: str, credentials: str, groupsManager: 'GroupsManager' ) -> bool: diff --git a/server/src/uds/core/auths/exceptions.py b/server/src/uds/core/auths/exceptions.py index cad4f4a5b..a6c812f66 100644 --- a/server/src/uds/core/auths/exceptions.py +++ b/server/src/uds/core/auths/exceptions.py @@ -32,32 +32,58 @@ """ -class AuthenticatorException(Exception): +class UDSException(Exception): + """ + Base exception for all UDS exceptions + """ + + pass + + +class AuthenticatorException(UDSException): """ Generic authentication exception """ + pass + class InvalidUserException(AuthenticatorException): """ Invalid user specified. The user cant access the requested service """ + pass + class InvalidAuthenticatorException(AuthenticatorException): """ Invalida authenticator has been specified """ + pass -class Redirect(Exception): + +class Redirect(UDSException): """ This exception indicates that a redirect is required. Used in authUrlCallback to indicate that redirect is needed """ + pass -class Logout(Exception): + +class Logout(UDSException): """ This exceptions redirects logouts an user and redirects to an url """ + + pass + + +class MFAError(UDSException): + """ + This exceptions indicates than an MFA error has ocurred + """ + + pass diff --git a/server/src/uds/models/authenticator.py b/server/src/uds/models/authenticator.py index b9dfa5fcf..5b5c46b6b 100644 --- a/server/src/uds/models/authenticator.py +++ b/server/src/uds/models/authenticator.py @@ -47,7 +47,7 @@ from .util import NEVER # Not imported at runtime, just for type checking if typing.TYPE_CHECKING: - from uds.models import User, Group + from uds.models import User, Group, MFA logger = logging.getLogger(__name__) diff --git a/server/src/uds/urls.py b/server/src/uds/urls.py index 5a7404014..d5da98be1 100644 --- a/server/src/uds/urls.py +++ b/server/src/uds/urls.py @@ -127,6 +127,8 @@ urlpatterns = [ uds.web.views.modern.ticketLauncher, name='page.ticket.launcher', ), + # MFA authentication + path('uds/page/mfa/', uds.web.views.modern.mfa, name='page.mfa'), # This must be the last, so any patition will be managed by client in fact re_path(r'uds/page/.*', uds.web.views.modern.index, name='page.placeholder'), # Utility diff --git a/server/src/uds/web/forms/LoginForm.py b/server/src/uds/web/forms/LoginForm.py index b2d0e50ee..afc2930f1 100644 --- a/server/src/uds/web/forms/LoginForm.py +++ b/server/src/uds/web/forms/LoginForm.py @@ -69,4 +69,4 @@ class LoginForm(forms.Form): continue choices.append((a.uuid, a.name)) - self.fields['authenticator'].choices = choices + self.fields['authenticator'].choices = choices # type: ignore diff --git a/server/src/uds/web/forms/MFAForm.py b/server/src/uds/web/forms/MFAForm.py new file mode 100644 index 000000000..cb92cfb04 --- /dev/null +++ b/server/src/uds/web/forms/MFAForm.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# +# Copyright (c) 2012-2019 Virtual Cable S.L. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, +# are permitted provided that the following conditions are met: +# +# * Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# * Neither the name of Virtual Cable S.L. nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +""" +@author: Adolfo Gómez, dkmaster at dkmon dot com +""" +import logging + +from django.utils.translation import ugettext_lazy as _ +from django import forms +from uds.models import Authenticator + + +logger = logging.getLogger(__name__) + + +class MFAForm(forms.Form): + code = forms.CharField(label=_('Authentication Code'), max_length=64, widget=forms.TextInput()) + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + + choices = [] diff --git a/server/src/uds/web/util/authentication.py b/server/src/uds/web/util/authentication.py index b74c0a528..97651e07f 100644 --- a/server/src/uds/web/util/authentication.py +++ b/server/src/uds/web/util/authentication.py @@ -127,8 +127,8 @@ def checkLogin( # pylint: disable=too-many-branches, too-many-statements user = authenticate(userName, password, authenticator) logger.debug('User: %s', user) - if isinstance(user, str): - return (user, user) + if isinstance(user, str): # It's a redirection + return (user, '') # Return redirection. In fact user i'ts the redirection if user is None: logger.debug("Invalid user %s (access denied)", userName) diff --git a/server/src/uds/web/util/errors.py b/server/src/uds/web/util/errors.py index 8b7809563..e71c30cdc 100644 --- a/server/src/uds/web/util/errors.py +++ b/server/src/uds/web/util/errors.py @@ -72,6 +72,7 @@ SERVICE_CALENDAR_DENIED = 15 PAGE_NOT_FOUND = 16 INTERNAL_SERVER_ERROR = 17 RELOAD_NOT_SUPPORTED = 18 +INVALID_MFA_CODE = 19 strings = [ _('Unknown error'), @@ -97,6 +98,7 @@ strings = [ _('Page not found'), _('Unexpected error'), _('Reloading this page is not supported. Please, reopen service from origin.'), + _('Invalid Multi-Factor Authentication code'), ] diff --git a/server/src/uds/web/views/auth.py b/server/src/uds/web/views/auth.py index 0d85c6544..adb12a687 100644 --- a/server/src/uds/web/views/auth.py +++ b/server/src/uds/web/views/auth.py @@ -126,13 +126,25 @@ def authCallback_stage2( ) raise auths.exceptions.InvalidUserException() + # Default response response = HttpResponseRedirect(reverse('page.index')) - webLogin(request, response, user, '') # Password is unavailable in this case + webLogin(request, response, user, '') # Password is unavailable for federated auth + request.session['OS'] = os # Now we render an intermediate page, so we get Java support from user # It will only detect java, and them redirect to Java + # If MFA is provided, we need to redirect to MFA page + request.authorized = True + if authenticator.getType().providesMfa() and authenticator.mfa: + authInstance = authenticator.getInstance() + if authInstance.mfaIdentifier(): + request.authorized = False # We can ask for MFA so first disauthorize user + response = HttpResponseRedirect( + reverse('page.auth.mfa') + ) + return response except auths.exceptions.Redirect as e: return HttpResponseRedirect( diff --git a/server/src/uds/web/views/modern.py b/server/src/uds/web/views/modern.py index 56ac64a2e..bffbb8e98 100644 --- a/server/src/uds/web/views/modern.py +++ b/server/src/uds/web/views/modern.py @@ -43,15 +43,18 @@ from django.views.decorators.cache import never_cache from uds.core.auths import auth, exceptions from uds.web.util import errors from uds.web.forms.LoginForm import LoginForm +from uds.web.forms.MFAForm import MFAForm from uds.web.util.authentication import checkLogin from uds.web.util.services import getServicesData from uds.web.util import configjs - logger = logging.getLogger(__name__) CSRF_FIELD = 'csrfmiddlewaretoken' +if typing.TYPE_CHECKING: + from uds import models + @never_cache def index(request: HttpRequest) -> HttpResponse: @@ -91,7 +94,8 @@ def login( return HttpResponseRedirect(user) if user: # TODO: Check if MFA to set authorize or redirect to MFA page - request.authorized = True # For now, always True + request.authorized = True + response = HttpResponseRedirect(reverse('page.index')) # save tag, weblogin will clear session tag = request.session.get('tag') @@ -141,3 +145,41 @@ def js(request: ExtendedHttpRequest) -> HttpResponse: @auth.denyNonAuthenticated def servicesData(request: ExtendedHttpRequestWithUser) -> HttpResponse: return JsonResponse(getServicesData(request)) + + +def mfa(request: ExtendedHttpRequest) -> HttpResponse: + if not request.user: + return HttpResponseRedirect(reverse('page.index')) # No user, no MFA + + mfaProvider: 'models.MFA' = request.user.manager.mfa + if not mfaProvider: + return HttpResponseRedirect(reverse('page.index')) + + # Obtain MFA data + authInstance = request.user.manager.getInstance() + mfaIdentifier = authInstance.mfaIdentifier() + mfaFieldName = authInstance.mfaFieldName() + + if request.method == 'POST': # User has provided MFA code + form = MFAForm(request.POST) + if form.is_valid(): + code = form.cleaned_data['code'] + try: + authInstance.mfaValidate(mfaIdentifier, code) + request.authorized = True + return HttpResponseRedirect(reverse('page.index')) + except exceptions.MFAError as e: + logger.error('MFA error: %s', e) + return errors.errorView(request, errors.INVALID_MFA_CODE) + else: + pass # Will render again the page + else: + # First, make MFA send a code + authInstance.mfaSendCode() + + # Redirect to index, but with MFA data + request.session['mfa'] = { + 'identifier': mfaIdentifier, + 'fieldName': mfaFieldName, + } + return HttpResponseRedirect(reverse('page.index')) \ No newline at end of file From ec02f63cac33724772042aa822346c7ffe83b6c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Thu, 23 Jun 2022 12:16:08 +0200 Subject: [PATCH 05/15] advancing on MFA implementation --- server/src/uds/core/auths/authenticator.py | 21 ------ server/src/uds/core/auths/exceptions.py | 16 +--- server/src/uds/core/mfas/mfa.py | 78 +++++++++++++++++++- server/src/uds/templates/uds/modern/mfa.html | 0 server/src/uds/urls.py | 2 +- server/src/uds/web/util/configjs.py | 2 + server/src/uds/web/views/modern.py | 14 ++-- 7 files changed, 92 insertions(+), 41 deletions(-) create mode 100644 server/src/uds/templates/uds/modern/mfa.html diff --git a/server/src/uds/core/auths/authenticator.py b/server/src/uds/core/auths/authenticator.py index 447fc34db..14f6b4be3 100644 --- a/server/src/uds/core/auths/authenticator.py +++ b/server/src/uds/core/auths/authenticator.py @@ -300,27 +300,6 @@ class Authenticator(Module): # pylint: disable=too-many-public-methods """ return '' - def mfaFieldName(self) -> str: - """ - This method will be invoked from the MFA form, to know the human name of the field - that will be used to enter the MFA code. - """ - return 'MFA Code' - - def mfaSendCode(self) -> None: - """ - This method will be invoked from the MFA form, to send the MFA code to the user. - The identifier where to send the code, will be obtained from "mfaIdentifier" method. - """ - raise NotImplementedError() - - def mfaValidate(self, identifier: str, code: str) -> None: - """ - If this method is provided by an authenticator, the user will be allowed to enter a MFA code - You must raise an "exceptions.MFAError" if the code is not valid. - """ - pass - @classmethod def providesMfa(cls) -> bool: """ diff --git a/server/src/uds/core/auths/exceptions.py b/server/src/uds/core/auths/exceptions.py index a6c812f66..506037adc 100644 --- a/server/src/uds/core/auths/exceptions.py +++ b/server/src/uds/core/auths/exceptions.py @@ -32,15 +32,7 @@ """ -class UDSException(Exception): - """ - Base exception for all UDS exceptions - """ - - pass - - -class AuthenticatorException(UDSException): +class AuthenticatorException(Exception): """ Generic authentication exception """ @@ -64,7 +56,7 @@ class InvalidAuthenticatorException(AuthenticatorException): pass -class Redirect(UDSException): +class Redirect(AuthenticatorException): """ This exception indicates that a redirect is required. Used in authUrlCallback to indicate that redirect is needed @@ -73,7 +65,7 @@ class Redirect(UDSException): pass -class Logout(UDSException): +class Logout(AuthenticatorException): """ This exceptions redirects logouts an user and redirects to an url """ @@ -81,7 +73,7 @@ class Logout(UDSException): pass -class MFAError(UDSException): +class MFAError(AuthenticatorException): """ This exceptions indicates than an MFA error has ocurred """ diff --git a/server/src/uds/core/mfas/mfa.py b/server/src/uds/core/mfas/mfa.py index 436ab65c2..ce735d3ea 100644 --- a/server/src/uds/core/mfas/mfa.py +++ b/server/src/uds/core/mfas/mfa.py @@ -30,11 +30,14 @@ """ @author: Adolfo Gómez, dkmaster at dkmon dot com """ +import datetime +import random import typing from django.utils.translation import ugettext_noop as _ -from uds.core.services import types as serviceTypes +from uds.models import getSqlDatetime from uds.core import Module +from uds.core.auths import exceptions if typing.TYPE_CHECKING: from uds.core.environment import Environment @@ -71,6 +74,14 @@ class MFA(Module): # : your own :py:meth:uds.core.module.BaseModule.icon method. iconFile: typing.ClassVar[str] = 'mfa.png' + # : Cache time for the generated MFA code + # : this means that the code will be valid for this time, and will not + # : be resent to the user until the time expires. + # : This value is in seconds + # : Note: This value is used by default "process" methos, but you can + # : override it in your own implementation. + cacheTime: typing.ClassVar[int] = 300 + def __init__(self, environment: 'Environment', values: Module.ValuesType): super().__init__(environment, values) self.initialize(values) @@ -90,3 +101,68 @@ class MFA(Module): Default implementation does nothing """ + + def label(self) -> str: + """ + This method will be invoked from the MFA form, to know the human name of the field + that will be used to enter the MFA code. + """ + return 'MFA Code' + + def validity(self) -> int: + """ + This method will be invoked from the MFA form, to know the validity in secods + of the MFA code. + If value is 0 or less, means the code is always valid. + """ + return self.cacheTime + + def sendCode(self, code: str) -> None: + """ + This method will be invoked from "process" method, to send the MFA code to the user. + """ + raise NotImplementedError('sendCode method not implemented') + + def process(self, userId: str, identifier: str) -> None: + """ + This method will be invoked from the MFA form, to send the MFA code to the user. + The identifier where to send the code, will be obtained from "mfaIdentifier" method. + Default implementation generates a random code and sends invokes "sendCode" method. + """ + # try to get the stored code + data: typing.Any = self.storage.getPickle(userId) + try: + if data: + # if we have a stored code, check if it's still valid + if data[0] + datetime.timedelta(seconds=self.cacheTime) < getSqlDatetime(): + # if it's still valid, just return without sending a new one + return + except Exception: + # if we have a problem, just remove the stored code + self.storage.remove(userId) + + # Generate a 6 digit code (0-9) + code = ''.join(random.SystemRandom().choices('0123456789', k=6)) + # Store the code in the database, own storage space + self.storage.putPickle(userId, (getSqlDatetime(), code)) + # Send the code to the user + self.sendCode(code) + + def validate(self, userId: str, identifier: str, code: str) -> None: + """ + If this method is provided by an authenticator, the user will be allowed to enter a MFA code + You must raise an "exceptions.MFAError" if the code is not valid. + """ + # Validate the code + try: + data = self.storage.getPickle(userId) + if data and len(data) == 2: + # Check if the code is valid + if data[1] == code: + # Code is valid, remove it from storage + self.storage.remove(userId) + return + except Exception as e: + # Any error means invalid code + raise exceptions.MFAError(e) + diff --git a/server/src/uds/templates/uds/modern/mfa.html b/server/src/uds/templates/uds/modern/mfa.html new file mode 100644 index 000000000..e69de29bb diff --git a/server/src/uds/urls.py b/server/src/uds/urls.py index d5da98be1..541f4fd06 100644 --- a/server/src/uds/urls.py +++ b/server/src/uds/urls.py @@ -128,7 +128,7 @@ urlpatterns = [ name='page.ticket.launcher', ), # MFA authentication - path('uds/page/mfa/', uds.web.views.modern.mfa, name='page.mfa'), + path(r'uds/page/mfa/', uds.web.views.modern.mfa, name='page.mfa'), # This must be the last, so any patition will be managed by client in fact re_path(r'uds/page/.*', uds.web.views.modern.index, name='page.placeholder'), # Utility diff --git a/server/src/uds/web/util/configjs.py b/server/src/uds/web/util/configjs.py index 447c97390..d2bbdd559 100644 --- a/server/src/uds/web/util/configjs.py +++ b/server/src/uds/web/util/configjs.py @@ -144,6 +144,7 @@ def udsJs(request: 'ExtendedHttpRequest') -> str: 'authenticators': [ getAuthInfo(auth) for auth in authenticators if auth.getType() ], + 'mfa': request.session.get('mfa', None), 'tag': tag, 'os': request.os['OS'].value[0], 'image_size': Image.MAX_IMAGE_SIZE, @@ -164,6 +165,7 @@ def udsJs(request: 'ExtendedHttpRequest') -> str: 'urls': { 'changeLang': reverse('set_language'), 'login': reverse('page.login'), + 'mfa': reverse('page.mfa'), 'logout': reverse('page.logout'), 'user': reverse('page.index'), 'customAuth': reverse('uds.web.views.customAuth', kwargs={'idAuth': ''}), diff --git a/server/src/uds/web/views/modern.py b/server/src/uds/web/views/modern.py index bffbb8e98..e062f77af 100644 --- a/server/src/uds/web/views/modern.py +++ b/server/src/uds/web/views/modern.py @@ -157,15 +157,17 @@ def mfa(request: ExtendedHttpRequest) -> HttpResponse: # Obtain MFA data authInstance = request.user.manager.getInstance() + mfaInstance = mfaProvider.getInstance() + mfaIdentifier = authInstance.mfaIdentifier() - mfaFieldName = authInstance.mfaFieldName() + label = mfaInstance.label() if request.method == 'POST': # User has provided MFA code form = MFAForm(request.POST) if form.is_valid(): code = form.cleaned_data['code'] try: - authInstance.mfaValidate(mfaIdentifier, code) + mfaInstance.validate(str(request.user.pk), mfaIdentifier, code) request.authorized = True return HttpResponseRedirect(reverse('page.index')) except exceptions.MFAError as e: @@ -174,12 +176,12 @@ def mfa(request: ExtendedHttpRequest) -> HttpResponse: else: pass # Will render again the page else: - # First, make MFA send a code - authInstance.mfaSendCode() + # Make MFA send a code + mfaInstance.process(str(request.user.pk), mfaIdentifier) # Redirect to index, but with MFA data request.session['mfa'] = { - 'identifier': mfaIdentifier, - 'fieldName': mfaFieldName, + 'label': label, + 'validity': mfaInstance.validity(), } return HttpResponseRedirect(reverse('page.index')) \ No newline at end of file From 5b499de983af674cd91d63bc8d6e248db5687f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Thu, 23 Jun 2022 15:14:39 +0200 Subject: [PATCH 06/15] Initial MFA done --- server/src/uds/REST/methods/authenticators.py | 19 ++++- server/src/uds/__init__.py | 1 + server/src/uds/core/mfas/mfa.py | 13 +++- server/src/uds/mfas/__init__.py | 69 ++++++++++++++++++ server/src/uds/mfas/sample/__init__.py | 1 + server/src/uds/mfas/sample/mfa.py | 39 ++++++++++ server/src/uds/mfas/sample/sample.png | Bin 0 -> 1168 bytes server/src/uds/static/modern/main-es2015.js | 2 +- server/src/uds/static/modern/main-es5.js | 2 +- server/src/uds/urls.py | 4 +- server/src/uds/web/views/auth.py | 2 +- server/src/uds/web/views/modern.py | 22 ++++-- 12 files changed, 158 insertions(+), 16 deletions(-) create mode 100644 server/src/uds/mfas/__init__.py create mode 100644 server/src/uds/mfas/sample/__init__.py create mode 100644 server/src/uds/mfas/sample/mfa.py create mode 100755 server/src/uds/mfas/sample/sample.png diff --git a/server/src/uds/REST/methods/authenticators.py b/server/src/uds/REST/methods/authenticators.py index 1ae1239cb..7805b3da2 100644 --- a/server/src/uds/REST/methods/authenticators.py +++ b/server/src/uds/REST/methods/authenticators.py @@ -40,6 +40,7 @@ from uds.core import auths from uds.REST import NotFound from uds.REST.model import ModelHandler from uds.core.util import permissions +from uds.core.util.model import processUuid from uds.core.ui import gui from .users_groups import Users, Groups @@ -58,7 +59,7 @@ class Authenticators(ModelHandler): # Custom get method "search" that requires authenticator id custom_methods = [('search', True)] detail = {'users': Users, 'groups': Groups} - save_fields = ['name', 'comments', 'tags', 'priority', 'small_name', 'visible'] + save_fields = ['name', 'comments', 'tags', 'priority', 'small_name', 'visible', 'mfa_id'] table_title = _('Authenticators') table_fields = [ @@ -120,7 +121,7 @@ class Authenticators(ModelHandler): self.addField( g, { - 'name': 'mfa', + 'name': 'mfa_id', 'values': [gui.choiceItem('', _('None'))] + gui.sortedChoices( [ @@ -206,6 +207,20 @@ class Authenticators(ModelHandler): return self.success() return res[1] + def beforeSave( + self, fields: typing.Dict[str, typing.Any] + ) -> None: # pylint: disable=too-many-branches,too-many-statements + logger.debug(self._params) + try: + mfa = MFA.objects.get( + uuid=processUuid(fields['mfa_id']) + ) + fields['mfa_id'] = mfa.id + except Exception: # not found + del fields['mfa_id'] + + + def deleteItem(self, item: Authenticator): # For every user, remove assigned services (mark them for removal) diff --git a/server/src/uds/__init__.py b/server/src/uds/__init__.py index 5c84b5305..13b3821bd 100644 --- a/server/src/uds/__init__.py +++ b/server/src/uds/__init__.py @@ -71,6 +71,7 @@ class UDSAppConfig(AppConfig): # pylint: disable=unused-import from . import services # to make sure that the packages are initialized at this point from . import auths # To make sure that the packages are initialized at this point + from . import mfas # To make sure mfas are loaded on memory from . import osmanagers # To make sure that packages are initialized at this point from . import transports # To make sure that packages are initialized at this point from . import dispatchers # Ensure all dischatchers all also available diff --git a/server/src/uds/core/mfas/mfa.py b/server/src/uds/core/mfas/mfa.py index ce735d3ea..5f79caf73 100644 --- a/server/src/uds/core/mfas/mfa.py +++ b/server/src/uds/core/mfas/mfa.py @@ -32,6 +32,7 @@ """ import datetime import random +import logging import typing from django.utils.translation import ugettext_noop as _ @@ -42,11 +43,11 @@ from uds.core.auths import exceptions if typing.TYPE_CHECKING: from uds.core.environment import Environment +logger = logging.getLogger(__name__) class MFA(Module): """ - this class provides an abstraction of a notifier system for administrator defined events - This class will be responsible os sendig emails, messaging notifications, etc.. to administrators + this class provides an abstraction of a Multi Factor Authentication """ # informational related data @@ -86,7 +87,7 @@ class MFA(Module): super().__init__(environment, values) self.initialize(values) - def initialize(self, values: Module.ValuesType): + def initialize(self, values: Module.ValuesType) -> None: """ This method will be invoked from __init__ constructor. This is provided so you don't have to provide your own __init__ method, @@ -143,6 +144,7 @@ class MFA(Module): # Generate a 6 digit code (0-9) code = ''.join(random.SystemRandom().choices('0123456789', k=6)) + logger.debug('Generated OTP is %s', code) # Store the code in the database, own storage space self.storage.putPickle(userId, (getSqlDatetime(), code)) # Send the code to the user @@ -155,6 +157,7 @@ class MFA(Module): """ # Validate the code try: + err = _('Invalid MFA code') data = self.storage.getPickle(userId) if data and len(data) == 2: # Check if the code is valid @@ -164,5 +167,7 @@ class MFA(Module): return except Exception as e: # Any error means invalid code - raise exceptions.MFAError(e) + err = str(e) + + raise exceptions.MFAError(err) diff --git a/server/src/uds/mfas/__init__.py b/server/src/uds/mfas/__init__.py new file mode 100644 index 000000000..340228f40 --- /dev/null +++ b/server/src/uds/mfas/__init__.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- + +# +# Copyright (c) 2012-2019 Virtual Cable S.L. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, +# are permitted provided that the following conditions are met: +# +# * Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# * Neither the name of Virtual Cable S.L. nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +""" +Authentication modules for uds are contained inside this module. +To create a new authentication module, you will need to follow this steps: + 1.- Create the authentication module, probably based on an existing one + 2.- Insert the module as child of this module + 3.- Import the class of your authentication module at __init__. For example:: + from Authenticator import SimpleAthenticator + 4.- Done. At Server restart, the module will be recognized, loaded and treated + +The registration of modules is done locating subclases of :py:class:`uds.core.auths.Authentication` + +.. moduleauthor:: Adolfo Gómez, dkmaster at dkmon dot com +""" +import os.path +import pkgutil +import importlib +import sys +import typing + +def __init__(): + """ + This imports all packages that are descendant of this package, and, after that, + it register all subclases of authenticator as + """ + from uds.core import mfas + + # Dinamycally import children of this package. The __init__.py files must declare mfs as subclasses of mfas.MFA + pkgpath = os.path.dirname(typing.cast(str, sys.modules[__name__].__file__)) + for _, name, _ in pkgutil.iter_modules([pkgpath]): + # __import__(name, globals(), locals(), [], 1) + importlib.import_module('.' + name, __name__) # import module + + importlib.invalidate_caches() + + a = mfas.MFA + for cls in a.__subclasses__(): + mfas.factory().insert(cls) + + +__init__() diff --git a/server/src/uds/mfas/sample/__init__.py b/server/src/uds/mfas/sample/__init__.py new file mode 100644 index 000000000..f963c676e --- /dev/null +++ b/server/src/uds/mfas/sample/__init__.py @@ -0,0 +1 @@ +from . import mfa diff --git a/server/src/uds/mfas/sample/mfa.py b/server/src/uds/mfas/sample/mfa.py new file mode 100644 index 000000000..cb5272754 --- /dev/null +++ b/server/src/uds/mfas/sample/mfa.py @@ -0,0 +1,39 @@ +import typing +import logging + +from django.utils.translation import ugettext_noop as _ + +from uds.core import mfas +from uds.core.ui import gui + +if typing.TYPE_CHECKING: + from uds.core.module import Module + +logger = logging.getLogger(__name__) + +class SampleMFA(mfas.MFA): + typeName = _('Sample Multi Factor') + typeType = 'sampleMFA' + typeDescription = _('Sample Multi Factor Authenticator') + iconFile = 'sample.png' + + useless = gui.CheckBoxField( + label=_('Sample useless field'), + order=90, + tooltip=_( + 'This is a useless field, for sample and testing pourposes' + ), + tab=gui.ADVANCED_TAB, + defvalue=gui.TRUE, + ) + + def initialize(self, values: 'Module.ValuesType') -> None: + return super().initialize(values) + + def label(self) -> str: + return 'Code is in log' + + def sendCode(self, code: str) -> None: + logger.debug('Sending code: %s', code) + return + diff --git a/server/src/uds/mfas/sample/sample.png b/server/src/uds/mfas/sample/sample.png new file mode 100755 index 0000000000000000000000000000000000000000..ece1ae0fa4577b5eb294a0be7e7c350b7f3daa54 GIT binary patch literal 1168 zcmV;B1aJF^P)Be|P7vIIZIt{6*}fsTD(DVCaHC?SfR080f%)1Y>6+Wno5QL5e67 z11l({LMRIipa?}&5LHcuA|Zk+mxLH&C#~z)O>(h)cMP_Z_}iiW%H{sko!+zF`#<-) z=Xvh#H5f8v$dDmJhR&*leoQ(yzYvsEz1O=OgwUIgM8V zrpCvxTFh82W~L?r0BESM_4<5z9ssTBZ6}Dj4?tOwjTi^HJaR5iWFywMDq!l@#HpPu z%d3C%y$tq^0Qcw!k|ZKYB5v2n*(2b^&_u=lQfl>V5ilsKB;aOtS`vjDXj}noU70ce zL-Ri2>nB>5yvo3mBB?XH<5;UD;AVDO5`?>GTlctAt~Yt-(+5>A)s{S?ZYPU z+C)s}&92Jm##d>>^Nz+*kMd%0c?7%Csw z4edTklZZq~UlehgRhI77X8m+tAiBJQFC1dnr8m|CrPpTDR-0)|~qLa$sJxa4Sb zf;Eq+S@lc>z#yQ!F<0u*-+SwIT^s)LyF~zI3<6qIfgy`YS4Q`91tSOiuRb8M`R`Lr z5Dxk)_OD(4psn96eDRr41qQYglyiBan{m>aEC5c&IVQ*a*lpHf}`T`j~;m_M$+6I=WhOX!P$cFi9T0#KKPQ&$B}YW}p5(2@XAJo;30 z;W;nsErKx_@EsaI{@YIHfKHLrG63T~52{-HVm;AD0IH8a^#p{2{)%V%a2utr*)c{Z zsE79fgQP||rQ>~oLBN3OX>*D}z~Ppr$q0gNPd>nIvo?H>ewwu_9~7;k?bi@cP?cW* zmRHxrUVT5CA;DIUOWQ6?g({ z0Wn}5NH;2jX&_lLEmK@hriTFRQCy;#JZ`=o0cCkgGz`(Ff0lJn8n9n7zEwTg%$$Yd i`dU2@AOpF2gZ}|D25ekNa+Bu(0000t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){m(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?m(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const y="!"},9238:function(t,e,n){"use strict";n.d(e,{rt:function(){return et},s1:function(){return R},$s:function(){return T},Em:function(){return D},tE:function(){return W},qV:function(){return B},qm:function(){return tt},Kd:function(){return G},X6:function(){return U},yG:function(){return Z}});var i=n(8583),s=n(3018),r=n(9765),o=n(5319),a=n(6215),l=n(5917),c=n(6461),u=n(3342),h=n(4395),d=n(5435),p=n(8002),f=n(5257),m=n(3653),g=n(7519),_=n(6782),y=n(9490),b=n(521),v=n(8553);function w(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const C="cdk-describedby-message-container",x="cdk-describedby-message",E="cdk-describedby-host";let S=0;const k=new Map;let O=null,T=(()=>{class t{constructor(t){this._document=t}describe(t,e,n){if(!this._canBeDescribed(t,e))return;const i=A(e,n);"string"!=typeof e?(P(e),k.set(i,{messageElement:e,referenceCount:0})):k.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}removeDescription(t,e,n){if(!e||!this._isElementNode(t))return;const i=A(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){const t=k.get(i);t&&0===t.referenceCount&&this._deleteMessageElement(i)}O&&0===O.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll(`[${E}]`);for(let e=0;e0!=t.indexOf(x));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=k.get(e);(function(t,e,n){const i=w(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))})(t,"aria-describedby",n.messageElement.id),t.setAttribute(E,""),n.referenceCount++}_removeMessageReference(t,e){const n=k.get(e);n.referenceCount--,function(t,e,n){const i=w(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(E)}_isElementDescribedByMessage(t,e){const n=w(t,"aria-describedby"),i=k.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.K0))},token:t,providedIn:"root"}),t})();function A(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function P(t){t.id||(t.id=`${x}-${S++}`)}class I{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new r.xQ,this._typeaheadSubscription=o.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new r.xQ,this.change=new r.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,u.b)(t=>this._pressedLetters.push(t)),(0,h.b)(t),(0,d.h)(()=>this._pressedLetters.length>0),(0,p.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.Mf:return void this.tabOut.next();case c.JH:if(this._vertical&&n){this.setNextItemActive();break}return;case c.LH:if(this._vertical&&n){this.setPreviousItemActive();break}return;case c.SV:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.oh:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.Sd:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case c.uR:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||(0,c.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.A&&e<=c.Z||e>=c.xE&&e<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class R extends I{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class D extends I{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let M=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}(function(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(t));if(e&&(-1===F(e)||!this.isVisible(e)))return!1;let n=t.nodeName.toLowerCase(),i=F(t);return t.hasAttribute("contenteditable")?-1!==i:!("iframe"===n||"object"===n||this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==i:"video"===n?-1!==i&&(null!==i||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||L(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4))},token:t,providedIn:"root"}),t})();function L(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function F(t){if(!L(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class N{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(t)}}let B=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new N(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(M),s.LFG(s.R0b),s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(M),s.LFG(s.R0b),s.LFG(i.K0))},token:t,providedIn:"root"}),t})();function U(t){return 0===t.offsetX&&0===t.offsetY}function Z(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&∈const q=new s.OlP("cdk-input-modality-detector-options"),j={ignoreKeys:[c.zL,c.jx,c.b2,c.MW,c.JU]},V=(0,b.i$)({passive:!0,capture:!0});let H=(()=>{class t{constructor(t,e,n,i){this._platform=t,this._mostRecentTarget=null,this._modality=new a.X(null),this._lastTouchMs=0,this._onKeydown=t=>{var e,n;(null===(n=null===(e=this._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some(e=>e===t.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,b.sA)(t))},this._onMousedown=t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(U(t)?"keyboard":"mouse"),this._mostRecentTarget=(0,b.sA)(t))},this._onTouchstart=t=>{Z(t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,b.sA)(t))},this._options=Object.assign(Object.assign({},j),i),this.modalityDetected=this._modality.pipe((0,m.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,g.x)()),t.isBrowser&&e.runOutsideAngular(()=>{n.addEventListener("keydown",this._onKeydown,V),n.addEventListener("mousedown",this._onMousedown,V),n.addEventListener("touchstart",this._onTouchstart,V)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,V),document.removeEventListener("mousedown",this._onMousedown,V),document.removeEventListener("touchstart",this._onTouchstart,V))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4),s.LFG(s.R0b),s.LFG(i.K0),s.LFG(q,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4),s.LFG(s.R0b),s.LFG(i.K0),s.LFG(q,8))},token:t,providedIn:"root"}),t})();const z=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Y=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let G=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),n=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,n,i,s){this._ngZone=t,this._platform=e,this._inputModalityDetector=n,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new r.xQ,this._rootNodeFocusAndBlurListener=t=>{const e=(0,b.sA)(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=i,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,e=!1){const n=(0,y.fI)(t);if(!this._platform.isBrowser||1!==n.nodeType)return(0,l.of)(null);const i=(0,b.kV)(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new r.xQ,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=(0,y.fI)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=(0,y.fI)(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOrigin(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOrigin(t,e=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&e,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,e){const n=this._elementInfo.get(e),i=(0,b.sA)(t);!n||!n.checkChildren&&e!==i||this._originChanged(e,this._getFocusOrigin(i),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,$),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,$)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,_.R)(this._stopInputModalityDetector)).subscribe(t=>{this._setOrigin(t,!0)}))}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,$),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,$),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(b.t4),s.LFG(H),s.LFG(i.K0,8),s.LFG(K,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(b.t4),s.LFG(H),s.LFG(i.K0,8),s.LFG(K,8))},token:t,providedIn:"root"}),t})();const Q="cdk-high-contrast-black-on-white",J="cdk-high-contrast-white-on-black",X="cdk-high-contrast-active";let tt=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(X),t.remove(Q),t.remove(J),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(X),t.add(Q)):2===e&&(t.add(X),t.add(J))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4),s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4),s.LFG(i.K0))},token:t,providedIn:"root"}),t})(),et=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(tt))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ud,v.Q8]]}),t})()},946:function(t,e,n){"use strict";n.d(e,{vT:function(){return a},Is:function(){return o}});var i=n(3018),s=n(8583);const r=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,i.f3M)(s.K0)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.vpe,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(r,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(r,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},8345:function(t,e,n){"use strict";n.d(e,{P3:function(){return l},Ov:function(){return u},A8:function(){return h},eX:function(){return c},k:function(){return d},Z9:function(){return a}});var i=n(5639),s=n(5917),r=n(9765),o=n(3018);function a(t){return t&&"function"==typeof t.connect}class l extends class{}{constructor(t){super(),this._data=t}connect(){return(0,i.b)(this._data)?this._data:(0,s.of)(this._data)}disconnect(){}}class c{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,s){t.forEachOperation((t,r,o)=>{let a,l;null==t.previousIndex?(a=this._insertView(()=>n(t,r,o),o,e,i(t)),l=a?1:0):null==o?(this._detachAndCacheView(r,e),l=3):(a=this._moveView(r,o,e,i(t)),l=2),s&&s({context:null==a?void 0:a.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,n,i){const s=this._insertViewFromCache(e,n);if(s)return void(s.context.$implicit=i);const r=t();return n.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(t,e){const n=e.detach(t);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const s=n.get(t);return n.move(s,e),s.context.$implicit=i,s}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let h=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const d=new o.OlP("_ViewRepeater")},6461:function(t,e,n){"use strict";n.d(e,{A:function(){return y},zL:function(){return a},jx:function(){return o},JH:function(){return m},uR:function(){return u},K5:function(){return s},hY:function(){return l},Sd:function(){return h},oh:function(){return d},b2:function(){return w},MW:function(){return v},aO:function(){return _},SV:function(){return f},JU:function(){return r},L_:function(){return c},Mf:function(){return i},LH:function(){return p},Z:function(){return b},xE:function(){return g},Vb:function(){return C}});const i=9,s=13,r=16,o=17,a=18,l=27,c=32,u=35,h=36,d=37,p=38,f=39,m=40,g=48,_=57,y=65,b=90,v=91,w=224;function C(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},8553:function(t,e,n){"use strict";n.d(e,{wD:function(){return u},yq:function(){return c},Q8:function(){return h}});var i=n(9490),s=n(3018),r=n(7574),o=n(9765),a=n(4395);let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=(0,i.fI)(t);return new r.y(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.xQ,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(l))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(l))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,i.Ig)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=(0,i.su)(t),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,a.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[l]}),t})()},625:function(t,e,n){"use strict";n.d(e,{pI:function(){return J},xu:function(){return Q},aV:function(){return K},X_:function(){return O},Xj:function(){return L},U8:function(){return tt}});var i=n(9243),s=n(3018),r=n(521),o=n(946),a=n(8583),l=n(9490),c=n(7636),u=n(9765),h=n(5319),d=n(6682),p=n(7393);class f{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new m(t,this.predicate,this.inclusive))}}class m extends p.L{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}var g=n(5257),_=n(6782),y=n(6461);const b=(0,r.Mq)();class v{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=(0,l.HM)(-this._previousScrollPosition.left),t.style.top=(0,l.HM)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),b&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),b&&(e.scrollBehavior=i,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class w{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class C{enable(){}disable(){}attach(){}}function x(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function E(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class S{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();x(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let k=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new C,this.close=t=>new w(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new v(this._viewportRuler,this._document),this.reposition=t=>new S(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.mF),s.LFG(i.rL),s.LFG(s.R0b),s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.mF),s.LFG(i.rL),s.LFG(s.R0b),s.LFG(a.K0))},token:t,providedIn:"root"}),t})();class O{constructor(t){if(this.scrollStrategy=new C,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class T{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class A{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let P=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends P{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),R=(()=>{class t extends P{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=(0,r.sA)(t),n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0),s.LFG(r.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0),s.LFG(r.t4))},token:t,providedIn:"root"}),t})();const D="undefined"!=typeof window?window:{},M=void 0!==D.__karma__&&!!D.__karma__||void 0!==D.jasmine&&!!D.jasmine||void 0!==D.jest&&!!D.jest||void 0!==D.Mocha&&!!D.Mocha;let L=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||M){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new u.xQ,this._outsidePointerEvents=new u.xQ,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=(0,l.HM)(this._config.width),t.height=(0,l.HM)(this._config.height),t.minWidth=(0,l.HM)(this._config.minWidth),t.minHeight=(0,l.HM)(this._config.minHeight),t.maxWidth=(0,l.HM)(this._config.maxWidth),t.maxHeight=(0,l.HM)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(!t)return;let e,n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;(0,l.Eq)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe((0,_.R)((0,d.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const N="cdk-overlay-connected-position-bounding-box",B=/([A-Za-z%]+)$/;class U{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new u.xQ,this._resizeSubscription=h.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(N),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Z(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(N),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){const s=j(e);let{x:r,y:o}=t,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(r+=a),l&&(o+=l);let c=0-o,u=o+s.height-n.height,h=this._subtractOverflows(s.width,0-r,r+s.width-n.width),d=this._subtractOverflows(s.height,c,u),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=q(this._overlayRef.getConfig().minHeight),o=q(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=j(e),s=this._viewportRect,r=Math.max(t.x+i.width-s.width,0),o=Math.max(t.y+i.height-s.height,0),a=Math.max(s.top-n.top-t.y,0),l=Math.max(s.left-n.left-t.x,0);let c=0,u=0;return c=i.width<=s.width?l||-r:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=(0,l.HM)(n.height),i.top=(0,l.HM)(n.top),i.bottom=(0,l.HM)(n.bottom),i.width=(0,l.HM)(n.width),i.left=(0,l.HM)(n.left),i.right=(0,l.HM)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=(0,l.HM)(t)),s&&(i.maxWidth=(0,l.HM)(s))}this._lastBoundingBoxSize=n,Z(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Z(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Z(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();Z(n,this._getExactOverlayY(e,t,i)),Z(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=(0,l.HM)(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=(0,l.HM)(r.maxWidth):s&&(n.maxWidth="")),Z(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=(0,l.HM)(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=(0,l.HM)(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:E(t,n),isOriginOutsideView:x(t,n),isOverlayClipped:E(e,n),isOverlayOutsideView:x(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&(0,l.Eq)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function Z(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function q(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(B);return n&&"px"!==n?null:parseFloat(e)}return t||null}function j(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class V{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new U(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new T(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const H="cdk-global-overlay-wrapper";class z{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(H),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(H),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Y=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new z}connectedTo(t,e,n){return new V(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new U(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.rL),s.LFG(a.K0),s.LFG(r.t4),s.LFG(L))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.rL),s.LFG(a.K0),s.LFG(r.t4),s.LFG(L))},token:t,providedIn:"root"}),t})(),G=0,K=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new O(t);return s.direction=s.direction||this._directionality.value,new F(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+G++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new c.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(k),s.LFG(L),s.LFG(s._Vd),s.LFG(Y),s.LFG(I),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(o.Is),s.LFG(a.Ye),s.LFG(R))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const $=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],W=new s.OlP("cdk-connected-overlay-scroll-strategy");let Q=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),J=(()=>{class t{constructor(t,e,n,i,r){this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.vpe,this.positionChange=new s.vpe,this.attach=new s.vpe,this.detach=new s.vpe,this.overlayKeydown=new s.vpe,this.overlayOutsideClick=new s.vpe,this._templatePortal=new c.UE(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,l.Ig)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=(0,l.Ig)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=(0,l.Ig)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=(0,l.Ig)(t)}get push(){return this._push}set push(t){this._push=(0,l.Ig)(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=$);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode===y.hY&&!this.disableClose&&!(0,y.Vb)(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new O({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return n=>n.lift(new f(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(K),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(W),s.Y36(o.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.TTD]}),t})();const X={provide:W,deps:[K],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[K,X],imports:[[o.vT,c.eL,i.Cl],i.Cl]}),t})()},521:function(t,e,n){"use strict";n.d(e,{t4:function(){return a},ud:function(){return l},sA:function(){return v},ht:function(){return b},kV:function(){return y},_i:function(){return _},qK:function(){return u},i$:function(){return m},Mq:function(){return g}});var i=n(3018),s=n(8583);let r;try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(w){r=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,s.NF)(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&&!r)&&"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)(i.LFG(i.Lbi))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(i.Lbi))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(c),o;let t=document.createElement("input");return o=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let h,d,p,f;function m(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function g(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if("scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p}function _(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function y(t){if(function(){if(null==f){const t="undefined"!=typeof document?document.head:null;f=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function b(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function v(t){return t.composedPath?t.composedPath()[0]:t.target}},7636:function(t,e,n){"use strict";n.d(e,{en:function(){return c},Pl:function(){return h},C5:function(){return o},u0:function(){return u},eL:function(){return d},UE:function(){return a}});var i=n(3018),s=n(8583);class r{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class o extends r{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class a extends r{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class l extends r{constructor(t){super(),this.element=t instanceof i.SBq?t.nativeElement:t}}class c{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof o?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class u extends c{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let h=(()=>{class t extends c{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(s.K0))},t.\u0275dir=i.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},9243:function(t,e,n){"use strict";n.d(e,{ZD:function(){return y},mF:function(){return g},Cl:function(){return b},rL:function(){return _}});var i=n(9490),s=n(3018),r=n(6465),o=n(6102);new class extends o.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});var a=n(9765),l=n(5917),c=n(7574),u=n(2759);n(4581);n(5319),n(5639),n(7393),new class extends o.v{}(class extends r.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}),n(1593),n(7971),n(8858),n(7519);var h=n(628),d=n(5435),p=(n(6782),n(9761),n(3190),n(521)),f=n(8583),m=n(946);n(8345);let g=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new a.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new c.y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe((0,h.e)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,l.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,d.h)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=(0,i.fI)(e),s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return(0,u.R)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(p.t4),s.LFG(f.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(p.t4),s.LFG(f.K0,8))},token:t,providedIn:"root"}),t})(),_=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new a.xQ,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe((0,h.e)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(p.t4),s.LFG(s.R0b),s.LFG(f.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(p.t4),s.LFG(s.R0b),s.LFG(f.K0,8))},token:t,providedIn:"root"}),t})(),y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[m.vT,p.ud,y],m.vT,y]}),t})()},9490:function(t,e,n){"use strict";n.d(e,{Eq:function(){return o},Ig:function(){return s},HM:function(){return a},fI:function(){return l},su:function(){return r}});var i=n(3018);function s(t){return null!=t&&"false"!=`${t}`}function r(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function o(t){return Array.isArray(t)?t:[t]}function a(t){return null==t?"":"string"==typeof t?t:`${t}px`}function l(t){return t instanceof i.SBq?t.nativeElement:t}},8583:function(t,e,n){"use strict";n.d(e,{mr:function(){return v},Ov:function(){return Y},ez:function(){return G},K0:function(){return l},Do:function(){return C},V_:function(){return h},Ye:function(){return x},S$:function(){return y},mk:function(){return I},sg:function(){return D},O5:function(){return L},RF:function(){return U},n9:function(){return Z},ED:function(){return q},b0:function(){return w},lw:function(){return c},EM:function(){return W},JF:function(){return X},NF:function(){return $},w_:function(){return a},bD:function(){return K},q:function(){return r},Mx:function(){return P},HT:function(){return o}});var i=n(3018);let s=null;function r(){return s}function o(t){s||(s=t)}class a{}const l=new i.OlP("DocumentToken");let c=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return(0,i.LFG)(d)}const h=new i.OlP("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return r().getBaseHref(this._doc)}onPopState(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(l))},t.\u0275prov=(0,i.Yz7)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d((0,i.LFG)(l))}function m(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function _(t){return t&&"?"!==t[0]?"?"+t:t}let y=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:b,token:t,providedIn:"root"}),t})();function b(t){const e=(0,i.LFG)(l).location;return new w((0,i.LFG)(c),e&&e.origin||"")}const v=new i.OlP("appBaseHref");let w=(()=>{class t extends y{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+_(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+_(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+_(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(v,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t extends y{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+_(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+_(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(v,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t{constructor(t,e){this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(S(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+_(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,S(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(y),i.LFG(c))},t.normalizeQueryParams=_,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=(0,i.Yz7)({factory:E,token:t,providedIn:"root"}),t})();function E(){return new x((0,i.LFG)(y),(0,i.LFG)(c))}function S(t){return t.replace(/\/index.html$/,"")}var k=(()=>((k=k||{})[k.Zero=0]="Zero",k[k.One=1]="One",k[k.Two=2]="Two",k[k.Few=3]="Few",k[k.Many=4]="Many",k[k.Other=5]="Other",k))();const O=i.kL8;class T{}let A=(()=>{class t extends T{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(O(e||this.locale)(t)){case k.Zero:return"zero";case k.One:return"one";case k.Two:return"two";case k.Few:return"few";case k.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.soG))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function P(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let I=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class R{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 D=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(t){return t.name||typeof t}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new R(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new M(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new M(t,s);e.push(r)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class M{constructor(t,e){this.record=t,this.view=e}}let L=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new F,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){N("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){N("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class F{constructor(){this.$implicit=null,this.ngIf=null}}function N(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.AaK)(e)}'.`)}class B{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let U=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new B(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(U,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),q=(()=>{class t{constructor(t,e,n){n._addDefault(new B(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(U,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})();class j{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class V{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const H=new V,z=new j;let Y=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,i.QGY)(e))return H;if((0,i.F4k)(e))return z;throw function(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,i.AaK)(t)}'`)}(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO,16))},t.\u0275pipe=i.Yjl({name:"async",type:t,pure:!1}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:T,useClass:A}]}),t})();const K="browser";function $(t){return t===K}let W=(()=>{class t{}return t.\u0275prov=(0,i.Yz7)({token:t,providedIn:"root",factory:()=>new Q((0,i.LFG)(l),window)}),t})();class Q{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=J(this.window.history)||J(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function J(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class X{}},1841:function(t,e,n){"use strict";n.d(e,{eN:function(){return P},JF:function(){return V}});var i=n(8583),s=n(3018),r=n(5917),o=n(7574),a=n(4612),l=n(5435),c=n(8002);class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return g(t)}encodeValue(t){return g(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const f=/%(\d[a-f0-9])/gi,m={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function g(t){return encodeURIComponent(t).replace(f,(t,e)=>{var n;return null!==(n=m[e])&&void 0!==n?n:t})}function _(t){return`${t}`}class y{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new y({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(_(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(_(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class b{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function v(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function w(t){return"undefined"!=typeof Blob&&t instanceof Blob}function C(t){return"undefined"!=typeof FormData&&t instanceof FormData}class x{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new b),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new x(n,i,r,{params:c,headers:l,context:u,reportProgress:a,responseType:s,withCredentials:o})}}var E=(()=>((E=E||{})[E.Sent=0]="Sent",E[E.UploadProgress=1]="UploadProgress",E[E.ResponseHeader=2]="ResponseHeader",E[E.DownloadProgress=3]="DownloadProgress",E[E.Response=4]="Response",E[E.User=5]="User",E))();class S{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class k extends S{constructor(t={}){super(t),this.type=E.ResponseHeader}clone(t={}){return new k({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class O extends S{constructor(t={}){super(t),this.type=E.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new O({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class T extends S{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function A(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let P=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof x)i=t;else{let s,r;s=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(r=n.params instanceof y?n.params:new y({fromObject:n.params})),i=new x(t,e,void 0!==n.body?n.body:null,{headers:s,context:n.context,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=(0,r.of)(i).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof x||"events"===n.observe)return s;const o=s.pipe((0,l.h)(t=>t instanceof O));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe((0,c.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe((0,c.U)(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new y).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,A(n,e))}post(t,e,n={}){return this.request("POST",t,A(n,e))}put(t,e,n={}){return this.request("PUT",t,A(n,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(u))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class I{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const R=new s.OlP("HTTP_INTERCEPTORS");let D=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const M=/^\)\]\}',?\n/;let L=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new k({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(M,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new O({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new T({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new T({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:E.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&!!n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:E.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:E.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const F=new s.OlP("XSRF_COOKIE_NAME"),N=new s.OlP("XSRF_HEADER_NAME");class B{}let U=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0),s.LFG(s.Lbi),s.LFG(F))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null!==i&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(B),s.LFG(N))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),q=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(R,[]);this.chain=t.reduceRight((t,e)=>new I(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Z,useClass:D}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:F,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Z,{provide:R,useExisting:Z,multi:!0},{provide:B,useClass:U},{provide:F,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[P,{provide:u,useClass:q},L,{provide:h,useExisting:L}],imports:[[j.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},3018:function(t,e,n){"use strict";n.d(e,{deG:function(){return un},tb:function(){return tc},AFp:function(){return $l},ip1:function(){return Gl},CZH:function(){return Kl},hGG:function(){return Gc},z2F:function(){return Nc},sBO:function(){return Wa},Sil:function(){return hc},_Vd:function(){return va},EJc:function(){return ic},SBq:function(){return Ea},qLn:function(){return Di},vpe:function(){return Tl},gxx:function(){return wr},tBr:function(){return Ln},XFs:function(){return R},OlP:function(){return cn},zs3:function(){return Fr},ZZ4:function(){return Va},aQg:function(){return za},soG:function(){return nc},YKP:function(){return ol},v3s:function(){return Uc},h0i:function(){return rl},PXZ:function(){return Rc},R0b:function(){return fc},FiY:function(){return Fn},Lbi:function(){return Xl},g9A:function(){return Jl},n_E:function(){return Pl},Qsj:function(){return Oa},FYo:function(){return ka},JOm:function(){return Fi},Tiy:function(){return Aa},q3G:function(){return Ei},tp0:function(){return Nn},EAV:function(){return jc},Rgc:function(){return el},dDg:function(){return wc},DyG:function(){return hn},GfV:function(){return Pa},s_b:function(){return ll},ifc:function(){return B},eFA:function(){return Dc},G48:function(){return Ac},Gpc:function(){return m},f3M:function(){return Pn},X6Q:function(){return Tc},_c5:function(){return zc},VLi:function(){return Ec},c2e:function(){return ec},zSh:function(){return xr},wAp:function(){return ra},vHH:function(){return y},EiD:function(){return Ci},mCW:function(){return oi},qzn:function(){return $n},JVY:function(){return Qn},pB0:function(){return ei},eBb:function(){return Xn},L6k:function(){return Jn},LAX:function(){return ti},cg1:function(){return na},Tjo:function(){return Hc},kL8:function(){return ia},yhl:function(){return Wn},dqk:function(){return V},sIi:function(){return Yr},CqO:function(){return po},QGY:function(){return uo},F4k:function(){return ho},RDi:function(){return Tt},AaK:function(){return d},z3N:function(){return Kn},qOj:function(){return Br},TTD:function(){return vt},_Bn:function(){return ga},xp6:function(){return xs},uIk:function(){return Wr},Tol:function(){return Do},Gre:function(){return Wo},ekj:function(){return Ro},Suo:function(){return jl},Xpm:function(){return tt},lG2:function(){return at},Yz7:function(){return x},cJS:function(){return E},oAB:function(){return st},Yjl:function(){return lt},Y36:function(){return eo},_UZ:function(){return oo},BQk:function(){return lo},ynx:function(){return ao},qZA:function(){return ro},TgZ:function(){return so},EpF:function(){return co},n5z:function(){return sn},Ikx:function(){return Qo},LFG:function(){return An},$8M:function(){return on},NdJ:function(){return fo},CRH:function(){return Vl},kcU:function(){return Ce},O4$:function(){return we},oxw:function(){return bo},ALo:function(){return Sl},lcZ:function(){return kl},Hsn:function(){return Co},F$t:function(){return wo},Q6J:function(){return no},s9C:function(){return xo},VKq:function(){return xl},iGM:function(){return Zl},MAs:function(){return to},CHM:function(){return Gt},oJD:function(){return Si},LSH:function(){return ki},kYT:function(){return rt},Udp:function(){return Io},WFA:function(){return mo},d8E:function(){return Jo},YNc:function(){return Xr},_uU:function(){return zo},Oqu:function(){return Yo},hij:function(){return Go},AsE:function(){return Ko},lnq:function(){return $o},Gf:function(){return ql}});var i=n(9765),s=n(5319),r=n(7574),o=n(6682),a=n(2441);var l=n(1307);function c(){return new i.xQ}function u(t){for(let e in t)if(t[e]===u)return e;throw Error("Could not find renamed property on target object.")}function h(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function d(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(d).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function p(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const f=u({__forward_ref__:u});function m(t){return t.__forward_ref__=m,t.toString=function(){return d(this())},t}function g(t){return _(t)?t():t}function _(t){return"function"==typeof t&&t.hasOwnProperty(f)&&t.__forward_ref__===m}class y extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function b(t){return"string"==typeof t?t:null==t?"":String(t)}function v(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():b(t)}function w(t,e){const n=e?` in ${e}`:"";throw new y("201",`No provider for ${v(t)} found${n}`)}function C(t,e){null==t&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${n} ${i} ${e} <=Actual]`))}(e,t,null,"!=")}function x(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function E(t){return{providers:t.providers||[],imports:t.imports||[]}}function S(t){return k(t,T)||k(t,P)}function k(t,e){return t.hasOwnProperty(e)?t[e]:null}function O(t){return t&&(t.hasOwnProperty(A)||t.hasOwnProperty(I))?t[A]:null}const T=u({"\u0275prov":u}),A=u({"\u0275inj":u}),P=u({ngInjectableDef:u}),I=u({ngInjectorDef:u});var R=(()=>((R=R||{})[R.Default=0]="Default",R[R.Host=1]="Host",R[R.Self=2]="Self",R[R.SkipSelf=4]="SkipSelf",R[R.Optional=8]="Optional",R))();let D;function M(t){const e=D;return D=t,e}function L(t,e,n){const i=S(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&R.Optional?null:void 0!==e?e:void w(d(t),"Injector")}function F(t){return{toString:t}.toString()}var N=(()=>((N=N||{})[N.OnPush=0]="OnPush",N[N.Default=1]="Default",N))(),B=(()=>((B=B||{})[B.Emulated=0]="Emulated",B[B.None=2]="None",B[B.ShadowDom=3]="ShadowDom",B))();const U="undefined"!=typeof globalThis&&globalThis,Z="undefined"!=typeof window&&window,q="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,V=U||j||Z||q,H={},z=[],Y=u({"\u0275cmp":u}),G=u({"\u0275dir":u}),K=u({"\u0275pipe":u}),$=u({"\u0275mod":u}),W=u({"\u0275loc":u}),Q=u({"\u0275fac":u}),J=u({__NG_ELEMENT_ID__:u});let X=0;function tt(t){return F(()=>{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===N.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||z,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||B.Emulated,id:"c",styles:t.styles||z,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=X++,n.inputs=ot(t.inputs,e),n.outputs=ot(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(et):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(nt):null,n})}function et(t){return ct(t)||function(t){return t[G]||null}(t)}function nt(t){return function(t){return t[K]||null}(t)}const it={};function st(t){return F(()=>{const e={type:t.type,bootstrap:t.bootstrap||z,declarations:t.declarations||z,imports:t.imports||z,exports:t.exports||z,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(it[t.id]=t.type),e})}function rt(t,e){return F(()=>{const n=ut(t,!0);n.declarations=e.declarations||z,n.imports=e.imports||z,n.exports=e.exports||z})}function ot(t,e){if(null==t)return H;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const at=tt;function lt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ct(t){return t[Y]||null}function ut(t,e){const n=t[$]||null;if(!n&&!0===e)throw new Error(`Type ${d(t)} does not have '\u0275mod' property.`);return n}function ht(t){return Array.isArray(t)&&"object"==typeof t[1]}function dt(t){return Array.isArray(t)&&!0===t[1]}function pt(t){return 0!=(8&t.flags)}function ft(t){return 2==(2&t.flags)}function mt(t){return 1==(1&t.flags)}function gt(t){return null!==t.template}function _t(t){return 0!=(512&t[2])}function yt(t,e){return t.hasOwnProperty(Q)?t[Q]:null}class bt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function vt(){return wt}function wt(t){return t.type.prototype.ngOnChanges&&(t.setInput=xt),Ct}function Ct(){const t=St(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===H)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function xt(t,e,n,i){const s=St(t)||function(t,e){return t[Et]=e}(t,{previous:H,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new bt(l&&l.currentValue,e,o===H),t[i]=e}vt.ngInherit=!0;const Et="__ngSimpleChanges__";function St(t){return t[Et]||null}const kt="http://www.w3.org/2000/svg";let Ot;function Tt(t){Ot=t}function At(){return void 0!==Ot?Ot:"undefined"!=typeof document?document:void 0}function Pt(t){return!!t.listen}const It={createRenderer:(t,e)=>At()};function Rt(t){for(;Array.isArray(t);)t=t[0];return t}function Dt(t,e){return Rt(e[t])}function Mt(t,e){return Rt(e[t.index])}function Lt(t,e){return t.data[e]}function Ft(t,e){return t[e]}function Nt(t,e){const n=e[t];return ht(n)?n:n[0]}function Bt(t){return 4==(4&t[2])}function Ut(t){return 128==(128&t[2])}function Zt(t,e){return null==e?null:t[e]}function qt(t){t[18]=0}function jt(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Vt={lFrame:fe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ht(){return Vt.bindingsEnabled}function zt(){return Vt.lFrame.lView}function Yt(){return Vt.lFrame.tView}function Gt(t){return Vt.lFrame.contextLView=t,t[8]}function Kt(){let t=$t();for(;null!==t&&64===t.type;)t=t.parent;return t}function $t(){return Vt.lFrame.currentTNode}function Wt(t,e){const n=Vt.lFrame;n.currentTNode=t,n.isParent=e}function Qt(){return Vt.lFrame.isParent}function Jt(){Vt.lFrame.isParent=!1}function Xt(){return Vt.isInCheckNoChangesMode}function te(t){Vt.isInCheckNoChangesMode=t}function ee(){const t=Vt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ne(){return Vt.lFrame.bindingIndex}function ie(){return Vt.lFrame.bindingIndex++}function se(t){const e=Vt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function re(t,e){const n=Vt.lFrame;n.bindingIndex=n.bindingRootIndex=t,oe(e)}function oe(t){Vt.lFrame.currentDirectiveIndex=t}function ae(t){const e=Vt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function le(){return Vt.lFrame.currentQueryIndex}function ce(t){Vt.lFrame.currentQueryIndex=t}function ue(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function he(t,e,n){if(n&R.SkipSelf){let i=e,s=t;for(;!(i=i.parent,null!==i||n&R.Host||(i=ue(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;e=i,t=s}const i=Vt.lFrame=pe();return i.currentTNode=e,i.lView=t,!0}function de(t){const e=pe(),n=t[1];Vt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function pe(){const t=Vt.lFrame,e=null===t?null:t.child;return null===e?fe(t):e}function fe(t){const e={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=e),e}function me(){const t=Vt.lFrame;return Vt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ge=me;function _e(){const t=me();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 ye(){return Vt.lFrame.selectedIndex}function be(t){Vt.lFrame.selectedIndex=t}function ve(){const t=Vt.lFrame;return Lt(t.tView,t.selectedIndex)}function we(){Vt.lFrame.currentNamespace=kt}function Ce(){Vt.lFrame.currentNamespace=null}function xe(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}class Ae{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Pe(t,e,n){const i=Pt(t);let s=0;for(;se){o=r-1;break}}}for(;r>16}(t),i=e;for(;n>0;)i=i[15],n--;return i}let Be=!0;function Ue(t){const e=Be;return Be=t,e}let Ze=0;function qe(t,e){const n=Ve(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,je(i.data,t),je(e,null),je(i.blueprint,null));const s=He(t,e),r=t.injectorIndex;if(Le(s)){const t=Fe(s),n=Ne(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function je(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ve(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function He(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function ze(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(i=n[J]),null==i&&(i=n[J]=Ze++);const s=255&i;e.data[t+(s>>5)]|=1<=0?255&e:We:e}(n);if("function"==typeof r){if(!he(e,t,i))return i&R.Host?Ye(s,n,i):Ge(e,n,i,s);try{const t=r(i);if(null!=t||i&R.Optional)return t;w(n)}finally{ge()}}else if("number"==typeof r){let s=null,o=Ve(t,e),a=-1,l=i&R.Host?e[16][6]:null;for((-1===o||i&R.SkipSelf)&&(a=-1===o?He(t,e):e[o+8],-1!==a&&en(i,!1)?(s=e[1],o=Fe(a),e=Ne(a,e)):o=-1);-1!==o;){const t=e[1];if(tn(r,o,t.data)){const t=Qe(o,e,n,s,i,l);if(t!==$e)return t}a=e[o+8],-1!==a&&en(i,e[1].data[o+8]===l)&&tn(r,o,e)?(s=t,o=Fe(a),e=Ne(a,e)):o=-1}}}return Ge(e,n,i,s)}const $e={};function We(){return new nn(Kt(),zt())}function Qe(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=Je(a,o,n,null==i?ft(a)&&Be:i!=o&&0!=(3&a.type),s&R.Host&&r===a);return null!==l?Xe(e,o,l,a):$e}function Je(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,u=s?a+c:t.directiveEnd;for(let h=i?a:a+c;h=l&&t.type===n)return h}if(s){const t=o[l];if(t&>(t)&&t.type===n)return l}return null}function Xe(t,e,n,i){let s=t[n];const r=e.data;if(function(t){return t instanceof Ae}(s)){const o=s;o.resolving&&function(t,e){throw new y("200",`Circular dependency in DI detected for ${t}`)}(v(r[n]));const a=Ue(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?M(o.injectImpl):null;he(t,i,R.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=wt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&M(l),Ue(a),o.resolving=!1,ge()}}return s}function tn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Q]||rn(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Q]||rn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function rn(t){return _(t)?()=>{const e=rn(g(t));return e&&e()}:yt(t)}function on(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty(an)?t[an]:Object.defineProperty(t,an,{value:[]})[an];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class cn{constructor(t,e){this._desc=t,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 un=new cn("AnalyzeForEntryComponents"),hn=Function;function dn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?pn(t,e):e(t))}function fn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function mn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function gn(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function yn(t,e){const n=bn(t,e);if(n>=0)return t[1|n]}function bn(t,e){return function(t,e,n){let i=0,s=t.length>>n;for(;s!==i;){const r=i+(s-i>>1),o=t[r<e?s=r:i=r+1}return~(s< ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):d(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(xn,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t[Cn]=null,t}const Ln=Rn(ln("Inject",t=>({token:t})),-1),Fn=Rn(ln("Optional"),8),Nn=Rn(ln("SkipSelf"),4);let Bn,Un;function Zn(t){var e;return(null===(e=function(){if(void 0===Bn&&(Bn=null,V.trustedTypes))try{Bn=V.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Bn}())||void 0===e?void 0:e.createHTML(t))||t}function qn(t){var e;return(null===(e=function(){if(void 0===Un&&(Un=null,V.trustedTypes))try{Un=V.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Un}())||void 0===e?void 0:e.createHTML(t))||t}class jn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Vn extends jn{getTypeName(){return"HTML"}}class Hn extends jn{getTypeName(){return"Style"}}class zn extends jn{getTypeName(){return"Script"}}class Yn extends jn{getTypeName(){return"URL"}}class Gn extends jn{getTypeName(){return"ResourceURL"}}function Kn(t){return t instanceof jn?t.changingThisBreaksApplicationSecurity:t}function $n(t,e){const n=Wn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Wn(t){return t instanceof jn&&t.getTypeName()||null}function Qn(t){return new Vn(t)}function Jn(t){return new Hn(t)}function Xn(t){return new zn(t)}function ti(t){return new Yn(t)}function ei(t){return new Gn(t)}class ni{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Zn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class ii{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Zn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Zn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0oi(t.trim())).join(", ")),this.buf.push(" ",e,'="',vi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();di.hasOwnProperty(e)&&!ci.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(vi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const yi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bi=/([^\#-~ |!])/g;function vi(t){return t.replace(/&/g,"&").replace(yi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(bi,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let wi;function Ci(t,e){let n=null;try{wi=wi||function(t){const e=new ii(t);return function(){try{return!!(new window.DOMParser).parseFromString(Zn(""),"text/html")}catch(t){return!1}}()?new ni(e):e}(t);let i=e?String(e):"";n=wi.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=wi.getInertBodyElement(i)}while(i!==r);return Zn((new _i).sanitizeChildren(xi(n)||n))}finally{if(n){const t=xi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function xi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ei=(()=>((Ei=Ei||{})[Ei.NONE=0]="NONE",Ei[Ei.HTML=1]="HTML",Ei[Ei.STYLE=2]="STYLE",Ei[Ei.SCRIPT=3]="SCRIPT",Ei[Ei.URL=4]="URL",Ei[Ei.RESOURCE_URL=5]="RESOURCE_URL",Ei))();function Si(t){const e=Oi();return e?qn(e.sanitize(Ei.HTML,t)||""):$n(t,"HTML")?qn(Kn(t)):Ci(At(),b(t))}function ki(t){const e=Oi();return e?e.sanitize(Ei.URL,t)||"":$n(t,"URL")?Kn(t):oi(b(t))}function Oi(){const t=zt();return t&&t[12]}const Ti="__ngContext__";function Ai(t,e){t[Ti]=e}function Pi(t){const e=function(t){return t[Ti]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ii(t){return t.ngOriginalError}function Ri(t,...e){t.error(...e)}class Di{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=(s=t)&&s.ngErrorLogger||Ri;var s;i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?t.ngDebugContext||this._findContext(Ii(t)):null}_findOriginalError(t){let e=t&&Ii(t);for(;e&&Ii(e);)e=Ii(e);return e||null}}const Mi=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(V))();function Li(t){return t instanceof Function?t():t}var Fi=(()=>((Fi=Fi||{})[Fi.Important=1]="Important",Fi[Fi.DashCase=2]="DashCase",Fi))();function Ni(t,e){return undefined(t,e)}function Bi(t){const e=t[3];return dt(e)?e[3]:e}function Ui(t){return qi(t[13])}function Zi(t){return qi(t[4])}function qi(t){for(;null!==t&&!dt(t);)t=t[4];return t}function ji(t,e,n,i,s){if(null!=i){let r,o=!1;dt(i)?r=i:ht(i)&&(o=!0,i=i[0]);const a=Rt(i);0===t&&null!==n?null==s?Wi(e,n,a):$i(e,n,a,s||null,!0):1===t&&null!==n?$i(e,n,a,s||null,!0):2===t?function(t,e,n){const i=Ji(t,e);i&&function(t,e,n,i){Pt(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==Rt(n)&&ji(e,t,i,r,s);for(let o=10;o0&&(t[n-1][4]=i[4]);const r=mn(t,10+e);!function(t,e){os(t,e,e[11],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Yi(t,e){if(!(256&e[2])){const n=e[11];Pt(n)&&n.destroyNode&&os(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Gi(t[1],t);for(;e;){let n=null;if(ht(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ht(e)&&Gi(e[1],e),e=e[3];null===e&&(e=t),ht(e)&&Gi(e[1],e),n=e&&e[4]}e=n}}(e)}}function Gi(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?i[s=l]():i[s=-l].unsubscribe(),r+=2}else{const t=i[s=n[r+1]];n[r].call(t)}if(null!==i){for(let t=s+1;tr?"":s[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==us(e,c,0)||2&i&&c!==t){if(gs(i))return!1;o=!0}}}}else{if(!o&&!gs(i)&&!gs(l))return!1;if(o&&gs(l))continue;o=!1,i=l|1&i}}return gs(i)||o}function gs(t){return 0==(1&t)}function _s(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""!==s&&!gs(o)&&(e+=vs(r,s),s=""),i=o,r=r||!gs(i);n++}return""!==s&&(e+=vs(r,s)),e}const Cs={};function xs(t){Es(Yt(),zt(),ye()+t,Xt())}function Es(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ee(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Se(e,i,0,n)}be(n)}function Ss(t,e){return t<<17|e<<2}function ks(t){return t>>17&32767}function Os(t){return 2|t}function Ts(t){return(131068&t)>>2}function As(t,e){return-131069&t|e<<2}function Ps(t){return 1|t}function Is(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i20&&Es(t,e,20,Xt()),n(i,s)}finally{be(r)}}function Us(t,e,n){if(pt(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function $s(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ws(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Qs(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&or(n)}}function or(t){for(let n=Ui(t);null!==n;n=Zi(n))for(let t=10;t0&&or(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&or(i)}}function ar(t,e){const n=Nt(e,t),i=n[1];(function(t,e){for(let n=e.length;nPromise.resolve(null))();function fr(t){return t[7]||(t[7]=[])}function mr(t){return t.cleanup||(t.cleanup=[])}function gr(t,e,n){return(null===t||gt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function _r(t,e){const n=t[9],i=n?n.get(Di,null):null;i&&i.handleError(e)}function yr(t,e,n,i,s){for(let r=0;rthis.processProvider(n,t,e)),pn([t],t=>this.processInjectorType(t,[],s)),this.records.set(wr,Rr(void 0,this));const r=this.records.get(xr);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:d(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=vn,n=R.Default){this.assertNotDestroyed();const i=On(this),s=M(void 0);try{if(!(n&R.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof cn)&&S(t);e=n&&this.injectableDefInScope(n)?Rr(Pr(t),Er):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&R.Self?Or():this.parent).get(t,e=n&R.Optional&&e===vn?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Cn]=o[Cn]||[]).unshift(d(t)),i)throw o;return Mn(o,t,"R3InjectorError",this.source)}throw o}finally{M(s),On(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(d(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=g(t)))return!1;let i=O(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=O(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{pn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||z))}}this.injectorDefTypes.add(r);const a=yt(r)||(()=>new r);this.records.set(r,Rr(a,Er));const l=i.providers;if(null!=l&&!o){const e=t;pn(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=Mr(t=g(t))?t:g(t&&t.provide);const s=Dr(r=t)?Rr(void 0,r.useValue):Rr(Ir(r),Er);var r;if(Mr(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Rr(void 0,Er,!0),e.factory=()=>In(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){return e.value===Er&&(e.value=Sr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value;var n}injectableDefInScope(t){if(!t.providedIn)return!1;const e=g(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Pr(t){const e=S(t),n=null!==e?e.factory:yt(t);if(null!==n)return n;if(t instanceof cn)throw new Error(`Token ${d(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=gn(e,"?");throw new Error(`Can't resolve all parameters for ${d(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[T]||t[P]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" 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 "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Ir(t,e,n){let i;if(Mr(t)){const e=g(t);return yt(e)||Pr(e)}if(Dr(t))i=()=>g(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...In(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>An(g(t.useExisting));else{const e=g(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return yt(e)||Pr(e);i=()=>new e(...In(t.deps))}return i}function Rr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Dr(t){return null!==t&&"object"==typeof t&&Sn in t}function Mr(t){return"function"==typeof t}const Lr=function(t,e,n){return function(t,e=null,n=null,i){const s=Tr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};class Fr{static create(t,e){return Array.isArray(t)?Lr(t,e,""):Lr(t.providers,t.parent,t.name||"")}}function Nr(t,e){xe(Pi(t)[1],Kt())}function Br(t){let e=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const i=[t];for(;e;){let s;if(gt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=Ur(t.inputs),e.declaredInputs=Ur(t.declaredInputs),e.outputs=Ur(t.outputs);const n=s.hostBindings;n&&jr(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&Zr(t,r),o&&qr(t,o),h(t.inputs,s.inputs),h(t.declaredInputs,s.declaredInputs),h(t.outputs,s.outputs),gt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=De(s.hostAttrs,n=De(n,s.hostAttrs))}}(i)}function Ur(t){return t===H?{}:t===z?[]:t}function Zr(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function qr(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function jr(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}Fr.THROW_IF_NOT_FOUND=vn,Fr.NULL=new Cr,Fr.\u0275prov=x({token:Fr,providedIn:"any",factory:()=>An(wr)}),Fr.__NG_ELEMENT_ID__=-1;let Vr=null;function Hr(){if(!Vr){const t=V.Symbol;if(t&&t.iterator)Vr=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Rt(t[i.index])):i.index;if(Pt(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,d=!1;else{r=yo(i,e,u,r,!1);const t=n.listen(f,s,r);h.push(r,t),c&&c.push(s,g,m,m+1)}}else r=yo(i,e,u,r,!0),f.addEventListener(s,r,o),h.push(r),c&&c.push(s,g,m,o)}else r=yo(i,e,u,r,!1);const p=i.outputs;let f;if(d&&null!==p&&(f=p[s])){const t=f.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Vt.lFrame.contextLView))[8]}(t)}function vo(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Oo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function To(t){return t.substring(Oo.key,Oo.keyEnd)}function Ao(t,e){const n=Oo.textEnd;return n===e?-1:(e=Oo.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Oo.key=e,n),Po(t,e,n))}function Po(t,e,n){for(;e=0;n=Ao(e,n))_n(t,To(e),!0)}function Lo(t,e,n,i){const s=zt(),r=Yt(),o=se(2);r.firstUpdatePass&&Bo(r,t,o,i),e!==Cs&&Kr(s,o,e)&&qo(r,r.data[ye()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=d(Kn(t)))),t}(e,n),i,o)}function Fo(t,e,n,i){const s=Yt(),r=se(2);s.firstUpdatePass&&Bo(s,null,r,i);const o=zt();if(n!==Cs&&Kr(o,r,n)){const a=s.data[ye()];if(Ho(a,i)&&!No(s,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=p(t,n||"")),io(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===Cs&&(s=z);let l=0,c=0,u=0=t.expandoStartIndex}function Bo(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[ye()],o=No(t,n);Ho(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=ae(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=Zo(n=Uo(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=Uo(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Ts(i))return t[ks(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Uo(null,t,e,n[1],i),n=Zo(n,e.attrs,i),function(t,e,n,i){t[ks(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=ks(t[a+1]);t[i+1]=Ss(e,a),0!==e&&(t[e+1]=As(t[e+1],i)),t[a+1]=function(t,e){return 131071&t|e<<17}(t[a+1],i)}else t[i+1]=Ss(a,0),0!==a&&(t[a+1]=As(t[a+1],i)),a=i;else t[i+1]=Ss(l,0),0===a?a=i:t[l+1]=As(t[l+1],i),l=i;u&&(t[i+1]=Os(t[i+1])),So(t,c,i,!0),So(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&bn(r,e)>=0&&(n[i+1]=Ps(n[i+1]))}(e,c,t,i,r),o=Ss(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function Uo(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let u=n[s+1];u===Cs&&(u=c?z:void 0);let h=c?yn(u,i):l===i?u:void 0;if(r&&!Vo(h)&&(h=yn(e,i)),Vo(h)&&(a=h,o))return a;const d=t[s+1];s=o?ks(d):Ts(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=yn(t,i))}return a}function Vo(t){return void 0!==t}function Ho(t,e){return 0!=(t.flags&(e?16:32))}function zo(t,e=""){const n=zt(),i=Yt(),s=t+20,r=i.firstCreatePass?Ds(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return Pt(t)?t.createText(e):t.createTextNode(e)}(n[11],e);es(i,n,o,r),Wt(r,!1)}function Yo(t){return Go("",t,""),Yo}function Go(t,e,n){const i=zt(),s=Qr(i,t,e,n);return s!==Cs&&br(i,ye(),s),Go}function Ko(t,e,n,i,s){const r=zt(),o=function(t,e,n,i,s,r){const o=$r(t,ne(),n,s);return se(2),o?e+b(n)+i+b(s)+r:Cs}(r,t,e,n,i,s);return o!==Cs&&br(r,ye(),o),Ko}function $o(t,e,n,i,s,r,o){const a=zt(),l=Jr(a,t,e,n,i,s,r,o);return l!==Cs&&br(a,ye(),l),$o}function Wo(t,e,n){Fo(_n,Mo,Qr(zt(),t,e,n),!0)}function Qo(t,e,n){const i=zt();return Kr(i,ie(),e)&&Ys(Yt(),ve(),i,t,e,i[11],n,!0),Qo}function Jo(t,e,n){const i=zt();if(Kr(i,ie(),e)){const s=Yt(),r=ve();Ys(s,r,i,t,e,gr(ae(s.data),r,i),n,!0)}return Jo}const Xo=void 0;var ta=["en",[["a","p"],["AM","PM"],Xo],[["AM","PM"],Xo,Xo],[["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"]],Xo,[["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"]],Xo,[["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}",Xo,"{1} 'at' {0}",Xo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ea={};function na(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=sa(e);if(n)return n;const i=e.split("-")[0];if(n=sa(i),n)return n;if("en"===i)return ta;throw new Error(`Missing locale data for the locale "${t}".`)}function ia(t){return na(t)[ra.PluralCase]}function sa(t){return t in ea||(ea[t]=V.ng&&V.ng.common&&V.ng.common.locales&&V.ng.common.locales[t]),ea[t]}var ra=(()=>((ra=ra||{})[ra.LocaleId=0]="LocaleId",ra[ra.DayPeriodsFormat=1]="DayPeriodsFormat",ra[ra.DayPeriodsStandalone=2]="DayPeriodsStandalone",ra[ra.DaysFormat=3]="DaysFormat",ra[ra.DaysStandalone=4]="DaysStandalone",ra[ra.MonthsFormat=5]="MonthsFormat",ra[ra.MonthsStandalone=6]="MonthsStandalone",ra[ra.Eras=7]="Eras",ra[ra.FirstDayOfWeek=8]="FirstDayOfWeek",ra[ra.WeekendRange=9]="WeekendRange",ra[ra.DateFormat=10]="DateFormat",ra[ra.TimeFormat=11]="TimeFormat",ra[ra.DateTimeFormat=12]="DateTimeFormat",ra[ra.NumberSymbols=13]="NumberSymbols",ra[ra.NumberFormats=14]="NumberFormats",ra[ra.CurrencyCode=15]="CurrencyCode",ra[ra.CurrencySymbol=16]="CurrencySymbol",ra[ra.CurrencyName=17]="CurrencyName",ra[ra.Currencies=18]="Currencies",ra[ra.Directionality=19]="Directionality",ra[ra.PluralCase=20]="PluralCase",ra[ra.ExtraData=21]="ExtraData",ra))();const oa="en-US";let aa=oa;function la(t){C(t,"Expected localeId to be defined"),"string"==typeof t&&(aa=t.toLowerCase().replace(/_/g,"-"))}function ca(t,e,n,i,s){if(t=g(t),Array.isArray(t))for(let r=0;r>20;if(Mr(t)||!t.multi){const i=new Ae(l,s,eo),p=da(a,e,s?u:u+d,h);-1===p?(ze(qe(c,o),r,a),ua(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=da(a,e,u+d,h),f=da(a,e,u,u+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){ze(qe(c,o),r,a);const u=function(t,e,n,i,s){const r=new Ae(t,n,eo);return r.multi=[],r.index=e,r.componentProviders=0,ha(r,s,i&&!n),r}(s?fa:pa,n.length,s,i,l);!s&&g&&(n[f].providerFactory=u),ua(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else ua(r,t,p>-1?p:f,ha(n[s?f:p],l,!s&&i));!s&&i&&g&&n[f].componentProviders++}}}function ua(t,e,n,i){const s=Mr(e);if(s||function(t){return!!t.useClass}(e)){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function ha(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function da(t,e,n,i){for(let s=n;s{n.providersResolver=(n,i)=>function(t,e,n){const i=Yt();if(i.firstCreatePass){const s=gt(t);ca(n,i.data,i.blueprint,s,!0),ca(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class _a{}const ya="ngComponent";class ba{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${d(t)}. Did you add it to @NgModule.entryComponents?`);return e[ya]=t,e}(t)}}class va{}function wa(...t){}function Ca(t,e){return new Ea(Mt(t,e))}va.NULL=new ba;const xa=function(){return Ca(Kt(),zt())};let Ea=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=xa,t})();function Sa(t){return t instanceof Ea?t.nativeElement:t}class ka{}let Oa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ta(),t})();const Ta=function(){const t=zt(),e=Nt(Kt().index,t);return function(t){return t[11]}(ht(e)?e:t)};let Aa=(()=>{class t{}return t.\u0275prov=x({token:t,providedIn:"root",factory:()=>null}),t})();class Pa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ia=new Pa("12.2.4");class Ra{constructor(){}supports(t){return Yr(t)}create(t){return new Ma(t)}}const Da=(t,e)=>e;class Ma{constructor(t){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=t||Da}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):t=this._addAfter(new La(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Na),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Na),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class La{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Fa{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Na{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Fa,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ba(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new qa(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class qa{constructor(t){this.key=t,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 ja(){return new Va([new Ra])}let Va=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||ja()),deps:[[t,new Nn,new Fn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${function(t){return t.name||typeof t}(t)}'`)}}return t.\u0275prov=x({token:t,providedIn:"root",factory:ja}),t})();function Ha(){return new za([new Ua])}let za=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ha()),deps:[[t,new Nn,new Fn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=x({token:t,providedIn:"root",factory:Ha}),t})();function Ya(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(Rt(r)),dt(r))for(let t=10;t-1&&(zi(t,n),mn(e,n))}this._attachedToViewContainer=!1}Yi(this._lView[1],this._lView)}onDestroy(t){Hs(this._lView[1],this._lView,null,t)}markForCheck(){cr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ur(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){te(!0);try{ur(t,e,n)}finally{te(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,os(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ka extends Ga{constructor(t){super(t),this._view=t}detectChanges(){hr(this._view)}checkNoChanges(){!function(t){te(!0);try{hr(t)}finally{te(!1)}}(this._view)}get context(){return null}}const $a=function(t){return function(t,e,n){if(ft(t)&&!n){const n=Nt(t.index,e);return new Ga(n,n)}return 47&t.type?new Ga(e[16],e):null}(Kt(),zt(),16==(16&t))};let Wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=$a,t})();const Qa=[new Ua],Ja=new Va([new Ra]),Xa=new za(Qa),tl=function(){return sl(Kt(),zt())};let el=(()=>{class t{}return t.__NG_ELEMENT_ID__=tl,t})();const nl=el,il=class extends nl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Rs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Ls(e,n,t),new Ga(n)}};function sl(t,e){return 4&t.type?new il(e,t,Ca(t,e)):null}class rl{}class ol{}const al=function(){return pl(Kt(),zt())};let ll=(()=>{class t{}return t.__NG_ELEMENT_ID__=al,t})();const cl=ll,ul=class extends cl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Ca(this._hostTNode,this._hostLView)}get injector(){return new nn(this._hostTNode,this._hostLView)}get parentInjector(){const t=He(this._hostTNode,this._hostLView);if(Le(t)){const e=Ne(t,this._hostLView),n=Fe(t);return new nn(e[1].data[n+8],e)}return new nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=hl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(rl,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(dt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new ul(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=10+i,r=n.length;i>0&&(n[s-1][4]=e),iMi});class yl extends _a{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ws).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return gl(this.componentDef.inputs)}get outputs(){return gl(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,fl,s);return r!==fl||i===fl?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(ka,It),o=s.get(Aa,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Pt(t))return t.selectRootElement(e,n===B.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Vi(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?kt:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h=function(t,e){return{components:[],scheduler:t||Mi,clean:pr,playerHandler:e||null,flags:0}}(),d=Vs(0,null,null,1,0,null,null,null,null,null),p=Rs(null,d,h,u,null,null,r,a,o,s);let f,m;de(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=Ds(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(vr(a,l,!0),null!==t&&(Pe(s,t,l),null!==a.classes&&cs(s,t,a.classes),null!==a.styles&&ls(s,t,a.styles)));const c=i.createRenderer(t,e),u=Rs(n,js(e),null,e.onPush?64:16,n[20],a,i,c,r||null,null);return o.firstCreatePass&&(ze(qe(a,n),o,e.type),Ws(o,a),Js(a,n.length,1)),lr(n,u),n[20]=u}(c,this.componentDef,p,r,a);if(c)if(n)Pe(a,c,["ng-version",Ia.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i0&&cs(a,c,e.join(" "))}if(m=Lt(d,20),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Kt();e.contentQueries(1,o,t.directiveStart)}const a=Kt();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(be(a.index),Ks(n[1],a,0,a.directiveStart,a.directiveEnd,e),$s(e,o)),o}(t,this.componentDef,p,h,[Nr]),Ls(d,p,null)}finally{_e()}return new bl(this.componentType,f,Ca(m,p),p,m)}}class bl extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Ka(i),this.componentType=t}get injector(){return new nn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const vl=new Map;class wl extends rl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ml(this);const n=ut(t),i=t[W]||null;i&&la(i),this._bootstrapComponents=Li(n.bootstrap),this._r3Injector=Tr(t,e,[{provide:rl,useValue:this},{provide:va,useValue:this.componentFactoryResolver}],d(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Fr.THROW_IF_NOT_FOUND,n=R.Default){return t===Fr||t===rl||t===wr?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Cl extends ol{constructor(t){super(),this.moduleType=t,null!==ut(t)&&function(t){const e=new Set;!function t(n){const i=ut(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${d(e)} vs ${d(e.name)}`)}(s,vl.get(s),n),vl.set(s,n));const r=Li(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new wl(this.moduleType,t)}}function xl(t,e,n,i){return El(zt(),ee(),t,e,n,i)}function El(t,e,n,i,s,r){const o=e+n;return Kr(t,o,s)?function(t,e,n){return t[e]=n}(t,o+1,r?i.call(r,s):i(s)):function(t,e){const n=t[e];return n===Cs?void 0:n}(t,o+1)}function Sl(t,e){const n=Yt();let i;const s=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new y("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=yt(i.type)),o=M(eo);try{const t=Ue(!1),e=r();return Ue(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,zt(),s,e),e}finally{M(o)}}function kl(t,e,n){const i=t+20,s=zt(),r=Ft(s,i);return function(t,e){zr.isWrapped(e)&&(e=zr.unwrap(e),t[ne()]=Cs);return e}(s,function(t,e){return t[1].data[e].pure}(s,i)?El(s,ee(),e,r.transform,n,r):r.transform(n))}function Ol(t){return e=>{setTimeout(t,void 0,e)}}const Tl=class extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,r,o;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),l=null===(r=e.error)||void 0===r?void 0:r.bind(e),c=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(l=Ol(l),a&&(a=Ol(a)),c&&(c=Ol(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof s.w&&t.add(u),u}};function Al(){return this._results[Hr()]()}class Pl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Hr(),n=Pl.prototype;n[e]||(n[e]=Al)}get changes(){return this._changes||(this._changes=new Tl)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=dn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=wa,this.reject=wa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(An(Gl,8))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const $l=new cn("AppId"),Wl={provide:$l,useFactory:function(){return`${Ql()}${Ql()}${Ql()}`},deps:[]};function Ql(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Jl=new cn("Platform Initializer"),Xl=new cn("Platform ID"),tc=new cn("appBootstrapListener");let ec=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const nc=new cn("LocaleId"),ic=new cn("DefaultCurrencyCode");class sc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const rc=function(t){return new Cl(t)},oc=rc,ac=function(t){return Promise.resolve(rc(t))},lc=function(t){const e=rc(t),n=Li(ut(t).declarations).reduce((t,e)=>{const n=ct(e);return n&&t.push(new yl(n)),t},[]);return new sc(e,n)},cc=lc,uc=function(t){return Promise.resolve(lc(t))};let hc=(()=>{class t{constructor(){this.compileModuleSync=oc,this.compileModuleAsync=ac,this.compileModuleAndAllComponentsSync=cc,this.compileModuleAndAllComponentsAsync=uc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const dc=(()=>Promise.resolve(0))();function pc(t){"undefined"==typeof Zone?dc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class fc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Tl(!1),this.onMicrotaskEmpty=new Tl(!1),this.onStable=new Tl(!1),this.onError=new Tl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=V.requestAnimationFrame,e=V.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(V,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,_c(t),t.isCheckStableRunning=!0,gc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),_c(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,r,o,a)=>{try{return yc(t),n.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),bc(t)}},onInvoke:(n,i,s,r,o,a,l)=>{try{return yc(t),n.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),bc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,_c(t),gc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!fc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(fc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,mc,wa,wa);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const mc={};function gc(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 _c(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function yc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bc(t){t._nesting--,gc(t)}class vc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Tl,this.onMicrotaskEmpty=new Tl,this.onStable=new Tl,this.onError=new Tl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let wc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{fc.assertNotInAngularZone(),pc(()=>{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())pc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!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(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(An(fc))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),Cc=(()=>{class t{constructor(){this._applications=new Map,Sc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Sc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();class xc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Ec(t){Sc=t}let Sc=new xc,kc=!0,Oc=!1;function Tc(){return Oc=!0,kc}function Ac(){if(Oc)throw new Error("Cannot enable prod mode after platform setup.");kc=!1}let Pc;const Ic=new cn("AllowMultipleToken");class Rc{constructor(t,e){this.name=t,this.token=e}}function Dc(t,e,n=[]){const i=`Platform: ${e}`,s=new cn(i);return(e=[])=>{let r=Mc();if(!r||r.injector.get(Ic,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:xr,useValue:"platform"});!function(t){if(Pc&&!Pc.destroyed&&!Pc.injector.get(Ic,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Pc=t.get(Lc);const e=t.get(Jl,null);e&&e.forEach(t=>t())}(Fr.create({providers:t,name:i}))}return function(t){const e=Mc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Mc(){return Pc&&!Pc.destroyed?Pc:null}let Lc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new vc:("zone.js"===t?void 0:t)||new fc({enableLongStackTrace:Tc(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:fc,useValue:n}];return n.run(()=>{const s=Fr.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(s),o=r.injector.get(Di,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{o.handleError(t)}});r.onDestroy(()=>{Bc(this._modules,r),t.unsubscribe()})}),function(t,n,i){try{const e=i();return uo(e)?e.catch(e=>{throw n.runOutsideAngular(()=>t.handleError(e)),e}):e}catch(e){throw n.runOutsideAngular(()=>t.handleError(e)),e}}(o,n,()=>{const t=r.injector.get(Kl);return t.runInitializers(),t.donePromise.then(()=>(la(r.injector.get(nc,oa)||oa),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=Fc({},e);return function(t,e,n){const i=new Cl(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Nc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${d(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(An(Fr))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function Fc(t,e){return Array.isArray(e)?e.reduce(Fc,t):Object.assign(Object.assign({},t),e)}let Nc=(()=>{class t{constructor(t,e,n,i,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=s,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 u=new r.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),h=new r.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{fc.assertNotInAngularZone(),pc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{fc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=(0,o.T)(u,h.pipe(t=>(0,l.x)()(function(t,e){return function(e){let n;n="function"==typeof t?t:function(){return t};const i=Object.create(e,a.N);return i.source=e,i.subjectFactory=n,i}}(c)(t))))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof _a?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=function(t){return t.isBoundToModule}(n)?void 0:this._injector.get(rl),s=n.create(Fr.NULL,[],e||n.selector,i),r=s.location.nativeElement,o=s.injector.get(wc,null),a=o&&s.injector.get(Cc);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Bc(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Bc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(tc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(An(fc),An(Fr),An(Di),An(va),An(Kl))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function Bc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Uc{}class Zc{}const qc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let jc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||qc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(8255)(e).then(t=>t[i]).then(t=>Vc(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>Vc(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(An(hc),An(Zc,8))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function Vc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Hc=function(t){return null},zc=Dc(null,"core",[{provide:Xl,useValue:"unknown"},{provide:Lc,deps:[Fr]},{provide:Cc,deps:[]},{provide:ec,deps:[]}]),Yc=[{provide:Nc,useClass:Nc,deps:[fc,Fr,Di,va,Kl]},{provide:_l,deps:[fc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Kl,useClass:Kl,deps:[[new Fn,Gl]]},{provide:hc,useClass:hc,deps:[]},Wl,{provide:Va,useFactory:function(){return Ja},deps:[]},{provide:za,useFactory:function(){return Xa},deps:[]},{provide:nc,useFactory:function(t){return la(t=t||"undefined"!=typeof $localize&&$localize.locale||oa),t},deps:[[new Ln(nc),new Fn,new Nn]]},{provide:ic,useValue:"USD"}];let Gc=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(An(Nc))},t.\u0275mod=st({type:t}),t.\u0275inj=E({providers:Yc}),t})()},665:function(t,e,n){"use strict";n.d(e,{Zs:function(){return ct},sg:function(){return rt},u5:function(){return ht},Cf:function(){return h},JU:function(){return u},a5:function(){return A},JL:function(){return P},F:function(){return et},_Y:function(){return nt}});var i=n(3018),s=(n(8583),n(7574)),r=n(9796),o=n(8002),a=n(1555),l=n(4402);function c(t,e){return new s.y(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a{u||(u=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,(r===i||!u)&&(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}const u=new i.OlP("NgValueAccessor");const h=new i.OlP("NgValidators"),d=new i.OlP("NgAsyncValidators");function p(t){return null!=t}function f(t){const e=(0,i.QGY)(t)?(0,l.D)(t):t;return(0,i.CqO)(e),e}function m(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function g(t,e){return e.map(e=>e(t))}function _(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function y(t){return null!=t?function(t){if(!t)return null;const e=t.filter(p);return 0==e.length?null:function(t){return m(g(t,e))}}(_(t)):null}function b(t){return null!=t?function(t){if(!t)return null;const e=t.filter(p);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if((0,r.k)(e))return c(e,null);if((0,a.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&(0,r.k)(t[0])?t[0]:t,null).pipe((0,o.U)(t=>e(...t)))}return c(t,null)}(g(t,e).map(f)).pipe((0,o.U)(m))}}(_(t)):null}function v(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function w(t){return t._rawValidators}function C(t){return t._rawAsyncValidators}function x(t){return t?Array.isArray(t)?t:[t]:[]}function E(t,e){return Array.isArray(t)?t.includes(e):t===e}function S(t,e){const n=x(e);return x(t).forEach(t=>{E(n,t)||n.push(t)}),n}function k(t,e){return x(e).filter(e=>!E(t,e))}let O=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=y(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=b(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t}),t})(),T=(()=>{class t extends O{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();class A extends O{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let P=(()=>{class t extends class{constructor(t){this._cd=t}is(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(T,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[i.qOj]}),t})();function I(t,e){M(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&F(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&F(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function R(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),L(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function D(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function M(t,e){const n=w(t);null!==e.validator?t.setValidators(v(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const i=C(t);null!==e.asyncValidator?t.setAsyncValidators(v(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const s=()=>t.updateValueAndValidity();D(e._rawValidators,s),D(e._rawAsyncValidators,s)}function L(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=w(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.validator);s.length!==i.length&&(n=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const i=C(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.asyncValidator);s.length!==i.length&&(n=!0,t.setAsyncValidators(s))}}}const i=()=>{};return D(e._rawValidators,i),D(e._rawAsyncValidators,i),n}function F(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function N(t,e){M(t,e)}function B(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function U(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Z="VALID",q="INVALID",j="PENDING",V="DISABLED";function H(t){return(K(t)?t.validators:t)||null}function z(t){return Array.isArray(t)?y(t):t||null}function Y(t,e){return(K(e)?e.asyncValidators:t)||null}function G(t){return Array.isArray(t)?b(t):t||null}function K(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ${constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=z(this._rawValidators),this._composedAsyncValidatorFn=G(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Z}get invalid(){return this.status===q}get pending(){return this.status==j}get disabled(){return this.status===V}get enabled(){return this.status!==V}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=z(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=G(t)}addValidators(t){this.setValidators(S(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(S(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(k(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(k(t,this._rawAsyncValidators))}hasValidator(t){return E(this._rawValidators,t)}hasAsyncValidator(t){return E(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=j,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=V,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Z,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Z||this.status===j)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?V:Z}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=j,this._hasOwnPendingAsyncValidator=!0;const e=f(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let i=t;return e.forEach(t=>{i=i instanceof Q?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof J&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?V:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(j)?j:this._anyControlsHaveStatus(q)?q:Z}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){K(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class W extends ${constructor(t=null,e,n){super(H(e),Y(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){U(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){U(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Q extends ${constructor(t,e,n){super(H(e),Y(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof W?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class J extends ${constructor(t,e,n){super(H(e),Y(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof W?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const X={provide:T,useExisting:(0,i.Gpc)(()=>et)},tt=(()=>Promise.resolve(null))();let et=(()=>{class t extends T{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.vpe,this.form=new Q({},y(t),b(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){tt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),I(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){tt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),U(this._directives,t)})}addFormGroup(t){tt.then(()=>{const e=this._findContainer(t.path),n=new Q({});N(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){tt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){tt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,B(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h,10),i.Y36(d,10))},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([X]),i.qOj]}),t})(),nt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),it=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const st={provide:T,useExisting:(0,i.Gpc)(()=>rt)};let rt=(()=>{class t extends T{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(L(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return I(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){R(t.control||null,t,!1),U(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,B(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(R(e||null,t),n instanceof W&&(I(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);N(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return L(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){M(this.form,this),this._oldForm&&L(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h,10),i.Y36(d,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([st]),i.qOj,i.TTD]}),t})();const ot={provide:h,useExisting:(0,i.Gpc)(()=>lt),multi:!0},at={provide:h,useExisting:(0,i.Gpc)(()=>ct),multi:!0};let lt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?function(t){return function(t){return null==t||0===t.length}(t.value)?{required:!0}:null}(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[i._Bn([ot])]}),t})(),ct=(()=>{class t extends lt{validate(t){return this.required?function(t){return!0===t.value?null:{required:!0}}(t):null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},features:[i._Bn([at]),i.qOj]}),t})(),ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[it]]}),t})(),ht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[ut]}),t})()},1095:function(t,e,n){"use strict";n.d(e,{zs:function(){return p},lW:function(){return d},ot:function(){return f}});var i=n(2458),s=n(6237),r=n(3018),o=n(9238);const a=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",u=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],h=(0,i.pj)((0,i.Id)((0,i.Kr)(class{constructor(t){this._elementRef=t}})));let d=(()=>{class t extends h{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of u)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(o.tE),r.Y36(s.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&r.Gf(i.wG,5),2&t){let t;r.iGM(t=r.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(r.uIk("disabled",e.disabled||null),r.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1),r._UZ(3,"span",2)),2&t&&(r.xp6(2),r.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[c],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t extends d{constructor(t,e,n){super(e,t,n)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(o.tE),r.Y36(r.SBq),r.Y36(s.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._haltDisabledEvents(t)}),2&t&&(r.uIk("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),r.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[r.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1),r._UZ(3,"span",2)),2&t&&(r.xp6(2),r.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[c],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[i.si,i.BQ],i.BQ]}),t})()},2458:function(t,e,n){"use strict";n.d(e,{rD:function(){return S},K7:function(){return q},HF:function(){return N},BQ:function(){return b},ey:function(){return z},Ng:function(){return K},wG:function(){return D},si:function(){return M},CB:function(){return Y},jH:function(){return G},pj:function(){return w},Kr:function(){return C},Id:function(){return v},FD:function(){return E},sb:function(){return x}});var i=n(3018),s=n(9238),r=n(946);const o=new i.GfV("12.2.4");var a=n(8583),l=n(9490),c=n(9765),u=n(521),h=n(6237),d=n(6461);function p(t,e){if(1&t&&i._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=i.oxw();i.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function f(t,e){if(1&t&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.hij("(",t.group.label,")")}}const m=["*"],g=new i.GfV("12.2.4"),_=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let y,b=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checkIsEnabled(t){return!(!(0,i.X6Q)()||this._isTestEnv())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&g.full!==o.full&&console.warn("The Angular Material version ("+g.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.qm),i.LFG(_,8),i.LFG(a.K0))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[r.vT],r.vT]}),t})();function v(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}}}function w(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function C(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,l.Ig)(t)}}}function x(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?(0,l.su)(t):this.defaultTabIndex}}}function E(t){return class extends t{constructor(...t){super(...t),this.stateChanges=new c.xQ,this.errorState=!1}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}try{y="undefined"!=typeof Intl}catch($){y=!1}let S=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();class k{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const O={enterDuration:225,exitDuration:150},T=(0,u.i$)({passive:!0}),A=["mousedown","touchstart"],P=["mouseup","mouseleave","touchend","touchcancel"];class I{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=(0,l.fI)(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},O),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new k(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,!n.persistent&&(!t||!this._isPointerDown)&&u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},O),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=(0,l.fI)(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(A))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(P),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=(0,s.X6)(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,T)})})}_removeTriggerEvents(){this._triggerElement&&(A.forEach(t=>{this._triggerElement.removeEventListener(t,this,T)}),this._pointerUpEventsRegistered&&P.forEach(t=>{this._triggerElement.removeEventListener(t,this,T)}))}}const R=new i.OlP("mat-ripple-global-options");let D=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new I(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(u.t4),i.Y36(R,8),i.Y36(h.Qb,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[b,u.ud],b]}),t})(),L=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h.Qb,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[b]]}),t})();const N=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),B=v(class{});let U=0,Z=(()=>{class t extends B{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+U++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(N,8))},t.\u0275dir=i.lG2({type:t,inputs:{label:"label"},features:[i.qOj]}),t})();const q=new i.OlP("MatOptgroup");let j=0;class V{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let H=(()=>{class t{constructor(t,e,n,s){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+j++,this.onSelectionChange=new i.vpe,this._stateChanges=new c.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===d.K5||t.keyCode===d.L_)&&!(0,d.Vb)(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new V(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(void 0),i.Y36(Z))},t.\u0275dir=i.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),z=(()=>{class t extends H{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(N,8),i.Y36(q,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(i.Ikx("id",e.id),i.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:m,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,p,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,f,2,1,"span",2),i._UZ(4,"div",3)),2&t&&(i.Q6J("ngIf",e.multiple),i.xp6(3),i.Q6J("ngIf",e.group&&e.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.O5,D,L],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function Y(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;en+i?Math.max(0,t-i+e):n}let K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[M,a.ez,b,F]]}),t})()},2238:function(t,e,n){"use strict";n.d(e,{WI:function(){return O},uw:function(){return R},H8:function(){return N},ZT:function(){return M},xY:function(){return F},Is:function(){return U},so:function(){return S},uh:function(){return L}});var i=n(625),s=n(7636),r=n(3018),o=n(2458),a=n(946),l=n(8583),c=n(9765),u=n(1439),h=n(5917),d=n(5435),p=n(5257),f=n(9761),m=n(521),g=n(7238),_=n(6461),y=n(9238);function b(t,e){}class v{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const w={dialogContainer:(0,g.X$)("dialogContainer",[(0,g.SB)("void, exit",(0,g.oB)({opacity:0,transform:"scale(0.7)"})),(0,g.SB)("enter",(0,g.oB)({transform:"none"})),(0,g.eR)("* => enter",(0,g.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,g.oB)({transform:"none",opacity:1}))),(0,g.eR)("* => void, * => exit",(0,g.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,g.oB)({opacity:0})))])};let C=(()=>{class t extends s.en{constructor(t,e,n,i,s,o){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=s,this._focusMonitor=o,this._animationStateChanged=new r.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=(0,m.ht)(),n=this._elementRef.nativeElement;(!e||e===this._document.body||e===n||n.contains(e))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,m.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=(0,m.ht)();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(y.qV),r.Y36(r.sBO),r.Y36(l.K0,8),r.Y36(v),r.Y36(y.tE))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&r.Gf(s.Pl,7),2&t){let t;r.iGM(t=r.CRH())&&(e._portalOutlet=t.first)}},features:[r.qOj]}),t})(),x=(()=>{class t extends C{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&r.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(r.Ikx("id",e._id),r.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),r.d8E("@dialogContainer",e._state))},features:[r.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&r.YNc(0,b,0,0,"ng-template",0)},directives:[s.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[w.dialogContainer]}}),t})(),E=0;class S{constructor(t,e,n="mat-dialog-"+E++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new c.xQ,this._afterClosed=new c.xQ,this._beforeClosed=new c.xQ,this._state=0,e._id=n,e._animationStateChanged.pipe((0,d.h)(t=>"opened"===t.state),(0,p.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,d.h)(t=>"closed"===t.state),(0,p.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,d.h)(t=>t.keyCode===_.hY&&!this.disableClose&&!(0,_.Vb)(t))).subscribe(t=>{t.preventDefault(),k(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():k(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,d.h)(t=>"closing"===t.state),(0,p.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function k(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const O=new r.OlP("MatDialogData"),T=new r.OlP("mat-dialog-default-options"),A=new r.OlP("mat-dialog-scroll-strategy"),P={provide:A,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.block()}};let I=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new c.xQ,this._afterOpenedAtThisLevel=new c.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,u.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,f.O)(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new v)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),s=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=r.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:v,useValue:e}]}),i=new s.C5(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const o=new this._dialogRefConstructor(n,e,i.id);if(t instanceof r.Rgc)e.attachTemplatePortal(new s.UE(t,null,{$implicit:i.data,dialogRef:o}));else{const n=this._createInjector(i,o,e),r=e.attachComponentPortal(new s.C5(t,i.viewContainerRef,n));o.componentInstance=r.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return t.direction&&(!i||!i.get(a.Is,null,r.XFs.Optional))&&s.push({provide:a.Is,useValue:{value:t.direction,change:(0,h.of)()}}),r.zs3.create({parent:i||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i!==t&&"SCRIPT"!==i.nodeName&&"STYLE"!==i.nodeName&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(i.aV),r.Y36(r.zs3),r.Y36(void 0),r.Y36(void 0),r.Y36(i.Xj),r.Y36(void 0),r.Y36(r.DyG),r.Y36(r.DyG),r.Y36(r.OlP))},t.\u0275dir=r.lG2({type:t}),t})(),R=(()=>{class t extends I{constructor(t,e,n,i,s,r,o){super(t,e,i,r,o,s,S,x,O)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.aV),r.LFG(r.zs3),r.LFG(l.Ye,8),r.LFG(T,8),r.LFG(A),r.LFG(t,12),r.LFG(i.Xj))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),D=0,M=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=B(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){k(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(S,8),r.Y36(r.SBq),r.Y36(R))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._onButtonClick(t)}),2&t&&r.uIk("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[r.TTD]}),t})(),L=(()=>{class t{constructor(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+D++}ngOnInit(){this._dialogRef||(this._dialogRef=B(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(S,8),r.Y36(r.SBq),r.Y36(R))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&r.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function B(t,e){let n=t.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(t=>t.id===n.id):null}let U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[R,P],imports:[[i.U8,s.eL,o.BQ],o.BQ]}),t})()},8295:function(t,e,n){"use strict";n.d(e,{G_:function(){return G},o2:function(){return Y},KE:function(){return K},Eo:function(){return N},lN:function(){return $},hX:function(){return U},R9:function(){return V}});var i=n(8553),s=n(8583),r=n(3018),o=n(2458),a=n(9490),l=n(9765),c=n(6682),u=n(2759),h=n(9761),d=n(6782),p=n(5257),f=n(7238),m=n(6237),g=n(946),_=n(521);const y=["underline"],b=["connectionContainer"],v=["inputContainer"],w=["label"];function C(t,e){1&t&&(r.ynx(0),r.TgZ(1,"div",14),r._UZ(2,"div",15),r._UZ(3,"div",16),r._UZ(4,"div",17),r.qZA(),r.TgZ(5,"div",18),r._UZ(6,"div",15),r._UZ(7,"div",16),r._UZ(8,"div",17),r.qZA(),r.BQk())}function x(t,e){1&t&&(r.TgZ(0,"div",19),r.Hsn(1,1),r.qZA())}function E(t,e){if(1&t&&(r.ynx(0),r.Hsn(1,2),r.TgZ(2,"span"),r._uU(3),r.qZA(),r.BQk()),2&t){const t=r.oxw(2);r.xp6(3),r.Oqu(t._control.placeholder)}}function S(t,e){1&t&&r.Hsn(0,3,["*ngSwitchCase","true"])}function k(t,e){1&t&&(r.TgZ(0,"span",23),r._uU(1," *"),r.qZA())}function O(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"label",20,21),r.NdJ("cdkObserveContent",function(){return r.CHM(t),r.oxw().updateOutlineGap()}),r.YNc(2,E,4,1,"ng-container",12),r.YNc(3,S,1,0,"ng-content",12),r.YNc(4,k,2,0,"span",22),r.qZA()}if(2&t){const t=r.oxw();r.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),r.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),r.uIk("for",t._control.id)("aria-owns",t._control.id),r.xp6(2),r.Q6J("ngSwitchCase",!1),r.xp6(1),r.Q6J("ngSwitchCase",!0),r.xp6(1),r.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function T(t,e){1&t&&(r.TgZ(0,"div",24),r.Hsn(1,4),r.qZA())}function A(t,e){if(1&t&&(r.TgZ(0,"div",25,26),r._UZ(2,"span",27),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function P(t,e){if(1&t&&(r.TgZ(0,"div"),r.Hsn(1,5),r.qZA()),2&t){const t=r.oxw();r.Q6J("@transitionMessages",t._subscriptAnimationState)}}function I(t,e){if(1&t&&(r.TgZ(0,"div",31),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.Q6J("id",t._hintLabelId),r.xp6(1),r.Oqu(t.hintLabel)}}function R(t,e){if(1&t&&(r.TgZ(0,"div",28),r.YNc(1,I,2,2,"div",29),r.Hsn(2,6),r._UZ(3,"div",30),r.Hsn(4,7),r.qZA()),2&t){const t=r.oxw();r.Q6J("@transitionMessages",t._subscriptAnimationState),r.xp6(1),r.Q6J("ngIf",t.hintLabel)}}const D=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],M=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],L=new r.OlP("MatError"),F={transitionMessages:(0,f.X$)("transitionMessages",[(0,f.SB)("enter",(0,f.oB)({opacity:1,transform:"translateY(0%)"})),(0,f.eR)("void => enter",[(0,f.oB)({opacity:0,transform:"translateY(-5px)"}),(0,f.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t}),t})();const B=new r.OlP("MatHint");let U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-label"]]}),t})(),Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const q=new r.OlP("MatPrefix"),j=new r.OlP("MatSuffix");let V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","matSuffix",""]],features:[r._Bn([{provide:j,useExisting:t}])]}),t})(),H=0;const z=(0,o.pj)(class{constructor(t){this._elementRef=t}},"primary"),Y=new r.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),G=new r.OlP("MatFormField");let K=(()=>{class t extends z{constructor(t,e,n,i,s,r,o,a){super(t),this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+H++,this._labelId="mat-form-field-label-"+H++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=(0,a.Ig)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe((0,h.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,d.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,c.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,u.R)(this._label.nativeElement,"transitionend").pipe((0,p.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[s.ez,o.BQ,i.Q8],o.BQ]}),t})()},9983:function(t,e,n){"use strict";n.d(e,{Nt:function(){return y},c:function(){return b}});var i=n(521),s=n(3018),r=n(9490),o=n(9193),a=n(9765);n(2759),n(628),n(6782),n(8583);const l=(0,i.i$)({passive:!0});let c=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return o.E;const e=(0,r.fI)(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new a.xQ,s="cdk-text-field-autofilled",c=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",c,l),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",c,l)}}),i}stopMonitoring(t){const e=(0,r.fI)(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.t4),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.t4),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ud]]}),t})();var h=n(2458),d=n(8295),p=n(665);const f=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),m=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g=0;const _=(0,h.FD)(class{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}});let y=(()=>{class t extends _{constructor(t,e,n,s,r,o,l,c,u,h){super(o,s,r,n),this._elementRef=t,this._platform=e,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+g++,this.focused=!1,this.stateChanges=new a.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>(0,i.qK)().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=l||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&u.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;!e.value&&0===e.selectionStart&&0===e.selectionEnd&&(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&(0,i.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=(0,r.Ig)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){m.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(i.t4),s.Y36(p.a5,10),s.Y36(p.F,8),s.Y36(p.sg,8),s.Y36(h.rD),s.Y36(f,10),s.Y36(c),s.Y36(s.R0b),s.Y36(d.G_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),s.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s._Bn([{provide:d.Eo,useExisting:t}]),s.qOj,s.TTD]}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[h.rD],imports:[[u,d.lN,h.BQ],u,d.lN]}),t})()},7441:function(t,e,n){"use strict";n.d(e,{gD:function(){return H},LD:function(){return z}});var i=n(625),s=n(8583),r=n(3018),o=n(2458),a=n(8295),l=n(9243),c=n(9238),u=n(9490),h=n(8345),d=n(6461),p=n(9765),f=n(1439),m=n(6682),g=n(9761),_=n(3190),y=n(5257),b=n(5435),v=n(8002),w=n(7519),C=n(6782),x=n(7238),E=n(946),S=n(665);const k=["trigger"],O=["panel"];function T(t,e){if(1&t&&(r.TgZ(0,"span",8),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.placeholder)}}function A(t,e){if(1&t&&(r.TgZ(0,"span",12),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Oqu(t.triggerValue)}}function P(t,e){1&t&&r.Hsn(0,0,["*ngSwitchCase","true"])}function I(t,e){if(1&t&&(r.TgZ(0,"span",9),r.YNc(1,A,2,1,"span",10),r.YNc(2,P,1,0,"ng-content",11),r.qZA()),2&t){const t=r.oxw();r.Q6J("ngSwitch",!!t.customTrigger),r.xp6(2),r.Q6J("ngSwitchCase",!0)}}function R(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",13),r.TgZ(1,"div",14,15),r.NdJ("@transformPanel.done",function(e){return r.CHM(t),r.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return r.CHM(t),r.oxw()._handleKeydown(e)}),r.Hsn(3,1),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@transformPanelWrap",void 0),r.xp6(1),r.Gre("mat-select-panel ",t._getPanelTheme(),""),r.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),r.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),r.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const D=[[["mat-select-trigger"]],"*"],M=["mat-select-trigger","*"],L={transformPanelWrap:(0,x.X$)("transformPanelWrap",[(0,x.eR)("* => void",(0,x.IO)("@transformPanel",[(0,x.pV)()],{optional:!0}))]),transformPanel:(0,x.X$)("transformPanel",[(0,x.SB)("void",(0,x.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,x.SB)("showing",(0,x.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,x.SB)("showing-multiple",(0,x.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,x.eR)("void => *",(0,x.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,x.eR)("* => void",(0,x.jt)("100ms 25ms linear",(0,x.oB)({opacity:0})))])};let F=0;const N=new r.OlP("mat-select-scroll-strategy"),B=new r.OlP("MAT_SELECT_CONFIG"),U={provide:N,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class Z{constructor(t,e){this.source=t,this.value=e}}const q=(0,o.Kr)((0,o.sb)((0,o.Id)((0,o.FD)(class{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}})))),j=new r.OlP("MatSelectTrigger");let V=(()=>{class t extends q{constructor(t,e,n,i,s,o,a,l,c,u,h,d,w,C){var x,E,S;super(s,i,a,l,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=o,this._parentFormField=c,this._liveAnnouncer=w,this._defaultOptions=C,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+F++,this._triggerAriaLabelledBy=null,this._destroy=new p.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+F++,this._panelDoneAnimatingStream=new p.xQ,this._overlayPanelClass=(null===(x=this._defaultOptions)||void 0===x?void 0:x.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(S=null===(E=this._defaultOptions)||void 0===E?void 0:E.disableOptionCentering)&&void 0!==S&&S,this.ariaLabel="",this.optionSelectionChanges=(0,f.P)(()=>{const t=this.options;return t?t.changes.pipe((0,g.O)(t),(0,_.w)(()=>(0,m.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,y.q)(1),(0,_.w)(()=>this.optionSelectionChanges))}),this.openedChange=new r.vpe,this._openedStream=this.openedChange.pipe((0,b.h)(t=>t),(0,v.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,b.h)(t=>!t),(0,v.U)(()=>{})),this.selectionChange=new r.vpe,this.valueChange=new r.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==C?void 0:C.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=C.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=(0,u.Ig)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,u.Ig)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=(0,u.Ig)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=(0,u.su)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,w.x)(),(0,C.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,C.R)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe((0,g.O)(null),(0,C.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=e===d.JH||e===d.LH||e===d.oh||e===d.SV,i=e===d.K5||e===d.L_,s=this._keyManager;if(!s.isTyping()&&i&&!(0,d.Vb)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=n===d.JH||n===d.LH,s=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(s||n!==d.K5&&n!==d.L_||!e.activeItem||(0,d.Vb)(t))if(!s&&this._multiple&&n===d.A&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,y.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new c.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,C.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,C.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=(0,m.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,C.R)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,m.T)(...this.options.map(t=>t._stateChanges)).pipe((0,C.R)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(l.rL),r.Y36(r.sBO),r.Y36(r.R0b),r.Y36(o.rD),r.Y36(r.SBq),r.Y36(E.Is,8),r.Y36(S.F,8),r.Y36(S.sg,8),r.Y36(a.G_,8),r.Y36(S.a5,10),r.$8M("tabindex"),r.Y36(N),r.Y36(c.Kd),r.Y36(B,8))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&(r.Gf(k,5),r.Gf(O,5),r.Gf(i.pI,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.trigger=t.first),r.iGM(t=r.CRH())&&(e.panel=t.first),r.iGM(t=r.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[r.qOj,r.TTD]}),t})(),H=(()=>{class t extends V{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,C.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,y.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=(0,o.CB)(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=0===t&&1===e?0:(0,o.jH)((t+e)*n,n,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new Z(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),o=t.right+s-e.width+(n?0:i);r>0?s+=r+8:o>0&&(s-=o+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(256/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>i?this._adjustPanelDown(r,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=(0,o.CB)(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(r.Suo(n,j,5),r.Suo(n,o.ey,5),r.Suo(n,o.K7,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.customTrigger=t.first),r.iGM(t=r.CRH())&&(e.options=t),r.iGM(t=r.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&r.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(r.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),r.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[r._Bn([{provide:a.Eo,useExisting:t},{provide:o.HF,useExisting:t}]),r.qOj],ngContentSelectors:M,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(r.F$t(D),r.TgZ(0,"div",0,1),r.NdJ("click",function(){return e.toggle()}),r.TgZ(3,"div",2),r.YNc(4,T,2,1,"span",3),r.YNc(5,I,3,2,"span",4),r.qZA(),r.TgZ(6,"div",5),r._UZ(7,"div",6),r.qZA(),r.qZA(),r.YNc(8,R,4,14,"ng-template",7),r.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=r.MAs(1);r.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),r.xp6(3),r.Q6J("ngSwitch",e.empty),r.uIk("id",e._valueId),r.xp6(1),r.Q6J("ngSwitchCase",!0),r.xp6(1),r.Q6J("ngSwitchCase",!1),r.xp6(3),r.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[i.xu,s.RF,s.n9,i.pI,s.ED,s.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[L.transformPanelWrap,L.transformPanel]},changeDetection:0}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[U],imports:[[s.ez,i.U8,o.Ng,o.BQ],l.ZD,a.lN,o.Ng,o.BQ]}),t})()},6237:function(t,e,n){"use strict";n.d(e,{Qb:function(){return De},PW:function(){return Ne}});var i=n(3018),s=n(9075),r=n(7238);function o(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function l(t){switch(t.length){case 0:return new r.ZN;case 1:return t[0];default:return new r.ZE(t)}}function c(t,e,n,i,s={},o={}){const a=[],l=[];let c=-1,u=null;if(i.forEach(t=>{const n=t.offset,i=n==c,h=i&&u||{};Object.keys(t).forEach(n=>{let i=n,l=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),l){case r.k1:l=s[n];break;case r.l3:l=o[n];break;default:l=e.normalizeStyleValue(n,i,l,a)}h[i]=l}),i||l.push(h),u=h,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function u(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&h(n,"start",t)));break;case"done":t.onDone(()=>i(n&&h(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&h(n,"destroy",t)))}}function h(t,e,n){const i=n.totalTime,s=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function d(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function p(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function f(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let m=(t,e)=>!1,g=(t,e)=>!1,_=(t,e,n)=>[];const y=a();(y||"undefined"!=typeof Element)&&(m=o()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),g=(()=>{if(y||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):g}})(),_=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let k=(()=>{class t{validateStyleProperty(t){return w(t)}matchesElement(t,e){return C(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,o=[],a){return new r.ZN(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class O{}O.NOOP=new k;const T="ng-enter",A="ng-leave",P="ng-trigger",I=".ng-trigger",R="ng-animating",D=".ng-animating";function M(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:L(parseFloat(e[1]),e[2])}function L(t,e){switch(e){case"s":return 1e3*t;default:return t}}function F(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=L(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=L(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function N(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function B(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else N(t,n);return n}function U(t,e,n){return n?e+":"+n+";":""}function Z(t){let e="";for(let n=0;n{const s=$(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),a()&&Z(t))}function j(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=$(e);t.style[n]=""}),a()&&Z(t))}function V(t){return Array.isArray(t)?1==t.length?t[0]:(0,r.vP)(t):t}const H=new RegExp("{{\\s*(.+?)\\s*}}","g");function z(t){let e=[];if("string"==typeof t){let n;for(;n=H.exec(t);)e.push(n[1]);H.lastIndex=0}return e}function Y(t,e,n){const i=t.toString(),s=i.replace(H,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),s=""),s.toString()});return s==i?t:s}function G(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const K=/-+([a-z0-9])/g;function $(t){return t.replace(K,(...t)=>t[1].toUpperCase())}function W(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Q(t,e){return 0===t||0===e}function J(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(st(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&e.push(st(o,s))}(t,n,e)):n.push(t),n}const nt=new Set(["true","1"]),it=new Set(["false","0"]);function st(t,e){const n=nt.has(t)||it.has(t),i=nt.has(e)||it.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?nt.has(t):it.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?nt.has(e):it.has(e)),o&&a}}const rt=new RegExp("s*:selfs*,?","g");function ot(t,e,n){return new at(t).build(e,n)}class at{constructor(t){this._driver=t}build(t,e){const n=new lt(e);return this._resetContextStyleTimingState(n),X(this,V(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(ct(t)){const e=t;Object.keys(e).forEach(t=>{z(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=G(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=X(this,V(t.animation),e);return{type:1,matchers:et(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:ut(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>X(this,t,e)),options:ut(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=X(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:ut(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return ht(F(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ht(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||F(i,e),ht(n.duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let i,s=t.styles?t.styles:(0,r.oB)({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};n.easing&&(t.easing=n.easing),s=(0,r.oB)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(s,e);a.isEmptyStep=o,i=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==r.l3?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(ct(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=z(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c0&&i{const r=u>0?i==h?1:u*i:s[i],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:X(this,V(t.animation),e),options:ut(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ut(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ut(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(rt,"")),[t=t.replace(/@\*/g,I).replace(/@\w+/g,t=>I+"-"+t.substr(1)).replace(/:animating/g,D),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,p(e.collectedStyles,e.currentQuerySelector,{});const o=X(this,V(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:ut(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:F(t.timings,e.errors,!0);return{type:12,animation:X(this,V(t.animation),e),timings:n,options:null}}}class lt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ct(t){return!Array.isArray(t)&&"object"==typeof t}function ut(t){return t?(t=N(t)).params&&(t.params=function(t){return t?N(t):null}(t.params)):t={},t}function ht(t,e,n){return{duration:t,delay:e,easing:n}}function dt(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class pt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ft=new RegExp(":enter","g"),mt=new RegExp(":leave","g");function gt(t,e,n,i,s,r={},o={},a,l,c=[]){return(new _t).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class _t{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new pt;const u=new bt(t,e,l,i,s,c,[]);u.options=a,u.currentTimeline.setStyles([r],null,u.errors,a),X(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[dt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?M(n.duration):null,r=null!=n.delay?M(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),X(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=yt);const t=M(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>X(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?M(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),X(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return F(e.params?Y(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?M(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=yt);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),X(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;X(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const yt={};class bt{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new vt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=M(n.duration)),null!=n.delay&&(i.delay=M(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{(!e||!t.hasOwnProperty(n))&&(t[n]=Y(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new bt(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=yt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new wt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(ft,"."+this._enterClassName)).replace(mt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return!s&&0==o.length&&r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class vt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new vt(this._driver,t,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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||r.l3,this._currentKeyframe[t]=r.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},o=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=r.l3})):B(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=Y(o[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:r.l3),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,o)=>{const a=B(s,!0);Object.keys(a).forEach(n=>{const i=a[n];i==r.k1?t.add(n):i==r.l3&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const s=t.size?G(t.values()):[],o=e.size?G(e.values()):[];if(n){const t=i[0],e=N(t);t.offset=0,e.offset=1,i=[t,e]}return dt(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class wt extends vt{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=B(t[0],!1);a.offset=0,s.push(a);const l=B(t[0],!1);l.offset=Ct(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=B(t[i],!1);o.offset=Ct((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return dt(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function Ct(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class xt{}class Et extends xt{normalizePropertyName(t,e){return $(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(St[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const St=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function kt(t,e,n,i,s,r,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const Ot={};class Tt{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||Ot,d=this.buildStyles(n,o&&o.params||Ot,u),f=a&&a.params||Ot,m=this.buildStyles(i,f,u),g=new Set,_=new Map,y=new Map,b="void"===i,v={params:Object.assign(Object.assign({},h),f)},w=c?[]:gt(t,e,this.ast.animation,s,r,d,m,v,l,u);let C=0;if(w.forEach(t=>{C=Math.max(t.duration+t.delay,C)}),u.length)return kt(e,this._triggerName,n,i,b,d,m,[],[],_,y,C,u);w.forEach(t=>{const n=t.element,i=p(_,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=p(y,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&g.add(n)});const x=G(g.values());return kt(e,this._triggerName,n,i,b,d,m,w,x,_,y,C)}}class At{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},i=N(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Y(r,i,e));const o=this.normalizer.normalizePropertyName(t,e);r=this.normalizer.normalizeStyleValue(t,o,r,e),n[o]=r})}}),n}}class Pt{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new At(t.style,t.options&&t.options.params||{},n)}),It(this.states,"true","1"),It(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Tt(t,e,this.states))}),this.fallbackTransition=function(t,e,n){return new Tt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},e)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function It(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Rt=new pt;class Dt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=ot(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=c(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let o;const a=new Map;if(s?(o=gt(this._driver,e,s,T,A,{},{},n,Rt,i),o.forEach(t=>{const e=p(a,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);a.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,r.l3)})});const c=l(o.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const s=d(e,"","","");return u(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Mt="ng-animate-queued",Lt="ng-animate-disabled",Ft=".ng-animate-disabled",Nt=[],Bt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ut={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zt="__ng_removed";class qt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=N(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const jt="void",Vt=new qt(jt);class Ht{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Jt(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=p(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=p(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Jt(t,P),Jt(t,P+"-"+e),a[e]=Vt),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new Yt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Jt(t,P),Jt(t,P+"-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new qt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Vt),l.value!==jt&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s{j(t,n),q(t,i)})}return}const c=p(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:r,isFallbackTransition:h}),h||(Jt(t,Mt),r.onStart(()=>{Xt(t,Mt)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,I,!0);n.forEach(t=>{if(t[Zt])return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,jt,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&l(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const s=e.name;if(i.has(s))return;i.add(s);const r=this._triggers[s].fallbackTransition,o=n[s]||Vt,a=new qt(jt),l=new Yt(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t[Zt];(!i||i===Bt)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Jt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=d(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,u(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class zt{constructor(t,e,n){this.bodyNode=t,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Ht(t,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[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Jt(t,Lt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Xt(t,Lt))}removeNode(t,e,n,i){if(Gt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e[Zt]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Gt(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,I,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,D,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return l(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Zt];if(e&&e.setForRemoval){if(t[Zt]=Bt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Ft)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Ft,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?l(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new pt,i=[],s=new Map,o=[],a=new Map,c=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n=T+_++;g.set(e,n),t.forEach(t=>Jt(t,n))});const y=[],b=new Set,v=new Set;for(let r=0;rb.add(t)):v.add(t))}const w=new Map,C=Wt(f,Array.from(b));C.forEach((t,e)=>{const n=A+_++;w.set(e,n),t.forEach(t=>Jt(t,n))}),t.push(()=>{m.forEach((t,e)=>{const n=g.get(e);t.forEach(t=>Xt(t,n))}),C.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Xt(t,n))}),y.forEach(t=>{this.processLeaveNode(t)})});const x=[],E=[];for(let r=this._namespaceList.length-1;r>=0;r--)this._namespaceList[r].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(x.push(e),this.collectedEnterElements.length){const t=s[Zt];if(t&&t.setForMove)return void e.destroy()}const r=!d||!this.driver.containsElement(d,s),l=w.get(s),h=g.get(s),f=this._buildInstruction(t,n,h,l,r);if(f.errors&&f.errors.length)E.push(f);else{if(r)return e.onStart(()=>j(s,f.fromStyles)),e.onDestroy(()=>q(s,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>j(s,f.fromStyles)),e.onDestroy(()=>q(s,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),o.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>p(a,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(E.length){const t=[];E.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),x.forEach(t=>t.destroy()),this.reportError(t)}const S=new Map,k=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(k.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,S))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{p(S,e,[]).push(t),t.destroy()})});const O=y.filter(t=>ne(t,c,u)),P=new Map;$t(P,this.driver,v,u,r.l3).forEach(t=>{ne(t,c,u)&&O.push(t)});const I=new Map;m.forEach((t,e)=>{$t(I,this.driver,new Set(t),c,r.k1)}),O.forEach(t=>{const e=P.get(t),n=I.get(t);P.set(t,Object.assign(Object.assign({},e),n))});const R=[],M=[],L={};o.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(h.has(e))return r.onDestroy(()=>q(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=L;if(k.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=k.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>k.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,S,s,I,P);if(r.setRealPlayer(n),t===L)R.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=l(e)),i.push(r)}}else j(e,o.fromStyles),r.onDestroy(()=>q(e,o.toStyles)),M.push(r),h.has(e)&&i.push(r)}),M.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=l(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let r=0;r!t.destroyed);i.length?te(this,t,i):this.processLeaveNode(t)}return y.length=0,R.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),R}elementContainsData(t,e){let n=!1;const i=e[Zt];return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==jt;e.forEach(e=>{e.queued||!t&&e.triggerName!=i||r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=p(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}j(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,o){const a=e.triggerName,u=e.element,h=[],d=new Set,f=new Set,m=e.timelines.map(e=>{const l=e.element;d.add(l);const p=l[Zt];if(p&&p.removedBeforeQueried)return new r.ZN(e.duration,e.delay);const m=l!==u,g=function(t){const e=[];return ee(t,e),e}((n.get(l)||Nt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===l),_=s.get(l),y=o.get(l),b=c(0,this._normalizer,0,e.keyframes,_,y),v=this._buildPlayer(e,b,g);if(e.subTimeline&&i&&f.add(l),m){const e=new Yt(t,a,l);e.setRealPlayer(v),h.push(e)}return v});h.forEach(t=>{p(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),d.forEach(t=>Jt(t,R));const g=l(m);return g.onDestroy(()=>{d.forEach(t=>Xt(t,R)),q(u,e.toStyles)}),f.forEach(t=>{p(i,t,[]).push(g)}),g}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new r.ZN(t.duration,t.delay)}}class Yt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new r.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>u(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){p(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Gt(t){return t&&1===t.nodeType}function Kt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function $t(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Kt(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);(!n||0==n.length)&&(i[Zt]=Ut,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Kt(t,r[a++])),o}function Wt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}const Qt="$$classes";function Jt(t,e){if(t.classList)t.classList.add(e);else{let n=t[Qt];n||(n=t[Qt]={}),n[e]=!0}}function Xt(t,e){if(t.classList)t.classList.remove(e);else{let n=t[Qt];n&&delete n[e]}}function te(t,e,n){l(n).onDone(()=>t.processLeaveNode(e))}function ee(t,e){for(let n=0;ns.add(t)):e.set(t,i),n.delete(t),!0}class ie{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new zt(t,e,n),this._timelineEngine=new Dt(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=ot(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e,n){return new Pt(t,e,n)}(i,e,this._normalizer),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=f(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=f(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function se(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=oe(e[0]),e.length>1&&(i=oe(e[e.length-1]))):e&&(n=oe(e)),n||i?new re(t,n,i):null}class re{constructor(t,e,n){this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;let i=re.initialStylesByElement.get(t);i||re.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(re.initialStylesByElement.delete(this._element),this._startStyles&&(j(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}function oe(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){(function(t,e){const n=ge(t,"").trim();let i=0;n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),fe(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=ge(t,"").split(","),i=pe(n,e);i>=0&&(n.splice(i,1),me(t,"",n.join(",")))}(this._element,this._name))}}function he(t,e,n){me(t,"PlayState",n,de(t,e))}function de(t,e){const n=ge(t,"");return n.indexOf(",")>0?pe(n.split(","),e):pe([n],e)}function pe(t,e){for(let n=0;n=0)return n;return-1}function fe(t,e,n){n?t.removeEventListener(ce,e):t.addEventListener(ce,e)}function me(t,e,n,i){const s=le+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function ge(t,e){return t.style[le+e]||""}class _e{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ue(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:tt(this.element,n))})}this.currentSnapshot=t}}class ye extends r.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=S(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class be{constructor(){this._count=0}validateStyleProperty(t){return w(t)}matchesElement(t,e){return C(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>S(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=`${s}}\n`}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){const a=r.filter(t=>t instanceof _e),l={};Q(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"==n||"easing"==n||(e[n]=t[n])})}),e}(e=J(t,e,l));if(0==n)return new ye(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(h);const d=se(t,e),p=new _e(t,e,u,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class ve{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,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(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:tt(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class we{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Ce().toString()),this._cssKeyframesDriver=new be}validateStyleProperty(t){return w(t)}matchesElement(t,e){return C(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof ve);Q(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=se(t,e=J(t,e=e.map(t=>B(t,!1)),l));return new ve(t,e,a,u)}}function Ce(){return o()&&Element.prototype.animate||{}}var xe=n(8583);let Ee=(()=>{class t extends r._j{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?(0,r.vP)(t):t;return Oe(this._renderer,null,e,"register",[n]),new Se(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(xe.K0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Se extends r.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new ke(this._id,t,e||{},this._renderer)}}class ke{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Oe(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Oe(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}const Te="@.disabled";let Ae=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Pe("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new Ie(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(ie),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Pe{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&e==Te?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Ie extends Pe{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==Te?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Re=(()=>{class t extends ie{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(xe.K0),i.LFG(O),i.LFG(xt))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const De=new i.OlP("AnimationModuleType"),Me=[{provide:r._j,useClass:Ee},{provide:xt,useFactory:function(){return new Et}},{provide:ie,useClass:Re},{provide:i.FYo,useFactory:function(t,e,n){return new Ae(t,e,n)},deps:[s.se,ie,i.R0b]}],Le=[{provide:O,useFactory:function(){return"function"==typeof Ce()?new we:new be}},{provide:De,useValue:"BrowserAnimations"},...Me],Fe=[{provide:O,useClass:k},{provide:De,useValue:"NoopAnimations"},...Me];let Ne=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Fe:Le}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:Le,imports:[s.b2]}),t})()},9075:function(t,e,n){"use strict";n.d(e,{b2:function(){return N},H7:function(){return D},q6:function(){return L},se:function(){return x}});var i=n(8583),s=n(3018);class r extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class o extends r{static makeCurrent(){(0,i.HT)(new o)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(l=l||document.querySelector("base"),l?l.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,i.Mx)(document.cookie,t)}}let a,l=null;const c=new s.OlP("TRANSITION_ID"),u=[{provide:s.ip1,useFactory:function(t,e,n){return()=>{n.get(s.CZH).donePromise.then(()=>{const n=(0,i.q)(),s=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let t=0;t{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?(0,i.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new s.OlP("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t extends g{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(y),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(y))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function y(t){(0,i.q)().remove(t)}const b={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},v=/%COMP%/g;function w(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let x=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new E(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new S(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case s.ifc.ShadowDom:return new k(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=w(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f),s.LFG(_),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class E{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(b[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=b[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=b[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,n,i&s.JOm.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,C(n)):this.eventManager.addEventListener(t,e,C(n))}}class S extends E{constructor(t,e,n,i){super(t),this.component=n;const s=w(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(v,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(v,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class k extends E{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=w(i.id,i.styles,[]);for(let r=0;r{class t extends m{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const T=["alt","control","meta","shift"],A={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},P={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"},I={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let R=(()=>{class t extends m{constructor(t){super(t)}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(()=>(0,i.q)().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(T.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&P.hasOwnProperty(e)&&(e=P[e]))}return A[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),T.forEach(i=>{i!=n&&I[i](t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(M)},token:t,providedIn:"root"}),t})(),M=(()=>{class t extends D{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return function(t){return new M(t.get(i.K0))}((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const L=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:i.bD},{provide:s.g9A,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),F=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:p,useClass:O,multi:!0,deps:[i.K0,s.R0b,s.Lbi]},{provide:p,useClass:R,multi:!0,deps:[i.K0]},[],{provide:x,useClass:x,deps:[f,_,s.AFp]},{provide:s.FYo,useExisting:x},{provide:g,useExisting:_},{provide:_,useClass:_,deps:[i.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:f,useClass:f,deps:[p,s.R0b]},{provide:i.JF,useClass:d,deps:[]},[]];let N=(()=>{class t{constructor(t){if(t)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:s.AFp,useValue:e.appId},{provide:c,useExisting:s.AFp},u]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:F,imports:[i.ez,s.hGG]}),t})();"undefined"!=typeof window&&window},8741:function(t,e,n){"use strict";n.d(e,{gz:function(){return se},F0:function(){return On},rH:function(){return An},yS:function(){return Pn},Bz:function(){return jn},lC:function(){return Rn}});var i=n(8583),s=n(3018);const r=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var o=n(4402),a=n(5917),l=n(6215),c=n(739),u=n(7574),h=n(8071),d=n(1439),p=n(9193),f=n(2441),m=n(9765),g=n(7393);function _(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new y(t,e,n))}}class y{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new b(t,this.accumulator,this.seed,this.hasSeed))}}class b extends g.L{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}var v=n(5345);function w(t){return function(e){const n=new C(t),i=e.lift(n);return n.caught=i}}class C{constructor(t){this.selector=t}call(t,e){return e.subscribe(new x(t,this.selector,this.caught))}}class x extends v.Ds{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new v.IY(this);this.add(i);const s=(0,v.ft)(n,i);s!==i&&this.add(s)}}}var E=n(5435),S=n(7108);function k(t){return function(e){return 0===t?(0,p.c)():e.lift(new O(t))}}class O{constructor(t){if(this.total=t,this.total<0)throw new S.W}call(t,e){return e.subscribe(new T(t,this.total))}}class T extends g.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;se.lift(new P(t))}class P{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new I(t,this.errorFactory))}}class I extends g.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function R(){return new r}function D(t=null){return e=>e.lift(new M(t))}class M{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new L(t,this.defaultValue))}}class L extends g.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var F=n(4487),N=n(5257);function B(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,E.h)((e,n)=>t(e,n,i)):F.y,(0,N.q)(1),n?D(e):A(()=>new r))}var U=n(5319);class Z{constructor(t){this.callback=t}call(t,e){return e.subscribe(new q(t,this.callback))}}class q extends g.L{constructor(t,e){super(t),this.add(new U.w(e))}}var j=n(8002),V=n(3190),H=n(9761),z=n(4612),Y=n(9773),G=n(3342),K=n(1307),$=n(3282);class W{constructor(t,e){this.id=t,this.url=e}}class Q extends W{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class J extends W{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class X extends W{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class tt extends W{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class et extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nt extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class it extends W{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class st extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rt extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ot{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class at{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class lt{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ct{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ut{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ht{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dt{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const pt="primary";class ft{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function mt(t){return new ft(t)}const gt="ngNavigationCancelingError";function _t(t){const e=Error("NavigationCancelingError: "+t);return e[gt]=!0,e}function yt(t,e,n){const i=n.path.split("/");if(i.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function wt(t){return Array.prototype.concat.apply([],t)}function Ct(t){return t.length>0?t[t.length-1]:null}function xt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Et(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,a.of)(t)}const St={exact:function t(e,n,i){if(!Mt(e.segments,n.segments)||!Pt(e.segments,n.segments,i)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const s in n.children)if(!e.children[s]||!t(e.children[s],n.children[s],i))return!1;return!0},subset:Tt},kt={exact:function(t,e){return bt(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>vt(t[n],e[n]))},ignored:()=>!0};function Ot(t,e,n){return St[n.paths](t.root,e.root,n.matrixParams)&&kt[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function Tt(t,e,n){return At(t,e,e.segments,n)}function At(t,e,n,i){if(t.segments.length>n.length){const s=t.segments.slice(0,n.length);return!(!Mt(s,n)||e.hasChildren()||!Pt(s,n,i))}if(t.segments.length===n.length){if(!Mt(t.segments,n)||!Pt(t.segments,n,i))return!1;for(const n in e.children)if(!t.children[n]||!Tt(t.children[n],e.children[n],i))return!1;return!0}{const s=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!(Mt(t.segments,s)&&Pt(t.segments,s,i)&&t.children[pt])&&At(t.children[pt],e,r,i)}}function Pt(t,e,n){return e.every((e,i)=>kt[n](t[i].parameters,e.parameters))}class It{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mt(this.queryParams)),this._queryParamMap}toString(){return Nt.serialize(this)}}class Rt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,xt(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bt(this)}}class Dt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=mt(this.parameters)),this._parameterMap}toString(){return zt(this)}}function Mt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Lt{}class Ft{parse(t){const e=new Wt(t);return new It(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${Ut(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${qt(e)}=${qt(t)}`).join("&"):`${qt(e)}=${qt(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Nt=new Ft;function Bt(t){return t.segments.map(t=>zt(t)).join("/")}function Ut(t,e){if(!t.hasChildren())return Bt(t);if(e){const e=t.children[pt]?Ut(t.children[pt],!1):"",n=[];return xt(t.children,(t,e)=>{e!==pt&&n.push(`${e}:${Ut(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return xt(t.children,(t,i)=>{i===pt&&(n=n.concat(e(t,i)))}),xt(t.children,(t,i)=>{i!==pt&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===pt?[Ut(t.children[pt],!1)]:[`${n}:${Ut(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[pt]?`${Bt(t)}/${e[0]}`:`${Bt(t)}/(${e.join("//")})`}}function Zt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qt(t){return Zt(t).replace(/%3B/gi,";")}function jt(t){return Zt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vt(t){return decodeURIComponent(t)}function Ht(t){return Vt(t.replace(/\+/g,"%20"))}function zt(t){return`${jt(t.path)}${function(t){return Object.keys(t).map(e=>`;${jt(e)}=${jt(t[e])}`).join("")}(t.parameters)}`}const Yt=/^[^\/()?;=#]+/;function Gt(t){const e=t.match(Yt);return e?e[0]:""}const Kt=/^[^=?&#]+/,$t=/^[^?&#]+/;class Wt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Rt([],{}):new Rt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[pt]=new Rt(t,e)),n}parseSegment(){const t=Gt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Dt(Vt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Gt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Gt(this.remaining);t&&(n=t,this.capture(n))}t[Vt(e)]=Vt(n)}parseQueryParam(t){const e=function(t){const e=t.match(Kt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match($t);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Ht(e),s=Ht(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Gt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=pt);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r[pt]:new Rt([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Qt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Jt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Jt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Xt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Xt(t,this._root).map(t=>t.value)}}function Jt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Jt(t,n);if(e)return e}return null}function Xt(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Xt(t,n);if(i.length)return i.unshift(e),i}return[]}class te{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function ee(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class ne extends Qt{constructor(t,e){super(t),this.snapshot=e,le(this,t)}toString(){return this.snapshot.toString()}}function ie(t,e){const n=function(t,e){const n=new oe([],{},{},"",{},pt,e,null,t.root,-1,{});return new ae("",new te(n,[]))}(t,e),i=new l.X([new Dt("",{})]),s=new l.X({}),r=new l.X({}),o=new l.X({}),a=new l.X(""),c=new se(i,s,o,a,r,pt,e,n.root);return c.snapshot=n.root,new ne(new te(c,[]),n)}class se{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}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((0,j.U)(t=>mt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,j.U)(t=>mt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function re(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class oe{constructor(t,e,n,i,s,r,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}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=mt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ae extends Qt{constructor(t,e){super(e),this.url=t,le(this,e)}toString(){return ce(this._root)}}function le(t,e){e.value._routerState=t,e.children.forEach(e=>le(t,e))}function ce(t){const e=t.children.length>0?` { ${t.children.map(ce).join(", ")} } `:"";return`${t.value}${e}`}function ue(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,bt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),bt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nbt(t.parameters,e[n].parameters))}(t.url,e.url)&&!(!t.parent!=!e.parent)&&(!t.parent||he(t.parent,e.parent))}function de(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return de(t,e,i);return de(t,e)})}(t,e,n);return new te(i,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return pe(e,t),t}}const n=function(t){return new se(new l.X(t.url),new l.X(t.params),new l.X(t.queryParams),new l.X(t.fragment),new l.X(t.data),t.outlet,t.component,t)}(e.value),i=e.children.map(e=>de(t,e));return new te(n,i)}}function pe(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new It(n.root===t?e:_e(n.root,t,e),r,s)}function _e(t,e,n){const i={};return xt(t.children,(t,s)=>{i[s]=t===e?n:_e(t,e,n)}),new Rt(t.segments,i)}class ye{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&fe(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(me);if(i&&i!==Ct(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class be{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function ve(t,e,n){if(t||(t=new Rt([],{})),0===t.segments.length&&t.hasChildren())return we(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return r;const e=t.segments[s],o=n[i];if(me(o))break;const a=`${o}`,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!Se(a,l,e))return r;i+=2}else{if(!Se(a,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(s[i]=ve(t.children[i],e,n))}),xt(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new Rt(t.segments,s)}}function Ce(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=Ce(new Rt([],{}),0,t))}),e}function Ee(t){const e={};return xt(t,(t,n)=>e[n]=`${t}`),e}function Se(t,e,n){return t==n.path&&bt(e,n.parameters)}class ke{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),ue(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=ee(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),xt(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,s=ee(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=ee(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new ht(t.value.snapshot))}),t.children.length&&this.forwardEvent(new ct(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(ue(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Oe(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Oe(t){ue(t.value),t.children.forEach(Oe)}class Te{constructor(t,e){this.routes=t,this.module=e}}function Ae(t){return"function"==typeof t}function Pe(t){return t instanceof It}const Ie=Symbol("INITIAL_VALUE");function Re(){return(0,V.w)(t=>(0,c.aj)(t.map(t=>t.pipe((0,N.q)(1),(0,H.O)(Ie)))).pipe(_((t,e)=>{let n=!1;return e.reduce((t,i,s)=>t!==Ie?t:(i===Ie&&(n=!0),n||!1!==i&&s!==e.length-1&&!Pe(i)?t:i),t)},Ie),(0,E.h)(t=>t!==Ie),(0,j.U)(t=>Pe(t)?t:!0===t),(0,N.q)(1)))}let De=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[Rn]},encapsulation:2}),t})();function Me(t,e=""){for(let n=0;nBe(t)===e);return n.push(...t.filter(t=>Be(t)!==e)),n}const Ze={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function qe(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Ze):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||yt)(n,t,e);if(!s)return Object.assign({},Ze);const r={};xt(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function je(t,e,n,i,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Ve(t,e,n)&&Be(n)!==pt)}(t,n,i)){const s=new Rt(e,function(t,e,n,i){const s={};s[pt]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&Be(r)!==pt){const n=new Rt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Be(r)]=n}return s}(t,e,i,new Rt(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Ve(t,e,n))}(t,n,i)){const r=new Rt(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(Ve(t,n,a)&&!s[Be(a)]){const n=new Rt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Be(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Rt(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Ve(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function He(t,e,n,i){return!!(Be(t)===i||i!==pt&&Ve(e,n,t))&&("**"===t.path||qe(e,t,n).matched)}function ze(t,e,n){return 0===e.length&&!t.children[n]}class Ye{constructor(t){this.segmentGroup=t||null}}class Ge{constructor(t){this.urlTree=t}}function Ke(t){return new u.y(e=>e.error(new Ye(t)))}function $e(t){return new u.y(e=>e.error(new Ge(t)))}function We(t){return new u.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Qe{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=je(this.urlTree.root,[],[],this.config).segmentGroup,e=new Rt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,pt).pipe((0,j.U)(t=>this.createUrlTree(Je(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(w(t=>{if(t instanceof Ge)return this.allowRedirects=!1,this.match(t.urlTree);throw t instanceof Ye?this.noMatchError(t):t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,pt).pipe((0,j.U)(e=>this.createUrlTree(Je(e),t.queryParams,t.fragment))).pipe(w(t=>{throw t instanceof Ye?this.noMatchError(t):t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Rt([],{[pt]:t}):t;return new It(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,j.U)(t=>new Rt([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const s of Object.keys(n.children))"primary"===s?i.unshift(s):i.push(s);return(0,o.D)(i).pipe((0,z.b)(i=>{const s=n.children[i],r=Ue(e,i);return this.expandSegmentGroup(t,r,s,i).pipe((0,j.U)(t=>({segment:t,outlet:i})))}),_((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,E.h)((e,n)=>t(e,n,i)):F.y,k(1),n?D(e):A(()=>new r))}())}expandSegment(t,e,n,i,s,l){return(0,o.D)(n).pipe((0,z.b)(r=>this.expandSegmentAgainstRoute(t,e,n,r,i,s,l).pipe(w(t=>{if(t instanceof Ye)return(0,a.of)(null);throw t}))),B(t=>!!t),w((t,n)=>{if(t instanceof r||"EmptyError"===t.name){if(ze(e,i,s))return(0,a.of)(new Rt([],{}));throw new Ye(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return He(i,e,s,r)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):Ke(e):Ke(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?$e(s):this.lineralizeSegments(n,s).pipe((0,Y.zg)(n=>{const s=new Rt(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=qe(e,i,s);if(!o)return Ke(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?$e(u):this.lineralizeSegments(i,u).pipe((0,Y.zg)(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,a.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,j.U)(t=>(n._loadedConfig=t,new Rt(i,{})))):(0,a.of)(new Rt(i,{}));const{matched:r,consumedSegments:o,lastChild:l}=qe(e,n,i);if(!r)return Ke(e);const c=i.slice(l);return this.getChildConfig(t,n,i).pipe((0,Y.zg)(t=>{const i=t.module,r=t.routes,{segmentGroup:l,slicedSegments:u}=je(e,o,c,r),h=new Rt(l.segments,l.children);if(0===u.length&&h.hasChildren())return this.expandChildren(i,r,h).pipe((0,j.U)(t=>new Rt(o,t)));if(0===r.length&&0===u.length)return(0,a.of)(new Rt(o,{}));const d=Be(n)===s;return this.expandSegment(i,h,r,u,d?pt:s,!0).pipe((0,j.U)(t=>new Rt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?(0,a.of)(new Te(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,a.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,Y.zg)(n=>{return n?this.configLoader.load(t.injector,e).pipe((0,j.U)(t=>(e._loadedConfig=t,t))):(i=e,new u.y(t=>t.error(_t(`Cannot load children because the guard of the route "path: '${i.path}'" returned false`))));var i})):(0,a.of)(new Te([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return(0,a.of)(!0);const s=i.map(i=>{const s=t.get(i);let r;if((o=s)&&Ae(o.canLoad))r=s.canLoad(e,n);else{if(!Ae(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}var o;return Et(r)});return(0,a.of)(s).pipe(Re(),(0,G.b)(t=>{if(!Pe(t))return;const e=_t(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,j.U)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,a.of)(n);if(i.numberOfChildren>1||!i.children[pt])return We(t.redirectTo);i=i.children[pt]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new It(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return xt(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return xt(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new Rt(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function Je(t){const e={};for(const n of Object.keys(t.children)){const i=Je(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children[pt]){const e=t.children[pt];return new Rt(t.segments.concat(e.segments),e.children)}return t}(new Rt(t.segments,e))}class Xe{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class tn{constructor(t,e){this.component=t,this.route=e}}function en(t,e,n){const i=t._root;return sn(i,e?e._root:null,n,[i.value])}function nn(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function sn(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=ee(e);return t.children.forEach(t=>{(function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Mt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Mt(t.url,e.url)||!bt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!he(t,e)||!bt(t.queryParams,e.queryParams);case"paramsChange":default:return!he(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Xe(i)):(r.data=o.data,r._resolvedData=o._resolvedData),sn(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new tn(a.outlet.component,o))}else o&&rn(e,a,s),s.canActivateChecks.push(new Xe(i)),sn(t,null,r.component?a?a.children:null:n,i,s)})(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),xt(r,(t,e)=>rn(t,n.getContext(e),s)),s}function rn(t,e,n){const i=ee(t),s=t.value;xt(i,(t,i)=>{rn(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new tn(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class on{}function an(t){return new u.y(e=>e.error(t))}class ln{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=je(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,pt);if(null===e)return null;const n=new oe([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},pt,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new te(n,e),s=new ae(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=re(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const i=e.children[s],r=Ue(t,s),o=this.processSegmentGroup(r,i,s);if(null===o)return null;n.push(...o)}const i=un(n);return i.sort((t,e)=>t.value.outlet===pt?-1:e.value.outlet===pt?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,i);if(null!==t)return t}return ze(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!He(t,e,n,i))return null;let s,r=[],o=[];if("**"===t.path){const i=n.length>0?Ct(n).parameters:{};s=new oe(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,pn(t),Be(t),t.component,t,hn(e),dn(e)+n.length,fn(t))}else{const i=qe(e,t,n);if(!i.matched)return null;r=i.consumedSegments,o=n.slice(i.lastChild),s=new oe(r,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,pn(t),Be(t),t.component,t,hn(e),dn(e)+r.length,fn(t))}const a=(u=t).children?u.children:u.loadChildren?u._loadedConfig.routes:[],{segmentGroup:l,slicedSegments:c}=je(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);var u;if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new te(s,t)]}if(0===a.length&&0===c.length)return[new te(s,[])];const h=Be(t)===i,d=this.processSegment(a,l,c,h?pt:i);return null===d?null:[new te(s,d)]}}function cn(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function un(t){const e=[],n=new Set;for(const i of t){if(!cn(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=un(i.children);e.push(new te(i.value,t))}return e.filter(t=>!n.has(t))}function hn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function dn(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function pn(t){return t.data||{}}function fn(t){return t.resolve||{}}function mn(t){return(0,V.w)(e=>{const n=t(e);return n?(0,o.D)(n).pipe((0,j.U)(()=>e)):(0,a.of)(e)})}class gn extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const _n=new s.OlP("ROUTES");class yn{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe((0,j.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new Te(wt(i.injector.get(_n,void 0,s.XFs.Self|s.XFs.Optional)).map(Ne),i)}),w(t=>{throw e._loader$=void 0,t}));return e._loader$=new f.c(n,()=>new m.xQ).pipe((0,K.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):Et(t()).pipe((0,Y.zg)(t=>t instanceof s.YKP?(0,a.of)(t):(0,o.D)(this.compiler.compileModuleAsync(t))))}}class bn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new vn,this.attachRef=null}}class vn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new bn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class wn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Cn(t){throw t}function xn(t,e,n){return e.parse("/")}function En(t,e){return(0,a.of)(null)}const Sn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},kn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let On=(()=>{class t{constructor(t,e,n,i,r,o,a,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new m.xQ,this.errorHandler=Cn,this.malformedUriErrorHandler=xn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:En,afterPreactivation:En},this.urlHandlingStrategy=new wn,this.routeReuseStrategy=new gn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=r.get(s.h0i),this.console=r.get(s.c2e);const u=r.get(s.R0b);this.isNgZoneEnabled=u instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new It(new Rt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new yn(o,a,t=>this.triggerEvent(new ot(t)),t=>this.triggerEvent(new at(t))),this.routerState=ie(this.currentUrlTree,this.rootComponentType),this.transitions=new l.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe((0,E.h)(t=>0!==t.id),(0,j.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,V.w)(t=>{let n=!1,i=!1;return(0,a.of)(t).pipe((0,G.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,V.w)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString(),s=("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl);if(Tn(t.source)&&(this.browserUrlTree=t.rawUrl),s)return(0,a.of)(t).pipe((0,V.w)(t=>{const n=this.transitions.getValue();return e.next(new Q(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?p.E:Promise.resolve(t)}),function(t,e,n,i){return(0,V.w)(s=>function(t,e,n,i,s){return new Qe(t,e,n,i,s).apply()}(t,e,n,s.extractedUrl,i).pipe((0,j.U)(t=>Object.assign(Object.assign({},s),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,G.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,s,r){return(0,Y.zg)(o=>function(t,e,n,s,r="emptyOnly",o="legacy"){try{const i=new ln(t,e,n,s,r,o).recognize();return null===i?an(new on):(0,a.of)(i)}catch(i){return an(i)}}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),s,r).pipe((0,j.U)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,G.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new et(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,l=new Q(n,this.serializeUrl(i),s,r);e.next(l);const c=ie(i,this.rootComponentType).snapshot;return(0,a.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.E}),mn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),(0,G.b)(t=>{const e=new nt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,j.U)(t=>Object.assign(Object.assign({},t),{guards:en(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,Y.zg)(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:l}}=n;return 0===l.length&&0===r.length?(0,a.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return(0,o.D)(t).pipe((0,Y.zg)(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return(0,a.of)(!0);const o=r.map(r=>{const o=nn(r,e,s);let a;if(function(t){return t&&Ae(t.canDeactivate)}(o))a=Et(o.canDeactivate(t,e,n,i));else{if(!Ae(o))throw new Error("Invalid CanDeactivate guard");a=Et(o(t,e,n,i))}return a.pipe(B())});return(0,a.of)(o).pipe(Re())}(t.component,t.route,n,e,i)),B(t=>!0!==t,!0))}(l,i,s,t).pipe((0,Y.zg)(n=>n&&function(t){return"boolean"==typeof t}(n)?function(t,e,n,i){return(0,o.D)(e).pipe((0,z.b)(e=>(0,h.z)(function(t,e){return null!==t&&e&&e(new lt(t)),(0,a.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new ut(t)),(0,a.of)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>(0,d.P)(()=>{const s=e.guards.map(s=>{const r=nn(s,e.node,n);let o;if(function(t){return t&&Ae(t.canActivateChild)}(r))o=Et(r.canActivateChild(i,t));else{if(!Ae(r))throw new Error("Invalid CanActivateChild guard");o=Et(r(i,t))}return o.pipe(B())});return(0,a.of)(s).pipe(Re())}));return(0,a.of)(s).pipe(Re())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return(0,a.of)(!0);const s=i.map(i=>(0,d.P)(()=>{const s=nn(i,e,n);let r;if(function(t){return t&&Ae(t.canActivate)}(s))r=Et(s.canActivate(e,t));else{if(!Ae(s))throw new Error("Invalid CanActivate guard");r=Et(s(e,t))}return r.pipe(B())}));return(0,a.of)(s).pipe(Re())}(t,e.route,n))),B(t=>!0!==t,!0))}(i,r,t,e):(0,a.of)(n)),(0,j.U)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,G.b)(t=>{if(Pe(t.guardsResult)){const e=_t(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new it(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,E.h)(t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1)),mn(t=>{if(t.guards.canActivateChecks.length)return(0,a.of)(t).pipe((0,G.b)(t=>{const e=new st(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,V.w)(t=>{let e=!1;return(0,a.of)(t).pipe(function(t,e){return(0,Y.zg)(n=>{const{targetSnapshot:i,guards:{canActivateChecks:s}}=n;if(!s.length)return(0,a.of)(n);let r=0;return(0,o.D)(s).pipe((0,z.b)(n=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return(0,a.of)({});const r={};return(0,o.D)(s).pipe((0,Y.zg)(s=>function(t,e,n,i){const s=nn(t,e,i);return Et(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe((0,G.b)(t=>{r[s]=t}))),k(1),(0,Y.zg)(()=>Object.keys(r).length===s.length?(0,a.of)(r):p.E))}(t._resolve,t,e,i).pipe((0,j.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),re(t,n).resolve),null)))}(n.route,i,t,e)),(0,G.b)(()=>r++),k(1),(0,Y.zg)(t=>r===s.length?(0,a.of)(n):p.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,G.b)({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}))}),(0,G.b)(t=>{const e=new rt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),mn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),(0,j.U)(t=>{const e=function(t,e,n){const i=de(t,e._root,n?n._root:void 0);return new ne(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,G.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),((t,e,n)=>(0,j.U)(i=>(new ke(e,i.targetRouterState,i.currentRouterState,n).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,t=>this.triggerEvent(t)),(0,G.b)({next(){n=!0},complete(){n=!0}}),function(t){return e=>e.lift(new Z(t))}(()=>{if(!n&&!i){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}this.currentNavigation=null}),w(n=>{if(i=!0,function(t){return t&&t[gt]}(n)){const i=Pe(n.url);i||(this.navigated=!0,this.restoreHistory(t,!0));const s=new X(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),i={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Tn(t.source)};this.scheduleNavigation(e,"imperative",null,i,{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.restoreHistory(t,!0);const i=new tt(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}return p.E}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return e.transitionId!==t.transitionId||!n||!("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Me(t),this.config=t.map(Ne),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(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,s){if(0===n.length)return ge(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ye(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return xt(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new ye(n,e,i)}(n);if(r.toRoot())return ge(e.root,new Rt([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new be(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new be(t,t===e.root,0)}const i=fe(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new be(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?we(o.segmentGroup,o.index,r.commands):ve(o.segmentGroup,o.index,r.commands);return ge(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Pe(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new J(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){var r,o;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l=Tn(e)&&a&&!Tn(a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&c)return Promise.resolve(!0);let u,h,d;s?(u=s.resolve,h=s.reject,d=s.promise):d=new Promise((t,e)=>{u=t,h=e});const p=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.\u0275routerPageId?n.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(r=this.browserPageId)&&void 0!==r?r:0:(null!==(o=this.browserPageId)&&void 0!==o?o:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:u,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}restoreHistory(t,e=!1){var n,i;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new X(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(Lt),s.LFG(vn),s.LFG(i.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Tn(t){return"imperative"!==t}let An=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new m.xQ,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(On),s.Y36(se),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})(),Pn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new m.xQ,this.subscription=t.events.subscribe(t=>{t instanceof J&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,s){if(0!==t||e||n||i||s||"string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(On),s.Y36(se),s.Y36(i.S$))},t.\u0275dir=s.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Ikx("href",e.href,s.LSH),s.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})();function In(t){return""===t||!!t}let Rn=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=i||pt,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.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 t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new Dn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(vn),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Dn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===se?this.route:t===vn?this.childContexts:this.parent.get(t,e)}}class Mn{}class Ln{preload(t,e){return(0,a.of)(null)}}let Fn=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new yn(e,n,e=>t.triggerEvent(new ot(e)),e=>t.triggerEvent(new at(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,E.h)(t=>t instanceof J),(0,z.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return(0,o.D)(n).pipe((0,$.J)(),(0,j.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,a.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,Y.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(On),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(Mn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Nn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Q?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof J&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof dt&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new dt(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(On),s.LFG(i.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Bn=new s.OlP("ROUTER_CONFIGURATION"),Un=new s.OlP("ROUTER_FORROOT_GUARD"),Zn=[i.Ye,{provide:Lt,useClass:Ft},{provide:On,useFactory:function(t,e,n,i,s,r,o,a={},l,c){const u=new On(null,t,e,n,i,s,r,wt(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[Lt,vn,i.Ye,s.zs3,s.v3s,s.Sil,_n,Bn,[class{},new s.FiY],[class{},new s.FiY]]},vn,{provide:se,useFactory:function(t){return t.routerState.root},deps:[On]},{provide:s.v3s,useClass:s.EAV},Fn,Ln,class{preload(t,e){return e().pipe(w(()=>(0,a.of)(null)))}},{provide:Bn,useValue:{enableTracing:!1}}];function qn(){return new s.PXZ("Router",On)}let jn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Zn,Yn(e),{provide:Un,useFactory:zn,deps:[[On,new s.FiY,new s.tp0]]},{provide:Bn,useValue:n||{}},{provide:i.S$,useFactory:Hn,deps:[i.lw,[new s.tBr(i.mr),new s.FiY],Bn]},{provide:Nn,useFactory:Vn,deps:[On,i.EM,Bn]},{provide:Mn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ln},{provide:s.PXZ,multi:!0,useFactory:qn},[Gn,{provide:s.ip1,multi:!0,useFactory:Kn,deps:[Gn]},{provide:Wn,useFactory:$n,deps:[Gn]},{provide:s.tb,multi:!0,useExisting:Wn}]]}}static forChild(e){return{ngModule:t,providers:[Yn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Un,8),s.LFG(On,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function Vn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Nn(t,e,n)}function Hn(t,e,n={}){return n.useHash?new i.Do(t,e):new i.b0(t,e)}function zn(t){return"guarded"}function Yn(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:_n,multi:!0,useValue:t}]}let Gn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new m.xQ}appInitializer(){return this.injector.get(i.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(On),i=this.injector.get(Bn);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,a.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Bn),n=this.injector.get(Fn),i=this.injector.get(Nn),r=this.injector.get(On),o=this.injector.get(s.z2F);t===o.components[0]&&(("enabledNonBlocking"===e.initialNavigation||void 0===e.initialNavigation)&&r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Kn(t){return t.appInitializer.bind(t)}function $n(t){return t.bootstrapListener.bind(t)}const Wn=new s.OlP("Router Initializer")},6215:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});var i=n(9765),s=n(7971);class r extends i.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(t){super.next(this._value=t)}}},1593:function(t,e,n){"use strict";n.d(e,{P:function(){return o}});var i=n(9193),s=n(5917),r=n(7574);class o{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return t=this.error,new r.y(e=>e.error(t));case"C":return(0,i.c)()}var t;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new o("N",t):o.undefinedValueNotification}static createError(t){return new o("E",void 0,t)}static createComplete(){return o.completeNotification}}o.completeNotification=new o("C"),o.undefinedValueNotification=new o("N",void 0)},7574:function(t,e,n){"use strict";n.d(e,{y:function(){return c}});var i=n(7393),s=n(9181),r=n(6490),o=n(6554),a=n(4487);var l=n(2494);let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof i.L)return t;if(t[s.b])return t[s.b]()}return t||e||n?new i.L(t,e,n):new i.L(r.c)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof i.L?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.L](){return this}pipe(...t){return 0===t.length?this:function(t){return 0===t.length?a.y:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}(t)(this)}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=l.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},6490:function(t,e,n){"use strict";n.d(e,{c:function(){return r}});var i=n(2494),s=n(4449);const r={closed:!0,next(t){},error(t){if(i.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},9765:function(t,e,n){"use strict";n.d(e,{Yc:function(){return c},xQ:function(){return u}});var i=n(7574),s=n(7393),r=n(5319),o=n(7971),a=n(8858),l=n(9181);class c extends s.L{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends i.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.b](){return new c(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.N;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;snew h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):r.w.EMPTY}}},8858:function(t,e,n){"use strict";n.d(e,{W:function(){return s}});var i=n(5319);class s extends i.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},7393:function(t,e,n){"use strict";n.d(e,{L:function(){return c}});var i=n(9105),s=n(6490),r=n(5319),o=n(9181),a=n(2494),l=n(4449);class c extends r.w{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.b](){return this}static create(t,e,n){const i=new c(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends c{constructor(t,e,n,r){super(),this._parentSubscriber=t;let o,a=this;(0,i.m)(e)?o=e:e&&(o=e.next,n=e.error,r=e.complete,e!==s.c&&(a=Object.create(e),(0,i.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.v;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,l.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,l.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw n;(0,l.z)(n)}}__tryOrSetError(t,e,n){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):((0,l.z)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},5319:function(t,e,n){"use strict";n.d(e,{w:function(){return a}});var i=n(9796),s=n(1555),r=n(9105);const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class a{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof a)e.remove(this);else if(null!==e)for(let i=0;it.concat(e instanceof o?e.errors:e),[])}a.EMPTY=((l=new a).closed=!0,l)},2494:function(t,e,n){"use strict";n.d(e,{v:function(){return s}});let i=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},5345:function(t,e,n){"use strict";n.d(e,{IY:function(){return o},Ds:function(){return a},ft:function(){return l}});var i=n(7393),s=n(7574),r=n(7444);class o extends i.L{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends i.L{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function l(t,e){if(e.closed)return;if(t instanceof s.y)return t.subscribe(e);let n;try{n=(0,r.s)(t)(e)}catch(i){e.error(i)}return n}},2441:function(t,e,n){"use strict";n.d(e,{c:function(){return a},N:function(){return l}});var i=n(9765),s=n(7574),r=n(5319),o=n(1307);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new r.w,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed&&(this._connection=null,t=r.w.EMPTY)),t}refCount(){return(0,o.x)()(this)}}const l=(()=>{const t=a.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 c extends i.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},739:function(t,e,n){"use strict";n.d(e,{aj:function(){return p}});var i=n(4869),s=n(9796),r=n(7393);class o extends r.L{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class a extends r.L{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var l=n(7444),c=n(7574);function u(t,e,n,i,s=new a(t,n,i)){if(!s.closed)return e instanceof c.y?e.subscribe(s):(0,l.s)(e)(s)}var h=n(6693);const d={};function p(...t){let e,n;return(0,i.K)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,h.n)(t,n).lift(new f(e))}class f{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new m(t,this.resultSelector))}}class m extends o{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(d),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{let n;try{n=t()}catch(i){return void e.error(i)}return(n?(0,s.D)(n):(0,r.c)()).subscribe(e)})}},9193:function(t,e,n){"use strict";n.d(e,{E:function(){return s},c:function(){return r}});var i=n(7574);const s=new i.y(t=>t.complete());function r(t){return t?function(t){return new i.y(e=>t.schedule(()=>e.complete()))}(t):s}},4402:function(t,e,n){"use strict";n.d(e,{D:function(){return h}});var i=n(7574),s=n(7444),r=n(5319),o=n(6554),a=n(4087),l=n(377),c=n(4072),u=n(9489);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.L]}(t))return function(t,e){return new i.y(n=>{const i=new r.w;return i.add(e.schedule(()=>{const s=t[o.L]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if((0,c.t)(t))return function(t,e){return new i.y(n=>{const i=new r.w;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if((0,u.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[l.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.y(n=>{const i=new r.w;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[l.hZ](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.y?t:new i.y((0,s.s)(t))}},6693:function(t,e,n){"use strict";n.d(e,{n:function(){return o}});var i=n(7574),s=n(5015),r=n(4087);function o(t,e){return e?(0,r.r)(t,e):new i.y((0,s.V)(t))}},2759:function(t,e,n){"use strict";n.d(e,{R:function(){return a}});var i=n(7574),s=n(9796),r=n(9105),o=n(8002);function a(t,e,n,c){return(0,r.m)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe((0,o.U)(t=>(0,s.k)(t)?c(...t):c(t))):new i.y(i=>{l(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function l(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.y?t[0]:(0,r.J)(e)((0,o.n)(t,n))}},5917:function(t,e,n){"use strict";n.d(e,{of:function(){return o}});var i=n(4869),s=n(6693),r=n(4087);function o(...t){let e=t[t.length-1];return(0,i.K)(e)?(t.pop(),(0,r.r)(t,e)):(0,s.n)(t)}},628:function(t,e,n){"use strict";n.d(e,{e:function(){return h}});var i=n(3637),s=n(5345);class r{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new o(t,this.durationSelector))}}class o extends s.Ds{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=(0,s.ft)(n,new s.IY(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,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(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n(7574),l=n(6561),c=n(4869);function u(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function h(t,e=i.P){return function(t){return function(e){return e.lift(new r(t))}}(()=>function(t=0,e,n){let s=-1;return(0,l.k)(e)?s=Number(e)<1?1:Number(e):(0,c.K)(e)&&(n=e),(0,c.K)(n)||(n=i.P),new a.y(e=>{const i=(0,l.k)(t)?t:+t-n.now();return n.schedule(u,i,{index:0,period:s,subscriber:e})})}(t,e))}},4612:function(t,e,n){"use strict";n.d(e,{b:function(){return s}});var i=n(9773);function s(t,e){return(0,i.zg)(t,e,1)}},4395:function(t,e,n){"use strict";n.d(e,{b:function(){return r}});var i=n(7393),s=n(3637);function r(t,e=s.P){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.L{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},7519:function(t,e,n){"use strict";n.d(e,{x:function(){return s}});var i=n(7393);function s(t,e){return n=>n.lift(new r(t,e))}class r{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends i.L{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},5435:function(t,e,n){"use strict";n.d(e,{h:function(){return s}});var i=n(7393);function s(t,e){return function(n){return n.lift(new r(t,e))}}class r{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},8002:function(t,e,n){"use strict";n.d(e,{U:function(){return s}});var i=n(7393);function s(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new r(t,e))}}class r{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},3282:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});var i=n(9773),s=n(4487);function r(t=Number.POSITIVE_INFINITY){return(0,i.zg)(s.y,t)}},9773:function(t,e,n){"use strict";n.d(e,{zg:function(){return o}});var i=n(8002),s=n(4402),r=n(5345);function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(o((n,r)=>(0,s.D)(t(n,r)).pipe((0,i.U)((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends r.Ds{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1307:function(t,e,n){"use strict";n.d(e,{x:function(){return s}});var i=n(7393);function s(){return function(t){return t.lift(new r(t))}}class r{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new o(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class o extends i.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}},3653:function(t,e,n){"use strict";n.d(e,{T:function(){return s}});var i=n(7393);function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.total=t}call(t,e){return e.subscribe(new o(t,this.total))}}class o extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},9761:function(t,e,n){"use strict";n.d(e,{O:function(){return r}});var i=n(8071),s=n(4869);function r(...t){const e=t[t.length-1];return(0,s.K)(e)?(t.pop(),n=>(0,i.z)(t,n,e)):e=>(0,i.z)(t,e)}},3190:function(t,e,n){"use strict";n.d(e,{w:function(){return o}});var i=n(8002),s=n(4402),r=n(5345);function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,r)=>(0,s.D)(t(n,r)).pipe((0,i.U)((t,i)=>e(n,t,r,i))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends r.Ds{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new r.IY(this),i=this.destination;i.add(n),this.innerSubscription=(0,r.ft)(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},5257:function(t,e,n){"use strict";n.d(e,{q:function(){return o}});var i=n(7393),s=n(7108),r=n(9193);function o(t){return e=>0===t?(0,r.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},6782:function(t,e,n){"use strict";n.d(e,{R:function(){return s}});var i=n(5345);function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.notifier=t}call(t,e){const n=new o(t),s=(0,i.ft)(this.notifier,new i.IY(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class o extends i.Ds{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},3342:function(t,e,n){"use strict";n.d(e,{b:function(){return o}});var i=n(7393);function s(){}var r=n(9105);function o(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends i.L{constructor(t,e,n,i){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=n||s,this._tapComplete=i||s,(0,r.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},4087:function(t,e,n){"use strict";n.d(e,{r:function(){return r}});var i=n(7574),s=n(5319);function r(t,e){return new i.y(n=>{const i=new s.w;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},6465:function(t,e,n){"use strict";n.d(e,{o:function(){return r}});var i=n(5319);class s extends i.w{constructor(t,e){super()}schedule(t,e=0){return this}}class r extends s{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},6102:function(t,e,n){"use strict";n.d(e,{v:function(){return s}});let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class s extends i{constructor(t,e=i.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},4581:function(t,e,n){"use strict";n.d(e,{E:function(){return u}});let i=1;const s=Promise.resolve(),r={};function o(t){return t in r&&(delete r[t],!0)}const a={setImmediate(t){const e=i++;return r[e]=!0,s.then(()=>o(e)&&t()),e},clearImmediate(t){o(t)}};var l=n(6465),c=n(6102);const u=new class extends c.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}})},3637:function(t,e,n){"use strict";n.d(e,{P:function(){return s}});var i=n(6465);const s=new(n(6102).v)(i.o)},377:function(t,e,n){"use strict";n.d(e,{hZ:function(){return i}});const i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:function(t,e,n){"use strict";n.d(e,{W:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},7971:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4449:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,{z:function(){return i}})},4487:function(t,e,n){"use strict";function i(t){return t}n.d(e,{y:function(){return i}})},9796:function(t,e,n){"use strict";n.d(e,{k:function(){return i}});const i=Array.isArray||(t=>t&&"number"==typeof t.length)},9489:function(t,e,n){"use strict";n.d(e,{z:function(){return i}});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},9105:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,{m:function(){return i}})},6561:function(t,e,n){"use strict";n.d(e,{k:function(){return s}});var i=n(9796);function s(t){return!(0,i.k)(t)&&t-parseFloat(t)+1>=0}},1555:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,{K:function(){return i}})},5639:function(t,e,n){"use strict";n.d(e,{b:function(){return s}});var i=n(7574);function s(t){return!!t&&(t instanceof i.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},4072:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:function(){return i}})},4869:function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,{K:function(){return i}})},7444:function(t,e,n){"use strict";n.d(e,{s:function(){return u}});var i=n(5015),s=n(4449),r=n(377),o=n(6554),a=n(9489),l=n(4072),c=n(1555);const u=t=>{if(t&&"function"==typeof t[o.L])return(t=>e=>{const n=t[o.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if((0,a.z)(t))return(0,i.V)(t);if((0,l.t)(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,s.z),e))(t);if(t&&"function"==typeof t[r.hZ])return(t=>e=>{const n=t[r.hZ]();for(;;){let t;try{t=n.next()}catch(i){return e.error(i),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const e=`You provided ${(0,c.K)(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}}},5015:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});const i=t=>e=>{for(let n=0,i=t.length;n{class t{constructor(t){this.sanitizer=t}transform(t,e){return t=(t=(t=t.replace(/<\s*script\s*/gi,"")).replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,"")).replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s.H7,16))},t.\u0275pipe=i.Yjl({name:"safeHtml",type:t,pure:!0}),t})()},3183:function(t,e,n){"use strict";n.d(e,{h:function(){return y}});var i=n(2238),s=n(7574),r=n(3637),o=n(6561);function a(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var l=n(3018),c=n(8583),u=n(1095),h=n(7918),d=n(6498);function p(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().close()}),l.TgZ(1,"uds-translate"),l._uU(2,"Close"),l.qZA(),l._uU(3),l.qZA()}if(2&t){const t=l.oxw();l.xp6(3),l.Oqu(t.extra)}}function f(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().yes()}),l.TgZ(1,"uds-translate"),l._uU(2,"Yes"),l.qZA(),l.qZA()}}function m(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().no()}),l.TgZ(1,"uds-translate"),l._uU(2,"No"),l.qZA(),l.qZA()}}var g=(()=>{return(t=g||(g={}))[t.alert=0]="alert",t[t.yesno=1]="yesno",g;var t})();let _=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.subscription=null,this.resetCallbacks(),this.yesno=new s.y(t=>{this.yes=()=>{t.next(!0),t.complete()},this.no=()=>{t.next(!1),t.complete()},this.close=()=>{this.doClose(),t.next(!1),t.complete()};const e=this;return{unsubscribe:()=>e.resetCallbacks()}})}resetCallbacks(){this.yes=this.no=()=>this.close(),this.close=()=>this.doClose()}closed(){null!==this.subscription&&this.subscription.unsubscribe()}doClose(){this.dialogRef.close()}setExtra(t){this.extra=" ("+Math.floor(t/1e3)+" "+django.gettext("seconds")+") "}initAlert(){this.data.autoclose>0?(this.dialogRef.afterClosed().subscribe(t=>{this.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(t=0,e=r.P){return(!(0,o.k)(t)||t<0)&&(t=0),(!e||"function"!=typeof e.schedule)&&(e=r.P),new s.y(n=>(n.add(e.schedule(a,t,{subscriber:n,counter:0,period:t})),n))}(1e3).subscribe(t=>{const e=this.data.autoclose-1e3*(t+1);this.setExtra(e),e<=0&&this.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(t=>{this.closed()}),this.subscription=this.data.checkClose.subscribe(t=>{window.setTimeout(()=>{this.doClose()})}))}initYesNo(){}ngOnInit(){this.data.type===g.yesno?this.initYesNo():this.initAlert()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(i.so),l.Y36(i.WI))},t.\u0275cmp=l.Xpm({type:t,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"]],template:function(t,e){1&t&&(l._UZ(0,"h4",0),l.ALo(1,"safeHtml"),l._UZ(2,"mat-dialog-content",1),l.ALo(3,"safeHtml"),l.TgZ(4,"mat-dialog-actions"),l.YNc(5,p,4,1,"button",2),l.YNc(6,f,3,0,"button",2),l.YNc(7,m,3,0,"button",2),l.qZA()),2&t&&(l.Q6J("innerHtml",l.lcZ(1,5,e.data.title),l.oJD),l.xp6(2),l.Q6J("innerHTML",l.lcZ(3,7,e.data.body),l.oJD),l.xp6(3),l.Q6J("ngIf",0===e.data.type),l.xp6(1),l.Q6J("ngIf",1===e.data.type),l.xp6(1),l.Q6J("ngIf",1===e.data.type))},directives:[i.uh,i.xY,i.H8,c.O5,u.lW,i.ZT,h.P],pipes:[d.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t})(),y=(()=>{class t{constructor(t){this.dialog=t}alert(t,e,n=0,i=null){const s=window.innerWidth<800?"80%":"40%";return this.dialog.open(_,{width:s,data:{title:t,body:e,autoclose:n,checkClose:i,type:g.alert},disableClose:!0})}yesno(t,e){const n=window.innerWidth<800?"80%":"40%";return this.dialog.open(_,{width:n,data:{title:t,body:e,type:g.yesno},disableClose:!0}).componentInstance.yesno}}return t.\u0275fac=function(e){return new(e||t)(l.LFG(i.uw))},t.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac}),t})()},2870:function(t,e,n){"use strict";n.d(e,{S:function(){return s}});var i=n(7574);let s=(()=>{class t{constructor(t){this.api=t,this.delay=t.config.launcher_wait_time}launchURL(e){let n="init";const s=t=>{let e=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof t?e=t:403===t.status&&(e=django.gettext("Your session has expired. Please, login again")),window.setTimeout(()=>{this.showAlert(django.gettext("Error"),e,5e3),403===t.status&&window.setTimeout(()=>{this.api.logout()},5e3)})};if("udsa://"===e.substring(0,7)){const t=e.split("//")[1].split("/"),r=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new i.y(e=>{let i=0;const o=()=>{r.componentInstance&&this.api.status(t[0],t[1]).subscribe(t=>{"ready"===t.status?(i?Date.now()-i>5*this.delay&&(r.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),r.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(i=Date.now(),r.componentInstance.data.title=django.gettext("Service ready"),r.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(o,this.delay)):"accessed"===t.status?(r.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),e.next(!0),e.complete()):"running"===t.status?window.setTimeout(o,this.delay):(e.next(!0),e.complete(),s())},t=>{e.next(!0),e.complete(),s(t)})},a=()=>{if("init"===n)window.setTimeout(a,this.delay);else{if("error"===n||"stop"===n)return;window.setTimeout(o)}};window.setTimeout(a)}));this.api.enabler(t[0],t[1]).subscribe(t=>{if(t.error)n="error",this.api.gui.alert(django.gettext("Error launching service"),t.error);else{if(t.url.startsWith("/"))return r.componentInstance&&r.componentInstance.close(),n="stop",void this.launchURL(t.url);"https:"===window.location.protocol&&(t.url=t.url.replace("uds://","udss://")),n="enabled",this.doLaunch(t.url)}},t=>{this.api.logout()})}else{const n=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new i.y(i=>{const r=()=>{n.componentInstance&&this.api.transportUrl(e).subscribe(e=>{if(e.url)if(i.next(!0),i.complete(),-1!==e.url.indexOf("o_s_w=")){const t=/(.*)&o_s_w=.*/.exec(e.url);window.location.href=t[1]}else{let n="global";if(-1!==e.url.indexOf("o_n_w=")){const t=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(e.url);t&&(n=t[2],e.url=t[1])}t.transportsWindow[n]&&t.transportsWindow[n].close(),t.transportsWindow[n]=window.open(e.url,"uds_trans_"+n)}else e.running?window.setTimeout(r,this.delay):(i.next(!0),i.complete(),s(e.error))},t=>{i.next(!0),i.complete(),s(t)})};window.setTimeout(r)}))}}showAlert(t,e,n,i=null){return this.api.gui.alert(django.gettext("Launching service"),'

'+t+'

'+e+"

",n,i)}doLaunch(t){let e=document.getElementById("hiddenUdsLauncherIFrame");if(null===e){const t=document.createElement("div");t.id="testID",t.innerHTML='',document.body.appendChild(t),e=document.getElementById("hiddenUdsLauncherIFrame")}e.contentWindow.location.href=t}}return t.transportsWindow={},t})()},4902:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G:function(){return LoginComponent}});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3018),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(665),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8295),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9983),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8583),_angular_material_button__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1095),_angular_material_select__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7441),_angular_material_core__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2458),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template(t,e){if(1&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&t){const t=e.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",t.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",t.name," ")}}function LoginComponent_div_22_Template(t,e){if(1&t){const t=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(1,"mat-form-field",17),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(2,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(e){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(t),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(e.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()}if(2&t){const t=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",t.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",t.auths)}}let LoginComponent=(()=>{class LoginComponent{constructor(t){this.api=t,this.title="UDS Enterprise",this.title=t.config.site_name,this.auths=t.config.authenticators.slice(0),this.auths.sort((t,e)=>t.priority-e.priority)}ngOnInit(){document.getElementById("loginform").action=this.api.config.urls.login;const t=document.getElementById("token");t.name=this.api.csrfField,t.value=this.api.csrfToken,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}changeAuth(auth){this.auth.value=auth;const doCustomAuth=data=>{eval(data)};for(const t of this.auths)t.id===auth&&t.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml(t.id).subscribe(t=>doCustomAuth(t)))}launch(){return document.getElementById("loginform").submit(),!0}}return LoginComponent.\u0275fac=function(t){return new(t||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return e.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(2,"input",2),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(10,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(11,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(12,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(17,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(18,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(24,"button",15),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",e.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",e.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",e.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,e.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_button__WEBPACK_IMPORTED_MODULE_7__.lW,_angular_material_select__WEBPACK_IMPORTED_MODULE_8__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_9__.ey],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent})()},7918:function(t,e,n){"use strict";n.d(e,{P:function(){return s}});var i=n(3018);let s=(()=>{class t{constructor(t){this.el=t}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t,selectors:[["uds-translate"]]}),t})()},3513:function(t,e,n){"use strict";n.d(e,{n:function(){return i}});class i{constructor(t){this.user=t.user,this.role=t.role,this.admin=t.admin}get isStaff(){return"staff"===this.role||"admin"===this.role}get isAdmin(){return"admin"===this.role}get isLogged(){return null!=this.user}get isRestricted(){return"restricted"===this.role}}},7540:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return UDSApiService}});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3018),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1841),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3183),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8741);let UDSApiService=(()=>{class UDSApiService{constructor(t,e,n){this.http=t,this.gui=e,this.router=n,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get staffInfo(){return udsData.info}get plugins(){return udsData.plugins}get actors(){return udsData.actors}get errors(){return udsData.errors}enabler(t,e){const n=this.config.urls.enabler.replace("param1",t).replace("param2",e);return this.http.get(n)}status(t,e){const n=this.config.urls.status.replace("param1",t).replace("param2",e);return this.http.get(n)}action(t,e){const n=this.config.urls.action.replace("param1",e).replace("param2",t);return this.http.get(n)}transportUrl(t){return this.http.get(t)}galleryImageURL(t){return this.config.urls.galleryImage.replace("param1",t)}transportIconURL(t){return this.config.urls.transportIcon.replace("param1",t)}staticURL(t){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+t:"/static/"+t}getServicesInformation(){return this.http.get(this.config.urls.services)}getErrorInformation(t){return this.http.get(this.config.urls.error.replace("9999",t))}executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}gotoAdmin(){window.location.href=this.config.urls.admin}logout(){window.location.href=this.config.urls.logout}launchURL(t){this.plugin.launchURL(t)}getAuthCustomHtml(t){return this.http.get(this.config.urls.customAuth+t,{responseType:"text"})}}return UDSApiService.\u0275fac=function(t){return new(t||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService})()},2340:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i={production:!0}},6445:function(t,e,n){"use strict";var i=n(9075),s=n(3018),r=n(9490),o=n(9765),a=n(739),l=n(8071),c=n(7574),u=n(5257),h=n(3653),d=n(4395),p=n(8002),f=n(9761),m=n(6782),g=n(521);let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const y=new Set;let b,v=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):w}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!y.has(t))try{b||(b=document.createElement("style"),b.setAttribute("type","text/css"),document.head.appendChild(b)),b.sheet&&(b.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),y.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(g.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(g.t4))},token:t,providedIn:"root"}),t})();function w(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let C=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new o.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return x((0,r.Eq)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=x((0,r.Eq)(t)).map(t=>this._registerQuery(t).observable);let n=(0,a.aj)(e);return n=(0,l.z)(n.pipe((0,u.q)(1)),n.pipe((0,h.T)(1),(0,d.b)(0))),n.pipe((0,p.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new c.y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe((0,f.O)(e),(0,p.U)(({matches:e})=>({query:t,matches:e})),(0,m.R)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(v),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(v),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})();function x(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var E=n(1841),S=n(8741),k=n(7540);let O=(()=>{class t{constructor(t){this.api=t}canActivate(t,e){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(k.n))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var T=n(4902),A=n(7918),P=n(8583);function I(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().download(e.url)}),s.TgZ(1,"div",7),s._UZ(2,"img",8),s.qZA(),s.TgZ(3,"div",9),s._uU(4),s.qZA(),s.TgZ(5,"div",10),s._uU(6),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.Tol(n.css(t)),s.xp6(2),s.Q6J("src",n.img(t.name),s.LSH),s.xp6(2),s.lnq(" ",n.legacy(t)," ",t.name," (",t.url.split(".").pop(),") "),s.xp6(2),s.hij(" ",t.description," ")}}let R=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}download(t){window.location.href=t}img(t){return this.api.staticURL("modern/img/"+t+".png")}css(t){const e=["plugin"];return t.legacy&&e.push("legacy"),e}legacy(t){return t.legacy?"Legacy":""}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h1"),s.TgZ(4,"uds-translate"),s._uU(5,"UDS Client"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"div",3),s.YNc(7,I,7,7,"div",4),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"ul"),s.TgZ(10,"li"),s.TgZ(11,"uds-translate"),s._uU(12,"Download UDS client for your platform"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(7),s.Q6J("ngForOf",e.api.plugins))},directives:[A.P,P.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem}"]}),t})();var D=n(6498);function M(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().download(e.url)}),s.TgZ(1,"div",7),s._UZ(2,"img",8),s.qZA(),s._UZ(3,"div",9),s.ALo(4,"safeHtml"),s._UZ(5,"div",10),s.ALo(6,"safeHtml"),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.Tol(n.css(t.name)),s.xp6(2),s.Q6J("src",n.img(t.name),s.LSH),s.xp6(1),s.Q6J("innerHTML",s.lcZ(4,5,t.name),s.oJD),s.xp6(2),s.Q6J("innerHTML",s.lcZ(6,7,t.description),s.oJD)}}let L=(()=>{class t{constructor(t){this.api=t}ngOnInit(){this.actors=[];const t=[];this.api.actors.forEach(e=>{e.name.includes("legacy")?t.push(e):this.actors.push(e)}),t.forEach(t=>{this.actors.push(t)})}download(t){window.location.href=t}img(t){const e=t.split(".").pop().toLowerCase();let n="Linux";return"exe"===e?n="Windows":"pkg"===e&&(n="MacOS"),this.api.staticURL("modern/img/"+n+".png")}css(t){const e=["actor"];return t.toLowerCase().includes("legacy")&&e.push("legacy"),e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h1"),s.TgZ(4,"uds-translate"),s._uU(5,"Downloads"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"div",3),s.YNc(7,M,7,9,"div",4),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"ul"),s.TgZ(10,"li"),s.TgZ(11,"uds-translate"),s._uU(12,"Always download the UDS actor matching your platform"),s.qZA(),s.qZA(),s.TgZ(13,"li"),s.TgZ(14,"uds-translate"),s._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(7),s.Q6J("ngForOf",e.actors))},directives:[A.P,P.sg],pipes:[D.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:bold;overflow:hidden}"]}),t})();var F=n(5319),N=n(8345);let B=0;const U=new s.OlP("CdkAccordion");let Z=(()=>{class t{constructor(){this._stateChanges=new o.xQ,this._openCloseAllActions=new o.xQ,this.id="cdk-accordion-"+B++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=(0,r.Ig)(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[s._Bn([{provide:U,useExisting:t}]),s.TTD]}),t})(),q=0,j=(()=>{class t{constructor(t,e,n){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=n,this._openCloseAllSubscription=F.w.EMPTY,this.closed=new s.vpe,this.opened=new s.vpe,this.destroyed=new s.vpe,this.expandedChange=new s.vpe,this.id="cdk-accordion-child-"+q++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=n.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=(0,r.Ig)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(U,12),s.Y36(s.sBO),s.Y36(N.A8))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[s._Bn([{provide:U,useValue:void 0}])]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();var H=n(7636),z=n(2458),Y=n(9238),G=n(7519),K=n(5435),$=n(6461),W=n(6237),Q=n(9193),J=n(6682),X=n(7238);const tt=["body"];function et(t,e){}const nt=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],it=["mat-expansion-panel-header","*","mat-action-row"];function st(t,e){if(1&t&&s._UZ(0,"span",2),2&t){const t=s.oxw();s.Q6J("@indicatorRotate",t._getExpandedState())}}const rt=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],ot=["mat-panel-title","mat-panel-description","*"],at=new s.OlP("MAT_ACCORDION"),lt="225ms cubic-bezier(0.4,0.0,0.2,1)",ct={indicatorRotate:(0,X.X$)("indicatorRotate",[(0,X.SB)("collapsed, void",(0,X.oB)({transform:"rotate(0deg)"})),(0,X.SB)("expanded",(0,X.oB)({transform:"rotate(180deg)"})),(0,X.eR)("expanded <=> collapsed, void => collapsed",(0,X.jt)(lt))]),bodyExpansion:(0,X.X$)("bodyExpansion",[(0,X.SB)("collapsed, void",(0,X.oB)({height:"0px",visibility:"hidden"})),(0,X.SB)("expanded",(0,X.oB)({height:"*",visibility:"visible"})),(0,X.eR)("expanded <=> collapsed, void => collapsed",(0,X.jt)(lt))])};let ut=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),ht=0;const dt=new s.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let pt=(()=>{class t extends j{constructor(t,e,n,i,r,a,l){super(t,e,n),this._viewContainerRef=i,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new s.vpe,this.afterCollapse=new s.vpe,this._inputChanges=new o.xQ,this._headerId="mat-expansion-panel-header-"+ht++,this._bodyAnimationDone=new o.xQ,this.accordion=t,this._document=r,this._bodyAnimationDone.pipe((0,G.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=(0,r.Ig)(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,f.O)(null),(0,K.h)(()=>this.expanded&&!this._portal),(0,u.q)(1)).subscribe(()=>{this._portal=new H.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(at,12),s.Y36(s.sBO),s.Y36(N.A8),s.Y36(s.s_b),s.Y36(P.K0),s.Y36(W.Qb,8),s.Y36(dt,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,ut,5),2&t){let t;s.iGM(t=s.CRH())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&s.Gf(tt,5),2&t){let t;s.iGM(t=s.CRH())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[s._Bn([{provide:at,useValue:void 0}]),s.qOj,s.TTD],ngContentSelectors:it,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(s.F$t(nt),s.Hsn(0),s.TgZ(1,"div",0,1),s.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),s.TgZ(3,"div",2),s.Hsn(4,1),s.YNc(5,et,0,0,"ng-template",3),s.qZA(),s.Hsn(6,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),s.uIk("aria-labelledby",e._headerId),s.xp6(4),s.Q6J("cdkPortalOutlet",e._portal))},directives:[H.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ct.bodyExpansion]},changeDetection:0}),t})();class ft{}const mt=(0,z.sb)(ft);let gt=(()=>{class t extends mt{constructor(t,e,n,i,s,r,o){super(),this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=i,this._animationMode=r,this._parentChangeSubscription=F.w.EMPTY;const a=t.accordion?t.accordion._stateChanges.pipe((0,K.h)(t=>!(!t.hideToggle&&!t.togglePosition))):Q.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,J.T)(t.opened,t.closed,a,t._inputChanges.pipe((0,K.h)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe((0,K.h)(()=>t._containsFocus())).subscribe(()=>n.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case $.L_:case $.K5:(0,$.Vb)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(pt,1),s.Y36(s.SBq),s.Y36(Y.tE),s.Y36(s.sBO),s.Y36(dt,8),s.Y36(W.Qb,8),s.$8M("tabindex"))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.uIk("id",e.panel._headerId)("tabindex",e.tabIndex)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),s.Udp("height",e._getHeaderHeight()),s.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[s.qOj],ngContentSelectors:ot,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(s.F$t(rt),s.TgZ(0,"span",0),s.Hsn(1),s.Hsn(2,1),s.Hsn(3,2),s.qZA(),s.YNc(4,st,1,1,"span",1)),2&t&&(s.xp6(4),s.Q6J("ngIf",e._showToggle()))},directives:[P.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[ct.indicatorRotate]},changeDetection:0}),t})(),_t=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),yt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),bt=(()=>{class t extends Z{constructor(){super(...arguments),this._ownHeaders=new s.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=(0,r.Ig)(t)}ngAfterContentInit(){this._headers.changes.pipe((0,f.O)(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Y.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,gt,5),2&t){let t;s.iGM(t=s.CRH())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[s._Bn([{provide:at,useExisting:t}]),s.qOj]}),t})(),vt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[P.ez,z.BQ,V,H.eL]]}),t})();function wt(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"uds-translate"),s._uU(2,"Detected proxy ip"),s.qZA(),s._uU(3),s.qZA()),2&t){const t=s.oxw(2);s.xp6(3),s.hij(": ",t.api.staffInfo.ip_proxy,"")}}function Ct(t,e){if(1&t&&(s.TgZ(0,"li"),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function xt(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function Et(t,e){if(1&t&&(s.TgZ(0,"div",1),s.TgZ(1,"h1"),s.TgZ(2,"uds-translate"),s._uU(3,"Information"),s.qZA(),s.qZA(),s.TgZ(4,"mat-accordion"),s.TgZ(5,"mat-expansion-panel"),s.TgZ(6,"mat-expansion-panel-header",2),s.TgZ(7,"mat-panel-title"),s._uU(8," IPs "),s.qZA(),s.TgZ(9,"mat-panel-description"),s.TgZ(10,"uds-translate"),s._uU(11,"Client IP"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(12,"ol"),s.TgZ(13,"li"),s.TgZ(14,"uds-translate"),s._uU(15,"Client IP"),s.qZA(),s._uU(16),s.qZA(),s.YNc(17,wt,4,1,"li",3),s.qZA(),s.qZA(),s.TgZ(18,"mat-expansion-panel"),s.TgZ(19,"mat-expansion-panel-header",2),s.TgZ(20,"mat-panel-title"),s.TgZ(21,"uds-translate"),s._uU(22,"Transports"),s.qZA(),s.qZA(),s.TgZ(23,"mat-panel-description"),s.TgZ(24,"uds-translate"),s._uU(25,"UDS transports for this client"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(26,"ol"),s.YNc(27,Ct,2,1,"li",4),s.qZA(),s.qZA(),s.TgZ(28,"mat-expansion-panel"),s.TgZ(29,"mat-expansion-panel-header",2),s.TgZ(30,"mat-panel-title"),s.TgZ(31,"uds-translate"),s._uU(32,"Networks"),s.qZA(),s.qZA(),s.TgZ(33,"mat-panel-description"),s.TgZ(34,"uds-translate"),s._uU(35,"UDS networks for this IP"),s.qZA(),s.qZA(),s.qZA(),s.YNc(36,xt,2,1,"span",4),s._uU(37,"\xa0 "),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(16),s.hij(": ",t.api.staffInfo.ip,""),s.xp6(1),s.Q6J("ngIf",t.api.staffInfo.ip_proxy!==t.api.staffInfo.ip),s.xp6(10),s.Q6J("ngForOf",t.api.staffInfo.transports),s.xp6(9),s.Q6J("ngForOf",t.api.staffInfo.networks)}}let St=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(t,e){1&t&&s.YNc(0,Et,38,4,"div",0),2&t&&s.Q6J("ngIf",e.api.staffInfo)},directives:[P.O5,A.P,bt,pt,gt,yt,_t,P.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4}"]}),t})();var kt=n(2759),Ot=n(3342),Tt=n(8295),At=n(9983);const Pt=["input"];let It=(()=>{class t{constructor(){this.updateEvent=new s.vpe}ngAfterViewInit(){(0,kt.R)(this.input.nativeElement,"keyup").pipe((0,K.h)(Boolean),(0,d.b)(600),(0,G.x)(),(0,Ot.b)(()=>this.update(this.input.nativeElement.value))).subscribe()}update(t){this.updateEvent.emit(t.toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-filter"]],viewQuery:function(t,e){if(1&t&&s.Gf(Pt,7),2&t){let t;s.iGM(t=s.CRH())&&(e.input=t.first)}},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-form-field",1),s.TgZ(2,"mat-label"),s.TgZ(3,"uds-translate"),s._uU(4,"Filter"),s.qZA(),s.qZA(),s._UZ(5,"input",2,3),s.TgZ(7,"i",4),s._uU(8,"search"),s.qZA(),s.qZA(),s.qZA())},directives:[Tt.KE,Tt.hX,A.P,At.Nt,Tt.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),t})();var Rt=n(5917),Dt=n(4581),Mt=n(3190),Lt=n(3637),Ft=n(7393),Nt=n(1593);function Bt(t,e=Lt.P){const n=function(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-e.now():Math.abs(t);return t=>t.lift(new Ut(n,e))}class Ut{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Zt(t,this.delay,this.scheduler))}}class Zt extends Ft.L{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Zt.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new qt(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Nt.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Nt.P.createComplete()),this.unsubscribe()}}class qt{constructor(t,e){this.time=t,this.notification=e}}var jt=n(625),Vt=n(9243),Ht=n(946);const zt=["mat-menu-item",""];function Yt(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",2),s._UZ(1,"polygon",3),s.qZA())}const Gt=["*"];function Kt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.NdJ("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)})("click",function(){return s.CHM(t),s.oxw().closed.emit("click")})("@transformMenu.start",function(e){return s.CHM(t),s.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return s.CHM(t),s.oxw()._onAnimationDone(e)}),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),s.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const $t={transformMenu:(0,X.X$)("transformMenu",[(0,X.SB)("void",(0,X.oB)({opacity:0,transform:"scale(0.8)"})),(0,X.eR)("void => enter",(0,X.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,X.oB)({opacity:1,transform:"scale(1)"}))),(0,X.eR)("* => void",(0,X.jt)("100ms 25ms linear",(0,X.oB)({opacity:0})))]),fadeInItems:(0,X.X$)("fadeInItems",[(0,X.SB)("showing",(0,X.oB)({opacity:1})),(0,X.eR)("void => *",[(0,X.oB)({opacity:0}),(0,X.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Wt=new s.OlP("MatMenuContent"),Qt=new s.OlP("MAT_MENU_PANEL"),Jt=(0,z.Kr)((0,z.Id)(class{}));let Xt=(()=>{class t extends Jt{constructor(t,e,n,i,s){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new o.xQ,this._focused=new o.xQ,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.n_E,this._tabSubscription=F.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new o.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+ee++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=(0,r.Ig)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,r.Ig)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Y.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,f.O)(this._directDescendantItems),(0,Mt.w)(t=>(0,J.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,f.O)(this._directDescendantItems),(0,Mt.w)(t=>(0,J.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case $.hY:(0,$.Vb)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case $.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case $.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(e===$.LH||e===$.JH)&&n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,u.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=Math.min(this._baseElevation+t,24),n=`${this._elevationPrefix}${e}`,i=Object.keys(this._classList).find(t=>t.startsWith(this._elevationPrefix));(!i||i===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[n]=!0,this._previousElevation=n)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,f.O)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(te))},t.\u0275dir=s.lG2({type:t,contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,Wt,5),s.Suo(n,Xt,5),s.Suo(n,Xt,4)),2&t){let t;s.iGM(t=s.CRH())&&(e.lazyContent=t.first),s.iGM(t=s.CRH())&&(e._allItems=t),s.iGM(t=s.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(s.Rgc,5),2&t){let t;s.iGM(t=s.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),ie=(()=>{class t extends ne{constructor(t,e,n){super(t,e,n),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(te))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&s.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[s._Bn([{provide:Qt,useExisting:t}]),s.qOj],ngContentSelectors:Gt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,Kt,3,6,"ng-template"))},directives:[P.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[$t.transformMenu,$t.fadeInItems]},changeDetection:0}),t})();const se=new s.OlP("mat-menu-scroll-strategy"),re={provide:se,deps:[jt.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},oe=(0,g.i$)({passive:!0});let ae=(()=>{class t{constructor(t,e,n,i,r,o,a,l){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=o,this._dir=a,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=F.w.EMPTY,this._hoverSubscription=F.w.EMPTY,this._menuCloseSubscription=F.w.EMPTY,this._handleTouchStart=t=>{(0,Y.yG)(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new s.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=r instanceof ne?r:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,oe),o&&(o._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,oe),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ne&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===t||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,e instanceof ne?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,K.h)(t=>"void"===t.toState),(0,u.q)(1),(0,m.R)(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new jt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[i,s],[a,l]=[e,n],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(r="top"===i?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:r,overlayX:l,overlayY:i,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Rt.of)(),i=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,K.h)(t=>t!==this._menuItemInstance),(0,K.h)(()=>this._menuOpen)):(0,Rt.of)();return(0,J.T)(t,n,i,e)}_handleMousedown(t){(0,Y.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;(e===$.K5||e===$.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===$.SV&&"ltr"===this.dir||e===$.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,K.h)(t=>t===this._menuItemInstance&&!t.disabled),Bt(0,Dt.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ne&&this.menu._isAnimating?this.menu._animationDone.pipe((0,u.q)(1),Bt(0,Dt.E),(0,m.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new H.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(se),s.Y36(Qt,8),s.Y36(Xt,10),s.Y36(Ht.Is,8),s.Y36(Y.tE))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&s.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),le=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[re],imports:[z.BQ]}),t})(),ce=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[re],imports:[[P.ez,z.BQ,z.si,jt.U8,le],Vt.ZD,z.BQ,le]}),t})();const ue={tooltipState:(0,X.X$)("state",[(0,X.SB)("initial, void, hidden",(0,X.oB)({opacity:0,transform:"scale(0)"})),(0,X.SB)("visible",(0,X.oB)({transform:"scale(1)"})),(0,X.eR)("* => visible",(0,X.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,X.F4)([(0,X.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,X.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,X.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,X.eR)("* => hidden",(0,X.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,X.oB)({opacity:0})))])},he="tooltip-panel",de=(0,g.i$)({passive:!0}),pe=new s.OlP("mat-tooltip-scroll-strategy"),fe={provide:pe,deps:[jt.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},me=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let ge=(()=>{class t{constructor(t,e,n,i,s,r,a,l,c,u,h,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=r,this._ariaDescriber=a,this._focusMonitor=l,this._dir=u,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new o.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===$.hY&&!(0,$.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=d,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,m.R)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,de)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new H.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe((0,m.R)(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-${he}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,m.R)(this._destroyed)).subscribe(()=>{var t;return null===(t=this._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,u.q)(1),(0,m.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:n,originY:i}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===n?"left":"right":"start"===n?"left":"right":"bottom"===e&&"top"===i?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-${he}-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,de)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e!==n&&!n.contains(e)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),("on"===t||!e.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(Vt.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(g.t4),s.Y36(Y.$s),s.Y36(Y.tE),s.Y36(void 0),s.Y36(Ht.Is),s.Y36(void 0),s.Y36(P.K0))},t.\u0275dir=s.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),_e=(()=>{class t extends ge{constructor(t,e,n,i,s,r,o,a,l,c,u,h){super(t,e,n,i,s,r,o,a,l,c,u,h),this._tooltipComponent=be}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(Vt.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(g.t4),s.Y36(Y.$s),s.Y36(Y.tE),s.Y36(pe),s.Y36(Ht.Is,8),s.Y36(me,8),s.Y36(P.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),t})(),ye=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new o.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"===e&&!this.isVisible()&&this._onHide.next(),("visible"===e||"hidden"===e)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t}),t})(),be=(()=>{class t extends ye{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(C))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){2&t&&s.Udp("zoom","visible"===e._visibility?1:null)},features:[s.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.TgZ(0,"div",0),s.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),s.ALo(1,"async"),s._uU(2),s.qZA()),2&t){let t;s.ekj("mat-tooltip-handset",null==(t=s.lcZ(1,5,e._isHandset))?null:t.matches),s.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),s.xp6(2),s.Oqu(e.message)}},directives:[P.mk],pipes:[P.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ue.tooltipState]},changeDetection:0}),t})(),ve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[fe],imports:[[Y.rt,P.ez,jt.U8,z.BQ],z.BQ,Vt.ZD]}),t})();var we=n(1095);function Ce(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(2).launch(e)}),s.TgZ(1,"div",15),s._UZ(2,"img",9),s._uU(3),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw(2);s.xp6(2),s.Q6J("src",n.getTransportIcon(t.id),s.LSH),s.xp6(1),s.hij(" ",t.name," ")}}function xe(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).action("release")}),s.TgZ(1,"i",16),s._uU(2,"delete"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4," Release service"),s.qZA(),s.qZA()}}function Ee(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).action("reset")}),s.TgZ(1,"i",16),s._uU(2,"refresh"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4," Reset service"),s.qZA(),s.qZA()}}function Se(t,e){if(1&t&&(s.TgZ(0,"button",17),s.TgZ(1,"uds-translate"),s._uU(2,"Connections"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(2);s.Q6J("matMenuTriggerFor",t)}}function ke(t,e){if(1&t&&(s.TgZ(0,"button",17),s.TgZ(1,"uds-translate"),s._uU(2,"Actions"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(5);s.Q6J("matMenuTriggerFor",t)}}function Oe(t,e){if(1&t&&(s.TgZ(0,"button",18),s.TgZ(1,"i",16),s._uU(2,"menu"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(9);s.Q6J("matMenuTriggerFor",t)}}function Te(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"mat-menu",null,1),s.YNc(3,Ce,4,2,"button",2),s.qZA(),s.TgZ(4,"mat-menu",null,3),s.YNc(6,xe,5,0,"button",4),s.YNc(7,Ee,5,0,"button",4),s.qZA(),s.TgZ(8,"mat-menu",null,5),s.YNc(10,Se,3,1,"button",6),s.YNc(11,ke,3,1,"button",6),s.qZA(),s.TgZ(12,"div",7),s.TgZ(13,"div",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().launch(null)}),s._UZ(14,"img",9),s.qZA(),s.TgZ(15,"div",10),s.TgZ(16,"span",11),s._uU(17),s.qZA(),s.qZA(),s.TgZ(18,"div",12),s.YNc(19,Oe,3,1,"button",13),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.Q6J("ngForOf",t.service.transports),s.xp6(3),s.Q6J("ngIf",t.service.allow_users_remove),s.xp6(1),s.Q6J("ngIf",t.service.allow_users_reset),s.xp6(3),s.Q6J("ngIf",t.showTransportsMenu()),s.xp6(1),s.Q6J("ngIf",t.hasActions()),s.xp6(1),s.Q6J("ngClass",t.serviceClass)("matTooltipDisabled",""===t.serviceTooltip)("matTooltip",t.serviceTooltip),s.xp6(2),s.Q6J("src",t.serviceImage,s.LSH),s.xp6(2),s.Q6J("ngClass",t.serviceNameClass),s.xp6(1),s.Oqu(t.serviceName),s.xp6(2),s.Q6J("ngIf",t.hasMenu())}}let Ae=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}get serviceImage(){return this.api.galleryImageURL(this.service.imageId)}get serviceName(){let t=this.service.visual_name;return t.length>32&&(t=t.substring(0,29)+"..."),t}get serviceTooltip(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}get serviceClass(){const t=["service"];return null!=this.service.to_be_replaced?t.push("tobereplaced"):this.service.maintenance?t.push("maintenance"):this.service.not_accesible?t.push("forbidden"):this.service.in_use&&t.push("inuse"),t.length>1&&t.push("alert"),t}get serviceNameClass(){const t=[],e=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return e>=16&&t.push("small-"+e.toString()),t}getTransportIcon(t){return this.api.transportIconURL(t)}hasActions(){return this.service.allow_users_remove||this.service.allow_users_reset}showTransportsMenu(){return this.service.transports.length>1&&this.service.show_transports}hasMenu(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}notifyNotLaunching(t){this.api.gui.alert('

'+django.gettext("Launcher")+"

",t)}launch(t){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){const t=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching('

'+django.gettext("This service is currently not accesible due to schedule restrictions.")+'

'+t+'

')}else(null===t||!1===this.service.show_transports)&&(t=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(t.link)}action(t){const e=("release"===t?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,n="release"===t?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(e,django.gettext("Are you sure?")).subscribe(i=>{i&&this.api.action(t,this.service.id).subscribe(t=>{t&&this.api.gui.alert(e,n)})})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(t,e){1&t&&s.YNc(0,Te,20,12,"div",0),2&t&&s.Q6J("ngIf",e.service.transports.length>0)},directives:[P.O5,ie,P.sg,P.mk,_e,Xt,A.P,ae,we.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:rgba(0,0,0,.22);display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22)}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;border-radius:1px;background-color:rgba(255,255,255,.8)}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:"Material Icons";font-weight:normal;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"}']}),t})();function Pe(t,e){1&t&&s._UZ(0,"uds-service",8),2&t&&s.Q6J("service",e.$implicit)}function Ie(t,e){if(1&t&&(s.TgZ(0,"mat-expansion-panel",1),s.TgZ(1,"mat-expansion-panel-header",2),s.TgZ(2,"mat-panel-title"),s.TgZ(3,"div",3),s._UZ(4,"img",4),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"mat-panel-description",5),s._uU(7),s.qZA(),s.qZA(),s.TgZ(8,"div",6),s.YNc(9,Pe,1,1,"uds-service",7),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.Q6J("expanded",t.expanded),s.xp6(1),s.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),s.xp6(3),s.Q6J("src",t.groupImage,s.LSH),s.xp6(1),s.hij(" ",t.group.name,""),s.xp6(2),s.hij(" ",t.group.comments," "),s.xp6(2),s.Q6J("ngForOf",t.sortedServices)}}let Re=(()=>{class t{constructor(t){this.api=t,this.expanded=!1}ngOnInit(){}get groupImage(){return this.api.galleryImageURL(this.group.imageUuid)}get hasVisibleServices(){return this.services.length>0}get sortedServices(){return this.services.sort((t,e)=>t.name>e.name?1:t.name{class t{constructor(t){this.api=t,this.servicesInformation={autorun:!1,ip:"",nets:"",services:[],transports:""}}update(t){this.updateServices(t)}ngOnInit(){this.api.config.urls.launch?this.api.logout():this.loadServices()}autorun(){if(this.servicesInformation.autorun&&1===this.servicesInformation.services.length){if(!this.servicesInformation.services[0].maintenance)return this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(this.servicesInformation.services[0].transports[0].link),!0;this.api.gui.alert(django.gettext("Warning"),django.gettext("Service is in maintenance and cannot be executed"))}return!1}loadServices(){this.api.user.isRestricted&&this.api.logout(),this.api.getServicesInformation().subscribe(t=>{this.servicesInformation=t,this.autorun(),this.updateServices()})}updateServices(t=""){this.group=[];let e=null;this.servicesInformation.services.filter(e=>!t||e.visual_name.toLowerCase().includes(t)||e.group.name.toLowerCase().includes(t)).sort((t,e)=>t.group.priority!==e.group.priority?t.group.priority-e.group.priority:t.group.id>e.group.id?1:t.group.id{(null===e||t.group.id!==e.group.id)&&(null!==e&&this.group.push(e),e=new Fe(t.group)),e.services.push(t)}),null!==e&&this.group.push(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-services-page"]],decls:6,vars:3,consts:[[3,"updateEvent",4,"ngIf"],[1,"services-groups"],[3,"services","group","expanded",4,"ngFor","ngForOf"],[3,"updateEvent"],[3,"services","group","expanded"]],template:function(t,e){1&t&&(s.YNc(0,De,1,0,"uds-filter",0),s.TgZ(1,"div",1),s.TgZ(2,"mat-accordion"),s.YNc(3,Me,1,3,"uds-services-group",2),s.qZA(),s.qZA(),s.YNc(4,Le,1,0,"uds-filter",0),s._UZ(5,"uds-staff-info")),2&t&&(s.Q6J("ngIf",e.servicesInformation.services.length>=e.api.config.min_for_filter&&e.api.config.site_filter_on_top),s.xp6(3),s.Q6J("ngForOf",e.group),s.xp6(1),s.Q6J("ngIf",e.servicesInformation.services.length>=e.api.config.min_for_filter&&!e.api.config.site_filter_on_top))},directives:[P.O5,bt,P.sg,St,It,Re],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),t})(),Be=(()=>{class t{constructor(t,e){this.api=t,this.route=e}ngOnInit(){this.getError()}getError(){const t=this.route.snapshot.paramMap.get("id");this.error="",this.api.getErrorInformation(t).subscribe(t=>{this.error=t.error})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n),s.Y36(S.gz))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-error"]],decls:14,vars:1,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],["mat-raised-button","","color","warn","routerLink","/"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.O4$(),s.TgZ(2,"svg",2),s._UZ(3,"path",3),s.qZA(),s.TgZ(4,"svg",4),s._UZ(5,"path",5),s.qZA(),s.qZA(),s.kcU(),s.TgZ(6,"h1",6),s.TgZ(7,"uds-translate"),s._uU(8,"An error has occurred"),s.qZA(),s.qZA(),s.TgZ(9,"p",7),s._uU(10),s.qZA(),s.TgZ(11,"a",8),s.TgZ(12,"uds-translate"),s._uU(13,"Return"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(10),s.hij(" ",e.error," "))},directives:[A.P,we.zs,S.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),t})(),Ue=(()=>{class t{constructor(t){this.api=t,this.year=(new Date).getFullYear()}ngOnInit(){this.year<2021&&(this.year=2021)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-about"]],decls:45,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1"),s._uU(2),s.qZA(),s.TgZ(3,"h3"),s.TgZ(4,"a",1),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"h4"),s.TgZ(7,"uds-translate"),s._uU(8,"You can access UDS Open Source code at"),s.qZA(),s.TgZ(9,"a",2),s._uU(10,"OpenUDS github repository"),s.qZA(),s.qZA(),s.TgZ(11,"div",3),s.TgZ(12,"h2"),s.TgZ(13,"uds-translate"),s._uU(14,"UDS has been developed using these components:"),s.qZA(),s.qZA(),s.TgZ(15,"ul"),s.TgZ(16,"li"),s.TgZ(17,"a",4),s._uU(18,"Python"),s.qZA(),s.qZA(),s.TgZ(19,"li"),s.TgZ(20,"a",5),s._uU(21,"TypeScript"),s.qZA(),s.qZA(),s.TgZ(22,"li"),s.TgZ(23,"a",6),s._uU(24,"Django"),s.qZA(),s.qZA(),s.TgZ(25,"li"),s.TgZ(26,"a",7),s._uU(27,"Angular"),s.qZA(),s.qZA(),s.TgZ(28,"li"),s.TgZ(29,"a",8),s._uU(30,"Guacamole"),s.qZA(),s.qZA(),s.TgZ(31,"li"),s.TgZ(32,"a",9),s._uU(33,"weasyprint"),s.qZA(),s.qZA(),s.TgZ(34,"li"),s.TgZ(35,"a",10),s._uU(36,"Crystal project icons"),s.qZA(),s.qZA(),s.TgZ(37,"li"),s.TgZ(38,"a",11),s._uU(39,"Flattr Icons"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(40,"p"),s.TgZ(41,"small"),s._uU(42,"* "),s.TgZ(43,"uds-translate"),s._uU(44,"If you find that we missed any component, please let us know"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.AsE("Universal Desktop Services ",e.api.config.version," build ",e.api.config.version_stamp,""),s.xp6(3),s.hij(" \xa9 2012-",e.year," Virtual Cable S.L.U."))},directives:[A.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:normal}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px}"]}),t})(),Ze=(()=>{class t{constructor(t){this.api=t}ngOnInit(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"h1"),s.TgZ(3,"uds-translate"),s._uU(4,"UDS Service launcher"),s.qZA(),s.qZA(),s.TgZ(5,"h4"),s.TgZ(6,"uds-translate"),s._uU(7,"The service you have requested is being launched."),s.qZA(),s.qZA(),s.TgZ(8,"h5"),s.TgZ(9,"uds-translate"),s._uU(10,"Please, note that reloading this page will not work."),s.qZA(),s.qZA(),s.TgZ(11,"h5"),s.TgZ(12,"uds-translate"),s._uU(13,"To relaunch service, you will have to do it from origin."),s.qZA(),s.qZA(),s.TgZ(14,"h6"),s.TgZ(15,"uds-translate"),s._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),s.qZA(),s.qZA(),s.TgZ(17,"h6"),s.TgZ(18,"uds-translate"),s._uU(19,"You can obtain it from the"),s.qZA(),s._uU(20,"\xa0"),s.TgZ(21,"a",2),s.TgZ(22,"uds-translate"),s._uU(23,"UDS Client download page"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA())},directives:[A.P,S.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:rgba(0,0,0,.22);padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:normal}"]}),t})();var qe=n(665);const je=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:Ne,canActivate:[O]},{path:"login",component:T.G},{path:"login/:id",component:T.G},{path:"mfa",component:(()=>{class t{constructor(t){this.api=t}ngOnInit(){document.getElementById("mfaform").action=this.api.config.urls.mfa;const t=document.getElementById("token");t.name=this.api.csrfField,t.value=this.api.csrfToken,this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}launch(){return document.getElementById("mfaform").submit(),!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-mfa"]],decls:18,vars:2,consts:[["id","mfaform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],[1,"mfa-container"],[1,"mfa-brand"],[3,"src"],[1,"mfa-info"],[1,"mfa-form"],[1,"mfa-field"],["appearance","standard"],["matInput","","id","code","name","code","value","","required","","autofocus",""],[1,"mfa-button"],["mat-stroked-button","","color","primary","type","submit"]],template:function(t,e){1&t&&(s.TgZ(0,"form",0),s.NdJ("ngSubmit",function(){return e.launch()}),s._UZ(1,"input",1),s.TgZ(2,"div",2),s.TgZ(3,"div",3),s._UZ(4,"img",4),s.qZA(),s.TgZ(5,"div",5),s.TgZ(6,"uds-translate"),s._uU(7,"Login Verification"),s.qZA(),s.qZA(),s.TgZ(8,"div",6),s.TgZ(9,"div",7),s.TgZ(10,"mat-form-field",8),s.TgZ(11,"mat-label"),s._uU(12),s.qZA(),s._UZ(13,"input",9),s.qZA(),s.qZA(),s.TgZ(14,"div",10),s.TgZ(15,"button",11),s.TgZ(16,"uds-translate"),s._uU(17,"Submit"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(4),s.Q6J("src",e.api.staticURL("modern/img/login-img.png"),s.LSH),s.xp6(8),s.hij(" ",e.api.config.mfa.label," "))},directives:[qe._Y,qe.JL,qe.F,A.P,Tt.KE,Tt.hX,At.Nt,we.lW],styles:[".mfa-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.mfa-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.mfa-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.mfa-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.mfa-form[_ngcontent-%COMP%]{min-width:80%}}"]}),t})()},{path:"client-download",component:R},{path:"downloads",component:L,canActivate:[O]},{path:"error/:id",component:Be},{path:"about",component:Ue},{path:"ticket/launcher",component:Ze},{path:"**",redirectTo:"services"}];let Ve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[S.Bz.forRoot(je,{relativeLinkResolution:"legacy"})],S.Bz]}),t})();var He=n(8553);let ze=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),Ye=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[z.si,z.BQ,He.Q8,ze],z.BQ,ze]}),t})();var Ge=n(2238),Ke=n(7441);const $e=["*",[["mat-toolbar-row"]]],We=["*","mat-toolbar-row"],Qe=(0,z.pj)(class{constructor(t){this._elementRef=t}});let Je=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),Xe=(()=>{class t extends Qe{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(g.t4),s.Y36(P.K0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,Je,5),2&t){let t;s.iGM(t=s.CRH())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.qOj],ngContentSelectors:We,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t($e),s.Hsn(0),s.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),tn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[z.BQ],z.BQ]}),t})(),en=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:Tt.o2,useValue:{floatLabel:"always"}}],imports:[qe.u5,tn,we.ot,ce,ve,vt,Ge.Is,Tt.lN,At.c,Ke.LD,Ye]}),t})();function nn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(2).changeLang(e)}),s._uU(1),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.name)}}function sn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).admin()}),s.TgZ(1,"i",23),s._uU(2,"dashboard"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4,"Dashboard"),s.qZA(),s.qZA()}}function rn(t,e){1&t&&(s.TgZ(0,"button",28),s.TgZ(1,"i",23),s._uU(2,"file_download"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4,"Downloads"),s.qZA(),s.qZA())}function on(t,e){if(1&t&&(s.TgZ(0,"button",14),s._uU(1),s.qZA()),2&t){s.oxw();const t=s.MAs(8),e=s.oxw();s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.Oqu(e.api.user.user)}}function an(t,e){if(1&t&&(s.TgZ(0,"button",25),s._uU(1),s.TgZ(2,"i",23),s._uU(3,"arrow_drop_down"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(8),e=s.oxw();s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",e.api.user.user," ")}}function ln(t,e){if(1&t){const t=s.EpF();s.ynx(0),s.TgZ(1,"form",1),s._UZ(2,"input",2),s._UZ(3,"input",3),s.qZA(),s.TgZ(4,"mat-menu",null,4),s.YNc(6,nn,2,1,"button",5),s.qZA(),s.TgZ(7,"mat-menu",null,6),s.YNc(9,sn,5,0,"button",7),s.YNc(10,rn,5,0,"button",8),s.TgZ(11,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().logout()}),s.TgZ(12,"i",10),s._uU(13,"exit_to_app"),s.qZA(),s.TgZ(14,"uds-translate"),s._uU(15,"Logout"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(16,"mat-menu",11,12),s.YNc(18,on,2,2,"button",13),s.TgZ(19,"button",14),s._uU(20),s.qZA(),s.TgZ(21,"button",15),s.TgZ(22,"uds-translate"),s._uU(23,"UDS Client"),s.qZA(),s.qZA(),s.TgZ(24,"button",16),s.TgZ(25,"uds-translate"),s._uU(26,"About"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(27,"mat-toolbar",17),s.TgZ(28,"button",18),s._UZ(29,"img",19),s._uU(30),s.qZA(),s._UZ(31,"span",20),s.TgZ(32,"div",21),s.TgZ(33,"button",22),s.TgZ(34,"i",23),s._uU(35,"file_download"),s.qZA(),s.TgZ(36,"uds-translate"),s._uU(37,"UDS Client"),s.qZA(),s.qZA(),s.TgZ(38,"button",24),s.TgZ(39,"i",23),s._uU(40,"info"),s.qZA(),s.TgZ(41,"uds-translate"),s._uU(42,"About"),s.qZA(),s.qZA(),s.TgZ(43,"button",25),s._uU(44),s.TgZ(45,"i",23),s._uU(46,"arrow_drop_down"),s.qZA(),s.qZA(),s.YNc(47,an,4,2,"button",26),s.qZA(),s.TgZ(48,"div",27),s.TgZ(49,"button",25),s.TgZ(50,"i",23),s._uU(51,"menu"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.BQk()}if(2&t){const t=s.MAs(5),e=s.MAs(17),n=s.oxw();s.xp6(1),s.s9C("action",n.api.config.urls.changeLang,s.LSH),s.xp6(1),s.s9C("name",n.api.csrfField),s.s9C("value",n.api.csrfToken),s.xp6(1),s.s9C("value",n.lang.id),s.xp6(3),s.Q6J("ngForOf",n.langs),s.xp6(3),s.Q6J("ngIf",n.api.user.isStaff),s.xp6(1),s.Q6J("ngIf",n.api.user.isStaff),s.xp6(8),s.Q6J("ngIf",n.api.user.isLogged),s.xp6(1),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",n.lang.name," "),s.xp6(9),s.Q6J("src",n.api.staticURL("modern/img/udsicon.png"),s.LSH),s.xp6(1),s.hij(" ",n.api.config.site_logo_name," "),s.xp6(13),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",n.lang.name," "),s.xp6(3),s.Q6J("ngIf",n.api.user.isLogged),s.xp6(2),s.Q6J("matMenuTriggerFor",e)}}let cn=(()=>{class t{constructor(t){this.api=t,this.style="";const e=t.config.language;this.langs=[];for(const n of t.config.available_languages)n.id===e?this.lang=n:this.langs.push(n)}ngOnInit(){}changeLang(t){return this.lang=t,document.getElementById("id_language").attributes.value.value=t.id,document.getElementById("form_language").submit(),!1}admin(){this.api.gotoAdmin()}logout(){this.api.logout()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(t,e){1&t&&s.YNc(0,ln,52,16,"ng-container",0),2&t&&s.Q6J("ngIf",""===e.api.config.urls.launch)},directives:[P.O5,qe._Y,qe.JL,qe.F,ie,P.sg,Xt,A.P,ae,S.rH,Xe,we.lW],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),t})(),un=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"a",0),s._uU(2),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Q6J("href",e.api.config.site_copyright_link,s.LSH),s.xp6(1),s.Oqu(e.api.config.site_copyright_info))},styles:[""]}),t})(),hn=(()=>{class t{constructor(){this.title="uds"}ngOnInit(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-root"]],decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,e){1&t&&(s._UZ(0,"uds-navbar"),s.TgZ(1,"div",0),s.TgZ(2,"div",1),s._UZ(3,"router-outlet"),s.qZA(),s.TgZ(4,"div",2),s._UZ(5,"uds-footer"),s.qZA(),s.qZA())},directives:[cn,S.lC,un],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),t})();var dn=n(3183);let pn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t,bootstrap:[hn]}),t.\u0275inj=s.cJS({providers:[k.n,dn.h],imports:[[i.b2,_,E.JF,Ve,W.PW,en]]}),t})();n(2340).N.production&&(0,s.G48)(),i.q6().bootstrapModule(pn).catch(t=>console.log(t))}},function(t){t(t.s=6445)}]); \ No newline at end of file +(self.webpackChunkuds=self.webpackChunkuds||[]).push([[179],{8255:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=8255,t.exports=e},7238:function(t,e,n){"use strict";n.d(e,{l3:function(){return r},_j:function(){return i},LC:function(){return s},ZN:function(){return g},jt:function(){return a},pV:function(){return p},F4:function(){return h},IO:function(){return f},vP:function(){return l},SB:function(){return u},oB:function(){return c},eR:function(){return d},X$:function(){return o},ZE:function(){return _},k1:function(){return y}});class i{}class s{}const r="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function u(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t){return{type:5,steps:t}}function d(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function p(t=null){return{type:9,options:t}}function f(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function m(t){Promise.resolve(null).then(t)}class g{constructor(t=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=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){m(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?m(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const y="!"},9238:function(t,e,n){"use strict";n.d(e,{rt:function(){return et},s1:function(){return R},$s:function(){return T},Em:function(){return D},tE:function(){return W},qV:function(){return B},qm:function(){return tt},Kd:function(){return G},X6:function(){return U},yG:function(){return Z}});var i=n(8583),s=n(3018),r=n(9765),o=n(5319),a=n(6215),l=n(5917),c=n(6461),u=n(3342),h=n(4395),d=n(5435),p=n(8002),f=n(5257),m=n(3653),g=n(7519),_=n(6782),y=n(9490),b=n(521),v=n(8553);function w(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const C="cdk-describedby-message-container",x="cdk-describedby-message",E="cdk-describedby-host";let S=0;const k=new Map;let O=null,T=(()=>{class t{constructor(t){this._document=t}describe(t,e,n){if(!this._canBeDescribed(t,e))return;const i=A(e,n);"string"!=typeof e?(P(e),k.set(i,{messageElement:e,referenceCount:0})):k.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}removeDescription(t,e,n){if(!e||!this._isElementNode(t))return;const i=A(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){const t=k.get(i);t&&0===t.referenceCount&&this._deleteMessageElement(i)}O&&0===O.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll(`[${E}]`);for(let e=0;e0!=t.indexOf(x));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=k.get(e);(function(t,e,n){const i=w(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))})(t,"aria-describedby",n.messageElement.id),t.setAttribute(E,""),n.referenceCount++}_removeMessageReference(t,e){const n=k.get(e);n.referenceCount--,function(t,e,n){const i=w(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(E)}_isElementDescribedByMessage(t,e){const n=w(t,"aria-describedby"),i=k.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.K0))},token:t,providedIn:"root"}),t})();function A(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function P(t){t.id||(t.id=`${x}-${S++}`)}class I{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new r.xQ,this._typeaheadSubscription=o.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new r.xQ,this.change=new r.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,u.b)(t=>this._pressedLetters.push(t)),(0,h.b)(t),(0,d.h)(()=>this._pressedLetters.length>0),(0,p.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.Mf:return void this.tabOut.next();case c.JH:if(this._vertical&&n){this.setNextItemActive();break}return;case c.LH:if(this._vertical&&n){this.setPreviousItemActive();break}return;case c.SV:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.oh:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.Sd:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case c.uR:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||(0,c.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.A&&e<=c.Z||e>=c.xE&&e<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class R extends I{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class D extends I{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let M=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}(function(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(t));if(e&&(-1===F(e)||!this.isVisible(e)))return!1;let n=t.nodeName.toLowerCase(),i=F(t);return t.hasAttribute("contenteditable")?-1!==i:!("iframe"===n||"object"===n||this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==i:"video"===n?-1!==i&&(null!==i||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||L(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4))},token:t,providedIn:"root"}),t})();function L(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function F(t){if(!L(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class N{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(t)}}let B=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new N(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(M),s.LFG(s.R0b),s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(M),s.LFG(s.R0b),s.LFG(i.K0))},token:t,providedIn:"root"}),t})();function U(t){return 0===t.offsetX&&0===t.offsetY}function Z(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&∈const q=new s.OlP("cdk-input-modality-detector-options"),j={ignoreKeys:[c.zL,c.jx,c.b2,c.MW,c.JU]},V=(0,b.i$)({passive:!0,capture:!0});let H=(()=>{class t{constructor(t,e,n,i){this._platform=t,this._mostRecentTarget=null,this._modality=new a.X(null),this._lastTouchMs=0,this._onKeydown=t=>{var e,n;(null===(n=null===(e=this._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some(e=>e===t.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,b.sA)(t))},this._onMousedown=t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(U(t)?"keyboard":"mouse"),this._mostRecentTarget=(0,b.sA)(t))},this._onTouchstart=t=>{Z(t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,b.sA)(t))},this._options=Object.assign(Object.assign({},j),i),this.modalityDetected=this._modality.pipe((0,m.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,g.x)()),t.isBrowser&&e.runOutsideAngular(()=>{n.addEventListener("keydown",this._onKeydown,V),n.addEventListener("mousedown",this._onMousedown,V),n.addEventListener("touchstart",this._onTouchstart,V)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,V),document.removeEventListener("mousedown",this._onMousedown,V),document.removeEventListener("touchstart",this._onTouchstart,V))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4),s.LFG(s.R0b),s.LFG(i.K0),s.LFG(q,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4),s.LFG(s.R0b),s.LFG(i.K0),s.LFG(q,8))},token:t,providedIn:"root"}),t})();const z=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Y=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let G=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),n=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,n,i,s){this._ngZone=t,this._platform=e,this._inputModalityDetector=n,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new r.xQ,this._rootNodeFocusAndBlurListener=t=>{const e=(0,b.sA)(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=i,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,e=!1){const n=(0,y.fI)(t);if(!this._platform.isBrowser||1!==n.nodeType)return(0,l.of)(null);const i=(0,b.kV)(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new r.xQ,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=(0,y.fI)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=(0,y.fI)(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOrigin(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOrigin(t,e=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&e,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,e){const n=this._elementInfo.get(e),i=(0,b.sA)(t);!n||!n.checkChildren&&e!==i||this._originChanged(e,this._getFocusOrigin(i),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,$),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,$)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,_.R)(this._stopInputModalityDetector)).subscribe(t=>{this._setOrigin(t,!0)}))}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,$),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,$),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(b.t4),s.LFG(H),s.LFG(i.K0,8),s.LFG(K,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(b.t4),s.LFG(H),s.LFG(i.K0,8),s.LFG(K,8))},token:t,providedIn:"root"}),t})();const Q="cdk-high-contrast-black-on-white",J="cdk-high-contrast-white-on-black",X="cdk-high-contrast-active";let tt=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(X),t.remove(Q),t.remove(J),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(X),t.add(Q)):2===e&&(t.add(X),t.add(J))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4),s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4),s.LFG(i.K0))},token:t,providedIn:"root"}),t})(),et=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(tt))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ud,v.Q8]]}),t})()},946:function(t,e,n){"use strict";n.d(e,{vT:function(){return a},Is:function(){return o}});var i=n(3018),s=n(8583);const r=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,i.f3M)(s.K0)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.vpe,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(r,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(r,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},8345:function(t,e,n){"use strict";n.d(e,{P3:function(){return l},Ov:function(){return u},A8:function(){return h},eX:function(){return c},k:function(){return d},Z9:function(){return a}});var i=n(5639),s=n(5917),r=n(9765),o=n(3018);function a(t){return t&&"function"==typeof t.connect}class l extends class{}{constructor(t){super(),this._data=t}connect(){return(0,i.b)(this._data)?this._data:(0,s.of)(this._data)}disconnect(){}}class c{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,s){t.forEachOperation((t,r,o)=>{let a,l;null==t.previousIndex?(a=this._insertView(()=>n(t,r,o),o,e,i(t)),l=a?1:0):null==o?(this._detachAndCacheView(r,e),l=3):(a=this._moveView(r,o,e,i(t)),l=2),s&&s({context:null==a?void 0:a.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,n,i){const s=this._insertViewFromCache(e,n);if(s)return void(s.context.$implicit=i);const r=t();return n.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(t,e){const n=e.detach(t);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const s=n.get(t);return n.move(s,e),s.context.$implicit=i,s}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let h=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const d=new o.OlP("_ViewRepeater")},6461:function(t,e,n){"use strict";n.d(e,{A:function(){return y},zL:function(){return a},jx:function(){return o},JH:function(){return m},uR:function(){return u},K5:function(){return s},hY:function(){return l},Sd:function(){return h},oh:function(){return d},b2:function(){return w},MW:function(){return v},aO:function(){return _},SV:function(){return f},JU:function(){return r},L_:function(){return c},Mf:function(){return i},LH:function(){return p},Z:function(){return b},xE:function(){return g},Vb:function(){return C}});const i=9,s=13,r=16,o=17,a=18,l=27,c=32,u=35,h=36,d=37,p=38,f=39,m=40,g=48,_=57,y=65,b=90,v=91,w=224;function C(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},8553:function(t,e,n){"use strict";n.d(e,{wD:function(){return u},yq:function(){return c},Q8:function(){return h}});var i=n(9490),s=n(3018),r=n(7574),o=n(9765),a=n(4395);let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=(0,i.fI)(t);return new r.y(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.xQ,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(l))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(l))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,i.Ig)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=(0,i.su)(t),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,a.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[l]}),t})()},625:function(t,e,n){"use strict";n.d(e,{pI:function(){return J},xu:function(){return Q},aV:function(){return K},X_:function(){return O},Xj:function(){return L},U8:function(){return tt}});var i=n(9243),s=n(3018),r=n(521),o=n(946),a=n(8583),l=n(9490),c=n(7636),u=n(9765),h=n(5319),d=n(6682),p=n(7393);class f{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new m(t,this.predicate,this.inclusive))}}class m extends p.L{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}var g=n(5257),_=n(6782),y=n(6461);const b=(0,r.Mq)();class v{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=(0,l.HM)(-this._previousScrollPosition.left),t.style.top=(0,l.HM)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),b&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),b&&(e.scrollBehavior=i,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class w{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class C{enable(){}disable(){}attach(){}}function x(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function E(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class S{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();x(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let k=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new C,this.close=t=>new w(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new v(this._viewportRuler,this._document),this.reposition=t=>new S(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.mF),s.LFG(i.rL),s.LFG(s.R0b),s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.mF),s.LFG(i.rL),s.LFG(s.R0b),s.LFG(a.K0))},token:t,providedIn:"root"}),t})();class O{constructor(t){if(this.scrollStrategy=new C,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class T{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class A{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let P=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends P{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),R=(()=>{class t extends P{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=(0,r.sA)(t),n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0),s.LFG(r.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0),s.LFG(r.t4))},token:t,providedIn:"root"}),t})();const D="undefined"!=typeof window?window:{},M=void 0!==D.__karma__&&!!D.__karma__||void 0!==D.jasmine&&!!D.jasmine||void 0!==D.jest&&!!D.jest||void 0!==D.Mocha&&!!D.Mocha;let L=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||M){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new u.xQ,this._outsidePointerEvents=new u.xQ,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=(0,l.HM)(this._config.width),t.height=(0,l.HM)(this._config.height),t.minWidth=(0,l.HM)(this._config.minWidth),t.minHeight=(0,l.HM)(this._config.minHeight),t.maxWidth=(0,l.HM)(this._config.maxWidth),t.maxHeight=(0,l.HM)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(!t)return;let e,n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;(0,l.Eq)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe((0,_.R)((0,d.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const N="cdk-overlay-connected-position-bounding-box",B=/([A-Za-z%]+)$/;class U{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new u.xQ,this._resizeSubscription=h.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(N),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Z(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(N),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){const s=j(e);let{x:r,y:o}=t,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(r+=a),l&&(o+=l);let c=0-o,u=o+s.height-n.height,h=this._subtractOverflows(s.width,0-r,r+s.width-n.width),d=this._subtractOverflows(s.height,c,u),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=q(this._overlayRef.getConfig().minHeight),o=q(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=j(e),s=this._viewportRect,r=Math.max(t.x+i.width-s.width,0),o=Math.max(t.y+i.height-s.height,0),a=Math.max(s.top-n.top-t.y,0),l=Math.max(s.left-n.left-t.x,0);let c=0,u=0;return c=i.width<=s.width?l||-r:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=(0,l.HM)(n.height),i.top=(0,l.HM)(n.top),i.bottom=(0,l.HM)(n.bottom),i.width=(0,l.HM)(n.width),i.left=(0,l.HM)(n.left),i.right=(0,l.HM)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=(0,l.HM)(t)),s&&(i.maxWidth=(0,l.HM)(s))}this._lastBoundingBoxSize=n,Z(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Z(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Z(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();Z(n,this._getExactOverlayY(e,t,i)),Z(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=(0,l.HM)(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=(0,l.HM)(r.maxWidth):s&&(n.maxWidth="")),Z(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=(0,l.HM)(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=(0,l.HM)(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:E(t,n),isOriginOutsideView:x(t,n),isOverlayClipped:E(e,n),isOverlayOutsideView:x(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&(0,l.Eq)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function Z(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function q(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(B);return n&&"px"!==n?null:parseFloat(e)}return t||null}function j(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class V{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new U(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new T(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const H="cdk-global-overlay-wrapper";class z{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(H),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(H),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Y=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new z}connectedTo(t,e,n){return new V(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new U(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.rL),s.LFG(a.K0),s.LFG(r.t4),s.LFG(L))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.rL),s.LFG(a.K0),s.LFG(r.t4),s.LFG(L))},token:t,providedIn:"root"}),t})(),G=0,K=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new O(t);return s.direction=s.direction||this._directionality.value,new F(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+G++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new c.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(k),s.LFG(L),s.LFG(s._Vd),s.LFG(Y),s.LFG(I),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(o.Is),s.LFG(a.Ye),s.LFG(R))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const $=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],W=new s.OlP("cdk-connected-overlay-scroll-strategy");let Q=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),J=(()=>{class t{constructor(t,e,n,i,r){this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.vpe,this.positionChange=new s.vpe,this.attach=new s.vpe,this.detach=new s.vpe,this.overlayKeydown=new s.vpe,this.overlayOutsideClick=new s.vpe,this._templatePortal=new c.UE(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,l.Ig)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=(0,l.Ig)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=(0,l.Ig)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=(0,l.Ig)(t)}get push(){return this._push}set push(t){this._push=(0,l.Ig)(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=$);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode===y.hY&&!this.disableClose&&!(0,y.Vb)(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new O({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return n=>n.lift(new f(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(K),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(W),s.Y36(o.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.TTD]}),t})();const X={provide:W,deps:[K],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[K,X],imports:[[o.vT,c.eL,i.Cl],i.Cl]}),t})()},521:function(t,e,n){"use strict";n.d(e,{t4:function(){return a},ud:function(){return l},sA:function(){return v},ht:function(){return b},kV:function(){return y},_i:function(){return _},qK:function(){return u},i$:function(){return m},Mq:function(){return g}});var i=n(3018),s=n(8583);let r;try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(w){r=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,s.NF)(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&&!r)&&"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)(i.LFG(i.Lbi))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(i.Lbi))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(c),o;let t=document.createElement("input");return o=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let h,d,p,f;function m(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function g(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if("scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p}function _(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function y(t){if(function(){if(null==f){const t="undefined"!=typeof document?document.head:null;f=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function b(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function v(t){return t.composedPath?t.composedPath()[0]:t.target}},7636:function(t,e,n){"use strict";n.d(e,{en:function(){return c},Pl:function(){return h},C5:function(){return o},u0:function(){return u},eL:function(){return d},UE:function(){return a}});var i=n(3018),s=n(8583);class r{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class o extends r{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class a extends r{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class l extends r{constructor(t){super(),this.element=t instanceof i.SBq?t.nativeElement:t}}class c{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof o?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class u extends c{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let h=(()=>{class t extends c{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(s.K0))},t.\u0275dir=i.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},9243:function(t,e,n){"use strict";n.d(e,{ZD:function(){return y},mF:function(){return g},Cl:function(){return b},rL:function(){return _}});var i=n(9490),s=n(3018),r=n(6465),o=n(6102);new class extends o.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});var a=n(9765),l=n(5917),c=n(7574),u=n(2759);n(4581);n(5319),n(5639),n(7393),new class extends o.v{}(class extends r.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}),n(1593),n(7971),n(8858),n(7519);var h=n(628),d=n(5435),p=(n(6782),n(9761),n(3190),n(521)),f=n(8583),m=n(946);n(8345);let g=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new a.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new c.y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe((0,h.e)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,l.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,d.h)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=(0,i.fI)(e),s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return(0,u.R)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(p.t4),s.LFG(f.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(p.t4),s.LFG(f.K0,8))},token:t,providedIn:"root"}),t})(),_=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new a.xQ,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe((0,h.e)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(p.t4),s.LFG(s.R0b),s.LFG(f.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(p.t4),s.LFG(s.R0b),s.LFG(f.K0,8))},token:t,providedIn:"root"}),t})(),y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[m.vT,p.ud,y],m.vT,y]}),t})()},9490:function(t,e,n){"use strict";n.d(e,{Eq:function(){return o},Ig:function(){return s},HM:function(){return a},fI:function(){return l},su:function(){return r}});var i=n(3018);function s(t){return null!=t&&"false"!=`${t}`}function r(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function o(t){return Array.isArray(t)?t:[t]}function a(t){return null==t?"":"string"==typeof t?t:`${t}px`}function l(t){return t instanceof i.SBq?t.nativeElement:t}},8583:function(t,e,n){"use strict";n.d(e,{mr:function(){return v},Ov:function(){return Y},ez:function(){return G},K0:function(){return l},Do:function(){return C},V_:function(){return h},Ye:function(){return x},S$:function(){return y},mk:function(){return I},sg:function(){return D},O5:function(){return L},RF:function(){return U},n9:function(){return Z},ED:function(){return q},b0:function(){return w},lw:function(){return c},EM:function(){return W},JF:function(){return X},NF:function(){return $},w_:function(){return a},bD:function(){return K},q:function(){return r},Mx:function(){return P},HT:function(){return o}});var i=n(3018);let s=null;function r(){return s}function o(t){s||(s=t)}class a{}const l=new i.OlP("DocumentToken");let c=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return(0,i.LFG)(d)}const h=new i.OlP("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return r().getBaseHref(this._doc)}onPopState(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(l))},t.\u0275prov=(0,i.Yz7)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d((0,i.LFG)(l))}function m(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function _(t){return t&&"?"!==t[0]?"?"+t:t}let y=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:b,token:t,providedIn:"root"}),t})();function b(t){const e=(0,i.LFG)(l).location;return new w((0,i.LFG)(c),e&&e.origin||"")}const v=new i.OlP("appBaseHref");let w=(()=>{class t extends y{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+_(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+_(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+_(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(v,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t extends y{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+_(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+_(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(v,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t{constructor(t,e){this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(S(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+_(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,S(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(y),i.LFG(c))},t.normalizeQueryParams=_,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=(0,i.Yz7)({factory:E,token:t,providedIn:"root"}),t})();function E(){return new x((0,i.LFG)(y),(0,i.LFG)(c))}function S(t){return t.replace(/\/index.html$/,"")}var k=(()=>((k=k||{})[k.Zero=0]="Zero",k[k.One=1]="One",k[k.Two=2]="Two",k[k.Few=3]="Few",k[k.Many=4]="Many",k[k.Other=5]="Other",k))();const O=i.kL8;class T{}let A=(()=>{class t extends T{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(O(e||this.locale)(t)){case k.Zero:return"zero";case k.One:return"one";case k.Two:return"two";case k.Few:return"few";case k.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.soG))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function P(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let I=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class R{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 D=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(t){return t.name||typeof t}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new R(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new M(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new M(t,s);e.push(r)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class M{constructor(t,e){this.record=t,this.view=e}}let L=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new F,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){N("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){N("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class F{constructor(){this.$implicit=null,this.ngIf=null}}function N(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.AaK)(e)}'.`)}class B{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let U=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new B(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(U,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),q=(()=>{class t{constructor(t,e,n){n._addDefault(new B(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(U,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})();class j{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class V{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const H=new V,z=new j;let Y=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,i.QGY)(e))return H;if((0,i.F4k)(e))return z;throw function(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,i.AaK)(t)}'`)}(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO,16))},t.\u0275pipe=i.Yjl({name:"async",type:t,pure:!1}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:T,useClass:A}]}),t})();const K="browser";function $(t){return t===K}let W=(()=>{class t{}return t.\u0275prov=(0,i.Yz7)({token:t,providedIn:"root",factory:()=>new Q((0,i.LFG)(l),window)}),t})();class Q{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=J(this.window.history)||J(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function J(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class X{}},1841:function(t,e,n){"use strict";n.d(e,{eN:function(){return P},JF:function(){return V}});var i=n(8583),s=n(3018),r=n(5917),o=n(7574),a=n(4612),l=n(5435),c=n(8002);class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return g(t)}encodeValue(t){return g(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const f=/%(\d[a-f0-9])/gi,m={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function g(t){return encodeURIComponent(t).replace(f,(t,e)=>{var n;return null!==(n=m[e])&&void 0!==n?n:t})}function _(t){return`${t}`}class y{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new y({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(_(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(_(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class b{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function v(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function w(t){return"undefined"!=typeof Blob&&t instanceof Blob}function C(t){return"undefined"!=typeof FormData&&t instanceof FormData}class x{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new b),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new x(n,i,r,{params:c,headers:l,context:u,reportProgress:a,responseType:s,withCredentials:o})}}var E=(()=>((E=E||{})[E.Sent=0]="Sent",E[E.UploadProgress=1]="UploadProgress",E[E.ResponseHeader=2]="ResponseHeader",E[E.DownloadProgress=3]="DownloadProgress",E[E.Response=4]="Response",E[E.User=5]="User",E))();class S{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class k extends S{constructor(t={}){super(t),this.type=E.ResponseHeader}clone(t={}){return new k({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class O extends S{constructor(t={}){super(t),this.type=E.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new O({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class T extends S{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function A(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let P=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof x)i=t;else{let s,r;s=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(r=n.params instanceof y?n.params:new y({fromObject:n.params})),i=new x(t,e,void 0!==n.body?n.body:null,{headers:s,context:n.context,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=(0,r.of)(i).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof x||"events"===n.observe)return s;const o=s.pipe((0,l.h)(t=>t instanceof O));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe((0,c.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe((0,c.U)(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new y).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,A(n,e))}post(t,e,n={}){return this.request("POST",t,A(n,e))}put(t,e,n={}){return this.request("PUT",t,A(n,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(u))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class I{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const R=new s.OlP("HTTP_INTERCEPTORS");let D=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const M=/^\)\]\}',?\n/;let L=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new k({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(M,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new O({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new T({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new T({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:E.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&!!n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:E.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:E.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const F=new s.OlP("XSRF_COOKIE_NAME"),N=new s.OlP("XSRF_HEADER_NAME");class B{}let U=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0),s.LFG(s.Lbi),s.LFG(F))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null!==i&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(B),s.LFG(N))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),q=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(R,[]);this.chain=t.reduceRight((t,e)=>new I(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Z,useClass:D}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:F,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Z,{provide:R,useExisting:Z,multi:!0},{provide:B,useClass:U},{provide:F,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[P,{provide:u,useClass:q},L,{provide:h,useExisting:L}],imports:[[j.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},3018:function(t,e,n){"use strict";n.d(e,{deG:function(){return un},tb:function(){return tc},AFp:function(){return $l},ip1:function(){return Gl},CZH:function(){return Kl},hGG:function(){return Gc},z2F:function(){return Nc},sBO:function(){return Wa},Sil:function(){return hc},_Vd:function(){return va},EJc:function(){return ic},SBq:function(){return Ea},qLn:function(){return Di},vpe:function(){return Tl},gxx:function(){return wr},tBr:function(){return Ln},XFs:function(){return R},OlP:function(){return cn},zs3:function(){return Fr},ZZ4:function(){return Va},aQg:function(){return za},soG:function(){return nc},YKP:function(){return ol},v3s:function(){return Uc},h0i:function(){return rl},PXZ:function(){return Rc},R0b:function(){return fc},FiY:function(){return Fn},Lbi:function(){return Xl},g9A:function(){return Jl},n_E:function(){return Pl},Qsj:function(){return Oa},FYo:function(){return ka},JOm:function(){return Fi},Tiy:function(){return Aa},q3G:function(){return Ei},tp0:function(){return Nn},EAV:function(){return jc},Rgc:function(){return el},dDg:function(){return wc},DyG:function(){return hn},GfV:function(){return Pa},s_b:function(){return ll},ifc:function(){return B},eFA:function(){return Dc},G48:function(){return Ac},Gpc:function(){return m},f3M:function(){return Pn},X6Q:function(){return Tc},_c5:function(){return zc},VLi:function(){return Ec},c2e:function(){return ec},zSh:function(){return xr},wAp:function(){return ra},vHH:function(){return y},EiD:function(){return Ci},mCW:function(){return oi},qzn:function(){return $n},JVY:function(){return Qn},pB0:function(){return ei},eBb:function(){return Xn},L6k:function(){return Jn},LAX:function(){return ti},cg1:function(){return na},Tjo:function(){return Hc},kL8:function(){return ia},yhl:function(){return Wn},dqk:function(){return V},sIi:function(){return Yr},CqO:function(){return po},QGY:function(){return uo},F4k:function(){return ho},RDi:function(){return Tt},AaK:function(){return d},z3N:function(){return Kn},qOj:function(){return Br},TTD:function(){return vt},_Bn:function(){return ga},xp6:function(){return xs},uIk:function(){return Wr},Tol:function(){return Do},Gre:function(){return Wo},ekj:function(){return Ro},Suo:function(){return jl},Xpm:function(){return tt},lG2:function(){return at},Yz7:function(){return x},cJS:function(){return E},oAB:function(){return st},Yjl:function(){return lt},Y36:function(){return eo},_UZ:function(){return oo},BQk:function(){return lo},ynx:function(){return ao},qZA:function(){return ro},TgZ:function(){return so},EpF:function(){return co},n5z:function(){return sn},Ikx:function(){return Qo},LFG:function(){return An},$8M:function(){return on},NdJ:function(){return fo},CRH:function(){return Vl},kcU:function(){return Ce},O4$:function(){return we},oxw:function(){return bo},ALo:function(){return Sl},lcZ:function(){return kl},Hsn:function(){return Co},F$t:function(){return wo},Q6J:function(){return no},s9C:function(){return xo},VKq:function(){return xl},iGM:function(){return Zl},MAs:function(){return to},CHM:function(){return Gt},oJD:function(){return Si},LSH:function(){return ki},kYT:function(){return rt},Udp:function(){return Io},WFA:function(){return mo},d8E:function(){return Jo},YNc:function(){return Xr},_uU:function(){return zo},Oqu:function(){return Yo},hij:function(){return Go},AsE:function(){return Ko},lnq:function(){return $o},Gf:function(){return ql}});var i=n(9765),s=n(5319),r=n(7574),o=n(6682),a=n(2441);var l=n(1307);function c(){return new i.xQ}function u(t){for(let e in t)if(t[e]===u)return e;throw Error("Could not find renamed property on target object.")}function h(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function d(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(d).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function p(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const f=u({__forward_ref__:u});function m(t){return t.__forward_ref__=m,t.toString=function(){return d(this())},t}function g(t){return _(t)?t():t}function _(t){return"function"==typeof t&&t.hasOwnProperty(f)&&t.__forward_ref__===m}class y extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function b(t){return"string"==typeof t?t:null==t?"":String(t)}function v(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():b(t)}function w(t,e){const n=e?` in ${e}`:"";throw new y("201",`No provider for ${v(t)} found${n}`)}function C(t,e){null==t&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${n} ${i} ${e} <=Actual]`))}(e,t,null,"!=")}function x(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function E(t){return{providers:t.providers||[],imports:t.imports||[]}}function S(t){return k(t,T)||k(t,P)}function k(t,e){return t.hasOwnProperty(e)?t[e]:null}function O(t){return t&&(t.hasOwnProperty(A)||t.hasOwnProperty(I))?t[A]:null}const T=u({"\u0275prov":u}),A=u({"\u0275inj":u}),P=u({ngInjectableDef:u}),I=u({ngInjectorDef:u});var R=(()=>((R=R||{})[R.Default=0]="Default",R[R.Host=1]="Host",R[R.Self=2]="Self",R[R.SkipSelf=4]="SkipSelf",R[R.Optional=8]="Optional",R))();let D;function M(t){const e=D;return D=t,e}function L(t,e,n){const i=S(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&R.Optional?null:void 0!==e?e:void w(d(t),"Injector")}function F(t){return{toString:t}.toString()}var N=(()=>((N=N||{})[N.OnPush=0]="OnPush",N[N.Default=1]="Default",N))(),B=(()=>((B=B||{})[B.Emulated=0]="Emulated",B[B.None=2]="None",B[B.ShadowDom=3]="ShadowDom",B))();const U="undefined"!=typeof globalThis&&globalThis,Z="undefined"!=typeof window&&window,q="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,V=U||j||Z||q,H={},z=[],Y=u({"\u0275cmp":u}),G=u({"\u0275dir":u}),K=u({"\u0275pipe":u}),$=u({"\u0275mod":u}),W=u({"\u0275loc":u}),Q=u({"\u0275fac":u}),J=u({__NG_ELEMENT_ID__:u});let X=0;function tt(t){return F(()=>{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===N.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||z,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||B.Emulated,id:"c",styles:t.styles||z,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=X++,n.inputs=ot(t.inputs,e),n.outputs=ot(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(et):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(nt):null,n})}function et(t){return ct(t)||function(t){return t[G]||null}(t)}function nt(t){return function(t){return t[K]||null}(t)}const it={};function st(t){return F(()=>{const e={type:t.type,bootstrap:t.bootstrap||z,declarations:t.declarations||z,imports:t.imports||z,exports:t.exports||z,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(it[t.id]=t.type),e})}function rt(t,e){return F(()=>{const n=ut(t,!0);n.declarations=e.declarations||z,n.imports=e.imports||z,n.exports=e.exports||z})}function ot(t,e){if(null==t)return H;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const at=tt;function lt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ct(t){return t[Y]||null}function ut(t,e){const n=t[$]||null;if(!n&&!0===e)throw new Error(`Type ${d(t)} does not have '\u0275mod' property.`);return n}function ht(t){return Array.isArray(t)&&"object"==typeof t[1]}function dt(t){return Array.isArray(t)&&!0===t[1]}function pt(t){return 0!=(8&t.flags)}function ft(t){return 2==(2&t.flags)}function mt(t){return 1==(1&t.flags)}function gt(t){return null!==t.template}function _t(t){return 0!=(512&t[2])}function yt(t,e){return t.hasOwnProperty(Q)?t[Q]:null}class bt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function vt(){return wt}function wt(t){return t.type.prototype.ngOnChanges&&(t.setInput=xt),Ct}function Ct(){const t=St(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===H)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function xt(t,e,n,i){const s=St(t)||function(t,e){return t[Et]=e}(t,{previous:H,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new bt(l&&l.currentValue,e,o===H),t[i]=e}vt.ngInherit=!0;const Et="__ngSimpleChanges__";function St(t){return t[Et]||null}const kt="http://www.w3.org/2000/svg";let Ot;function Tt(t){Ot=t}function At(){return void 0!==Ot?Ot:"undefined"!=typeof document?document:void 0}function Pt(t){return!!t.listen}const It={createRenderer:(t,e)=>At()};function Rt(t){for(;Array.isArray(t);)t=t[0];return t}function Dt(t,e){return Rt(e[t])}function Mt(t,e){return Rt(e[t.index])}function Lt(t,e){return t.data[e]}function Ft(t,e){return t[e]}function Nt(t,e){const n=e[t];return ht(n)?n:n[0]}function Bt(t){return 4==(4&t[2])}function Ut(t){return 128==(128&t[2])}function Zt(t,e){return null==e?null:t[e]}function qt(t){t[18]=0}function jt(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Vt={lFrame:fe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ht(){return Vt.bindingsEnabled}function zt(){return Vt.lFrame.lView}function Yt(){return Vt.lFrame.tView}function Gt(t){return Vt.lFrame.contextLView=t,t[8]}function Kt(){let t=$t();for(;null!==t&&64===t.type;)t=t.parent;return t}function $t(){return Vt.lFrame.currentTNode}function Wt(t,e){const n=Vt.lFrame;n.currentTNode=t,n.isParent=e}function Qt(){return Vt.lFrame.isParent}function Jt(){Vt.lFrame.isParent=!1}function Xt(){return Vt.isInCheckNoChangesMode}function te(t){Vt.isInCheckNoChangesMode=t}function ee(){const t=Vt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ne(){return Vt.lFrame.bindingIndex}function ie(){return Vt.lFrame.bindingIndex++}function se(t){const e=Vt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function re(t,e){const n=Vt.lFrame;n.bindingIndex=n.bindingRootIndex=t,oe(e)}function oe(t){Vt.lFrame.currentDirectiveIndex=t}function ae(t){const e=Vt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function le(){return Vt.lFrame.currentQueryIndex}function ce(t){Vt.lFrame.currentQueryIndex=t}function ue(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function he(t,e,n){if(n&R.SkipSelf){let i=e,s=t;for(;!(i=i.parent,null!==i||n&R.Host||(i=ue(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;e=i,t=s}const i=Vt.lFrame=pe();return i.currentTNode=e,i.lView=t,!0}function de(t){const e=pe(),n=t[1];Vt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function pe(){const t=Vt.lFrame,e=null===t?null:t.child;return null===e?fe(t):e}function fe(t){const e={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=e),e}function me(){const t=Vt.lFrame;return Vt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ge=me;function _e(){const t=me();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 ye(){return Vt.lFrame.selectedIndex}function be(t){Vt.lFrame.selectedIndex=t}function ve(){const t=Vt.lFrame;return Lt(t.tView,t.selectedIndex)}function we(){Vt.lFrame.currentNamespace=kt}function Ce(){Vt.lFrame.currentNamespace=null}function xe(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}class Ae{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Pe(t,e,n){const i=Pt(t);let s=0;for(;se){o=r-1;break}}}for(;r>16}(t),i=e;for(;n>0;)i=i[15],n--;return i}let Be=!0;function Ue(t){const e=Be;return Be=t,e}let Ze=0;function qe(t,e){const n=Ve(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,je(i.data,t),je(e,null),je(i.blueprint,null));const s=He(t,e),r=t.injectorIndex;if(Le(s)){const t=Fe(s),n=Ne(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function je(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ve(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function He(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function ze(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(i=n[J]),null==i&&(i=n[J]=Ze++);const s=255&i;e.data[t+(s>>5)]|=1<=0?255&e:We:e}(n);if("function"==typeof r){if(!he(e,t,i))return i&R.Host?Ye(s,n,i):Ge(e,n,i,s);try{const t=r(i);if(null!=t||i&R.Optional)return t;w(n)}finally{ge()}}else if("number"==typeof r){let s=null,o=Ve(t,e),a=-1,l=i&R.Host?e[16][6]:null;for((-1===o||i&R.SkipSelf)&&(a=-1===o?He(t,e):e[o+8],-1!==a&&en(i,!1)?(s=e[1],o=Fe(a),e=Ne(a,e)):o=-1);-1!==o;){const t=e[1];if(tn(r,o,t.data)){const t=Qe(o,e,n,s,i,l);if(t!==$e)return t}a=e[o+8],-1!==a&&en(i,e[1].data[o+8]===l)&&tn(r,o,e)?(s=t,o=Fe(a),e=Ne(a,e)):o=-1}}}return Ge(e,n,i,s)}const $e={};function We(){return new nn(Kt(),zt())}function Qe(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=Je(a,o,n,null==i?ft(a)&&Be:i!=o&&0!=(3&a.type),s&R.Host&&r===a);return null!==l?Xe(e,o,l,a):$e}function Je(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,u=s?a+c:t.directiveEnd;for(let h=i?a:a+c;h=l&&t.type===n)return h}if(s){const t=o[l];if(t&>(t)&&t.type===n)return l}return null}function Xe(t,e,n,i){let s=t[n];const r=e.data;if(function(t){return t instanceof Ae}(s)){const o=s;o.resolving&&function(t,e){throw new y("200",`Circular dependency in DI detected for ${t}`)}(v(r[n]));const a=Ue(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?M(o.injectImpl):null;he(t,i,R.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=wt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&M(l),Ue(a),o.resolving=!1,ge()}}return s}function tn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Q]||rn(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Q]||rn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function rn(t){return _(t)?()=>{const e=rn(g(t));return e&&e()}:yt(t)}function on(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty(an)?t[an]:Object.defineProperty(t,an,{value:[]})[an];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class cn{constructor(t,e){this._desc=t,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 un=new cn("AnalyzeForEntryComponents"),hn=Function;function dn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?pn(t,e):e(t))}function fn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function mn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function gn(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function yn(t,e){const n=bn(t,e);if(n>=0)return t[1|n]}function bn(t,e){return function(t,e,n){let i=0,s=t.length>>n;for(;s!==i;){const r=i+(s-i>>1),o=t[r<e?s=r:i=r+1}return~(s< ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):d(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(xn,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t[Cn]=null,t}const Ln=Rn(ln("Inject",t=>({token:t})),-1),Fn=Rn(ln("Optional"),8),Nn=Rn(ln("SkipSelf"),4);let Bn,Un;function Zn(t){var e;return(null===(e=function(){if(void 0===Bn&&(Bn=null,V.trustedTypes))try{Bn=V.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Bn}())||void 0===e?void 0:e.createHTML(t))||t}function qn(t){var e;return(null===(e=function(){if(void 0===Un&&(Un=null,V.trustedTypes))try{Un=V.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Un}())||void 0===e?void 0:e.createHTML(t))||t}class jn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Vn extends jn{getTypeName(){return"HTML"}}class Hn extends jn{getTypeName(){return"Style"}}class zn extends jn{getTypeName(){return"Script"}}class Yn extends jn{getTypeName(){return"URL"}}class Gn extends jn{getTypeName(){return"ResourceURL"}}function Kn(t){return t instanceof jn?t.changingThisBreaksApplicationSecurity:t}function $n(t,e){const n=Wn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Wn(t){return t instanceof jn&&t.getTypeName()||null}function Qn(t){return new Vn(t)}function Jn(t){return new Hn(t)}function Xn(t){return new zn(t)}function ti(t){return new Yn(t)}function ei(t){return new Gn(t)}class ni{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Zn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class ii{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Zn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Zn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0oi(t.trim())).join(", ")),this.buf.push(" ",e,'="',vi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();di.hasOwnProperty(e)&&!ci.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(vi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const yi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bi=/([^\#-~ |!])/g;function vi(t){return t.replace(/&/g,"&").replace(yi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(bi,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let wi;function Ci(t,e){let n=null;try{wi=wi||function(t){const e=new ii(t);return function(){try{return!!(new window.DOMParser).parseFromString(Zn(""),"text/html")}catch(t){return!1}}()?new ni(e):e}(t);let i=e?String(e):"";n=wi.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=wi.getInertBodyElement(i)}while(i!==r);return Zn((new _i).sanitizeChildren(xi(n)||n))}finally{if(n){const t=xi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function xi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ei=(()=>((Ei=Ei||{})[Ei.NONE=0]="NONE",Ei[Ei.HTML=1]="HTML",Ei[Ei.STYLE=2]="STYLE",Ei[Ei.SCRIPT=3]="SCRIPT",Ei[Ei.URL=4]="URL",Ei[Ei.RESOURCE_URL=5]="RESOURCE_URL",Ei))();function Si(t){const e=Oi();return e?qn(e.sanitize(Ei.HTML,t)||""):$n(t,"HTML")?qn(Kn(t)):Ci(At(),b(t))}function ki(t){const e=Oi();return e?e.sanitize(Ei.URL,t)||"":$n(t,"URL")?Kn(t):oi(b(t))}function Oi(){const t=zt();return t&&t[12]}const Ti="__ngContext__";function Ai(t,e){t[Ti]=e}function Pi(t){const e=function(t){return t[Ti]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ii(t){return t.ngOriginalError}function Ri(t,...e){t.error(...e)}class Di{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=(s=t)&&s.ngErrorLogger||Ri;var s;i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?t.ngDebugContext||this._findContext(Ii(t)):null}_findOriginalError(t){let e=t&&Ii(t);for(;e&&Ii(e);)e=Ii(e);return e||null}}const Mi=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(V))();function Li(t){return t instanceof Function?t():t}var Fi=(()=>((Fi=Fi||{})[Fi.Important=1]="Important",Fi[Fi.DashCase=2]="DashCase",Fi))();function Ni(t,e){return undefined(t,e)}function Bi(t){const e=t[3];return dt(e)?e[3]:e}function Ui(t){return qi(t[13])}function Zi(t){return qi(t[4])}function qi(t){for(;null!==t&&!dt(t);)t=t[4];return t}function ji(t,e,n,i,s){if(null!=i){let r,o=!1;dt(i)?r=i:ht(i)&&(o=!0,i=i[0]);const a=Rt(i);0===t&&null!==n?null==s?Wi(e,n,a):$i(e,n,a,s||null,!0):1===t&&null!==n?$i(e,n,a,s||null,!0):2===t?function(t,e,n){const i=Ji(t,e);i&&function(t,e,n,i){Pt(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==Rt(n)&&ji(e,t,i,r,s);for(let o=10;o0&&(t[n-1][4]=i[4]);const r=mn(t,10+e);!function(t,e){os(t,e,e[11],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Yi(t,e){if(!(256&e[2])){const n=e[11];Pt(n)&&n.destroyNode&&os(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Gi(t[1],t);for(;e;){let n=null;if(ht(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ht(e)&&Gi(e[1],e),e=e[3];null===e&&(e=t),ht(e)&&Gi(e[1],e),n=e&&e[4]}e=n}}(e)}}function Gi(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?i[s=l]():i[s=-l].unsubscribe(),r+=2}else{const t=i[s=n[r+1]];n[r].call(t)}if(null!==i){for(let t=s+1;tr?"":s[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==us(e,c,0)||2&i&&c!==t){if(gs(i))return!1;o=!0}}}}else{if(!o&&!gs(i)&&!gs(l))return!1;if(o&&gs(l))continue;o=!1,i=l|1&i}}return gs(i)||o}function gs(t){return 0==(1&t)}function _s(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""!==s&&!gs(o)&&(e+=vs(r,s),s=""),i=o,r=r||!gs(i);n++}return""!==s&&(e+=vs(r,s)),e}const Cs={};function xs(t){Es(Yt(),zt(),ye()+t,Xt())}function Es(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ee(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Se(e,i,0,n)}be(n)}function Ss(t,e){return t<<17|e<<2}function ks(t){return t>>17&32767}function Os(t){return 2|t}function Ts(t){return(131068&t)>>2}function As(t,e){return-131069&t|e<<2}function Ps(t){return 1|t}function Is(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i20&&Es(t,e,20,Xt()),n(i,s)}finally{be(r)}}function Us(t,e,n){if(pt(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function $s(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ws(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Qs(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&or(n)}}function or(t){for(let n=Ui(t);null!==n;n=Zi(n))for(let t=10;t0&&or(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&or(i)}}function ar(t,e){const n=Nt(e,t),i=n[1];(function(t,e){for(let n=e.length;nPromise.resolve(null))();function fr(t){return t[7]||(t[7]=[])}function mr(t){return t.cleanup||(t.cleanup=[])}function gr(t,e,n){return(null===t||gt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function _r(t,e){const n=t[9],i=n?n.get(Di,null):null;i&&i.handleError(e)}function yr(t,e,n,i,s){for(let r=0;rthis.processProvider(n,t,e)),pn([t],t=>this.processInjectorType(t,[],s)),this.records.set(wr,Rr(void 0,this));const r=this.records.get(xr);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:d(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=vn,n=R.Default){this.assertNotDestroyed();const i=On(this),s=M(void 0);try{if(!(n&R.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof cn)&&S(t);e=n&&this.injectableDefInScope(n)?Rr(Pr(t),Er):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&R.Self?Or():this.parent).get(t,e=n&R.Optional&&e===vn?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Cn]=o[Cn]||[]).unshift(d(t)),i)throw o;return Mn(o,t,"R3InjectorError",this.source)}throw o}finally{M(s),On(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(d(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=g(t)))return!1;let i=O(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=O(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{pn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||z))}}this.injectorDefTypes.add(r);const a=yt(r)||(()=>new r);this.records.set(r,Rr(a,Er));const l=i.providers;if(null!=l&&!o){const e=t;pn(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=Mr(t=g(t))?t:g(t&&t.provide);const s=Dr(r=t)?Rr(void 0,r.useValue):Rr(Ir(r),Er);var r;if(Mr(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Rr(void 0,Er,!0),e.factory=()=>In(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){return e.value===Er&&(e.value=Sr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value;var n}injectableDefInScope(t){if(!t.providedIn)return!1;const e=g(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Pr(t){const e=S(t),n=null!==e?e.factory:yt(t);if(null!==n)return n;if(t instanceof cn)throw new Error(`Token ${d(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=gn(e,"?");throw new Error(`Can't resolve all parameters for ${d(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[T]||t[P]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" 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 "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Ir(t,e,n){let i;if(Mr(t)){const e=g(t);return yt(e)||Pr(e)}if(Dr(t))i=()=>g(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...In(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>An(g(t.useExisting));else{const e=g(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return yt(e)||Pr(e);i=()=>new e(...In(t.deps))}return i}function Rr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Dr(t){return null!==t&&"object"==typeof t&&Sn in t}function Mr(t){return"function"==typeof t}const Lr=function(t,e,n){return function(t,e=null,n=null,i){const s=Tr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};class Fr{static create(t,e){return Array.isArray(t)?Lr(t,e,""):Lr(t.providers,t.parent,t.name||"")}}function Nr(t,e){xe(Pi(t)[1],Kt())}function Br(t){let e=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const i=[t];for(;e;){let s;if(gt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=Ur(t.inputs),e.declaredInputs=Ur(t.declaredInputs),e.outputs=Ur(t.outputs);const n=s.hostBindings;n&&jr(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&Zr(t,r),o&&qr(t,o),h(t.inputs,s.inputs),h(t.declaredInputs,s.declaredInputs),h(t.outputs,s.outputs),gt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=De(s.hostAttrs,n=De(n,s.hostAttrs))}}(i)}function Ur(t){return t===H?{}:t===z?[]:t}function Zr(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function qr(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function jr(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}Fr.THROW_IF_NOT_FOUND=vn,Fr.NULL=new Cr,Fr.\u0275prov=x({token:Fr,providedIn:"any",factory:()=>An(wr)}),Fr.__NG_ELEMENT_ID__=-1;let Vr=null;function Hr(){if(!Vr){const t=V.Symbol;if(t&&t.iterator)Vr=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Rt(t[i.index])):i.index;if(Pt(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,d=!1;else{r=yo(i,e,u,r,!1);const t=n.listen(f,s,r);h.push(r,t),c&&c.push(s,g,m,m+1)}}else r=yo(i,e,u,r,!0),f.addEventListener(s,r,o),h.push(r),c&&c.push(s,g,m,o)}else r=yo(i,e,u,r,!1);const p=i.outputs;let f;if(d&&null!==p&&(f=p[s])){const t=f.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Vt.lFrame.contextLView))[8]}(t)}function vo(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Oo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function To(t){return t.substring(Oo.key,Oo.keyEnd)}function Ao(t,e){const n=Oo.textEnd;return n===e?-1:(e=Oo.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Oo.key=e,n),Po(t,e,n))}function Po(t,e,n){for(;e=0;n=Ao(e,n))_n(t,To(e),!0)}function Lo(t,e,n,i){const s=zt(),r=Yt(),o=se(2);r.firstUpdatePass&&Bo(r,t,o,i),e!==Cs&&Kr(s,o,e)&&qo(r,r.data[ye()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=d(Kn(t)))),t}(e,n),i,o)}function Fo(t,e,n,i){const s=Yt(),r=se(2);s.firstUpdatePass&&Bo(s,null,r,i);const o=zt();if(n!==Cs&&Kr(o,r,n)){const a=s.data[ye()];if(Ho(a,i)&&!No(s,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=p(t,n||"")),io(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===Cs&&(s=z);let l=0,c=0,u=0=t.expandoStartIndex}function Bo(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[ye()],o=No(t,n);Ho(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=ae(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=Zo(n=Uo(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=Uo(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Ts(i))return t[ks(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Uo(null,t,e,n[1],i),n=Zo(n,e.attrs,i),function(t,e,n,i){t[ks(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=ks(t[a+1]);t[i+1]=Ss(e,a),0!==e&&(t[e+1]=As(t[e+1],i)),t[a+1]=function(t,e){return 131071&t|e<<17}(t[a+1],i)}else t[i+1]=Ss(a,0),0!==a&&(t[a+1]=As(t[a+1],i)),a=i;else t[i+1]=Ss(l,0),0===a?a=i:t[l+1]=As(t[l+1],i),l=i;u&&(t[i+1]=Os(t[i+1])),So(t,c,i,!0),So(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&bn(r,e)>=0&&(n[i+1]=Ps(n[i+1]))}(e,c,t,i,r),o=Ss(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function Uo(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let u=n[s+1];u===Cs&&(u=c?z:void 0);let h=c?yn(u,i):l===i?u:void 0;if(r&&!Vo(h)&&(h=yn(e,i)),Vo(h)&&(a=h,o))return a;const d=t[s+1];s=o?ks(d):Ts(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=yn(t,i))}return a}function Vo(t){return void 0!==t}function Ho(t,e){return 0!=(t.flags&(e?16:32))}function zo(t,e=""){const n=zt(),i=Yt(),s=t+20,r=i.firstCreatePass?Ds(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return Pt(t)?t.createText(e):t.createTextNode(e)}(n[11],e);es(i,n,o,r),Wt(r,!1)}function Yo(t){return Go("",t,""),Yo}function Go(t,e,n){const i=zt(),s=Qr(i,t,e,n);return s!==Cs&&br(i,ye(),s),Go}function Ko(t,e,n,i,s){const r=zt(),o=function(t,e,n,i,s,r){const o=$r(t,ne(),n,s);return se(2),o?e+b(n)+i+b(s)+r:Cs}(r,t,e,n,i,s);return o!==Cs&&br(r,ye(),o),Ko}function $o(t,e,n,i,s,r,o){const a=zt(),l=Jr(a,t,e,n,i,s,r,o);return l!==Cs&&br(a,ye(),l),$o}function Wo(t,e,n){Fo(_n,Mo,Qr(zt(),t,e,n),!0)}function Qo(t,e,n){const i=zt();return Kr(i,ie(),e)&&Ys(Yt(),ve(),i,t,e,i[11],n,!0),Qo}function Jo(t,e,n){const i=zt();if(Kr(i,ie(),e)){const s=Yt(),r=ve();Ys(s,r,i,t,e,gr(ae(s.data),r,i),n,!0)}return Jo}const Xo=void 0;var ta=["en",[["a","p"],["AM","PM"],Xo],[["AM","PM"],Xo,Xo],[["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"]],Xo,[["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"]],Xo,[["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}",Xo,"{1} 'at' {0}",Xo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ea={};function na(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=sa(e);if(n)return n;const i=e.split("-")[0];if(n=sa(i),n)return n;if("en"===i)return ta;throw new Error(`Missing locale data for the locale "${t}".`)}function ia(t){return na(t)[ra.PluralCase]}function sa(t){return t in ea||(ea[t]=V.ng&&V.ng.common&&V.ng.common.locales&&V.ng.common.locales[t]),ea[t]}var ra=(()=>((ra=ra||{})[ra.LocaleId=0]="LocaleId",ra[ra.DayPeriodsFormat=1]="DayPeriodsFormat",ra[ra.DayPeriodsStandalone=2]="DayPeriodsStandalone",ra[ra.DaysFormat=3]="DaysFormat",ra[ra.DaysStandalone=4]="DaysStandalone",ra[ra.MonthsFormat=5]="MonthsFormat",ra[ra.MonthsStandalone=6]="MonthsStandalone",ra[ra.Eras=7]="Eras",ra[ra.FirstDayOfWeek=8]="FirstDayOfWeek",ra[ra.WeekendRange=9]="WeekendRange",ra[ra.DateFormat=10]="DateFormat",ra[ra.TimeFormat=11]="TimeFormat",ra[ra.DateTimeFormat=12]="DateTimeFormat",ra[ra.NumberSymbols=13]="NumberSymbols",ra[ra.NumberFormats=14]="NumberFormats",ra[ra.CurrencyCode=15]="CurrencyCode",ra[ra.CurrencySymbol=16]="CurrencySymbol",ra[ra.CurrencyName=17]="CurrencyName",ra[ra.Currencies=18]="Currencies",ra[ra.Directionality=19]="Directionality",ra[ra.PluralCase=20]="PluralCase",ra[ra.ExtraData=21]="ExtraData",ra))();const oa="en-US";let aa=oa;function la(t){C(t,"Expected localeId to be defined"),"string"==typeof t&&(aa=t.toLowerCase().replace(/_/g,"-"))}function ca(t,e,n,i,s){if(t=g(t),Array.isArray(t))for(let r=0;r>20;if(Mr(t)||!t.multi){const i=new Ae(l,s,eo),p=da(a,e,s?u:u+d,h);-1===p?(ze(qe(c,o),r,a),ua(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=da(a,e,u+d,h),f=da(a,e,u,u+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){ze(qe(c,o),r,a);const u=function(t,e,n,i,s){const r=new Ae(t,n,eo);return r.multi=[],r.index=e,r.componentProviders=0,ha(r,s,i&&!n),r}(s?fa:pa,n.length,s,i,l);!s&&g&&(n[f].providerFactory=u),ua(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else ua(r,t,p>-1?p:f,ha(n[s?f:p],l,!s&&i));!s&&i&&g&&n[f].componentProviders++}}}function ua(t,e,n,i){const s=Mr(e);if(s||function(t){return!!t.useClass}(e)){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function ha(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function da(t,e,n,i){for(let s=n;s{n.providersResolver=(n,i)=>function(t,e,n){const i=Yt();if(i.firstCreatePass){const s=gt(t);ca(n,i.data,i.blueprint,s,!0),ca(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class _a{}const ya="ngComponent";class ba{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${d(t)}. Did you add it to @NgModule.entryComponents?`);return e[ya]=t,e}(t)}}class va{}function wa(...t){}function Ca(t,e){return new Ea(Mt(t,e))}va.NULL=new ba;const xa=function(){return Ca(Kt(),zt())};let Ea=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=xa,t})();function Sa(t){return t instanceof Ea?t.nativeElement:t}class ka{}let Oa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ta(),t})();const Ta=function(){const t=zt(),e=Nt(Kt().index,t);return function(t){return t[11]}(ht(e)?e:t)};let Aa=(()=>{class t{}return t.\u0275prov=x({token:t,providedIn:"root",factory:()=>null}),t})();class Pa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ia=new Pa("12.2.4");class Ra{constructor(){}supports(t){return Yr(t)}create(t){return new Ma(t)}}const Da=(t,e)=>e;class Ma{constructor(t){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=t||Da}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):t=this._addAfter(new La(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Na),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Na),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class La{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Fa{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Na{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Fa,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ba(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new qa(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class qa{constructor(t){this.key=t,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 ja(){return new Va([new Ra])}let Va=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||ja()),deps:[[t,new Nn,new Fn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${function(t){return t.name||typeof t}(t)}'`)}}return t.\u0275prov=x({token:t,providedIn:"root",factory:ja}),t})();function Ha(){return new za([new Ua])}let za=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ha()),deps:[[t,new Nn,new Fn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=x({token:t,providedIn:"root",factory:Ha}),t})();function Ya(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(Rt(r)),dt(r))for(let t=10;t-1&&(zi(t,n),mn(e,n))}this._attachedToViewContainer=!1}Yi(this._lView[1],this._lView)}onDestroy(t){Hs(this._lView[1],this._lView,null,t)}markForCheck(){cr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ur(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){te(!0);try{ur(t,e,n)}finally{te(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,os(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ka extends Ga{constructor(t){super(t),this._view=t}detectChanges(){hr(this._view)}checkNoChanges(){!function(t){te(!0);try{hr(t)}finally{te(!1)}}(this._view)}get context(){return null}}const $a=function(t){return function(t,e,n){if(ft(t)&&!n){const n=Nt(t.index,e);return new Ga(n,n)}return 47&t.type?new Ga(e[16],e):null}(Kt(),zt(),16==(16&t))};let Wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=$a,t})();const Qa=[new Ua],Ja=new Va([new Ra]),Xa=new za(Qa),tl=function(){return sl(Kt(),zt())};let el=(()=>{class t{}return t.__NG_ELEMENT_ID__=tl,t})();const nl=el,il=class extends nl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Rs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Ls(e,n,t),new Ga(n)}};function sl(t,e){return 4&t.type?new il(e,t,Ca(t,e)):null}class rl{}class ol{}const al=function(){return pl(Kt(),zt())};let ll=(()=>{class t{}return t.__NG_ELEMENT_ID__=al,t})();const cl=ll,ul=class extends cl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Ca(this._hostTNode,this._hostLView)}get injector(){return new nn(this._hostTNode,this._hostLView)}get parentInjector(){const t=He(this._hostTNode,this._hostLView);if(Le(t)){const e=Ne(t,this._hostLView),n=Fe(t);return new nn(e[1].data[n+8],e)}return new nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=hl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(rl,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(dt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new ul(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=10+i,r=n.length;i>0&&(n[s-1][4]=e),iMi});class yl extends _a{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ws).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return gl(this.componentDef.inputs)}get outputs(){return gl(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,fl,s);return r!==fl||i===fl?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(ka,It),o=s.get(Aa,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Pt(t))return t.selectRootElement(e,n===B.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Vi(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?kt:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h=function(t,e){return{components:[],scheduler:t||Mi,clean:pr,playerHandler:e||null,flags:0}}(),d=Vs(0,null,null,1,0,null,null,null,null,null),p=Rs(null,d,h,u,null,null,r,a,o,s);let f,m;de(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=Ds(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(vr(a,l,!0),null!==t&&(Pe(s,t,l),null!==a.classes&&cs(s,t,a.classes),null!==a.styles&&ls(s,t,a.styles)));const c=i.createRenderer(t,e),u=Rs(n,js(e),null,e.onPush?64:16,n[20],a,i,c,r||null,null);return o.firstCreatePass&&(ze(qe(a,n),o,e.type),Ws(o,a),Js(a,n.length,1)),lr(n,u),n[20]=u}(c,this.componentDef,p,r,a);if(c)if(n)Pe(a,c,["ng-version",Ia.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i0&&cs(a,c,e.join(" "))}if(m=Lt(d,20),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Kt();e.contentQueries(1,o,t.directiveStart)}const a=Kt();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(be(a.index),Ks(n[1],a,0,a.directiveStart,a.directiveEnd,e),$s(e,o)),o}(t,this.componentDef,p,h,[Nr]),Ls(d,p,null)}finally{_e()}return new bl(this.componentType,f,Ca(m,p),p,m)}}class bl extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Ka(i),this.componentType=t}get injector(){return new nn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const vl=new Map;class wl extends rl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ml(this);const n=ut(t),i=t[W]||null;i&&la(i),this._bootstrapComponents=Li(n.bootstrap),this._r3Injector=Tr(t,e,[{provide:rl,useValue:this},{provide:va,useValue:this.componentFactoryResolver}],d(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Fr.THROW_IF_NOT_FOUND,n=R.Default){return t===Fr||t===rl||t===wr?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Cl extends ol{constructor(t){super(),this.moduleType=t,null!==ut(t)&&function(t){const e=new Set;!function t(n){const i=ut(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${d(e)} vs ${d(e.name)}`)}(s,vl.get(s),n),vl.set(s,n));const r=Li(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new wl(this.moduleType,t)}}function xl(t,e,n,i){return El(zt(),ee(),t,e,n,i)}function El(t,e,n,i,s,r){const o=e+n;return Kr(t,o,s)?function(t,e,n){return t[e]=n}(t,o+1,r?i.call(r,s):i(s)):function(t,e){const n=t[e];return n===Cs?void 0:n}(t,o+1)}function Sl(t,e){const n=Yt();let i;const s=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new y("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=yt(i.type)),o=M(eo);try{const t=Ue(!1),e=r();return Ue(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,zt(),s,e),e}finally{M(o)}}function kl(t,e,n){const i=t+20,s=zt(),r=Ft(s,i);return function(t,e){zr.isWrapped(e)&&(e=zr.unwrap(e),t[ne()]=Cs);return e}(s,function(t,e){return t[1].data[e].pure}(s,i)?El(s,ee(),e,r.transform,n,r):r.transform(n))}function Ol(t){return e=>{setTimeout(t,void 0,e)}}const Tl=class extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,r,o;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),l=null===(r=e.error)||void 0===r?void 0:r.bind(e),c=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(l=Ol(l),a&&(a=Ol(a)),c&&(c=Ol(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof s.w&&t.add(u),u}};function Al(){return this._results[Hr()]()}class Pl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Hr(),n=Pl.prototype;n[e]||(n[e]=Al)}get changes(){return this._changes||(this._changes=new Tl)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=dn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=wa,this.reject=wa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(An(Gl,8))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const $l=new cn("AppId"),Wl={provide:$l,useFactory:function(){return`${Ql()}${Ql()}${Ql()}`},deps:[]};function Ql(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Jl=new cn("Platform Initializer"),Xl=new cn("Platform ID"),tc=new cn("appBootstrapListener");let ec=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const nc=new cn("LocaleId"),ic=new cn("DefaultCurrencyCode");class sc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const rc=function(t){return new Cl(t)},oc=rc,ac=function(t){return Promise.resolve(rc(t))},lc=function(t){const e=rc(t),n=Li(ut(t).declarations).reduce((t,e)=>{const n=ct(e);return n&&t.push(new yl(n)),t},[]);return new sc(e,n)},cc=lc,uc=function(t){return Promise.resolve(lc(t))};let hc=(()=>{class t{constructor(){this.compileModuleSync=oc,this.compileModuleAsync=ac,this.compileModuleAndAllComponentsSync=cc,this.compileModuleAndAllComponentsAsync=uc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const dc=(()=>Promise.resolve(0))();function pc(t){"undefined"==typeof Zone?dc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class fc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Tl(!1),this.onMicrotaskEmpty=new Tl(!1),this.onStable=new Tl(!1),this.onError=new Tl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=V.requestAnimationFrame,e=V.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(V,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,_c(t),t.isCheckStableRunning=!0,gc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),_c(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,r,o,a)=>{try{return yc(t),n.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),bc(t)}},onInvoke:(n,i,s,r,o,a,l)=>{try{return yc(t),n.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),bc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,_c(t),gc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!fc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(fc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,mc,wa,wa);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const mc={};function gc(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 _c(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function yc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bc(t){t._nesting--,gc(t)}class vc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Tl,this.onMicrotaskEmpty=new Tl,this.onStable=new Tl,this.onError=new Tl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let wc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{fc.assertNotInAngularZone(),pc(()=>{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())pc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!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(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(An(fc))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),Cc=(()=>{class t{constructor(){this._applications=new Map,Sc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Sc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();class xc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Ec(t){Sc=t}let Sc=new xc,kc=!0,Oc=!1;function Tc(){return Oc=!0,kc}function Ac(){if(Oc)throw new Error("Cannot enable prod mode after platform setup.");kc=!1}let Pc;const Ic=new cn("AllowMultipleToken");class Rc{constructor(t,e){this.name=t,this.token=e}}function Dc(t,e,n=[]){const i=`Platform: ${e}`,s=new cn(i);return(e=[])=>{let r=Mc();if(!r||r.injector.get(Ic,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:xr,useValue:"platform"});!function(t){if(Pc&&!Pc.destroyed&&!Pc.injector.get(Ic,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Pc=t.get(Lc);const e=t.get(Jl,null);e&&e.forEach(t=>t())}(Fr.create({providers:t,name:i}))}return function(t){const e=Mc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Mc(){return Pc&&!Pc.destroyed?Pc:null}let Lc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new vc:("zone.js"===t?void 0:t)||new fc({enableLongStackTrace:Tc(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:fc,useValue:n}];return n.run(()=>{const s=Fr.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(s),o=r.injector.get(Di,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{o.handleError(t)}});r.onDestroy(()=>{Bc(this._modules,r),t.unsubscribe()})}),function(t,n,i){try{const e=i();return uo(e)?e.catch(e=>{throw n.runOutsideAngular(()=>t.handleError(e)),e}):e}catch(e){throw n.runOutsideAngular(()=>t.handleError(e)),e}}(o,n,()=>{const t=r.injector.get(Kl);return t.runInitializers(),t.donePromise.then(()=>(la(r.injector.get(nc,oa)||oa),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=Fc({},e);return function(t,e,n){const i=new Cl(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Nc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${d(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(An(Fr))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function Fc(t,e){return Array.isArray(e)?e.reduce(Fc,t):Object.assign(Object.assign({},t),e)}let Nc=(()=>{class t{constructor(t,e,n,i,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=s,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 u=new r.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),h=new r.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{fc.assertNotInAngularZone(),pc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{fc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=(0,o.T)(u,h.pipe(t=>(0,l.x)()(function(t,e){return function(e){let n;n="function"==typeof t?t:function(){return t};const i=Object.create(e,a.N);return i.source=e,i.subjectFactory=n,i}}(c)(t))))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof _a?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=function(t){return t.isBoundToModule}(n)?void 0:this._injector.get(rl),s=n.create(Fr.NULL,[],e||n.selector,i),r=s.location.nativeElement,o=s.injector.get(wc,null),a=o&&s.injector.get(Cc);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Bc(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Bc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(tc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(An(fc),An(Fr),An(Di),An(va),An(Kl))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function Bc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Uc{}class Zc{}const qc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let jc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||qc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(8255)(e).then(t=>t[i]).then(t=>Vc(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>Vc(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(An(hc),An(Zc,8))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function Vc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Hc=function(t){return null},zc=Dc(null,"core",[{provide:Xl,useValue:"unknown"},{provide:Lc,deps:[Fr]},{provide:Cc,deps:[]},{provide:ec,deps:[]}]),Yc=[{provide:Nc,useClass:Nc,deps:[fc,Fr,Di,va,Kl]},{provide:_l,deps:[fc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Kl,useClass:Kl,deps:[[new Fn,Gl]]},{provide:hc,useClass:hc,deps:[]},Wl,{provide:Va,useFactory:function(){return Ja},deps:[]},{provide:za,useFactory:function(){return Xa},deps:[]},{provide:nc,useFactory:function(t){return la(t=t||"undefined"!=typeof $localize&&$localize.locale||oa),t},deps:[[new Ln(nc),new Fn,new Nn]]},{provide:ic,useValue:"USD"}];let Gc=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(An(Nc))},t.\u0275mod=st({type:t}),t.\u0275inj=E({providers:Yc}),t})()},665:function(t,e,n){"use strict";n.d(e,{Zs:function(){return ct},sg:function(){return rt},u5:function(){return ht},Cf:function(){return h},JU:function(){return u},a5:function(){return A},JL:function(){return P},F:function(){return et},_Y:function(){return nt}});var i=n(3018),s=(n(8583),n(7574)),r=n(9796),o=n(8002),a=n(1555),l=n(4402);function c(t,e){return new s.y(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a{u||(u=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,(r===i||!u)&&(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}const u=new i.OlP("NgValueAccessor");const h=new i.OlP("NgValidators"),d=new i.OlP("NgAsyncValidators");function p(t){return null!=t}function f(t){const e=(0,i.QGY)(t)?(0,l.D)(t):t;return(0,i.CqO)(e),e}function m(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function g(t,e){return e.map(e=>e(t))}function _(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function y(t){return null!=t?function(t){if(!t)return null;const e=t.filter(p);return 0==e.length?null:function(t){return m(g(t,e))}}(_(t)):null}function b(t){return null!=t?function(t){if(!t)return null;const e=t.filter(p);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if((0,r.k)(e))return c(e,null);if((0,a.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&(0,r.k)(t[0])?t[0]:t,null).pipe((0,o.U)(t=>e(...t)))}return c(t,null)}(g(t,e).map(f)).pipe((0,o.U)(m))}}(_(t)):null}function v(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function w(t){return t._rawValidators}function C(t){return t._rawAsyncValidators}function x(t){return t?Array.isArray(t)?t:[t]:[]}function E(t,e){return Array.isArray(t)?t.includes(e):t===e}function S(t,e){const n=x(e);return x(t).forEach(t=>{E(n,t)||n.push(t)}),n}function k(t,e){return x(e).filter(e=>!E(t,e))}let O=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=y(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=b(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t}),t})(),T=(()=>{class t extends O{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();class A extends O{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let P=(()=>{class t extends class{constructor(t){this._cd=t}is(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(T,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[i.qOj]}),t})();function I(t,e){M(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&F(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&F(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function R(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),L(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function D(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function M(t,e){const n=w(t);null!==e.validator?t.setValidators(v(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const i=C(t);null!==e.asyncValidator?t.setAsyncValidators(v(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const s=()=>t.updateValueAndValidity();D(e._rawValidators,s),D(e._rawAsyncValidators,s)}function L(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=w(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.validator);s.length!==i.length&&(n=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const i=C(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.asyncValidator);s.length!==i.length&&(n=!0,t.setAsyncValidators(s))}}}const i=()=>{};return D(e._rawValidators,i),D(e._rawAsyncValidators,i),n}function F(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function N(t,e){M(t,e)}function B(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function U(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Z="VALID",q="INVALID",j="PENDING",V="DISABLED";function H(t){return(K(t)?t.validators:t)||null}function z(t){return Array.isArray(t)?y(t):t||null}function Y(t,e){return(K(e)?e.asyncValidators:t)||null}function G(t){return Array.isArray(t)?b(t):t||null}function K(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ${constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=z(this._rawValidators),this._composedAsyncValidatorFn=G(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Z}get invalid(){return this.status===q}get pending(){return this.status==j}get disabled(){return this.status===V}get enabled(){return this.status!==V}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=z(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=G(t)}addValidators(t){this.setValidators(S(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(S(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(k(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(k(t,this._rawAsyncValidators))}hasValidator(t){return E(this._rawValidators,t)}hasAsyncValidator(t){return E(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=j,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=V,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Z,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Z||this.status===j)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?V:Z}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=j,this._hasOwnPendingAsyncValidator=!0;const e=f(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let i=t;return e.forEach(t=>{i=i instanceof Q?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof J&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?V:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(j)?j:this._anyControlsHaveStatus(q)?q:Z}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){K(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class W extends ${constructor(t=null,e,n){super(H(e),Y(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){U(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){U(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Q extends ${constructor(t,e,n){super(H(e),Y(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof W?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class J extends ${constructor(t,e,n){super(H(e),Y(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof W?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const X={provide:T,useExisting:(0,i.Gpc)(()=>et)},tt=(()=>Promise.resolve(null))();let et=(()=>{class t extends T{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.vpe,this.form=new Q({},y(t),b(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){tt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),I(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){tt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),U(this._directives,t)})}addFormGroup(t){tt.then(()=>{const e=this._findContainer(t.path),n=new Q({});N(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){tt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){tt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,B(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h,10),i.Y36(d,10))},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([X]),i.qOj]}),t})(),nt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),it=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const st={provide:T,useExisting:(0,i.Gpc)(()=>rt)};let rt=(()=>{class t extends T{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(L(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return I(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){R(t.control||null,t,!1),U(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,B(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(R(e||null,t),n instanceof W&&(I(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);N(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return L(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){M(this.form,this),this._oldForm&&L(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h,10),i.Y36(d,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([st]),i.qOj,i.TTD]}),t})();const ot={provide:h,useExisting:(0,i.Gpc)(()=>lt),multi:!0},at={provide:h,useExisting:(0,i.Gpc)(()=>ct),multi:!0};let lt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?function(t){return function(t){return null==t||0===t.length}(t.value)?{required:!0}:null}(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[i._Bn([ot])]}),t})(),ct=(()=>{class t extends lt{validate(t){return this.required?function(t){return!0===t.value?null:{required:!0}}(t):null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},features:[i._Bn([at]),i.qOj]}),t})(),ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[it]]}),t})(),ht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[ut]}),t})()},1095:function(t,e,n){"use strict";n.d(e,{zs:function(){return p},lW:function(){return d},ot:function(){return f}});var i=n(2458),s=n(6237),r=n(3018),o=n(9238);const a=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",u=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],h=(0,i.pj)((0,i.Id)((0,i.Kr)(class{constructor(t){this._elementRef=t}})));let d=(()=>{class t extends h{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of u)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(o.tE),r.Y36(s.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&r.Gf(i.wG,5),2&t){let t;r.iGM(t=r.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(r.uIk("disabled",e.disabled||null),r.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1),r._UZ(3,"span",2)),2&t&&(r.xp6(2),r.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[c],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t extends d{constructor(t,e,n){super(e,t,n)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(o.tE),r.Y36(r.SBq),r.Y36(s.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._haltDisabledEvents(t)}),2&t&&(r.uIk("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),r.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[r.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1),r._UZ(3,"span",2)),2&t&&(r.xp6(2),r.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[c],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[i.si,i.BQ],i.BQ]}),t})()},2458:function(t,e,n){"use strict";n.d(e,{rD:function(){return S},K7:function(){return q},HF:function(){return N},BQ:function(){return b},ey:function(){return z},Ng:function(){return K},wG:function(){return D},si:function(){return M},CB:function(){return Y},jH:function(){return G},pj:function(){return w},Kr:function(){return C},Id:function(){return v},FD:function(){return E},sb:function(){return x}});var i=n(3018),s=n(9238),r=n(946);const o=new i.GfV("12.2.4");var a=n(8583),l=n(9490),c=n(9765),u=n(521),h=n(6237),d=n(6461);function p(t,e){if(1&t&&i._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=i.oxw();i.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function f(t,e){if(1&t&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.hij("(",t.group.label,")")}}const m=["*"],g=new i.GfV("12.2.4"),_=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let y,b=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checkIsEnabled(t){return!(!(0,i.X6Q)()||this._isTestEnv())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&g.full!==o.full&&console.warn("The Angular Material version ("+g.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.qm),i.LFG(_,8),i.LFG(a.K0))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[r.vT],r.vT]}),t})();function v(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}}}function w(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function C(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,l.Ig)(t)}}}function x(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?(0,l.su)(t):this.defaultTabIndex}}}function E(t){return class extends t{constructor(...t){super(...t),this.stateChanges=new c.xQ,this.errorState=!1}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}try{y="undefined"!=typeof Intl}catch($){y=!1}let S=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();class k{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const O={enterDuration:225,exitDuration:150},T=(0,u.i$)({passive:!0}),A=["mousedown","touchstart"],P=["mouseup","mouseleave","touchend","touchcancel"];class I{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=(0,l.fI)(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},O),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new k(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,!n.persistent&&(!t||!this._isPointerDown)&&u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},O),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=(0,l.fI)(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(A))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(P),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=(0,s.X6)(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,T)})})}_removeTriggerEvents(){this._triggerElement&&(A.forEach(t=>{this._triggerElement.removeEventListener(t,this,T)}),this._pointerUpEventsRegistered&&P.forEach(t=>{this._triggerElement.removeEventListener(t,this,T)}))}}const R=new i.OlP("mat-ripple-global-options");let D=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new I(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(u.t4),i.Y36(R,8),i.Y36(h.Qb,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[b,u.ud],b]}),t})(),L=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h.Qb,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[b]]}),t})();const N=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),B=v(class{});let U=0,Z=(()=>{class t extends B{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+U++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(N,8))},t.\u0275dir=i.lG2({type:t,inputs:{label:"label"},features:[i.qOj]}),t})();const q=new i.OlP("MatOptgroup");let j=0;class V{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let H=(()=>{class t{constructor(t,e,n,s){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+j++,this.onSelectionChange=new i.vpe,this._stateChanges=new c.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===d.K5||t.keyCode===d.L_)&&!(0,d.Vb)(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new V(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(void 0),i.Y36(Z))},t.\u0275dir=i.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),z=(()=>{class t extends H{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(N,8),i.Y36(q,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(i.Ikx("id",e.id),i.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:m,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,p,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,f,2,1,"span",2),i._UZ(4,"div",3)),2&t&&(i.Q6J("ngIf",e.multiple),i.xp6(3),i.Q6J("ngIf",e.group&&e.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.O5,D,L],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function Y(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;en+i?Math.max(0,t-i+e):n}let K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[M,a.ez,b,F]]}),t})()},2238:function(t,e,n){"use strict";n.d(e,{WI:function(){return O},uw:function(){return R},H8:function(){return N},ZT:function(){return M},xY:function(){return F},Is:function(){return U},so:function(){return S},uh:function(){return L}});var i=n(625),s=n(7636),r=n(3018),o=n(2458),a=n(946),l=n(8583),c=n(9765),u=n(1439),h=n(5917),d=n(5435),p=n(5257),f=n(9761),m=n(521),g=n(7238),_=n(6461),y=n(9238);function b(t,e){}class v{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const w={dialogContainer:(0,g.X$)("dialogContainer",[(0,g.SB)("void, exit",(0,g.oB)({opacity:0,transform:"scale(0.7)"})),(0,g.SB)("enter",(0,g.oB)({transform:"none"})),(0,g.eR)("* => enter",(0,g.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,g.oB)({transform:"none",opacity:1}))),(0,g.eR)("* => void, * => exit",(0,g.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,g.oB)({opacity:0})))])};let C=(()=>{class t extends s.en{constructor(t,e,n,i,s,o){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=s,this._focusMonitor=o,this._animationStateChanged=new r.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=(0,m.ht)(),n=this._elementRef.nativeElement;(!e||e===this._document.body||e===n||n.contains(e))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,m.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=(0,m.ht)();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(y.qV),r.Y36(r.sBO),r.Y36(l.K0,8),r.Y36(v),r.Y36(y.tE))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&r.Gf(s.Pl,7),2&t){let t;r.iGM(t=r.CRH())&&(e._portalOutlet=t.first)}},features:[r.qOj]}),t})(),x=(()=>{class t extends C{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&r.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(r.Ikx("id",e._id),r.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),r.d8E("@dialogContainer",e._state))},features:[r.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&r.YNc(0,b,0,0,"ng-template",0)},directives:[s.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[w.dialogContainer]}}),t})(),E=0;class S{constructor(t,e,n="mat-dialog-"+E++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new c.xQ,this._afterClosed=new c.xQ,this._beforeClosed=new c.xQ,this._state=0,e._id=n,e._animationStateChanged.pipe((0,d.h)(t=>"opened"===t.state),(0,p.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,d.h)(t=>"closed"===t.state),(0,p.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,d.h)(t=>t.keyCode===_.hY&&!this.disableClose&&!(0,_.Vb)(t))).subscribe(t=>{t.preventDefault(),k(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():k(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,d.h)(t=>"closing"===t.state),(0,p.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function k(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const O=new r.OlP("MatDialogData"),T=new r.OlP("mat-dialog-default-options"),A=new r.OlP("mat-dialog-scroll-strategy"),P={provide:A,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.block()}};let I=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new c.xQ,this._afterOpenedAtThisLevel=new c.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,u.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,f.O)(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new v)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),s=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=r.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:v,useValue:e}]}),i=new s.C5(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const o=new this._dialogRefConstructor(n,e,i.id);if(t instanceof r.Rgc)e.attachTemplatePortal(new s.UE(t,null,{$implicit:i.data,dialogRef:o}));else{const n=this._createInjector(i,o,e),r=e.attachComponentPortal(new s.C5(t,i.viewContainerRef,n));o.componentInstance=r.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return t.direction&&(!i||!i.get(a.Is,null,r.XFs.Optional))&&s.push({provide:a.Is,useValue:{value:t.direction,change:(0,h.of)()}}),r.zs3.create({parent:i||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i!==t&&"SCRIPT"!==i.nodeName&&"STYLE"!==i.nodeName&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(i.aV),r.Y36(r.zs3),r.Y36(void 0),r.Y36(void 0),r.Y36(i.Xj),r.Y36(void 0),r.Y36(r.DyG),r.Y36(r.DyG),r.Y36(r.OlP))},t.\u0275dir=r.lG2({type:t}),t})(),R=(()=>{class t extends I{constructor(t,e,n,i,s,r,o){super(t,e,i,r,o,s,S,x,O)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.aV),r.LFG(r.zs3),r.LFG(l.Ye,8),r.LFG(T,8),r.LFG(A),r.LFG(t,12),r.LFG(i.Xj))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),D=0,M=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=B(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){k(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(S,8),r.Y36(r.SBq),r.Y36(R))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._onButtonClick(t)}),2&t&&r.uIk("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[r.TTD]}),t})(),L=(()=>{class t{constructor(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+D++}ngOnInit(){this._dialogRef||(this._dialogRef=B(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(S,8),r.Y36(r.SBq),r.Y36(R))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&r.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function B(t,e){let n=t.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(t=>t.id===n.id):null}let U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[R,P],imports:[[i.U8,s.eL,o.BQ],o.BQ]}),t})()},8295:function(t,e,n){"use strict";n.d(e,{G_:function(){return G},o2:function(){return Y},KE:function(){return K},Eo:function(){return N},lN:function(){return $},hX:function(){return U},R9:function(){return V}});var i=n(8553),s=n(8583),r=n(3018),o=n(2458),a=n(9490),l=n(9765),c=n(6682),u=n(2759),h=n(9761),d=n(6782),p=n(5257),f=n(7238),m=n(6237),g=n(946),_=n(521);const y=["underline"],b=["connectionContainer"],v=["inputContainer"],w=["label"];function C(t,e){1&t&&(r.ynx(0),r.TgZ(1,"div",14),r._UZ(2,"div",15),r._UZ(3,"div",16),r._UZ(4,"div",17),r.qZA(),r.TgZ(5,"div",18),r._UZ(6,"div",15),r._UZ(7,"div",16),r._UZ(8,"div",17),r.qZA(),r.BQk())}function x(t,e){1&t&&(r.TgZ(0,"div",19),r.Hsn(1,1),r.qZA())}function E(t,e){if(1&t&&(r.ynx(0),r.Hsn(1,2),r.TgZ(2,"span"),r._uU(3),r.qZA(),r.BQk()),2&t){const t=r.oxw(2);r.xp6(3),r.Oqu(t._control.placeholder)}}function S(t,e){1&t&&r.Hsn(0,3,["*ngSwitchCase","true"])}function k(t,e){1&t&&(r.TgZ(0,"span",23),r._uU(1," *"),r.qZA())}function O(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"label",20,21),r.NdJ("cdkObserveContent",function(){return r.CHM(t),r.oxw().updateOutlineGap()}),r.YNc(2,E,4,1,"ng-container",12),r.YNc(3,S,1,0,"ng-content",12),r.YNc(4,k,2,0,"span",22),r.qZA()}if(2&t){const t=r.oxw();r.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),r.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),r.uIk("for",t._control.id)("aria-owns",t._control.id),r.xp6(2),r.Q6J("ngSwitchCase",!1),r.xp6(1),r.Q6J("ngSwitchCase",!0),r.xp6(1),r.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function T(t,e){1&t&&(r.TgZ(0,"div",24),r.Hsn(1,4),r.qZA())}function A(t,e){if(1&t&&(r.TgZ(0,"div",25,26),r._UZ(2,"span",27),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function P(t,e){if(1&t&&(r.TgZ(0,"div"),r.Hsn(1,5),r.qZA()),2&t){const t=r.oxw();r.Q6J("@transitionMessages",t._subscriptAnimationState)}}function I(t,e){if(1&t&&(r.TgZ(0,"div",31),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.Q6J("id",t._hintLabelId),r.xp6(1),r.Oqu(t.hintLabel)}}function R(t,e){if(1&t&&(r.TgZ(0,"div",28),r.YNc(1,I,2,2,"div",29),r.Hsn(2,6),r._UZ(3,"div",30),r.Hsn(4,7),r.qZA()),2&t){const t=r.oxw();r.Q6J("@transitionMessages",t._subscriptAnimationState),r.xp6(1),r.Q6J("ngIf",t.hintLabel)}}const D=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],M=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],L=new r.OlP("MatError"),F={transitionMessages:(0,f.X$)("transitionMessages",[(0,f.SB)("enter",(0,f.oB)({opacity:1,transform:"translateY(0%)"})),(0,f.eR)("void => enter",[(0,f.oB)({opacity:0,transform:"translateY(-5px)"}),(0,f.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t}),t})();const B=new r.OlP("MatHint");let U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-label"]]}),t})(),Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const q=new r.OlP("MatPrefix"),j=new r.OlP("MatSuffix");let V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","matSuffix",""]],features:[r._Bn([{provide:j,useExisting:t}])]}),t})(),H=0;const z=(0,o.pj)(class{constructor(t){this._elementRef=t}},"primary"),Y=new r.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),G=new r.OlP("MatFormField");let K=(()=>{class t extends z{constructor(t,e,n,i,s,r,o,a){super(t),this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+H++,this._labelId="mat-form-field-label-"+H++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=(0,a.Ig)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe((0,h.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,d.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,c.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,u.R)(this._label.nativeElement,"transitionend").pipe((0,p.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[s.ez,o.BQ,i.Q8],o.BQ]}),t})()},9983:function(t,e,n){"use strict";n.d(e,{Nt:function(){return y},c:function(){return b}});var i=n(521),s=n(3018),r=n(9490),o=n(9193),a=n(9765);n(2759),n(628),n(6782),n(8583);const l=(0,i.i$)({passive:!0});let c=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return o.E;const e=(0,r.fI)(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new a.xQ,s="cdk-text-field-autofilled",c=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",c,l),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",c,l)}}),i}stopMonitoring(t){const e=(0,r.fI)(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.t4),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.t4),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ud]]}),t})();var h=n(2458),d=n(8295),p=n(665);const f=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),m=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g=0;const _=(0,h.FD)(class{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}});let y=(()=>{class t extends _{constructor(t,e,n,s,r,o,l,c,u,h){super(o,s,r,n),this._elementRef=t,this._platform=e,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+g++,this.focused=!1,this.stateChanges=new a.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>(0,i.qK)().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=l||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&u.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;!e.value&&0===e.selectionStart&&0===e.selectionEnd&&(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&(0,i.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=(0,r.Ig)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){m.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(i.t4),s.Y36(p.a5,10),s.Y36(p.F,8),s.Y36(p.sg,8),s.Y36(h.rD),s.Y36(f,10),s.Y36(c),s.Y36(s.R0b),s.Y36(d.G_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),s.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s._Bn([{provide:d.Eo,useExisting:t}]),s.qOj,s.TTD]}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[h.rD],imports:[[u,d.lN,h.BQ],u,d.lN]}),t})()},7441:function(t,e,n){"use strict";n.d(e,{gD:function(){return H},LD:function(){return z}});var i=n(625),s=n(8583),r=n(3018),o=n(2458),a=n(8295),l=n(9243),c=n(9238),u=n(9490),h=n(8345),d=n(6461),p=n(9765),f=n(1439),m=n(6682),g=n(9761),_=n(3190),y=n(5257),b=n(5435),v=n(8002),w=n(7519),C=n(6782),x=n(7238),E=n(946),S=n(665);const k=["trigger"],O=["panel"];function T(t,e){if(1&t&&(r.TgZ(0,"span",8),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.placeholder)}}function A(t,e){if(1&t&&(r.TgZ(0,"span",12),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Oqu(t.triggerValue)}}function P(t,e){1&t&&r.Hsn(0,0,["*ngSwitchCase","true"])}function I(t,e){if(1&t&&(r.TgZ(0,"span",9),r.YNc(1,A,2,1,"span",10),r.YNc(2,P,1,0,"ng-content",11),r.qZA()),2&t){const t=r.oxw();r.Q6J("ngSwitch",!!t.customTrigger),r.xp6(2),r.Q6J("ngSwitchCase",!0)}}function R(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",13),r.TgZ(1,"div",14,15),r.NdJ("@transformPanel.done",function(e){return r.CHM(t),r.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return r.CHM(t),r.oxw()._handleKeydown(e)}),r.Hsn(3,1),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@transformPanelWrap",void 0),r.xp6(1),r.Gre("mat-select-panel ",t._getPanelTheme(),""),r.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),r.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),r.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const D=[[["mat-select-trigger"]],"*"],M=["mat-select-trigger","*"],L={transformPanelWrap:(0,x.X$)("transformPanelWrap",[(0,x.eR)("* => void",(0,x.IO)("@transformPanel",[(0,x.pV)()],{optional:!0}))]),transformPanel:(0,x.X$)("transformPanel",[(0,x.SB)("void",(0,x.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,x.SB)("showing",(0,x.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,x.SB)("showing-multiple",(0,x.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,x.eR)("void => *",(0,x.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,x.eR)("* => void",(0,x.jt)("100ms 25ms linear",(0,x.oB)({opacity:0})))])};let F=0;const N=new r.OlP("mat-select-scroll-strategy"),B=new r.OlP("MAT_SELECT_CONFIG"),U={provide:N,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class Z{constructor(t,e){this.source=t,this.value=e}}const q=(0,o.Kr)((0,o.sb)((0,o.Id)((0,o.FD)(class{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}})))),j=new r.OlP("MatSelectTrigger");let V=(()=>{class t extends q{constructor(t,e,n,i,s,o,a,l,c,u,h,d,w,C){var x,E,S;super(s,i,a,l,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=o,this._parentFormField=c,this._liveAnnouncer=w,this._defaultOptions=C,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+F++,this._triggerAriaLabelledBy=null,this._destroy=new p.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+F++,this._panelDoneAnimatingStream=new p.xQ,this._overlayPanelClass=(null===(x=this._defaultOptions)||void 0===x?void 0:x.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(S=null===(E=this._defaultOptions)||void 0===E?void 0:E.disableOptionCentering)&&void 0!==S&&S,this.ariaLabel="",this.optionSelectionChanges=(0,f.P)(()=>{const t=this.options;return t?t.changes.pipe((0,g.O)(t),(0,_.w)(()=>(0,m.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,y.q)(1),(0,_.w)(()=>this.optionSelectionChanges))}),this.openedChange=new r.vpe,this._openedStream=this.openedChange.pipe((0,b.h)(t=>t),(0,v.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,b.h)(t=>!t),(0,v.U)(()=>{})),this.selectionChange=new r.vpe,this.valueChange=new r.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==C?void 0:C.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=C.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=(0,u.Ig)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,u.Ig)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=(0,u.Ig)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=(0,u.su)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,w.x)(),(0,C.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,C.R)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe((0,g.O)(null),(0,C.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=e===d.JH||e===d.LH||e===d.oh||e===d.SV,i=e===d.K5||e===d.L_,s=this._keyManager;if(!s.isTyping()&&i&&!(0,d.Vb)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=n===d.JH||n===d.LH,s=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(s||n!==d.K5&&n!==d.L_||!e.activeItem||(0,d.Vb)(t))if(!s&&this._multiple&&n===d.A&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,y.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new c.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,C.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,C.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=(0,m.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,C.R)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,m.T)(...this.options.map(t=>t._stateChanges)).pipe((0,C.R)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(l.rL),r.Y36(r.sBO),r.Y36(r.R0b),r.Y36(o.rD),r.Y36(r.SBq),r.Y36(E.Is,8),r.Y36(S.F,8),r.Y36(S.sg,8),r.Y36(a.G_,8),r.Y36(S.a5,10),r.$8M("tabindex"),r.Y36(N),r.Y36(c.Kd),r.Y36(B,8))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&(r.Gf(k,5),r.Gf(O,5),r.Gf(i.pI,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.trigger=t.first),r.iGM(t=r.CRH())&&(e.panel=t.first),r.iGM(t=r.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[r.qOj,r.TTD]}),t})(),H=(()=>{class t extends V{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,C.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,y.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=(0,o.CB)(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=0===t&&1===e?0:(0,o.jH)((t+e)*n,n,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new Z(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),o=t.right+s-e.width+(n?0:i);r>0?s+=r+8:o>0&&(s-=o+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(256/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>i?this._adjustPanelDown(r,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=(0,o.CB)(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(r.Suo(n,j,5),r.Suo(n,o.ey,5),r.Suo(n,o.K7,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.customTrigger=t.first),r.iGM(t=r.CRH())&&(e.options=t),r.iGM(t=r.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&r.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(r.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),r.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[r._Bn([{provide:a.Eo,useExisting:t},{provide:o.HF,useExisting:t}]),r.qOj],ngContentSelectors:M,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(r.F$t(D),r.TgZ(0,"div",0,1),r.NdJ("click",function(){return e.toggle()}),r.TgZ(3,"div",2),r.YNc(4,T,2,1,"span",3),r.YNc(5,I,3,2,"span",4),r.qZA(),r.TgZ(6,"div",5),r._UZ(7,"div",6),r.qZA(),r.qZA(),r.YNc(8,R,4,14,"ng-template",7),r.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=r.MAs(1);r.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),r.xp6(3),r.Q6J("ngSwitch",e.empty),r.uIk("id",e._valueId),r.xp6(1),r.Q6J("ngSwitchCase",!0),r.xp6(1),r.Q6J("ngSwitchCase",!1),r.xp6(3),r.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[i.xu,s.RF,s.n9,i.pI,s.ED,s.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[L.transformPanelWrap,L.transformPanel]},changeDetection:0}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[U],imports:[[s.ez,i.U8,o.Ng,o.BQ],l.ZD,a.lN,o.Ng,o.BQ]}),t})()},6237:function(t,e,n){"use strict";n.d(e,{Qb:function(){return De},PW:function(){return Ne}});var i=n(3018),s=n(9075),r=n(7238);function o(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function l(t){switch(t.length){case 0:return new r.ZN;case 1:return t[0];default:return new r.ZE(t)}}function c(t,e,n,i,s={},o={}){const a=[],l=[];let c=-1,u=null;if(i.forEach(t=>{const n=t.offset,i=n==c,h=i&&u||{};Object.keys(t).forEach(n=>{let i=n,l=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),l){case r.k1:l=s[n];break;case r.l3:l=o[n];break;default:l=e.normalizeStyleValue(n,i,l,a)}h[i]=l}),i||l.push(h),u=h,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function u(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&h(n,"start",t)));break;case"done":t.onDone(()=>i(n&&h(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&h(n,"destroy",t)))}}function h(t,e,n){const i=n.totalTime,s=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function d(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function p(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function f(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let m=(t,e)=>!1,g=(t,e)=>!1,_=(t,e,n)=>[];const y=a();(y||"undefined"!=typeof Element)&&(m=o()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),g=(()=>{if(y||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):g}})(),_=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let k=(()=>{class t{validateStyleProperty(t){return w(t)}matchesElement(t,e){return C(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,o=[],a){return new r.ZN(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class O{}O.NOOP=new k;const T="ng-enter",A="ng-leave",P="ng-trigger",I=".ng-trigger",R="ng-animating",D=".ng-animating";function M(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:L(parseFloat(e[1]),e[2])}function L(t,e){switch(e){case"s":return 1e3*t;default:return t}}function F(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=L(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=L(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function N(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function B(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else N(t,n);return n}function U(t,e,n){return n?e+":"+n+";":""}function Z(t){let e="";for(let n=0;n{const s=$(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),a()&&Z(t))}function j(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=$(e);t.style[n]=""}),a()&&Z(t))}function V(t){return Array.isArray(t)?1==t.length?t[0]:(0,r.vP)(t):t}const H=new RegExp("{{\\s*(.+?)\\s*}}","g");function z(t){let e=[];if("string"==typeof t){let n;for(;n=H.exec(t);)e.push(n[1]);H.lastIndex=0}return e}function Y(t,e,n){const i=t.toString(),s=i.replace(H,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),s=""),s.toString()});return s==i?t:s}function G(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const K=/-+([a-z0-9])/g;function $(t){return t.replace(K,(...t)=>t[1].toUpperCase())}function W(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Q(t,e){return 0===t||0===e}function J(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(st(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&e.push(st(o,s))}(t,n,e)):n.push(t),n}const nt=new Set(["true","1"]),it=new Set(["false","0"]);function st(t,e){const n=nt.has(t)||it.has(t),i=nt.has(e)||it.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?nt.has(t):it.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?nt.has(e):it.has(e)),o&&a}}const rt=new RegExp("s*:selfs*,?","g");function ot(t,e,n){return new at(t).build(e,n)}class at{constructor(t){this._driver=t}build(t,e){const n=new lt(e);return this._resetContextStyleTimingState(n),X(this,V(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(ct(t)){const e=t;Object.keys(e).forEach(t=>{z(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=G(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=X(this,V(t.animation),e);return{type:1,matchers:et(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:ut(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>X(this,t,e)),options:ut(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=X(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:ut(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return ht(F(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ht(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||F(i,e),ht(n.duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let i,s=t.styles?t.styles:(0,r.oB)({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};n.easing&&(t.easing=n.easing),s=(0,r.oB)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(s,e);a.isEmptyStep=o,i=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==r.l3?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(ct(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=z(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c0&&i{const r=u>0?i==h?1:u*i:s[i],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:X(this,V(t.animation),e),options:ut(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ut(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ut(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(rt,"")),[t=t.replace(/@\*/g,I).replace(/@\w+/g,t=>I+"-"+t.substr(1)).replace(/:animating/g,D),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,p(e.collectedStyles,e.currentQuerySelector,{});const o=X(this,V(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:ut(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:F(t.timings,e.errors,!0);return{type:12,animation:X(this,V(t.animation),e),timings:n,options:null}}}class lt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ct(t){return!Array.isArray(t)&&"object"==typeof t}function ut(t){return t?(t=N(t)).params&&(t.params=function(t){return t?N(t):null}(t.params)):t={},t}function ht(t,e,n){return{duration:t,delay:e,easing:n}}function dt(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class pt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ft=new RegExp(":enter","g"),mt=new RegExp(":leave","g");function gt(t,e,n,i,s,r={},o={},a,l,c=[]){return(new _t).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class _t{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new pt;const u=new bt(t,e,l,i,s,c,[]);u.options=a,u.currentTimeline.setStyles([r],null,u.errors,a),X(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[dt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?M(n.duration):null,r=null!=n.delay?M(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),X(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=yt);const t=M(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>X(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?M(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),X(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return F(e.params?Y(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?M(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=yt);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),X(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;X(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const yt={};class bt{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new vt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=M(n.duration)),null!=n.delay&&(i.delay=M(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{(!e||!t.hasOwnProperty(n))&&(t[n]=Y(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new bt(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=yt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new wt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(ft,"."+this._enterClassName)).replace(mt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return!s&&0==o.length&&r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class vt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new vt(this._driver,t,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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||r.l3,this._currentKeyframe[t]=r.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},o=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=r.l3})):B(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=Y(o[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:r.l3),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,o)=>{const a=B(s,!0);Object.keys(a).forEach(n=>{const i=a[n];i==r.k1?t.add(n):i==r.l3&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const s=t.size?G(t.values()):[],o=e.size?G(e.values()):[];if(n){const t=i[0],e=N(t);t.offset=0,e.offset=1,i=[t,e]}return dt(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class wt extends vt{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=B(t[0],!1);a.offset=0,s.push(a);const l=B(t[0],!1);l.offset=Ct(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=B(t[i],!1);o.offset=Ct((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return dt(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function Ct(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class xt{}class Et extends xt{normalizePropertyName(t,e){return $(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(St[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const St=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function kt(t,e,n,i,s,r,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const Ot={};class Tt{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||Ot,d=this.buildStyles(n,o&&o.params||Ot,u),f=a&&a.params||Ot,m=this.buildStyles(i,f,u),g=new Set,_=new Map,y=new Map,b="void"===i,v={params:Object.assign(Object.assign({},h),f)},w=c?[]:gt(t,e,this.ast.animation,s,r,d,m,v,l,u);let C=0;if(w.forEach(t=>{C=Math.max(t.duration+t.delay,C)}),u.length)return kt(e,this._triggerName,n,i,b,d,m,[],[],_,y,C,u);w.forEach(t=>{const n=t.element,i=p(_,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=p(y,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&g.add(n)});const x=G(g.values());return kt(e,this._triggerName,n,i,b,d,m,w,x,_,y,C)}}class At{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},i=N(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Y(r,i,e));const o=this.normalizer.normalizePropertyName(t,e);r=this.normalizer.normalizeStyleValue(t,o,r,e),n[o]=r})}}),n}}class Pt{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new At(t.style,t.options&&t.options.params||{},n)}),It(this.states,"true","1"),It(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Tt(t,e,this.states))}),this.fallbackTransition=function(t,e,n){return new Tt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},e)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function It(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Rt=new pt;class Dt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=ot(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=c(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let o;const a=new Map;if(s?(o=gt(this._driver,e,s,T,A,{},{},n,Rt,i),o.forEach(t=>{const e=p(a,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);a.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,r.l3)})});const c=l(o.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const s=d(e,"","","");return u(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Mt="ng-animate-queued",Lt="ng-animate-disabled",Ft=".ng-animate-disabled",Nt=[],Bt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ut={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zt="__ng_removed";class qt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=N(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const jt="void",Vt=new qt(jt);class Ht{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Jt(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=p(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=p(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Jt(t,P),Jt(t,P+"-"+e),a[e]=Vt),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new Yt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Jt(t,P),Jt(t,P+"-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new qt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Vt),l.value!==jt&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s{j(t,n),q(t,i)})}return}const c=p(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:r,isFallbackTransition:h}),h||(Jt(t,Mt),r.onStart(()=>{Xt(t,Mt)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,I,!0);n.forEach(t=>{if(t[Zt])return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,jt,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&l(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const s=e.name;if(i.has(s))return;i.add(s);const r=this._triggers[s].fallbackTransition,o=n[s]||Vt,a=new qt(jt),l=new Yt(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t[Zt];(!i||i===Bt)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Jt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=d(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,u(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class zt{constructor(t,e,n){this.bodyNode=t,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Ht(t,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[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Jt(t,Lt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Xt(t,Lt))}removeNode(t,e,n,i){if(Gt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e[Zt]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Gt(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,I,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,D,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return l(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Zt];if(e&&e.setForRemoval){if(t[Zt]=Bt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Ft)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Ft,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?l(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new pt,i=[],s=new Map,o=[],a=new Map,c=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n=T+_++;g.set(e,n),t.forEach(t=>Jt(t,n))});const y=[],b=new Set,v=new Set;for(let r=0;rb.add(t)):v.add(t))}const w=new Map,C=Wt(f,Array.from(b));C.forEach((t,e)=>{const n=A+_++;w.set(e,n),t.forEach(t=>Jt(t,n))}),t.push(()=>{m.forEach((t,e)=>{const n=g.get(e);t.forEach(t=>Xt(t,n))}),C.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Xt(t,n))}),y.forEach(t=>{this.processLeaveNode(t)})});const x=[],E=[];for(let r=this._namespaceList.length-1;r>=0;r--)this._namespaceList[r].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(x.push(e),this.collectedEnterElements.length){const t=s[Zt];if(t&&t.setForMove)return void e.destroy()}const r=!d||!this.driver.containsElement(d,s),l=w.get(s),h=g.get(s),f=this._buildInstruction(t,n,h,l,r);if(f.errors&&f.errors.length)E.push(f);else{if(r)return e.onStart(()=>j(s,f.fromStyles)),e.onDestroy(()=>q(s,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>j(s,f.fromStyles)),e.onDestroy(()=>q(s,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),o.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>p(a,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(E.length){const t=[];E.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),x.forEach(t=>t.destroy()),this.reportError(t)}const S=new Map,k=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(k.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,S))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{p(S,e,[]).push(t),t.destroy()})});const O=y.filter(t=>ne(t,c,u)),P=new Map;$t(P,this.driver,v,u,r.l3).forEach(t=>{ne(t,c,u)&&O.push(t)});const I=new Map;m.forEach((t,e)=>{$t(I,this.driver,new Set(t),c,r.k1)}),O.forEach(t=>{const e=P.get(t),n=I.get(t);P.set(t,Object.assign(Object.assign({},e),n))});const R=[],M=[],L={};o.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(h.has(e))return r.onDestroy(()=>q(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=L;if(k.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=k.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>k.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,S,s,I,P);if(r.setRealPlayer(n),t===L)R.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=l(e)),i.push(r)}}else j(e,o.fromStyles),r.onDestroy(()=>q(e,o.toStyles)),M.push(r),h.has(e)&&i.push(r)}),M.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=l(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let r=0;r!t.destroyed);i.length?te(this,t,i):this.processLeaveNode(t)}return y.length=0,R.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),R}elementContainsData(t,e){let n=!1;const i=e[Zt];return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==jt;e.forEach(e=>{e.queued||!t&&e.triggerName!=i||r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=p(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}j(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,o){const a=e.triggerName,u=e.element,h=[],d=new Set,f=new Set,m=e.timelines.map(e=>{const l=e.element;d.add(l);const p=l[Zt];if(p&&p.removedBeforeQueried)return new r.ZN(e.duration,e.delay);const m=l!==u,g=function(t){const e=[];return ee(t,e),e}((n.get(l)||Nt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===l),_=s.get(l),y=o.get(l),b=c(0,this._normalizer,0,e.keyframes,_,y),v=this._buildPlayer(e,b,g);if(e.subTimeline&&i&&f.add(l),m){const e=new Yt(t,a,l);e.setRealPlayer(v),h.push(e)}return v});h.forEach(t=>{p(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),d.forEach(t=>Jt(t,R));const g=l(m);return g.onDestroy(()=>{d.forEach(t=>Xt(t,R)),q(u,e.toStyles)}),f.forEach(t=>{p(i,t,[]).push(g)}),g}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new r.ZN(t.duration,t.delay)}}class Yt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new r.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>u(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){p(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Gt(t){return t&&1===t.nodeType}function Kt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function $t(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Kt(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);(!n||0==n.length)&&(i[Zt]=Ut,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Kt(t,r[a++])),o}function Wt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}const Qt="$$classes";function Jt(t,e){if(t.classList)t.classList.add(e);else{let n=t[Qt];n||(n=t[Qt]={}),n[e]=!0}}function Xt(t,e){if(t.classList)t.classList.remove(e);else{let n=t[Qt];n&&delete n[e]}}function te(t,e,n){l(n).onDone(()=>t.processLeaveNode(e))}function ee(t,e){for(let n=0;ns.add(t)):e.set(t,i),n.delete(t),!0}class ie{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new zt(t,e,n),this._timelineEngine=new Dt(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=ot(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e,n){return new Pt(t,e,n)}(i,e,this._normalizer),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=f(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=f(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function se(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=oe(e[0]),e.length>1&&(i=oe(e[e.length-1]))):e&&(n=oe(e)),n||i?new re(t,n,i):null}class re{constructor(t,e,n){this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;let i=re.initialStylesByElement.get(t);i||re.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(re.initialStylesByElement.delete(this._element),this._startStyles&&(j(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}function oe(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){(function(t,e){const n=ge(t,"").trim();let i=0;n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),fe(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=ge(t,"").split(","),i=pe(n,e);i>=0&&(n.splice(i,1),me(t,"",n.join(",")))}(this._element,this._name))}}function he(t,e,n){me(t,"PlayState",n,de(t,e))}function de(t,e){const n=ge(t,"");return n.indexOf(",")>0?pe(n.split(","),e):pe([n],e)}function pe(t,e){for(let n=0;n=0)return n;return-1}function fe(t,e,n){n?t.removeEventListener(ce,e):t.addEventListener(ce,e)}function me(t,e,n,i){const s=le+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function ge(t,e){return t.style[le+e]||""}class _e{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ue(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:tt(this.element,n))})}this.currentSnapshot=t}}class ye extends r.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=S(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class be{constructor(){this._count=0}validateStyleProperty(t){return w(t)}matchesElement(t,e){return C(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>S(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=`${s}}\n`}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){const a=r.filter(t=>t instanceof _e),l={};Q(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"==n||"easing"==n||(e[n]=t[n])})}),e}(e=J(t,e,l));if(0==n)return new ye(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(h);const d=se(t,e),p=new _e(t,e,u,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class ve{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,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(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:tt(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class we{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Ce().toString()),this._cssKeyframesDriver=new be}validateStyleProperty(t){return w(t)}matchesElement(t,e){return C(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof ve);Q(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=se(t,e=J(t,e=e.map(t=>B(t,!1)),l));return new ve(t,e,a,u)}}function Ce(){return o()&&Element.prototype.animate||{}}var xe=n(8583);let Ee=(()=>{class t extends r._j{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?(0,r.vP)(t):t;return Oe(this._renderer,null,e,"register",[n]),new Se(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(xe.K0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Se extends r.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new ke(this._id,t,e||{},this._renderer)}}class ke{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Oe(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Oe(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}const Te="@.disabled";let Ae=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Pe("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new Ie(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(ie),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Pe{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&e==Te?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Ie extends Pe{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==Te?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Re=(()=>{class t extends ie{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(xe.K0),i.LFG(O),i.LFG(xt))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const De=new i.OlP("AnimationModuleType"),Me=[{provide:r._j,useClass:Ee},{provide:xt,useFactory:function(){return new Et}},{provide:ie,useClass:Re},{provide:i.FYo,useFactory:function(t,e,n){return new Ae(t,e,n)},deps:[s.se,ie,i.R0b]}],Le=[{provide:O,useFactory:function(){return"function"==typeof Ce()?new we:new be}},{provide:De,useValue:"BrowserAnimations"},...Me],Fe=[{provide:O,useClass:k},{provide:De,useValue:"NoopAnimations"},...Me];let Ne=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Fe:Le}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:Le,imports:[s.b2]}),t})()},9075:function(t,e,n){"use strict";n.d(e,{b2:function(){return N},H7:function(){return D},q6:function(){return L},se:function(){return x}});var i=n(8583),s=n(3018);class r extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class o extends r{static makeCurrent(){(0,i.HT)(new o)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(l=l||document.querySelector("base"),l?l.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,i.Mx)(document.cookie,t)}}let a,l=null;const c=new s.OlP("TRANSITION_ID"),u=[{provide:s.ip1,useFactory:function(t,e,n){return()=>{n.get(s.CZH).donePromise.then(()=>{const n=(0,i.q)(),s=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let t=0;t{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?(0,i.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new s.OlP("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t extends g{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(y),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(y))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function y(t){(0,i.q)().remove(t)}const b={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},v=/%COMP%/g;function w(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let x=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new E(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new S(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case s.ifc.ShadowDom:return new k(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=w(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f),s.LFG(_),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class E{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(b[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=b[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=b[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,n,i&s.JOm.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,C(n)):this.eventManager.addEventListener(t,e,C(n))}}class S extends E{constructor(t,e,n,i){super(t),this.component=n;const s=w(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(v,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(v,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class k extends E{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=w(i.id,i.styles,[]);for(let r=0;r{class t extends m{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const T=["alt","control","meta","shift"],A={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},P={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"},I={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let R=(()=>{class t extends m{constructor(t){super(t)}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(()=>(0,i.q)().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(T.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&P.hasOwnProperty(e)&&(e=P[e]))}return A[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),T.forEach(i=>{i!=n&&I[i](t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(M)},token:t,providedIn:"root"}),t})(),M=(()=>{class t extends D{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return function(t){return new M(t.get(i.K0))}((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const L=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:i.bD},{provide:s.g9A,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),F=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:p,useClass:O,multi:!0,deps:[i.K0,s.R0b,s.Lbi]},{provide:p,useClass:R,multi:!0,deps:[i.K0]},[],{provide:x,useClass:x,deps:[f,_,s.AFp]},{provide:s.FYo,useExisting:x},{provide:g,useExisting:_},{provide:_,useClass:_,deps:[i.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:f,useClass:f,deps:[p,s.R0b]},{provide:i.JF,useClass:d,deps:[]},[]];let N=(()=>{class t{constructor(t){if(t)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:s.AFp,useValue:e.appId},{provide:c,useExisting:s.AFp},u]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:F,imports:[i.ez,s.hGG]}),t})();"undefined"!=typeof window&&window},8741:function(t,e,n){"use strict";n.d(e,{gz:function(){return se},F0:function(){return On},rH:function(){return An},yS:function(){return Pn},Bz:function(){return jn},lC:function(){return Rn}});var i=n(8583),s=n(3018);const r=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var o=n(4402),a=n(5917),l=n(6215),c=n(739),u=n(7574),h=n(8071),d=n(1439),p=n(9193),f=n(2441),m=n(9765),g=n(7393);function _(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new y(t,e,n))}}class y{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new b(t,this.accumulator,this.seed,this.hasSeed))}}class b extends g.L{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}var v=n(5345);function w(t){return function(e){const n=new C(t),i=e.lift(n);return n.caught=i}}class C{constructor(t){this.selector=t}call(t,e){return e.subscribe(new x(t,this.selector,this.caught))}}class x extends v.Ds{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new v.IY(this);this.add(i);const s=(0,v.ft)(n,i);s!==i&&this.add(s)}}}var E=n(5435),S=n(7108);function k(t){return function(e){return 0===t?(0,p.c)():e.lift(new O(t))}}class O{constructor(t){if(this.total=t,this.total<0)throw new S.W}call(t,e){return e.subscribe(new T(t,this.total))}}class T extends g.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;se.lift(new P(t))}class P{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new I(t,this.errorFactory))}}class I extends g.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function R(){return new r}function D(t=null){return e=>e.lift(new M(t))}class M{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new L(t,this.defaultValue))}}class L extends g.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var F=n(4487),N=n(5257);function B(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,E.h)((e,n)=>t(e,n,i)):F.y,(0,N.q)(1),n?D(e):A(()=>new r))}var U=n(5319);class Z{constructor(t){this.callback=t}call(t,e){return e.subscribe(new q(t,this.callback))}}class q extends g.L{constructor(t,e){super(t),this.add(new U.w(e))}}var j=n(8002),V=n(3190),H=n(9761),z=n(4612),Y=n(9773),G=n(3342),K=n(1307),$=n(3282);class W{constructor(t,e){this.id=t,this.url=e}}class Q extends W{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class J extends W{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class X extends W{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class tt extends W{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class et extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nt extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class it extends W{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class st extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rt extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ot{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class at{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class lt{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ct{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ut{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ht{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dt{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const pt="primary";class ft{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function mt(t){return new ft(t)}const gt="ngNavigationCancelingError";function _t(t){const e=Error("NavigationCancelingError: "+t);return e[gt]=!0,e}function yt(t,e,n){const i=n.path.split("/");if(i.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function wt(t){return Array.prototype.concat.apply([],t)}function Ct(t){return t.length>0?t[t.length-1]:null}function xt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Et(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,a.of)(t)}const St={exact:function t(e,n,i){if(!Mt(e.segments,n.segments)||!Pt(e.segments,n.segments,i)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const s in n.children)if(!e.children[s]||!t(e.children[s],n.children[s],i))return!1;return!0},subset:Tt},kt={exact:function(t,e){return bt(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>vt(t[n],e[n]))},ignored:()=>!0};function Ot(t,e,n){return St[n.paths](t.root,e.root,n.matrixParams)&&kt[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function Tt(t,e,n){return At(t,e,e.segments,n)}function At(t,e,n,i){if(t.segments.length>n.length){const s=t.segments.slice(0,n.length);return!(!Mt(s,n)||e.hasChildren()||!Pt(s,n,i))}if(t.segments.length===n.length){if(!Mt(t.segments,n)||!Pt(t.segments,n,i))return!1;for(const n in e.children)if(!t.children[n]||!Tt(t.children[n],e.children[n],i))return!1;return!0}{const s=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!(Mt(t.segments,s)&&Pt(t.segments,s,i)&&t.children[pt])&&At(t.children[pt],e,r,i)}}function Pt(t,e,n){return e.every((e,i)=>kt[n](t[i].parameters,e.parameters))}class It{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mt(this.queryParams)),this._queryParamMap}toString(){return Nt.serialize(this)}}class Rt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,xt(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bt(this)}}class Dt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=mt(this.parameters)),this._parameterMap}toString(){return zt(this)}}function Mt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Lt{}class Ft{parse(t){const e=new Wt(t);return new It(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${Ut(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${qt(e)}=${qt(t)}`).join("&"):`${qt(e)}=${qt(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Nt=new Ft;function Bt(t){return t.segments.map(t=>zt(t)).join("/")}function Ut(t,e){if(!t.hasChildren())return Bt(t);if(e){const e=t.children[pt]?Ut(t.children[pt],!1):"",n=[];return xt(t.children,(t,e)=>{e!==pt&&n.push(`${e}:${Ut(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return xt(t.children,(t,i)=>{i===pt&&(n=n.concat(e(t,i)))}),xt(t.children,(t,i)=>{i!==pt&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===pt?[Ut(t.children[pt],!1)]:[`${n}:${Ut(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[pt]?`${Bt(t)}/${e[0]}`:`${Bt(t)}/(${e.join("//")})`}}function Zt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qt(t){return Zt(t).replace(/%3B/gi,";")}function jt(t){return Zt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vt(t){return decodeURIComponent(t)}function Ht(t){return Vt(t.replace(/\+/g,"%20"))}function zt(t){return`${jt(t.path)}${function(t){return Object.keys(t).map(e=>`;${jt(e)}=${jt(t[e])}`).join("")}(t.parameters)}`}const Yt=/^[^\/()?;=#]+/;function Gt(t){const e=t.match(Yt);return e?e[0]:""}const Kt=/^[^=?&#]+/,$t=/^[^?&#]+/;class Wt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Rt([],{}):new Rt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[pt]=new Rt(t,e)),n}parseSegment(){const t=Gt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Dt(Vt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Gt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Gt(this.remaining);t&&(n=t,this.capture(n))}t[Vt(e)]=Vt(n)}parseQueryParam(t){const e=function(t){const e=t.match(Kt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match($t);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Ht(e),s=Ht(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Gt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=pt);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r[pt]:new Rt([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Qt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Jt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Jt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Xt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Xt(t,this._root).map(t=>t.value)}}function Jt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Jt(t,n);if(e)return e}return null}function Xt(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Xt(t,n);if(i.length)return i.unshift(e),i}return[]}class te{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function ee(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class ne extends Qt{constructor(t,e){super(t),this.snapshot=e,le(this,t)}toString(){return this.snapshot.toString()}}function ie(t,e){const n=function(t,e){const n=new oe([],{},{},"",{},pt,e,null,t.root,-1,{});return new ae("",new te(n,[]))}(t,e),i=new l.X([new Dt("",{})]),s=new l.X({}),r=new l.X({}),o=new l.X({}),a=new l.X(""),c=new se(i,s,o,a,r,pt,e,n.root);return c.snapshot=n.root,new ne(new te(c,[]),n)}class se{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}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((0,j.U)(t=>mt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,j.U)(t=>mt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function re(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class oe{constructor(t,e,n,i,s,r,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}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=mt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ae extends Qt{constructor(t,e){super(e),this.url=t,le(this,e)}toString(){return ce(this._root)}}function le(t,e){e.value._routerState=t,e.children.forEach(e=>le(t,e))}function ce(t){const e=t.children.length>0?` { ${t.children.map(ce).join(", ")} } `:"";return`${t.value}${e}`}function ue(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,bt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),bt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nbt(t.parameters,e[n].parameters))}(t.url,e.url)&&!(!t.parent!=!e.parent)&&(!t.parent||he(t.parent,e.parent))}function de(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return de(t,e,i);return de(t,e)})}(t,e,n);return new te(i,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return pe(e,t),t}}const n=function(t){return new se(new l.X(t.url),new l.X(t.params),new l.X(t.queryParams),new l.X(t.fragment),new l.X(t.data),t.outlet,t.component,t)}(e.value),i=e.children.map(e=>de(t,e));return new te(n,i)}}function pe(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new It(n.root===t?e:_e(n.root,t,e),r,s)}function _e(t,e,n){const i={};return xt(t.children,(t,s)=>{i[s]=t===e?n:_e(t,e,n)}),new Rt(t.segments,i)}class ye{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&fe(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(me);if(i&&i!==Ct(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class be{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function ve(t,e,n){if(t||(t=new Rt([],{})),0===t.segments.length&&t.hasChildren())return we(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return r;const e=t.segments[s],o=n[i];if(me(o))break;const a=`${o}`,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!Se(a,l,e))return r;i+=2}else{if(!Se(a,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(s[i]=ve(t.children[i],e,n))}),xt(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new Rt(t.segments,s)}}function Ce(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=Ce(new Rt([],{}),0,t))}),e}function Ee(t){const e={};return xt(t,(t,n)=>e[n]=`${t}`),e}function Se(t,e,n){return t==n.path&&bt(e,n.parameters)}class ke{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),ue(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=ee(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),xt(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,s=ee(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=ee(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new ht(t.value.snapshot))}),t.children.length&&this.forwardEvent(new ct(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(ue(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Oe(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Oe(t){ue(t.value),t.children.forEach(Oe)}class Te{constructor(t,e){this.routes=t,this.module=e}}function Ae(t){return"function"==typeof t}function Pe(t){return t instanceof It}const Ie=Symbol("INITIAL_VALUE");function Re(){return(0,V.w)(t=>(0,c.aj)(t.map(t=>t.pipe((0,N.q)(1),(0,H.O)(Ie)))).pipe(_((t,e)=>{let n=!1;return e.reduce((t,i,s)=>t!==Ie?t:(i===Ie&&(n=!0),n||!1!==i&&s!==e.length-1&&!Pe(i)?t:i),t)},Ie),(0,E.h)(t=>t!==Ie),(0,j.U)(t=>Pe(t)?t:!0===t),(0,N.q)(1)))}let De=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[Rn]},encapsulation:2}),t})();function Me(t,e=""){for(let n=0;nBe(t)===e);return n.push(...t.filter(t=>Be(t)!==e)),n}const Ze={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function qe(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Ze):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||yt)(n,t,e);if(!s)return Object.assign({},Ze);const r={};xt(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function je(t,e,n,i,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Ve(t,e,n)&&Be(n)!==pt)}(t,n,i)){const s=new Rt(e,function(t,e,n,i){const s={};s[pt]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&Be(r)!==pt){const n=new Rt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Be(r)]=n}return s}(t,e,i,new Rt(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Ve(t,e,n))}(t,n,i)){const r=new Rt(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(Ve(t,n,a)&&!s[Be(a)]){const n=new Rt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Be(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Rt(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Ve(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function He(t,e,n,i){return!!(Be(t)===i||i!==pt&&Ve(e,n,t))&&("**"===t.path||qe(e,t,n).matched)}function ze(t,e,n){return 0===e.length&&!t.children[n]}class Ye{constructor(t){this.segmentGroup=t||null}}class Ge{constructor(t){this.urlTree=t}}function Ke(t){return new u.y(e=>e.error(new Ye(t)))}function $e(t){return new u.y(e=>e.error(new Ge(t)))}function We(t){return new u.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Qe{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=je(this.urlTree.root,[],[],this.config).segmentGroup,e=new Rt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,pt).pipe((0,j.U)(t=>this.createUrlTree(Je(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(w(t=>{if(t instanceof Ge)return this.allowRedirects=!1,this.match(t.urlTree);throw t instanceof Ye?this.noMatchError(t):t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,pt).pipe((0,j.U)(e=>this.createUrlTree(Je(e),t.queryParams,t.fragment))).pipe(w(t=>{throw t instanceof Ye?this.noMatchError(t):t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Rt([],{[pt]:t}):t;return new It(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,j.U)(t=>new Rt([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const s of Object.keys(n.children))"primary"===s?i.unshift(s):i.push(s);return(0,o.D)(i).pipe((0,z.b)(i=>{const s=n.children[i],r=Ue(e,i);return this.expandSegmentGroup(t,r,s,i).pipe((0,j.U)(t=>({segment:t,outlet:i})))}),_((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,E.h)((e,n)=>t(e,n,i)):F.y,k(1),n?D(e):A(()=>new r))}())}expandSegment(t,e,n,i,s,l){return(0,o.D)(n).pipe((0,z.b)(r=>this.expandSegmentAgainstRoute(t,e,n,r,i,s,l).pipe(w(t=>{if(t instanceof Ye)return(0,a.of)(null);throw t}))),B(t=>!!t),w((t,n)=>{if(t instanceof r||"EmptyError"===t.name){if(ze(e,i,s))return(0,a.of)(new Rt([],{}));throw new Ye(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return He(i,e,s,r)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):Ke(e):Ke(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?$e(s):this.lineralizeSegments(n,s).pipe((0,Y.zg)(n=>{const s=new Rt(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=qe(e,i,s);if(!o)return Ke(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?$e(u):this.lineralizeSegments(i,u).pipe((0,Y.zg)(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,a.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,j.U)(t=>(n._loadedConfig=t,new Rt(i,{})))):(0,a.of)(new Rt(i,{}));const{matched:r,consumedSegments:o,lastChild:l}=qe(e,n,i);if(!r)return Ke(e);const c=i.slice(l);return this.getChildConfig(t,n,i).pipe((0,Y.zg)(t=>{const i=t.module,r=t.routes,{segmentGroup:l,slicedSegments:u}=je(e,o,c,r),h=new Rt(l.segments,l.children);if(0===u.length&&h.hasChildren())return this.expandChildren(i,r,h).pipe((0,j.U)(t=>new Rt(o,t)));if(0===r.length&&0===u.length)return(0,a.of)(new Rt(o,{}));const d=Be(n)===s;return this.expandSegment(i,h,r,u,d?pt:s,!0).pipe((0,j.U)(t=>new Rt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?(0,a.of)(new Te(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,a.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,Y.zg)(n=>{return n?this.configLoader.load(t.injector,e).pipe((0,j.U)(t=>(e._loadedConfig=t,t))):(i=e,new u.y(t=>t.error(_t(`Cannot load children because the guard of the route "path: '${i.path}'" returned false`))));var i})):(0,a.of)(new Te([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return(0,a.of)(!0);const s=i.map(i=>{const s=t.get(i);let r;if((o=s)&&Ae(o.canLoad))r=s.canLoad(e,n);else{if(!Ae(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}var o;return Et(r)});return(0,a.of)(s).pipe(Re(),(0,G.b)(t=>{if(!Pe(t))return;const e=_t(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,j.U)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,a.of)(n);if(i.numberOfChildren>1||!i.children[pt])return We(t.redirectTo);i=i.children[pt]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new It(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return xt(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return xt(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new Rt(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function Je(t){const e={};for(const n of Object.keys(t.children)){const i=Je(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children[pt]){const e=t.children[pt];return new Rt(t.segments.concat(e.segments),e.children)}return t}(new Rt(t.segments,e))}class Xe{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class tn{constructor(t,e){this.component=t,this.route=e}}function en(t,e,n){const i=t._root;return sn(i,e?e._root:null,n,[i.value])}function nn(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function sn(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=ee(e);return t.children.forEach(t=>{(function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Mt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Mt(t.url,e.url)||!bt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!he(t,e)||!bt(t.queryParams,e.queryParams);case"paramsChange":default:return!he(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Xe(i)):(r.data=o.data,r._resolvedData=o._resolvedData),sn(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new tn(a.outlet.component,o))}else o&&rn(e,a,s),s.canActivateChecks.push(new Xe(i)),sn(t,null,r.component?a?a.children:null:n,i,s)})(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),xt(r,(t,e)=>rn(t,n.getContext(e),s)),s}function rn(t,e,n){const i=ee(t),s=t.value;xt(i,(t,i)=>{rn(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new tn(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class on{}function an(t){return new u.y(e=>e.error(t))}class ln{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=je(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,pt);if(null===e)return null;const n=new oe([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},pt,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new te(n,e),s=new ae(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=re(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const i=e.children[s],r=Ue(t,s),o=this.processSegmentGroup(r,i,s);if(null===o)return null;n.push(...o)}const i=un(n);return i.sort((t,e)=>t.value.outlet===pt?-1:e.value.outlet===pt?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,i);if(null!==t)return t}return ze(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!He(t,e,n,i))return null;let s,r=[],o=[];if("**"===t.path){const i=n.length>0?Ct(n).parameters:{};s=new oe(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,pn(t),Be(t),t.component,t,hn(e),dn(e)+n.length,fn(t))}else{const i=qe(e,t,n);if(!i.matched)return null;r=i.consumedSegments,o=n.slice(i.lastChild),s=new oe(r,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,pn(t),Be(t),t.component,t,hn(e),dn(e)+r.length,fn(t))}const a=(u=t).children?u.children:u.loadChildren?u._loadedConfig.routes:[],{segmentGroup:l,slicedSegments:c}=je(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);var u;if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new te(s,t)]}if(0===a.length&&0===c.length)return[new te(s,[])];const h=Be(t)===i,d=this.processSegment(a,l,c,h?pt:i);return null===d?null:[new te(s,d)]}}function cn(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function un(t){const e=[],n=new Set;for(const i of t){if(!cn(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=un(i.children);e.push(new te(i.value,t))}return e.filter(t=>!n.has(t))}function hn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function dn(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function pn(t){return t.data||{}}function fn(t){return t.resolve||{}}function mn(t){return(0,V.w)(e=>{const n=t(e);return n?(0,o.D)(n).pipe((0,j.U)(()=>e)):(0,a.of)(e)})}class gn extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const _n=new s.OlP("ROUTES");class yn{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe((0,j.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new Te(wt(i.injector.get(_n,void 0,s.XFs.Self|s.XFs.Optional)).map(Ne),i)}),w(t=>{throw e._loader$=void 0,t}));return e._loader$=new f.c(n,()=>new m.xQ).pipe((0,K.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):Et(t()).pipe((0,Y.zg)(t=>t instanceof s.YKP?(0,a.of)(t):(0,o.D)(this.compiler.compileModuleAsync(t))))}}class bn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new vn,this.attachRef=null}}class vn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new bn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class wn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Cn(t){throw t}function xn(t,e,n){return e.parse("/")}function En(t,e){return(0,a.of)(null)}const Sn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},kn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let On=(()=>{class t{constructor(t,e,n,i,r,o,a,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new m.xQ,this.errorHandler=Cn,this.malformedUriErrorHandler=xn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:En,afterPreactivation:En},this.urlHandlingStrategy=new wn,this.routeReuseStrategy=new gn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=r.get(s.h0i),this.console=r.get(s.c2e);const u=r.get(s.R0b);this.isNgZoneEnabled=u instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new It(new Rt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new yn(o,a,t=>this.triggerEvent(new ot(t)),t=>this.triggerEvent(new at(t))),this.routerState=ie(this.currentUrlTree,this.rootComponentType),this.transitions=new l.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe((0,E.h)(t=>0!==t.id),(0,j.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,V.w)(t=>{let n=!1,i=!1;return(0,a.of)(t).pipe((0,G.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,V.w)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString(),s=("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl);if(Tn(t.source)&&(this.browserUrlTree=t.rawUrl),s)return(0,a.of)(t).pipe((0,V.w)(t=>{const n=this.transitions.getValue();return e.next(new Q(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?p.E:Promise.resolve(t)}),function(t,e,n,i){return(0,V.w)(s=>function(t,e,n,i,s){return new Qe(t,e,n,i,s).apply()}(t,e,n,s.extractedUrl,i).pipe((0,j.U)(t=>Object.assign(Object.assign({},s),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,G.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,s,r){return(0,Y.zg)(o=>function(t,e,n,s,r="emptyOnly",o="legacy"){try{const i=new ln(t,e,n,s,r,o).recognize();return null===i?an(new on):(0,a.of)(i)}catch(i){return an(i)}}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),s,r).pipe((0,j.U)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,G.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new et(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,l=new Q(n,this.serializeUrl(i),s,r);e.next(l);const c=ie(i,this.rootComponentType).snapshot;return(0,a.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.E}),mn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),(0,G.b)(t=>{const e=new nt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,j.U)(t=>Object.assign(Object.assign({},t),{guards:en(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,Y.zg)(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:l}}=n;return 0===l.length&&0===r.length?(0,a.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return(0,o.D)(t).pipe((0,Y.zg)(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return(0,a.of)(!0);const o=r.map(r=>{const o=nn(r,e,s);let a;if(function(t){return t&&Ae(t.canDeactivate)}(o))a=Et(o.canDeactivate(t,e,n,i));else{if(!Ae(o))throw new Error("Invalid CanDeactivate guard");a=Et(o(t,e,n,i))}return a.pipe(B())});return(0,a.of)(o).pipe(Re())}(t.component,t.route,n,e,i)),B(t=>!0!==t,!0))}(l,i,s,t).pipe((0,Y.zg)(n=>n&&function(t){return"boolean"==typeof t}(n)?function(t,e,n,i){return(0,o.D)(e).pipe((0,z.b)(e=>(0,h.z)(function(t,e){return null!==t&&e&&e(new lt(t)),(0,a.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new ut(t)),(0,a.of)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>(0,d.P)(()=>{const s=e.guards.map(s=>{const r=nn(s,e.node,n);let o;if(function(t){return t&&Ae(t.canActivateChild)}(r))o=Et(r.canActivateChild(i,t));else{if(!Ae(r))throw new Error("Invalid CanActivateChild guard");o=Et(r(i,t))}return o.pipe(B())});return(0,a.of)(s).pipe(Re())}));return(0,a.of)(s).pipe(Re())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return(0,a.of)(!0);const s=i.map(i=>(0,d.P)(()=>{const s=nn(i,e,n);let r;if(function(t){return t&&Ae(t.canActivate)}(s))r=Et(s.canActivate(e,t));else{if(!Ae(s))throw new Error("Invalid CanActivate guard");r=Et(s(e,t))}return r.pipe(B())}));return(0,a.of)(s).pipe(Re())}(t,e.route,n))),B(t=>!0!==t,!0))}(i,r,t,e):(0,a.of)(n)),(0,j.U)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,G.b)(t=>{if(Pe(t.guardsResult)){const e=_t(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new it(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,E.h)(t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1)),mn(t=>{if(t.guards.canActivateChecks.length)return(0,a.of)(t).pipe((0,G.b)(t=>{const e=new st(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,V.w)(t=>{let e=!1;return(0,a.of)(t).pipe(function(t,e){return(0,Y.zg)(n=>{const{targetSnapshot:i,guards:{canActivateChecks:s}}=n;if(!s.length)return(0,a.of)(n);let r=0;return(0,o.D)(s).pipe((0,z.b)(n=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return(0,a.of)({});const r={};return(0,o.D)(s).pipe((0,Y.zg)(s=>function(t,e,n,i){const s=nn(t,e,i);return Et(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe((0,G.b)(t=>{r[s]=t}))),k(1),(0,Y.zg)(()=>Object.keys(r).length===s.length?(0,a.of)(r):p.E))}(t._resolve,t,e,i).pipe((0,j.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),re(t,n).resolve),null)))}(n.route,i,t,e)),(0,G.b)(()=>r++),k(1),(0,Y.zg)(t=>r===s.length?(0,a.of)(n):p.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,G.b)({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}))}),(0,G.b)(t=>{const e=new rt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),mn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),(0,j.U)(t=>{const e=function(t,e,n){const i=de(t,e._root,n?n._root:void 0);return new ne(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,G.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),((t,e,n)=>(0,j.U)(i=>(new ke(e,i.targetRouterState,i.currentRouterState,n).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,t=>this.triggerEvent(t)),(0,G.b)({next(){n=!0},complete(){n=!0}}),function(t){return e=>e.lift(new Z(t))}(()=>{if(!n&&!i){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}this.currentNavigation=null}),w(n=>{if(i=!0,function(t){return t&&t[gt]}(n)){const i=Pe(n.url);i||(this.navigated=!0,this.restoreHistory(t,!0));const s=new X(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),i={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Tn(t.source)};this.scheduleNavigation(e,"imperative",null,i,{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.restoreHistory(t,!0);const i=new tt(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}return p.E}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return e.transitionId!==t.transitionId||!n||!("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Me(t),this.config=t.map(Ne),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(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,s){if(0===n.length)return ge(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ye(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return xt(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new ye(n,e,i)}(n);if(r.toRoot())return ge(e.root,new Rt([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new be(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new be(t,t===e.root,0)}const i=fe(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new be(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?we(o.segmentGroup,o.index,r.commands):ve(o.segmentGroup,o.index,r.commands);return ge(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Pe(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new J(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){var r,o;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l=Tn(e)&&a&&!Tn(a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&c)return Promise.resolve(!0);let u,h,d;s?(u=s.resolve,h=s.reject,d=s.promise):d=new Promise((t,e)=>{u=t,h=e});const p=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.\u0275routerPageId?n.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(r=this.browserPageId)&&void 0!==r?r:0:(null!==(o=this.browserPageId)&&void 0!==o?o:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:u,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}restoreHistory(t,e=!1){var n,i;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new X(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(Lt),s.LFG(vn),s.LFG(i.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Tn(t){return"imperative"!==t}let An=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new m.xQ,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(On),s.Y36(se),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})(),Pn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new m.xQ,this.subscription=t.events.subscribe(t=>{t instanceof J&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,s){if(0!==t||e||n||i||s||"string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(On),s.Y36(se),s.Y36(i.S$))},t.\u0275dir=s.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Ikx("href",e.href,s.LSH),s.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})();function In(t){return""===t||!!t}let Rn=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=i||pt,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.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 t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new Dn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(vn),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Dn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===se?this.route:t===vn?this.childContexts:this.parent.get(t,e)}}class Mn{}class Ln{preload(t,e){return(0,a.of)(null)}}let Fn=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new yn(e,n,e=>t.triggerEvent(new ot(e)),e=>t.triggerEvent(new at(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,E.h)(t=>t instanceof J),(0,z.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return(0,o.D)(n).pipe((0,$.J)(),(0,j.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,a.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,Y.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(On),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(Mn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Nn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Q?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof J&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof dt&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new dt(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(On),s.LFG(i.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Bn=new s.OlP("ROUTER_CONFIGURATION"),Un=new s.OlP("ROUTER_FORROOT_GUARD"),Zn=[i.Ye,{provide:Lt,useClass:Ft},{provide:On,useFactory:function(t,e,n,i,s,r,o,a={},l,c){const u=new On(null,t,e,n,i,s,r,wt(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[Lt,vn,i.Ye,s.zs3,s.v3s,s.Sil,_n,Bn,[class{},new s.FiY],[class{},new s.FiY]]},vn,{provide:se,useFactory:function(t){return t.routerState.root},deps:[On]},{provide:s.v3s,useClass:s.EAV},Fn,Ln,class{preload(t,e){return e().pipe(w(()=>(0,a.of)(null)))}},{provide:Bn,useValue:{enableTracing:!1}}];function qn(){return new s.PXZ("Router",On)}let jn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Zn,Yn(e),{provide:Un,useFactory:zn,deps:[[On,new s.FiY,new s.tp0]]},{provide:Bn,useValue:n||{}},{provide:i.S$,useFactory:Hn,deps:[i.lw,[new s.tBr(i.mr),new s.FiY],Bn]},{provide:Nn,useFactory:Vn,deps:[On,i.EM,Bn]},{provide:Mn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ln},{provide:s.PXZ,multi:!0,useFactory:qn},[Gn,{provide:s.ip1,multi:!0,useFactory:Kn,deps:[Gn]},{provide:Wn,useFactory:$n,deps:[Gn]},{provide:s.tb,multi:!0,useExisting:Wn}]]}}static forChild(e){return{ngModule:t,providers:[Yn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Un,8),s.LFG(On,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function Vn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Nn(t,e,n)}function Hn(t,e,n={}){return n.useHash?new i.Do(t,e):new i.b0(t,e)}function zn(t){return"guarded"}function Yn(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:_n,multi:!0,useValue:t}]}let Gn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new m.xQ}appInitializer(){return this.injector.get(i.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(On),i=this.injector.get(Bn);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,a.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Bn),n=this.injector.get(Fn),i=this.injector.get(Nn),r=this.injector.get(On),o=this.injector.get(s.z2F);t===o.components[0]&&(("enabledNonBlocking"===e.initialNavigation||void 0===e.initialNavigation)&&r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Kn(t){return t.appInitializer.bind(t)}function $n(t){return t.bootstrapListener.bind(t)}const Wn=new s.OlP("Router Initializer")},6215:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});var i=n(9765),s=n(7971);class r extends i.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(t){super.next(this._value=t)}}},1593:function(t,e,n){"use strict";n.d(e,{P:function(){return o}});var i=n(9193),s=n(5917),r=n(7574);class o{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return t=this.error,new r.y(e=>e.error(t));case"C":return(0,i.c)()}var t;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new o("N",t):o.undefinedValueNotification}static createError(t){return new o("E",void 0,t)}static createComplete(){return o.completeNotification}}o.completeNotification=new o("C"),o.undefinedValueNotification=new o("N",void 0)},7574:function(t,e,n){"use strict";n.d(e,{y:function(){return c}});var i=n(7393),s=n(9181),r=n(6490),o=n(6554),a=n(4487);var l=n(2494);let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof i.L)return t;if(t[s.b])return t[s.b]()}return t||e||n?new i.L(t,e,n):new i.L(r.c)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof i.L?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.L](){return this}pipe(...t){return 0===t.length?this:function(t){return 0===t.length?a.y:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}(t)(this)}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=l.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},6490:function(t,e,n){"use strict";n.d(e,{c:function(){return r}});var i=n(2494),s=n(4449);const r={closed:!0,next(t){},error(t){if(i.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},9765:function(t,e,n){"use strict";n.d(e,{Yc:function(){return c},xQ:function(){return u}});var i=n(7574),s=n(7393),r=n(5319),o=n(7971),a=n(8858),l=n(9181);class c extends s.L{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends i.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.b](){return new c(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.N;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;snew h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):r.w.EMPTY}}},8858:function(t,e,n){"use strict";n.d(e,{W:function(){return s}});var i=n(5319);class s extends i.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},7393:function(t,e,n){"use strict";n.d(e,{L:function(){return c}});var i=n(9105),s=n(6490),r=n(5319),o=n(9181),a=n(2494),l=n(4449);class c extends r.w{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.b](){return this}static create(t,e,n){const i=new c(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends c{constructor(t,e,n,r){super(),this._parentSubscriber=t;let o,a=this;(0,i.m)(e)?o=e:e&&(o=e.next,n=e.error,r=e.complete,e!==s.c&&(a=Object.create(e),(0,i.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.v;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,l.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,l.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw n;(0,l.z)(n)}}__tryOrSetError(t,e,n){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):((0,l.z)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},5319:function(t,e,n){"use strict";n.d(e,{w:function(){return a}});var i=n(9796),s=n(1555),r=n(9105);const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class a{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof a)e.remove(this);else if(null!==e)for(let i=0;it.concat(e instanceof o?e.errors:e),[])}a.EMPTY=((l=new a).closed=!0,l)},2494:function(t,e,n){"use strict";n.d(e,{v:function(){return s}});let i=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},5345:function(t,e,n){"use strict";n.d(e,{IY:function(){return o},Ds:function(){return a},ft:function(){return l}});var i=n(7393),s=n(7574),r=n(7444);class o extends i.L{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends i.L{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function l(t,e){if(e.closed)return;if(t instanceof s.y)return t.subscribe(e);let n;try{n=(0,r.s)(t)(e)}catch(i){e.error(i)}return n}},2441:function(t,e,n){"use strict";n.d(e,{c:function(){return a},N:function(){return l}});var i=n(9765),s=n(7574),r=n(5319),o=n(1307);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new r.w,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed&&(this._connection=null,t=r.w.EMPTY)),t}refCount(){return(0,o.x)()(this)}}const l=(()=>{const t=a.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 c extends i.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},739:function(t,e,n){"use strict";n.d(e,{aj:function(){return p}});var i=n(4869),s=n(9796),r=n(7393);class o extends r.L{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class a extends r.L{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var l=n(7444),c=n(7574);function u(t,e,n,i,s=new a(t,n,i)){if(!s.closed)return e instanceof c.y?e.subscribe(s):(0,l.s)(e)(s)}var h=n(6693);const d={};function p(...t){let e,n;return(0,i.K)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,h.n)(t,n).lift(new f(e))}class f{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new m(t,this.resultSelector))}}class m extends o{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(d),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{let n;try{n=t()}catch(i){return void e.error(i)}return(n?(0,s.D)(n):(0,r.c)()).subscribe(e)})}},9193:function(t,e,n){"use strict";n.d(e,{E:function(){return s},c:function(){return r}});var i=n(7574);const s=new i.y(t=>t.complete());function r(t){return t?function(t){return new i.y(e=>t.schedule(()=>e.complete()))}(t):s}},4402:function(t,e,n){"use strict";n.d(e,{D:function(){return h}});var i=n(7574),s=n(7444),r=n(5319),o=n(6554),a=n(4087),l=n(377),c=n(4072),u=n(9489);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.L]}(t))return function(t,e){return new i.y(n=>{const i=new r.w;return i.add(e.schedule(()=>{const s=t[o.L]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if((0,c.t)(t))return function(t,e){return new i.y(n=>{const i=new r.w;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if((0,u.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[l.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.y(n=>{const i=new r.w;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[l.hZ](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.y?t:new i.y((0,s.s)(t))}},6693:function(t,e,n){"use strict";n.d(e,{n:function(){return o}});var i=n(7574),s=n(5015),r=n(4087);function o(t,e){return e?(0,r.r)(t,e):new i.y((0,s.V)(t))}},2759:function(t,e,n){"use strict";n.d(e,{R:function(){return a}});var i=n(7574),s=n(9796),r=n(9105),o=n(8002);function a(t,e,n,c){return(0,r.m)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe((0,o.U)(t=>(0,s.k)(t)?c(...t):c(t))):new i.y(i=>{l(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function l(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.y?t[0]:(0,r.J)(e)((0,o.n)(t,n))}},5917:function(t,e,n){"use strict";n.d(e,{of:function(){return o}});var i=n(4869),s=n(6693),r=n(4087);function o(...t){let e=t[t.length-1];return(0,i.K)(e)?(t.pop(),(0,r.r)(t,e)):(0,s.n)(t)}},628:function(t,e,n){"use strict";n.d(e,{e:function(){return h}});var i=n(3637),s=n(5345);class r{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new o(t,this.durationSelector))}}class o extends s.Ds{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=(0,s.ft)(n,new s.IY(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,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(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n(7574),l=n(6561),c=n(4869);function u(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function h(t,e=i.P){return function(t){return function(e){return e.lift(new r(t))}}(()=>function(t=0,e,n){let s=-1;return(0,l.k)(e)?s=Number(e)<1?1:Number(e):(0,c.K)(e)&&(n=e),(0,c.K)(n)||(n=i.P),new a.y(e=>{const i=(0,l.k)(t)?t:+t-n.now();return n.schedule(u,i,{index:0,period:s,subscriber:e})})}(t,e))}},4612:function(t,e,n){"use strict";n.d(e,{b:function(){return s}});var i=n(9773);function s(t,e){return(0,i.zg)(t,e,1)}},4395:function(t,e,n){"use strict";n.d(e,{b:function(){return r}});var i=n(7393),s=n(3637);function r(t,e=s.P){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.L{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},7519:function(t,e,n){"use strict";n.d(e,{x:function(){return s}});var i=n(7393);function s(t,e){return n=>n.lift(new r(t,e))}class r{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends i.L{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},5435:function(t,e,n){"use strict";n.d(e,{h:function(){return s}});var i=n(7393);function s(t,e){return function(n){return n.lift(new r(t,e))}}class r{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},8002:function(t,e,n){"use strict";n.d(e,{U:function(){return s}});var i=n(7393);function s(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new r(t,e))}}class r{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},3282:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});var i=n(9773),s=n(4487);function r(t=Number.POSITIVE_INFINITY){return(0,i.zg)(s.y,t)}},9773:function(t,e,n){"use strict";n.d(e,{zg:function(){return o}});var i=n(8002),s=n(4402),r=n(5345);function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(o((n,r)=>(0,s.D)(t(n,r)).pipe((0,i.U)((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends r.Ds{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1307:function(t,e,n){"use strict";n.d(e,{x:function(){return s}});var i=n(7393);function s(){return function(t){return t.lift(new r(t))}}class r{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new o(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class o extends i.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}},3653:function(t,e,n){"use strict";n.d(e,{T:function(){return s}});var i=n(7393);function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.total=t}call(t,e){return e.subscribe(new o(t,this.total))}}class o extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},9761:function(t,e,n){"use strict";n.d(e,{O:function(){return r}});var i=n(8071),s=n(4869);function r(...t){const e=t[t.length-1];return(0,s.K)(e)?(t.pop(),n=>(0,i.z)(t,n,e)):e=>(0,i.z)(t,e)}},3190:function(t,e,n){"use strict";n.d(e,{w:function(){return o}});var i=n(8002),s=n(4402),r=n(5345);function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,r)=>(0,s.D)(t(n,r)).pipe((0,i.U)((t,i)=>e(n,t,r,i))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends r.Ds{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new r.IY(this),i=this.destination;i.add(n),this.innerSubscription=(0,r.ft)(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},5257:function(t,e,n){"use strict";n.d(e,{q:function(){return o}});var i=n(7393),s=n(7108),r=n(9193);function o(t){return e=>0===t?(0,r.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},6782:function(t,e,n){"use strict";n.d(e,{R:function(){return s}});var i=n(5345);function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.notifier=t}call(t,e){const n=new o(t),s=(0,i.ft)(this.notifier,new i.IY(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class o extends i.Ds{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},3342:function(t,e,n){"use strict";n.d(e,{b:function(){return o}});var i=n(7393);function s(){}var r=n(9105);function o(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends i.L{constructor(t,e,n,i){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=n||s,this._tapComplete=i||s,(0,r.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},4087:function(t,e,n){"use strict";n.d(e,{r:function(){return r}});var i=n(7574),s=n(5319);function r(t,e){return new i.y(n=>{const i=new s.w;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},6465:function(t,e,n){"use strict";n.d(e,{o:function(){return r}});var i=n(5319);class s extends i.w{constructor(t,e){super()}schedule(t,e=0){return this}}class r extends s{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},6102:function(t,e,n){"use strict";n.d(e,{v:function(){return s}});let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class s extends i{constructor(t,e=i.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},4581:function(t,e,n){"use strict";n.d(e,{E:function(){return u}});let i=1;const s=Promise.resolve(),r={};function o(t){return t in r&&(delete r[t],!0)}const a={setImmediate(t){const e=i++;return r[e]=!0,s.then(()=>o(e)&&t()),e},clearImmediate(t){o(t)}};var l=n(6465),c=n(6102);const u=new class extends c.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}})},3637:function(t,e,n){"use strict";n.d(e,{P:function(){return s}});var i=n(6465);const s=new(n(6102).v)(i.o)},377:function(t,e,n){"use strict";n.d(e,{hZ:function(){return i}});const i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:function(t,e,n){"use strict";n.d(e,{W:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},7971:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4449:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,{z:function(){return i}})},4487:function(t,e,n){"use strict";function i(t){return t}n.d(e,{y:function(){return i}})},9796:function(t,e,n){"use strict";n.d(e,{k:function(){return i}});const i=Array.isArray||(t=>t&&"number"==typeof t.length)},9489:function(t,e,n){"use strict";n.d(e,{z:function(){return i}});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},9105:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,{m:function(){return i}})},6561:function(t,e,n){"use strict";n.d(e,{k:function(){return s}});var i=n(9796);function s(t){return!(0,i.k)(t)&&t-parseFloat(t)+1>=0}},1555:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,{K:function(){return i}})},5639:function(t,e,n){"use strict";n.d(e,{b:function(){return s}});var i=n(7574);function s(t){return!!t&&(t instanceof i.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},4072:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:function(){return i}})},4869:function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,{K:function(){return i}})},7444:function(t,e,n){"use strict";n.d(e,{s:function(){return u}});var i=n(5015),s=n(4449),r=n(377),o=n(6554),a=n(9489),l=n(4072),c=n(1555);const u=t=>{if(t&&"function"==typeof t[o.L])return(t=>e=>{const n=t[o.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if((0,a.z)(t))return(0,i.V)(t);if((0,l.t)(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,s.z),e))(t);if(t&&"function"==typeof t[r.hZ])return(t=>e=>{const n=t[r.hZ]();for(;;){let t;try{t=n.next()}catch(i){return e.error(i),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const e=`You provided ${(0,c.K)(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}}},5015:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});const i=t=>e=>{for(let n=0,i=t.length;n{class t{constructor(t){this.sanitizer=t}transform(t,e){return t=(t=(t=t.replace(/<\s*script\s*/gi,"")).replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,"")).replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s.H7,16))},t.\u0275pipe=i.Yjl({name:"safeHtml",type:t,pure:!0}),t})()},3183:function(t,e,n){"use strict";n.d(e,{h:function(){return y}});var i=n(2238),s=n(7574),r=n(3637),o=n(6561);function a(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var l=n(3018),c=n(8583),u=n(1095),h=n(7918),d=n(6498);function p(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().close()}),l.TgZ(1,"uds-translate"),l._uU(2,"Close"),l.qZA(),l._uU(3),l.qZA()}if(2&t){const t=l.oxw();l.xp6(3),l.Oqu(t.extra)}}function f(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().yes()}),l.TgZ(1,"uds-translate"),l._uU(2,"Yes"),l.qZA(),l.qZA()}}function m(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().no()}),l.TgZ(1,"uds-translate"),l._uU(2,"No"),l.qZA(),l.qZA()}}var g=(()=>{return(t=g||(g={}))[t.alert=0]="alert",t[t.yesno=1]="yesno",g;var t})();let _=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.subscription=null,this.resetCallbacks(),this.yesno=new s.y(t=>{this.yes=()=>{t.next(!0),t.complete()},this.no=()=>{t.next(!1),t.complete()},this.close=()=>{this.doClose(),t.next(!1),t.complete()};const e=this;return{unsubscribe:()=>e.resetCallbacks()}})}resetCallbacks(){this.yes=this.no=()=>this.close(),this.close=()=>this.doClose()}closed(){null!==this.subscription&&this.subscription.unsubscribe()}doClose(){this.dialogRef.close()}setExtra(t){this.extra=" ("+Math.floor(t/1e3)+" "+django.gettext("seconds")+") "}initAlert(){this.data.autoclose>0?(this.dialogRef.afterClosed().subscribe(t=>{this.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(t=0,e=r.P){return(!(0,o.k)(t)||t<0)&&(t=0),(!e||"function"!=typeof e.schedule)&&(e=r.P),new s.y(n=>(n.add(e.schedule(a,t,{subscriber:n,counter:0,period:t})),n))}(1e3).subscribe(t=>{const e=this.data.autoclose-1e3*(t+1);this.setExtra(e),e<=0&&this.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(t=>{this.closed()}),this.subscription=this.data.checkClose.subscribe(t=>{window.setTimeout(()=>{this.doClose()})}))}initYesNo(){}ngOnInit(){this.data.type===g.yesno?this.initYesNo():this.initAlert()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(i.so),l.Y36(i.WI))},t.\u0275cmp=l.Xpm({type:t,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"]],template:function(t,e){1&t&&(l._UZ(0,"h4",0),l.ALo(1,"safeHtml"),l._UZ(2,"mat-dialog-content",1),l.ALo(3,"safeHtml"),l.TgZ(4,"mat-dialog-actions"),l.YNc(5,p,4,1,"button",2),l.YNc(6,f,3,0,"button",2),l.YNc(7,m,3,0,"button",2),l.qZA()),2&t&&(l.Q6J("innerHtml",l.lcZ(1,5,e.data.title),l.oJD),l.xp6(2),l.Q6J("innerHTML",l.lcZ(3,7,e.data.body),l.oJD),l.xp6(3),l.Q6J("ngIf",0===e.data.type),l.xp6(1),l.Q6J("ngIf",1===e.data.type),l.xp6(1),l.Q6J("ngIf",1===e.data.type))},directives:[i.uh,i.xY,i.H8,c.O5,u.lW,i.ZT,h.P],pipes:[d.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t})(),y=(()=>{class t{constructor(t){this.dialog=t}alert(t,e,n=0,i=null){const s=window.innerWidth<800?"80%":"40%";return this.dialog.open(_,{width:s,data:{title:t,body:e,autoclose:n,checkClose:i,type:g.alert},disableClose:!0})}yesno(t,e){const n=window.innerWidth<800?"80%":"40%";return this.dialog.open(_,{width:n,data:{title:t,body:e,type:g.yesno},disableClose:!0}).componentInstance.yesno}}return t.\u0275fac=function(e){return new(e||t)(l.LFG(i.uw))},t.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac}),t})()},2870:function(t,e,n){"use strict";n.d(e,{S:function(){return s}});var i=n(7574);let s=(()=>{class t{constructor(t){this.api=t,this.delay=t.config.launcher_wait_time}launchURL(e){let n="init";const s=t=>{let e=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof t?e=t:403===t.status&&(e=django.gettext("Your session has expired. Please, login again")),window.setTimeout(()=>{this.showAlert(django.gettext("Error"),e,5e3),403===t.status&&window.setTimeout(()=>{this.api.logout()},5e3)})};if("udsa://"===e.substring(0,7)){const t=e.split("//")[1].split("/"),r=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new i.y(e=>{let i=0;const o=()=>{r.componentInstance&&this.api.status(t[0],t[1]).subscribe(t=>{"ready"===t.status?(i?Date.now()-i>5*this.delay&&(r.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),r.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(i=Date.now(),r.componentInstance.data.title=django.gettext("Service ready"),r.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(o,this.delay)):"accessed"===t.status?(r.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),e.next(!0),e.complete()):"running"===t.status?window.setTimeout(o,this.delay):(e.next(!0),e.complete(),s())},t=>{e.next(!0),e.complete(),s(t)})},a=()=>{if("init"===n)window.setTimeout(a,this.delay);else{if("error"===n||"stop"===n)return;window.setTimeout(o)}};window.setTimeout(a)}));this.api.enabler(t[0],t[1]).subscribe(t=>{if(t.error)n="error",this.api.gui.alert(django.gettext("Error launching service"),t.error);else{if(t.url.startsWith("/"))return r.componentInstance&&r.componentInstance.close(),n="stop",void this.launchURL(t.url);"https:"===window.location.protocol&&(t.url=t.url.replace("uds://","udss://")),n="enabled",this.doLaunch(t.url)}},t=>{this.api.logout()})}else{const n=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new i.y(i=>{const r=()=>{n.componentInstance&&this.api.transportUrl(e).subscribe(e=>{if(e.url)if(i.next(!0),i.complete(),-1!==e.url.indexOf("o_s_w=")){const t=/(.*)&o_s_w=.*/.exec(e.url);window.location.href=t[1]}else{let n="global";if(-1!==e.url.indexOf("o_n_w=")){const t=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(e.url);t&&(n=t[2],e.url=t[1])}t.transportsWindow[n]&&t.transportsWindow[n].close(),t.transportsWindow[n]=window.open(e.url,"uds_trans_"+n)}else e.running?window.setTimeout(r,this.delay):(i.next(!0),i.complete(),s(e.error))},t=>{i.next(!0),i.complete(),s(t)})};window.setTimeout(r)}))}}showAlert(t,e,n,i=null){return this.api.gui.alert(django.gettext("Launching service"),'

'+t+'

'+e+"

",n,i)}doLaunch(t){let e=document.getElementById("hiddenUdsLauncherIFrame");if(null===e){const t=document.createElement("div");t.id="testID",t.innerHTML='',document.body.appendChild(t),e=document.getElementById("hiddenUdsLauncherIFrame")}e.contentWindow.location.href=t}}return t.transportsWindow={},t})()},4902:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G:function(){return LoginComponent}});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3018),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(665),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8295),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9983),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8583),_angular_material_button__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1095),_angular_material_select__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7441),_angular_material_core__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2458),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template(t,e){if(1&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&t){const t=e.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",t.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",t.name," ")}}function LoginComponent_div_22_Template(t,e){if(1&t){const t=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(1,"mat-form-field",17),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(2,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(e){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(t),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(e.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()}if(2&t){const t=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",t.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",t.auths)}}let LoginComponent=(()=>{class LoginComponent{constructor(t){this.api=t,this.title="UDS Enterprise",this.title=t.config.site_name,this.auths=t.config.authenticators.slice(0),this.auths.sort((t,e)=>t.priority-e.priority)}ngOnInit(){document.getElementById("loginform").action=this.api.config.urls.login;const t=document.getElementById("token");t.name=this.api.csrfField,t.value=this.api.csrfToken,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}changeAuth(auth){this.auth.value=auth;const doCustomAuth=data=>{eval(data)};for(const t of this.auths)t.id===auth&&t.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml(t.id).subscribe(t=>doCustomAuth(t)))}launch(){return document.getElementById("loginform").submit(),!0}}return LoginComponent.\u0275fac=function(t){return new(t||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return e.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(2,"input",2),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(10,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(11,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(12,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(17,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(18,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(24,"button",15),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",e.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",e.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",e.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,e.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_button__WEBPACK_IMPORTED_MODULE_7__.lW,_angular_material_select__WEBPACK_IMPORTED_MODULE_8__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_9__.ey],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent})()},7918:function(t,e,n){"use strict";n.d(e,{P:function(){return s}});var i=n(3018);let s=(()=>{class t{constructor(t){this.el=t}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t,selectors:[["uds-translate"]]}),t})()},3513:function(t,e,n){"use strict";n.d(e,{n:function(){return i}});class i{constructor(t){this.user=t.user,this.role=t.role,this.admin=t.admin}get isStaff(){return"staff"===this.role||"admin"===this.role}get isAdmin(){return"admin"===this.role}get isLogged(){return null!=this.user}get isRestricted(){return"restricted"===this.role}}},7540:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return UDSApiService}});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3018),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1841),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3183),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8741);let UDSApiService=(()=>{class UDSApiService{constructor(t,e,n){this.http=t,this.gui=e,this.router=n,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get staffInfo(){return udsData.info}get plugins(){return udsData.plugins}get actors(){return udsData.actors}get errors(){return udsData.errors}enabler(t,e){const n=this.config.urls.enabler.replace("param1",t).replace("param2",e);return this.http.get(n)}status(t,e){const n=this.config.urls.status.replace("param1",t).replace("param2",e);return this.http.get(n)}action(t,e){const n=this.config.urls.action.replace("param1",e).replace("param2",t);return this.http.get(n)}transportUrl(t){return this.http.get(t)}galleryImageURL(t){return this.config.urls.galleryImage.replace("param1",t)}transportIconURL(t){return this.config.urls.transportIcon.replace("param1",t)}staticURL(t){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+t:"/static/"+t}getServicesInformation(){return this.http.get(this.config.urls.services)}getErrorInformation(t){return this.http.get(this.config.urls.error.replace("9999",t))}executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}gotoAdmin(){window.location.href=this.config.urls.admin}logout(){window.location.href=this.config.urls.logout}launchURL(t){this.plugin.launchURL(t)}getAuthCustomHtml(t){return this.http.get(this.config.urls.customAuth+t,{responseType:"text"})}}return UDSApiService.\u0275fac=function(t){return new(t||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService})()},2340:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i={production:!0}},6445:function(t,e,n){"use strict";var i=n(9075),s=n(3018),r=n(9490),o=n(9765),a=n(739),l=n(8071),c=n(7574),u=n(5257),h=n(3653),d=n(4395),p=n(8002),f=n(9761),m=n(6782),g=n(521);let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const y=new Set;let b,v=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):w}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!y.has(t))try{b||(b=document.createElement("style"),b.setAttribute("type","text/css"),document.head.appendChild(b)),b.sheet&&(b.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),y.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(g.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(g.t4))},token:t,providedIn:"root"}),t})();function w(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let C=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new o.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return x((0,r.Eq)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=x((0,r.Eq)(t)).map(t=>this._registerQuery(t).observable);let n=(0,a.aj)(e);return n=(0,l.z)(n.pipe((0,u.q)(1)),n.pipe((0,h.T)(1),(0,d.b)(0))),n.pipe((0,p.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new c.y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe((0,f.O)(e),(0,p.U)(({matches:e})=>({query:t,matches:e})),(0,m.R)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(v),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(v),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})();function x(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var E=n(1841),S=n(8741),k=n(7540);let O=(()=>{class t{constructor(t){this.api=t}canActivate(t,e){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(k.n))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var T=n(4902),A=n(7918),P=n(8583);function I(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().download(e.url)}),s.TgZ(1,"div",7),s._UZ(2,"img",8),s.qZA(),s.TgZ(3,"div",9),s._uU(4),s.qZA(),s.TgZ(5,"div",10),s._uU(6),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.Tol(n.css(t)),s.xp6(2),s.Q6J("src",n.img(t.name),s.LSH),s.xp6(2),s.lnq(" ",n.legacy(t)," ",t.name," (",t.url.split(".").pop(),") "),s.xp6(2),s.hij(" ",t.description," ")}}let R=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}download(t){window.location.href=t}img(t){return this.api.staticURL("modern/img/"+t+".png")}css(t){const e=["plugin"];return t.legacy&&e.push("legacy"),e}legacy(t){return t.legacy?"Legacy":""}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h1"),s.TgZ(4,"uds-translate"),s._uU(5,"UDS Client"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"div",3),s.YNc(7,I,7,7,"div",4),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"ul"),s.TgZ(10,"li"),s.TgZ(11,"uds-translate"),s._uU(12,"Download UDS client for your platform"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(7),s.Q6J("ngForOf",e.api.plugins))},directives:[A.P,P.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem}"]}),t})();var D=n(6498);function M(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().download(e.url)}),s.TgZ(1,"div",7),s._UZ(2,"img",8),s.qZA(),s._UZ(3,"div",9),s.ALo(4,"safeHtml"),s._UZ(5,"div",10),s.ALo(6,"safeHtml"),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.Tol(n.css(t.name)),s.xp6(2),s.Q6J("src",n.img(t.name),s.LSH),s.xp6(1),s.Q6J("innerHTML",s.lcZ(4,5,t.name),s.oJD),s.xp6(2),s.Q6J("innerHTML",s.lcZ(6,7,t.description),s.oJD)}}let L=(()=>{class t{constructor(t){this.api=t}ngOnInit(){this.actors=[];const t=[];this.api.actors.forEach(e=>{e.name.includes("legacy")?t.push(e):this.actors.push(e)}),t.forEach(t=>{this.actors.push(t)})}download(t){window.location.href=t}img(t){const e=t.split(".").pop().toLowerCase();let n="Linux";return"exe"===e?n="Windows":"pkg"===e&&(n="MacOS"),this.api.staticURL("modern/img/"+n+".png")}css(t){const e=["actor"];return t.toLowerCase().includes("legacy")&&e.push("legacy"),e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h1"),s.TgZ(4,"uds-translate"),s._uU(5,"Downloads"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"div",3),s.YNc(7,M,7,9,"div",4),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"ul"),s.TgZ(10,"li"),s.TgZ(11,"uds-translate"),s._uU(12,"Always download the UDS actor matching your platform"),s.qZA(),s.qZA(),s.TgZ(13,"li"),s.TgZ(14,"uds-translate"),s._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(7),s.Q6J("ngForOf",e.actors))},directives:[A.P,P.sg],pipes:[D.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:bold;overflow:hidden}"]}),t})();var F=n(5319),N=n(8345);let B=0;const U=new s.OlP("CdkAccordion");let Z=(()=>{class t{constructor(){this._stateChanges=new o.xQ,this._openCloseAllActions=new o.xQ,this.id="cdk-accordion-"+B++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=(0,r.Ig)(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[s._Bn([{provide:U,useExisting:t}]),s.TTD]}),t})(),q=0,j=(()=>{class t{constructor(t,e,n){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=n,this._openCloseAllSubscription=F.w.EMPTY,this.closed=new s.vpe,this.opened=new s.vpe,this.destroyed=new s.vpe,this.expandedChange=new s.vpe,this.id="cdk-accordion-child-"+q++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=n.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=(0,r.Ig)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(U,12),s.Y36(s.sBO),s.Y36(N.A8))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[s._Bn([{provide:U,useValue:void 0}])]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();var H=n(7636),z=n(2458),Y=n(9238),G=n(7519),K=n(5435),$=n(6461),W=n(6237),Q=n(9193),J=n(6682),X=n(7238);const tt=["body"];function et(t,e){}const nt=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],it=["mat-expansion-panel-header","*","mat-action-row"];function st(t,e){if(1&t&&s._UZ(0,"span",2),2&t){const t=s.oxw();s.Q6J("@indicatorRotate",t._getExpandedState())}}const rt=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],ot=["mat-panel-title","mat-panel-description","*"],at=new s.OlP("MAT_ACCORDION"),lt="225ms cubic-bezier(0.4,0.0,0.2,1)",ct={indicatorRotate:(0,X.X$)("indicatorRotate",[(0,X.SB)("collapsed, void",(0,X.oB)({transform:"rotate(0deg)"})),(0,X.SB)("expanded",(0,X.oB)({transform:"rotate(180deg)"})),(0,X.eR)("expanded <=> collapsed, void => collapsed",(0,X.jt)(lt))]),bodyExpansion:(0,X.X$)("bodyExpansion",[(0,X.SB)("collapsed, void",(0,X.oB)({height:"0px",visibility:"hidden"})),(0,X.SB)("expanded",(0,X.oB)({height:"*",visibility:"visible"})),(0,X.eR)("expanded <=> collapsed, void => collapsed",(0,X.jt)(lt))])};let ut=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),ht=0;const dt=new s.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let pt=(()=>{class t extends j{constructor(t,e,n,i,r,a,l){super(t,e,n),this._viewContainerRef=i,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new s.vpe,this.afterCollapse=new s.vpe,this._inputChanges=new o.xQ,this._headerId="mat-expansion-panel-header-"+ht++,this._bodyAnimationDone=new o.xQ,this.accordion=t,this._document=r,this._bodyAnimationDone.pipe((0,G.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=(0,r.Ig)(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,f.O)(null),(0,K.h)(()=>this.expanded&&!this._portal),(0,u.q)(1)).subscribe(()=>{this._portal=new H.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(at,12),s.Y36(s.sBO),s.Y36(N.A8),s.Y36(s.s_b),s.Y36(P.K0),s.Y36(W.Qb,8),s.Y36(dt,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,ut,5),2&t){let t;s.iGM(t=s.CRH())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&s.Gf(tt,5),2&t){let t;s.iGM(t=s.CRH())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[s._Bn([{provide:at,useValue:void 0}]),s.qOj,s.TTD],ngContentSelectors:it,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(s.F$t(nt),s.Hsn(0),s.TgZ(1,"div",0,1),s.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),s.TgZ(3,"div",2),s.Hsn(4,1),s.YNc(5,et,0,0,"ng-template",3),s.qZA(),s.Hsn(6,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),s.uIk("aria-labelledby",e._headerId),s.xp6(4),s.Q6J("cdkPortalOutlet",e._portal))},directives:[H.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ct.bodyExpansion]},changeDetection:0}),t})();class ft{}const mt=(0,z.sb)(ft);let gt=(()=>{class t extends mt{constructor(t,e,n,i,s,r,o){super(),this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=i,this._animationMode=r,this._parentChangeSubscription=F.w.EMPTY;const a=t.accordion?t.accordion._stateChanges.pipe((0,K.h)(t=>!(!t.hideToggle&&!t.togglePosition))):Q.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,J.T)(t.opened,t.closed,a,t._inputChanges.pipe((0,K.h)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe((0,K.h)(()=>t._containsFocus())).subscribe(()=>n.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case $.L_:case $.K5:(0,$.Vb)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(pt,1),s.Y36(s.SBq),s.Y36(Y.tE),s.Y36(s.sBO),s.Y36(dt,8),s.Y36(W.Qb,8),s.$8M("tabindex"))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.uIk("id",e.panel._headerId)("tabindex",e.tabIndex)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),s.Udp("height",e._getHeaderHeight()),s.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[s.qOj],ngContentSelectors:ot,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(s.F$t(rt),s.TgZ(0,"span",0),s.Hsn(1),s.Hsn(2,1),s.Hsn(3,2),s.qZA(),s.YNc(4,st,1,1,"span",1)),2&t&&(s.xp6(4),s.Q6J("ngIf",e._showToggle()))},directives:[P.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[ct.indicatorRotate]},changeDetection:0}),t})(),_t=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),yt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),bt=(()=>{class t extends Z{constructor(){super(...arguments),this._ownHeaders=new s.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=(0,r.Ig)(t)}ngAfterContentInit(){this._headers.changes.pipe((0,f.O)(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Y.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,gt,5),2&t){let t;s.iGM(t=s.CRH())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[s._Bn([{provide:at,useExisting:t}]),s.qOj]}),t})(),vt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[P.ez,z.BQ,V,H.eL]]}),t})();function wt(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"uds-translate"),s._uU(2,"Detected proxy ip"),s.qZA(),s._uU(3),s.qZA()),2&t){const t=s.oxw(2);s.xp6(3),s.hij(": ",t.api.staffInfo.ip_proxy,"")}}function Ct(t,e){if(1&t&&(s.TgZ(0,"li"),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function xt(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function Et(t,e){if(1&t&&(s.TgZ(0,"div",1),s.TgZ(1,"h1"),s.TgZ(2,"uds-translate"),s._uU(3,"Information"),s.qZA(),s.qZA(),s.TgZ(4,"mat-accordion"),s.TgZ(5,"mat-expansion-panel"),s.TgZ(6,"mat-expansion-panel-header",2),s.TgZ(7,"mat-panel-title"),s._uU(8," IPs "),s.qZA(),s.TgZ(9,"mat-panel-description"),s.TgZ(10,"uds-translate"),s._uU(11,"Client IP"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(12,"ol"),s.TgZ(13,"li"),s.TgZ(14,"uds-translate"),s._uU(15,"Client IP"),s.qZA(),s._uU(16),s.qZA(),s.YNc(17,wt,4,1,"li",3),s.qZA(),s.qZA(),s.TgZ(18,"mat-expansion-panel"),s.TgZ(19,"mat-expansion-panel-header",2),s.TgZ(20,"mat-panel-title"),s.TgZ(21,"uds-translate"),s._uU(22,"Transports"),s.qZA(),s.qZA(),s.TgZ(23,"mat-panel-description"),s.TgZ(24,"uds-translate"),s._uU(25,"UDS transports for this client"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(26,"ol"),s.YNc(27,Ct,2,1,"li",4),s.qZA(),s.qZA(),s.TgZ(28,"mat-expansion-panel"),s.TgZ(29,"mat-expansion-panel-header",2),s.TgZ(30,"mat-panel-title"),s.TgZ(31,"uds-translate"),s._uU(32,"Networks"),s.qZA(),s.qZA(),s.TgZ(33,"mat-panel-description"),s.TgZ(34,"uds-translate"),s._uU(35,"UDS networks for this IP"),s.qZA(),s.qZA(),s.qZA(),s.YNc(36,xt,2,1,"span",4),s._uU(37,"\xa0 "),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(16),s.hij(": ",t.api.staffInfo.ip,""),s.xp6(1),s.Q6J("ngIf",t.api.staffInfo.ip_proxy!==t.api.staffInfo.ip),s.xp6(10),s.Q6J("ngForOf",t.api.staffInfo.transports),s.xp6(9),s.Q6J("ngForOf",t.api.staffInfo.networks)}}let St=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(t,e){1&t&&s.YNc(0,Et,38,4,"div",0),2&t&&s.Q6J("ngIf",e.api.staffInfo)},directives:[P.O5,A.P,bt,pt,gt,yt,_t,P.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4}"]}),t})();var kt=n(2759),Ot=n(3342),Tt=n(8295),At=n(9983);const Pt=["input"];let It=(()=>{class t{constructor(){this.updateEvent=new s.vpe}ngAfterViewInit(){(0,kt.R)(this.input.nativeElement,"keyup").pipe((0,K.h)(Boolean),(0,d.b)(600),(0,G.x)(),(0,Ot.b)(()=>this.update(this.input.nativeElement.value))).subscribe()}update(t){this.updateEvent.emit(t.toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-filter"]],viewQuery:function(t,e){if(1&t&&s.Gf(Pt,7),2&t){let t;s.iGM(t=s.CRH())&&(e.input=t.first)}},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-form-field",1),s.TgZ(2,"mat-label"),s.TgZ(3,"uds-translate"),s._uU(4,"Filter"),s.qZA(),s.qZA(),s._UZ(5,"input",2,3),s.TgZ(7,"i",4),s._uU(8,"search"),s.qZA(),s.qZA(),s.qZA())},directives:[Tt.KE,Tt.hX,A.P,At.Nt,Tt.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),t})();var Rt=n(5917),Dt=n(4581),Mt=n(3190),Lt=n(3637),Ft=n(7393),Nt=n(1593);function Bt(t,e=Lt.P){const n=function(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-e.now():Math.abs(t);return t=>t.lift(new Ut(n,e))}class Ut{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Zt(t,this.delay,this.scheduler))}}class Zt extends Ft.L{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Zt.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new qt(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Nt.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Nt.P.createComplete()),this.unsubscribe()}}class qt{constructor(t,e){this.time=t,this.notification=e}}var jt=n(625),Vt=n(9243),Ht=n(946);const zt=["mat-menu-item",""];function Yt(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",2),s._UZ(1,"polygon",3),s.qZA())}const Gt=["*"];function Kt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.NdJ("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)})("click",function(){return s.CHM(t),s.oxw().closed.emit("click")})("@transformMenu.start",function(e){return s.CHM(t),s.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return s.CHM(t),s.oxw()._onAnimationDone(e)}),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),s.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const $t={transformMenu:(0,X.X$)("transformMenu",[(0,X.SB)("void",(0,X.oB)({opacity:0,transform:"scale(0.8)"})),(0,X.eR)("void => enter",(0,X.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,X.oB)({opacity:1,transform:"scale(1)"}))),(0,X.eR)("* => void",(0,X.jt)("100ms 25ms linear",(0,X.oB)({opacity:0})))]),fadeInItems:(0,X.X$)("fadeInItems",[(0,X.SB)("showing",(0,X.oB)({opacity:1})),(0,X.eR)("void => *",[(0,X.oB)({opacity:0}),(0,X.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Wt=new s.OlP("MatMenuContent"),Qt=new s.OlP("MAT_MENU_PANEL"),Jt=(0,z.Kr)((0,z.Id)(class{}));let Xt=(()=>{class t extends Jt{constructor(t,e,n,i,s){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new o.xQ,this._focused=new o.xQ,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.n_E,this._tabSubscription=F.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new o.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+ee++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=(0,r.Ig)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,r.Ig)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Y.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,f.O)(this._directDescendantItems),(0,Mt.w)(t=>(0,J.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,f.O)(this._directDescendantItems),(0,Mt.w)(t=>(0,J.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case $.hY:(0,$.Vb)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case $.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case $.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(e===$.LH||e===$.JH)&&n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,u.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=Math.min(this._baseElevation+t,24),n=`${this._elevationPrefix}${e}`,i=Object.keys(this._classList).find(t=>t.startsWith(this._elevationPrefix));(!i||i===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[n]=!0,this._previousElevation=n)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,f.O)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(te))},t.\u0275dir=s.lG2({type:t,contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,Wt,5),s.Suo(n,Xt,5),s.Suo(n,Xt,4)),2&t){let t;s.iGM(t=s.CRH())&&(e.lazyContent=t.first),s.iGM(t=s.CRH())&&(e._allItems=t),s.iGM(t=s.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(s.Rgc,5),2&t){let t;s.iGM(t=s.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),ie=(()=>{class t extends ne{constructor(t,e,n){super(t,e,n),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(te))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&s.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[s._Bn([{provide:Qt,useExisting:t}]),s.qOj],ngContentSelectors:Gt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,Kt,3,6,"ng-template"))},directives:[P.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[$t.transformMenu,$t.fadeInItems]},changeDetection:0}),t})();const se=new s.OlP("mat-menu-scroll-strategy"),re={provide:se,deps:[jt.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},oe=(0,g.i$)({passive:!0});let ae=(()=>{class t{constructor(t,e,n,i,r,o,a,l){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=o,this._dir=a,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=F.w.EMPTY,this._hoverSubscription=F.w.EMPTY,this._menuCloseSubscription=F.w.EMPTY,this._handleTouchStart=t=>{(0,Y.yG)(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new s.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=r instanceof ne?r:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,oe),o&&(o._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,oe),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ne&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===t||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,e instanceof ne?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,K.h)(t=>"void"===t.toState),(0,u.q)(1),(0,m.R)(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new jt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[i,s],[a,l]=[e,n],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(r="top"===i?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:r,overlayX:l,overlayY:i,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Rt.of)(),i=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,K.h)(t=>t!==this._menuItemInstance),(0,K.h)(()=>this._menuOpen)):(0,Rt.of)();return(0,J.T)(t,n,i,e)}_handleMousedown(t){(0,Y.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;(e===$.K5||e===$.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===$.SV&&"ltr"===this.dir||e===$.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,K.h)(t=>t===this._menuItemInstance&&!t.disabled),Bt(0,Dt.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ne&&this.menu._isAnimating?this.menu._animationDone.pipe((0,u.q)(1),Bt(0,Dt.E),(0,m.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new H.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(se),s.Y36(Qt,8),s.Y36(Xt,10),s.Y36(Ht.Is,8),s.Y36(Y.tE))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&s.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),le=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[re],imports:[z.BQ]}),t})(),ce=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[re],imports:[[P.ez,z.BQ,z.si,jt.U8,le],Vt.ZD,z.BQ,le]}),t})();const ue={tooltipState:(0,X.X$)("state",[(0,X.SB)("initial, void, hidden",(0,X.oB)({opacity:0,transform:"scale(0)"})),(0,X.SB)("visible",(0,X.oB)({transform:"scale(1)"})),(0,X.eR)("* => visible",(0,X.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,X.F4)([(0,X.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,X.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,X.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,X.eR)("* => hidden",(0,X.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,X.oB)({opacity:0})))])},he="tooltip-panel",de=(0,g.i$)({passive:!0}),pe=new s.OlP("mat-tooltip-scroll-strategy"),fe={provide:pe,deps:[jt.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},me=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let ge=(()=>{class t{constructor(t,e,n,i,s,r,a,l,c,u,h,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=r,this._ariaDescriber=a,this._focusMonitor=l,this._dir=u,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new o.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===$.hY&&!(0,$.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=d,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,m.R)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,de)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new H.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe((0,m.R)(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-${he}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,m.R)(this._destroyed)).subscribe(()=>{var t;return null===(t=this._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,u.q)(1),(0,m.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:n,originY:i}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===n?"left":"right":"start"===n?"left":"right":"bottom"===e&&"top"===i?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-${he}-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,de)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e!==n&&!n.contains(e)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),("on"===t||!e.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(Vt.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(g.t4),s.Y36(Y.$s),s.Y36(Y.tE),s.Y36(void 0),s.Y36(Ht.Is),s.Y36(void 0),s.Y36(P.K0))},t.\u0275dir=s.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),_e=(()=>{class t extends ge{constructor(t,e,n,i,s,r,o,a,l,c,u,h){super(t,e,n,i,s,r,o,a,l,c,u,h),this._tooltipComponent=be}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(Vt.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(g.t4),s.Y36(Y.$s),s.Y36(Y.tE),s.Y36(pe),s.Y36(Ht.Is,8),s.Y36(me,8),s.Y36(P.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),t})(),ye=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new o.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"===e&&!this.isVisible()&&this._onHide.next(),("visible"===e||"hidden"===e)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t}),t})(),be=(()=>{class t extends ye{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(C))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){2&t&&s.Udp("zoom","visible"===e._visibility?1:null)},features:[s.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.TgZ(0,"div",0),s.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),s.ALo(1,"async"),s._uU(2),s.qZA()),2&t){let t;s.ekj("mat-tooltip-handset",null==(t=s.lcZ(1,5,e._isHandset))?null:t.matches),s.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),s.xp6(2),s.Oqu(e.message)}},directives:[P.mk],pipes:[P.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ue.tooltipState]},changeDetection:0}),t})(),ve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[fe],imports:[[Y.rt,P.ez,jt.U8,z.BQ],z.BQ,Vt.ZD]}),t})();var we=n(1095);function Ce(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(2).launch(e)}),s.TgZ(1,"div",15),s._UZ(2,"img",9),s._uU(3),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw(2);s.xp6(2),s.Q6J("src",n.getTransportIcon(t.id),s.LSH),s.xp6(1),s.hij(" ",t.name," ")}}function xe(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).action("release")}),s.TgZ(1,"i",16),s._uU(2,"delete"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4," Release service"),s.qZA(),s.qZA()}}function Ee(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).action("reset")}),s.TgZ(1,"i",16),s._uU(2,"refresh"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4," Reset service"),s.qZA(),s.qZA()}}function Se(t,e){if(1&t&&(s.TgZ(0,"button",17),s.TgZ(1,"uds-translate"),s._uU(2,"Connections"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(2);s.Q6J("matMenuTriggerFor",t)}}function ke(t,e){if(1&t&&(s.TgZ(0,"button",17),s.TgZ(1,"uds-translate"),s._uU(2,"Actions"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(5);s.Q6J("matMenuTriggerFor",t)}}function Oe(t,e){if(1&t&&(s.TgZ(0,"button",18),s.TgZ(1,"i",16),s._uU(2,"menu"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(9);s.Q6J("matMenuTriggerFor",t)}}function Te(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"mat-menu",null,1),s.YNc(3,Ce,4,2,"button",2),s.qZA(),s.TgZ(4,"mat-menu",null,3),s.YNc(6,xe,5,0,"button",4),s.YNc(7,Ee,5,0,"button",4),s.qZA(),s.TgZ(8,"mat-menu",null,5),s.YNc(10,Se,3,1,"button",6),s.YNc(11,ke,3,1,"button",6),s.qZA(),s.TgZ(12,"div",7),s.TgZ(13,"div",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().launch(null)}),s._UZ(14,"img",9),s.qZA(),s.TgZ(15,"div",10),s.TgZ(16,"span",11),s._uU(17),s.qZA(),s.qZA(),s.TgZ(18,"div",12),s.YNc(19,Oe,3,1,"button",13),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.Q6J("ngForOf",t.service.transports),s.xp6(3),s.Q6J("ngIf",t.service.allow_users_remove),s.xp6(1),s.Q6J("ngIf",t.service.allow_users_reset),s.xp6(3),s.Q6J("ngIf",t.showTransportsMenu()),s.xp6(1),s.Q6J("ngIf",t.hasActions()),s.xp6(1),s.Q6J("ngClass",t.serviceClass)("matTooltipDisabled",""===t.serviceTooltip)("matTooltip",t.serviceTooltip),s.xp6(2),s.Q6J("src",t.serviceImage,s.LSH),s.xp6(2),s.Q6J("ngClass",t.serviceNameClass),s.xp6(1),s.Oqu(t.serviceName),s.xp6(2),s.Q6J("ngIf",t.hasMenu())}}let Ae=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}get serviceImage(){return this.api.galleryImageURL(this.service.imageId)}get serviceName(){let t=this.service.visual_name;return t.length>32&&(t=t.substring(0,29)+"..."),t}get serviceTooltip(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}get serviceClass(){const t=["service"];return null!=this.service.to_be_replaced?t.push("tobereplaced"):this.service.maintenance?t.push("maintenance"):this.service.not_accesible?t.push("forbidden"):this.service.in_use&&t.push("inuse"),t.length>1&&t.push("alert"),t}get serviceNameClass(){const t=[],e=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return e>=16&&t.push("small-"+e.toString()),t}getTransportIcon(t){return this.api.transportIconURL(t)}hasActions(){return this.service.allow_users_remove||this.service.allow_users_reset}showTransportsMenu(){return this.service.transports.length>1&&this.service.show_transports}hasMenu(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}notifyNotLaunching(t){this.api.gui.alert('

'+django.gettext("Launcher")+"

",t)}launch(t){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){const t=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching('

'+django.gettext("This service is currently not accesible due to schedule restrictions.")+'

'+t+'

')}else(null===t||!1===this.service.show_transports)&&(t=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(t.link)}action(t){const e=("release"===t?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,n="release"===t?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(e,django.gettext("Are you sure?")).subscribe(i=>{i&&this.api.action(t,this.service.id).subscribe(t=>{t&&this.api.gui.alert(e,n)})})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(t,e){1&t&&s.YNc(0,Te,20,12,"div",0),2&t&&s.Q6J("ngIf",e.service.transports.length>0)},directives:[P.O5,ie,P.sg,P.mk,_e,Xt,A.P,ae,we.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:rgba(0,0,0,.22);display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22)}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;border-radius:1px;background-color:rgba(255,255,255,.8)}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:"Material Icons";font-weight:normal;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"}']}),t})();function Pe(t,e){1&t&&s._UZ(0,"uds-service",8),2&t&&s.Q6J("service",e.$implicit)}function Ie(t,e){if(1&t&&(s.TgZ(0,"mat-expansion-panel",1),s.TgZ(1,"mat-expansion-panel-header",2),s.TgZ(2,"mat-panel-title"),s.TgZ(3,"div",3),s._UZ(4,"img",4),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"mat-panel-description",5),s._uU(7),s.qZA(),s.qZA(),s.TgZ(8,"div",6),s.YNc(9,Pe,1,1,"uds-service",7),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.Q6J("expanded",t.expanded),s.xp6(1),s.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),s.xp6(3),s.Q6J("src",t.groupImage,s.LSH),s.xp6(1),s.hij(" ",t.group.name,""),s.xp6(2),s.hij(" ",t.group.comments," "),s.xp6(2),s.Q6J("ngForOf",t.sortedServices)}}let Re=(()=>{class t{constructor(t){this.api=t,this.expanded=!1}ngOnInit(){}get groupImage(){return this.api.galleryImageURL(this.group.imageUuid)}get hasVisibleServices(){return this.services.length>0}get sortedServices(){return this.services.sort((t,e)=>t.name>e.name?1:t.name{class t{constructor(t){this.api=t,this.servicesInformation={autorun:!1,ip:"",nets:"",services:[],transports:""}}update(t){this.updateServices(t)}ngOnInit(){this.api.config.urls.launch?this.api.logout():this.loadServices()}autorun(){if(this.servicesInformation.autorun&&1===this.servicesInformation.services.length){if(!this.servicesInformation.services[0].maintenance)return this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(this.servicesInformation.services[0].transports[0].link),!0;this.api.gui.alert(django.gettext("Warning"),django.gettext("Service is in maintenance and cannot be executed"))}return!1}loadServices(){this.api.user.isRestricted&&this.api.logout(),this.api.getServicesInformation().subscribe(t=>{this.servicesInformation=t,this.autorun(),this.updateServices()})}updateServices(t=""){this.group=[];let e=null;this.servicesInformation.services.filter(e=>!t||e.visual_name.toLowerCase().includes(t)||e.group.name.toLowerCase().includes(t)).sort((t,e)=>t.group.priority!==e.group.priority?t.group.priority-e.group.priority:t.group.id>e.group.id?1:t.group.id{(null===e||t.group.id!==e.group.id)&&(null!==e&&this.group.push(e),e=new Fe(t.group)),e.services.push(t)}),null!==e&&this.group.push(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-services-page"]],decls:6,vars:3,consts:[[3,"updateEvent",4,"ngIf"],[1,"services-groups"],[3,"services","group","expanded",4,"ngFor","ngForOf"],[3,"updateEvent"],[3,"services","group","expanded"]],template:function(t,e){1&t&&(s.YNc(0,De,1,0,"uds-filter",0),s.TgZ(1,"div",1),s.TgZ(2,"mat-accordion"),s.YNc(3,Me,1,3,"uds-services-group",2),s.qZA(),s.qZA(),s.YNc(4,Le,1,0,"uds-filter",0),s._UZ(5,"uds-staff-info")),2&t&&(s.Q6J("ngIf",e.servicesInformation.services.length>=e.api.config.min_for_filter&&e.api.config.site_filter_on_top),s.xp6(3),s.Q6J("ngForOf",e.group),s.xp6(1),s.Q6J("ngIf",e.servicesInformation.services.length>=e.api.config.min_for_filter&&!e.api.config.site_filter_on_top))},directives:[P.O5,bt,P.sg,St,It,Re],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),t})(),Be=(()=>{class t{constructor(t,e){this.api=t,this.route=e}ngOnInit(){this.getError()}getError(){const t=this.route.snapshot.paramMap.get("id");"19"===t&&(this.returnUrl="/mfa"),this.error="",this.api.getErrorInformation(t).subscribe(t=>{this.error=t.error})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n),s.Y36(S.gz))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-error"]],decls:14,vars:2,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],["mat-raised-button","","color","warn",3,"routerLink"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.O4$(),s.TgZ(2,"svg",2),s._UZ(3,"path",3),s.qZA(),s.TgZ(4,"svg",4),s._UZ(5,"path",5),s.qZA(),s.qZA(),s.kcU(),s.TgZ(6,"h1",6),s.TgZ(7,"uds-translate"),s._uU(8,"An error has occurred"),s.qZA(),s.qZA(),s.TgZ(9,"p",7),s._uU(10),s.qZA(),s.TgZ(11,"a",8),s.TgZ(12,"uds-translate"),s._uU(13,"Return"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(10),s.hij(" ",e.error," "),s.xp6(1),s.Q6J("routerLink",e.returnUrl))},directives:[A.P,we.zs,S.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),t})(),Ue=(()=>{class t{constructor(t){this.api=t,this.year=(new Date).getFullYear()}ngOnInit(){this.year<2021&&(this.year=2021)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-about"]],decls:45,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1"),s._uU(2),s.qZA(),s.TgZ(3,"h3"),s.TgZ(4,"a",1),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"h4"),s.TgZ(7,"uds-translate"),s._uU(8,"You can access UDS Open Source code at"),s.qZA(),s.TgZ(9,"a",2),s._uU(10,"OpenUDS github repository"),s.qZA(),s.qZA(),s.TgZ(11,"div",3),s.TgZ(12,"h2"),s.TgZ(13,"uds-translate"),s._uU(14,"UDS has been developed using these components:"),s.qZA(),s.qZA(),s.TgZ(15,"ul"),s.TgZ(16,"li"),s.TgZ(17,"a",4),s._uU(18,"Python"),s.qZA(),s.qZA(),s.TgZ(19,"li"),s.TgZ(20,"a",5),s._uU(21,"TypeScript"),s.qZA(),s.qZA(),s.TgZ(22,"li"),s.TgZ(23,"a",6),s._uU(24,"Django"),s.qZA(),s.qZA(),s.TgZ(25,"li"),s.TgZ(26,"a",7),s._uU(27,"Angular"),s.qZA(),s.qZA(),s.TgZ(28,"li"),s.TgZ(29,"a",8),s._uU(30,"Guacamole"),s.qZA(),s.qZA(),s.TgZ(31,"li"),s.TgZ(32,"a",9),s._uU(33,"weasyprint"),s.qZA(),s.qZA(),s.TgZ(34,"li"),s.TgZ(35,"a",10),s._uU(36,"Crystal project icons"),s.qZA(),s.qZA(),s.TgZ(37,"li"),s.TgZ(38,"a",11),s._uU(39,"Flattr Icons"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(40,"p"),s.TgZ(41,"small"),s._uU(42,"* "),s.TgZ(43,"uds-translate"),s._uU(44,"If you find that we missed any component, please let us know"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.AsE("Universal Desktop Services ",e.api.config.version," build ",e.api.config.version_stamp,""),s.xp6(3),s.hij(" \xa9 2012-",e.year," Virtual Cable S.L.U."))},directives:[A.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:normal}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px}"]}),t})(),Ze=(()=>{class t{constructor(t){this.api=t}ngOnInit(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"h1"),s.TgZ(3,"uds-translate"),s._uU(4,"UDS Service launcher"),s.qZA(),s.qZA(),s.TgZ(5,"h4"),s.TgZ(6,"uds-translate"),s._uU(7,"The service you have requested is being launched."),s.qZA(),s.qZA(),s.TgZ(8,"h5"),s.TgZ(9,"uds-translate"),s._uU(10,"Please, note that reloading this page will not work."),s.qZA(),s.qZA(),s.TgZ(11,"h5"),s.TgZ(12,"uds-translate"),s._uU(13,"To relaunch service, you will have to do it from origin."),s.qZA(),s.qZA(),s.TgZ(14,"h6"),s.TgZ(15,"uds-translate"),s._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),s.qZA(),s.qZA(),s.TgZ(17,"h6"),s.TgZ(18,"uds-translate"),s._uU(19,"You can obtain it from the"),s.qZA(),s._uU(20,"\xa0"),s.TgZ(21,"a",2),s.TgZ(22,"uds-translate"),s._uU(23,"UDS Client download page"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA())},directives:[A.P,S.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:rgba(0,0,0,.22);padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:normal}"]}),t})();var qe=n(665);const je=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:Ne,canActivate:[O]},{path:"login",component:T.G},{path:"login/:id",component:T.G},{path:"mfa",component:(()=>{class t{constructor(t){this.api=t}ngOnInit(){document.getElementById("mfaform").action=this.api.config.urls.mfa,this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}launch(){return document.getElementById("mfaform").submit(),!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-mfa"]],decls:17,vars:2,consts:[["id","mfaform","method","post",3,"ngSubmit"],[1,"mfa-container"],[1,"mfa-brand"],[3,"src"],[1,"mfa-info"],[1,"mfa-form"],[1,"mfa-field"],["appearance","standard"],["matInput","","id","code","name","code","value","","required","","autofocus",""],[1,"mfa-button"],["mat-stroked-button","","color","primary","type","submit"]],template:function(t,e){1&t&&(s.TgZ(0,"form",0),s.NdJ("ngSubmit",function(){return e.launch()}),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s._UZ(3,"img",3),s.qZA(),s.TgZ(4,"div",4),s.TgZ(5,"uds-translate"),s._uU(6,"Login Verification"),s.qZA(),s.qZA(),s.TgZ(7,"div",5),s.TgZ(8,"div",6),s.TgZ(9,"mat-form-field",7),s.TgZ(10,"mat-label"),s._uU(11),s.qZA(),s._UZ(12,"input",8),s.qZA(),s.qZA(),s.TgZ(13,"div",9),s.TgZ(14,"button",10),s.TgZ(15,"uds-translate"),s._uU(16,"Submit"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Q6J("src",e.api.staticURL("modern/img/login-img.png"),s.LSH),s.xp6(8),s.hij(" ",e.api.config.mfa.label," "))},directives:[qe._Y,qe.JL,qe.F,A.P,Tt.KE,Tt.hX,At.Nt,we.lW],styles:[".mfa-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.mfa-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.mfa-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.mfa-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.mfa-form[_ngcontent-%COMP%]{min-width:80%}}"]}),t})()},{path:"client-download",component:R},{path:"downloads",component:L,canActivate:[O]},{path:"error/:id",component:Be},{path:"about",component:Ue},{path:"ticket/launcher",component:Ze},{path:"**",redirectTo:"services"}];let Ve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[S.Bz.forRoot(je,{relativeLinkResolution:"legacy"})],S.Bz]}),t})();var He=n(8553);let ze=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),Ye=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[z.si,z.BQ,He.Q8,ze],z.BQ,ze]}),t})();var Ge=n(2238),Ke=n(7441);const $e=["*",[["mat-toolbar-row"]]],We=["*","mat-toolbar-row"],Qe=(0,z.pj)(class{constructor(t){this._elementRef=t}});let Je=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),Xe=(()=>{class t extends Qe{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(g.t4),s.Y36(P.K0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,Je,5),2&t){let t;s.iGM(t=s.CRH())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.qOj],ngContentSelectors:We,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t($e),s.Hsn(0),s.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),tn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[z.BQ],z.BQ]}),t})(),en=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:Tt.o2,useValue:{floatLabel:"always"}}],imports:[qe.u5,tn,we.ot,ce,ve,vt,Ge.Is,Tt.lN,At.c,Ke.LD,Ye]}),t})();function nn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(2).changeLang(e)}),s._uU(1),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.name)}}function sn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).admin()}),s.TgZ(1,"i",23),s._uU(2,"dashboard"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4,"Dashboard"),s.qZA(),s.qZA()}}function rn(t,e){1&t&&(s.TgZ(0,"button",28),s.TgZ(1,"i",23),s._uU(2,"file_download"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4,"Downloads"),s.qZA(),s.qZA())}function on(t,e){if(1&t&&(s.TgZ(0,"button",14),s._uU(1),s.qZA()),2&t){s.oxw();const t=s.MAs(8),e=s.oxw();s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.Oqu(e.api.user.user)}}function an(t,e){if(1&t&&(s.TgZ(0,"button",25),s._uU(1),s.TgZ(2,"i",23),s._uU(3,"arrow_drop_down"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(8),e=s.oxw();s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",e.api.user.user," ")}}function ln(t,e){if(1&t){const t=s.EpF();s.ynx(0),s.TgZ(1,"form",1),s._UZ(2,"input",2),s._UZ(3,"input",3),s.qZA(),s.TgZ(4,"mat-menu",null,4),s.YNc(6,nn,2,1,"button",5),s.qZA(),s.TgZ(7,"mat-menu",null,6),s.YNc(9,sn,5,0,"button",7),s.YNc(10,rn,5,0,"button",8),s.TgZ(11,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().logout()}),s.TgZ(12,"i",10),s._uU(13,"exit_to_app"),s.qZA(),s.TgZ(14,"uds-translate"),s._uU(15,"Logout"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(16,"mat-menu",11,12),s.YNc(18,on,2,2,"button",13),s.TgZ(19,"button",14),s._uU(20),s.qZA(),s.TgZ(21,"button",15),s.TgZ(22,"uds-translate"),s._uU(23,"UDS Client"),s.qZA(),s.qZA(),s.TgZ(24,"button",16),s.TgZ(25,"uds-translate"),s._uU(26,"About"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(27,"mat-toolbar",17),s.TgZ(28,"button",18),s._UZ(29,"img",19),s._uU(30),s.qZA(),s._UZ(31,"span",20),s.TgZ(32,"div",21),s.TgZ(33,"button",22),s.TgZ(34,"i",23),s._uU(35,"file_download"),s.qZA(),s.TgZ(36,"uds-translate"),s._uU(37,"UDS Client"),s.qZA(),s.qZA(),s.TgZ(38,"button",24),s.TgZ(39,"i",23),s._uU(40,"info"),s.qZA(),s.TgZ(41,"uds-translate"),s._uU(42,"About"),s.qZA(),s.qZA(),s.TgZ(43,"button",25),s._uU(44),s.TgZ(45,"i",23),s._uU(46,"arrow_drop_down"),s.qZA(),s.qZA(),s.YNc(47,an,4,2,"button",26),s.qZA(),s.TgZ(48,"div",27),s.TgZ(49,"button",25),s.TgZ(50,"i",23),s._uU(51,"menu"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.BQk()}if(2&t){const t=s.MAs(5),e=s.MAs(17),n=s.oxw();s.xp6(1),s.s9C("action",n.api.config.urls.changeLang,s.LSH),s.xp6(1),s.s9C("name",n.api.csrfField),s.s9C("value",n.api.csrfToken),s.xp6(1),s.s9C("value",n.lang.id),s.xp6(3),s.Q6J("ngForOf",n.langs),s.xp6(3),s.Q6J("ngIf",n.api.user.isStaff),s.xp6(1),s.Q6J("ngIf",n.api.user.isStaff),s.xp6(8),s.Q6J("ngIf",n.api.user.isLogged),s.xp6(1),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",n.lang.name," "),s.xp6(9),s.Q6J("src",n.api.staticURL("modern/img/udsicon.png"),s.LSH),s.xp6(1),s.hij(" ",n.api.config.site_logo_name," "),s.xp6(13),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",n.lang.name," "),s.xp6(3),s.Q6J("ngIf",n.api.user.isLogged),s.xp6(2),s.Q6J("matMenuTriggerFor",e)}}let cn=(()=>{class t{constructor(t){this.api=t,this.style="";const e=t.config.language;this.langs=[];for(const n of t.config.available_languages)n.id===e?this.lang=n:this.langs.push(n)}ngOnInit(){}changeLang(t){return this.lang=t,document.getElementById("id_language").attributes.value.value=t.id,document.getElementById("form_language").submit(),!1}admin(){this.api.gotoAdmin()}logout(){this.api.logout()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(t,e){1&t&&s.YNc(0,ln,52,16,"ng-container",0),2&t&&s.Q6J("ngIf",""===e.api.config.urls.launch)},directives:[P.O5,qe._Y,qe.JL,qe.F,ie,P.sg,Xt,A.P,ae,S.rH,Xe,we.lW],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),t})(),un=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"a",0),s._uU(2),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Q6J("href",e.api.config.site_copyright_link,s.LSH),s.xp6(1),s.Oqu(e.api.config.site_copyright_info))},styles:[""]}),t})(),hn=(()=>{class t{constructor(){this.title="uds"}ngOnInit(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-root"]],decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,e){1&t&&(s._UZ(0,"uds-navbar"),s.TgZ(1,"div",0),s.TgZ(2,"div",1),s._UZ(3,"router-outlet"),s.qZA(),s.TgZ(4,"div",2),s._UZ(5,"uds-footer"),s.qZA(),s.qZA())},directives:[cn,S.lC,un],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),t})();var dn=n(3183);let pn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t,bootstrap:[hn]}),t.\u0275inj=s.cJS({providers:[k.n,dn.h],imports:[[i.b2,_,E.JF,Ve,W.PW,en]]}),t})();n(2340).N.production&&(0,s.G48)(),i.q6().bootstrapModule(pn).catch(t=>console.log(t))}},function(t){t(t.s=6445)}]); \ No newline at end of file diff --git a/server/src/uds/static/modern/main-es5.js b/server/src/uds/static/modern/main-es5.js index 22bbb5e3e..17e851be2 100644 --- a/server/src/uds/static/modern/main-es5.js +++ b/server/src/uds/static/modern/main-es5.js @@ -1 +1 @@ -(function(){function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)})(e)}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&_setPrototypeOf(r,n.prototype),r}).apply(null,arguments)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function l(e){return{type:6,styles:e,offset:null}}function c(e,t,n){return{type:0,name:e,styles:t,options:n}}function h(e){return{type:5,steps:e}}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function v(e){Promise.resolve(null).then(e)}var _=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;v(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),m=function(){function e(t){var n=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?v(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),g="!"},9238:function(e,t,n){"use strict";n.d(t,{rt:function(){return ne},s1:function(){return D},$s:function(){return T},Em:function(){return M},tE:function(){return J},qV:function(){return U},qm:function(){return te},Kd:function(){return K},X6:function(){return Z},yG:function(){return j}});var i=n(8583),r=n(3018),o=n(9765),a=n(5319),s=n(6215),u=n(5917),l=n(6461),c=n(3342),h=n(4395),f=n(5435),d=n(8002),p=n(5257),v=n(3653),_=n(7519),m=n(6782),g=n(9490),y=n(521),b=n(8553);function k(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var C,w="cdk-describedby-message-container",x="cdk-describedby-message",E="cdk-describedby-host",S=0,O=new Map,A=null,T=((C=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=P(t,n);"string"!=typeof t?(I(t),O.set(i,{messageElement:t,referenceCount:0})):O.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=P(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=O.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}A&&0===A.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[".concat(E,"]")),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return _createClass(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,c.b)(function(t){return e._pressedLetters.push(t)}),(0,h.b)(t),(0,f.h)(function(){return e._pressedLetters.length>0}),(0,d.U)(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case l.Mf:return void this.tabOut.next();case l.JH:if(this._vertical&&i){this.setNextItemActive();break}return;case l.LH:if(this._vertical&&i){this.setPreviousItemActive();break}return;case l.SV:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.oh:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.Sd:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case l.uR:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||(0,l.Vb)(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=l.A&&n<=l.Z||n>=l.xE&&n<=l.aO)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof r.n_E?this._items.toArray():this._items}}]),e}(),D=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(R),M=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._origin="program",e}return _createClass(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(R),L=function(){var e=function(){function e(t){_classCallCheck(this,e),this._platform=t}return _createClass(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t=function(e){try{return e.frameElement}catch(t){return null}}(function(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(e));if(t&&(-1===N(t)||!this.isVisible(t)))return!1;var n=e.nodeName.toLowerCase(),i=N(e);return e.hasAttribute("contenteditable")?-1!==i:!("iframe"===n||"object"===n||this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===n?!!e.hasAttribute("controls")&&-1!==i:"video"===n?-1!==i&&(null!==i||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||F(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4))},token:e,providedIn:"root"}),e}();function F(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function N(e){if(!F(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var B=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return _createClass(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusInitialElement(e))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusFirstTabbableElement(e))})})}},{key:"focusLastTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusLastTabbableElement(e))})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(e)}}]),e}(),U=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._checker=t,this._ngZone=n,this._document=i}return _createClass(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new B(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(L),r.LFG(r.R0b),r.LFG(i.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(L),r.LFG(r.R0b),r.LFG(i.K0))},token:e,providedIn:"root"}),e}();function Z(e){return 0===e.offsetX&&0===e.offsetY}function j(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈var q=new r.OlP("cdk-input-modality-detector-options"),V={ignoreKeys:[l.zL,l.jx,l.b2,l.MW,l.JU]},H=(0,y.i$)({passive:!0,capture:!0}),z=function(){var e=function(){function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._platform=t,this._mostRecentTarget=null,this._modality=new s.X(null),this._lastTouchMs=0,this._onKeydown=function(e){var t,n;(null===(n=null===(t=o._options)||void 0===t?void 0:t.ignoreKeys)||void 0===n?void 0:n.some(function(t){return t===e.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=(0,y.sA)(e))},this._onMousedown=function(e){Date.now()-o._lastTouchMs<650||(o._modality.next(Z(e)?"keyboard":"mouse"),o._mostRecentTarget=(0,y.sA)(e))},this._onTouchstart=function(e){j(e)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=(0,y.sA)(e))},this._options=Object.assign(Object.assign({},V),r),this.modalityDetected=this._modality.pipe((0,v.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,_.x)()),t.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",o._onKeydown,H),i.addEventListener("mousedown",o._onMousedown,H),i.addEventListener("touchstart",o._onTouchstart,H)})}return _createClass(e,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,H),document.removeEventListener("mousedown",this._onMousedown,H),document.removeEventListener("touchstart",this._onTouchstart,H))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4),r.LFG(r.R0b),r.LFG(i.K0),r.LFG(q,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4),r.LFG(r.R0b),r.LFG(i.K0),r.LFG(q,8))},token:e,providedIn:"root"}),e}(),Y=new r.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),G=new r.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),K=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return _createClass(e,[{key:"announce",value:function(e){for(var t,n,i,r=this,o=this._defaultOptions,a=arguments.length,s=new Array(a>1?a-1:0),u=1;u1&&void 0!==arguments[1]&&arguments[1],n=(0,g.fI)(e);if(!this._platform.isBrowser||1!==n.nodeType)return(0,u.of)(null);var i=(0,y.kV)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var a={checkChildren:t,subject:new o.xQ,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}},{key:"stopMonitoring",value:function(e){var t=(0,g.fI)(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=(0,g.fI)(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=_slicedToArray(e,2),r=n[0],o=n[1];return i._originChanged(r,t,o)}):(this._setOrigin(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOrigin",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){t._origin=e,t._originFromTouchInteraction="touch"===e&&n,0===t._detectionMode&&(clearTimeout(t._originTimeoutId),t._originTimeoutId=setTimeout(function(){return t._origin=null},t._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t),i=(0,y.sA)(e);!n||!n.checkChildren&&t!==i||this._originChanged(t,this._getFocusOrigin(i),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,Q),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,Q)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){t._getWindow().addEventListener("focus",t._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,m.R)(this._stopInputModalityDetector)).subscribe(function(e){t._setOrigin(e,!0)}))}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Q),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Q),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.R0b),r.LFG(y.t4),r.LFG(z),r.LFG(i.K0,8),r.LFG(W,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(r.R0b),r.LFG(y.t4),r.LFG(z),r.LFG(i.K0,8),r.LFG(W,8))},token:e,providedIn:"root"}),e}(),X="cdk-high-contrast-black-on-white",$="cdk-high-contrast-white-on-black",ee="cdk-high-contrast-active",te=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._document=n}return _createClass(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove(ee),e.remove(X),e.remove($),this._hasCheckedHighContrastMode=!0;var t=this.getHighContrastMode();1===t?(e.add(ee),e.add(X)):2===t&&(e.add(ee),e.add($))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4),r.LFG(i.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4),r.LFG(i.K0))},token:e,providedIn:"root"}),e}(),ne=function(){var e=function e(t){_classCallCheck(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(r.LFG(te))},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[[y.ud,b.Q8]]}),e}()},946:function(e,t,n){"use strict";n.d(t,{vT:function(){return u},Is:function(){return s}});var i,r=n(3018),o=n(8583),a=new r.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,r.f3M)(o.K0)}}),s=((i=function(){function e(t){if(_classCallCheck(this,e),this.value="ltr",this.change=new r.vpe,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||i)(r.LFG(a,8))},i.\u0275prov=r.Yz7({factory:function(){return new i(r.LFG(a,8))},token:i,providedIn:"root"}),i),u=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}()},8345:function(e,t,n){"use strict";n.d(t,{P3:function(){return l},Ov:function(){return h},A8:function(){return f},eX:function(){return c},k:function(){return d},Z9:function(){return s}});var i=n(5639),r=n(5917),o=n(9765),a=n(3018);function s(e){return e&&"function"==typeof e.connect}var u,l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._data=e,i}return _createClass(n,[{key:"connect",value:function(){return(0,i.b)(this._data)?this._data:(0,r.of)(this._data)}},{key:"disconnect",value:function(){}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),c=function(){function e(){_classCallCheck(this,e),this.viewCacheSize=20,this._viewCache=[]}return _createClass(e,[{key:"applyChanges",value:function(e,t,n,i,r){var o=this;e.forEachOperation(function(e,a,s){var u,l;null==e.previousIndex?l=(u=o._insertView(function(){return n(e,a,s)},s,t,i(e)))?1:0:null==s?(o._detachAndCacheView(a,t),l=3):(u=o._moveView(a,s,t,i(e)),l=2),r&&r({context:null==u?void 0:u.context,operation:l,record:e})})}},{key:"detach",value:function(){var e,t=_createForOfIteratorHelper(this._viewCache);try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(n){t.e(n)}finally{t.f()}this._viewCache=[]}},{key:"_insertView",value:function(e,t,n,i){var r=this._insertViewFromCache(t,n);if(!r){var o=e();return n.createEmbeddedView(o.templateRef,o.context,o.index)}r.context.$implicit=i}},{key:"_detachAndCacheView",value:function(e,t){var n=t.detach(e);this._maybeCacheView(n,t)}},{key:"_moveView",value:function(e,t,n,i){var r=n.get(e);return n.move(r,t),r.context.$implicit=i,r}},{key:"_maybeCacheView",value:function(e,t){if(this._viewCache.length0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.xQ,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return _createClass(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i1?t-1:0),i=1;it.height||e.scrollWidth>t.width}}]),e}(),k=function(){function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),C=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function w(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function x(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var E,S=function(){function e(t,n,i,r){_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;w(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),O=((E=function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new C},this.close=function(e){return new k(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new b(o._viewportRuler,o._document)},this.reposition=function(e){return new S(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r}).\u0275fac=function(e){return new(e||E)(r.LFG(i.mF),r.LFG(i.rL),r.LFG(r.R0b),r.LFG(s.K0))},E.\u0275prov=r.Yz7({factory:function(){return new E(r.LFG(i.mF),r.LFG(i.rL),r.LFG(r.R0b),r.LFG(s.K0))},token:E,providedIn:"root"}),E),A=function e(t){if(_classCallCheck(this,e),this.scrollStrategy=new C,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0))},token:e,providedIn:"root"}),e}(),R=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return _createClass(n,[{key:"add",value:function(e){_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(I);return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0))},token:e,providedIn:"root"}),e}(),D=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=(0,o.sA)(e),n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var a=n[i];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(t))break;a._outsidePointerEvents.next(e)}}},r}return _createClass(n,[{key:"add",value:function(e){if(_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),!this._isAttached){var t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(I);return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0),r.LFG(o.t4))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0),r.LFG(o.t4))},token:e,providedIn:"root"}),e}(),M="undefined"!=typeof window?window:{},L=void 0!==M.__karma__&&!!M.__karma__||void 0!==M.jasmine&&!!M.jasmine||void 0!==M.jest&&!!M.jest||void 0!==M.Mocha&&!!M.Mocha,F=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=n,this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e="cdk-overlay-container";if(this._platform.isBrowser||L)for(var t=this._document.querySelectorAll(".".concat(e,'[platform="server"], .').concat(e,'[platform="test"]')),n=0;nd&&(d=_,f=v)}}catch(m){p.e(m)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&j(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(B),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=V(t),o=e.x,a=e.y,s=this._getOffset(i,"x"),u=this._getOffset(i,"y");s&&(o+=s),u&&(a+=u);var l=0-a,c=a+r.height-n.height,h=this._subtractOverflows(r.width,0-o,o+r.width-n.width),f=this._subtractOverflows(r.height,l,c),d=h*f;return{visibleArea:d,isCompletelyWithinViewport:r.width*r.height===d,fitsInViewportVertically:f===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=q(this._overlayRef.getConfig().minHeight),a=q(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=V(t),a=this._viewportRect,s=Math.max(e.x+o.width-a.width,0),u=Math.max(e.y+o.height-a.height,0),l=Math.max(a.top-n.top-e.y,0),c=Math.max(a.left-n.left-e.x,0);return i=o.width<=a.width?c||-s:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!l||"start"===t.overlayX&&l)s=u.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!l||"end"===t.overlayX&&l)a=e.x,o=u.right-e.x;else{var f=Math.min(u.right-e.x+u.left,e.x),d=this._lastBoundingBoxSize.width;o=2*f,a=e.x-f,o>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-d/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=(0,u.HM)(n.height),i.top=(0,u.HM)(n.top),i.bottom=(0,u.HM)(n.bottom),i.width=(0,u.HM)(n.width),i.left=(0,u.HM)(n.left),i.right=(0,u.HM)(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=(0,u.HM)(r)),o&&(i.maxWidth=(0,u.HM)(o))}this._lastBoundingBoxSize=n,j(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){j(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){j(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();j(n,this._getExactOverlayY(t,e,a)),j(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),c&&(s+="translateY(".concat(c,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=(0,u.HM)(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=(0,u.HM)(o.maxWidth):r&&(n.maxWidth="")),j(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=(0,u.HM)(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=(0,u.HM)(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:x(e,n),isOriginOutsideView:w(e,n),isOverlayClipped:x(t,n),isOverlayOutsideView:w(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(z),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),G=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return _createClass(e,[{key:"global",value:function(){return new Y}},{key:"connectedTo",value:function(e,t,n){return new H(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new Z(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.rL),r.LFG(s.K0),r.LFG(o.t4),r.LFG(F))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(i.rL),r.LFG(s.K0),r.LFG(o.t4),r.LFG(F))},token:e,providedIn:"root"}),e}(),K=0,W=function(){var e=function(){function e(t,n,i,r,o,a,s,u,l,c,h){_classCallCheck(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}return _createClass(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new A(e);return r.direction=r.direction||this._directionality.value,new N(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+K++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(r.z2F)),new l.u0(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(O),r.LFG(F),r.LFG(r._Vd),r.LFG(G),r.LFG(R),r.LFG(r.zs3),r.LFG(r.R0b),r.LFG(s.K0),r.LFG(a.Is),r.LFG(s.Ye),r.LFG(D))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Q=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],J=new r.OlP("cdk-connected-overlay-scroll-strategy"),X=function(){var e=function e(t){_classCallCheck(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.SBq))},e.\u0275dir=r.lG2({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),$=function(){var e=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this._overlay=t,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new r.vpe,this.positionChange=new r.vpe,this.attach=new r.vpe,this.detach=new r.vpe,this.overlayKeydown=new r.vpe,this.overlayOutsideClick=new r.vpe,this._templatePortal=new l.UE(n,i),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=(0,u.Ig)(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=(0,u.Ig)(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=(0,u.Ig)(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=(0,u.Ig)(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=(0,u.Ig)(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;(!this.positions||!this.positions.length)&&(this.positions=Q);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),t.keyCode===g.hY&&!e.disableClose&&!(0,g.Vb)(t)&&(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new A({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new p(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(W),r.Y36(r.Rgc),r.Y36(r.s_b),r.Y36(J),r.Y36(a.Is,8))},e.\u0275dir=r.lG2({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[r.TTD]}),e}(),ee={provide:J,deps:[W],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},te=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[W,ee],imports:[[a.vT,l.eL,i.Cl],i.Cl]}),e}()},521:function(e,t,n){"use strict";n.d(t,{t4:function(){return f},ud:function(){return d},sA:function(){return k},ht:function(){return b},kV:function(){return y},_i:function(){return g},qK:function(){return v},i$:function(){return _},Mq:function(){return m}});var i,r=n(3018),o=n(8583);try{i="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(s){i=!1}var a,s,u,l,c,h,f=((s=function e(t){_classCallCheck(this,e),this._platformId=t,this.isBrowser=this._platformId?(0,o.NF)(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&&!i)&&"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}).\u0275fac=function(e){return new(e||s)(r.LFG(r.Lbi))},s.\u0275prov=r.Yz7({factory:function(){return new s(r.LFG(r.Lbi))},token:s,providedIn:"root"}),s),d=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}(),p=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function v(){if(a)return a;if("object"!=typeof document||!document)return a=new Set(p);var e=document.createElement("input");return a=new Set(p.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function _(e){return function(){if(null==u&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return u=!0}}))}finally{u=u||!1}return u}()?e:!!e.capture}function m(){if(null==c){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return c=!1;if("scrollBehavior"in document.documentElement.style)c=!0;else{var e=Element.prototype.scrollTo;c=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return c}function g(){if("object"!=typeof document||!document)return 0;if(null==l){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),l=0,0===e.scrollLeft&&(e.scrollLeft=1,l=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return l}function y(e){if(function(){if(null==h){var e="undefined"!=typeof document?document.head:null;h=!(!e||!e.createShadowRoot&&!e.attachShadow)}return h}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function b(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}function k(e){return e.composedPath?e.composedPath()[0]:e.target}},7636:function(e,t,n){"use strict";n.d(t,{en:function(){return c},Pl:function(){return f},C5:function(){return s},u0:function(){return h},eL:function(){return d},UE:function(){return u}});var i,r=n(3018),o=n(8583),a=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(a),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return _createClass(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(n.prototype),"detach",this).call(this)}}]),n}(a),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).element=e instanceof r.SBq?e.nativeElement:e,i}return n}(a),c=function(){function e(){_classCallCheck(this,e),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof s?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof u?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof l?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),h=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s,u;return _classCallCheck(this,n),(u=t.call(this)).outletElement=e,u._componentFactoryResolver=i,u._appRef=r,u._defaultInjector=o,u.attachDomPortal=function(e){var t=e.element,i=u._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),u.outletElement.appendChild(t),u._attachedPortal=e,_get((s=_assertThisInitialized(u),_getPrototypeOf(n.prototype)),"setDisposeFn",s).call(s,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},u._document=a,u}return _createClass(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),this._attachedPortal=e,i}},{key:"dispose",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(c),f=((i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,o){var a,s;return _classCallCheck(this,n),(s=t.call(this))._componentFactoryResolver=e,s._viewContainerRef=i,s._isInitialized=!1,s.attached=new r.vpe,s.attachDomPortal=function(e){var t=e.element,i=s._document.createComment("dom-portal");e.setAttachedHost(_assertThisInitialized(s)),t.parentNode.insertBefore(i,t),s._getRootNode().appendChild(t),s._attachedPortal=e,_get((a=_assertThisInitialized(s),_getPrototypeOf(n.prototype)),"setDisposeFn",a).call(a,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},s._document=o,s}return _createClass(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&_get(_getPrototypeOf(n.prototype),"detach",this).call(this),e&&_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),_get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(c)).\u0275fac=function(e){return new(e||i)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(o.K0))},i.\u0275dir=r.lG2({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),i),d=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}()},9243:function(e,t,n){"use strict";n.d(t,{ZD:function(){return y},mF:function(){return m},Cl:function(){return b},rL:function(){return g}});var i=n(9490),r=n(3018),o=n(6465),a=n(6102);new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(o.o));var s=n(9765),u=n(5917),l=n(7574),c=n(2759);n(4581),n(5319),n(5639),n(7393),new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(a.v))(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?_get(_getPrototypeOf(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(o.o)),n(1593),n(7971),n(8858),n(7519);var h=n(628),f=n(5435),d=(n(6782),n(9761),n(3190),n(521)),p=n(8583),v=n(946);n(8345);var _,m=((_=function(){function e(t,n,i){_classCallCheck(this,e),this._ngZone=t,this._platform=n,this._scrolled=new s.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return _createClass(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(function(){return t._scrolled.next(e)}))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new l.y(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe((0,h.e)(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):(0,u.of)()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,f.h)(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=(0,i.fI)(t),r=e.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var t=e._getWindow();return(0,c.R)(t.document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||_)(r.LFG(r.R0b),r.LFG(d.t4),r.LFG(p.K0,8))},_.\u0275prov=r.Yz7({factory:function(){return new _(r.LFG(r.R0b),r.LFG(d.t4),r.LFG(p.K0,8))},token:_,providedIn:"root"}),_),g=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this._platform=t,this._change=new s.xQ,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._viewportSize=null})})}return _createClass(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe((0,h.e)(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(d.t4),r.LFG(r.R0b),r.LFG(p.K0,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(d.t4),r.LFG(r.R0b),r.LFG(p.K0,8))},token:e,providedIn:"root"}),e}(),y=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}(),b=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[[v.vT,d.ud,y],v.vT,y]}),e}()},9490:function(e,t,n){"use strict";n.d(t,{Eq:function(){return a},Ig:function(){return r},HM:function(){return s},fI:function(){return u},su:function(){return o}});var i=n(3018);function r(e){return null!=e&&"false"!="".concat(e)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function a(e){return Array.isArray(e)?e:[e]}function s(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function u(e){return e instanceof i.SBq?e.nativeElement:e}},8583:function(e,t,n){"use strict";n.d(t,{mr:function(){return k},Ov:function(){return Y},ez:function(){return G},K0:function(){return l},Do:function(){return w},V_:function(){return f},Ye:function(){return x},S$:function(){return y},mk:function(){return R},sg:function(){return M},O5:function(){return F},RF:function(){return Z},n9:function(){return j},ED:function(){return q},b0:function(){return C},lw:function(){return c},EM:function(){return Q},JF:function(){return $},NF:function(){return W},w_:function(){return u},bD:function(){return K},q:function(){return o},Mx:function(){return I},HT:function(){return a}});var i=n(3018),r=null;function o(){return r}function a(e){r||(r=e)}var s,u=function e(){_classCallCheck(this,e)},l=new i.OlP("DocumentToken"),c=((s=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}()).\u0275fac=function(e){return new(e||s)},s.\u0275prov=(0,i.Yz7)({factory:h,token:s,providedIn:"platform"}),s);function h(){return(0,i.LFG)(d)}var f=new i.OlP("Location Initialized"),d=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i._init(),i}return _createClass(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return o().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=o().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=o().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){p()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){p()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}]),n}(c);return e.\u0275fac=function(t){return new(t||e)(i.LFG(l))},e.\u0275prov=(0,i.Yz7)({factory:v,token:e,providedIn:"platform"}),e}();function p(){return!!window.history.pushState}function v(){return new d((0,i.LFG)(l))}function _(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function g(e){return e&&"?"!==e[0]?"?"+e:e}var y=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,i.Yz7)({factory:b,token:e,providedIn:"root"}),e}();function b(e){var t=(0,i.LFG)(l).location;return new C((0,i.LFG)(c),t&&t.origin||"")}var k=new i.OlP("appBaseHref"),C=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;if(_classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._removeListenerFns=[],null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)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.");return r._baseHref=i,_possibleConstructorReturn(r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return _(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(i.LFG(c),i.LFG(k,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),w=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",r._removeListenerFns=[],null!=i&&(r._baseHref=i),r}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=_(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(i.LFG(c),i.LFG(k,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),x=function(){var e=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;var o=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=m(S(o)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})})}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+g(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,S(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.LFG(y),i.LFG(c))},e.normalizeQueryParams=g,e.joinWithSlash=_,e.stripTrailingSlash=m,e.\u0275prov=(0,i.Yz7)({factory:E,token:e,providedIn:"root"}),e}();function E(){return new x((0,i.LFG)(y),(0,i.LFG)(c))}function S(e){return e.replace(/\/index.html$/,"")}var O=((O=O||{})[O.Zero=0]="Zero",O[O.One=1]="One",O[O.Two=2]="Two",O[O.Few=3]="Few",O[O.Many=4]="Many",O[O.Other=5]="Other",O),A=i.kL8,T=function e(){_classCallCheck(this,e)},P=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).locale=e,i}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(A(t||this.locale)(e)){case O.Zero:return"zero";case O.One:return"one";case O.Two:return"two";case O.Few:return"few";case O.Many:return"many";default:return"other"}}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.soG))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}();function I(e,t){t=encodeURIComponent(t);var n,i=_createForOfIteratorHelper(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=_slicedToArray(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[0],u=a[1];if(s.trim()===t)return decodeURIComponent(u)}}catch(l){i.e(l)}finally{i.f()}return null}var R=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(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&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,i.AaK)(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},e.\u0275dir=i.lG2({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),D=function(){function e(t,n,i,r){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),M=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat(function(e){return e.name||typeof e}(e),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new D(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new L(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var u=new L(e,s);n.push(u)}});for(var i=0;i0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,_toConsumableArray(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),d=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return _(e)}},{key:"encodeValue",value:function(e){return _(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}(),p=/%(\d[a-f0-9])/gi,v={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function _(e){return encodeURIComponent(e).replace(p,function(e,t){var n;return null!==(n=v[t])&&void 0!==n?n:e})}function m(e){return"".concat(e)}var g=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new d,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),r=_slicedToArray(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(m(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(m(t.value));-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),y=function(){function e(){_classCallCheck(this,e),this.map=new Map}return _createClass(e,[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function b(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function k(e){return"undefined"!=typeof Blob&&e instanceof Blob}function C(e){return"undefined"!=typeof FormData&&e instanceof FormData}var w=function(){function e(t,n,i,r){var o;if(_classCallCheck(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new f),this.context||(this.context=new y),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,u=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,l=n.headers||this.headers,c=n.params||this.params,h=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},l)),n.setParams&&(c=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},c)),new e(i,r,a,{params:c,headers:l,context:h,reportProgress:u,responseType:o,withCredentials:s})}}]),e}(),x=((x=x||{})[x.Sent=0]="Sent",x[x.UploadProgress=1]="UploadProgress",x[x.ResponseHeader=2]="ResponseHeader",x[x.DownloadProgress=3]="DownloadProgress",x[x.Response=4]="Response",x[x.User=5]="User",x),E=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,e),this.headers=t.headers||new f,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},S=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=x.ResponseHeader,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(E),O=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=x.Response,e.body=void 0!==i.body?i.body:null,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(E),A=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(E);function T(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var P,I=((P=function(){function e(t){_classCallCheck(this,e),this.handler=t}return _createClass(e,[{key:"request",value:function(e,t){var n,i,r,a=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof w?n=e:(i=c.headers instanceof f?c.headers:new f(c.headers),c.params&&(r=c.params instanceof g?c.params:new g({fromObject:c.params})),n=new w(e,t,void 0!==c.body?c.body:null,{headers:i,context:c.context,params:r,reportProgress:c.reportProgress,responseType:c.responseType||"json",withCredentials:c.withCredentials}));var h=(0,o.of)(n).pipe((0,s.b)(function(e){return a.handler.handle(e)}));if(e instanceof w||"events"===c.observe)return h;var d=h.pipe((0,u.h)(function(e){return e instanceof O}));switch(c.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return d.pipe((0,l.U)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return d.pipe((0,l.U)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return d.pipe((0,l.U)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return d.pipe((0,l.U)(function(e){return e.body}))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type ".concat(c.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new g).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,T(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,T(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,T(n,t))}}]),e}()).\u0275fac=function(e){return new(e||P)(r.LFG(c))},P.\u0275prov=r.Yz7({token:P,factory:P.\u0275fac}),P),R=function(){function e(t,n){_classCallCheck(this,e),this.next=t,this.interceptor=n}return _createClass(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),D=new r.OlP("HTTP_INTERCEPTORS"),M=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),L=/^\)\]\}',?\n/,F=function(){var e=function(){function e(t){_classCallCheck(this,e),this.xhrFactory=t}return _createClass(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new a.y(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new f(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new S({headers:r,status:t,statusText:n,url:o})},l=function(){var t=u(),r=t.headers,o=t.status,a=t.statusText,s=t.url,l=null;204!==o&&(l=void 0===i.response?i.responseText:i.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof l){var h=l;l=l.replace(L,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=h,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new O({body:l,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new A({error:l,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=u().url,r=new A({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},h=!1,d=function(t){h||(n.next(u()),h=!0);var r={type:x.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&!!i.responseText&&(r.partialText=i.responseText),n.next(r)},p=function(e){var t={type:x.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",d),null!==a&&i.upload&&i.upload.addEventListener("progress",p)),i.send(a),n.next({type:x.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",d),null!==a&&i.upload&&i.upload.removeEventListener("progress",p)),i.readyState!==i.DONE&&i.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.JF))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),N=new r.OlP("XSRF_COOKIE_NAME"),B=new r.OlP("XSRF_HEADER_NAME"),U=function e(){_classCallCheck(this,e)},Z=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.K0),r.LFG(r.Lbi),r.LFG(N))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),j=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.tokenService=t,this.headerName=n}return _createClass(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null!==i&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(U),r.LFG(B))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),q=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.backend=t,this.injector=n,this.chain=null}return _createClass(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(D,[]);this.chain=t.reduceRight(function(e,t){return new R(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(h),r.LFG(r.zs3))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),V=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:j,useClass:M}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:N,useValue:t.cookieName}:[],t.headerName?{provide:B,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[j,{provide:D,useExisting:j,multi:!0},{provide:U,useClass:Z},{provide:N,useValue:"XSRF-TOKEN"},{provide:B,useValue:"X-XSRF-TOKEN"}]}),e}(),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[I,{provide:c,useClass:q},F,{provide:h,useExisting:F}],imports:[[V.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}()},3018:function(e,t,n){"use strict";n.d(t,{deG:function(){return ln},tb:function(){return Gu},AFp:function(){return qu},ip1:function(){return Zu},CZH:function(){return ju},hGG:function(){return Ul},z2F:function(){return Tl},sBO:function(){return zs},Sil:function(){return rl},_Vd:function(){return vs},EJc:function(){return Qu},SBq:function(){return ys},qLn:function(){return Ri},vpe:function(){return ku},gxx:function(){return ko},tBr:function(){return Fn},XFs:function(){return R},OlP:function(){return un},zs3:function(){return Lo},ZZ4:function(){return Bs},aQg:function(){return Zs},soG:function(){return Wu},YKP:function(){return eu},v3s:function(){return Il},h0i:function(){return $s},PXZ:function(){return xl},R0b:function(){return sl},FiY:function(){return Nn},Lbi:function(){return Yu},g9A:function(){return zu},n_E:function(){return wu},Qsj:function(){return Cs},FYo:function(){return ks},JOm:function(){return Li},Tiy:function(){return xs},q3G:function(){return wi},tp0:function(){return Bn},EAV:function(){return Ml},Rgc:function(){return Qs},dDg:function(){return pl},DyG:function(){return cn},GfV:function(){return Es},s_b:function(){return nu},ifc:function(){return N},eFA:function(){return El},G48:function(){return Cl},Gpc:function(){return v},f3M:function(){return Tn},X6Q:function(){return kl},_c5:function(){return Nl},VLi:function(){return _l},c2e:function(){return Ku},zSh:function(){return wo},wAp:function(){return ns},vHH:function(){return g},EiD:function(){return ki},mCW:function(){return oi},qzn:function(){return Kn},JVY:function(){return Qn},pB0:function(){return ei},eBb:function(){return Xn},L6k:function(){return Jn},LAX:function(){return $n},cg1:function(){return $a},Tjo:function(){return Fl},kL8:function(){return es},yhl:function(){return Wn},dqk:function(){return q},sIi:function(){return zo},CqO:function(){return ca},QGY:function(){return ua},F4k:function(){return la},RDi:function(){return Oe},AaK:function(){return f},z3N:function(){return Gn},qOj:function(){return No},TTD:function(){return ye},_Bn:function(){return fs},xp6:function(){return Cr},uIk:function(){return Wo},Tol:function(){return Pa},Gre:function(){return Ga},ekj:function(){return Ta},Suo:function(){return Lu},Xpm:function(){return $},lG2:function(){return ae},Yz7:function(){return C},cJS:function(){return w},oAB:function(){return ie},Yjl:function(){return se},Y36:function(){return $o},_UZ:function(){return ra},BQk:function(){return aa},ynx:function(){return oa},qZA:function(){return ia},TgZ:function(){return na},EpF:function(){return sa},n5z:function(){return nn},Ikx:function(){return Ka},LFG:function(){return An},$8M:function(){return on},NdJ:function(){return ha},CRH:function(){return Fu},kcU:function(){return kt},O4$:function(){return bt},oxw:function(){return _a},ALo:function(){return gu},lcZ:function(){return yu},Hsn:function(){return ya},F$t:function(){return ga},Q6J:function(){return ea},s9C:function(){return ba},VKq:function(){return _u},iGM:function(){return Du},MAs:function(){return Xo},CHM:function(){return Ye},oJD:function(){return xi},LSH:function(){return Ei},kYT:function(){return re},Udp:function(){return Aa},WFA:function(){return fa},d8E:function(){return Wa},YNc:function(){return Jo},_uU:function(){return qa},Oqu:function(){return Va},hij:function(){return Ha},AsE:function(){return za},lnq:function(){return Ya},Gf:function(){return Mu}});var i=n(9765),r=n(5319),o=n(7574),a=n(6682),s=n(2441),u=n(1307);function l(){return new i.xQ}function c(e){for(var t in e)if(e[t]===c)return t;throw Error("Could not find renamed property on target object.")}function h(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function f(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(f).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function d(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var p=c({__forward_ref__:c});function v(e){return e.__forward_ref__=v,e.toString=function(){return f(this())},e}function _(e){return m(e)?e():e}function m(e){return"function"==typeof e&&e.hasOwnProperty(p)&&e.__forward_ref__===v}var g=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(_wrapNativeSuper(Error));function y(e){return"string"==typeof e?e:null==e?"":String(e)}function b(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():y(e)}function k(e,t){var n=t?" in ".concat(t):"";throw new g("201","No provider for ".concat(b(e)," found").concat(n))}function C(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function w(e){return{providers:e.providers||[],imports:e.imports||[]}}function x(e){return E(e,A)||E(e,P)}function E(e,t){return e.hasOwnProperty(t)?e[t]:null}function S(e){return e&&(e.hasOwnProperty(T)||e.hasOwnProperty(I))?e[T]:null}var O,A=c({"\u0275prov":c}),T=c({"\u0275inj":c}),P=c({ngInjectableDef:c}),I=c({ngInjectorDef:c}),R=((R=R||{})[R.Default=0]="Default",R[R.Host=1]="Host",R[R.Self=2]="Self",R[R.SkipSelf=4]="SkipSelf",R[R.Optional=8]="Optional",R);function D(e){var t=O;return O=e,t}function M(e,t,n){var i=x(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&R.Optional?null:void 0!==t?t:void k(f(e),"Injector")}function L(e){return{toString:e}.toString()}var F=((F=F||{})[F.OnPush=0]="OnPush",F[F.Default=1]="Default",F),N=((N=N||{})[N.Emulated=0]="Emulated",N[N.None=2]="None",N[N.ShadowDom=3]="ShadowDom",N),B="undefined"!=typeof globalThis&&globalThis,U="undefined"!=typeof window&&window,Z="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,q=B||j||U||Z,V={},H=[],z=c({"\u0275cmp":c}),Y=c({"\u0275dir":c}),G=c({"\u0275pipe":c}),K=c({"\u0275mod":c}),W=c({"\u0275loc":c}),Q=c({"\u0275fac":c}),J=c({__NG_ELEMENT_ID__:c}),X=0;function $(e){return L(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===F.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||H,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||N.Emulated,id:"c",styles:e.styles||H,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=X++,n.inputs=oe(e.inputs,t),n.outputs=oe(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(ee)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(te)}:null,n})}function ee(e){return ue(e)||function(e){return e[Y]||null}(e)}function te(e){return function(e){return e[G]||null}(e)}var ne={};function ie(e){return L(function(){var t={type:e.type,bootstrap:e.bootstrap||H,declarations:e.declarations||H,imports:e.imports||H,exports:e.exports||H,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ne[e.id]=e.type),t})}function re(e,t){return L(function(){var n=le(e,!0);n.declarations=t.declarations||H,n.imports=t.imports||H,n.exports=t.exports||H})}function oe(e,t){if(null==e)return V;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var ae=$;function se(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ue(e){return e[z]||null}function le(e,t){var n=e[K]||null;if(!n&&!0===t)throw new Error("Type ".concat(f(e)," does not have '\u0275mod' property."));return n}function ce(e){return Array.isArray(e)&&"object"==typeof e[1]}function he(e){return Array.isArray(e)&&!0===e[1]}function fe(e){return 0!=(8&e.flags)}function de(e){return 2==(2&e.flags)}function pe(e){return 1==(1&e.flags)}function ve(e){return null!==e.template}function _e(e){return 0!=(512&e[2])}function me(e,t){return e.hasOwnProperty(Q)?e[Q]:null}var ge=function(){function e(t,n,i){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function ye(){return be}function be(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ce),ke}function ke(){var e=xe(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===V)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Ce(e,t,n,i){var r=xe(e)||function(e,t){return e[we]=t}(e,{previous:V,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],u=a[s];o[s]=new ge(u&&u.currentValue,t,a===V),e[i]=t}ye.ngInherit=!0;var we="__ngSimpleChanges__";function xe(e){return e[we]||null}var Ee,Se="http://www.w3.org/2000/svg";function Oe(e){Ee=e}function Ae(){return void 0!==Ee?Ee:"undefined"!=typeof document?document:void 0}function Te(e){return!!e.listen}var Pe={createRenderer:function(e,t){return Ae()}};function Ie(e){for(;Array.isArray(e);)e=e[0];return e}function Re(e,t){return Ie(t[e])}function De(e,t){return Ie(t[e.index])}function Me(e,t){return e.data[t]}function Le(e,t){return e[t]}function Fe(e,t){var n=t[e];return ce(n)?n:n[0]}function Ne(e){return 4==(4&e[2])}function Be(e){return 128==(128&e[2])}function Ue(e,t){return null==t?null:e[t]}function Ze(e){e[18]=0}function je(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var qe={lFrame:dt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ve(){return qe.bindingsEnabled}function He(){return qe.lFrame.lView}function ze(){return qe.lFrame.tView}function Ye(e){return qe.lFrame.contextLView=e,e[8]}function Ge(){for(var e=Ke();null!==e&&64===e.type;)e=e.parent;return e}function Ke(){return qe.lFrame.currentTNode}function We(e,t){var n=qe.lFrame;n.currentTNode=e,n.isParent=t}function Qe(){return qe.lFrame.isParent}function Je(){qe.lFrame.isParent=!1}function Xe(){return qe.isInCheckNoChangesMode}function $e(e){qe.isInCheckNoChangesMode=e}function et(){var e=qe.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function tt(){return qe.lFrame.bindingIndex}function nt(){return qe.lFrame.bindingIndex++}function it(e){var t=qe.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function rt(e,t){var n=qe.lFrame;n.bindingIndex=n.bindingRootIndex=e,ot(t)}function ot(e){qe.lFrame.currentDirectiveIndex=e}function at(e){var t=qe.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function st(){return qe.lFrame.currentQueryIndex}function ut(e){qe.lFrame.currentQueryIndex=e}function lt(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function ct(e,t,n){if(n&R.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&R.Host||(i=lt(r),null===i||(r=r[15],10&i.type))););if(null===i)return!1;t=i,e=r}var o=qe.lFrame=ft();return o.currentTNode=t,o.lView=e,!0}function ht(e){var t=ft(),n=e[1];qe.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ft(){var e=qe.lFrame,t=null===e?null:e.child;return null===t?dt(e):t}function dt(e){var t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function pt(){var e=qe.lFrame;return qe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var vt=pt;function _t(){var e=pt();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function mt(){return qe.lFrame.selectedIndex}function gt(e){qe.lFrame.selectedIndex=e}function yt(){var e=qe.lFrame;return Me(e.tView,e.selectedIndex)}function bt(){qe.lFrame.currentNamespace=Se}function kt(){qe.lFrame.currentNamespace=null}function Ct(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[s]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var At=function e(t,n,i){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Tt(e,t,n){for(var i=Te(e),r=0;rt){a=o-1;break}}}for(;o>16}(e),i=t;n>0;)i=i[15],n--;return i}var Nt=!0;function Bt(e){var t=Nt;return Nt=e,t}var Ut=0;function Zt(e,t){var n=qt(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,jt(i.data,e),jt(t,null),jt(i.blueprint,null));var r=Vt(e,t),o=e.injectorIndex;if(Mt(r))for(var a=Lt(r),s=Ft(r,t),u=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|u[a+l];return t[o+8]=r,o}function jt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function qt(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Vt(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Ht(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(i=n[J]),null==i&&(i=n[J]=Ut++);var r=255&i;t.data[e+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:R.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(J)?e[J]:void 0;return"number"==typeof t?t>=0?255&t:Wt:t}(n);if("function"==typeof o){if(!ct(t,e,i))return i&R.Host?zt(r,n,i):Yt(t,n,i,r);try{var a=o(i);if(null!=a||i&R.Optional)return a;k(n)}finally{vt()}}else if("number"==typeof o){var s=null,u=qt(e,t),l=-1,c=i&R.Host?t[16][6]:null;for((-1===u||i&R.SkipSelf)&&(-1!==(l=-1===u?Vt(e,t):t[u+8])&&en(i,!1)?(s=t[1],u=Lt(l),t=Ft(l,t)):u=-1);-1!==u;){var h=t[1];if($t(o,u,h.data)){var f=Qt(u,t,n,s,i,c);if(f!==Kt)return f}-1!==(l=t[u+8])&&en(i,t[1].data[u+8]===c)&&$t(o,u,t)?(s=h,u=Lt(l),t=Ft(l,t)):u=-1}}}return Yt(t,n,i,r)}var Kt={};function Wt(){return new tn(Ge(),He())}function Qt(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],u=Jt(s,a,n,null==i?de(s)&&Nt:i!=a&&0!=(3&s.type),r&R.Host&&o===s);return null!==u?Xt(t,a,u,s):Kt}function Jt(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,l=o>>20,c=r?s+l:e.directiveEnd,h=i?s:s+l;h=u&&f.type===n)return h}if(r){var d=a[u];if(d&&ve(d)&&d.type===n)return u}return null}function Xt(e,t,n,i){var r=e[n],o=t.data;if(function(e){return e instanceof At}(r)){var a=r;a.resolving&&function(e,t){throw new g("200","Circular dependency in DI detected for ".concat(e))}(b(o[n]));var s=Bt(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?D(a.injectImpl):null;ct(e,i,R.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,o=i.ngOnInit,a=i.ngDoCheck;if(r){var s=be(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==u&&D(u),Bt(s),a.resolving=!1,vt()}}return r}function $t(e,t,n){return!!(n[t+(e>>5)]&1<=e.length?e.push(n):e.splice(t,0,n)}function pn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function vn(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function mn(e,t){var n=gn(e,t);if(n>=0)return e[1|n]}function gn(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var yn,bn={},kn="__NG_DI_FLAG__",Cn="ngTempTokenPath",wn=/\n/gm,xn="__source",En=c({provide:String,useValue:c});function Sn(e){var t=yn;return yn=e,t}function On(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.Default;if(void 0===yn)throw new Error("inject() must be called from an injection context");return null===yn?M(e,void 0,t):yn.get(e,t&R.Optional?null:void 0,t)}function An(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.Default;return(O||On)(_(e),t)}var Tn=An;function Pn(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=f(t);if(Array.isArray(t))r=t.map(f).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):f(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(wn,"\n "))}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[Cn]=null,e}var Mn,Ln,Fn=In(sn("Inject",function(e){return{token:e}}),-1),Nn=In(sn("Optional"),8),Bn=In(sn("SkipSelf"),4);function Un(e){var t;return(null===(t=function(){if(void 0===Mn&&(Mn=null,q.trustedTypes))try{Mn=q.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(e){}return Mn}())||void 0===t?void 0:t.createHTML(e))||e}function Zn(e){var t;return(null===(t=function(){if(void 0===Ln&&(Ln=null,q.trustedTypes))try{Ln=q.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(e){}return Ln}())||void 0===t?void 0:t.createHTML(e))||e}var jn=function(){function e(t){_classCallCheck(this,e),this.changingThisBreaksApplicationSecurity=t}return _createClass(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity," (see https://g.co/ng/security#xss)")}}]),e}(),qn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(jn),Vn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(jn),Hn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(jn),zn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(jn),Yn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(jn);function Gn(e){return e instanceof jn?e.changingThisBreaksApplicationSecurity:e}function Kn(e,t){var n=Wn(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function Wn(e){return e instanceof jn&&e.getTypeName()||null}function Qn(e){return new qn(e)}function Jn(e){return new Vn(e)}function Xn(e){return new Hn(e)}function $n(e){return new zn(e)}function ei(e){return new Yn(e)}var ti=function(){function e(t){_classCallCheck(this,e),this.inertDocumentHelper=t}return _createClass(e,[{key:"getInertBodyElement",value:function(e){e=""+e;try{var t=(new window.DOMParser).parseFromString(Un(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}]),e}(),ni=function(){function e(t){if(_classCallCheck(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return _createClass(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Un(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Un(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();fi.hasOwnProperty(t)&&!li.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(bi(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),gi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yi=/([^\#-~ |!])/g;function bi(e){return e.replace(/&/g,"&").replace(gi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(yi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function ki(e,t){var n=null;try{ui=ui||function(e){var t=new ni(e);return function(){try{return!!(new window.DOMParser).parseFromString(Un(""),"text/html")}catch(e){return!1}}()?new ti(t):t}(e);var i=t?String(t):"";n=ui.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=ui.getInertBodyElement(i)}while(i!==o);return Un((new mi).sanitizeChildren(Ci(n)||n))}finally{if(n)for(var a=Ci(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Ci(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var wi=((wi=wi||{})[wi.NONE=0]="NONE",wi[wi.HTML=1]="HTML",wi[wi.STYLE=2]="STYLE",wi[wi.SCRIPT=3]="SCRIPT",wi[wi.URL=4]="URL",wi[wi.RESOURCE_URL=5]="RESOURCE_URL",wi);function xi(e){var t=Si();return t?Zn(t.sanitize(wi.HTML,e)||""):Kn(e,"HTML")?Zn(Gn(e)):ki(Ae(),y(e))}function Ei(e){var t=Si();return t?t.sanitize(wi.URL,e)||"":Kn(e,"URL")?Gn(e):oi(y(e))}function Si(){var e=He();return e&&e[12]}var Oi="__ngContext__";function Ai(e,t){e[Oi]=t}function Ti(e){var t=function(e){return e[Oi]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Pi(e){return e.ngOriginalError}function Ii(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&(e[n-1][4]=i[4]);var o=pn(e,10+t);!function(e,t){or(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);var a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function zi(e,t){if(!(256&t[2])){var n=t[11];Te(n)&&n.destroyNode&&or(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Yi(e[1],e);for(;t;){var n=null;if(ce(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)ce(t)&&Yi(t[1],t),t=t[3];null===t&&(t=e),ce(t)&&Yi(t[1],t),n=t&&t[4]}t=n}}(t)}}function Yi(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i=0?i[r=l]():i[r=-l].unsubscribe(),o+=2}else{var c=i[r=n[o+1]];n[o].call(c)}if(null!==i){for(var h=r+1;ho?"":r[c+1].toLowerCase();var f=8&i?h:null;if(f&&-1!==lr(f,l,0)||2&i&&l!==h){if(vr(i))return!1;a=!0}}}}else{if(!a&&!vr(i)&&!vr(u))return!1;if(a&&vr(u))continue;a=!1,i=u|1&i}}return vr(i)||a}function vr(e){return 0==(1&e)}function _r(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!vr(a)&&(t+=yr(o,r),r=""),i=a,o=o||!vr(i);n++}return""!==r&&(t+=yr(o,r)),t}var kr={};function Cr(e){wr(ze(),He(),mt()+e,Xe())}function wr(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&wt(t,r,n)}else{var o=e.preOrderHooks;null!==o&&xt(t,o,0,n)}gt(n)}function xr(e,t){return e<<17|t<<2}function Er(e){return e>>17&32767}function Sr(e){return 2|e}function Or(e){return(131068&e)>>2}function Ar(e,t){return-131069&e|t<<2}function Tr(e){return 1|e}function Pr(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&wr(e,t,20,Xe()),n(i,r)}finally{gt(o)}}function Br(e,t,n){if(fe(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:De,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(i,r,a)}}function Kr(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Wr(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Qr(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&ro(n)}}function ro(e){for(var t=Bi(e);null!==t;t=Ui(t))for(var n=10;n0&&ro(i)}var o=e[1].components;if(null!==o)for(var a=0;a0&&ro(s)}}function oo(e,t){var n=Fe(t,e),i=n[1];(function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:bn;if(t===bn){var n=new Error("NullInjectorError: No provider for ".concat(f(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),wo=new un("Set Injector scope."),xo={},Eo={};function So(){return void 0===bo&&(bo=new Co),bo}function Oo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Ao(e,n,t||So(),i)}var Ao=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&fn(n,function(e){return r.processProvider(e,t,n)}),fn([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(ko,Io(void 0,this));var s=this.records.get(wo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:f(t))}return _createClass(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.Default;this.assertNotDestroyed();var i,r=Sn(this),o=D(void 0);try{if(!(n&R.SkipSelf)){var a=this.records.get(e);if(void 0===a){var s=("function"==typeof(i=e)||"object"==typeof i&&i instanceof un)&&x(e);a=s&&this.injectableDefInScope(s)?Io(To(e),xo):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(n&R.Self?So():this.parent).get(e,t=n&R.Optional&&t===bn?null:t)}catch(u){if("NullInjectorError"===u.name){if((u[Cn]=u[Cn]||[]).unshift(f(e)),r)throw u;return Dn(u,e,"R3InjectorError",this.source)}throw u}finally{D(o),Sn(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(f(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=_(e)))return!1;var r=S(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=S(o)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(a);try{fn(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,r=t.providers;fn(r,function(e){return i.processProvider(e,n,r||H)})},c=0;c0){var n=vn(t,"?");throw new Error("Can't resolve all parameters for ".concat(f(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[A]||e[P]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" 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 "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Po(e,t,n){var i;if(Do(e)){var r=_(e);return me(r)||To(r)}if(Ro(e))i=function(){return _(e.useValue)};else if(function(e){return!(!e||!e.useFactory)}(e))i=function(){return e.useFactory.apply(e,_toConsumableArray(Pn(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return An(_(e.useExisting))};else{var o=_(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return me(o)||To(o);i=function(){return _construct(o,_toConsumableArray(Pn(e.deps)))}}return i}function Io(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Ro(e){return null!==e&&"object"==typeof e&&En in e}function Do(e){return"function"==typeof e}var Mo=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=Oo(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},Lo=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Mo(e,t,""):Mo(e.providers,e.parent,e.name||"")}}]),e}();function Fo(e,t){Ct(Ti(e)[1],Ge())}function No(e){for(var t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0,i=[e];t;){var r=void 0;if(ve(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=Bo(e.inputs),o.declaredInputs=Bo(e.declaredInputs),o.outputs=Bo(e.outputs);var a=r.hostBindings;a&&jo(e,a);var s=r.viewQuery,u=r.contentQueries;if(s&&Uo(e,s),u&&Zo(e,u),h(e.inputs,r.inputs),h(e.declaredInputs,r.declaredInputs),h(e.outputs,r.outputs),ve(r)&&r.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var f=0;f=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Rt(r.hostAttrs,n=Rt(n,r.hostAttrs))}}(i)}function Bo(e){return e===V?{}:e===H?[]:e}function Uo(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function Zo(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function jo(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}Lo.THROW_IF_NOT_FOUND=bn,Lo.NULL=new Co,Lo.\u0275prov=C({token:Lo,providedIn:"any",factory:function(){return An(ko)}}),Lo.__NG_ELEMENT_ID__=-1;var qo=null;function Vo(){if(!qo){var e=q.Symbol;if(e&&e.iterator)qo=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:R.Default,n=He();return null===n?An(e,t):Gt(Ge(),n,_(e),t)}function ea(e,t,n){var i=He();return Go(i,nt(),t)&&zr(ze(),yt(),i,e,t,i[11],n,!1),ea}function ta(e,t,n,i,r){var o=r?"class":"style";mo(e,n,t.inputs[o],o,i)}function na(e,t,n,i){var r=He(),o=ze(),a=20+e,s=r[11],u=r[a]=qi(s,t,qe.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,u=Rr(t,e,2,r,Ue(s,o));return Yr(t,n,u,Ue(s,a)),null!==u.attrs&&yo(u,u.attrs,!1),null!==u.mergedAttrs&&yo(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,o,r,0,t,n,i):o.data[a];We(l,!0);var c=l.mergedAttrs;null!==c&&Tt(s,u,c);var h=l.classes;null!==h&&ur(s,u,h);var f=l.styles;null!==f&&sr(s,u,f),64!=(64&l.flags)&&er(o,r,u,l),0===qe.lFrame.elementDepthCount&&Ai(u,r),qe.lFrame.elementDepthCount++,pe(l)&&(Ur(o,r,l),Br(o,l,r)),null!==i&&Zr(r,l)}function ia(){var e=Ge();Qe()?Je():We(e=e.parent,!1);var t=e;qe.lFrame.elementDepthCount--;var n=ze();n.firstCreatePass&&(Ct(n,e),fe(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&ta(n,t,He(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&ta(n,t,He(),t.stylesWithoutHost,!1)}function ra(e,t,n,i){na(e,t,n,i),ia()}function oa(e,t,n){var i=He(),r=ze(),o=e+20,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=Ue(o,i),s=Rr(t,e,8,"ng-container",a);return null!==a&&yo(s,a,!0),Yr(t,n,s,Ue(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,r,i,t,n):r.data[o];We(a,!0);var s=i[o]=i[11].createComment("");er(r,i,s,a),Ai(s,i),pe(a)&&(Ur(r,i,a),Br(r,a,i)),null!=n&&Zr(i,a)}function aa(){var e=Ge(),t=ze();Qe()?Je():We(e=e.parent,!1),t.firstCreatePass&&(Ct(t,e),fe(e)&&t.queries.elementEnd(e))}function sa(){return He()}function ua(e){return!!e&&"function"==typeof e.then}function la(e){return!!e&&"function"==typeof e.subscribe}var ca=la;function ha(e,t,n,i){var r=He(),o=ze(),a=Ge();return da(o,r,r[11],a,e,t,!!n,i),ha}function fa(e,t){var n=Ge(),i=He(),r=ze();return da(r,i,vo(at(r.data),n,i),n,e,t,!1),fa}function da(e,t,n,i,r,o,a,s){var u=pe(i),l=e.firstCreatePass&&po(e),c=t[8],h=fo(t),f=!0;if(3&i.type||s){var d=De(i,t),p=s?s(d):d,v=h.length,_=s?function(e){return s(Ie(e[i.index]))}:i.index;if(Te(n)){var m=null;if(!s&&u&&(m=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,f=!1;else{o=va(i,t,c,o,!1);var g=n.listen(p,r,o);h.push(o,g),l&&l.push(r,_,v,v+1)}}else o=va(i,t,c,o,!0),p.addEventListener(r,o,a),h.push(o),l&&l.push(r,_,v,a)}else o=va(i,t,c,o,!1);var y,b=i.outputs;if(f&&null!==b&&(y=b[r])){var k=y.length;if(k)for(var C=0;C0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(qe.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,qe.lFrame.contextLView))[8]}(e)}function ma(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=He(),r=ze(),o=Rr(r,20+e,16,null,n||null);null===o.projection&&(o.projection=t),Je(),64!=(64&o.flags)&&function(e,t,n){ar(t[11],0,t,n,Gi(e,n,t),Xi(n.parent||t[6],n,t))}(r,i,o)}function ba(e,t,n){return ka(e,"",t,"",n),ba}function ka(e,t,n,i,r){var o=He(),a=Qo(o,t,n,i);return a!==kr&&zr(ze(),yt(),o,e,a,o[11],r,!1),ka}function Ca(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?Er(o):Or(o),u=!1;0!==s&&(!1===u||a);){var l=e[s+1];wa(e[s],t)&&(u=!0,e[s+1]=i?Tr(l):Sr(l)),s=i?Er(l):Or(l)}u&&(e[n+1]=i?Sr(o):Tr(o))}function wa(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&gn(e,t)>=0}var xa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ea(e){return e.substring(xa.key,xa.keyEnd)}function Sa(e,t){var n=xa.textEnd;return n===t?-1:(t=xa.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,xa.key=t,n),Oa(e,t,n))}function Oa(e,t,n){for(;t=0;n=Sa(t,n))_n(e,Ea(t),!0)}function Ra(e,t,n,i){var r=He(),o=ze(),a=it(2);o.firstUpdatePass&&La(o,e,a,i),t!==kr&&Go(r,a,t)&&Ba(o,o.data[mt()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=f(Gn(e)))),e}(t,n),i,a)}function Da(e,t,n,i){var r=ze(),o=it(2);r.firstUpdatePass&&La(r,null,o,i);var a=He();if(n!==kr&&Go(a,o,n)){var s=r.data[mt()];if(ja(s,i)&&!Ma(r,o)){var u=i?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(n=d(u,n||"")),ta(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===kr&&(r=H);for(var u=0,l=0,c=0=e.expandoStartIndex}function La(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[mt()],a=Ma(e,n);ja(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=at(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Na(n=Fa(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=Fa(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Or(i))return e[Er(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[Er(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Na(s=Fa(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i,r=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else l=n;if(r)if(0!==u){var f=Er(e[s+1]);e[i+1]=xr(f,s),0!==f&&(e[f+1]=Ar(e[f+1],i)),e[s+1]=function(e,t){return 131071&e|t<<17}(e[s+1],i)}else e[i+1]=xr(s,0),0!==s&&(e[s+1]=Ar(e[s+1],i)),s=i;else e[i+1]=xr(u,0),0===s?s=i:e[u+1]=Ar(e[u+1],i),u=i;c&&(e[i+1]=Sr(e[i+1])),Ca(e,l,i,!0),Ca(e,l,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&gn(o,t)>=0&&(n[i+1]=Tr(n[i+1]))}(t,l,e,i,o),a=xr(s,u),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function Fa(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[r],l=Array.isArray(u),c=l?u[1]:u,h=null===c,f=n[r+1];f===kr&&(f=h?H:void 0);var d=h?mn(f,i):c===i?f:void 0;if(l&&!Za(d)&&(d=mn(u,i)),Za(d)&&(a=d,s))return a;var p=e[r+1];r=s?Er(p):Or(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(a=mn(v,i))}return a}function Za(e){return void 0!==e}function ja(e,t){return 0!=(e.flags&(t?16:32))}function qa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=He(),i=ze(),r=e+20,o=i.firstCreatePass?Rr(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return Te(e)?e.createText(t):e.createTextNode(t)}(n[11],t);er(i,n,a,o),We(o,!1)}function Va(e){return Ha("",e,""),Va}function Ha(e,t,n){var i=He(),r=Qo(i,e,t,n);return r!==kr&&go(i,mt(),r),Ha}function za(e,t,n,i,r){var o=He(),a=function(e,t,n,i,r,o){var a=Ko(e,tt(),n,r);return it(2),a?t+y(n)+i+y(r)+o:kr}(o,e,t,n,i,r);return a!==kr&&go(o,mt(),a),za}function Ya(e,t,n,i,r,o,a){var s=He(),u=function(e,t,n,i,r,o,a,s){var u=function(e,t,n,i,r){var o=Ko(e,t,n,i);return Go(e,t+2,r)||o}(e,tt(),n,r,a);return it(3),u?t+y(n)+i+y(r)+o+y(a)+s:kr}(s,e,t,n,i,r,o,a);return u!==kr&&go(s,mt(),u),Ya}function Ga(e,t,n){Da(_n,Ia,Qo(He(),e,t,n),!0)}function Ka(e,t,n){var i=He();return Go(i,nt(),t)&&zr(ze(),yt(),i,e,t,i[11],n,!0),Ka}function Wa(e,t,n){var i=He();if(Go(i,nt(),t)){var r=ze(),o=yt();zr(r,o,i,e,t,vo(at(r.data),o,i),n,!0)}return Wa}var Qa=void 0,Ja=["en",[["a","p"],["AM","PM"],Qa],[["AM","PM"],Qa,Qa],[["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"]],Qa,[["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"]],Qa,[["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}",Qa,"{1} 'at' {0}",Qa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Xa={};function $a(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=ts(t);if(n)return n;var i=t.split("-")[0];if(n=ts(i))return n;if("en"===i)return Ja;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function es(e){return $a(e)[ns.PluralCase]}function ts(e){return e in Xa||(Xa[e]=q.ng&&q.ng.common&&q.ng.common.locales&&q.ng.common.locales[e]),Xa[e]}var ns=((ns=ns||{})[ns.LocaleId=0]="LocaleId",ns[ns.DayPeriodsFormat=1]="DayPeriodsFormat",ns[ns.DayPeriodsStandalone=2]="DayPeriodsStandalone",ns[ns.DaysFormat=3]="DaysFormat",ns[ns.DaysStandalone=4]="DaysStandalone",ns[ns.MonthsFormat=5]="MonthsFormat",ns[ns.MonthsStandalone=6]="MonthsStandalone",ns[ns.Eras=7]="Eras",ns[ns.FirstDayOfWeek=8]="FirstDayOfWeek",ns[ns.WeekendRange=9]="WeekendRange",ns[ns.DateFormat=10]="DateFormat",ns[ns.TimeFormat=11]="TimeFormat",ns[ns.DateTimeFormat=12]="DateTimeFormat",ns[ns.NumberSymbols=13]="NumberSymbols",ns[ns.NumberFormats=14]="NumberFormats",ns[ns.CurrencyCode=15]="CurrencyCode",ns[ns.CurrencySymbol=16]="CurrencySymbol",ns[ns.CurrencyName=17]="CurrencyName",ns[ns.Currencies=18]="Currencies",ns[ns.Directionality=19]="Directionality",ns[ns.PluralCase=20]="PluralCase",ns[ns.ExtraData=21]="ExtraData",ns),is="en-US";function rs(e){(function(e,t){null==e&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(t,e)})(e,"Expected localeId to be defined"),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function os(e,t,n,i,r){if(e=_(e),Array.isArray(e))for(var o=0;o>20;if(Do(e)||!e.multi){var p=new At(l,r,$o),v=us(u,t,r?h:h+d,f);-1===v?(Ht(Zt(c,s),a,u),as(a,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var m=us(u,t,h+d,f),g=us(u,t,h,h+d),y=m>=0&&n[m],b=g>=0&&n[g];if(r&&!b||!r&&!y){Ht(Zt(c,s),a,u);var k=function(e,t,n,i,r){var o=new At(e,n,$o);return o.multi=[],o.index=t,o.componentProviders=0,ss(o,r,i&&!n),o}(r?cs:ls,n.length,r,i,l);!r&&b&&(n[g].providerFactory=k),as(a,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(k),s.push(k)}else as(a,e,m>-1?m:g,ss(n[r?g:m],l,!r&&i));!r&&i&&b&&n[g].componentProviders++}}}function as(e,t,n,i){var r=Do(t);if(r||function(e){return!!e.useClass}(t)){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function ss(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function us(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=ze();if(i.firstCreatePass){var r=ve(e);os(n,i.data,i.blueprint,r,!0),os(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var ds=function e(){_classCallCheck(this,e)},ps=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(f(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),vs=function e(){_classCallCheck(this,e)};function _s(){}function ms(e,t){return new ys(De(e,t))}vs.NULL=new ps;var gs,ys=((gs=function e(t){_classCallCheck(this,e),this.nativeElement=t}).__NG_ELEMENT_ID__=function(){return ms(Ge(),He())},gs);function bs(e){return e instanceof ys?e.nativeElement:e}var ks=function e(){_classCallCheck(this,e)},Cs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return ws()},e}(),ws=function(){var e=He(),t=Fe(Ge().index,e);return function(e){return e[11]}(ce(t)?t:e)},xs=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=C({token:e,providedIn:"root",factory:function(){return null}}),e}(),Es=function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Ss=new Es("12.2.4"),Os=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return zo(e)}},{key:"create",value:function(e){return new Ts(e)}}]),e}(),As=function(e,t){return t},Ts=function(){function e(t){_classCallCheck(this,e),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=t||As}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&i.push(Ie(o)),he(o))for(var a=10;a-1&&(Hi(e,n),pn(t,n))}this._attachedToViewContainer=!1}zi(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Vr(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){so(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){uo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){$e(!0);try{uo(e,t,n)}finally{$e(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,or(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Vs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._view=e,i}return _createClass(n,[{key:"detectChanges",value:function(){lo(this._view)}},{key:"checkNoChanges",value:function(){!function(e){$e(!0);try{lo(e)}finally{$e(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(qs),Hs=function(e){return function(e,t,n){if(de(e)&&!n){var i=Fe(e.index,t);return new qs(i,i)}return 47&e.type?new qs(t[16],t):null}(Ge(),He(),16==(16&e))},zs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Hs,e}(),Ys=[new Ms],Gs=new Bs([new Os]),Ks=new Zs(Ys),Ws=function(){return Xs(Ge(),He())},Qs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Ws,e}(),Js=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return _createClass(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Ir(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Mr(t,n,e),new qs(n)}}]),n}(Qs);function Xs(e,t){return 4&e.type?new Js(t,e,ms(e,t)):null}var $s=function e(){_classCallCheck(this,e)},eu=function e(){_classCallCheck(this,e)},tu=function(){return au(Ge(),He())},nu=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=tu,e}(),iu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return _createClass(n,[{key:"element",get:function(){return ms(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new tn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=Vt(this._hostTNode,this._hostLView);if(Mt(e)){var t=Ft(e,this._hostLView),n=Lt(e);return new tn(t[1].data[n+8],t)}return new tn(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=ru(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get($s,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(he(i[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=i[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var u=this._adjustIndex(t),l=this._lContainer;!function(e,t,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(nu);function ru(e){return e[8]}function ou(e){return e[8]||(e[8]=[])}function au(e,t){var n,i=t[e.index];if(he(i))n=i;else{var r;if(8&e.type)r=Ie(i);else{var o=t[11];r=o.createComment("");var a=De(e,t);Ki(o,Ji(o,a),r,function(e,t){return Te(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=no(i,t,r,e),ao(t,n)}return new iu(n,e,t)}var su={},uu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).ngModule=e,i}return _createClass(n,[{key:"resolveComponentFactory",value:function(e){var t=ue(e);return new hu(t,this.ngModule)}}]),n}(vs);function lu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var cu=new un("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Di}}),hu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(br).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return _createClass(n,[{key:"inputs",get:function(){return lu(this.componentDef.inputs)}},{key:"outputs",get:function(){return lu(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,su,r);return o!==su||i===su?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(ks,Pe),u=a.get(xs,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Te(e))return e.selectRootElement(t,n===N.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(l,n,this.componentDef.encapsulation):qi(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?Se:"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:Di,clean:ho,playerHandler:null,flags:0},p=qr(0,null,null,1,0,null,null,null,null,null),v=Ir(null,p,d,f,null,null,s,l,u,a);ht(v);try{var _=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=Rr(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(yo(s,u,!0),null!==e&&(Tt(r,e,u),null!==s.classes&&ur(r,e,s.classes),null!==s.styles&&sr(r,e,s.styles)));var l=i.createRenderer(e,t),c=Ir(n,jr(t),null,t.onPush?64:16,n[20],s,i,l,null,null);return a.firstCreatePass&&(Ht(Zt(s,n),a,t.type),Wr(a,s),Jr(s,n.length,1)),ao(n,c),n[20]=c}(h,this.componentDef,v,s,l);if(h)if(n)Tt(l,h,["ng-version",Ss.full]);else{var m=function(e){for(var t=[],n=[],i=1,r=2;i0&&ur(l,h,y.join(" "))}if(o=Me(p,20),void 0!==t)for(var b=o.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:Lo.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.Default;return e===Lo||e===$s||e===ko?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}($s),vu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).moduleType=e,null!==le(e)&&function(e){var t=new Set;!function e(n){var i=le(n,!0),r=i.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(f(t)," vs ").concat(f(t.name)))}(r,du.get(r),n),du.set(r,n));var o,a=_createForOfIteratorHelper(Mi(i.imports));try{for(a.s();!(o=a.n()).done;){var s=o.value;t.has(s)||(t.add(s),e(s))}}catch(u){a.e(u)}finally{a.f()}}(e)}(e),i}return _createClass(n,[{key:"create",value:function(e){return new pu(this.moduleType,e)}}]),n}(eu);function _u(e,t,n,i){return mu(He(),et(),e,t,n,i)}function mu(e,t,n,i,r,o){var a=t+n;return Go(e,a,r)?function(e,t,n){return e[t]=n}(e,a+1,o?i.call(o,r):i(r)):function(e,t){var n=e[t];return n===kr?void 0:n}(e,a+1)}function gu(e,t){var n,i=ze(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new g("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=me(n.type)),a=D($o);try{var s=Bt(!1),u=o();return Bt(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,He(),r,u),u}finally{D(a)}}function yu(e,t,n){var i=e+20,r=He(),o=Le(r,i);return function(e,t){return Ho.isWrapped(t)&&(t=Ho.unwrap(t),e[tt()]=kr),t}(r,function(e,t){return e[1].data[t].pure}(r,i)?mu(r,et(),t,o.transform,n,o):o.transform(n))}function bu(e){return function(t){setTimeout(e,void 0,t)}}var ku=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=i,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var o,a,s,u=e,l=t||function(){return null},c=i;if(e&&"object"==typeof e){var h=e;u=null===(o=h.next)||void 0===o?void 0:o.bind(h),l=null===(a=h.error)||void 0===a?void 0:a.bind(h),c=null===(s=h.complete)||void 0===s?void 0:s.bind(h)}this.__isAsync&&(l=bu(l),u&&(u=bu(u)),c&&(c=bu(c)));var f=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,{next:u,error:l,complete:c});return e instanceof r.w&&e.add(f),f}}]),n}(i.xQ);function Cu(){return this._results[Vo()]()}var wu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classCallCheck(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Vo(),i=e.prototype;i[n]||(i[n]=Cu)}return _createClass(e,[{key:"changes",get:function(){return this._changes||(this._changes=new ku)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){var n=this;n.dirty=!1;var i=hn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,e),this.predicate=t,this.flags=n,this.read=i},Ou=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(a[s/2]);else{for(var l=o[s+1],c=t[-u],h=10;h0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!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,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(An(sl))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}(),vl=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,gl.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return gl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function _l(e){gl=e}var ml,gl=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),yl=!0,bl=!1;function kl(){return bl=!0,yl}function Cl(){if(bl)throw new Error("Cannot enable prod mode after platform setup.");yl=!1}var wl=new un("AllowMultipleToken"),xl=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function El(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new un(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Sl();if(!o||o.injector.get(wl,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:wo,useValue:"platform"});!function(e){if(ml&&!ml.destroyed&&!ml.injector.get(wl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ml=e.get(Ol);var t=e.get(zu,null);t&&t.forEach(function(e){return e()})}(Lo.create({providers:a,name:i}))}return function(e){var t=Sl();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Sl(){return ml&&!ml.destroyed?ml:null}var Ol=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n=this,i=function(e,t){return"noop"===e?new dl:("zone.js"===e?void 0:e)||new sl({enableLongStackTrace:kl(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)})}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),r=[{provide:sl,useValue:i}];return i.run(function(){var o=Lo.create({providers:r,parent:n.injector,name:e.moduleType.name}),a=e.create(o),s=a.injector.get(Ri,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(function(){var e=i.onError.subscribe({next:function(e){s.handleError(e)}});a.onDestroy(function(){Pl(n._modules,a),e.unsubscribe()})}),function(e,i,r){try{var o=((s=a.injector.get(ju)).runInitializers(),s.donePromise.then(function(){return rs(a.injector.get(Wu,is)||is),n._moduleDoBootstrap(a),a}));return ua(o)?o.catch(function(t){throw i.runOutsideAngular(function(){return e.handleError(t)}),t}):o}catch(t){throw i.runOutsideAngular(function(){return e.handleError(t)}),t}var s}(s,i)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Al({},n);return function(e,t,n){var i=new vu(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Tl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(f(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(An(Lo))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Al(e,t){return Array.isArray(t)?t.reduce(Al,e):Object.assign(Object.assign({},e),t)}var Tl=function(){var e=function(){function e(t,n,i,r,c){var h=this;_classCallCheck(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){h._zone.run(function(){h.tick()})}});var f=new o.y(function(e){h._stable=h._zone.isStable&&!h._zone.hasPendingMacrotasks&&!h._zone.hasPendingMicrotasks,h._zone.runOutsideAngular(function(){e.next(h._stable),e.complete()})}),d=new o.y(function(e){var t;h._zone.runOutsideAngular(function(){t=h._zone.onStable.subscribe(function(){sl.assertNotInAngularZone(),al(function(){!h._stable&&!h._zone.hasPendingMacrotasks&&!h._zone.hasPendingMicrotasks&&(h._stable=!0,e.next(!0))})})});var n=h._zone.onUnstable.subscribe(function(){sl.assertInAngularZone(),h._stable&&(h._stable=!1,h._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=(0,a.T)(f,d.pipe(function(e){return(0,u.x)()(function(e,t){return function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,s.N);return i.source=t,i.subjectFactory=n,i}}(l)(e))}))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof ds?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=function(e){return e.isBoundToModule}(n)?void 0:this._injector.get($s),o=n.create(Lo.NULL,[],t||n.selector,r),a=o.location.nativeElement,s=o.injector.get(pl,null),u=s&&o.injector.get(vl);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),Pl(i.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;){var i;t.value.detectChanges()}}catch(r){n.e(r)}finally{n.f()}}catch(i){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(i)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Pl(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Gu,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(An(sl),An(Lo),An(Ri),An(vs),An(ju))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Pl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Il=function e(){_classCallCheck(this,e)},Rl=function e(){_classCallCheck(this,e)},Dl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Ml=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||Dl}return _createClass(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=_slicedToArray(e.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n(8255)(r).then(function(e){return e[o]}).then(function(e){return Ll(e,r,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),i=t[0],r=t[1],o="NgFactory";return void 0===r&&(r="default",o=""),n(8255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+o]}).then(function(e){return Ll(e,i,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(An(rl),An(Rl,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Ll(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Fl=function(e){return null},Nl=El(null,"core",[{provide:Yu,useValue:"unknown"},{provide:Ol,deps:[Lo]},{provide:vl,deps:[]},{provide:Ku,deps:[]}]),Bl=[{provide:Tl,useClass:Tl,deps:[sl,Lo,Ri,vs,ju]},{provide:cu,deps:[sl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:ju,useClass:ju,deps:[[new Nn,Zu]]},{provide:rl,useClass:rl,deps:[]},Vu,{provide:Bs,useFactory:function(){return Gs},deps:[]},{provide:Zs,useFactory:function(){return Ks},deps:[]},{provide:Wu,useFactory:function(e){return rs(e=e||"undefined"!=typeof $localize&&$localize.locale||is),e},deps:[[new Fn(Wu),new Nn,new Bn]]},{provide:Qu,useValue:"USD"}],Ul=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)(An(Tl))},e.\u0275mod=ie({type:e}),e.\u0275inj=w({providers:Bl}),e}()},665:function(e,t,n){"use strict";n.d(t,{Zs:function(){return ce},sg:function(){return ae},u5:function(){return fe},Cf:function(){return h},JU:function(){return c},a5:function(){return P},JL:function(){return I},F:function(){return ne},_Y:function(){return ie}});var i=n(3018),r=(n(8583),n(7574)),o=n(9796),a=n(8002),s=n(1555),u=n(4402);function l(e,t){return new r.y(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var l=(0,u.D)(e[s]),c=!1;n.add(l.subscribe({next:function(e){c||(c=!0,a++),r[s]=e},error:function(e){return n.error(e)},complete:function(){(++o===i||!c)&&(a===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},l=0;l0){var r=i.filter(function(e){return e!==t.validator});r.length!==i.length&&(n=!0,e.setValidators(r))}}if(null!==t.asyncValidator){var o=C(e);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(e){return e!==t.asyncValidator});a.length!==o.length&&(n=!0,e.setAsyncValidators(a))}}}var s=function(){};return M(t._rawValidators,s),M(t._rawAsyncValidators,s),n}function N(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function B(e,t){L(e,t)}function U(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Z(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var j="VALID",q="INVALID",V="PENDING",H="DISABLED";function z(e){return(W(e)?e.validators:e)||null}function Y(e){return Array.isArray(e)?g(e):e||null}function G(e,t){return(W(t)?t.asyncValidators:e)||null}function K(e){return Array.isArray(e)?y(e):e||null}function W(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Q=function(){function e(t,n){_classCallCheck(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Y(this._rawValidators),this._composedAsyncValidatorFn=K(this._rawAsyncValidators)}return _createClass(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===j}},{key:"invalid",get:function(){return this.status===q}},{key:"pending",get:function(){return this.status==V}},{key:"disabled",get:function(){return this.status===H}},{key:"enabled",get:function(){return this.status!==H}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Y(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=K(e)}},{key:"addValidators",value:function(e){this.setValidators(E(e,this._rawValidators))}},{key:"addAsyncValidators",value:function(e){this.setAsyncValidators(E(e,this._rawAsyncValidators))}},{key:"removeValidators",value:function(e){this.setValidators(S(e,this._rawValidators))}},{key:"removeAsyncValidators",value:function(e){this.setAsyncValidators(S(e,this._rawAsyncValidators))}},{key:"hasValidator",value:function(e){return x(this._rawValidators,e)}},{key:"hasAsyncValidator",value:function(e){return x(this._rawAsyncValidators,e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=V,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=H,this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=j,this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===j||this.status===V)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?H:j}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=V,this._hasOwnPendingAsyncValidator=!0;var n=p(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;var i=e;return t.forEach(function(e){i=i instanceof X?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof $&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?H:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(V)?V:this._anyControlsHaveStatus(q)?q:j}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){W(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),J=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this,z(r),G(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),e}return _createClass(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){Z(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){Z(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(Q),X=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,z(i),G(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return _createClass(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof J?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(Q),$=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,z(i),G(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return _createClass(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof J?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(Q),ee={provide:T,useExisting:(0,i.Gpc)(function(){return ne})},te=Promise.resolve(null),ne=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new i.vpe,o.form=new X({},g(e),y(r)),o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),R(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Z(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path),i=new X({});B(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;te.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,U(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.Y36(h,10),i.Y36(f,10))},e.\u0275dir=i.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([ee]),i.qOj]}),e}(),ie=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),re=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({}),e}(),oe={provide:T,useExisting:(0,i.Gpc)(function(){return ae})},ae=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this)).validators=e,o.asyncValidators=r,o.submitted=!1,o._onCollectionChange=function(){return o._updateDomValue()},o.directives=[],o.form=null,o.ngSubmit=new i.vpe,o._setValidators(e),o._setAsyncValidators(r),o}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(F(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return R(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){D(e.control||null,e,!1),Z(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,U(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(D(n||null,t),i instanceof J&&(R(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);B(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return F(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){L(this.form,this),this._oldForm&&F(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.Y36(h,10),i.Y36(f,10))},e.\u0275dir=i.lG2({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([oe]),i.qOj,i.TTD]}),e}(),se={provide:h,useExisting:(0,i.Gpc)(function(){return le}),multi:!0},ue={provide:h,useExisting:(0,i.Gpc)(function(){return ce}),multi:!0},le=function(){var e=function(){function e(){_classCallCheck(this,e),this._required=!1}return _createClass(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?function(e){return function(e){return null==e||0===e.length}(e.value)?{required:!0}:null}(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.lG2({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t.required?"":null)},inputs:{required:"required"},features:[i._Bn([se])]}),e}(),ce=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"validate",value:function(e){return this.required?function(e){return!0===e.value?null:{required:!0}}(e):null}}]),n}(le);return t.\u0275fac=function(n){return(e||(e=i.n5z(t)))(n||t)},t.\u0275dir=i.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t.required?"":null)},features:[i._Bn([ue]),i.qOj]}),t}(),he=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[re]]}),e}(),fe=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[he]}),e}()},1095:function(e,t,n){"use strict";n.d(t,{zs:function(){return p},lW:function(){return d},ot:function(){return v}});var i,r=n(2458),o=n(6237),a=n(3018),s=n(9238),u=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],f=(0,r.pj)((0,r.Id)((0,r.Kr)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}()))),d=((i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;_classCallCheck(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=_createForOfIteratorHelper(h);try{for(s.s();!(a=s.n()).done;){var u=a.value;o._hasHostAttributes(u)&&o._getHostElement().classList.add(u)}}catch(l){s.e(l)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return function(e){_inherits(i,e);var n=_createSuper(i);function i(){var e;_classCallCheck(this,i);for(var r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},O),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,u=t-r.top,l=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-a+"px",c.style.top=u-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(l,"ms"),this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var h=new S(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,!i.persistent&&(!e||!n._isPointerDown)&&h.fadeOut()},l),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},O),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=(0,u.fI)(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(T))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(P),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=(0,r.X6)(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,A)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(T.forEach(function(t){e._triggerElement.removeEventListener(t,e,A)}),this._pointerUpEventsRegistered&&P.forEach(function(t){e._triggerElement.removeEventListener(t,e,A)}))}}]),e}(),R=new i.OlP("mat-ripple-global-options"),D=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new I(this,n,t,i)}return _createClass(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(c.t4),i.Y36(R,8),i.Y36(h.Qb,8))},e.\u0275dir=i.lG2({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),M=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[y,c.ud],y]}),e}(),L=function(){var e=function e(t){_classCallCheck(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(i.Y36(h.Qb,8))},e.\u0275cmp=i.Xpm({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),F=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[y]]}),e}(),N=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),B=b(function(){return function e(){_classCallCheck(this,e)}}()),U=0,Z=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,r;return _classCallCheck(this,n),(i=t.call(this))._labelId="mat-optgroup-label-"+U++,i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(B);return e.\u0275fac=function(t){return new(t||e)(i.Y36(N,8))},e.\u0275dir=i.lG2({type:e,inputs:{label:"label"},features:[i.qOj]}),e}(),j=new i.OlP("MatOptgroup"),q=0,V=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,e),this.source=t,this.isUserInput=n},H=function(){var e=function(){function e(t,n,r,o){_classCallCheck(this,e),this._element=t,this._changeDetectorRef=n,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+q++,this.onSelectionChange=new i.vpe,this._stateChanges=new l.xQ}return _createClass(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=(0,u.Ig)(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){(e.keyCode===f.K5||e.keyCode===f.L_)&&!(0,f.Vb)(e)&&(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new V(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(void 0),i.Y36(Z))},e.\u0275dir=i.lG2({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),z=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){return _classCallCheck(this,n),t.call(this,e,i,r,o)}return n}(H);return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(N,8),i.Y36(j,8))},e.\u0275cmp=i.Xpm({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:_,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,d,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,p,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[s.O5,D,L],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function Y(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;an+i?Math.max(0,e-i+t):n}var K=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[M,s.ez,y,F]]}),e}()},2238:function(e,t,n){"use strict";n.d(t,{WI:function(){return A},uw:function(){return D},H8:function(){return B},ZT:function(){return L},xY:function(){return N},Is:function(){return Z},so:function(){return S},uh:function(){return F}});var i=n(625),r=n(7636),o=n(3018),a=n(2458),s=n(946),u=n(8583),l=n(9765),c=n(1439),h=n(5917),f=n(5435),d=n(5257),p=n(9761),v=n(521),_=n(7238),m=n(6461),g=n(9238);function y(e,t){}var b,k=function e(){_classCallCheck(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},C={dialogContainer:(0,_.X$)("dialogContainer",[(0,_.SB)("void, exit",(0,_.oB)({opacity:0,transform:"scale(0.7)"})),(0,_.SB)("enter",(0,_.oB)({transform:"none"})),(0,_.eR)("* => enter",(0,_.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,_.oB)({transform:"none",opacity:1}))),(0,_.eR)("* => void, * => exit",(0,_.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,_.oB)({opacity:0})))])},w=((b=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,s,u){var l;return _classCallCheck(this,n),(l=t.call(this))._elementRef=e,l._focusTrapFactory=i,l._changeDetectorRef=r,l._config=s,l._focusMonitor=u,l._animationStateChanged=new o.vpe,l._elementFocusedBeforeDialogWasOpened=null,l._closeInteractionType=null,l.attachDomPortal=function(e){return l._portalOutlet.hasAttached(),l._portalOutlet.attachDomPortal(e)},l._ariaLabelledBy=s.ariaLabelledBy||null,l._document=a,l}return _createClass(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=(0,v.ht)(),n=this._elementRef.nativeElement;(!t||t===this._document.body||t===n||n.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,v.ht)())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=(0,v.ht)();return e===t||e.contains(t)}}]),n}(r.en)).\u0275fac=function(e){return new(e||b)(o.Y36(o.SBq),o.Y36(g.qV),o.Y36(o.sBO),o.Y36(u.K0,8),o.Y36(k),o.Y36(g.tE))},b.\u0275dir=o.lG2({type:b,viewQuery:function(e,t){var n;1&e&&o.Gf(r.Pl,7),2&e&&o.iGM(n=o.CRH())&&(t._portalOutlet=n.first)},features:[o.qOj]}),b),x=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._state="enter",e}return _createClass(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(w);return t.\u0275fac=function(n){return(e||(e=o.n5z(t)))(n||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&o.WFA("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(o.Ikx("id",t._id),o.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),o.d8E("@dialogContainer",t._state))},features:[o.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&o.YNc(0,y,0,0,"ng-template",0)},directives:[r.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[C.dialogContainer]}}),t}(),E=0,S=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+E++;_classCallCheck(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new l.xQ,this._afterClosed=new l.xQ,this._beforeClosed=new l.xQ,this._state=0,n._id=r,n._animationStateChanged.pipe((0,f.h)(function(e){return"opened"===e.state}),(0,d.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe((0,f.h)(function(e){return"closed"===e.state}),(0,d.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe((0,f.h)(function(e){return e.keyCode===m.hY&&!i.disableClose&&!(0,m.Vb)(e)})).subscribe(function(e){e.preventDefault(),O(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():O(i,"mouse")})}return _createClass(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe((0,f.h)(function(e){return"closing"===e.state}),(0,d.q)(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function O(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var A=new o.OlP("MatDialogData"),T=new o.OlP("mat-dialog-default-options"),P=new o.OlP("mat-dialog-scroll-strategy"),I={provide:P,deps:[i.aV],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},R=function(){var e=function(){function e(t,n,i,r,o,a,s,u,h){var f=this;_classCallCheck(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=u,this._dialogDataToken=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.xQ,this._afterOpenedAtThisLevel=new l.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,c.P)(function(){return f.openDialogs.length?f._getAfterAllClosed():f._getAfterAllClosed().pipe((0,p.O)(void 0))}),this._scrollStrategy=a}return _createClass(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new k)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=o.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:k,useValue:t}]}),i=new r.C5(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var a=new this._dialogRefConstructor(n,t,i.id);if(e instanceof o.Rgc)t.attachTemplatePortal(new r.UE(e,null,{$implicit:i.data,dialogRef:a}));else{var s=this._createInjector(i,a,t),u=t.attachComponentPortal(new r.C5(e,i.viewContainerRef,s));a.componentInstance=u.instance}return a.updateSize(i.width,i.height).updatePosition(i.position),a}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!i||!i.get(s.Is,null,o.XFs.Optional))&&r.push({provide:s.Is,useValue:{value:e.direction,change:(0,h.of)()}}),o.zs3.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i!==e&&"SCRIPT"!==i.nodeName&&"STYLE"!==i.nodeName&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.aV),o.Y36(o.zs3),o.Y36(void 0),o.Y36(void 0),o.Y36(i.Xj),o.Y36(void 0),o.Y36(o.DyG),o.Y36(o.DyG),o.Y36(o.OlP))},e.\u0275dir=o.lG2({type:e}),e}(),D=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u){return _classCallCheck(this,n),t.call(this,e,i,o,s,u,a,S,x,A)}return n}(R);return e.\u0275fac=function(t){return new(t||e)(o.LFG(i.aV),o.LFG(o.zs3),o.LFG(u.Ye,8),o.LFG(T,8),o.LFG(P),o.LFG(e,12),o.LFG(i.Xj))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e}(),M=0,L=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.dialogRef=t,this._elementRef=n,this._dialog=i,this.type="button"}return _createClass(e,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=U(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}},{key:"_onButtonClick",value:function(e){O(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(S,8),o.Y36(o.SBq),o.Y36(D))},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&o.NdJ("click",function(e){return t._onButtonClick(e)}),2&e&&o.uIk("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[o.TTD]}),e}(),F=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+M++}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=U(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(S,8),o.Y36(o.SBq),o.Y36(D))},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&o.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),N=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),B=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function U(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}var Z=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({providers:[D,I],imports:[[i.U8,r.eL,a.BQ],a.BQ]}),e}()},8295:function(e,t,n){"use strict";n.d(t,{G_:function(){return K},o2:function(){return G},KE:function(){return W},Eo:function(){return B},lN:function(){return Q},hX:function(){return Z},R9:function(){return H}});var i=n(8553),r=n(8583),o=n(3018),a=n(2458),s=n(9490),u=n(9765),l=n(6682),c=n(2759),h=n(9761),f=n(6782),d=n(5257),p=n(7238),v=n(6237),_=n(946),m=n(521),g=["underline"],y=["connectionContainer"],b=["inputContainer"],k=["label"];function C(e,t){1&e&&(o.ynx(0),o.TgZ(1,"div",14),o._UZ(2,"div",15),o._UZ(3,"div",16),o._UZ(4,"div",17),o.qZA(),o.TgZ(5,"div",18),o._UZ(6,"div",15),o._UZ(7,"div",16),o._UZ(8,"div",17),o.qZA(),o.BQk())}function w(e,t){1&e&&(o.TgZ(0,"div",19),o.Hsn(1,1),o.qZA())}function x(e,t){if(1&e&&(o.ynx(0),o.Hsn(1,2),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.BQk()),2&e){var n=o.oxw(2);o.xp6(3),o.Oqu(n._control.placeholder)}}function E(e,t){1&e&&o.Hsn(0,3,["*ngSwitchCase","true"])}function S(e,t){1&e&&(o.TgZ(0,"span",23),o._uU(1," *"),o.qZA())}function O(e,t){if(1&e){var n=o.EpF();o.TgZ(0,"label",20,21),o.NdJ("cdkObserveContent",function(){return o.CHM(n),o.oxw().updateOutlineGap()}),o.YNc(2,x,4,1,"ng-container",12),o.YNc(3,E,1,0,"ng-content",12),o.YNc(4,S,2,0,"span",22),o.qZA()}if(2&e){var i=o.oxw();o.ekj("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),o.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),o.uIk("for",i._control.id)("aria-owns",i._control.id),o.xp6(2),o.Q6J("ngSwitchCase",!1),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function A(e,t){1&e&&(o.TgZ(0,"div",24),o.Hsn(1,4),o.qZA())}function T(e,t){if(1&e&&(o.TgZ(0,"div",25,26),o._UZ(2,"span",27),o.qZA()),2&e){var n=o.oxw();o.xp6(2),o.ekj("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function P(e,t){if(1&e&&(o.TgZ(0,"div"),o.Hsn(1,5),o.qZA()),2&e){var n=o.oxw();o.Q6J("@transitionMessages",n._subscriptAnimationState)}}function I(e,t){if(1&e&&(o.TgZ(0,"div",31),o._uU(1),o.qZA()),2&e){var n=o.oxw(2);o.Q6J("id",n._hintLabelId),o.xp6(1),o.Oqu(n.hintLabel)}}function R(e,t){if(1&e&&(o.TgZ(0,"div",28),o.YNc(1,I,2,2,"div",29),o.Hsn(2,6),o._UZ(3,"div",30),o.Hsn(4,7),o.qZA()),2&e){var n=o.oxw();o.Q6J("@transitionMessages",n._subscriptAnimationState),o.xp6(1),o.Q6J("ngIf",n.hintLabel)}}var D,M=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],L=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],F=new o.OlP("MatError"),N={transitionMessages:(0,p.X$)("transitionMessages",[(0,p.SB)("enter",(0,p.oB)({opacity:1,transform:"translateY(0%)"})),(0,p.eR)("void => enter",[(0,p.oB)({opacity:0,transform:"translateY(-5px)"}),(0,p.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},B=((D=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||D)},D.\u0275dir=o.lG2({type:D}),D),U=new o.OlP("MatHint"),Z=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["mat-label"]]}),e}(),j=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["mat-placeholder"]]}),e}(),q=new o.OlP("MatPrefix"),V=new o.OlP("MatSuffix"),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","matSuffix",""]],features:[o._Bn([{provide:V,useExisting:e}])]}),e}(),z=0,Y=(0,a.pj)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}(),"primary"),G=new o.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),K=new o.OlP("MatFormField"),W=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,l,c){var h;return _classCallCheck(this,n),(h=t.call(this,e))._changeDetectorRef=i,h._dir=o,h._defaults=a,h._platform=s,h._ngZone=l,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new u.xQ,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-"+z++,h._labelId="mat-form-field-label-"+z++,h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==c,h.appearance=a&&a.appearance?a.appearance:"legacy",h._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,h}return _createClass(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=(0,s.Ig)(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe((0,h.O)(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,f.R)(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe((0,f.R)(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),(0,l.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,f.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,c.R)(this._label.nativeElement,"transitionend").pipe((0,d.q)(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,_toConsumableArray(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,_toConsumableArray(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=e.children,l=this._getStartEnd(u[0].getBoundingClientRect()),c=0,h=0;h0?.75*c+10:0}for(var f=0;f-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(g);return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.SBq),r.Y36(i.t4),r.Y36(p.a5,10),r.Y36(p.F,8),r.Y36(p.sg,8),r.Y36(f.rD),r.Y36(v,10),r.Y36(c),r.Y36(r.R0b),r.Y36(d.G_,8))},e.\u0275dir=r.lG2({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&r.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(r.Ikx("disabled",t.disabled)("required",t.required),r.uIk("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),r.ekj("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[r._Bn([{provide:d.Eo,useExisting:e}]),r.qOj,r.TTD]}),e}(),b=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[f.rD],imports:[[h,d.lN,f.BQ],h,d.lN]}),e}()},7441:function(e,t,n){"use strict";n.d(t,{gD:function(){return z},LD:function(){return Y}});var i=n(625),r=n(8583),o=n(3018),a=n(2458),s=n(8295),u=n(9243),l=n(9238),c=n(9490),h=n(8345),f=n(6461),d=n(9765),p=n(1439),v=n(6682),_=n(9761),m=n(3190),g=n(5257),y=n(5435),b=n(8002),k=n(7519),C=n(6782),w=n(7238),x=n(946),E=n(665),S=["trigger"],O=["panel"];function A(e,t){if(1&e&&(o.TgZ(0,"span",8),o._uU(1),o.qZA()),2&e){var n=o.oxw();o.xp6(1),o.Oqu(n.placeholder)}}function T(e,t){if(1&e&&(o.TgZ(0,"span",12),o._uU(1),o.qZA()),2&e){var n=o.oxw(2);o.xp6(1),o.Oqu(n.triggerValue)}}function P(e,t){1&e&&o.Hsn(0,0,["*ngSwitchCase","true"])}function I(e,t){if(1&e&&(o.TgZ(0,"span",9),o.YNc(1,T,2,1,"span",10),o.YNc(2,P,1,0,"ng-content",11),o.qZA()),2&e){var n=o.oxw();o.Q6J("ngSwitch",!!n.customTrigger),o.xp6(2),o.Q6J("ngSwitchCase",!0)}}function R(e,t){if(1&e){var n=o.EpF();o.TgZ(0,"div",13),o.TgZ(1,"div",14,15),o.NdJ("@transformPanel.done",function(e){return o.CHM(n),o.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return o.CHM(n),o.oxw()._handleKeydown(e)}),o.Hsn(3,1),o.qZA(),o.qZA()}if(2&e){var i=o.oxw();o.Q6J("@transformPanelWrap",void 0),o.xp6(1),o.Gre("mat-select-panel ",i._getPanelTheme(),""),o.Udp("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),o.Q6J("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),o.uIk("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var D,M=[[["mat-select-trigger"]],"*"],L=["mat-select-trigger","*"],F={transformPanelWrap:(0,w.X$)("transformPanelWrap",[(0,w.eR)("* => void",(0,w.IO)("@transformPanel",[(0,w.pV)()],{optional:!0}))]),transformPanel:(0,w.X$)("transformPanel",[(0,w.SB)("void",(0,w.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,w.SB)("showing",(0,w.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,w.SB)("showing-multiple",(0,w.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,w.eR)("void => *",(0,w.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,w.eR)("* => void",(0,w.jt)("100ms 25ms linear",(0,w.oB)({opacity:0})))])},N=0,B=new o.OlP("mat-select-scroll-strategy"),U=new o.OlP("MAT_SELECT_CONFIG"),Z={provide:B,deps:[i.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},j=function e(t,n){_classCallCheck(this,e),this.source=t,this.value=n},q=(0,a.Kr)((0,a.sb)((0,a.Id)((0,a.FD)(function(){return function e(t,n,i,r,o){_classCallCheck(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o}}())))),V=new o.OlP("MatSelectTrigger"),H=((D=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,s,u,l,c,h,f,k,C,w,x){var E,S,O,A;return _classCallCheck(this,n),(E=t.call(this,s,a,l,c,f))._viewportRuler=e,E._changeDetectorRef=i,E._ngZone=r,E._dir=u,E._parentFormField=h,E._liveAnnouncer=w,E._defaultOptions=x,E._panelOpen=!1,E._compareWith=function(e,t){return e===t},E._uid="mat-select-"+N++,E._triggerAriaLabelledBy=null,E._destroy=new d.xQ,E._onChange=function(){},E._onTouched=function(){},E._valueId="mat-select-value-"+N++,E._panelDoneAnimatingStream=new d.xQ,E._overlayPanelClass=(null===(S=E._defaultOptions)||void 0===S?void 0:S.overlayPanelClass)||"",E._focused=!1,E.controlType="mat-select",E._required=!1,E._multiple=!1,E._disableOptionCentering=null!==(A=null===(O=E._defaultOptions)||void 0===O?void 0:O.disableOptionCentering)&&void 0!==A&&A,E.ariaLabel="",E.optionSelectionChanges=(0,p.P)(function(){var e=E.options;return e?e.changes.pipe((0,_.O)(e),(0,m.w)(function(){return v.T.apply(void 0,_toConsumableArray(e.map(function(e){return e.onSelectionChange})))})):E._ngZone.onStable.pipe((0,g.q)(1),(0,m.w)(function(){return E.optionSelectionChanges}))}),E.openedChange=new o.vpe,E._openedStream=E.openedChange.pipe((0,y.h)(function(e){return e}),(0,b.U)(function(){})),E._closedStream=E.openedChange.pipe((0,y.h)(function(e){return!e}),(0,b.U)(function(){})),E.selectionChange=new o.vpe,E.valueChange=new o.vpe,E.ngControl&&(E.ngControl.valueAccessor=_assertThisInitialized(E)),null!=(null==x?void 0:x.typeaheadDebounceInterval)&&(E._typeaheadDebounceInterval=x.typeaheadDebounceInterval),E._scrollStrategyFactory=C,E._scrollStrategy=E._scrollStrategyFactory(),E.tabIndex=parseInt(k)||0,E.id=E.id,E}return _createClass(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,c.Ig)(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=(0,c.Ig)(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=(0,c.Ig)(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=(0,c.su)(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,k.x)(),(0,C.R)(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,C.R)(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe((0,_.O)(null),(0,C.R)(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=t===f.JH||t===f.LH||t===f.oh||t===f.SV,i=t===f.K5||t===f.L_,r=this._keyManager;if(!r.isTyping()&&i&&!(0,f.Vb)(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=n===f.JH||n===f.LH,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||n!==f.K5&&n!==f.L_||!t.activeItem||(0,f.Vb)(e))if(!r&&this._multiple&&n===f.A&&e.ctrlKey){e.preventDefault();var o=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(o?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this._overlayDir.positionChange.pipe((0,g.q)(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new l.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,C.R)(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe((0,C.R)(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):!e._panelOpen&&!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=(0,v.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,C.R)(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),v.T.apply(void 0,_toConsumableArray(this.options.map(function(e){return e._stateChanges}))).pipe((0,C.R)(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(q)).\u0275fac=function(e){return new(e||D)(o.Y36(u.rL),o.Y36(o.sBO),o.Y36(o.R0b),o.Y36(a.rD),o.Y36(o.SBq),o.Y36(x.Is,8),o.Y36(E.F,8),o.Y36(E.sg,8),o.Y36(s.G_,8),o.Y36(E.a5,10),o.$8M("tabindex"),o.Y36(B),o.Y36(l.Kd),o.Y36(U,8))},D.\u0275dir=o.lG2({type:D,viewQuery:function(e,t){var n;1&e&&(o.Gf(S,5),o.Gf(O,5),o.Gf(i.pI,5)),2&e&&(o.iGM(n=o.CRH())&&(t.trigger=n.first),o.iGM(n=o.CRH())&&(t.panel=n.first),o.iGM(n=o.CRH())&&(t._overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[o.qOj,o.TTD]}),D),z=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return _createClass(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,C.R)(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"_canOpen",this).call(this)&&(_get(_getPrototypeOf(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(function(){e._triggerFontSize&&e._overlayDir.overlayRef&&e._overlayDir.overlayRef.overlayElement&&(e._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t=(0,a.CB)(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:(0,a.jH)((e+t)*n,n,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),_get(_getPrototypeOf(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new j(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this._overlayDir.offsetX=Math.round(e),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=(0,a.CB)(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(H);return t.\u0275fac=function(n){return(e||(e=o.n5z(t)))(n||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;(1&e&&(o.Suo(n,V,5),o.Suo(n,a.ey,5),o.Suo(n,a.K7,5)),2&e)&&(o.iGM(i=o.CRH())&&(t.customTrigger=i.first),o.iGM(i=o.CRH())&&(t.options=i),o.iGM(i=o.CRH())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&o.NdJ("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(o.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),o.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[o._Bn([{provide:s.Eo,useExisting:t},{provide:a.HF,useExisting:t}]),o.qOj],ngContentSelectors:L,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(o.F$t(M),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return t.toggle()}),o.TgZ(3,"div",2),o.YNc(4,A,2,1,"span",3),o.YNc(5,I,3,2,"span",4),o.qZA(),o.TgZ(6,"div",5),o._UZ(7,"div",6),o.qZA(),o.qZA(),o.YNc(8,R,4,14,"ng-template",7),o.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=o.MAs(1);o.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),o.xp6(3),o.Q6J("ngSwitch",t.empty),o.uIk("id",t._valueId),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngSwitchCase",!1),o.xp6(3),o.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[i.xu,r.RF,r.n9,i.pI,r.ED,r.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[F.transformPanelWrap,F.transformPanel]},changeDetection:0}),t}(),Y=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({providers:[Z],imports:[[r.ez,i.U8,a.Ng,a.BQ],u.ZD,s.lN,a.Ng,a.BQ]}),e}()},6237:function(e,t,n){"use strict";n.d(t,{Qb:function(){return Mt},PW:function(){return Bt}});var i=n(3018),r=n(9075),o=n(7238);function a(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function u(e){switch(e.length){case 0:return new o.ZN;case 1:return e[0];default:return new o.ZE(e)}}function l(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=[],u=[],l=-1,c=null;if(i.forEach(function(e){var n=e.offset,i=n==l,h=i&&c||{};Object.keys(e).forEach(function(n){var i=n,u=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,s),u){case o.k1:u=r[n];break;case o.l3:u=a[n];break;default:u=t.normalizeStyleValue(n,i,u,s)}h[i]=u}),i||u.push(h),c=h,l=n}),s.length){var h="\n - ";throw new Error("Unable to animate due to the following errors:".concat(h).concat(s.join(h)))}return u}function c(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&h(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&h(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&h(n,"destroy",e))})}}function h(e,t,n){var i=n.totalTime,r=f(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function f(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function d(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function p(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var v=function(e,t){return!1},_=function(e,t){return!1},m=function(e,t,n){return[]},g=s();(g||"undefined"!=typeof Element)&&(v=a()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},_=function(){if(g||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:_}(),m=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else B(e,n);return n}function Z(e,t,n){return n?t+":"+n+";":""}function j(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(oe(o,s)),"<"==a[0]&&("*"!=o||"*"!=s)&&t.push(oe(s,o))}(e,n,t)}):n.push(e),n}var ie=new Set(["true","1"]),re=new Set(["false","0"]);function oe(e,t){var n=ie.has(e)||re.has(e),i=ie.has(t)||re.has(t);return function(r,o){var a="*"==e||e==r,s="*"==t||t==o;return!a&&n&&"boolean"==typeof r&&(a=r?ie.has(e):re.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?ie.has(t):re.has(t)),a&&s}}var ae=new RegExp("s*:selfs*,?","g");function se(e,t,n){return new ue(e).build(t,n)}var ue=function(){function e(t){_classCallCheck(this,e),this._driver=t}return _createClass(e,[{key:"build",value:function(e,t){var n=new le(t);return this._resetContextStyleTimingState(n),ee(this,H(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,u=s.name;u.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,o.push(n.visitState(s,t))}),s.name=u}else if(1==e.type){var l=n.visitTransition(e,t);i+=l.queryCount,r+=l.depCount,a.push(l)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach(function(e){if(ce(e)){var t=e;Object.keys(t).forEach(function(e){Y(t[e]).forEach(function(e){o.hasOwnProperty(e)||r.add(e)})})}}),r.size){var a=K(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n=ee(this,H(e.animation),t);return{type:1,matchers:ne(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:he(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return ee(n,e,t)}),options:he(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=ee(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:he(e.options)}}},{key:"visitAnimate",value:function(e,t){var n=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return fe(N(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=fe(0,0,"");return r.dynamic=!0,r.strValue=i,r}return fe((n=n||N(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=n;var i,r=e.styles?e.styles:(0,o.oB)({});if(5==r.type)i=this.visitKeyframes(r,t);else{var a=e.styles,s=!1;if(!a){s=!0;var u={};n.easing&&(u.easing=n.easing),a=(0,o.oB)(u)}t.currentTime+=n.duration+n.delay;var l=this.visitStyle(a,t);l.isEmptyStep=s,i=l}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==o.l3?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(ce(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a=t.collectedStyles[t.currentQuerySelector],s=a[i],u=!0;s&&(o!=r&&o>=s.startTime&&r<=s.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(s.startTime,'ms" and "').concat(s.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),u=!1),o=s.startTime),u&&(a[i]={startTime:o,endTime:r}),t.options&&function(e,t,n){var i=t.params||{},r=Y(e);r.length&&r.forEach(function(e){i.hasOwnProperty(e)||n.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})}(e[i],t.options,t.errors)}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,u=0,l=e.steps.map(function(e){var i=n._makeStyleAst(e,t),l=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(ce(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(ce(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),s=s||c<0||c>1,a=a||c0&&r0?r==f?1:h*r:o[r],s=a*v;t.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:ee(this,H(e.animation),t),options:he(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:he(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:he(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(ae,"")),[e=e.replace(/@\*/g,R).replace(/@\w+/g,function(e){return R+"-"+e.substr(1)}).replace(/:animating/g,M),t]}(e.selector),2),o=r[0],a=r[1];t.currentQuerySelector=n.length?n+" "+o:o,d(t.collectedStyles,t.currentQuerySelector,{});var s=ee(this,H(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:he(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:N(e.timings,t.errors,!0);return{type:12,animation:ee(this,H(e.animation),t),timings:n,options:null}}}]),e}(),le=function e(t){_classCallCheck(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function ce(e){return!Array.isArray(e)&&"object"==typeof e}function he(e){return e?(e=B(e)).params&&(e.params=function(e){return e?B(e):null}(e.params)):e={},e}function fe(e,t,n){return{duration:e,delay:t,easing:n}}function de(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var pe=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),ve=new RegExp(":enter","g"),_e=new RegExp(":leave","g");function me(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new ge).buildKeyframes(e,t,n,i,r,o,a,s,u,l)}var ge=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new pe;var c=new be(e,t,u,i,r,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),ee(this,n,c);var h=c.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,c.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[de(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?L(n.duration):null,o=null!=n.delay?L(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),ee(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ye);var a=L(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return ee(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?L(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),ee(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return N(t.params?G(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?L(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ye);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(u=s.currentTimeline),ee(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;ee(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}]),e}(),ye={},be=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ye,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new ke(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=L(i.duration)),null!=i.delay&&(r.delay=L(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){(!t||!a.hasOwnProperty(e))&&(a[e]=G(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=ye,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Ce(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(ve,"."+this._enterClassName)).replace(_e,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,_toConsumableArray(s))}return!r&&0==a.length&&o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}]),e}(),ke=function(){function e(t,n,i,r){_classCallCheck(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||o.l3,t._currentKeyframe[e]=o.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var a=i&&i.params||{},s=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]=o.l3}):U(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(s).forEach(function(e){var t=G(s[e],a,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:o.l3),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(a,s){var u=U(a,!0);Object.keys(u).forEach(function(e){var i=u[e];i==o.k1?t.add(e):i==o.l3&&n.add(e)}),i||(u.offset=s/e.duration),r.push(u)});var a=t.size?K(t.values()):[],s=n.size?K(n.values()):[];if(i){var u=r[0],l=B(u);u.offset=0,l.offset=1,r=[u,l]}return de(this.element,r,a,s,this.duration,this.startTime,this.easing,!1)}}]),e}(),Ce=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(u=t.call(this,e,i,s.delay)).keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=l,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,u=U(e[0],!1);u.offset=0,o.push(u);var l=U(e[0],!1);l.offset=we(s),o.push(l);for(var c=e.length-1,h=1;h<=c;h++){var f=U(e[h],!1);f.offset=we((n+f.offset*i)/a),o.push(f)}i=a,n=0,r="",e=o}return de(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(ke);function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var xe=function e(){_classCallCheck(this,e)},Ee=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(e,t){return Q(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(Se[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(xe),Se=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Oe(e,t,n,i,r,o,a,s,u,l,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:f}}var Ae={},Te=function(){function e(t,n,i){_classCallCheck(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return _createClass(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,u,l){var c=[],h=this.ast.options&&this.ast.options.params||Ae,f=this.buildStyles(n,a&&a.params||Ae,c),p=s&&s.params||Ae,v=this.buildStyles(i,p,c),_=new Set,m=new Map,g=new Map,y="void"===i,b={params:Object.assign(Object.assign({},h),p)},k=l?[]:me(e,t,this.ast.animation,r,o,f,v,b,u,c),C=0;if(k.forEach(function(e){C=Math.max(e.duration+e.delay,C)}),c.length)return Oe(t,this._triggerName,n,i,y,f,v,[],[],m,g,C,c);k.forEach(function(e){var n=e.element,i=d(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=d(g,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&_.add(n)});var w=K(_.values());return Oe(t,this._triggerName,n,i,y,f,v,k,w,m,g,C)}}]),e}(),Pe=function(){function e(t,n,i){_classCallCheck(this,e),this.styles=t,this.defaultParams=n,this.normalizer=i}return _createClass(e,[{key:"buildStyles",value:function(e,t){var n=this,i={},r=B(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach(function(e){var a=o[e];a.length>1&&(a=G(a,r,t));var s=n.normalizer.normalizePropertyName(e,t);a=n.normalizer.normalizeStyleValue(e,s,a,t),i[s]=a})}}),i}}]),e}(),Ie=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.name=t,this.ast=n,this._normalizer=i,this.transitionFactories=[],this.states={},n.states.forEach(function(e){r.states[e.name]=new Pe(e.style,e.options&&e.options.params||{},i)}),Re(this.states,"true","1"),Re(this.states,"false","0"),n.transitions.forEach(function(e){r.transitionFactories.push(new Te(t,e,r.states))}),this.fallbackTransition=function(e,t,n){return new Te(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},t)}(t,this.states)}return _createClass(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Re(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var De=new pe,Me=function(){function e(t,n,i){_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var n=[],i=se(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=l(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],s=this._animations[e],l=new Map;if(s?(n=me(this._driver,t,s,T,P,{},{},r,De,a)).forEach(function(e){var t=d(l,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));l.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,o.l3)})});var c=u(n.map(function(e){var t=l.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=c,c.onDestroy(function(){return i.destroy(e)}),this.players.push(c),c}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=f(t,"","","");return c(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);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(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Le="ng-animate-queued",Fe="ng-animate-disabled",Ne=".ng-animate-disabled",Be=[],Ue={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ze={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},je="__ng_removed",qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var o=B(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),Ve="void",He=new qe(Ve),ze=function(){function e(t,n,i){_classCallCheck(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,$e(n,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=d(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var u=d(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||($e(e,I),$e(e,I+"-"+t),u[t]=He),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete u[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new Ge(this.id,t,e),s=this._engine.statesByElement.get(e);s||($e(e,I),$e(e,I+"-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],l=new qe(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[t]=l,u||(u=He),l.value===Ve||u.value!==l.value){var c=d(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=o.matchTransition(u.value,l.value,e,l.params),f=!1;if(!h){if(!r)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:l,player:a,isFallbackTransition:f}),f||($e(e,Le),a.onStart(function(){et(e,Le)})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),$e(e,Fe)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),et(e,Fe))}},{key:"removeNode",value:function(e,t,n,i){if(Ke(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t[je]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return Ke(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,R,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,M,!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return u(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e[je];if(n&&n.setForRemoval){if(e[je]=Ue,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,Ne)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Ne,!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;I--)this._namespaceList[I].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(O.push(t),n.collectedEnterElements.length){var a=o[je];if(a&&a.setForMove)return void t.destroy()}var u=!p||!n.driver.containsElement(p,o),f=E.get(o),v=m.get(o),_=n._buildInstruction(e,i,v,f,u);if(_.errors&&_.errors.length)A.push(_);else{if(u)return t.onStart(function(){return V(o,_.fromStyles)}),t.onDestroy(function(){return q(o,_.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return V(o,_.fromStyles)}),t.onDestroy(function(){return q(o,_.toStyles)}),void r.push(t);_.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(o,_.timelines),s.push({instruction:_,player:t,element:o}),_.queriedElements.forEach(function(e){return d(l,e,[]).push(t)}),_.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),_.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=h.get(t);i||h.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(A.length){var R=[];A.forEach(function(e){R.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return R.push("- ".concat(e,"\n"))})}),O.forEach(function(e){return e.destroy()}),this.reportError(R)}var D=new Map,L=new Map;s.forEach(function(e){var t=e.element;i.has(t)&&(L.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,D))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){d(D,t,[]).push(e),e.destroy()})});var F=y.filter(function(e){return it(e,c,h)}),N=new Map;Qe(N,this.driver,k,h,o.l3).forEach(function(e){it(e,c,h)&&F.push(e)});var B=new Map;_.forEach(function(e,t){Qe(B,n.driver,new Set(e),c,o.k1)}),F.forEach(function(e){var t=N.get(e),n=B.get(e);N.set(e,Object.assign(Object.assign({},t),n))});var U=[],Z=[],j={};s.forEach(function(e){var t=e.element,o=e.player,s=e.instruction;if(i.has(t)){if(f.has(t))return o.onDestroy(function(){return q(t,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var l=j;if(L.size>1){for(var c=t,h=[];c=c.parentNode;){var d=L.get(c);if(d){l=d;break}h.push(c)}h.forEach(function(e){return L.set(e,l)})}var p=n._buildAnimation(o.namespaceId,s,D,a,B,N);if(o.setRealPlayer(p),l===j)U.push(o);else{var v=n.playersByElement.get(l);v&&v.length&&(o.parentPlayer=u(v)),r.push(o)}}else V(t,s.fromStyles),o.onDestroy(function(){return q(t,s.toStyles)}),Z.push(o),f.has(t)&&r.push(o)}),Z.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=u(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var H=0;H0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new o.ZN(e.duration,e.delay)}}]),e}(),Ge=function(){function e(t,n,i){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new o.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return c(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){d(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Ke(e){return e&&1===e.nodeType}function We(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Qe(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(We(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);(!n||0==n.length)&&(i[je]=Ze,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return We(e,o[s++])}),a}function Je(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}var Xe="$$classes";function $e(e,t){if(e.classList)e.classList.add(t);else{var n=e[Xe];n||(n=e[Xe]={}),n[t]=!0}}function et(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Xe];n&&delete n[t]}}function tt(e,t,n){u(n).onDone(function(){return e.processLeaveNode(t)})}function nt(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function ot(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=st(t[0]),t.length>1&&(i=st(t[t.length-1]))):t&&(n=st(t)),n||i?new at(e,n,i):null}var at=function(){function e(t,n,i){_classCallCheck(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(V(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}]),e}();function st(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),vt(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){var n=mt(e,"").split(","),i=pt(n,t);i>=0&&(n.splice(i,1),_t(e,"",n.join(",")))}(this._element,this._name))}}]),e}();function ft(e,t,n){_t(e,"PlayState",n,dt(e,t))}function dt(e,t){var n=mt(e,"");return n.indexOf(",")>0?pt(n.split(","),t):pt([n],t)}function pt(e,t){for(var n=0;n=0)return n;return-1}function vt(e,t,n){n?e.removeEventListener(ct,t):e.addEventListener(ct,t)}function _t(e,t,n,i){var r=lt+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function mt(e,t){return e.style[lt+t]||""}var gt=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new ht(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:te(e.element,i))})}this.currentSnapshot=t}}]),e}(),yt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=E(i),r}return _createClass(n,[{key:"init",value:function(){var e=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(o.ZN),bt=function(){function e(){_classCallCheck(this,e),this._count=0}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return k(e)}},{key:"matchesElement",value:function(e,t){return C(e,t)}},{key:"containsElement",value:function(e,t){return w(e,t)}},{key:"query",value:function(e,t,n){return x(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return E(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof gt}),s={};X(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"==n||"easing"==n||(t[n]=e[n])})}),t}(t=$(e,t,s));if(0==n)return new yt(e,u);var l="gen_css_kf_"+this._count++,c=this.buildKeyframeElement(e,l,t);(function(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(e).appendChild(c);var h=ot(e,t),f=new gt(e,t,l,n,i,r,u,h);return f.onDestroy(function(){var e;(e=c).parentNode.removeChild(e)}),f}}]),e}(),kt=function(){function e(t,n,i,r){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:te(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Ct=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(wt().toString()),this._cssKeyframesDriver=new bt}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return k(e)}},{key:"matchesElement",value:function(e,t){return C(e,t)}},{key:"containsElement",value:function(e,t){return w(e,t)}},{key:"query",value:function(e,t,n){return x(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var u={},l=o.filter(function(e){return e instanceof kt});X(n,i)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var c=ot(e,t=$(e,t=t.map(function(e){return U(e,!1)}),u));return new kt(e,t,s,c)}}]),e}();function wt(){return a()&&Element.prototype.animate||{}}var xt=n(8583),Et=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this))._nextAnimationId=0,o._renderer=e.createRenderer(r.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}}),o}return _createClass(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?(0,o.vP)(e):e;return At(this._renderer,null,t,"register",[n]),new St(t,this._renderer)}}]),n}(o._j);return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.FYo),i.LFG(xt.K0))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),St=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return _createClass(n,[{key:"create",value:function(e,t){return new Ot(this._id,e,t||{},this._renderer)}}]),n}(o.LC),Ot=function(){function e(t,n,i,r){_classCallCheck(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&t==Tt?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),Rt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,i,r,o)).factory=e,a.namespaceId=i,a}return _createClass(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Tt?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i=this;if("@"==t.charAt(0)){var r,o=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),a=t.substr(1),s="";return"@"!=a.charAt(0)&&(a=(r=_slicedToArray(function(e){var t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(a),2))[0],s=r[1]),this.engine.listen(this.namespaceId,o,a,s,function(e){i.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(It),Dt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){return _classCallCheck(this,n),t.call(this,e.body,i,r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(rt);return e.\u0275fac=function(t){return new(t||e)(i.LFG(xt.K0),i.LFG(A),i.LFG(xe))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),Mt=new i.OlP("AnimationModuleType"),Lt=[{provide:o._j,useClass:Et},{provide:xe,useFactory:function(){return new Ee}},{provide:rt,useClass:Dt},{provide:i.FYo,useFactory:function(e,t,n){return new Pt(e,t,n)},deps:[r.se,rt,i.R0b]}],Ft=[{provide:A,useFactory:function(){return"function"==typeof wt()?new Ct:new bt}},{provide:Mt,useValue:"BrowserAnimations"}].concat(Lt),Nt=[{provide:A,useClass:O},{provide:Mt,useValue:"NoopAnimations"}].concat(Lt),Bt=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?Nt:Ft}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({providers:Ft,imports:[r.b2]}),e}()},9075:function(e,t,n){"use strict";n.d(t,{b2:function(){return N},H7:function(){return D},q6:function(){return L},se:function(){return w}});var i,r,o=n(8583),a=n(3018),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){e.parentNode&&e.parentNode.removeChild(e)}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getBaseHref",value:function(e){var t=(u=u||document.querySelector("base"))?u.getAttribute("href"):null;return null==t?null:function(e){(i=i||document.createElement("a")).setAttribute("href",e);var t=i.pathname;return"/"===t.charAt(0)?t:"/".concat(t)}(t)}},{key:"resetBaseElement",value:function(){u=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(e){return(0,o.Mx)(document.cookie,e)}}],[{key:"makeCurrent",value:function(){(0,o.HT)(new n)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).supportsDOMEvents=!0,e}return n}(o.w_)),u=null,l=new a.OlP("TRANSITION_ID"),c=[{provide:a.ip1,useFactory:function(e,t,n){return function(){n.get(a.CZH).donePromise.then(function(){for(var n=(0,o.q)(),i=t.querySelectorAll('style[ng-transition="'.concat(e,'"]')),r=0;r1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},a.dqk.getAllAngularTestabilities=function(){return e.getAllTestabilities()},a.dqk.getAllAngularRootElements=function(){return e.getAllRootElements()},a.dqk.frameworkStabilizers||(a.dqk.frameworkStabilizers=[]),a.dqk.frameworkStabilizers.push(function(e){var t=a.dqk.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?(0,o.q)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){(0,a.VLi)(new e)}}]),e}(),f=((r=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||r)},r.\u0275prov=a.Yz7({token:r,factory:r.\u0275fac}),r),d=new a.OlP("EventManagerPlugins"),p=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&P.hasOwnProperty(t)&&(t=P[t]))}return T[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),A.forEach(function(i){i!=n&&I[i](e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(v);return e.\u0275fac=function(t){return new(t||e)(a.LFG(o.K0))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),D=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,a.Yz7)({factory:function(){return(0,a.LFG)(M)},token:e,providedIn:"root"}),e}(),M=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i}return _createClass(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case a.q3G.NONE:return t;case a.q3G.HTML:return(0,a.qzn)(t,"HTML")?(0,a.z3N)(t):(0,a.EiD)(this._doc,String(t)).toString();case a.q3G.STYLE:return(0,a.qzn)(t,"Style")?(0,a.z3N)(t):t;case a.q3G.SCRIPT:if((0,a.qzn)(t,"Script"))return(0,a.z3N)(t);throw new Error("unsafe value used in a script context");case a.q3G.URL:return(0,a.yhl)(t),(0,a.qzn)(t,"URL")?(0,a.z3N)(t):(0,a.mCW)(String(t));case a.q3G.RESOURCE_URL:if((0,a.qzn)(t,"ResourceURL"))return(0,a.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return(0,a.JVY)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return(0,a.L6k)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return(0,a.eBb)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return(0,a.LAX)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return(0,a.pB0)(e)}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(a.LFG(o.K0))},e.\u0275prov=(0,a.Yz7)({factory:function(){return function(e){return new M(e.get(o.K0))}((0,a.LFG)(a.gxx))},token:e,providedIn:"root"}),e}(),L=(0,a.eFA)(a._c5,"browser",[{provide:a.Lbi,useValue:o.bD},{provide:a.g9A,useValue:function(){s.makeCurrent(),h.init()},multi:!0},{provide:o.K0,useFactory:function(){return(0,a.RDi)(document),document},deps:[]}]),F=[[],{provide:a.zSh,useValue:"root"},{provide:a.qLn,useFactory:function(){return new a.qLn},deps:[]},{provide:d,useClass:O,multi:!0,deps:[o.K0,a.R0b,a.Lbi]},{provide:d,useClass:R,multi:!0,deps:[o.K0]},[],{provide:w,useClass:w,deps:[p,m,a.AFp]},{provide:a.FYo,useExisting:w},{provide:_,useExisting:m},{provide:m,useClass:m,deps:[o.K0]},{provide:a.dDg,useClass:a.dDg,deps:[a.R0b]},{provide:p,useClass:p,deps:[d,a.R0b]},{provide:o.JF,useClass:f,deps:[]},[]],N=function(){var e=function(){function e(t){if(_classCallCheck(this,e),t)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.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:a.AFp,useValue:t.appId},{provide:l,useExisting:a.AFp},c]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(e,12))},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:F,imports:[o.ez,a.hGG]}),e}();"undefined"!=typeof window&&window},8741:function(e,t,n){"use strict";n.d(t,{gz:function(){return rt},F0:function(){return On},rH:function(){return Tn},yS:function(){return Pn},Bz:function(){return qn},lC:function(){return Rn}});var i=n(8583),r=n(3018),o=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),a=n(4402),s=n(5917),u=n(6215),l=n(739),c=n(7574),h=n(8071),f=n(1439),d=n(9193),p=n(2441),v=n(9765),_=n(7393);function m(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new g(e,t,n))}}var g=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new y(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),y=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return _createClass(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(_.L),b=n(5345);function k(e){return function(t){var n=new C(e),i=t.lift(n);return n.caught=i}}var C=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new w(e,this.selector,this.caught))}}]),e}(),w=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return _createClass(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var i=new b.IY(this);this.add(i);var r=(0,b.ft)(t,i);r!==i&&this.add(r)}}}]),n}(b.Ds),x=n(5435),E=n(7108);function S(e){return function(t){return 0===e?(0,d.c)():t.lift(new O(e))}}var O=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new E.W}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new A(e,this.total))}}]),e}(),A=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:R;return function(t){return t.lift(new P(e))}}var P=function(){function e(t){_classCallCheck(this,e),this.errorFactory=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new I(e,this.errorFactory))}}]),e}(),I=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(_.L);function R(){return new o}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new M(e))}}var M=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new L(e,this.defaultValue))}}]),e}(),L=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return _createClass(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(_.L),F=n(4487),N=n(5257);function B(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?(0,x.h)(function(t,n){return e(t,n,i)}):F.y,(0,N.q)(1),n?D(t):T(function(){return new o}))}}var U=n(5319),Z=function(){function e(t){_classCallCheck(this,e),this.callback=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new j(e,this.callback))}}]),e}(),j=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).add(new U.w(i)),r}return n}(_.L),q=n(8002),V=n(3190),H=n(9761),z=n(4612),Y=n(9773),G=n(3342),K=n(1307),W=n(3282),Q=function e(t,n){_classCallCheck(this,e),this.id=t,this.url=n},J=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Q),X=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Q),$=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).reason=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Q),ee=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).error=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Q),te=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ne=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ie=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s;return _classCallCheck(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(Q),re=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),oe=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ae=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),se=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),ue=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),le=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),ce=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),he=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fe=function(){function e(t,n,i){_classCallCheck(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),de="primary",pe=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function ve(e){return new pe(e)}var _e="ngNavigationCancelingError";function me(e){var t=Error("NavigationCancelingError: "+e);return t[_e]=!0,t}function ge(e,t,n){var i=n.path.split("/");if(i.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function we(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function xe(e){return(0,r.CqO)(e)?e:(0,r.QGY)(e)?(0,a.D)(Promise.resolve(e)):(0,s.of)(e)}var Ee={exact:function e(t,n,i){if(!Me(t.segments,n.segments)||!Pe(t.segments,n.segments,i)||t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children)if(!t.children[r]||!e(t.children[r],n.children[r],i))return!1;return!0},subset:Ae},Se={exact:function(e,t){return ye(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return be(e[n],t[n])})},ignored:function(){return!0}};function Oe(e,t,n){return Ee[n.paths](e.root,t.root,n.matrixParams)&&Se[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Ae(e,t,n){return Te(e,t,t.segments,n)}function Te(e,t,n,i){if(e.segments.length>n.length){var r=e.segments.slice(0,n.length);return!(!Me(r,n)||t.hasChildren()||!Pe(r,n,i))}if(e.segments.length===n.length){if(!Me(e.segments,n)||!Pe(e.segments,n,i))return!1;for(var o in t.children)if(!e.children[o]||!Ae(e.children[o],t.children[o],i))return!1;return!0}var a=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!(Me(e.segments,a)&&Pe(e.segments,a,i)&&e.children[de])&&Te(e.children[de],t,s,i)}function Pe(e,t,n){return t.every(function(t,i){return Se[n](e[i].parameters,t.parameters)})}var Ie=function(){function e(t,n,i){_classCallCheck(this,e),this.root=t,this.queryParams=n,this.fragment=i}return _createClass(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ve(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Ne.serialize(this)}}]),e}(),Re=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.segments=t,this.children=n,this.parent=null,we(n,function(e,t){return e.parent=i})}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Be(this)}}]),e}(),De=function(){function e(t,n){_classCallCheck(this,e),this.path=t,this.parameters=n}return _createClass(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=ve(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return ze(this)}}]),e}();function Me(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var Le=function e(){_classCallCheck(this,e)},Fe=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new Qe(e);return new Ie(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t;return"".concat("/".concat(Ue(e.root,!0)),function(e){var t=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(je(t),"=").concat(je(e))}).join("&"):"".concat(je(t),"=").concat(je(n))}).filter(function(e){return!!e});return t.length?"?".concat(t.join("&")):""}(e.queryParams)).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),Ne=new Fe;function Be(e){return e.segments.map(function(e){return ze(e)}).join("/")}function Ue(e,t){if(!e.hasChildren())return Be(e);if(t){var n=e.children[de]?Ue(e.children[de],!1):"",i=[];return we(e.children,function(e,t){t!==de&&i.push("".concat(t,":").concat(Ue(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return we(e.children,function(e,i){i===de&&(n=n.concat(t(e,i)))}),we(e.children,function(e,i){i!==de&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return n===de?[Ue(e.children[de],!1)]:["".concat(n,":").concat(Ue(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[de]?"".concat(Be(e),"/").concat(r[0]):"".concat(Be(e),"/(").concat(r.join("//"),")")}function Ze(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function je(e){return Ze(e).replace(/%3B/gi,";")}function qe(e){return Ze(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ve(e){return decodeURIComponent(e)}function He(e){return Ve(e.replace(/\+/g,"%20"))}function ze(e){return"".concat(qe(e.path)).concat(function(e){return Object.keys(e).map(function(t){return";".concat(qe(t),"=").concat(qe(e[t]))}).join("")}(e.parameters))}var Ye=/^[^\/()?;=#]+/;function Ge(e){var t=e.match(Ye);return t?t[0]:""}var Ke=/^[^=?&#]+/,We=/^[^?&#]+/,Qe=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Re([],{}):new Re([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[de]=new Re(e,t)),n}},{key:"parseSegment",value:function(){var e=Ge(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new De(Ve(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Ge(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Ge(this.remaining);i&&(n=i,this.capture(n))}e[Ve(t)]=Ve(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Ke);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(We);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=He(t),o=He(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Ge(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=de);var o=this.parseChildren();t[r]=1===Object.keys(o).length?o[de]:new Re([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Je=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Xe(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=Xe(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=$e(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return $e(e,this._root).map(function(e){return e.value})}}]),e}();function Xe(e,t){if(e===t.value)return t;var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=Xe(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function $e(e,t){if(e===t.value)return[t];var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=$e(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var et=function(){function e(t,n){_classCallCheck(this,e),this.value=t,this.children=n}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function tt(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var nt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).snapshot=i,ut(_assertThisInitialized(r),e),r}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Je);function it(e,t){var n=function(e,t){var n=new at([],{},{},"",{},de,t,null,e.root,-1,{});return new st("",new et(n,[]))}(e,t),i=new u.X([new De("",{})]),r=new u.X({}),o=new u.X({}),a=new u.X({}),s=new u.X(""),l=new rt(i,r,a,s,o,de,t,n.root);return l.snapshot=n.root,new nt(new et(l,[]),n)}var rt=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return _createClass(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,q.U)(function(e){return ve(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,q.U)(function(e){return ve(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var at=function(){function e(t,n,i,r,o,a,s,u,l,c,h){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return _createClass(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=ve(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ve(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),st=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,i)).url=e,ut(_assertThisInitialized(r),i),r}return _createClass(n,[{key:"toString",value:function(){return lt(this._root)}}]),n}(Je);function ut(e,t){t.value._routerState=e,t.children.forEach(function(t){return ut(e,t)})}function lt(e){var t=e.children.length>0?" { ".concat(e.children.map(lt).join(", ")," } "):"";return"".concat(e.value).concat(t)}function ct(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ye(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ye(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&pt(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(vt);if(r&&r!==Ce(i))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),yt=function e(t,n,i){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function bt(e,t,n){if(e||(e=new Re([],{})),0===e.segments.length&&e.hasChildren())return kt(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=e.segments[r],s=n[i];if(vt(s))break;var u="".concat(s),l=i0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!Et(u,l,a))return o;i+=2}else{if(!Et(u,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},jt):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||ge)(n,e,t);if(!r)return Object.assign({},jt);var o={};we(r.posParams,function(e,t){o[t]=e.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Vt(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Ht(e,t,n)&&Ut(n)!==de})}(e,n,i)){var o=new Re(t,function(e,t,n,i){var r={};r[de]=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,a=_createForOfIteratorHelper(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&Ut(s)!==de){var u=new Re([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,r[Ut(s)]=u}}}catch(l){a.e(l)}finally{a.f()}return r}(e,t,i,new Re(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Ht(e,t,n)})}(e,n,i)){var a=new Re(e.segments,function(e,t,n,i,r,o){var a,s={},u=_createForOfIteratorHelper(i);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(Ht(e,n,l)&&!r[Ut(l)]){var c=new Re([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[Ut(l)]=c}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new Re(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Ht(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function zt(e,t,n,i){return!!(Ut(e)===i||i!==de&&Ht(t,n,e))&&("**"===e.path||qt(t,e,n).matched)}function Yt(e,t,n){return 0===t.length&&!e.children[n]}var Gt=function e(t){_classCallCheck(this,e),this.segmentGroup=t||null},Kt=function e(t){_classCallCheck(this,e),this.urlTree=t};function Wt(e){return new c.y(function(t){return t.error(new Gt(e))})}function Qt(e){return new c.y(function(t){return t.error(new Kt(e))})}function Jt(e){return new c.y(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var Xt=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(r.h0i)}return _createClass(e,[{key:"apply",value:function(){var e=this,t=Vt(this.urlTree.root,[],[],this.config).segmentGroup,n=new Re(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,de).pipe((0,q.U)(function(t){return e.createUrlTree($t(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(k(function(t){if(t instanceof Kt)return e.allowRedirects=!1,e.match(t.urlTree);throw t instanceof Gt?e.noMatchError(t):t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,de).pipe((0,q.U)(function(n){return t.createUrlTree($t(n),e.queryParams,e.fragment)})).pipe(k(function(e){throw e instanceof Gt?t.noMatchError(e):e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new Re([],_defineProperty({},de,e)):e;return new Ie(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe((0,q.U)(function(e){return new Re([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],s=0,u=Object.keys(n.children);s=2;return function(i){return i.pipe(e?(0,x.h)(function(t,n){return e(t,n,i)}):F.y,S(1),n?D(t):T(function(){return new o}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,u){var l=this;return(0,a.D)(n).pipe((0,z.b)(function(o){return l.expandSegmentAgainstRoute(e,t,n,o,i,r,u).pipe(k(function(e){if(e instanceof Gt)return(0,s.of)(null);throw e}))}),B(function(e){return!!e}),k(function(e,n){if(e instanceof o||"EmptyError"===e.name){if(Yt(t,i,r))return(0,s.of)(new Re([],{}));throw new Gt(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return zt(i,t,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):Wt(t):Wt(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Qt(o):this.lineralizeSegments(n,o).pipe((0,Y.zg)(function(n){var o=new Re(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=qt(t,i,r),u=s.matched,l=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!u)return Wt(t);var f=this.applyRedirectCommands(l,i.redirectTo,h);return i.redirectTo.startsWith("/")?Qt(f):this.lineralizeSegments(i,f).pipe((0,Y.zg)(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,s.of)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe((0,q.U)(function(e){return n._loadedConfig=e,new Re(i,{})})):(0,s.of)(new Re(i,{}));var a=qt(t,n,i),u=a.matched,l=a.consumedSegments,c=a.lastChild;if(!u)return Wt(t);var h=i.slice(c);return this.getChildConfig(e,n,i).pipe((0,Y.zg)(function(e){var i=e.module,a=e.routes,u=Vt(t,l,h,a),c=u.segmentGroup,f=u.slicedSegments,d=new Re(c.segments,c.children);if(0===f.length&&d.hasChildren())return o.expandChildren(i,a,d).pipe((0,q.U)(function(e){return new Re(l,e)}));if(0===a.length&&0===f.length)return(0,s.of)(new Re(l,{}));var p=Ut(n)===r;return o.expandSegment(i,d,a,f,p?de:r,!0).pipe((0,q.U)(function(e){return new Re(l.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?(0,s.of)(new At(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?(0,s.of)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe((0,Y.zg)(function(n){return n?i.configLoader.load(e.injector,t).pipe((0,q.U)(function(e){return t._loadedConfig=e,e})):(r=t,new c.y(function(e){return e.error(me("Cannot load children because the guard of the route \"path: '".concat(r.path,"'\" returned false")))}));var r})):(0,s.of)(new At([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;if(!r||0===r.length)return(0,s.of)(!0);var o=r.map(function(i){var r,o,a=e.get(i);if((o=a)&&Tt(o.canLoad))r=a.canLoad(t,n);else{if(!Tt(a))throw new Error("Invalid CanLoad guard");r=a(t,n)}return xe(r)});return(0,s.of)(o).pipe(Rt(),(0,G.b)(function(e){if(Pt(e)){var t=me('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),(0,q.U)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,s.of)(n);if(i.numberOfChildren>1||!i.children[de])return Jt(e.redirectTo);i=i.children[de]}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new Ie(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return we(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return we(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new Re(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return e}}]),e}();function $t(e){for(var t={},n=0,i=Object.keys(e.children);n0||o.hasChildren())&&(t[r]=o)}return function(e){if(1===e.numberOfChildren&&e.children[de]){var t=e.children[de];return new Re(e.segments.concat(t.segments),t.children)}return e}(new Re(e.segments,t))}var en=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},tn=function e(t,n){_classCallCheck(this,e),this.component=t,this.route=n};function nn(e,t,n){var i=e._root;return on(i,t?t._root:null,n,[i.value])}function rn(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function on(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=tt(t);return e.children.forEach(function(e){(function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Me(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Me(e.url,t.url)||!ye(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ht(e,t)||!ye(e.queryParams,t.queryParams);case"paramsChange":default:return!ht(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new en(i)):(o.data=a.data,o._resolvedData=a._resolvedData),on(e,t,o.component?s?s.children:null:n,i,r),u&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new tn(s.outlet.component,a))}else a&&an(t,s,r),r.canActivateChecks.push(new en(i)),on(e,null,o.component?s?s.children:null:n,i,r)})(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),we(o,function(e,t){return an(e,n.getContext(t),r)}),r}function an(e,t,n){var i=tt(e),r=e.value;we(i,function(e,i){an(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new tn(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var sn=function e(){_classCallCheck(this,e)};function un(e){return new c.y(function(t){return t.error(e)})}var ln=function(){function e(t,n,i,r,o,a){_classCallCheck(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return _createClass(e,[{key:"recognize",value:function(){var e=Vt(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,de);if(null===t)return null;var n=new at([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},de,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new et(n,t),r=new st(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=ot(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i0?Ce(n).parameters:{};r=new at(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dn(e),Ut(e),e.component,e,hn(t),fn(t)+n.length,pn(e))}else{var u=qt(t,e,n);if(!u.matched)return null;o=u.consumedSegments,a=n.slice(u.lastChild),r=new at(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dn(e),Ut(e),e.component,e,hn(t),fn(t)+o.length,pn(e))}var l,c=(l=e).children?l.children:l.loadChildren?l._loadedConfig.routes:[],h=Vt(t,o,a,c.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),f=h.segmentGroup,d=h.slicedSegments;if(0===d.length&&f.hasChildren()){var p=this.processChildren(c,f);return null===p?null:[new et(r,p)]}if(0===c.length&&0===d.length)return[new et(r,[])];var v=Ut(e)===i,_=this.processSegment(c,f,d,v?de:i);return null===_?null:[new et(r,_)]}}]),e}();function cn(e){var t,n=[],i=new Set,r=_createForOfIteratorHelper(e);try{var o=function(){var e,r=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(r))return n.push(r),"continue";var o=n.find(function(e){return r.value.routeConfig===e.value.routeConfig});void 0!==o?((e=o.children).push.apply(e,_toConsumableArray(r.children)),i.add(o)):n.push(r)};for(r.s();!(t=r.n()).done;)o()}catch(c){r.e(c)}finally{r.f()}var a,s=_createForOfIteratorHelper(i);try{for(s.s();!(a=s.n()).done;){var u=a.value,l=cn(u.children);n.push(new et(u.value,l))}}catch(c){s.e(c)}finally{s.f()}return n.filter(function(e){return!i.has(e)})}function hn(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function fn(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function dn(e){return e.data||{}}function pn(e){return e.resolve||{}}function vn(e){return(0,V.w)(function(t){var n=e(t);return n?(0,a.D)(n).pipe((0,q.U)(function(){return t})):(0,s.of)(t)})}var _n=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),mn=new r.OlP("ROUTES"),gn=function(){function e(t,n,i,r){_classCallCheck(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return _createClass(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe((0,q.U)(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var o=i.create(e);return new At(ke(o.injector.get(mn,void 0,r.XFs.Self|r.XFs.Optional)).map(Bt),o)}),k(function(e){throw t._loader$=void 0,e}));return t._loader$=new p.c(i,function(){return new v.xQ}).pipe((0,K.x)()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?(0,a.D)(this.loader.load(e)):xe(e()).pipe((0,Y.zg)(function(e){return e instanceof r.YKP?(0,s.of)(e):(0,a.D)(t.compiler.compileModuleAsync(e))}))}}]),e}(),yn=function e(){_classCallCheck(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new bn,this.attachRef=null},bn=function(){function e(){_classCallCheck(this,e),this.contexts=new Map}return _createClass(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new yn,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),kn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Cn(e){throw e}function wn(e,t,n){return t.parse("/")}function xn(e,t){return(0,s.of)(null)}var En={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Sn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},On=function(){var e=function(){function e(t,n,i,o,a,s,l,c){var h=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=o,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new v.xQ,this.errorHandler=Cn,this.malformedUriErrorHandler=wn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:xn,afterPreactivation:xn},this.urlHandlingStrategy=new kn,this.routeReuseStrategy=new _n,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=a.get(r.h0i),this.console=a.get(r.c2e);var f=a.get(r.R0b);this.isNgZoneEnabled=f instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Ie(new Re([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new gn(s,l,function(e){return h.triggerEvent(new ae(e))},function(e){return h.triggerEvent(new se(e))}),this.routerState=it(this.currentUrlTree,this.rootComponentType),this.transitions=new u.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(e,[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe((0,x.h)(function(e){return 0!==e.id}),(0,q.U)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),(0,V.w)(function(e){var i=!1,r=!1;return(0,s.of)(e).pipe((0,G.b)(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,V.w)(function(e){var i=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString(),o=("reload"===t.onSameUrlNavigation||i)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl);if(An(e.source)&&(t.browserUrlTree=e.rawUrl),o)return(0,s.of)(e).pipe((0,V.w)(function(e){var i=t.transitions.getValue();return n.next(new J(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?d.E:Promise.resolve(e)}),function(e,t,n,i){return(0,V.w)(function(r){return function(e,t,n,i,r){return new Xt(e,t,n,i,r).apply()}(e,t,n,r.extractedUrl,i).pipe((0,q.U)(function(e){return Object.assign(Object.assign({},r),{urlAfterRedirects:e})}))})}(t.ngModule.injector,t.configLoader,t.urlSerializer,t.config),(0,G.b)(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,o,a){return(0,Y.zg)(function(i){return function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var u=new ln(e,t,n,i,o,a).recognize();return null===u?un(new sn):(0,s.of)(u)}catch(r){return un(r)}}(e,n,i.urlAfterRedirects,(u=i.urlAfterRedirects,t.serializeUrl(u)),o,a).pipe((0,q.U)(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var u})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),(0,G.b)(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,e),t.browserUrlTree=e.urlAfterRedirects);var i=new te(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(i&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var a=e.id,u=e.extractedUrl,l=e.source,c=e.restoredState,h=e.extras,f=new J(a,t.serializeUrl(u),l,c);n.next(f);var p=it(u,t.rootComponentType).snapshot;return(0,s.of)(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:u,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),d.E}),vn(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),(0,G.b)(function(e){var n=new ne(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,q.U)(function(e){return Object.assign(Object.assign({},e),{guards:nn(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return(0,Y.zg)(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,u=o.canActivateChecks,l=o.canDeactivateChecks;return 0===l.length&&0===u.length?(0,s.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return(0,a.D)(e).pipe((0,Y.zg)(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,s.of)(!0);var a=o.map(function(o){var a,s=rn(o,t,r);if(function(e){return e&&Tt(e.canDeactivate)}(s))a=xe(s.canDeactivate(e,t,n,i));else{if(!Tt(s))throw new Error("Invalid CanDeactivate guard");a=xe(s(e,t,n,i))}return a.pipe(B())});return(0,s.of)(a).pipe(Rt())}(e.component,e.route,n,t,i)}),B(function(e){return!0!==e},!0))}(l,i,r,e).pipe((0,Y.zg)(function(n){return n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,i){return(0,a.D)(t).pipe((0,z.b)(function(t){return(0,h.z)(function(e,t){return null!==e&&t&&t(new ue(e)),(0,s.of)(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new ce(e)),(0,s.of)(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return(0,f.P)(function(){var r=t.guards.map(function(r){var o,a=rn(r,t.node,n);if(function(e){return e&&Tt(e.canActivateChild)}(a))o=xe(a.canActivateChild(i,e));else{if(!Tt(a))throw new Error("Invalid CanActivateChild guard");o=xe(a(i,e))}return o.pipe(B())});return(0,s.of)(r).pipe(Rt())})});return(0,s.of)(r).pipe(Rt())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return(0,s.of)(!0);var r=i.map(function(i){return(0,f.P)(function(){var r,o=rn(i,t,n);if(function(e){return e&&Tt(e.canActivate)}(o))r=xe(o.canActivate(t,e));else{if(!Tt(o))throw new Error("Invalid CanActivate guard");r=xe(o(t,e))}return r.pipe(B())})});return(0,s.of)(r).pipe(Rt())}(e,t.route,n))}),B(function(e){return!0!==e},!0))}(i,u,e,t):(0,s.of)(n)}),(0,q.U)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),(0,G.b)(function(e){if(Pt(e.guardsResult)){var n=me('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new ie(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),(0,x.h)(function(e){return!!e.guardsResult||(t.restoreHistory(e),t.cancelNavigationTransition(e,""),!1)}),vn(function(e){if(e.guards.canActivateChecks.length)return(0,s.of)(e).pipe((0,G.b)(function(e){var n=new re(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,V.w)(function(e){var n=!1;return(0,s.of)(e).pipe(function(e,t){return(0,Y.zg)(function(n){var i=n.targetSnapshot,r=n.guards.canActivateChecks;if(!r.length)return(0,s.of)(n);var o=0;return(0,a.D)(r).pipe((0,z.b)(function(n){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return(0,s.of)({});var o={};return(0,a.D)(r).pipe((0,Y.zg)(function(r){return function(e,t,n,i){var r=rn(e,t,i);return xe(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe((0,G.b)(function(e){o[r]=e}))}),S(1),(0,Y.zg)(function(){return Object.keys(o).length===r.length?(0,s.of)(o):d.E}))}(e._resolve,e,t,i).pipe((0,q.U)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),ot(e,n).resolve),null}))}(n.route,i,e,t)}),(0,G.b)(function(){return o++}),S(1),(0,Y.zg)(function(e){return o===r.length?(0,s.of)(n):d.E}))})}(t.paramsInheritanceStrategy,t.ngModule.injector),(0,G.b)({next:function(){return n=!0},complete:function(){n||(t.restoreHistory(e),t.cancelNavigationTransition(e,"At least one route resolver didn't emit any value."))}}))}),(0,G.b)(function(e){var n=new oe(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),vn(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),(0,q.U)(function(e){var n=function(e,t,n){var i=ft(e,t._root,n?n._root:void 0);return new nt(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),(0,G.b)(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,e),t.browserUrlTree=e.urlAfterRedirects)}),function(e,t,n){return(0,q.U)(function(i){return new St(t,i.targetRouterState,i.currentRouterState,n).activate(e),i})}(t.rootContexts,t.routeReuseStrategy,function(e){return t.triggerEvent(e)}),(0,G.b)({next:function(){i=!0},complete:function(){i=!0}}),function(e){return function(t){return t.lift(new Z(e))}}(function(){if(!i&&!r){var n="Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId);"replace"===t.canceledNavigationResolution?(t.restoreHistory(e),t.cancelNavigationTransition(e,n)):t.cancelNavigationTransition(e,n)}t.currentNavigation=null}),k(function(i){if(r=!0,function(e){return e&&e[_e]}(i)){var o=Pt(i.url);o||(t.navigated=!0,t.restoreHistory(e,!0));var a=new $(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(a),o?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree),r={skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||An(e.source)};t.scheduleNavigation(n,"imperative",null,r,{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.restoreHistory(e,!0);var s=new ee(e.id,t.serializeUrl(e.extractedUrl),i);n.next(s);try{e.resolve(t.errorHandler(i))}catch(a){e.reject(a)}}return d.E}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return t.transitionId!==e.transitionId||!n||!("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source)}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){Lt(e),this.config=e.map(Bt),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,s=n||this.routerState.root,u=a?this.currentUrlTree.fragment:r,l=null;switch(o){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(e,t,n,i,r){if(0===n.length)return _t(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new gt(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return we(i.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(_toConsumableArray(e),[{outlets:o}])}if(i.segmentPath)return[].concat(_toConsumableArray(e),[i.segmentPath])}return"string"!=typeof i?[].concat(_toConsumableArray(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(_toConsumableArray(e),[i])},[]);return new gt(n,t,i)}(n);if(o.toRoot())return _t(t.root,new Re([],{}),t,i,r);var a=function(e,t,n){if(e.isAbsolute)return new yt(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new yt(i,i===t.root,0)}var r=pt(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new yt(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?kt(a.segmentGroup,a.index,o.commands):bt(a.segmentGroup,a.index,o.commands);return _t(a.segmentGroup,s,t,i,r)}(s,this.currentUrlTree,e,l,null!=u?u:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Pt(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(t=this.currentNavigation)||void 0===t?void 0:t.finalUrl)||0===r?this.currentUrlTree===(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,t){var n=new $(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(n),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":t}:{navigationId:e}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.DyG),r.LFG(Le),r.LFG(bn),r.LFG(i.Ye),r.LFG(r.zs3),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(void 0))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}();function An(e){return"imperative"!==e}var Tn=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new v.xQ,null==i&&r.setAttribute(o.nativeElement,"tabindex","0")}return _createClass(e,[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(On),r.Y36(rt),r.$8M("tabindex"),r.Y36(r.Qsj),r.Y36(r.SBq))},e.\u0275dir=r.lG2({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&r.NdJ("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),e}(),Pn=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.onChanges=new v.xQ,this.subscription=t.events.subscribe(function(e){e instanceof X&&r.updateTargetUrlAndHref()})}return _createClass(e,[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,i,r){if(0!==e||t||n||i||r||"string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(On),r.Y36(rt),r.Y36(i.S$))},e.\u0275dir=r.lG2({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&r.NdJ("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(r.Ikx("href",t.href,r.LSH),r.uIk("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),e}();function In(e){return""===e||!!e}var Rn=function(){var e=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.name=o||de,t.onChildOutletCreated(this.name,this)}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new Dn(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(bn),r.Y36(r.s_b),r.Y36(r._Vd),r.$8M("name"),r.Y36(r.sBO))},e.\u0275dir=r.lG2({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),Dn=function(){function e(t,n,i){_classCallCheck(this,e),this.route=t,this.childContexts=n,this.parent=i}return _createClass(e,[{key:"get",value:function(e,t){return e===rt?this.route:e===bn?this.childContexts:this.parent.get(e,t)}}]),e}(),Mn=function e(){_classCallCheck(this,e)},Ln=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return(0,s.of)(null)}}]),e}(),Fn=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new gn(n,i,function(e){return t.triggerEvent(new ae(e))},function(e){return t.triggerEvent(new se(e))})}return _createClass(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe((0,x.h)(function(e){return e instanceof X}),(0,z.b)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(r.h0i);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var s=o._loadedConfig;i.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(e,o)):o.children&&i.push(this.processRoutes(e,o.children))}}catch(u){r.e(u)}finally{r.f()}return(0,a.D)(i).pipe((0,W.J)(),(0,q.U)(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?(0,s.of)(t._loadedConfig):n.loader.load(e.injector,t)).pipe((0,Y.zg)(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(On),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(Mn))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Nn=function(){var e=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof J?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof X&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof fe&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new fe(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(On),r.LFG(i.EM),r.LFG(void 0))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Bn=new r.OlP("ROUTER_CONFIGURATION"),Un=new r.OlP("ROUTER_FORROOT_GUARD"),Zn=[i.Ye,{provide:Le,useClass:Fe},{provide:On,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new On(null,e,t,n,i,r,o,ke(a));return u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,c),s.enableTracing&&c.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),c},deps:[Le,bn,i.Ye,r.zs3,r.v3s,r.Sil,mn,Bn,[function(){return function e(){_classCallCheck(this,e)}}(),new r.FiY],[function(){return function e(){_classCallCheck(this,e)}}(),new r.FiY]]},bn,{provide:rt,useFactory:function(e){return e.routerState.root},deps:[On]},{provide:r.v3s,useClass:r.EAV},Fn,Ln,function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return t().pipe(k(function(){return(0,s.of)(null)}))}}]),e}(),{provide:Bn,useValue:{enableTracing:!1}}];function jn(){return new r.PXZ("Router",On)}var qn=function(){var e=function(){function e(t,n){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Zn,Yn(t),{provide:Un,useFactory:zn,deps:[[On,new r.FiY,new r.tp0]]},{provide:Bn,useValue:n||{}},{provide:i.S$,useFactory:Hn,deps:[i.lw,[new r.tBr(i.mr),new r.FiY],Bn]},{provide:Nn,useFactory:Vn,deps:[On,i.EM,Bn]},{provide:Mn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ln},{provide:r.PXZ,multi:!0,useFactory:jn},[Gn,{provide:r.ip1,multi:!0,useFactory:Kn,deps:[Gn]},{provide:Qn,useFactory:Wn,deps:[Gn]},{provide:r.tb,multi:!0,useExisting:Qn}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Yn(t)]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(Un,8),r.LFG(On,8))},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}();function Vn(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Nn(e,t,n)}function Hn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new i.Do(e,t):new i.b0(e,t)}function zn(e){return"guarded"}function Yn(e){return[{provide:r.deG,multi:!0,useValue:e},{provide:mn,multi:!0,useValue:e}]}var Gn=function(){var e=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new v.xQ}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(i.V_,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(On),r=e.injector.get(Bn);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?(0,s.of)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Bn),n=this.injector.get(Fn),i=this.injector.get(Nn),o=this.injector.get(On),a=this.injector.get(r.z2F);e===a.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&o.initialNavigation(),n.setUpPreloading(),i.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.zs3))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}();function Kn(e){return e.appInitializer.bind(e)}function Wn(e){return e.bootstrapListener.bind(e)}var Qn=new r.OlP("Router Initializer")},6215:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var i=n(9765),r=n(7971),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._value=e,i}return _createClass(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=_get(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.N;return this._value}},{key:"next",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=e)}}]),n}(i.xQ)},1593:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var i=n(9193),r=n(5917),o=n(7574),a=function(){function e(t,n,i){_classCallCheck(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,r.of)(this.value);case"E":return e=this.error,new o.y(function(t){return t.error(e)});case"C":return(0,i.c)()}var e;throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();a.completeNotification=new a("C"),a.undefinedValueNotification=new a("N",void 0)},7574:function(e,t,n){"use strict";n.d(t,{y:function(){return c}});var i,r=n(7393),o=n(9181),a=n(6490),s=n(6554),u=n(4487),l=n(2494),c=((i=function(e){function t(e){_classCallCheck(this,t),this._isScalar=!1,e&&(this._subscribe=e)}return _createClass(t,[{key:"lift",value:function(e){var n=new t;return n.source=this,n.operator=e,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,s=function(e,t,n){if(e){if(e instanceof r.L)return e;if(e[o.b])return e[o.b]()}return e||t||n?new r.L(e,t,n):new r.L(a.c)}(e,t,n);if(s.add(i?i.call(s,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),l.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){l.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,i=t.destination,o=t.isStopped;if(n||o)return!1;e=i&&i instanceof r.L?i:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=h(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:e,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n4&&void 0!==arguments[4]?arguments[4]:new s(e,n,i);if(!r.closed)return t instanceof l.y?t.subscribe(r):(0,u.s)(t)(r)}var h=n(6693),f={};function d(){for(var e=arguments.length,t=new Array(e),n=0;n1?Array.prototype.slice.call(arguments):e)},i,n)})}function u(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(t,n),o=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,h=e.length;c1&&"number"==typeof t[t.length-1]&&(s=t.pop())):"number"==typeof l&&(s=t.pop()),null===u&&1===t.length&&t[0]instanceof i.y?t[0]:(0,o.J)(s)((0,a.n)(t,u))}},5917:function(e,t,n){"use strict";n.d(t,{of:function(){return a}});var i=n(4869),r=n(6693),o=n(4087);function a(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:i.P;return function(e){return function(t){return t.lift(new o(e))}}(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=-1;return(0,u.k)(t)?r=Number(t)<1?1:Number(t):(0,l.K)(t)&&(n=t),(0,l.K)(n)||(n=i.P),new s.y(function(t){var i=(0,u.k)(e)?e:+e-n.now();return n.schedule(c,i,{index:0,period:r,subscriber:t})})}(e,t)})}},4612:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var i=n(9773);function r(e,t){return(0,i.zg)(e,t,1)}},4395:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var i=n(7393),r=n(3637);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P;return function(n){return n.lift(new a(e,t))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.dueTime=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return _createClass(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(u,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(i.L);function u(e){e.debouncedNext()}},7519:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var i=n(7393);function r(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.compare=t,this.keySelector=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.compare,this.keySelector))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return _createClass(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(n){return this.destination.error(n)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(i.L)},5435:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var i=n(7393);function r(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).predicate=i,o.thisArg=r,o.count=0,o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(i.L)},8002:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});var i=n(7393);function r(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||_assertThisInitialized(o),o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(i.L)},3282:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var i=n(9773),r=n(4487);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,i.zg)(r.y,e)}},9773:function(e,t,n){"use strict";n.d(t,{zg:function(){return a}});var i=n(8002),r=n(4402),o=n(5345);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(o){return o.pipe(a(function(n,o){return(0,r.D)(e(n,o)).pipe((0,i.U)(function(e,i){return t(n,e,o,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new s(e,n))})}var s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.project,this.concurrent))}}]),e}(),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(o.Ds)},1307:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var i=n(7393);function r(){return function(e){return e.lift(new o(e))}}var o=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new a(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).connectable=i,r}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}else this.connection=null}}]),n}(i.L)},3653:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var i=n(7393);function r(e){return function(t){return t.lift(new o(e))}}var o=function(){function e(t){_classCallCheck(this,e),this.total=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.total))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(i.L)},9761:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var i=n(8071),r=n(4869);function o(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"schedule",value:function(e){return this}}]),n}(n(5319).w))},6102:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var i,r=((i=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}()).now=function(){return Date.now()},i),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.now;return _classCallCheck(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==_assertThisInitialized(i)?n.delegate.now():o()})).actions=[],i.active=!1,i.scheduled=void 0,i}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(r)},4581:function(e,t,n){"use strict";n.d(t,{E:function(){return c}});var i=1,r=Promise.resolve(),o={};function a(e){return e in o&&(delete o[e],!0)}var s=function(e){var t=i++;return o[t]=!0,r.then(function(){return a(t)&&e()}),t},u=function(e){a(e)},l=n(6465),c=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=s(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(u(t),e.scheduled=void 0)}}]),n}(l.o))},3637:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var i=n(6465),r=new(n(6102).v)(i.o)},377:function(e,t,n){"use strict";n.d(t,{hZ:function(){return i}});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},7971:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},4449:function(e,t,n){"use strict";function i(e){setTimeout(function(){throw e},0)}n.d(t,{z:function(){return i}})},4487:function(e,t,n){"use strict";function i(e){return e}n.d(t,{y:function(){return i}})},9796:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var i=Array.isArray||function(e){return e&&"number"==typeof e.length}},9489:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},9105:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,{m:function(){return i}})},6561:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var i=n(9796);function r(e){return!(0,i.k)(e)&&e-parseFloat(e)+1>=0}},1555:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,{K:function(){return i}})},5639:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var i=n(7574);function r(e){return!!e&&(e instanceof i.y||"function"==typeof e.lift&&"function"==typeof e.subscribe)}},4072:function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,{t:function(){return i}})},4869:function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,{K:function(){return i}})},7444:function(e,t,n){"use strict";n.d(t,{s:function(){return c}});var i=n(5015),r=n(4449),o=n(377),a=n(6554),s=n(9489),u=n(4072),l=n(1555),c=function(e){if(e&&"function"==typeof e[a.L])return function(e){return function(t){var n=e[a.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}}(e);if((0,s.z)(e))return(0,i.V)(e);if((0,u.t)(e))return function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,r.z),t}}(e);if(e&&"function"==typeof e[o.hZ])return function(e){return function(t){for(var n=e[o.hZ]();;){var i=void 0;try{i=n.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}}(e);var t="You provided ".concat((0,l.K)(e)?"an invalid object":"'".concat(e,"'")," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.");throw new TypeError(t)}},5015:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var i=function(e){return function(t){for(var n=0,i=e.length;n0?(this.dialogRef.afterClosed().subscribe(function(t){e.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.P;return(!(0,a.k)(e)||e<0)&&(e=0),(!t||"function"!=typeof t.schedule)&&(t=o.P),new r.y(function(n){return n.add(t.schedule(s,e,{subscriber:n,counter:0,period:e})),n})}(1e3).subscribe(function(t){var n=e.data.autoclose-1e3*(t+1);e.setExtra(n),n<=0&&e.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(function(t){e.closed()}),this.subscription=this.data.checkClose.subscribe(function(t){window.setTimeout(function(){e.doClose()})}))}},{key:"initYesNo",value:function(){}},{key:"ngOnInit",value:function(){this.data.type===m.yesno?this.initYesNo():this.initAlert()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.Y36(i.so),u.Y36(i.WI))},e.\u0275cmp=u.Xpm({type:e,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"]],template:function(e,t){1&e&&(u._UZ(0,"h4",0),u.ALo(1,"safeHtml"),u._UZ(2,"mat-dialog-content",1),u.ALo(3,"safeHtml"),u.TgZ(4,"mat-dialog-actions"),u.YNc(5,d,4,1,"button",2),u.YNc(6,p,3,0,"button",2),u.YNc(7,v,3,0,"button",2),u.qZA()),2&e&&(u.Q6J("innerHtml",u.lcZ(1,5,t.data.title),u.oJD),u.xp6(2),u.Q6J("innerHTML",u.lcZ(3,7,t.data.body),u.oJD),u.xp6(3),u.Q6J("ngIf",0===t.data.type),u.xp6(1),u.Q6J("ngIf",1===t.data.type),u.xp6(1),u.Q6J("ngIf",1===t.data.type))},directives:[i.uh,i.xY,i.H8,l.O5,c.lW,i.ZT,h.P],pipes:[f.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}(),y=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialog=t}return _createClass(e,[{key:"alert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=window.innerWidth<800?"80%":"40%";return this.dialog.open(g,{width:r,data:{title:e,body:t,autoclose:n,checkClose:i,type:m.alert},disableClose:!0})}},{key:"yesno",value:function(e,t){var n=window.innerWidth<800?"80%":"40%";return this.dialog.open(g,{width:n,data:{title:e,body:t,type:m.yesno},disableClose:!0}).componentInstance.yesno}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.LFG(i.uw))},e.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac}),e}()},2870:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var i,r=n(7574),o=((i=function(){function e(t){_classCallCheck(this,e),this.api=t,this.delay=t.config.launcher_wait_time}return _createClass(e,[{key:"launchURL",value:function(t){var n=this,i="init",o=function(e){var t=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof e?t=e:403===e.status&&(t=django.gettext("Your session has expired. Please, login again")),window.setTimeout(function(){n.showAlert(django.gettext("Error"),t,5e3),403===e.status&&window.setTimeout(function(){n.api.logout()},5e3)})};if("udsa://"===t.substring(0,7)){var a=t.split("//")[1].split("/"),s=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new r.y(function(e){var t=0,r=function i(){s.componentInstance&&n.api.status(a[0],a[1]).subscribe(function(r){"ready"===r.status?(t?Date.now()-t>5*n.delay&&(s.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),s.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(t=Date.now(),s.componentInstance.data.title=django.gettext("Service ready"),s.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(i,n.delay)):"accessed"===r.status?(s.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),e.next(!0),e.complete()):"running"===r.status?window.setTimeout(i,n.delay):(e.next(!0),e.complete(),o())},function(t){e.next(!0),e.complete(),o(t)})};window.setTimeout(function e(){if("init"===i)window.setTimeout(e,n.delay);else{if("error"===i||"stop"===i)return;window.setTimeout(r)}})}));this.api.enabler(a[0],a[1]).subscribe(function(e){if(e.error)i="error",n.api.gui.alert(django.gettext("Error launching service"),e.error);else{if(e.url.startsWith("/"))return s.componentInstance&&s.componentInstance.close(),i="stop",void n.launchURL(e.url);"https:"===window.location.protocol&&(e.url=e.url.replace("uds://","udss://")),i="enabled",n.doLaunch(e.url)}},function(e){n.api.logout()})}else var u=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new r.y(function(i){window.setTimeout(function r(){u.componentInstance&&n.api.transportUrl(t).subscribe(function(t){if(t.url)if(i.next(!0),i.complete(),-1!==t.url.indexOf("o_s_w=")){var a=/(.*)&o_s_w=.*/.exec(t.url);window.location.href=a[1]}else{var s="global";if(-1!==t.url.indexOf("o_n_w=")){var u=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(t.url);u&&(s=u[2],t.url=u[1])}e.transportsWindow[s]&&e.transportsWindow[s].close(),e.transportsWindow[s]=window.open(t.url,"uds_trans_"+s)}else t.running?window.setTimeout(r,n.delay):(i.next(!0),i.complete(),o(t.error))},function(e){i.next(!0),i.complete(),o(e)})})}))}},{key:"showAlert",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return this.api.gui.alert(django.gettext("Launching service"),'

'+e+'

'+t+"

",n,i)}},{key:"doLaunch",value:function(e){var t=document.getElementById("hiddenUdsLauncherIFrame");if(null===t){var n=document.createElement("div");n.id="testID",n.innerHTML='',document.body.appendChild(n),t=document.getElementById("hiddenUdsLauncherIFrame")}t.contentWindow.location.href=e}}]),e}()).transportsWindow={},i)},4902:function _(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G:function(){return LoginComponent}});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3018),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(665),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8295),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9983),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8583),_angular_material_button__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1095),_angular_material_select__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7441),_angular_material_core__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2458),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template(e,t){if(1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&e){var n=t.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",n.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",n.name," ")}}function LoginComponent_div_22_Template(e,t){if(1&e){var n=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(1,"mat-form-field",17),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(2,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(e){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(n),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(e.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()}if(2&e){var i=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",i.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",i.auths)}}var LoginComponent=function(){var LoginComponent=function(){function LoginComponent(e){_classCallCheck(this,LoginComponent),this.api=e,this.title="UDS Enterprise",this.title=e.config.site_name,this.auths=e.config.authenticators.slice(0),this.auths.sort(function(e,t){return e.priority-t.priority})}return _createClass(LoginComponent,[{key:"ngOnInit",value:function(){document.getElementById("loginform").action=this.api.config.urls.login;var e=document.getElementById("token");e.name=this.api.csrfField,e.value=this.api.csrfToken,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}},{key:"changeAuth",value:function changeAuth(auth){this.auth.value=auth;var doCustomAuth=function doCustomAuth(data){eval(data)},_iterator22=_createForOfIteratorHelper(this.auths),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var Ke=_step22.value;Ke.id===auth&&Ke.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml(Ke.id).subscribe(function(e){return doCustomAuth(e)}))}}catch(err){_iterator22.e(err)}finally{_iterator22.f()}}},{key:"launch",value:function(){return document.getElementById("loginform").submit(),!0}}]),LoginComponent}();return LoginComponent.\u0275fac=function(e){return new(e||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return t.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(2,"input",2),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(10,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(11,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(12,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(17,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(18,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(24,"button",15),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",t.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",t.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",t.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,t.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_button__WEBPACK_IMPORTED_MODULE_7__.lW,_angular_material_select__WEBPACK_IMPORTED_MODULE_8__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_9__.ey],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent}()},7918:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var i,r=n(3018),o=((i=function(){function e(t){_classCallCheck(this,e),this.el=t}return _createClass(e,[{key:"ngOnInit",value:function(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}]),e}()).\u0275fac=function(e){return new(e||i)(r.Y36(r.SBq))},i.\u0275dir=r.lG2({type:i,selectors:[["uds-translate"]]}),i)},3513:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var i=function(){function e(t){_classCallCheck(this,e),this.user=t.user,this.role=t.role,this.admin=t.admin}return _createClass(e,[{key:"isStaff",get:function(){return"staff"===this.role||"admin"===this.role}},{key:"isAdmin",get:function(){return"admin"===this.role}},{key:"isLogged",get:function(){return null!=this.user}},{key:"isRestricted",get:function(){return"restricted"===this.role}}]),e}()},7540:function _(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return UDSApiService}});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3018),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1841),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3183),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8741),UDSApiService=function(){var UDSApiService=function(){function UDSApiService(e,t,n){_classCallCheck(this,UDSApiService),this.http=e,this.gui=t,this.router=n,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}return _createClass(UDSApiService,[{key:"config",get:function(){return udsData.config}},{key:"csrfField",get:function(){return csrf.csrfField}},{key:"csrfToken",get:function(){return csrf.csrfToken}},{key:"staffInfo",get:function(){return udsData.info}},{key:"plugins",get:function(){return udsData.plugins}},{key:"actors",get:function(){return udsData.actors}},{key:"errors",get:function(){return udsData.errors}},{key:"enabler",value:function(e,t){var n=this.config.urls.enabler.replace("param1",e).replace("param2",t);return this.http.get(n)}},{key:"status",value:function(e,t){var n=this.config.urls.status.replace("param1",e).replace("param2",t);return this.http.get(n)}},{key:"action",value:function(e,t){var n=this.config.urls.action.replace("param1",t).replace("param2",e);return this.http.get(n)}},{key:"transportUrl",value:function(e){return this.http.get(e)}},{key:"galleryImageURL",value:function(e){return this.config.urls.galleryImage.replace("param1",e)}},{key:"transportIconURL",value:function(e){return this.config.urls.transportIcon.replace("param1",e)}},{key:"staticURL",value:function(e){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+e:"/static/"+e}},{key:"getServicesInformation",value:function(){return this.http.get(this.config.urls.services)}},{key:"getErrorInformation",value:function(e){return this.http.get(this.config.urls.error.replace("9999",e))}},{key:"executeCustomJSForServiceLaunch",value:function executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}},{key:"gotoAdmin",value:function(){window.location.href=this.config.urls.admin}},{key:"logout",value:function(){window.location.href=this.config.urls.logout}},{key:"launchURL",value:function(e){this.plugin.launchURL(e)}},{key:"getAuthCustomHtml",value:function(e){return this.http.get(this.config.urls.customAuth+e,{responseType:"text"})}}]),UDSApiService}();return UDSApiService.\u0275fac=function(e){return new(e||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService}()},2340:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i={production:!0}},6445:function(e,t,n){"use strict";var i,r,o=n(9075),a=n(3018),s=n(9490),u=n(9765),l=n(739),c=n(8071),h=n(7574),f=n(5257),d=n(3653),p=n(4395),v=n(8002),_=n(9761),m=n(6782),g=n(521),y=((i=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||i)},i.\u0275mod=a.oAB({type:i}),i.\u0275inj=a.cJS({}),i),b=new Set,k=function(){var e=function(){function e(t){_classCallCheck(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):C}return _createClass(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!b.has(e))try{r||((r=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(r)),r.sheet&&(r.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),b.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(g.t4))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(g.t4))},token:e,providedIn:"root"}),e}();function C(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var w=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new u.xQ}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return x((0,s.Eq)(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=x((0,s.Eq)(e)).map(function(e){return t._registerQuery(e).observable}),i=(0,l.aj)(n);return(i=(0,c.z)(i.pipe((0,f.q)(1)),i.pipe((0,d.T)(1),(0,p.b)(0)))).pipe((0,v.U)(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new h.y(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe((0,_.O)(n),(0,v.U)(function(t){var n=t.matches;return{query:e,matches:n}}),(0,m.R)(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(k),a.LFG(a.R0b))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(k),a.LFG(a.R0b))},token:e,providedIn:"root"}),e}();function x(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var E=n(1841),S=n(8741),O=n(7540),A=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"canActivate",value:function(e,t){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(O.n))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),T=n(4902),P=n(7918),I=n(8583);function R(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw().download(e.url)}),a.TgZ(1,"div",7),a._UZ(2,"img",8),a.qZA(),a.TgZ(3,"div",9),a._uU(4),a.qZA(),a.TgZ(5,"div",10),a._uU(6),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.Tol(r.css(i)),a.xp6(2),a.Q6J("src",r.img(i.name),a.LSH),a.xp6(2),a.lnq(" ",r.legacy(i)," ",i.name," (",i.url.split(".").pop(),") "),a.xp6(2),a.hij(" ",i.description," ")}}var D=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"download",value:function(e){window.location.href=e}},{key:"img",value:function(e){return this.api.staticURL("modern/img/"+e+".png")}},{key:"css",value:function(e){var t=["plugin"];return e.legacy&&t.push("legacy"),t}},{key:"legacy",value:function(e){return e.legacy?"Legacy":""}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a.TgZ(3,"h1"),a.TgZ(4,"uds-translate"),a._uU(5,"UDS Client"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.YNc(7,R,7,7,"div",4),a.qZA(),a.TgZ(8,"div",5),a.TgZ(9,"ul"),a.TgZ(10,"li"),a.TgZ(11,"uds-translate"),a._uU(12,"Download UDS client for your platform"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(7),a.Q6J("ngForOf",t.api.plugins))},directives:[P.P,I.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem}"]}),e}(),M=n(6498);function L(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw().download(e.url)}),a.TgZ(1,"div",7),a._UZ(2,"img",8),a.qZA(),a._UZ(3,"div",9),a.ALo(4,"safeHtml"),a._UZ(5,"div",10),a.ALo(6,"safeHtml"),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.Tol(r.css(i.name)),a.xp6(2),a.Q6J("src",r.img(i.name),a.LSH),a.xp6(1),a.Q6J("innerHTML",a.lcZ(4,5,i.name),a.oJD),a.xp6(2),a.Q6J("innerHTML",a.lcZ(6,7,i.description),a.oJD)}}var F=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.actors=[];var t=[];this.api.actors.forEach(function(n){n.name.includes("legacy")?t.push(n):e.actors.push(n)}),t.forEach(function(t){e.actors.push(t)})}},{key:"download",value:function(e){window.location.href=e}},{key:"img",value:function(e){var t=e.split(".").pop().toLowerCase(),n="Linux";return"exe"===t?n="Windows":"pkg"===t&&(n="MacOS"),this.api.staticURL("modern/img/"+n+".png")}},{key:"css",value:function(e){var t=["actor"];return e.toLowerCase().includes("legacy")&&t.push("legacy"),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a.TgZ(3,"h1"),a.TgZ(4,"uds-translate"),a._uU(5,"Downloads"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.YNc(7,L,7,9,"div",4),a.qZA(),a.TgZ(8,"div",5),a.TgZ(9,"ul"),a.TgZ(10,"li"),a.TgZ(11,"uds-translate"),a._uU(12,"Always download the UDS actor matching your platform"),a.qZA(),a.qZA(),a.TgZ(13,"li"),a.TgZ(14,"uds-translate"),a._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(7),a.Q6J("ngForOf",t.actors))},directives:[P.P,I.sg],pipes:[M.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:bold;overflow:hidden}"]}),e}(),N=n(5319),B=n(8345),U=0,Z=new a.OlP("CdkAccordion"),j=function(){var e=function(){function e(){_classCallCheck(this,e),this._stateChanges=new u.xQ,this._openCloseAllActions=new u.xQ,this.id="cdk-accordion-"+U++,this._multi=!1}return _createClass(e,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=(0,s.Ig)(e)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[a._Bn([{provide:Z,useExisting:e}]),a.TTD]}),e}(),q=0,V=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=N.w.EMPTY,this.closed=new a.vpe,this.opened=new a.vpe,this.destroyed=new a.vpe,this.expandedChange=new a.vpe,this.id="cdk-accordion-child-"+q++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen(function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return _createClass(e,[{key:"expanded",get:function(){return this._expanded},set:function(e){e=(0,s.Ig)(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,s.Ig)(e)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe(function(t){e.disabled||(e.expanded=t)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Z,12),a.Y36(a.sBO),a.Y36(B.A8))},e.\u0275dir=a.lG2({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[a._Bn([{provide:Z,useValue:void 0}])]}),e}(),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),z=n(7636),Y=n(2458),G=n(9238),K=n(7519),W=n(5435),Q=n(6461),J=n(6237),X=n(9193),$=n(6682),ee=n(7238),te=["body"];function ne(e,t){}var ie=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],re=["mat-expansion-panel-header","*","mat-action-row"];function oe(e,t){if(1&e&&a._UZ(0,"span",2),2&e){var n=a.oxw();a.Q6J("@indicatorRotate",n._getExpandedState())}}var ae=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],se=["mat-panel-title","mat-panel-description","*"],ue=new a.OlP("MAT_ACCORDION"),le="225ms cubic-bezier(0.4,0.0,0.2,1)",ce={indicatorRotate:(0,ee.X$)("indicatorRotate",[(0,ee.SB)("collapsed, void",(0,ee.oB)({transform:"rotate(0deg)"})),(0,ee.SB)("expanded",(0,ee.oB)({transform:"rotate(180deg)"})),(0,ee.eR)("expanded <=> collapsed, void => collapsed",(0,ee.jt)(le))]),bodyExpansion:(0,ee.X$)("bodyExpansion",[(0,ee.SB)("collapsed, void",(0,ee.oB)({height:"0px",visibility:"hidden"})),(0,ee.SB)("expanded",(0,ee.oB)({height:"*",visibility:"visible"})),(0,ee.eR)("expanded <=> collapsed, void => collapsed",(0,ee.jt)(le))])},he=function(){var e=function e(t){_classCallCheck(this,e),this._template=t};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.Rgc))},e.\u0275dir=a.lG2({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e}(),fe=0,de=new a.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),pe=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,l,c){var h;return _classCallCheck(this,n),(h=t.call(this,e,i,r))._viewContainerRef=o,h._animationMode=l,h._hideToggle=!1,h.afterExpand=new a.vpe,h.afterCollapse=new a.vpe,h._inputChanges=new u.xQ,h._headerId="mat-expansion-panel-header-"+fe++,h._bodyAnimationDone=new u.xQ,h.accordion=e,h._document=s,h._bodyAnimationDone.pipe((0,K.x)(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){"void"!==e.fromState&&("expanded"===e.toState?h.afterExpand.emit():"collapsed"===e.toState&&h.afterCollapse.emit())}),c&&(h.hideToggle=c.hideToggle),h}return _createClass(n,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=(0,s.Ig)(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe((0,_.O)(null),(0,W.h)(function(){return e.expanded&&!e._portal}),(0,f.q)(1)).subscribe(function(){e._portal=new z.UE(e._lazyContent._template,e._viewContainerRef)})}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}]),n}(V);return e.\u0275fac=function(t){return new(t||e)(a.Y36(ue,12),a.Y36(a.sBO),a.Y36(B.A8),a.Y36(a.s_b),a.Y36(I.K0),a.Y36(J.Qb,8),a.Y36(de,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,he,5),2&e)&&(a.iGM(i=a.CRH())&&(t._lazyContent=i.first))},viewQuery:function(e,t){var n;(1&e&&a.Gf(te,5),2&e)&&(a.iGM(n=a.CRH())&&(t._body=n.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&a.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[a._Bn([{provide:ue,useValue:void 0}]),a.qOj,a.TTD],ngContentSelectors:re,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(a.F$t(ie),a.Hsn(0),a.TgZ(1,"div",0,1),a.NdJ("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),a.TgZ(3,"div",2),a.Hsn(4,1),a.YNc(5,ne,0,0,"ng-template",3),a.qZA(),a.Hsn(6,2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),a.uIk("aria-labelledby",t._headerId),a.xp6(4),a.Q6J("cdkPortalOutlet",t._portal))},directives:[z.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ce.bodyExpansion]},changeDetection:0}),e}(),ve=(0,Y.sb)(function e(){_classCallCheck(this,e)}),_e=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u){var l;_classCallCheck(this,n),(l=t.call(this)).panel=e,l._element=i,l._focusMonitor=r,l._changeDetectorRef=o,l._animationMode=s,l._parentChangeSubscription=N.w.EMPTY;var c=e.accordion?e.accordion._stateChanges.pipe((0,W.h)(function(e){return!(!e.hideToggle&&!e.togglePosition)})):X.E;return l.tabIndex=parseInt(u||"")||0,l._parentChangeSubscription=(0,$.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,W.h)(function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)}))).subscribe(function(){return l._changeDetectorRef.markForCheck()}),e.closed.pipe((0,W.h)(function(){return e._containsFocus()})).subscribe(function(){return r.focusVia(i,"program")}),a&&(l.expandedHeight=a.expandedHeight,l.collapsedHeight=a.collapsedHeight),l}return _createClass(n,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(e){switch(e.keyCode){case Q.L_:case Q.K5:(0,Q.Vb)(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._element).subscribe(function(t){t&&e.panel.accordion&&e.panel.accordion._handleHeaderFocus(e)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),n}(ve);return e.\u0275fac=function(t){return new(t||e)(a.Y36(pe,1),a.Y36(a.SBq),a.Y36(G.tE),a.Y36(a.sBO),a.Y36(de,8),a.Y36(J.Qb,8),a.$8M("tabindex"))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&a.NdJ("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(a.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),a.Udp("height",t._getHeaderHeight()),a.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[a.qOj],ngContentSelectors:se,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(a.F$t(ae),a.TgZ(0,"span",0),a.Hsn(1),a.Hsn(2,1),a.Hsn(3,2),a.qZA(),a.YNc(4,oe,1,1,"span",1)),2&e&&(a.xp6(4),a.Q6J("ngIf",t._showToggle()))},directives:[I.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[ce.indicatorRotate]},changeDetection:0}),e}(),me=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),e}(),ge=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e}(),ye=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._ownHeaders=new a.n_E,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return _createClass(n,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=(0,s.Ig)(e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe((0,_.O)(this._headers)).subscribe(function(t){e._ownHeaders.reset(t.filter(function(t){return t.panel.accordion===e})),e._ownHeaders.notifyOnChanges()}),this._keyManager=new G.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(e){this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),n}(j);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,_e,5),2&e)&&(a.iGM(i=a.CRH())&&(t._headers=i))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[a._Bn([{provide:ue,useExisting:t}]),a.qOj]}),t}(),be=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[I.ez,Y.BQ,H,z.eL]]}),e}();function ke(e,t){if(1&e&&(a.TgZ(0,"li"),a.TgZ(1,"uds-translate"),a._uU(2,"Detected proxy ip"),a.qZA(),a._uU(3),a.qZA()),2&e){var n=a.oxw(2);a.xp6(3),a.hij(": ",n.api.staffInfo.ip_proxy,"")}}function Ce(e,t){if(1&e&&(a.TgZ(0,"li"),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n)}}function we(e,t){if(1&e&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n)}}function xe(e,t){if(1&e&&(a.TgZ(0,"div",1),a.TgZ(1,"h1"),a.TgZ(2,"uds-translate"),a._uU(3,"Information"),a.qZA(),a.qZA(),a.TgZ(4,"mat-accordion"),a.TgZ(5,"mat-expansion-panel"),a.TgZ(6,"mat-expansion-panel-header",2),a.TgZ(7,"mat-panel-title"),a._uU(8," IPs "),a.qZA(),a.TgZ(9,"mat-panel-description"),a.TgZ(10,"uds-translate"),a._uU(11,"Client IP"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(12,"ol"),a.TgZ(13,"li"),a.TgZ(14,"uds-translate"),a._uU(15,"Client IP"),a.qZA(),a._uU(16),a.qZA(),a.YNc(17,ke,4,1,"li",3),a.qZA(),a.qZA(),a.TgZ(18,"mat-expansion-panel"),a.TgZ(19,"mat-expansion-panel-header",2),a.TgZ(20,"mat-panel-title"),a.TgZ(21,"uds-translate"),a._uU(22,"Transports"),a.qZA(),a.qZA(),a.TgZ(23,"mat-panel-description"),a.TgZ(24,"uds-translate"),a._uU(25,"UDS transports for this client"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(26,"ol"),a.YNc(27,Ce,2,1,"li",4),a.qZA(),a.qZA(),a.TgZ(28,"mat-expansion-panel"),a.TgZ(29,"mat-expansion-panel-header",2),a.TgZ(30,"mat-panel-title"),a.TgZ(31,"uds-translate"),a._uU(32,"Networks"),a.qZA(),a.qZA(),a.TgZ(33,"mat-panel-description"),a.TgZ(34,"uds-translate"),a._uU(35,"UDS networks for this IP"),a.qZA(),a.qZA(),a.qZA(),a.YNc(36,we,2,1,"span",4),a._uU(37,"\xa0 "),a.qZA(),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.xp6(16),a.hij(": ",n.api.staffInfo.ip,""),a.xp6(1),a.Q6J("ngIf",n.api.staffInfo.ip_proxy!==n.api.staffInfo.ip),a.xp6(10),a.Q6J("ngForOf",n.api.staffInfo.transports),a.xp6(9),a.Q6J("ngForOf",n.api.staffInfo.networks)}}var Ee=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(e,t){1&e&&a.YNc(0,xe,38,4,"div",0),2&e&&a.Q6J("ngIf",t.api.staffInfo)},directives:[I.O5,P.P,ye,pe,_e,ge,me,I.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4}"]}),e}(),Se=n(2759),Oe=n(3342),Ae=n(8295),Te=n(9983),Pe=["input"],Ie=function(){var e=function(){function e(){_classCallCheck(this,e),this.updateEvent=new a.vpe}return _createClass(e,[{key:"ngAfterViewInit",value:function(){var e=this;(0,Se.R)(this.input.nativeElement,"keyup").pipe((0,W.h)(Boolean),(0,p.b)(600),(0,K.x)(),(0,Oe.b)(function(){return e.update(e.input.nativeElement.value)})).subscribe()}},{key:"update",value:function(e){this.updateEvent.emit(e.toLowerCase())}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-filter"]],viewQuery:function(e,t){var n;(1&e&&a.Gf(Pe,7),2&e)&&(a.iGM(n=a.CRH())&&(t.input=n.first))},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"mat-form-field",1),a.TgZ(2,"mat-label"),a.TgZ(3,"uds-translate"),a._uU(4,"Filter"),a.qZA(),a.qZA(),a._UZ(5,"input",2,3),a.TgZ(7,"i",4),a._uU(8,"search"),a.qZA(),a.qZA(),a.qZA())},directives:[Ae.KE,Ae.hX,P.P,Te.Nt,Ae.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),e}(),Re=n(5917),De=n(4581),Me=n(3190),Le=n(3637),Fe=n(7393),Ne=n(1593);function Be(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Le.P,n=function(e){return e instanceof Date&&!isNaN(+e)}(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new Ue(n,t))}}var Ue=function(){function e(t,n){_classCallCheck(this,e),this.delay=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Ze(e,this.delay,this.scheduler))}}]),e}(),Ze=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return _createClass(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new je(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(Ne.P.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Ne.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(Fe.L),je=function e(t,n){_classCallCheck(this,e),this.time=t,this.notification=n},qe=n(625),Ve=n(9243),He=n(946),ze=["mat-menu-item",""];function Ye(e,t){1&e&&(a.O4$(),a.TgZ(0,"svg",2),a._UZ(1,"polygon",3),a.qZA())}var Ge=["*"];function Ke(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",0),a.NdJ("keydown",function(e){return a.CHM(n),a.oxw()._handleKeydown(e)})("click",function(){return a.CHM(n),a.oxw().closed.emit("click")})("@transformMenu.start",function(e){return a.CHM(n),a.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return a.CHM(n),a.oxw()._onAnimationDone(e)}),a.TgZ(1,"div",1),a.Hsn(2),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),a.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var We={transformMenu:(0,ee.X$)("transformMenu",[(0,ee.SB)("void",(0,ee.oB)({opacity:0,transform:"scale(0.8)"})),(0,ee.eR)("void => enter",(0,ee.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.oB)({opacity:1,transform:"scale(1)"}))),(0,ee.eR)("* => void",(0,ee.jt)("100ms 25ms linear",(0,ee.oB)({opacity:0})))]),fadeInItems:(0,ee.X$)("fadeInItems",[(0,ee.SB)("showing",(0,ee.oB)({opacity:1})),(0,ee.eR)("void => *",[(0,ee.oB)({opacity:0}),(0,ee.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Qe=new a.OlP("MatMenuContent"),Je=new a.OlP("MAT_MENU_PANEL"),Xe=(0,Y.Kr)((0,Y.Id)(function(){return function e(){_classCallCheck(this,e)}}())),$e=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s;return _classCallCheck(this,n),(s=t.call(this))._elementRef=e,s._focusMonitor=r,s._parentMenu=o,s._changeDetectorRef=a,s.role="menuitem",s._hovered=new u.xQ,s._focused=new u.xQ,s._highlighted=!1,s._triggersSubmenu=!1,o&&o.addItem&&o.addItem(_assertThisInitialized(s)),s}return _createClass(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t=this,n=Math.min(this._baseElevation+e,24),i="".concat(this._elevationPrefix).concat(n),r=Object.keys(this._classList).find(function(e){return e.startsWith(t._elevationPrefix)});(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe((0,_.O)(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(et))},e.\u0275dir=a.lG2({type:e,contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,Qe,5),a.Suo(n,$e,5),a.Suo(n,$e,4)),2&e)&&(a.iGM(i=a.CRH())&&(t.lazyContent=i.first),a.iGM(i=a.CRH())&&(t._allItems=i),a.iGM(i=a.CRH())&&(t.items=i))},viewQuery:function(e,t){var n;(1&e&&a.Gf(a.Rgc,5),2&e)&&(a.iGM(n=a.CRH())&&(t.templateRef=n.first))},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),it=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i,r))._elevationPrefix="mat-elevation-z",o._baseElevation=4,o}return n}(nt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(et))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&a.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[a._Bn([{provide:Je,useExisting:e}]),a.qOj],ngContentSelectors:Ge,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(a.F$t(),a.YNc(0,Ke,3,6,"ng-template"))},directives:[I.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[We.transformMenu,We.fadeInItems]},changeDetection:0}),e}(),rt=new a.OlP("mat-menu-scroll-strategy"),ot={provide:rt,deps:[qe.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},at=(0,g.i$)({passive:!0}),st=function(){var e=function(){function e(t,n,i,r,o,s,u,l){var c=this;_classCallCheck(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=u,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=N.w.EMPTY,this._hoverSubscription=N.w.EMPTY,this._menuCloseSubscription=N.w.EMPTY,this._handleTouchStart=function(e){(0,G.yG)(e)||(c._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new a.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof nt?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,at),s&&(s._triggersSubmenu=this.triggersSubmenu())}return _createClass(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),("click"===e||"tab"===e)&&t._parentMaterialMenu&&t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,at),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof nt&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof nt?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe((0,W.h)(function(e){return"void"===e.toState}),(0,f.q)(1),(0,m.R)(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new qe.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,u=a,l=n,c=i,h=0;this.triggersSubmenu()?(c=n="before"===this.menu.xPosition?"start":"end",i=l="end"===n?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",u="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:l,overlayY:o,offsetY:h},{originX:i,originY:s,overlayX:c,overlayY:o,offsetY:h},{originX:n,originY:u,overlayX:l,overlayY:a,offsetY:-h},{originX:i,originY:u,overlayX:c,overlayY:a,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Re.of)(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,W.h)(function(t){return t!==e._menuItemInstance}),(0,W.h)(function(){return e._menuOpen})):(0,Re.of)();return(0,$.T)(t,i,r,n)}},{key:"_handleMousedown",value:function(e){(0,G.X6)(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;(t===Q.K5||t===Q.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===Q.SV&&"ltr"===this.dir||t===Q.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,W.h)(function(t){return t===e._menuItemInstance&&!t.disabled}),Be(0,De.E)).subscribe(function(){e._openedBy="mouse",e.menu instanceof nt&&e.menu._isAnimating?e.menu._animationDone.pipe((0,f.q)(1),Be(0,De.E),(0,m.R)(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new z.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(a.s_b),a.Y36(rt),a.Y36(Je,8),a.Y36($e,10),a.Y36(He.Is,8),a.Y36(G.tE))},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&a.NdJ("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&a.uIk("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),ut=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[ot],imports:[Y.BQ]}),e}(),lt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[ot],imports:[[I.ez,Y.BQ,Y.si,qe.U8,ut],Ve.ZD,Y.BQ,ut]}),e}(),ct={tooltipState:(0,ee.X$)("state",[(0,ee.SB)("initial, void, hidden",(0,ee.oB)({opacity:0,transform:"scale(0)"})),(0,ee.SB)("visible",(0,ee.oB)({transform:"scale(1)"})),(0,ee.eR)("* => visible",(0,ee.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,ee.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,ee.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,ee.eR)("* => hidden",(0,ee.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.oB)({opacity:0})))])},ht="tooltip-panel",ft=(0,g.i$)({passive:!0}),dt=new a.OlP("mat-tooltip-scroll-strategy"),pt={provide:dt,deps:[qe.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},vt=new a.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),_t=function(){var e=function(){function e(t,n,i,r,o,a,s,l,c,h,f,d){var p=this;_classCallCheck(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=l,this._dir=h,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new u.xQ,this._handleKeydown=function(e){p._isTooltipVisible()&&e.keyCode===Q.hY&&!(0,Q.Vb)(e)&&(e.preventDefault(),e.stopPropagation(),p._ngZone.run(function(){return p.hide(0)}))},this._scrollStrategy=c,this._document=d,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe((0,m.R)(this._destroyed)).subscribe(function(){p._overlayRef&&p._updatePosition(p._overlayRef)}),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",p._handleKeydown)})}return _createClass(e,[{key:"position",get:function(){return this._position},set:function(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,s.Ig)(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,m.R)(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=_slicedToArray(t,2),i=n[0],r=n[1];e.removeEventListener(i,r,ft)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new z.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,m.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe((0,m.R)(this._destroyed)).subscribe(function(t){e._updateCurrentPositionClass(t.connectionPair),e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-").concat(ht),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,m.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,m.R)(this._destroyed)).subscribe(function(){var t;return null===(t=e._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var t=e.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,f.q)(1),(0,m.R)(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_updateCurrentPositionClass",value:function(e){var t,n=e.overlayY,i=e.originX,r=e.originY;if((t="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===r?"above":"below")!==this._currentPosition){var o=this._overlayRef;if(o){var a="".concat(this._cssClassPrefix,"-").concat(ht,"-");o.removePanelClass(a+this._currentPosition),o.addPanelClass(a+t)}this._currentPosition=t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=_slicedToArray(e,2),i=n[0],r=n[1];t._elementRef.nativeElement.addEventListener(i,r,ft)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t!==n&&!n.contains(t)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),("on"===e||!t.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(Ve.mF),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(g.t4),a.Y36(G.$s),a.Y36(G.tE),a.Y36(void 0),a.Y36(He.Is),a.Y36(void 0),a.Y36(I.K0))},e.\u0275dir=a.lG2({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),mt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u,l,c,h,f,d){var p;return _classCallCheck(this,n),(p=t.call(this,e,i,r,o,a,s,u,l,c,h,f,d))._tooltipComponent=yt,p}return n}(_t);return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(Ve.mF),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(g.t4),a.Y36(G.$s),a.Y36(G.tE),a.Y36(dt),a.Y36(He.Is,8),a.Y36(vt,8),a.Y36(I.K0))},e.\u0275dir=a.lG2({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[a.qOj]}),e}(),gt=function(){var e=function(){function e(t){_classCallCheck(this,e),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new u.xQ}return _createClass(e,[{key:"show",value:function(e){var t=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=void 0,t._onShow(),t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=void 0,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO))},e.\u0275dir=a.lG2({type:e}),e}(),yt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e))._breakpointObserver=i,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return n}(gt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO),a.Y36(w))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&a.Udp("zoom","visible"===t._visibility?1:null)},features:[a.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(a.TgZ(0,"div",0),a.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),a.ALo(1,"async"),a._uU(2),a.qZA()),2&e)&&(a.ekj("mat-tooltip-handset",null==(n=a.lcZ(1,5,t._isHandset))?null:n.matches),a.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),a.xp6(2),a.Oqu(t.message))},directives:[I.mk],pipes:[I.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ct.tooltipState]},changeDetection:0}),e}(),bt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[pt],imports:[[G.rt,I.ez,qe.U8,Y.BQ],Y.BQ,Ve.ZD]}),e}(),kt=n(1095);function Ct(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(2).launch(e)}),a.TgZ(1,"div",15),a._UZ(2,"img",9),a._uU(3),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw(2);a.xp6(2),a.Q6J("src",r.getTransportIcon(i.id),a.LSH),a.xp6(1),a.hij(" ",i.name," ")}}function wt(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).action("release")}),a.TgZ(1,"i",16),a._uU(2,"delete"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4," Release service"),a.qZA(),a.qZA()}}function xt(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).action("reset")}),a.TgZ(1,"i",16),a._uU(2,"refresh"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4," Reset service"),a.qZA(),a.qZA()}}function Et(e,t){if(1&e&&(a.TgZ(0,"button",17),a.TgZ(1,"uds-translate"),a._uU(2,"Connections"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(2);a.Q6J("matMenuTriggerFor",n)}}function St(e,t){if(1&e&&(a.TgZ(0,"button",17),a.TgZ(1,"uds-translate"),a._uU(2,"Actions"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(5);a.Q6J("matMenuTriggerFor",n)}}function Ot(e,t){if(1&e&&(a.TgZ(0,"button",18),a.TgZ(1,"i",16),a._uU(2,"menu"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(9);a.Q6J("matMenuTriggerFor",n)}}function At(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"mat-menu",null,1),a.YNc(3,Ct,4,2,"button",2),a.qZA(),a.TgZ(4,"mat-menu",null,3),a.YNc(6,wt,5,0,"button",4),a.YNc(7,xt,5,0,"button",4),a.qZA(),a.TgZ(8,"mat-menu",null,5),a.YNc(10,Et,3,1,"button",6),a.YNc(11,St,3,1,"button",6),a.qZA(),a.TgZ(12,"div",7),a.TgZ(13,"div",8),a.NdJ("click",function(){return a.CHM(n),a.oxw().launch(null)}),a._UZ(14,"img",9),a.qZA(),a.TgZ(15,"div",10),a.TgZ(16,"span",11),a._uU(17),a.qZA(),a.qZA(),a.TgZ(18,"div",12),a.YNc(19,Ot,3,1,"button",13),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(3),a.Q6J("ngForOf",i.service.transports),a.xp6(3),a.Q6J("ngIf",i.service.allow_users_remove),a.xp6(1),a.Q6J("ngIf",i.service.allow_users_reset),a.xp6(3),a.Q6J("ngIf",i.showTransportsMenu()),a.xp6(1),a.Q6J("ngIf",i.hasActions()),a.xp6(1),a.Q6J("ngClass",i.serviceClass)("matTooltipDisabled",""===i.serviceTooltip)("matTooltip",i.serviceTooltip),a.xp6(2),a.Q6J("src",i.serviceImage,a.LSH),a.xp6(2),a.Q6J("ngClass",i.serviceNameClass),a.xp6(1),a.Oqu(i.serviceName),a.xp6(2),a.Q6J("ngIf",i.hasMenu())}}var Tt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"serviceImage",get:function(){return this.api.galleryImageURL(this.service.imageId)}},{key:"serviceName",get:function(){var e=this.service.visual_name;return e.length>32&&(e=e.substring(0,29)+"..."),e}},{key:"serviceTooltip",get:function(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}},{key:"serviceClass",get:function(){var e=["service"];return null!=this.service.to_be_replaced?e.push("tobereplaced"):this.service.maintenance?e.push("maintenance"):this.service.not_accesible?e.push("forbidden"):this.service.in_use&&e.push("inuse"),e.length>1&&e.push("alert"),e}},{key:"serviceNameClass",get:function(){var e=[],t=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return t>=16&&e.push("small-"+t.toString()),e}},{key:"getTransportIcon",value:function(e){return this.api.transportIconURL(e)}},{key:"hasActions",value:function(){return this.service.allow_users_remove||this.service.allow_users_reset}},{key:"showTransportsMenu",value:function(){return this.service.transports.length>1&&this.service.show_transports}},{key:"hasMenu",value:function(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}},{key:"notifyNotLaunching",value:function(e){this.api.gui.alert('

'+django.gettext("Launcher")+"

",e)}},{key:"launch",value:function(e){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){var t=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching('

'+django.gettext("This service is currently not accesible due to schedule restrictions.")+'

'+t+'

')}else(null===e||!1===this.service.show_transports)&&(e=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(e.link)}},{key:"action",value:function(e){var t=this,n=("release"===e?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,i="release"===e?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(n,django.gettext("Are you sure?")).subscribe(function(r){r&&t.api.action(e,t.service.id).subscribe(function(e){e&&t.api.gui.alert(n,i)})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(e,t){1&e&&a.YNc(0,At,20,12,"div",0),2&e&&a.Q6J("ngIf",t.service.transports.length>0)},directives:[I.O5,it,I.sg,I.mk,mt,$e,P.P,st,kt.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:rgba(0,0,0,.22);display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22)}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;border-radius:1px;background-color:rgba(255,255,255,.8)}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:"Material Icons";font-weight:normal;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"}']}),e}();function Pt(e,t){1&e&&a._UZ(0,"uds-service",8),2&e&&a.Q6J("service",t.$implicit)}function It(e,t){if(1&e&&(a.TgZ(0,"mat-expansion-panel",1),a.TgZ(1,"mat-expansion-panel-header",2),a.TgZ(2,"mat-panel-title"),a.TgZ(3,"div",3),a._UZ(4,"img",4),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"mat-panel-description",5),a._uU(7),a.qZA(),a.qZA(),a.TgZ(8,"div",6),a.YNc(9,Pt,1,1,"uds-service",7),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.Q6J("expanded",n.expanded),a.xp6(1),a.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),a.xp6(3),a.Q6J("src",n.groupImage,a.LSH),a.xp6(1),a.hij(" ",n.group.name,""),a.xp6(2),a.hij(" ",n.group.comments," "),a.xp6(2),a.Q6J("ngForOf",n.sortedServices)}}var Rt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.expanded=!1}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"groupImage",get:function(){return this.api.galleryImageURL(this.group.imageUuid)}},{key:"hasVisibleServices",get:function(){return this.services.length>0}},{key:"sortedServices",get:function(){return this.services.sort(function(e,t){return e.name>t.name?1:e.name0&&void 0!==arguments[0]?arguments[0]:"";this.group=[];var n=null;this.servicesInformation.services.filter(function(e){return!t||e.visual_name.toLowerCase().includes(t)||e.group.name.toLowerCase().includes(t)}).sort(function(e,t){return e.group.priority!==t.group.priority?e.group.priority-t.group.priority:e.group.id>t.group.id?1:e.group.id=t.api.config.min_for_filter&&t.api.config.site_filter_on_top),a.xp6(3),a.Q6J("ngForOf",t.group),a.xp6(1),a.Q6J("ngIf",t.servicesInformation.services.length>=t.api.config.min_for_filter&&!t.api.config.site_filter_on_top))},directives:[I.O5,ye,I.sg,Ee,Ie,Rt],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),e}(),Bt=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.api=t,this.route=n}return _createClass(e,[{key:"ngOnInit",value:function(){this.getError()}},{key:"getError",value:function(){var e=this,t=this.route.snapshot.paramMap.get("id");this.error="",this.api.getErrorInformation(t).subscribe(function(t){e.error=t.error})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n),a.Y36(S.gz))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-error"]],decls:14,vars:1,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],["mat-raised-button","","color","warn","routerLink","/"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.O4$(),a.TgZ(2,"svg",2),a._UZ(3,"path",3),a.qZA(),a.TgZ(4,"svg",4),a._UZ(5,"path",5),a.qZA(),a.qZA(),a.kcU(),a.TgZ(6,"h1",6),a.TgZ(7,"uds-translate"),a._uU(8,"An error has occurred"),a.qZA(),a.qZA(),a.TgZ(9,"p",7),a._uU(10),a.qZA(),a.TgZ(11,"a",8),a.TgZ(12,"uds-translate"),a._uU(13,"Return"),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(10),a.hij(" ",t.error," "))},directives:[P.P,kt.zs,S.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),e}(),Ut=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.year=(new Date).getFullYear()}return _createClass(e,[{key:"ngOnInit",value:function(){this.year<2021&&(this.year=2021)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-about"]],decls:45,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"h1"),a._uU(2),a.qZA(),a.TgZ(3,"h3"),a.TgZ(4,"a",1),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"h4"),a.TgZ(7,"uds-translate"),a._uU(8,"You can access UDS Open Source code at"),a.qZA(),a.TgZ(9,"a",2),a._uU(10,"OpenUDS github repository"),a.qZA(),a.qZA(),a.TgZ(11,"div",3),a.TgZ(12,"h2"),a.TgZ(13,"uds-translate"),a._uU(14,"UDS has been developed using these components:"),a.qZA(),a.qZA(),a.TgZ(15,"ul"),a.TgZ(16,"li"),a.TgZ(17,"a",4),a._uU(18,"Python"),a.qZA(),a.qZA(),a.TgZ(19,"li"),a.TgZ(20,"a",5),a._uU(21,"TypeScript"),a.qZA(),a.qZA(),a.TgZ(22,"li"),a.TgZ(23,"a",6),a._uU(24,"Django"),a.qZA(),a.qZA(),a.TgZ(25,"li"),a.TgZ(26,"a",7),a._uU(27,"Angular"),a.qZA(),a.qZA(),a.TgZ(28,"li"),a.TgZ(29,"a",8),a._uU(30,"Guacamole"),a.qZA(),a.qZA(),a.TgZ(31,"li"),a.TgZ(32,"a",9),a._uU(33,"weasyprint"),a.qZA(),a.qZA(),a.TgZ(34,"li"),a.TgZ(35,"a",10),a._uU(36,"Crystal project icons"),a.qZA(),a.qZA(),a.TgZ(37,"li"),a.TgZ(38,"a",11),a._uU(39,"Flattr Icons"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(40,"p"),a.TgZ(41,"small"),a._uU(42,"* "),a.TgZ(43,"uds-translate"),a._uU(44,"If you find that we missed any component, please let us know"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(2),a.AsE("Universal Desktop Services ",t.api.config.version," build ",t.api.config.version_stamp,""),a.xp6(3),a.hij(" \xa9 2012-",t.year," Virtual Cable S.L.U."))},directives:[P.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:normal}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px}"]}),e}(),Zt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"h1"),a.TgZ(3,"uds-translate"),a._uU(4,"UDS Service launcher"),a.qZA(),a.qZA(),a.TgZ(5,"h4"),a.TgZ(6,"uds-translate"),a._uU(7,"The service you have requested is being launched."),a.qZA(),a.qZA(),a.TgZ(8,"h5"),a.TgZ(9,"uds-translate"),a._uU(10,"Please, note that reloading this page will not work."),a.qZA(),a.qZA(),a.TgZ(11,"h5"),a.TgZ(12,"uds-translate"),a._uU(13,"To relaunch service, you will have to do it from origin."),a.qZA(),a.qZA(),a.TgZ(14,"h6"),a.TgZ(15,"uds-translate"),a._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),a.qZA(),a.qZA(),a.TgZ(17,"h6"),a.TgZ(18,"uds-translate"),a._uU(19,"You can obtain it from the"),a.qZA(),a._uU(20,"\xa0"),a.TgZ(21,"a",2),a.TgZ(22,"uds-translate"),a._uU(23,"UDS Client download page"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA())},directives:[P.P,S.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:rgba(0,0,0,.22);padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:normal}"]}),e}(),jt=n(665),qt=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:Nt,canActivate:[A]},{path:"login",component:T.G},{path:"login/:id",component:T.G},{path:"mfa",component:function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){document.getElementById("mfaform").action=this.api.config.urls.mfa;var e=document.getElementById("token");e.name=this.api.csrfField,e.value=this.api.csrfToken,this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}},{key:"launch",value:function(){return document.getElementById("mfaform").submit(),!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-mfa"]],decls:18,vars:2,consts:[["id","mfaform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],[1,"mfa-container"],[1,"mfa-brand"],[3,"src"],[1,"mfa-info"],[1,"mfa-form"],[1,"mfa-field"],["appearance","standard"],["matInput","","id","code","name","code","value","","required","","autofocus",""],[1,"mfa-button"],["mat-stroked-button","","color","primary","type","submit"]],template:function(e,t){1&e&&(a.TgZ(0,"form",0),a.NdJ("ngSubmit",function(){return t.launch()}),a._UZ(1,"input",1),a.TgZ(2,"div",2),a.TgZ(3,"div",3),a._UZ(4,"img",4),a.qZA(),a.TgZ(5,"div",5),a.TgZ(6,"uds-translate"),a._uU(7,"Login Verification"),a.qZA(),a.qZA(),a.TgZ(8,"div",6),a.TgZ(9,"div",7),a.TgZ(10,"mat-form-field",8),a.TgZ(11,"mat-label"),a._uU(12),a.qZA(),a._UZ(13,"input",9),a.qZA(),a.qZA(),a.TgZ(14,"div",10),a.TgZ(15,"button",11),a.TgZ(16,"uds-translate"),a._uU(17,"Submit"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(4),a.Q6J("src",t.api.staticURL("modern/img/login-img.png"),a.LSH),a.xp6(8),a.hij(" ",t.api.config.mfa.label," "))},directives:[jt._Y,jt.JL,jt.F,P.P,Ae.KE,Ae.hX,Te.Nt,kt.lW],styles:[".mfa-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.mfa-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.mfa-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.mfa-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.mfa-form[_ngcontent-%COMP%]{min-width:80%}}"]}),e}()},{path:"client-download",component:D},{path:"downloads",component:F,canActivate:[A]},{path:"error/:id",component:Bt},{path:"about",component:Ut},{path:"ticket/launcher",component:Zt},{path:"**",redirectTo:"services"}],Vt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[S.Bz.forRoot(qt,{relativeLinkResolution:"legacy"})],S.Bz]}),e}(),Ht=n(8553),zt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),Yt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[Y.si,Y.BQ,Ht.Q8,zt],Y.BQ,zt]}),e}(),Gt=n(2238),Kt=n(7441),Wt=["*",[["mat-toolbar-row"]]],Qt=["*","mat-toolbar-row"],Jt=(0,Y.pj)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}()),Xt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),$t=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e))._platform=i,o._document=r,o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(Jt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(g.t4),a.Y36(I.K0))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,Xt,5),2&e)&&(a.iGM(i=a.CRH())&&(t._toolbarRows=i))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&a.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[a.qOj],ngContentSelectors:Qt,decls:2,vars:0,template:function(e,t){1&e&&(a.F$t(Wt),a.Hsn(0),a.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),en=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[Y.BQ],Y.BQ]}),e}(),tn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[{provide:Ae.o2,useValue:{floatLabel:"always"}}],imports:[jt.u5,en,kt.ot,lt,bt,be,Gt.Is,Ae.lN,Te.c,Kt.LD,Yt]}),e}();function nn(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",9),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(2).changeLang(e)}),a._uU(1),a.qZA()}if(2&e){var i=t.$implicit;a.xp6(1),a.Oqu(i.name)}}function rn(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",9),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).admin()}),a.TgZ(1,"i",23),a._uU(2,"dashboard"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4,"Dashboard"),a.qZA(),a.qZA()}}function on(e,t){1&e&&(a.TgZ(0,"button",28),a.TgZ(1,"i",23),a._uU(2,"file_download"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4,"Downloads"),a.qZA(),a.qZA())}function an(e,t){if(1&e&&(a.TgZ(0,"button",14),a._uU(1),a.qZA()),2&e){a.oxw();var n=a.MAs(8),i=a.oxw();a.Q6J("matMenuTriggerFor",n),a.xp6(1),a.Oqu(i.api.user.user)}}function sn(e,t){if(1&e&&(a.TgZ(0,"button",25),a._uU(1),a.TgZ(2,"i",23),a._uU(3,"arrow_drop_down"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(8),i=a.oxw();a.Q6J("matMenuTriggerFor",n),a.xp6(1),a.hij("",i.api.user.user," ")}}function un(e,t){if(1&e){var n=a.EpF();a.ynx(0),a.TgZ(1,"form",1),a._UZ(2,"input",2),a._UZ(3,"input",3),a.qZA(),a.TgZ(4,"mat-menu",null,4),a.YNc(6,nn,2,1,"button",5),a.qZA(),a.TgZ(7,"mat-menu",null,6),a.YNc(9,rn,5,0,"button",7),a.YNc(10,on,5,0,"button",8),a.TgZ(11,"button",9),a.NdJ("click",function(){return a.CHM(n),a.oxw().logout()}),a.TgZ(12,"i",10),a._uU(13,"exit_to_app"),a.qZA(),a.TgZ(14,"uds-translate"),a._uU(15,"Logout"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(16,"mat-menu",11,12),a.YNc(18,an,2,2,"button",13),a.TgZ(19,"button",14),a._uU(20),a.qZA(),a.TgZ(21,"button",15),a.TgZ(22,"uds-translate"),a._uU(23,"UDS Client"),a.qZA(),a.qZA(),a.TgZ(24,"button",16),a.TgZ(25,"uds-translate"),a._uU(26,"About"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(27,"mat-toolbar",17),a.TgZ(28,"button",18),a._UZ(29,"img",19),a._uU(30),a.qZA(),a._UZ(31,"span",20),a.TgZ(32,"div",21),a.TgZ(33,"button",22),a.TgZ(34,"i",23),a._uU(35,"file_download"),a.qZA(),a.TgZ(36,"uds-translate"),a._uU(37,"UDS Client"),a.qZA(),a.qZA(),a.TgZ(38,"button",24),a.TgZ(39,"i",23),a._uU(40,"info"),a.qZA(),a.TgZ(41,"uds-translate"),a._uU(42,"About"),a.qZA(),a.qZA(),a.TgZ(43,"button",25),a._uU(44),a.TgZ(45,"i",23),a._uU(46,"arrow_drop_down"),a.qZA(),a.qZA(),a.YNc(47,sn,4,2,"button",26),a.qZA(),a.TgZ(48,"div",27),a.TgZ(49,"button",25),a.TgZ(50,"i",23),a._uU(51,"menu"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.BQk()}if(2&e){var i=a.MAs(5),r=a.MAs(17),o=a.oxw();a.xp6(1),a.s9C("action",o.api.config.urls.changeLang,a.LSH),a.xp6(1),a.s9C("name",o.api.csrfField),a.s9C("value",o.api.csrfToken),a.xp6(1),a.s9C("value",o.lang.id),a.xp6(3),a.Q6J("ngForOf",o.langs),a.xp6(3),a.Q6J("ngIf",o.api.user.isStaff),a.xp6(1),a.Q6J("ngIf",o.api.user.isStaff),a.xp6(8),a.Q6J("ngIf",o.api.user.isLogged),a.xp6(1),a.Q6J("matMenuTriggerFor",i),a.xp6(1),a.hij("",o.lang.name," "),a.xp6(9),a.Q6J("src",o.api.staticURL("modern/img/udsicon.png"),a.LSH),a.xp6(1),a.hij(" ",o.api.config.site_logo_name," "),a.xp6(13),a.Q6J("matMenuTriggerFor",i),a.xp6(1),a.hij("",o.lang.name," "),a.xp6(3),a.Q6J("ngIf",o.api.user.isLogged),a.xp6(2),a.Q6J("matMenuTriggerFor",r)}}var ln=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.style="";var n=t.config.language;this.langs=[];var i,r=_createForOfIteratorHelper(t.config.available_languages);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.id===n?this.lang=o:this.langs.push(o)}}catch(a){r.e(a)}finally{r.f()}}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"changeLang",value:function(e){return this.lang=e,document.getElementById("id_language").attributes.value.value=e.id,document.getElementById("form_language").submit(),!1}},{key:"admin",value:function(){this.api.gotoAdmin()}},{key:"logout",value:function(){this.api.logout()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(e,t){1&e&&a.YNc(0,un,52,16,"ng-container",0),2&e&&a.Q6J("ngIf",""===t.api.config.urls.launch)},directives:[I.O5,jt._Y,jt.JL,jt.F,it,I.sg,$e,P.P,st,S.rH,$t,kt.lW],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),e}(),cn=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(e,t){1&e&&(a.TgZ(0,"div"),a.TgZ(1,"a",0),a._uU(2),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Q6J("href",t.api.config.site_copyright_link,a.LSH),a.xp6(1),a.Oqu(t.api.config.site_copyright_info))},styles:[""]}),e}(),hn=function(){var e=function(){function e(){_classCallCheck(this,e),this.title="uds"}return _createClass(e,[{key:"ngOnInit",value:function(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-root"]],decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(e,t){1&e&&(a._UZ(0,"uds-navbar"),a.TgZ(1,"div",0),a.TgZ(2,"div",1),a._UZ(3,"router-outlet"),a.qZA(),a.TgZ(4,"div",2),a._UZ(5,"uds-footer"),a.qZA(),a.qZA())},directives:[ln,S.lC,cn],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),e}(),fn=n(3183),dn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e,bootstrap:[hn]}),e.\u0275inj=a.cJS({providers:[O.n,fn.h],imports:[[o.b2,y,E.JF,Vt,J.PW,tn]]}),e}();n(2340).N.production&&(0,a.G48)(),o.q6().bootstrapModule(dn).catch(function(e){return console.log(e)})}},function(e){e(e.s=6445)}])})(); \ No newline at end of file +(function(){function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)})(e)}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&_setPrototypeOf(r,n.prototype),r}).apply(null,arguments)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function l(e){return{type:6,styles:e,offset:null}}function c(e,t,n){return{type:0,name:e,styles:t,options:n}}function h(e){return{type:5,steps:e}}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function v(e){Promise.resolve(null).then(e)}var _=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;v(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),m=function(){function e(t){var n=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?v(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),g="!"},9238:function(e,t,n){"use strict";n.d(t,{rt:function(){return ne},s1:function(){return D},$s:function(){return T},Em:function(){return M},tE:function(){return J},qV:function(){return U},qm:function(){return te},Kd:function(){return K},X6:function(){return Z},yG:function(){return j}});var i=n(8583),r=n(3018),o=n(9765),a=n(5319),s=n(6215),u=n(5917),l=n(6461),c=n(3342),h=n(4395),f=n(5435),d=n(8002),p=n(5257),v=n(3653),_=n(7519),m=n(6782),g=n(9490),y=n(521),b=n(8553);function k(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var C,w="cdk-describedby-message-container",x="cdk-describedby-message",E="cdk-describedby-host",S=0,O=new Map,A=null,T=((C=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=P(t,n);"string"!=typeof t?(I(t),O.set(i,{messageElement:t,referenceCount:0})):O.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=P(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=O.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}A&&0===A.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[".concat(E,"]")),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return _createClass(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,c.b)(function(t){return e._pressedLetters.push(t)}),(0,h.b)(t),(0,f.h)(function(){return e._pressedLetters.length>0}),(0,d.U)(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case l.Mf:return void this.tabOut.next();case l.JH:if(this._vertical&&i){this.setNextItemActive();break}return;case l.LH:if(this._vertical&&i){this.setPreviousItemActive();break}return;case l.SV:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.oh:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.Sd:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case l.uR:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||(0,l.Vb)(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=l.A&&n<=l.Z||n>=l.xE&&n<=l.aO)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof r.n_E?this._items.toArray():this._items}}]),e}(),D=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(R),M=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._origin="program",e}return _createClass(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(R),L=function(){var e=function(){function e(t){_classCallCheck(this,e),this._platform=t}return _createClass(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t=function(e){try{return e.frameElement}catch(t){return null}}(function(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(e));if(t&&(-1===N(t)||!this.isVisible(t)))return!1;var n=e.nodeName.toLowerCase(),i=N(e);return e.hasAttribute("contenteditable")?-1!==i:!("iframe"===n||"object"===n||this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===n?!!e.hasAttribute("controls")&&-1!==i:"video"===n?-1!==i&&(null!==i||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||F(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4))},token:e,providedIn:"root"}),e}();function F(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function N(e){if(!F(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var B=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return _createClass(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusInitialElement(e))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusFirstTabbableElement(e))})})}},{key:"focusLastTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusLastTabbableElement(e))})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(e)}}]),e}(),U=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._checker=t,this._ngZone=n,this._document=i}return _createClass(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new B(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(L),r.LFG(r.R0b),r.LFG(i.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(L),r.LFG(r.R0b),r.LFG(i.K0))},token:e,providedIn:"root"}),e}();function Z(e){return 0===e.offsetX&&0===e.offsetY}function j(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈var q=new r.OlP("cdk-input-modality-detector-options"),V={ignoreKeys:[l.zL,l.jx,l.b2,l.MW,l.JU]},H=(0,y.i$)({passive:!0,capture:!0}),z=function(){var e=function(){function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._platform=t,this._mostRecentTarget=null,this._modality=new s.X(null),this._lastTouchMs=0,this._onKeydown=function(e){var t,n;(null===(n=null===(t=o._options)||void 0===t?void 0:t.ignoreKeys)||void 0===n?void 0:n.some(function(t){return t===e.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=(0,y.sA)(e))},this._onMousedown=function(e){Date.now()-o._lastTouchMs<650||(o._modality.next(Z(e)?"keyboard":"mouse"),o._mostRecentTarget=(0,y.sA)(e))},this._onTouchstart=function(e){j(e)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=(0,y.sA)(e))},this._options=Object.assign(Object.assign({},V),r),this.modalityDetected=this._modality.pipe((0,v.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,_.x)()),t.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",o._onKeydown,H),i.addEventListener("mousedown",o._onMousedown,H),i.addEventListener("touchstart",o._onTouchstart,H)})}return _createClass(e,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,H),document.removeEventListener("mousedown",this._onMousedown,H),document.removeEventListener("touchstart",this._onTouchstart,H))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4),r.LFG(r.R0b),r.LFG(i.K0),r.LFG(q,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4),r.LFG(r.R0b),r.LFG(i.K0),r.LFG(q,8))},token:e,providedIn:"root"}),e}(),Y=new r.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),G=new r.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),K=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return _createClass(e,[{key:"announce",value:function(e){for(var t,n,i,r=this,o=this._defaultOptions,a=arguments.length,s=new Array(a>1?a-1:0),u=1;u1&&void 0!==arguments[1]&&arguments[1],n=(0,g.fI)(e);if(!this._platform.isBrowser||1!==n.nodeType)return(0,u.of)(null);var i=(0,y.kV)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var a={checkChildren:t,subject:new o.xQ,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}},{key:"stopMonitoring",value:function(e){var t=(0,g.fI)(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=(0,g.fI)(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=_slicedToArray(e,2),r=n[0],o=n[1];return i._originChanged(r,t,o)}):(this._setOrigin(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOrigin",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){t._origin=e,t._originFromTouchInteraction="touch"===e&&n,0===t._detectionMode&&(clearTimeout(t._originTimeoutId),t._originTimeoutId=setTimeout(function(){return t._origin=null},t._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t),i=(0,y.sA)(e);!n||!n.checkChildren&&t!==i||this._originChanged(t,this._getFocusOrigin(i),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,Q),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,Q)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){t._getWindow().addEventListener("focus",t._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,m.R)(this._stopInputModalityDetector)).subscribe(function(e){t._setOrigin(e,!0)}))}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Q),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Q),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.R0b),r.LFG(y.t4),r.LFG(z),r.LFG(i.K0,8),r.LFG(W,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(r.R0b),r.LFG(y.t4),r.LFG(z),r.LFG(i.K0,8),r.LFG(W,8))},token:e,providedIn:"root"}),e}(),X="cdk-high-contrast-black-on-white",$="cdk-high-contrast-white-on-black",ee="cdk-high-contrast-active",te=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._document=n}return _createClass(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove(ee),e.remove(X),e.remove($),this._hasCheckedHighContrastMode=!0;var t=this.getHighContrastMode();1===t?(e.add(ee),e.add(X)):2===t&&(e.add(ee),e.add($))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4),r.LFG(i.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4),r.LFG(i.K0))},token:e,providedIn:"root"}),e}(),ne=function(){var e=function e(t){_classCallCheck(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(r.LFG(te))},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[[y.ud,b.Q8]]}),e}()},946:function(e,t,n){"use strict";n.d(t,{vT:function(){return u},Is:function(){return s}});var i,r=n(3018),o=n(8583),a=new r.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,r.f3M)(o.K0)}}),s=((i=function(){function e(t){if(_classCallCheck(this,e),this.value="ltr",this.change=new r.vpe,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||i)(r.LFG(a,8))},i.\u0275prov=r.Yz7({factory:function(){return new i(r.LFG(a,8))},token:i,providedIn:"root"}),i),u=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}()},8345:function(e,t,n){"use strict";n.d(t,{P3:function(){return l},Ov:function(){return h},A8:function(){return f},eX:function(){return c},k:function(){return d},Z9:function(){return s}});var i=n(5639),r=n(5917),o=n(9765),a=n(3018);function s(e){return e&&"function"==typeof e.connect}var u,l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._data=e,i}return _createClass(n,[{key:"connect",value:function(){return(0,i.b)(this._data)?this._data:(0,r.of)(this._data)}},{key:"disconnect",value:function(){}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),c=function(){function e(){_classCallCheck(this,e),this.viewCacheSize=20,this._viewCache=[]}return _createClass(e,[{key:"applyChanges",value:function(e,t,n,i,r){var o=this;e.forEachOperation(function(e,a,s){var u,l;null==e.previousIndex?l=(u=o._insertView(function(){return n(e,a,s)},s,t,i(e)))?1:0:null==s?(o._detachAndCacheView(a,t),l=3):(u=o._moveView(a,s,t,i(e)),l=2),r&&r({context:null==u?void 0:u.context,operation:l,record:e})})}},{key:"detach",value:function(){var e,t=_createForOfIteratorHelper(this._viewCache);try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(n){t.e(n)}finally{t.f()}this._viewCache=[]}},{key:"_insertView",value:function(e,t,n,i){var r=this._insertViewFromCache(t,n);if(!r){var o=e();return n.createEmbeddedView(o.templateRef,o.context,o.index)}r.context.$implicit=i}},{key:"_detachAndCacheView",value:function(e,t){var n=t.detach(e);this._maybeCacheView(n,t)}},{key:"_moveView",value:function(e,t,n,i){var r=n.get(e);return n.move(r,t),r.context.$implicit=i,r}},{key:"_maybeCacheView",value:function(e,t){if(this._viewCache.length0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.xQ,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return _createClass(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i1?t-1:0),i=1;it.height||e.scrollWidth>t.width}}]),e}(),k=function(){function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),C=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function w(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function x(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var E,S=function(){function e(t,n,i,r){_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;w(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),O=((E=function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new C},this.close=function(e){return new k(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new b(o._viewportRuler,o._document)},this.reposition=function(e){return new S(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r}).\u0275fac=function(e){return new(e||E)(r.LFG(i.mF),r.LFG(i.rL),r.LFG(r.R0b),r.LFG(s.K0))},E.\u0275prov=r.Yz7({factory:function(){return new E(r.LFG(i.mF),r.LFG(i.rL),r.LFG(r.R0b),r.LFG(s.K0))},token:E,providedIn:"root"}),E),A=function e(t){if(_classCallCheck(this,e),this.scrollStrategy=new C,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0))},token:e,providedIn:"root"}),e}(),R=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return _createClass(n,[{key:"add",value:function(e){_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(I);return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0))},token:e,providedIn:"root"}),e}(),D=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=(0,o.sA)(e),n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var a=n[i];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(t))break;a._outsidePointerEvents.next(e)}}},r}return _createClass(n,[{key:"add",value:function(e){if(_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),!this._isAttached){var t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(I);return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0),r.LFG(o.t4))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0),r.LFG(o.t4))},token:e,providedIn:"root"}),e}(),M="undefined"!=typeof window?window:{},L=void 0!==M.__karma__&&!!M.__karma__||void 0!==M.jasmine&&!!M.jasmine||void 0!==M.jest&&!!M.jest||void 0!==M.Mocha&&!!M.Mocha,F=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=n,this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e="cdk-overlay-container";if(this._platform.isBrowser||L)for(var t=this._document.querySelectorAll(".".concat(e,'[platform="server"], .').concat(e,'[platform="test"]')),n=0;nd&&(d=_,f=v)}}catch(m){p.e(m)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&j(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(B),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=V(t),o=e.x,a=e.y,s=this._getOffset(i,"x"),u=this._getOffset(i,"y");s&&(o+=s),u&&(a+=u);var l=0-a,c=a+r.height-n.height,h=this._subtractOverflows(r.width,0-o,o+r.width-n.width),f=this._subtractOverflows(r.height,l,c),d=h*f;return{visibleArea:d,isCompletelyWithinViewport:r.width*r.height===d,fitsInViewportVertically:f===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=q(this._overlayRef.getConfig().minHeight),a=q(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=V(t),a=this._viewportRect,s=Math.max(e.x+o.width-a.width,0),u=Math.max(e.y+o.height-a.height,0),l=Math.max(a.top-n.top-e.y,0),c=Math.max(a.left-n.left-e.x,0);return i=o.width<=a.width?c||-s:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!l||"start"===t.overlayX&&l)s=u.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!l||"end"===t.overlayX&&l)a=e.x,o=u.right-e.x;else{var f=Math.min(u.right-e.x+u.left,e.x),d=this._lastBoundingBoxSize.width;o=2*f,a=e.x-f,o>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-d/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=(0,u.HM)(n.height),i.top=(0,u.HM)(n.top),i.bottom=(0,u.HM)(n.bottom),i.width=(0,u.HM)(n.width),i.left=(0,u.HM)(n.left),i.right=(0,u.HM)(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=(0,u.HM)(r)),o&&(i.maxWidth=(0,u.HM)(o))}this._lastBoundingBoxSize=n,j(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){j(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){j(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();j(n,this._getExactOverlayY(t,e,a)),j(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),c&&(s+="translateY(".concat(c,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=(0,u.HM)(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=(0,u.HM)(o.maxWidth):r&&(n.maxWidth="")),j(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=(0,u.HM)(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=(0,u.HM)(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:x(e,n),isOriginOutsideView:w(e,n),isOverlayClipped:x(t,n),isOverlayOutsideView:w(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(z),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),G=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return _createClass(e,[{key:"global",value:function(){return new Y}},{key:"connectedTo",value:function(e,t,n){return new H(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new Z(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.rL),r.LFG(s.K0),r.LFG(o.t4),r.LFG(F))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(i.rL),r.LFG(s.K0),r.LFG(o.t4),r.LFG(F))},token:e,providedIn:"root"}),e}(),K=0,W=function(){var e=function(){function e(t,n,i,r,o,a,s,u,l,c,h){_classCallCheck(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}return _createClass(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new A(e);return r.direction=r.direction||this._directionality.value,new N(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+K++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(r.z2F)),new l.u0(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(O),r.LFG(F),r.LFG(r._Vd),r.LFG(G),r.LFG(R),r.LFG(r.zs3),r.LFG(r.R0b),r.LFG(s.K0),r.LFG(a.Is),r.LFG(s.Ye),r.LFG(D))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Q=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],J=new r.OlP("cdk-connected-overlay-scroll-strategy"),X=function(){var e=function e(t){_classCallCheck(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.SBq))},e.\u0275dir=r.lG2({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),$=function(){var e=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this._overlay=t,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new r.vpe,this.positionChange=new r.vpe,this.attach=new r.vpe,this.detach=new r.vpe,this.overlayKeydown=new r.vpe,this.overlayOutsideClick=new r.vpe,this._templatePortal=new l.UE(n,i),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=(0,u.Ig)(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=(0,u.Ig)(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=(0,u.Ig)(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=(0,u.Ig)(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=(0,u.Ig)(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;(!this.positions||!this.positions.length)&&(this.positions=Q);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),t.keyCode===g.hY&&!e.disableClose&&!(0,g.Vb)(t)&&(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new A({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new p(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(W),r.Y36(r.Rgc),r.Y36(r.s_b),r.Y36(J),r.Y36(a.Is,8))},e.\u0275dir=r.lG2({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[r.TTD]}),e}(),ee={provide:J,deps:[W],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},te=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[W,ee],imports:[[a.vT,l.eL,i.Cl],i.Cl]}),e}()},521:function(e,t,n){"use strict";n.d(t,{t4:function(){return f},ud:function(){return d},sA:function(){return k},ht:function(){return b},kV:function(){return y},_i:function(){return g},qK:function(){return v},i$:function(){return _},Mq:function(){return m}});var i,r=n(3018),o=n(8583);try{i="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(s){i=!1}var a,s,u,l,c,h,f=((s=function e(t){_classCallCheck(this,e),this._platformId=t,this.isBrowser=this._platformId?(0,o.NF)(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&&!i)&&"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}).\u0275fac=function(e){return new(e||s)(r.LFG(r.Lbi))},s.\u0275prov=r.Yz7({factory:function(){return new s(r.LFG(r.Lbi))},token:s,providedIn:"root"}),s),d=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}(),p=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function v(){if(a)return a;if("object"!=typeof document||!document)return a=new Set(p);var e=document.createElement("input");return a=new Set(p.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function _(e){return function(){if(null==u&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return u=!0}}))}finally{u=u||!1}return u}()?e:!!e.capture}function m(){if(null==c){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return c=!1;if("scrollBehavior"in document.documentElement.style)c=!0;else{var e=Element.prototype.scrollTo;c=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return c}function g(){if("object"!=typeof document||!document)return 0;if(null==l){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),l=0,0===e.scrollLeft&&(e.scrollLeft=1,l=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return l}function y(e){if(function(){if(null==h){var e="undefined"!=typeof document?document.head:null;h=!(!e||!e.createShadowRoot&&!e.attachShadow)}return h}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function b(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}function k(e){return e.composedPath?e.composedPath()[0]:e.target}},7636:function(e,t,n){"use strict";n.d(t,{en:function(){return c},Pl:function(){return f},C5:function(){return s},u0:function(){return h},eL:function(){return d},UE:function(){return u}});var i,r=n(3018),o=n(8583),a=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(a),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return _createClass(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(n.prototype),"detach",this).call(this)}}]),n}(a),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).element=e instanceof r.SBq?e.nativeElement:e,i}return n}(a),c=function(){function e(){_classCallCheck(this,e),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof s?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof u?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof l?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),h=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s,u;return _classCallCheck(this,n),(u=t.call(this)).outletElement=e,u._componentFactoryResolver=i,u._appRef=r,u._defaultInjector=o,u.attachDomPortal=function(e){var t=e.element,i=u._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),u.outletElement.appendChild(t),u._attachedPortal=e,_get((s=_assertThisInitialized(u),_getPrototypeOf(n.prototype)),"setDisposeFn",s).call(s,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},u._document=a,u}return _createClass(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),this._attachedPortal=e,i}},{key:"dispose",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(c),f=((i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,o){var a,s;return _classCallCheck(this,n),(s=t.call(this))._componentFactoryResolver=e,s._viewContainerRef=i,s._isInitialized=!1,s.attached=new r.vpe,s.attachDomPortal=function(e){var t=e.element,i=s._document.createComment("dom-portal");e.setAttachedHost(_assertThisInitialized(s)),t.parentNode.insertBefore(i,t),s._getRootNode().appendChild(t),s._attachedPortal=e,_get((a=_assertThisInitialized(s),_getPrototypeOf(n.prototype)),"setDisposeFn",a).call(a,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},s._document=o,s}return _createClass(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&_get(_getPrototypeOf(n.prototype),"detach",this).call(this),e&&_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),_get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(c)).\u0275fac=function(e){return new(e||i)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(o.K0))},i.\u0275dir=r.lG2({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),i),d=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}()},9243:function(e,t,n){"use strict";n.d(t,{ZD:function(){return y},mF:function(){return m},Cl:function(){return b},rL:function(){return g}});var i=n(9490),r=n(3018),o=n(6465),a=n(6102);new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(o.o));var s=n(9765),u=n(5917),l=n(7574),c=n(2759);n(4581),n(5319),n(5639),n(7393),new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(a.v))(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?_get(_getPrototypeOf(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(o.o)),n(1593),n(7971),n(8858),n(7519);var h=n(628),f=n(5435),d=(n(6782),n(9761),n(3190),n(521)),p=n(8583),v=n(946);n(8345);var _,m=((_=function(){function e(t,n,i){_classCallCheck(this,e),this._ngZone=t,this._platform=n,this._scrolled=new s.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return _createClass(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(function(){return t._scrolled.next(e)}))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new l.y(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe((0,h.e)(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):(0,u.of)()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,f.h)(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=(0,i.fI)(t),r=e.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var t=e._getWindow();return(0,c.R)(t.document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||_)(r.LFG(r.R0b),r.LFG(d.t4),r.LFG(p.K0,8))},_.\u0275prov=r.Yz7({factory:function(){return new _(r.LFG(r.R0b),r.LFG(d.t4),r.LFG(p.K0,8))},token:_,providedIn:"root"}),_),g=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this._platform=t,this._change=new s.xQ,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._viewportSize=null})})}return _createClass(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe((0,h.e)(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(d.t4),r.LFG(r.R0b),r.LFG(p.K0,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(d.t4),r.LFG(r.R0b),r.LFG(p.K0,8))},token:e,providedIn:"root"}),e}(),y=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}(),b=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[[v.vT,d.ud,y],v.vT,y]}),e}()},9490:function(e,t,n){"use strict";n.d(t,{Eq:function(){return a},Ig:function(){return r},HM:function(){return s},fI:function(){return u},su:function(){return o}});var i=n(3018);function r(e){return null!=e&&"false"!="".concat(e)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function a(e){return Array.isArray(e)?e:[e]}function s(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function u(e){return e instanceof i.SBq?e.nativeElement:e}},8583:function(e,t,n){"use strict";n.d(t,{mr:function(){return k},Ov:function(){return Y},ez:function(){return G},K0:function(){return l},Do:function(){return w},V_:function(){return f},Ye:function(){return x},S$:function(){return y},mk:function(){return R},sg:function(){return M},O5:function(){return F},RF:function(){return Z},n9:function(){return j},ED:function(){return q},b0:function(){return C},lw:function(){return c},EM:function(){return Q},JF:function(){return $},NF:function(){return W},w_:function(){return u},bD:function(){return K},q:function(){return o},Mx:function(){return I},HT:function(){return a}});var i=n(3018),r=null;function o(){return r}function a(e){r||(r=e)}var s,u=function e(){_classCallCheck(this,e)},l=new i.OlP("DocumentToken"),c=((s=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}()).\u0275fac=function(e){return new(e||s)},s.\u0275prov=(0,i.Yz7)({factory:h,token:s,providedIn:"platform"}),s);function h(){return(0,i.LFG)(d)}var f=new i.OlP("Location Initialized"),d=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i._init(),i}return _createClass(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return o().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=o().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=o().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){p()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){p()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}]),n}(c);return e.\u0275fac=function(t){return new(t||e)(i.LFG(l))},e.\u0275prov=(0,i.Yz7)({factory:v,token:e,providedIn:"platform"}),e}();function p(){return!!window.history.pushState}function v(){return new d((0,i.LFG)(l))}function _(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function g(e){return e&&"?"!==e[0]?"?"+e:e}var y=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,i.Yz7)({factory:b,token:e,providedIn:"root"}),e}();function b(e){var t=(0,i.LFG)(l).location;return new C((0,i.LFG)(c),t&&t.origin||"")}var k=new i.OlP("appBaseHref"),C=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;if(_classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._removeListenerFns=[],null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)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.");return r._baseHref=i,_possibleConstructorReturn(r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return _(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(i.LFG(c),i.LFG(k,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),w=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",r._removeListenerFns=[],null!=i&&(r._baseHref=i),r}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=_(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(i.LFG(c),i.LFG(k,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),x=function(){var e=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;var o=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=m(S(o)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})})}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+g(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,S(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.LFG(y),i.LFG(c))},e.normalizeQueryParams=g,e.joinWithSlash=_,e.stripTrailingSlash=m,e.\u0275prov=(0,i.Yz7)({factory:E,token:e,providedIn:"root"}),e}();function E(){return new x((0,i.LFG)(y),(0,i.LFG)(c))}function S(e){return e.replace(/\/index.html$/,"")}var O=((O=O||{})[O.Zero=0]="Zero",O[O.One=1]="One",O[O.Two=2]="Two",O[O.Few=3]="Few",O[O.Many=4]="Many",O[O.Other=5]="Other",O),A=i.kL8,T=function e(){_classCallCheck(this,e)},P=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).locale=e,i}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(A(t||this.locale)(e)){case O.Zero:return"zero";case O.One:return"one";case O.Two:return"two";case O.Few:return"few";case O.Many:return"many";default:return"other"}}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.soG))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}();function I(e,t){t=encodeURIComponent(t);var n,i=_createForOfIteratorHelper(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=_slicedToArray(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[0],u=a[1];if(s.trim()===t)return decodeURIComponent(u)}}catch(l){i.e(l)}finally{i.f()}return null}var R=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(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&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,i.AaK)(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},e.\u0275dir=i.lG2({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),D=function(){function e(t,n,i,r){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),M=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat(function(e){return e.name||typeof e}(e),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new D(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new L(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var u=new L(e,s);n.push(u)}});for(var i=0;i0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,_toConsumableArray(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),d=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return _(e)}},{key:"encodeValue",value:function(e){return _(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}(),p=/%(\d[a-f0-9])/gi,v={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function _(e){return encodeURIComponent(e).replace(p,function(e,t){var n;return null!==(n=v[t])&&void 0!==n?n:e})}function m(e){return"".concat(e)}var g=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new d,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),r=_slicedToArray(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(m(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(m(t.value));-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),y=function(){function e(){_classCallCheck(this,e),this.map=new Map}return _createClass(e,[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function b(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function k(e){return"undefined"!=typeof Blob&&e instanceof Blob}function C(e){return"undefined"!=typeof FormData&&e instanceof FormData}var w=function(){function e(t,n,i,r){var o;if(_classCallCheck(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new f),this.context||(this.context=new y),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,u=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,l=n.headers||this.headers,c=n.params||this.params,h=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},l)),n.setParams&&(c=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},c)),new e(i,r,a,{params:c,headers:l,context:h,reportProgress:u,responseType:o,withCredentials:s})}}]),e}(),x=((x=x||{})[x.Sent=0]="Sent",x[x.UploadProgress=1]="UploadProgress",x[x.ResponseHeader=2]="ResponseHeader",x[x.DownloadProgress=3]="DownloadProgress",x[x.Response=4]="Response",x[x.User=5]="User",x),E=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,e),this.headers=t.headers||new f,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},S=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=x.ResponseHeader,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(E),O=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=x.Response,e.body=void 0!==i.body?i.body:null,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(E),A=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(E);function T(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var P,I=((P=function(){function e(t){_classCallCheck(this,e),this.handler=t}return _createClass(e,[{key:"request",value:function(e,t){var n,i,r,a=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof w?n=e:(i=c.headers instanceof f?c.headers:new f(c.headers),c.params&&(r=c.params instanceof g?c.params:new g({fromObject:c.params})),n=new w(e,t,void 0!==c.body?c.body:null,{headers:i,context:c.context,params:r,reportProgress:c.reportProgress,responseType:c.responseType||"json",withCredentials:c.withCredentials}));var h=(0,o.of)(n).pipe((0,s.b)(function(e){return a.handler.handle(e)}));if(e instanceof w||"events"===c.observe)return h;var d=h.pipe((0,u.h)(function(e){return e instanceof O}));switch(c.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return d.pipe((0,l.U)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return d.pipe((0,l.U)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return d.pipe((0,l.U)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return d.pipe((0,l.U)(function(e){return e.body}))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type ".concat(c.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new g).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,T(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,T(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,T(n,t))}}]),e}()).\u0275fac=function(e){return new(e||P)(r.LFG(c))},P.\u0275prov=r.Yz7({token:P,factory:P.\u0275fac}),P),R=function(){function e(t,n){_classCallCheck(this,e),this.next=t,this.interceptor=n}return _createClass(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),D=new r.OlP("HTTP_INTERCEPTORS"),M=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),L=/^\)\]\}',?\n/,F=function(){var e=function(){function e(t){_classCallCheck(this,e),this.xhrFactory=t}return _createClass(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new a.y(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new f(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new S({headers:r,status:t,statusText:n,url:o})},l=function(){var t=u(),r=t.headers,o=t.status,a=t.statusText,s=t.url,l=null;204!==o&&(l=void 0===i.response?i.responseText:i.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof l){var h=l;l=l.replace(L,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=h,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new O({body:l,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new A({error:l,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=u().url,r=new A({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},h=!1,d=function(t){h||(n.next(u()),h=!0);var r={type:x.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&!!i.responseText&&(r.partialText=i.responseText),n.next(r)},p=function(e){var t={type:x.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",d),null!==a&&i.upload&&i.upload.addEventListener("progress",p)),i.send(a),n.next({type:x.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",d),null!==a&&i.upload&&i.upload.removeEventListener("progress",p)),i.readyState!==i.DONE&&i.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.JF))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),N=new r.OlP("XSRF_COOKIE_NAME"),B=new r.OlP("XSRF_HEADER_NAME"),U=function e(){_classCallCheck(this,e)},Z=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.K0),r.LFG(r.Lbi),r.LFG(N))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),j=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.tokenService=t,this.headerName=n}return _createClass(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null!==i&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(U),r.LFG(B))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),q=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.backend=t,this.injector=n,this.chain=null}return _createClass(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(D,[]);this.chain=t.reduceRight(function(e,t){return new R(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(h),r.LFG(r.zs3))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),V=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:j,useClass:M}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:N,useValue:t.cookieName}:[],t.headerName?{provide:B,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[j,{provide:D,useExisting:j,multi:!0},{provide:U,useClass:Z},{provide:N,useValue:"XSRF-TOKEN"},{provide:B,useValue:"X-XSRF-TOKEN"}]}),e}(),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[I,{provide:c,useClass:q},F,{provide:h,useExisting:F}],imports:[[V.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}()},3018:function(e,t,n){"use strict";n.d(t,{deG:function(){return ln},tb:function(){return Gu},AFp:function(){return qu},ip1:function(){return Zu},CZH:function(){return ju},hGG:function(){return Ul},z2F:function(){return Tl},sBO:function(){return zs},Sil:function(){return rl},_Vd:function(){return vs},EJc:function(){return Qu},SBq:function(){return ys},qLn:function(){return Ri},vpe:function(){return ku},gxx:function(){return ko},tBr:function(){return Fn},XFs:function(){return R},OlP:function(){return un},zs3:function(){return Lo},ZZ4:function(){return Bs},aQg:function(){return Zs},soG:function(){return Wu},YKP:function(){return eu},v3s:function(){return Il},h0i:function(){return $s},PXZ:function(){return xl},R0b:function(){return sl},FiY:function(){return Nn},Lbi:function(){return Yu},g9A:function(){return zu},n_E:function(){return wu},Qsj:function(){return Cs},FYo:function(){return ks},JOm:function(){return Li},Tiy:function(){return xs},q3G:function(){return wi},tp0:function(){return Bn},EAV:function(){return Ml},Rgc:function(){return Qs},dDg:function(){return pl},DyG:function(){return cn},GfV:function(){return Es},s_b:function(){return nu},ifc:function(){return N},eFA:function(){return El},G48:function(){return Cl},Gpc:function(){return v},f3M:function(){return Tn},X6Q:function(){return kl},_c5:function(){return Nl},VLi:function(){return _l},c2e:function(){return Ku},zSh:function(){return wo},wAp:function(){return ns},vHH:function(){return g},EiD:function(){return ki},mCW:function(){return oi},qzn:function(){return Kn},JVY:function(){return Qn},pB0:function(){return ei},eBb:function(){return Xn},L6k:function(){return Jn},LAX:function(){return $n},cg1:function(){return $a},Tjo:function(){return Fl},kL8:function(){return es},yhl:function(){return Wn},dqk:function(){return q},sIi:function(){return zo},CqO:function(){return ca},QGY:function(){return ua},F4k:function(){return la},RDi:function(){return Oe},AaK:function(){return f},z3N:function(){return Gn},qOj:function(){return No},TTD:function(){return ye},_Bn:function(){return fs},xp6:function(){return Cr},uIk:function(){return Wo},Tol:function(){return Pa},Gre:function(){return Ga},ekj:function(){return Ta},Suo:function(){return Lu},Xpm:function(){return $},lG2:function(){return ae},Yz7:function(){return C},cJS:function(){return w},oAB:function(){return ie},Yjl:function(){return se},Y36:function(){return $o},_UZ:function(){return ra},BQk:function(){return aa},ynx:function(){return oa},qZA:function(){return ia},TgZ:function(){return na},EpF:function(){return sa},n5z:function(){return nn},Ikx:function(){return Ka},LFG:function(){return An},$8M:function(){return on},NdJ:function(){return ha},CRH:function(){return Fu},kcU:function(){return kt},O4$:function(){return bt},oxw:function(){return _a},ALo:function(){return gu},lcZ:function(){return yu},Hsn:function(){return ya},F$t:function(){return ga},Q6J:function(){return ea},s9C:function(){return ba},VKq:function(){return _u},iGM:function(){return Du},MAs:function(){return Xo},CHM:function(){return Ye},oJD:function(){return xi},LSH:function(){return Ei},kYT:function(){return re},Udp:function(){return Aa},WFA:function(){return fa},d8E:function(){return Wa},YNc:function(){return Jo},_uU:function(){return qa},Oqu:function(){return Va},hij:function(){return Ha},AsE:function(){return za},lnq:function(){return Ya},Gf:function(){return Mu}});var i=n(9765),r=n(5319),o=n(7574),a=n(6682),s=n(2441),u=n(1307);function l(){return new i.xQ}function c(e){for(var t in e)if(e[t]===c)return t;throw Error("Could not find renamed property on target object.")}function h(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function f(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(f).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function d(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var p=c({__forward_ref__:c});function v(e){return e.__forward_ref__=v,e.toString=function(){return f(this())},e}function _(e){return m(e)?e():e}function m(e){return"function"==typeof e&&e.hasOwnProperty(p)&&e.__forward_ref__===v}var g=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(_wrapNativeSuper(Error));function y(e){return"string"==typeof e?e:null==e?"":String(e)}function b(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():y(e)}function k(e,t){var n=t?" in ".concat(t):"";throw new g("201","No provider for ".concat(b(e)," found").concat(n))}function C(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function w(e){return{providers:e.providers||[],imports:e.imports||[]}}function x(e){return E(e,A)||E(e,P)}function E(e,t){return e.hasOwnProperty(t)?e[t]:null}function S(e){return e&&(e.hasOwnProperty(T)||e.hasOwnProperty(I))?e[T]:null}var O,A=c({"\u0275prov":c}),T=c({"\u0275inj":c}),P=c({ngInjectableDef:c}),I=c({ngInjectorDef:c}),R=((R=R||{})[R.Default=0]="Default",R[R.Host=1]="Host",R[R.Self=2]="Self",R[R.SkipSelf=4]="SkipSelf",R[R.Optional=8]="Optional",R);function D(e){var t=O;return O=e,t}function M(e,t,n){var i=x(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&R.Optional?null:void 0!==t?t:void k(f(e),"Injector")}function L(e){return{toString:e}.toString()}var F=((F=F||{})[F.OnPush=0]="OnPush",F[F.Default=1]="Default",F),N=((N=N||{})[N.Emulated=0]="Emulated",N[N.None=2]="None",N[N.ShadowDom=3]="ShadowDom",N),B="undefined"!=typeof globalThis&&globalThis,U="undefined"!=typeof window&&window,Z="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,q=B||j||U||Z,V={},H=[],z=c({"\u0275cmp":c}),Y=c({"\u0275dir":c}),G=c({"\u0275pipe":c}),K=c({"\u0275mod":c}),W=c({"\u0275loc":c}),Q=c({"\u0275fac":c}),J=c({__NG_ELEMENT_ID__:c}),X=0;function $(e){return L(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===F.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||H,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||N.Emulated,id:"c",styles:e.styles||H,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=X++,n.inputs=oe(e.inputs,t),n.outputs=oe(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(ee)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(te)}:null,n})}function ee(e){return ue(e)||function(e){return e[Y]||null}(e)}function te(e){return function(e){return e[G]||null}(e)}var ne={};function ie(e){return L(function(){var t={type:e.type,bootstrap:e.bootstrap||H,declarations:e.declarations||H,imports:e.imports||H,exports:e.exports||H,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ne[e.id]=e.type),t})}function re(e,t){return L(function(){var n=le(e,!0);n.declarations=t.declarations||H,n.imports=t.imports||H,n.exports=t.exports||H})}function oe(e,t){if(null==e)return V;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var ae=$;function se(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ue(e){return e[z]||null}function le(e,t){var n=e[K]||null;if(!n&&!0===t)throw new Error("Type ".concat(f(e)," does not have '\u0275mod' property."));return n}function ce(e){return Array.isArray(e)&&"object"==typeof e[1]}function he(e){return Array.isArray(e)&&!0===e[1]}function fe(e){return 0!=(8&e.flags)}function de(e){return 2==(2&e.flags)}function pe(e){return 1==(1&e.flags)}function ve(e){return null!==e.template}function _e(e){return 0!=(512&e[2])}function me(e,t){return e.hasOwnProperty(Q)?e[Q]:null}var ge=function(){function e(t,n,i){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function ye(){return be}function be(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ce),ke}function ke(){var e=xe(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===V)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Ce(e,t,n,i){var r=xe(e)||function(e,t){return e[we]=t}(e,{previous:V,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],u=a[s];o[s]=new ge(u&&u.currentValue,t,a===V),e[i]=t}ye.ngInherit=!0;var we="__ngSimpleChanges__";function xe(e){return e[we]||null}var Ee,Se="http://www.w3.org/2000/svg";function Oe(e){Ee=e}function Ae(){return void 0!==Ee?Ee:"undefined"!=typeof document?document:void 0}function Te(e){return!!e.listen}var Pe={createRenderer:function(e,t){return Ae()}};function Ie(e){for(;Array.isArray(e);)e=e[0];return e}function Re(e,t){return Ie(t[e])}function De(e,t){return Ie(t[e.index])}function Me(e,t){return e.data[t]}function Le(e,t){return e[t]}function Fe(e,t){var n=t[e];return ce(n)?n:n[0]}function Ne(e){return 4==(4&e[2])}function Be(e){return 128==(128&e[2])}function Ue(e,t){return null==t?null:e[t]}function Ze(e){e[18]=0}function je(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var qe={lFrame:dt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ve(){return qe.bindingsEnabled}function He(){return qe.lFrame.lView}function ze(){return qe.lFrame.tView}function Ye(e){return qe.lFrame.contextLView=e,e[8]}function Ge(){for(var e=Ke();null!==e&&64===e.type;)e=e.parent;return e}function Ke(){return qe.lFrame.currentTNode}function We(e,t){var n=qe.lFrame;n.currentTNode=e,n.isParent=t}function Qe(){return qe.lFrame.isParent}function Je(){qe.lFrame.isParent=!1}function Xe(){return qe.isInCheckNoChangesMode}function $e(e){qe.isInCheckNoChangesMode=e}function et(){var e=qe.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function tt(){return qe.lFrame.bindingIndex}function nt(){return qe.lFrame.bindingIndex++}function it(e){var t=qe.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function rt(e,t){var n=qe.lFrame;n.bindingIndex=n.bindingRootIndex=e,ot(t)}function ot(e){qe.lFrame.currentDirectiveIndex=e}function at(e){var t=qe.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function st(){return qe.lFrame.currentQueryIndex}function ut(e){qe.lFrame.currentQueryIndex=e}function lt(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function ct(e,t,n){if(n&R.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&R.Host||(i=lt(r),null===i||(r=r[15],10&i.type))););if(null===i)return!1;t=i,e=r}var o=qe.lFrame=ft();return o.currentTNode=t,o.lView=e,!0}function ht(e){var t=ft(),n=e[1];qe.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ft(){var e=qe.lFrame,t=null===e?null:e.child;return null===t?dt(e):t}function dt(e){var t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function pt(){var e=qe.lFrame;return qe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var vt=pt;function _t(){var e=pt();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function mt(){return qe.lFrame.selectedIndex}function gt(e){qe.lFrame.selectedIndex=e}function yt(){var e=qe.lFrame;return Me(e.tView,e.selectedIndex)}function bt(){qe.lFrame.currentNamespace=Se}function kt(){qe.lFrame.currentNamespace=null}function Ct(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[s]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var At=function e(t,n,i){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Tt(e,t,n){for(var i=Te(e),r=0;rt){a=o-1;break}}}for(;o>16}(e),i=t;n>0;)i=i[15],n--;return i}var Nt=!0;function Bt(e){var t=Nt;return Nt=e,t}var Ut=0;function Zt(e,t){var n=qt(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,jt(i.data,e),jt(t,null),jt(i.blueprint,null));var r=Vt(e,t),o=e.injectorIndex;if(Mt(r))for(var a=Lt(r),s=Ft(r,t),u=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|u[a+l];return t[o+8]=r,o}function jt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function qt(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Vt(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Ht(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(i=n[J]),null==i&&(i=n[J]=Ut++);var r=255&i;t.data[e+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:R.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(J)?e[J]:void 0;return"number"==typeof t?t>=0?255&t:Wt:t}(n);if("function"==typeof o){if(!ct(t,e,i))return i&R.Host?zt(r,n,i):Yt(t,n,i,r);try{var a=o(i);if(null!=a||i&R.Optional)return a;k(n)}finally{vt()}}else if("number"==typeof o){var s=null,u=qt(e,t),l=-1,c=i&R.Host?t[16][6]:null;for((-1===u||i&R.SkipSelf)&&(-1!==(l=-1===u?Vt(e,t):t[u+8])&&en(i,!1)?(s=t[1],u=Lt(l),t=Ft(l,t)):u=-1);-1!==u;){var h=t[1];if($t(o,u,h.data)){var f=Qt(u,t,n,s,i,c);if(f!==Kt)return f}-1!==(l=t[u+8])&&en(i,t[1].data[u+8]===c)&&$t(o,u,t)?(s=h,u=Lt(l),t=Ft(l,t)):u=-1}}}return Yt(t,n,i,r)}var Kt={};function Wt(){return new tn(Ge(),He())}function Qt(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],u=Jt(s,a,n,null==i?de(s)&&Nt:i!=a&&0!=(3&s.type),r&R.Host&&o===s);return null!==u?Xt(t,a,u,s):Kt}function Jt(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,l=o>>20,c=r?s+l:e.directiveEnd,h=i?s:s+l;h=u&&f.type===n)return h}if(r){var d=a[u];if(d&&ve(d)&&d.type===n)return u}return null}function Xt(e,t,n,i){var r=e[n],o=t.data;if(function(e){return e instanceof At}(r)){var a=r;a.resolving&&function(e,t){throw new g("200","Circular dependency in DI detected for ".concat(e))}(b(o[n]));var s=Bt(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?D(a.injectImpl):null;ct(e,i,R.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,o=i.ngOnInit,a=i.ngDoCheck;if(r){var s=be(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==u&&D(u),Bt(s),a.resolving=!1,vt()}}return r}function $t(e,t,n){return!!(n[t+(e>>5)]&1<=e.length?e.push(n):e.splice(t,0,n)}function pn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function vn(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function mn(e,t){var n=gn(e,t);if(n>=0)return e[1|n]}function gn(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var yn,bn={},kn="__NG_DI_FLAG__",Cn="ngTempTokenPath",wn=/\n/gm,xn="__source",En=c({provide:String,useValue:c});function Sn(e){var t=yn;return yn=e,t}function On(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.Default;if(void 0===yn)throw new Error("inject() must be called from an injection context");return null===yn?M(e,void 0,t):yn.get(e,t&R.Optional?null:void 0,t)}function An(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.Default;return(O||On)(_(e),t)}var Tn=An;function Pn(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=f(t);if(Array.isArray(t))r=t.map(f).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):f(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(wn,"\n "))}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[Cn]=null,e}var Mn,Ln,Fn=In(sn("Inject",function(e){return{token:e}}),-1),Nn=In(sn("Optional"),8),Bn=In(sn("SkipSelf"),4);function Un(e){var t;return(null===(t=function(){if(void 0===Mn&&(Mn=null,q.trustedTypes))try{Mn=q.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(e){}return Mn}())||void 0===t?void 0:t.createHTML(e))||e}function Zn(e){var t;return(null===(t=function(){if(void 0===Ln&&(Ln=null,q.trustedTypes))try{Ln=q.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(e){}return Ln}())||void 0===t?void 0:t.createHTML(e))||e}var jn=function(){function e(t){_classCallCheck(this,e),this.changingThisBreaksApplicationSecurity=t}return _createClass(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity," (see https://g.co/ng/security#xss)")}}]),e}(),qn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(jn),Vn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(jn),Hn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(jn),zn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(jn),Yn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(jn);function Gn(e){return e instanceof jn?e.changingThisBreaksApplicationSecurity:e}function Kn(e,t){var n=Wn(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function Wn(e){return e instanceof jn&&e.getTypeName()||null}function Qn(e){return new qn(e)}function Jn(e){return new Vn(e)}function Xn(e){return new Hn(e)}function $n(e){return new zn(e)}function ei(e){return new Yn(e)}var ti=function(){function e(t){_classCallCheck(this,e),this.inertDocumentHelper=t}return _createClass(e,[{key:"getInertBodyElement",value:function(e){e=""+e;try{var t=(new window.DOMParser).parseFromString(Un(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}]),e}(),ni=function(){function e(t){if(_classCallCheck(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return _createClass(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Un(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Un(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();fi.hasOwnProperty(t)&&!li.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(bi(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),gi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yi=/([^\#-~ |!])/g;function bi(e){return e.replace(/&/g,"&").replace(gi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(yi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function ki(e,t){var n=null;try{ui=ui||function(e){var t=new ni(e);return function(){try{return!!(new window.DOMParser).parseFromString(Un(""),"text/html")}catch(e){return!1}}()?new ti(t):t}(e);var i=t?String(t):"";n=ui.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=ui.getInertBodyElement(i)}while(i!==o);return Un((new mi).sanitizeChildren(Ci(n)||n))}finally{if(n)for(var a=Ci(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Ci(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var wi=((wi=wi||{})[wi.NONE=0]="NONE",wi[wi.HTML=1]="HTML",wi[wi.STYLE=2]="STYLE",wi[wi.SCRIPT=3]="SCRIPT",wi[wi.URL=4]="URL",wi[wi.RESOURCE_URL=5]="RESOURCE_URL",wi);function xi(e){var t=Si();return t?Zn(t.sanitize(wi.HTML,e)||""):Kn(e,"HTML")?Zn(Gn(e)):ki(Ae(),y(e))}function Ei(e){var t=Si();return t?t.sanitize(wi.URL,e)||"":Kn(e,"URL")?Gn(e):oi(y(e))}function Si(){var e=He();return e&&e[12]}var Oi="__ngContext__";function Ai(e,t){e[Oi]=t}function Ti(e){var t=function(e){return e[Oi]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Pi(e){return e.ngOriginalError}function Ii(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&(e[n-1][4]=i[4]);var o=pn(e,10+t);!function(e,t){or(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);var a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function zi(e,t){if(!(256&t[2])){var n=t[11];Te(n)&&n.destroyNode&&or(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Yi(e[1],e);for(;t;){var n=null;if(ce(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)ce(t)&&Yi(t[1],t),t=t[3];null===t&&(t=e),ce(t)&&Yi(t[1],t),n=t&&t[4]}t=n}}(t)}}function Yi(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i=0?i[r=l]():i[r=-l].unsubscribe(),o+=2}else{var c=i[r=n[o+1]];n[o].call(c)}if(null!==i){for(var h=r+1;ho?"":r[c+1].toLowerCase();var f=8&i?h:null;if(f&&-1!==lr(f,l,0)||2&i&&l!==h){if(vr(i))return!1;a=!0}}}}else{if(!a&&!vr(i)&&!vr(u))return!1;if(a&&vr(u))continue;a=!1,i=u|1&i}}return vr(i)||a}function vr(e){return 0==(1&e)}function _r(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!vr(a)&&(t+=yr(o,r),r=""),i=a,o=o||!vr(i);n++}return""!==r&&(t+=yr(o,r)),t}var kr={};function Cr(e){wr(ze(),He(),mt()+e,Xe())}function wr(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&wt(t,r,n)}else{var o=e.preOrderHooks;null!==o&&xt(t,o,0,n)}gt(n)}function xr(e,t){return e<<17|t<<2}function Er(e){return e>>17&32767}function Sr(e){return 2|e}function Or(e){return(131068&e)>>2}function Ar(e,t){return-131069&e|t<<2}function Tr(e){return 1|e}function Pr(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&wr(e,t,20,Xe()),n(i,r)}finally{gt(o)}}function Br(e,t,n){if(fe(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:De,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(i,r,a)}}function Kr(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Wr(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Qr(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&ro(n)}}function ro(e){for(var t=Bi(e);null!==t;t=Ui(t))for(var n=10;n0&&ro(i)}var o=e[1].components;if(null!==o)for(var a=0;a0&&ro(s)}}function oo(e,t){var n=Fe(t,e),i=n[1];(function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:bn;if(t===bn){var n=new Error("NullInjectorError: No provider for ".concat(f(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),wo=new un("Set Injector scope."),xo={},Eo={};function So(){return void 0===bo&&(bo=new Co),bo}function Oo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Ao(e,n,t||So(),i)}var Ao=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&fn(n,function(e){return r.processProvider(e,t,n)}),fn([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(ko,Io(void 0,this));var s=this.records.get(wo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:f(t))}return _createClass(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.Default;this.assertNotDestroyed();var i,r=Sn(this),o=D(void 0);try{if(!(n&R.SkipSelf)){var a=this.records.get(e);if(void 0===a){var s=("function"==typeof(i=e)||"object"==typeof i&&i instanceof un)&&x(e);a=s&&this.injectableDefInScope(s)?Io(To(e),xo):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(n&R.Self?So():this.parent).get(e,t=n&R.Optional&&t===bn?null:t)}catch(u){if("NullInjectorError"===u.name){if((u[Cn]=u[Cn]||[]).unshift(f(e)),r)throw u;return Dn(u,e,"R3InjectorError",this.source)}throw u}finally{D(o),Sn(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(f(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=_(e)))return!1;var r=S(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=S(o)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(a);try{fn(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,r=t.providers;fn(r,function(e){return i.processProvider(e,n,r||H)})},c=0;c0){var n=vn(t,"?");throw new Error("Can't resolve all parameters for ".concat(f(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[A]||e[P]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" 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 "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Po(e,t,n){var i;if(Do(e)){var r=_(e);return me(r)||To(r)}if(Ro(e))i=function(){return _(e.useValue)};else if(function(e){return!(!e||!e.useFactory)}(e))i=function(){return e.useFactory.apply(e,_toConsumableArray(Pn(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return An(_(e.useExisting))};else{var o=_(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return me(o)||To(o);i=function(){return _construct(o,_toConsumableArray(Pn(e.deps)))}}return i}function Io(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Ro(e){return null!==e&&"object"==typeof e&&En in e}function Do(e){return"function"==typeof e}var Mo=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=Oo(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},Lo=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Mo(e,t,""):Mo(e.providers,e.parent,e.name||"")}}]),e}();function Fo(e,t){Ct(Ti(e)[1],Ge())}function No(e){for(var t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0,i=[e];t;){var r=void 0;if(ve(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=Bo(e.inputs),o.declaredInputs=Bo(e.declaredInputs),o.outputs=Bo(e.outputs);var a=r.hostBindings;a&&jo(e,a);var s=r.viewQuery,u=r.contentQueries;if(s&&Uo(e,s),u&&Zo(e,u),h(e.inputs,r.inputs),h(e.declaredInputs,r.declaredInputs),h(e.outputs,r.outputs),ve(r)&&r.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var f=0;f=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Rt(r.hostAttrs,n=Rt(n,r.hostAttrs))}}(i)}function Bo(e){return e===V?{}:e===H?[]:e}function Uo(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function Zo(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function jo(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}Lo.THROW_IF_NOT_FOUND=bn,Lo.NULL=new Co,Lo.\u0275prov=C({token:Lo,providedIn:"any",factory:function(){return An(ko)}}),Lo.__NG_ELEMENT_ID__=-1;var qo=null;function Vo(){if(!qo){var e=q.Symbol;if(e&&e.iterator)qo=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:R.Default,n=He();return null===n?An(e,t):Gt(Ge(),n,_(e),t)}function ea(e,t,n){var i=He();return Go(i,nt(),t)&&zr(ze(),yt(),i,e,t,i[11],n,!1),ea}function ta(e,t,n,i,r){var o=r?"class":"style";mo(e,n,t.inputs[o],o,i)}function na(e,t,n,i){var r=He(),o=ze(),a=20+e,s=r[11],u=r[a]=qi(s,t,qe.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,u=Rr(t,e,2,r,Ue(s,o));return Yr(t,n,u,Ue(s,a)),null!==u.attrs&&yo(u,u.attrs,!1),null!==u.mergedAttrs&&yo(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,o,r,0,t,n,i):o.data[a];We(l,!0);var c=l.mergedAttrs;null!==c&&Tt(s,u,c);var h=l.classes;null!==h&&ur(s,u,h);var f=l.styles;null!==f&&sr(s,u,f),64!=(64&l.flags)&&er(o,r,u,l),0===qe.lFrame.elementDepthCount&&Ai(u,r),qe.lFrame.elementDepthCount++,pe(l)&&(Ur(o,r,l),Br(o,l,r)),null!==i&&Zr(r,l)}function ia(){var e=Ge();Qe()?Je():We(e=e.parent,!1);var t=e;qe.lFrame.elementDepthCount--;var n=ze();n.firstCreatePass&&(Ct(n,e),fe(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&ta(n,t,He(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&ta(n,t,He(),t.stylesWithoutHost,!1)}function ra(e,t,n,i){na(e,t,n,i),ia()}function oa(e,t,n){var i=He(),r=ze(),o=e+20,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=Ue(o,i),s=Rr(t,e,8,"ng-container",a);return null!==a&&yo(s,a,!0),Yr(t,n,s,Ue(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,r,i,t,n):r.data[o];We(a,!0);var s=i[o]=i[11].createComment("");er(r,i,s,a),Ai(s,i),pe(a)&&(Ur(r,i,a),Br(r,a,i)),null!=n&&Zr(i,a)}function aa(){var e=Ge(),t=ze();Qe()?Je():We(e=e.parent,!1),t.firstCreatePass&&(Ct(t,e),fe(e)&&t.queries.elementEnd(e))}function sa(){return He()}function ua(e){return!!e&&"function"==typeof e.then}function la(e){return!!e&&"function"==typeof e.subscribe}var ca=la;function ha(e,t,n,i){var r=He(),o=ze(),a=Ge();return da(o,r,r[11],a,e,t,!!n,i),ha}function fa(e,t){var n=Ge(),i=He(),r=ze();return da(r,i,vo(at(r.data),n,i),n,e,t,!1),fa}function da(e,t,n,i,r,o,a,s){var u=pe(i),l=e.firstCreatePass&&po(e),c=t[8],h=fo(t),f=!0;if(3&i.type||s){var d=De(i,t),p=s?s(d):d,v=h.length,_=s?function(e){return s(Ie(e[i.index]))}:i.index;if(Te(n)){var m=null;if(!s&&u&&(m=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,f=!1;else{o=va(i,t,c,o,!1);var g=n.listen(p,r,o);h.push(o,g),l&&l.push(r,_,v,v+1)}}else o=va(i,t,c,o,!0),p.addEventListener(r,o,a),h.push(o),l&&l.push(r,_,v,a)}else o=va(i,t,c,o,!1);var y,b=i.outputs;if(f&&null!==b&&(y=b[r])){var k=y.length;if(k)for(var C=0;C0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(qe.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,qe.lFrame.contextLView))[8]}(e)}function ma(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=He(),r=ze(),o=Rr(r,20+e,16,null,n||null);null===o.projection&&(o.projection=t),Je(),64!=(64&o.flags)&&function(e,t,n){ar(t[11],0,t,n,Gi(e,n,t),Xi(n.parent||t[6],n,t))}(r,i,o)}function ba(e,t,n){return ka(e,"",t,"",n),ba}function ka(e,t,n,i,r){var o=He(),a=Qo(o,t,n,i);return a!==kr&&zr(ze(),yt(),o,e,a,o[11],r,!1),ka}function Ca(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?Er(o):Or(o),u=!1;0!==s&&(!1===u||a);){var l=e[s+1];wa(e[s],t)&&(u=!0,e[s+1]=i?Tr(l):Sr(l)),s=i?Er(l):Or(l)}u&&(e[n+1]=i?Sr(o):Tr(o))}function wa(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&gn(e,t)>=0}var xa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ea(e){return e.substring(xa.key,xa.keyEnd)}function Sa(e,t){var n=xa.textEnd;return n===t?-1:(t=xa.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,xa.key=t,n),Oa(e,t,n))}function Oa(e,t,n){for(;t=0;n=Sa(t,n))_n(e,Ea(t),!0)}function Ra(e,t,n,i){var r=He(),o=ze(),a=it(2);o.firstUpdatePass&&La(o,e,a,i),t!==kr&&Go(r,a,t)&&Ba(o,o.data[mt()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=f(Gn(e)))),e}(t,n),i,a)}function Da(e,t,n,i){var r=ze(),o=it(2);r.firstUpdatePass&&La(r,null,o,i);var a=He();if(n!==kr&&Go(a,o,n)){var s=r.data[mt()];if(ja(s,i)&&!Ma(r,o)){var u=i?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(n=d(u,n||"")),ta(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===kr&&(r=H);for(var u=0,l=0,c=0=e.expandoStartIndex}function La(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[mt()],a=Ma(e,n);ja(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=at(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Na(n=Fa(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=Fa(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Or(i))return e[Er(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[Er(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Na(s=Fa(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i,r=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else l=n;if(r)if(0!==u){var f=Er(e[s+1]);e[i+1]=xr(f,s),0!==f&&(e[f+1]=Ar(e[f+1],i)),e[s+1]=function(e,t){return 131071&e|t<<17}(e[s+1],i)}else e[i+1]=xr(s,0),0!==s&&(e[s+1]=Ar(e[s+1],i)),s=i;else e[i+1]=xr(u,0),0===s?s=i:e[u+1]=Ar(e[u+1],i),u=i;c&&(e[i+1]=Sr(e[i+1])),Ca(e,l,i,!0),Ca(e,l,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&gn(o,t)>=0&&(n[i+1]=Tr(n[i+1]))}(t,l,e,i,o),a=xr(s,u),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function Fa(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[r],l=Array.isArray(u),c=l?u[1]:u,h=null===c,f=n[r+1];f===kr&&(f=h?H:void 0);var d=h?mn(f,i):c===i?f:void 0;if(l&&!Za(d)&&(d=mn(u,i)),Za(d)&&(a=d,s))return a;var p=e[r+1];r=s?Er(p):Or(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(a=mn(v,i))}return a}function Za(e){return void 0!==e}function ja(e,t){return 0!=(e.flags&(t?16:32))}function qa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=He(),i=ze(),r=e+20,o=i.firstCreatePass?Rr(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return Te(e)?e.createText(t):e.createTextNode(t)}(n[11],t);er(i,n,a,o),We(o,!1)}function Va(e){return Ha("",e,""),Va}function Ha(e,t,n){var i=He(),r=Qo(i,e,t,n);return r!==kr&&go(i,mt(),r),Ha}function za(e,t,n,i,r){var o=He(),a=function(e,t,n,i,r,o){var a=Ko(e,tt(),n,r);return it(2),a?t+y(n)+i+y(r)+o:kr}(o,e,t,n,i,r);return a!==kr&&go(o,mt(),a),za}function Ya(e,t,n,i,r,o,a){var s=He(),u=function(e,t,n,i,r,o,a,s){var u=function(e,t,n,i,r){var o=Ko(e,t,n,i);return Go(e,t+2,r)||o}(e,tt(),n,r,a);return it(3),u?t+y(n)+i+y(r)+o+y(a)+s:kr}(s,e,t,n,i,r,o,a);return u!==kr&&go(s,mt(),u),Ya}function Ga(e,t,n){Da(_n,Ia,Qo(He(),e,t,n),!0)}function Ka(e,t,n){var i=He();return Go(i,nt(),t)&&zr(ze(),yt(),i,e,t,i[11],n,!0),Ka}function Wa(e,t,n){var i=He();if(Go(i,nt(),t)){var r=ze(),o=yt();zr(r,o,i,e,t,vo(at(r.data),o,i),n,!0)}return Wa}var Qa=void 0,Ja=["en",[["a","p"],["AM","PM"],Qa],[["AM","PM"],Qa,Qa],[["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"]],Qa,[["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"]],Qa,[["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}",Qa,"{1} 'at' {0}",Qa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Xa={};function $a(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=ts(t);if(n)return n;var i=t.split("-")[0];if(n=ts(i))return n;if("en"===i)return Ja;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function es(e){return $a(e)[ns.PluralCase]}function ts(e){return e in Xa||(Xa[e]=q.ng&&q.ng.common&&q.ng.common.locales&&q.ng.common.locales[e]),Xa[e]}var ns=((ns=ns||{})[ns.LocaleId=0]="LocaleId",ns[ns.DayPeriodsFormat=1]="DayPeriodsFormat",ns[ns.DayPeriodsStandalone=2]="DayPeriodsStandalone",ns[ns.DaysFormat=3]="DaysFormat",ns[ns.DaysStandalone=4]="DaysStandalone",ns[ns.MonthsFormat=5]="MonthsFormat",ns[ns.MonthsStandalone=6]="MonthsStandalone",ns[ns.Eras=7]="Eras",ns[ns.FirstDayOfWeek=8]="FirstDayOfWeek",ns[ns.WeekendRange=9]="WeekendRange",ns[ns.DateFormat=10]="DateFormat",ns[ns.TimeFormat=11]="TimeFormat",ns[ns.DateTimeFormat=12]="DateTimeFormat",ns[ns.NumberSymbols=13]="NumberSymbols",ns[ns.NumberFormats=14]="NumberFormats",ns[ns.CurrencyCode=15]="CurrencyCode",ns[ns.CurrencySymbol=16]="CurrencySymbol",ns[ns.CurrencyName=17]="CurrencyName",ns[ns.Currencies=18]="Currencies",ns[ns.Directionality=19]="Directionality",ns[ns.PluralCase=20]="PluralCase",ns[ns.ExtraData=21]="ExtraData",ns),is="en-US";function rs(e){(function(e,t){null==e&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(t,e)})(e,"Expected localeId to be defined"),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function os(e,t,n,i,r){if(e=_(e),Array.isArray(e))for(var o=0;o>20;if(Do(e)||!e.multi){var p=new At(l,r,$o),v=us(u,t,r?h:h+d,f);-1===v?(Ht(Zt(c,s),a,u),as(a,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var m=us(u,t,h+d,f),g=us(u,t,h,h+d),y=m>=0&&n[m],b=g>=0&&n[g];if(r&&!b||!r&&!y){Ht(Zt(c,s),a,u);var k=function(e,t,n,i,r){var o=new At(e,n,$o);return o.multi=[],o.index=t,o.componentProviders=0,ss(o,r,i&&!n),o}(r?cs:ls,n.length,r,i,l);!r&&b&&(n[g].providerFactory=k),as(a,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(k),s.push(k)}else as(a,e,m>-1?m:g,ss(n[r?g:m],l,!r&&i));!r&&i&&b&&n[g].componentProviders++}}}function as(e,t,n,i){var r=Do(t);if(r||function(e){return!!e.useClass}(t)){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function ss(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function us(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=ze();if(i.firstCreatePass){var r=ve(e);os(n,i.data,i.blueprint,r,!0),os(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var ds=function e(){_classCallCheck(this,e)},ps=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(f(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),vs=function e(){_classCallCheck(this,e)};function _s(){}function ms(e,t){return new ys(De(e,t))}vs.NULL=new ps;var gs,ys=((gs=function e(t){_classCallCheck(this,e),this.nativeElement=t}).__NG_ELEMENT_ID__=function(){return ms(Ge(),He())},gs);function bs(e){return e instanceof ys?e.nativeElement:e}var ks=function e(){_classCallCheck(this,e)},Cs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return ws()},e}(),ws=function(){var e=He(),t=Fe(Ge().index,e);return function(e){return e[11]}(ce(t)?t:e)},xs=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=C({token:e,providedIn:"root",factory:function(){return null}}),e}(),Es=function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Ss=new Es("12.2.4"),Os=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return zo(e)}},{key:"create",value:function(e){return new Ts(e)}}]),e}(),As=function(e,t){return t},Ts=function(){function e(t){_classCallCheck(this,e),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=t||As}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&i.push(Ie(o)),he(o))for(var a=10;a-1&&(Hi(e,n),pn(t,n))}this._attachedToViewContainer=!1}zi(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Vr(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){so(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){uo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){$e(!0);try{uo(e,t,n)}finally{$e(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,or(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Vs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._view=e,i}return _createClass(n,[{key:"detectChanges",value:function(){lo(this._view)}},{key:"checkNoChanges",value:function(){!function(e){$e(!0);try{lo(e)}finally{$e(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(qs),Hs=function(e){return function(e,t,n){if(de(e)&&!n){var i=Fe(e.index,t);return new qs(i,i)}return 47&e.type?new qs(t[16],t):null}(Ge(),He(),16==(16&e))},zs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Hs,e}(),Ys=[new Ms],Gs=new Bs([new Os]),Ks=new Zs(Ys),Ws=function(){return Xs(Ge(),He())},Qs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Ws,e}(),Js=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return _createClass(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Ir(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Mr(t,n,e),new qs(n)}}]),n}(Qs);function Xs(e,t){return 4&e.type?new Js(t,e,ms(e,t)):null}var $s=function e(){_classCallCheck(this,e)},eu=function e(){_classCallCheck(this,e)},tu=function(){return au(Ge(),He())},nu=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=tu,e}(),iu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return _createClass(n,[{key:"element",get:function(){return ms(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new tn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=Vt(this._hostTNode,this._hostLView);if(Mt(e)){var t=Ft(e,this._hostLView),n=Lt(e);return new tn(t[1].data[n+8],t)}return new tn(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=ru(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get($s,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(he(i[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=i[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var u=this._adjustIndex(t),l=this._lContainer;!function(e,t,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(nu);function ru(e){return e[8]}function ou(e){return e[8]||(e[8]=[])}function au(e,t){var n,i=t[e.index];if(he(i))n=i;else{var r;if(8&e.type)r=Ie(i);else{var o=t[11];r=o.createComment("");var a=De(e,t);Ki(o,Ji(o,a),r,function(e,t){return Te(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=no(i,t,r,e),ao(t,n)}return new iu(n,e,t)}var su={},uu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).ngModule=e,i}return _createClass(n,[{key:"resolveComponentFactory",value:function(e){var t=ue(e);return new hu(t,this.ngModule)}}]),n}(vs);function lu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var cu=new un("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Di}}),hu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(br).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return _createClass(n,[{key:"inputs",get:function(){return lu(this.componentDef.inputs)}},{key:"outputs",get:function(){return lu(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,su,r);return o!==su||i===su?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(ks,Pe),u=a.get(xs,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Te(e))return e.selectRootElement(t,n===N.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(l,n,this.componentDef.encapsulation):qi(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?Se:"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:Di,clean:ho,playerHandler:null,flags:0},p=qr(0,null,null,1,0,null,null,null,null,null),v=Ir(null,p,d,f,null,null,s,l,u,a);ht(v);try{var _=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=Rr(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(yo(s,u,!0),null!==e&&(Tt(r,e,u),null!==s.classes&&ur(r,e,s.classes),null!==s.styles&&sr(r,e,s.styles)));var l=i.createRenderer(e,t),c=Ir(n,jr(t),null,t.onPush?64:16,n[20],s,i,l,null,null);return a.firstCreatePass&&(Ht(Zt(s,n),a,t.type),Wr(a,s),Jr(s,n.length,1)),ao(n,c),n[20]=c}(h,this.componentDef,v,s,l);if(h)if(n)Tt(l,h,["ng-version",Ss.full]);else{var m=function(e){for(var t=[],n=[],i=1,r=2;i0&&ur(l,h,y.join(" "))}if(o=Me(p,20),void 0!==t)for(var b=o.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:Lo.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.Default;return e===Lo||e===$s||e===ko?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}($s),vu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).moduleType=e,null!==le(e)&&function(e){var t=new Set;!function e(n){var i=le(n,!0),r=i.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(f(t)," vs ").concat(f(t.name)))}(r,du.get(r),n),du.set(r,n));var o,a=_createForOfIteratorHelper(Mi(i.imports));try{for(a.s();!(o=a.n()).done;){var s=o.value;t.has(s)||(t.add(s),e(s))}}catch(u){a.e(u)}finally{a.f()}}(e)}(e),i}return _createClass(n,[{key:"create",value:function(e){return new pu(this.moduleType,e)}}]),n}(eu);function _u(e,t,n,i){return mu(He(),et(),e,t,n,i)}function mu(e,t,n,i,r,o){var a=t+n;return Go(e,a,r)?function(e,t,n){return e[t]=n}(e,a+1,o?i.call(o,r):i(r)):function(e,t){var n=e[t];return n===kr?void 0:n}(e,a+1)}function gu(e,t){var n,i=ze(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new g("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=me(n.type)),a=D($o);try{var s=Bt(!1),u=o();return Bt(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,He(),r,u),u}finally{D(a)}}function yu(e,t,n){var i=e+20,r=He(),o=Le(r,i);return function(e,t){return Ho.isWrapped(t)&&(t=Ho.unwrap(t),e[tt()]=kr),t}(r,function(e,t){return e[1].data[t].pure}(r,i)?mu(r,et(),t,o.transform,n,o):o.transform(n))}function bu(e){return function(t){setTimeout(e,void 0,t)}}var ku=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=i,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var o,a,s,u=e,l=t||function(){return null},c=i;if(e&&"object"==typeof e){var h=e;u=null===(o=h.next)||void 0===o?void 0:o.bind(h),l=null===(a=h.error)||void 0===a?void 0:a.bind(h),c=null===(s=h.complete)||void 0===s?void 0:s.bind(h)}this.__isAsync&&(l=bu(l),u&&(u=bu(u)),c&&(c=bu(c)));var f=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,{next:u,error:l,complete:c});return e instanceof r.w&&e.add(f),f}}]),n}(i.xQ);function Cu(){return this._results[Vo()]()}var wu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classCallCheck(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Vo(),i=e.prototype;i[n]||(i[n]=Cu)}return _createClass(e,[{key:"changes",get:function(){return this._changes||(this._changes=new ku)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){var n=this;n.dirty=!1;var i=hn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,e),this.predicate=t,this.flags=n,this.read=i},Ou=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(a[s/2]);else{for(var l=o[s+1],c=t[-u],h=10;h0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!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,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(An(sl))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}(),vl=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,gl.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return gl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function _l(e){gl=e}var ml,gl=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),yl=!0,bl=!1;function kl(){return bl=!0,yl}function Cl(){if(bl)throw new Error("Cannot enable prod mode after platform setup.");yl=!1}var wl=new un("AllowMultipleToken"),xl=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function El(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new un(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Sl();if(!o||o.injector.get(wl,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:wo,useValue:"platform"});!function(e){if(ml&&!ml.destroyed&&!ml.injector.get(wl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ml=e.get(Ol);var t=e.get(zu,null);t&&t.forEach(function(e){return e()})}(Lo.create({providers:a,name:i}))}return function(e){var t=Sl();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Sl(){return ml&&!ml.destroyed?ml:null}var Ol=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n=this,i=function(e,t){return"noop"===e?new dl:("zone.js"===e?void 0:e)||new sl({enableLongStackTrace:kl(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)})}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),r=[{provide:sl,useValue:i}];return i.run(function(){var o=Lo.create({providers:r,parent:n.injector,name:e.moduleType.name}),a=e.create(o),s=a.injector.get(Ri,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(function(){var e=i.onError.subscribe({next:function(e){s.handleError(e)}});a.onDestroy(function(){Pl(n._modules,a),e.unsubscribe()})}),function(e,i,r){try{var o=((s=a.injector.get(ju)).runInitializers(),s.donePromise.then(function(){return rs(a.injector.get(Wu,is)||is),n._moduleDoBootstrap(a),a}));return ua(o)?o.catch(function(t){throw i.runOutsideAngular(function(){return e.handleError(t)}),t}):o}catch(t){throw i.runOutsideAngular(function(){return e.handleError(t)}),t}var s}(s,i)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Al({},n);return function(e,t,n){var i=new vu(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Tl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(f(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(An(Lo))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Al(e,t){return Array.isArray(t)?t.reduce(Al,e):Object.assign(Object.assign({},e),t)}var Tl=function(){var e=function(){function e(t,n,i,r,c){var h=this;_classCallCheck(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){h._zone.run(function(){h.tick()})}});var f=new o.y(function(e){h._stable=h._zone.isStable&&!h._zone.hasPendingMacrotasks&&!h._zone.hasPendingMicrotasks,h._zone.runOutsideAngular(function(){e.next(h._stable),e.complete()})}),d=new o.y(function(e){var t;h._zone.runOutsideAngular(function(){t=h._zone.onStable.subscribe(function(){sl.assertNotInAngularZone(),al(function(){!h._stable&&!h._zone.hasPendingMacrotasks&&!h._zone.hasPendingMicrotasks&&(h._stable=!0,e.next(!0))})})});var n=h._zone.onUnstable.subscribe(function(){sl.assertInAngularZone(),h._stable&&(h._stable=!1,h._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=(0,a.T)(f,d.pipe(function(e){return(0,u.x)()(function(e,t){return function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,s.N);return i.source=t,i.subjectFactory=n,i}}(l)(e))}))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof ds?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=function(e){return e.isBoundToModule}(n)?void 0:this._injector.get($s),o=n.create(Lo.NULL,[],t||n.selector,r),a=o.location.nativeElement,s=o.injector.get(pl,null),u=s&&o.injector.get(vl);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),Pl(i.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;){var i;t.value.detectChanges()}}catch(r){n.e(r)}finally{n.f()}}catch(i){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(i)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Pl(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Gu,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(An(sl),An(Lo),An(Ri),An(vs),An(ju))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Pl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Il=function e(){_classCallCheck(this,e)},Rl=function e(){_classCallCheck(this,e)},Dl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Ml=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||Dl}return _createClass(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=_slicedToArray(e.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n(8255)(r).then(function(e){return e[o]}).then(function(e){return Ll(e,r,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),i=t[0],r=t[1],o="NgFactory";return void 0===r&&(r="default",o=""),n(8255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+o]}).then(function(e){return Ll(e,i,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(An(rl),An(Rl,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Ll(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Fl=function(e){return null},Nl=El(null,"core",[{provide:Yu,useValue:"unknown"},{provide:Ol,deps:[Lo]},{provide:vl,deps:[]},{provide:Ku,deps:[]}]),Bl=[{provide:Tl,useClass:Tl,deps:[sl,Lo,Ri,vs,ju]},{provide:cu,deps:[sl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:ju,useClass:ju,deps:[[new Nn,Zu]]},{provide:rl,useClass:rl,deps:[]},Vu,{provide:Bs,useFactory:function(){return Gs},deps:[]},{provide:Zs,useFactory:function(){return Ks},deps:[]},{provide:Wu,useFactory:function(e){return rs(e=e||"undefined"!=typeof $localize&&$localize.locale||is),e},deps:[[new Fn(Wu),new Nn,new Bn]]},{provide:Qu,useValue:"USD"}],Ul=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)(An(Tl))},e.\u0275mod=ie({type:e}),e.\u0275inj=w({providers:Bl}),e}()},665:function(e,t,n){"use strict";n.d(t,{Zs:function(){return ce},sg:function(){return ae},u5:function(){return fe},Cf:function(){return h},JU:function(){return c},a5:function(){return P},JL:function(){return I},F:function(){return ne},_Y:function(){return ie}});var i=n(3018),r=(n(8583),n(7574)),o=n(9796),a=n(8002),s=n(1555),u=n(4402);function l(e,t){return new r.y(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var l=(0,u.D)(e[s]),c=!1;n.add(l.subscribe({next:function(e){c||(c=!0,a++),r[s]=e},error:function(e){return n.error(e)},complete:function(){(++o===i||!c)&&(a===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},l=0;l0){var r=i.filter(function(e){return e!==t.validator});r.length!==i.length&&(n=!0,e.setValidators(r))}}if(null!==t.asyncValidator){var o=C(e);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(e){return e!==t.asyncValidator});a.length!==o.length&&(n=!0,e.setAsyncValidators(a))}}}var s=function(){};return M(t._rawValidators,s),M(t._rawAsyncValidators,s),n}function N(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function B(e,t){L(e,t)}function U(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Z(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var j="VALID",q="INVALID",V="PENDING",H="DISABLED";function z(e){return(W(e)?e.validators:e)||null}function Y(e){return Array.isArray(e)?g(e):e||null}function G(e,t){return(W(t)?t.asyncValidators:e)||null}function K(e){return Array.isArray(e)?y(e):e||null}function W(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Q=function(){function e(t,n){_classCallCheck(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Y(this._rawValidators),this._composedAsyncValidatorFn=K(this._rawAsyncValidators)}return _createClass(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===j}},{key:"invalid",get:function(){return this.status===q}},{key:"pending",get:function(){return this.status==V}},{key:"disabled",get:function(){return this.status===H}},{key:"enabled",get:function(){return this.status!==H}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Y(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=K(e)}},{key:"addValidators",value:function(e){this.setValidators(E(e,this._rawValidators))}},{key:"addAsyncValidators",value:function(e){this.setAsyncValidators(E(e,this._rawAsyncValidators))}},{key:"removeValidators",value:function(e){this.setValidators(S(e,this._rawValidators))}},{key:"removeAsyncValidators",value:function(e){this.setAsyncValidators(S(e,this._rawAsyncValidators))}},{key:"hasValidator",value:function(e){return x(this._rawValidators,e)}},{key:"hasAsyncValidator",value:function(e){return x(this._rawAsyncValidators,e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=V,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=H,this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=j,this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===j||this.status===V)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?H:j}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=V,this._hasOwnPendingAsyncValidator=!0;var n=p(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;var i=e;return t.forEach(function(e){i=i instanceof X?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof $&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?H:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(V)?V:this._anyControlsHaveStatus(q)?q:j}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){W(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),J=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this,z(r),G(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),e}return _createClass(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){Z(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){Z(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(Q),X=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,z(i),G(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return _createClass(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof J?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(Q),$=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,z(i),G(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return _createClass(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof J?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(Q),ee={provide:T,useExisting:(0,i.Gpc)(function(){return ne})},te=Promise.resolve(null),ne=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new i.vpe,o.form=new X({},g(e),y(r)),o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),R(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Z(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path),i=new X({});B(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;te.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,U(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.Y36(h,10),i.Y36(f,10))},e.\u0275dir=i.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([ee]),i.qOj]}),e}(),ie=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),re=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({}),e}(),oe={provide:T,useExisting:(0,i.Gpc)(function(){return ae})},ae=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this)).validators=e,o.asyncValidators=r,o.submitted=!1,o._onCollectionChange=function(){return o._updateDomValue()},o.directives=[],o.form=null,o.ngSubmit=new i.vpe,o._setValidators(e),o._setAsyncValidators(r),o}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(F(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return R(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){D(e.control||null,e,!1),Z(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,U(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(D(n||null,t),i instanceof J&&(R(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);B(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return F(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){L(this.form,this),this._oldForm&&F(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.Y36(h,10),i.Y36(f,10))},e.\u0275dir=i.lG2({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([oe]),i.qOj,i.TTD]}),e}(),se={provide:h,useExisting:(0,i.Gpc)(function(){return le}),multi:!0},ue={provide:h,useExisting:(0,i.Gpc)(function(){return ce}),multi:!0},le=function(){var e=function(){function e(){_classCallCheck(this,e),this._required=!1}return _createClass(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?function(e){return function(e){return null==e||0===e.length}(e.value)?{required:!0}:null}(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.lG2({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t.required?"":null)},inputs:{required:"required"},features:[i._Bn([se])]}),e}(),ce=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"validate",value:function(e){return this.required?function(e){return!0===e.value?null:{required:!0}}(e):null}}]),n}(le);return t.\u0275fac=function(n){return(e||(e=i.n5z(t)))(n||t)},t.\u0275dir=i.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t.required?"":null)},features:[i._Bn([ue]),i.qOj]}),t}(),he=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[re]]}),e}(),fe=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[he]}),e}()},1095:function(e,t,n){"use strict";n.d(t,{zs:function(){return p},lW:function(){return d},ot:function(){return v}});var i,r=n(2458),o=n(6237),a=n(3018),s=n(9238),u=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],f=(0,r.pj)((0,r.Id)((0,r.Kr)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}()))),d=((i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;_classCallCheck(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=_createForOfIteratorHelper(h);try{for(s.s();!(a=s.n()).done;){var u=a.value;o._hasHostAttributes(u)&&o._getHostElement().classList.add(u)}}catch(l){s.e(l)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return function(e){_inherits(i,e);var n=_createSuper(i);function i(){var e;_classCallCheck(this,i);for(var r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},O),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,u=t-r.top,l=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-a+"px",c.style.top=u-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(l,"ms"),this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var h=new S(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,!i.persistent&&(!e||!n._isPointerDown)&&h.fadeOut()},l),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},O),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=(0,u.fI)(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(T))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(P),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=(0,r.X6)(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,A)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(T.forEach(function(t){e._triggerElement.removeEventListener(t,e,A)}),this._pointerUpEventsRegistered&&P.forEach(function(t){e._triggerElement.removeEventListener(t,e,A)}))}}]),e}(),R=new i.OlP("mat-ripple-global-options"),D=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new I(this,n,t,i)}return _createClass(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(c.t4),i.Y36(R,8),i.Y36(h.Qb,8))},e.\u0275dir=i.lG2({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),M=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[y,c.ud],y]}),e}(),L=function(){var e=function e(t){_classCallCheck(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(i.Y36(h.Qb,8))},e.\u0275cmp=i.Xpm({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),F=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[y]]}),e}(),N=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),B=b(function(){return function e(){_classCallCheck(this,e)}}()),U=0,Z=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,r;return _classCallCheck(this,n),(i=t.call(this))._labelId="mat-optgroup-label-"+U++,i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(B);return e.\u0275fac=function(t){return new(t||e)(i.Y36(N,8))},e.\u0275dir=i.lG2({type:e,inputs:{label:"label"},features:[i.qOj]}),e}(),j=new i.OlP("MatOptgroup"),q=0,V=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,e),this.source=t,this.isUserInput=n},H=function(){var e=function(){function e(t,n,r,o){_classCallCheck(this,e),this._element=t,this._changeDetectorRef=n,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+q++,this.onSelectionChange=new i.vpe,this._stateChanges=new l.xQ}return _createClass(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=(0,u.Ig)(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){(e.keyCode===f.K5||e.keyCode===f.L_)&&!(0,f.Vb)(e)&&(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new V(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(void 0),i.Y36(Z))},e.\u0275dir=i.lG2({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),z=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){return _classCallCheck(this,n),t.call(this,e,i,r,o)}return n}(H);return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(N,8),i.Y36(j,8))},e.\u0275cmp=i.Xpm({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:_,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,d,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,p,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[s.O5,D,L],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function Y(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;an+i?Math.max(0,e-i+t):n}var K=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[M,s.ez,y,F]]}),e}()},2238:function(e,t,n){"use strict";n.d(t,{WI:function(){return A},uw:function(){return D},H8:function(){return B},ZT:function(){return L},xY:function(){return N},Is:function(){return Z},so:function(){return S},uh:function(){return F}});var i=n(625),r=n(7636),o=n(3018),a=n(2458),s=n(946),u=n(8583),l=n(9765),c=n(1439),h=n(5917),f=n(5435),d=n(5257),p=n(9761),v=n(521),_=n(7238),m=n(6461),g=n(9238);function y(e,t){}var b,k=function e(){_classCallCheck(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},C={dialogContainer:(0,_.X$)("dialogContainer",[(0,_.SB)("void, exit",(0,_.oB)({opacity:0,transform:"scale(0.7)"})),(0,_.SB)("enter",(0,_.oB)({transform:"none"})),(0,_.eR)("* => enter",(0,_.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,_.oB)({transform:"none",opacity:1}))),(0,_.eR)("* => void, * => exit",(0,_.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,_.oB)({opacity:0})))])},w=((b=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,s,u){var l;return _classCallCheck(this,n),(l=t.call(this))._elementRef=e,l._focusTrapFactory=i,l._changeDetectorRef=r,l._config=s,l._focusMonitor=u,l._animationStateChanged=new o.vpe,l._elementFocusedBeforeDialogWasOpened=null,l._closeInteractionType=null,l.attachDomPortal=function(e){return l._portalOutlet.hasAttached(),l._portalOutlet.attachDomPortal(e)},l._ariaLabelledBy=s.ariaLabelledBy||null,l._document=a,l}return _createClass(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=(0,v.ht)(),n=this._elementRef.nativeElement;(!t||t===this._document.body||t===n||n.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,v.ht)())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=(0,v.ht)();return e===t||e.contains(t)}}]),n}(r.en)).\u0275fac=function(e){return new(e||b)(o.Y36(o.SBq),o.Y36(g.qV),o.Y36(o.sBO),o.Y36(u.K0,8),o.Y36(k),o.Y36(g.tE))},b.\u0275dir=o.lG2({type:b,viewQuery:function(e,t){var n;1&e&&o.Gf(r.Pl,7),2&e&&o.iGM(n=o.CRH())&&(t._portalOutlet=n.first)},features:[o.qOj]}),b),x=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._state="enter",e}return _createClass(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(w);return t.\u0275fac=function(n){return(e||(e=o.n5z(t)))(n||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&o.WFA("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(o.Ikx("id",t._id),o.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),o.d8E("@dialogContainer",t._state))},features:[o.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&o.YNc(0,y,0,0,"ng-template",0)},directives:[r.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[C.dialogContainer]}}),t}(),E=0,S=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+E++;_classCallCheck(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new l.xQ,this._afterClosed=new l.xQ,this._beforeClosed=new l.xQ,this._state=0,n._id=r,n._animationStateChanged.pipe((0,f.h)(function(e){return"opened"===e.state}),(0,d.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe((0,f.h)(function(e){return"closed"===e.state}),(0,d.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe((0,f.h)(function(e){return e.keyCode===m.hY&&!i.disableClose&&!(0,m.Vb)(e)})).subscribe(function(e){e.preventDefault(),O(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():O(i,"mouse")})}return _createClass(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe((0,f.h)(function(e){return"closing"===e.state}),(0,d.q)(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function O(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var A=new o.OlP("MatDialogData"),T=new o.OlP("mat-dialog-default-options"),P=new o.OlP("mat-dialog-scroll-strategy"),I={provide:P,deps:[i.aV],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},R=function(){var e=function(){function e(t,n,i,r,o,a,s,u,h){var f=this;_classCallCheck(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=u,this._dialogDataToken=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.xQ,this._afterOpenedAtThisLevel=new l.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,c.P)(function(){return f.openDialogs.length?f._getAfterAllClosed():f._getAfterAllClosed().pipe((0,p.O)(void 0))}),this._scrollStrategy=a}return _createClass(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new k)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=o.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:k,useValue:t}]}),i=new r.C5(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var a=new this._dialogRefConstructor(n,t,i.id);if(e instanceof o.Rgc)t.attachTemplatePortal(new r.UE(e,null,{$implicit:i.data,dialogRef:a}));else{var s=this._createInjector(i,a,t),u=t.attachComponentPortal(new r.C5(e,i.viewContainerRef,s));a.componentInstance=u.instance}return a.updateSize(i.width,i.height).updatePosition(i.position),a}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!i||!i.get(s.Is,null,o.XFs.Optional))&&r.push({provide:s.Is,useValue:{value:e.direction,change:(0,h.of)()}}),o.zs3.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i!==e&&"SCRIPT"!==i.nodeName&&"STYLE"!==i.nodeName&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.aV),o.Y36(o.zs3),o.Y36(void 0),o.Y36(void 0),o.Y36(i.Xj),o.Y36(void 0),o.Y36(o.DyG),o.Y36(o.DyG),o.Y36(o.OlP))},e.\u0275dir=o.lG2({type:e}),e}(),D=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u){return _classCallCheck(this,n),t.call(this,e,i,o,s,u,a,S,x,A)}return n}(R);return e.\u0275fac=function(t){return new(t||e)(o.LFG(i.aV),o.LFG(o.zs3),o.LFG(u.Ye,8),o.LFG(T,8),o.LFG(P),o.LFG(e,12),o.LFG(i.Xj))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e}(),M=0,L=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.dialogRef=t,this._elementRef=n,this._dialog=i,this.type="button"}return _createClass(e,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=U(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}},{key:"_onButtonClick",value:function(e){O(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(S,8),o.Y36(o.SBq),o.Y36(D))},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&o.NdJ("click",function(e){return t._onButtonClick(e)}),2&e&&o.uIk("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[o.TTD]}),e}(),F=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+M++}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=U(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(S,8),o.Y36(o.SBq),o.Y36(D))},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&o.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),N=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),B=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function U(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}var Z=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({providers:[D,I],imports:[[i.U8,r.eL,a.BQ],a.BQ]}),e}()},8295:function(e,t,n){"use strict";n.d(t,{G_:function(){return K},o2:function(){return G},KE:function(){return W},Eo:function(){return B},lN:function(){return Q},hX:function(){return Z},R9:function(){return H}});var i=n(8553),r=n(8583),o=n(3018),a=n(2458),s=n(9490),u=n(9765),l=n(6682),c=n(2759),h=n(9761),f=n(6782),d=n(5257),p=n(7238),v=n(6237),_=n(946),m=n(521),g=["underline"],y=["connectionContainer"],b=["inputContainer"],k=["label"];function C(e,t){1&e&&(o.ynx(0),o.TgZ(1,"div",14),o._UZ(2,"div",15),o._UZ(3,"div",16),o._UZ(4,"div",17),o.qZA(),o.TgZ(5,"div",18),o._UZ(6,"div",15),o._UZ(7,"div",16),o._UZ(8,"div",17),o.qZA(),o.BQk())}function w(e,t){1&e&&(o.TgZ(0,"div",19),o.Hsn(1,1),o.qZA())}function x(e,t){if(1&e&&(o.ynx(0),o.Hsn(1,2),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.BQk()),2&e){var n=o.oxw(2);o.xp6(3),o.Oqu(n._control.placeholder)}}function E(e,t){1&e&&o.Hsn(0,3,["*ngSwitchCase","true"])}function S(e,t){1&e&&(o.TgZ(0,"span",23),o._uU(1," *"),o.qZA())}function O(e,t){if(1&e){var n=o.EpF();o.TgZ(0,"label",20,21),o.NdJ("cdkObserveContent",function(){return o.CHM(n),o.oxw().updateOutlineGap()}),o.YNc(2,x,4,1,"ng-container",12),o.YNc(3,E,1,0,"ng-content",12),o.YNc(4,S,2,0,"span",22),o.qZA()}if(2&e){var i=o.oxw();o.ekj("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),o.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),o.uIk("for",i._control.id)("aria-owns",i._control.id),o.xp6(2),o.Q6J("ngSwitchCase",!1),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function A(e,t){1&e&&(o.TgZ(0,"div",24),o.Hsn(1,4),o.qZA())}function T(e,t){if(1&e&&(o.TgZ(0,"div",25,26),o._UZ(2,"span",27),o.qZA()),2&e){var n=o.oxw();o.xp6(2),o.ekj("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function P(e,t){if(1&e&&(o.TgZ(0,"div"),o.Hsn(1,5),o.qZA()),2&e){var n=o.oxw();o.Q6J("@transitionMessages",n._subscriptAnimationState)}}function I(e,t){if(1&e&&(o.TgZ(0,"div",31),o._uU(1),o.qZA()),2&e){var n=o.oxw(2);o.Q6J("id",n._hintLabelId),o.xp6(1),o.Oqu(n.hintLabel)}}function R(e,t){if(1&e&&(o.TgZ(0,"div",28),o.YNc(1,I,2,2,"div",29),o.Hsn(2,6),o._UZ(3,"div",30),o.Hsn(4,7),o.qZA()),2&e){var n=o.oxw();o.Q6J("@transitionMessages",n._subscriptAnimationState),o.xp6(1),o.Q6J("ngIf",n.hintLabel)}}var D,M=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],L=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],F=new o.OlP("MatError"),N={transitionMessages:(0,p.X$)("transitionMessages",[(0,p.SB)("enter",(0,p.oB)({opacity:1,transform:"translateY(0%)"})),(0,p.eR)("void => enter",[(0,p.oB)({opacity:0,transform:"translateY(-5px)"}),(0,p.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},B=((D=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||D)},D.\u0275dir=o.lG2({type:D}),D),U=new o.OlP("MatHint"),Z=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["mat-label"]]}),e}(),j=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["mat-placeholder"]]}),e}(),q=new o.OlP("MatPrefix"),V=new o.OlP("MatSuffix"),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","matSuffix",""]],features:[o._Bn([{provide:V,useExisting:e}])]}),e}(),z=0,Y=(0,a.pj)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}(),"primary"),G=new o.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),K=new o.OlP("MatFormField"),W=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,l,c){var h;return _classCallCheck(this,n),(h=t.call(this,e))._changeDetectorRef=i,h._dir=o,h._defaults=a,h._platform=s,h._ngZone=l,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new u.xQ,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-"+z++,h._labelId="mat-form-field-label-"+z++,h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==c,h.appearance=a&&a.appearance?a.appearance:"legacy",h._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,h}return _createClass(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=(0,s.Ig)(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe((0,h.O)(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,f.R)(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe((0,f.R)(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),(0,l.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,f.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,c.R)(this._label.nativeElement,"transitionend").pipe((0,d.q)(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,_toConsumableArray(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,_toConsumableArray(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=e.children,l=this._getStartEnd(u[0].getBoundingClientRect()),c=0,h=0;h0?.75*c+10:0}for(var f=0;f-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(g);return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.SBq),r.Y36(i.t4),r.Y36(p.a5,10),r.Y36(p.F,8),r.Y36(p.sg,8),r.Y36(f.rD),r.Y36(v,10),r.Y36(c),r.Y36(r.R0b),r.Y36(d.G_,8))},e.\u0275dir=r.lG2({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&r.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(r.Ikx("disabled",t.disabled)("required",t.required),r.uIk("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),r.ekj("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[r._Bn([{provide:d.Eo,useExisting:e}]),r.qOj,r.TTD]}),e}(),b=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[f.rD],imports:[[h,d.lN,f.BQ],h,d.lN]}),e}()},7441:function(e,t,n){"use strict";n.d(t,{gD:function(){return z},LD:function(){return Y}});var i=n(625),r=n(8583),o=n(3018),a=n(2458),s=n(8295),u=n(9243),l=n(9238),c=n(9490),h=n(8345),f=n(6461),d=n(9765),p=n(1439),v=n(6682),_=n(9761),m=n(3190),g=n(5257),y=n(5435),b=n(8002),k=n(7519),C=n(6782),w=n(7238),x=n(946),E=n(665),S=["trigger"],O=["panel"];function A(e,t){if(1&e&&(o.TgZ(0,"span",8),o._uU(1),o.qZA()),2&e){var n=o.oxw();o.xp6(1),o.Oqu(n.placeholder)}}function T(e,t){if(1&e&&(o.TgZ(0,"span",12),o._uU(1),o.qZA()),2&e){var n=o.oxw(2);o.xp6(1),o.Oqu(n.triggerValue)}}function P(e,t){1&e&&o.Hsn(0,0,["*ngSwitchCase","true"])}function I(e,t){if(1&e&&(o.TgZ(0,"span",9),o.YNc(1,T,2,1,"span",10),o.YNc(2,P,1,0,"ng-content",11),o.qZA()),2&e){var n=o.oxw();o.Q6J("ngSwitch",!!n.customTrigger),o.xp6(2),o.Q6J("ngSwitchCase",!0)}}function R(e,t){if(1&e){var n=o.EpF();o.TgZ(0,"div",13),o.TgZ(1,"div",14,15),o.NdJ("@transformPanel.done",function(e){return o.CHM(n),o.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return o.CHM(n),o.oxw()._handleKeydown(e)}),o.Hsn(3,1),o.qZA(),o.qZA()}if(2&e){var i=o.oxw();o.Q6J("@transformPanelWrap",void 0),o.xp6(1),o.Gre("mat-select-panel ",i._getPanelTheme(),""),o.Udp("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),o.Q6J("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),o.uIk("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var D,M=[[["mat-select-trigger"]],"*"],L=["mat-select-trigger","*"],F={transformPanelWrap:(0,w.X$)("transformPanelWrap",[(0,w.eR)("* => void",(0,w.IO)("@transformPanel",[(0,w.pV)()],{optional:!0}))]),transformPanel:(0,w.X$)("transformPanel",[(0,w.SB)("void",(0,w.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,w.SB)("showing",(0,w.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,w.SB)("showing-multiple",(0,w.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,w.eR)("void => *",(0,w.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,w.eR)("* => void",(0,w.jt)("100ms 25ms linear",(0,w.oB)({opacity:0})))])},N=0,B=new o.OlP("mat-select-scroll-strategy"),U=new o.OlP("MAT_SELECT_CONFIG"),Z={provide:B,deps:[i.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},j=function e(t,n){_classCallCheck(this,e),this.source=t,this.value=n},q=(0,a.Kr)((0,a.sb)((0,a.Id)((0,a.FD)(function(){return function e(t,n,i,r,o){_classCallCheck(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o}}())))),V=new o.OlP("MatSelectTrigger"),H=((D=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,s,u,l,c,h,f,k,C,w,x){var E,S,O,A;return _classCallCheck(this,n),(E=t.call(this,s,a,l,c,f))._viewportRuler=e,E._changeDetectorRef=i,E._ngZone=r,E._dir=u,E._parentFormField=h,E._liveAnnouncer=w,E._defaultOptions=x,E._panelOpen=!1,E._compareWith=function(e,t){return e===t},E._uid="mat-select-"+N++,E._triggerAriaLabelledBy=null,E._destroy=new d.xQ,E._onChange=function(){},E._onTouched=function(){},E._valueId="mat-select-value-"+N++,E._panelDoneAnimatingStream=new d.xQ,E._overlayPanelClass=(null===(S=E._defaultOptions)||void 0===S?void 0:S.overlayPanelClass)||"",E._focused=!1,E.controlType="mat-select",E._required=!1,E._multiple=!1,E._disableOptionCentering=null!==(A=null===(O=E._defaultOptions)||void 0===O?void 0:O.disableOptionCentering)&&void 0!==A&&A,E.ariaLabel="",E.optionSelectionChanges=(0,p.P)(function(){var e=E.options;return e?e.changes.pipe((0,_.O)(e),(0,m.w)(function(){return v.T.apply(void 0,_toConsumableArray(e.map(function(e){return e.onSelectionChange})))})):E._ngZone.onStable.pipe((0,g.q)(1),(0,m.w)(function(){return E.optionSelectionChanges}))}),E.openedChange=new o.vpe,E._openedStream=E.openedChange.pipe((0,y.h)(function(e){return e}),(0,b.U)(function(){})),E._closedStream=E.openedChange.pipe((0,y.h)(function(e){return!e}),(0,b.U)(function(){})),E.selectionChange=new o.vpe,E.valueChange=new o.vpe,E.ngControl&&(E.ngControl.valueAccessor=_assertThisInitialized(E)),null!=(null==x?void 0:x.typeaheadDebounceInterval)&&(E._typeaheadDebounceInterval=x.typeaheadDebounceInterval),E._scrollStrategyFactory=C,E._scrollStrategy=E._scrollStrategyFactory(),E.tabIndex=parseInt(k)||0,E.id=E.id,E}return _createClass(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,c.Ig)(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=(0,c.Ig)(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=(0,c.Ig)(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=(0,c.su)(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,k.x)(),(0,C.R)(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,C.R)(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe((0,_.O)(null),(0,C.R)(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=t===f.JH||t===f.LH||t===f.oh||t===f.SV,i=t===f.K5||t===f.L_,r=this._keyManager;if(!r.isTyping()&&i&&!(0,f.Vb)(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=n===f.JH||n===f.LH,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||n!==f.K5&&n!==f.L_||!t.activeItem||(0,f.Vb)(e))if(!r&&this._multiple&&n===f.A&&e.ctrlKey){e.preventDefault();var o=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(o?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this._overlayDir.positionChange.pipe((0,g.q)(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new l.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,C.R)(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe((0,C.R)(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):!e._panelOpen&&!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=(0,v.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,C.R)(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),v.T.apply(void 0,_toConsumableArray(this.options.map(function(e){return e._stateChanges}))).pipe((0,C.R)(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(q)).\u0275fac=function(e){return new(e||D)(o.Y36(u.rL),o.Y36(o.sBO),o.Y36(o.R0b),o.Y36(a.rD),o.Y36(o.SBq),o.Y36(x.Is,8),o.Y36(E.F,8),o.Y36(E.sg,8),o.Y36(s.G_,8),o.Y36(E.a5,10),o.$8M("tabindex"),o.Y36(B),o.Y36(l.Kd),o.Y36(U,8))},D.\u0275dir=o.lG2({type:D,viewQuery:function(e,t){var n;1&e&&(o.Gf(S,5),o.Gf(O,5),o.Gf(i.pI,5)),2&e&&(o.iGM(n=o.CRH())&&(t.trigger=n.first),o.iGM(n=o.CRH())&&(t.panel=n.first),o.iGM(n=o.CRH())&&(t._overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[o.qOj,o.TTD]}),D),z=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return _createClass(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,C.R)(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"_canOpen",this).call(this)&&(_get(_getPrototypeOf(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(function(){e._triggerFontSize&&e._overlayDir.overlayRef&&e._overlayDir.overlayRef.overlayElement&&(e._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t=(0,a.CB)(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:(0,a.jH)((e+t)*n,n,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),_get(_getPrototypeOf(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new j(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this._overlayDir.offsetX=Math.round(e),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=(0,a.CB)(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(H);return t.\u0275fac=function(n){return(e||(e=o.n5z(t)))(n||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;(1&e&&(o.Suo(n,V,5),o.Suo(n,a.ey,5),o.Suo(n,a.K7,5)),2&e)&&(o.iGM(i=o.CRH())&&(t.customTrigger=i.first),o.iGM(i=o.CRH())&&(t.options=i),o.iGM(i=o.CRH())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&o.NdJ("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(o.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),o.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[o._Bn([{provide:s.Eo,useExisting:t},{provide:a.HF,useExisting:t}]),o.qOj],ngContentSelectors:L,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(o.F$t(M),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return t.toggle()}),o.TgZ(3,"div",2),o.YNc(4,A,2,1,"span",3),o.YNc(5,I,3,2,"span",4),o.qZA(),o.TgZ(6,"div",5),o._UZ(7,"div",6),o.qZA(),o.qZA(),o.YNc(8,R,4,14,"ng-template",7),o.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=o.MAs(1);o.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),o.xp6(3),o.Q6J("ngSwitch",t.empty),o.uIk("id",t._valueId),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngSwitchCase",!1),o.xp6(3),o.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[i.xu,r.RF,r.n9,i.pI,r.ED,r.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[F.transformPanelWrap,F.transformPanel]},changeDetection:0}),t}(),Y=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({providers:[Z],imports:[[r.ez,i.U8,a.Ng,a.BQ],u.ZD,s.lN,a.Ng,a.BQ]}),e}()},6237:function(e,t,n){"use strict";n.d(t,{Qb:function(){return Mt},PW:function(){return Bt}});var i=n(3018),r=n(9075),o=n(7238);function a(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function u(e){switch(e.length){case 0:return new o.ZN;case 1:return e[0];default:return new o.ZE(e)}}function l(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=[],u=[],l=-1,c=null;if(i.forEach(function(e){var n=e.offset,i=n==l,h=i&&c||{};Object.keys(e).forEach(function(n){var i=n,u=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,s),u){case o.k1:u=r[n];break;case o.l3:u=a[n];break;default:u=t.normalizeStyleValue(n,i,u,s)}h[i]=u}),i||u.push(h),c=h,l=n}),s.length){var h="\n - ";throw new Error("Unable to animate due to the following errors:".concat(h).concat(s.join(h)))}return u}function c(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&h(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&h(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&h(n,"destroy",e))})}}function h(e,t,n){var i=n.totalTime,r=f(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function f(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function d(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function p(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var v=function(e,t){return!1},_=function(e,t){return!1},m=function(e,t,n){return[]},g=s();(g||"undefined"!=typeof Element)&&(v=a()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},_=function(){if(g||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:_}(),m=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else B(e,n);return n}function Z(e,t,n){return n?t+":"+n+";":""}function j(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(oe(o,s)),"<"==a[0]&&("*"!=o||"*"!=s)&&t.push(oe(s,o))}(e,n,t)}):n.push(e),n}var ie=new Set(["true","1"]),re=new Set(["false","0"]);function oe(e,t){var n=ie.has(e)||re.has(e),i=ie.has(t)||re.has(t);return function(r,o){var a="*"==e||e==r,s="*"==t||t==o;return!a&&n&&"boolean"==typeof r&&(a=r?ie.has(e):re.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?ie.has(t):re.has(t)),a&&s}}var ae=new RegExp("s*:selfs*,?","g");function se(e,t,n){return new ue(e).build(t,n)}var ue=function(){function e(t){_classCallCheck(this,e),this._driver=t}return _createClass(e,[{key:"build",value:function(e,t){var n=new le(t);return this._resetContextStyleTimingState(n),ee(this,H(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,u=s.name;u.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,o.push(n.visitState(s,t))}),s.name=u}else if(1==e.type){var l=n.visitTransition(e,t);i+=l.queryCount,r+=l.depCount,a.push(l)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach(function(e){if(ce(e)){var t=e;Object.keys(t).forEach(function(e){Y(t[e]).forEach(function(e){o.hasOwnProperty(e)||r.add(e)})})}}),r.size){var a=K(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n=ee(this,H(e.animation),t);return{type:1,matchers:ne(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:he(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return ee(n,e,t)}),options:he(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=ee(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:he(e.options)}}},{key:"visitAnimate",value:function(e,t){var n=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return fe(N(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=fe(0,0,"");return r.dynamic=!0,r.strValue=i,r}return fe((n=n||N(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=n;var i,r=e.styles?e.styles:(0,o.oB)({});if(5==r.type)i=this.visitKeyframes(r,t);else{var a=e.styles,s=!1;if(!a){s=!0;var u={};n.easing&&(u.easing=n.easing),a=(0,o.oB)(u)}t.currentTime+=n.duration+n.delay;var l=this.visitStyle(a,t);l.isEmptyStep=s,i=l}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==o.l3?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(ce(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a=t.collectedStyles[t.currentQuerySelector],s=a[i],u=!0;s&&(o!=r&&o>=s.startTime&&r<=s.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(s.startTime,'ms" and "').concat(s.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),u=!1),o=s.startTime),u&&(a[i]={startTime:o,endTime:r}),t.options&&function(e,t,n){var i=t.params||{},r=Y(e);r.length&&r.forEach(function(e){i.hasOwnProperty(e)||n.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})}(e[i],t.options,t.errors)}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,u=0,l=e.steps.map(function(e){var i=n._makeStyleAst(e,t),l=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(ce(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(ce(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),s=s||c<0||c>1,a=a||c0&&r0?r==f?1:h*r:o[r],s=a*v;t.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:ee(this,H(e.animation),t),options:he(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:he(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:he(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(ae,"")),[e=e.replace(/@\*/g,R).replace(/@\w+/g,function(e){return R+"-"+e.substr(1)}).replace(/:animating/g,M),t]}(e.selector),2),o=r[0],a=r[1];t.currentQuerySelector=n.length?n+" "+o:o,d(t.collectedStyles,t.currentQuerySelector,{});var s=ee(this,H(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:he(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:N(e.timings,t.errors,!0);return{type:12,animation:ee(this,H(e.animation),t),timings:n,options:null}}}]),e}(),le=function e(t){_classCallCheck(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function ce(e){return!Array.isArray(e)&&"object"==typeof e}function he(e){return e?(e=B(e)).params&&(e.params=function(e){return e?B(e):null}(e.params)):e={},e}function fe(e,t,n){return{duration:e,delay:t,easing:n}}function de(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var pe=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),ve=new RegExp(":enter","g"),_e=new RegExp(":leave","g");function me(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new ge).buildKeyframes(e,t,n,i,r,o,a,s,u,l)}var ge=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new pe;var c=new be(e,t,u,i,r,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),ee(this,n,c);var h=c.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,c.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[de(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?L(n.duration):null,o=null!=n.delay?L(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),ee(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ye);var a=L(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return ee(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?L(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),ee(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return N(t.params?G(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?L(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ye);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(u=s.currentTimeline),ee(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;ee(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}]),e}(),ye={},be=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ye,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new ke(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=L(i.duration)),null!=i.delay&&(r.delay=L(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){(!t||!a.hasOwnProperty(e))&&(a[e]=G(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=ye,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Ce(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(ve,"."+this._enterClassName)).replace(_e,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,_toConsumableArray(s))}return!r&&0==a.length&&o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}]),e}(),ke=function(){function e(t,n,i,r){_classCallCheck(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||o.l3,t._currentKeyframe[e]=o.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var a=i&&i.params||{},s=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]=o.l3}):U(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(s).forEach(function(e){var t=G(s[e],a,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:o.l3),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(a,s){var u=U(a,!0);Object.keys(u).forEach(function(e){var i=u[e];i==o.k1?t.add(e):i==o.l3&&n.add(e)}),i||(u.offset=s/e.duration),r.push(u)});var a=t.size?K(t.values()):[],s=n.size?K(n.values()):[];if(i){var u=r[0],l=B(u);u.offset=0,l.offset=1,r=[u,l]}return de(this.element,r,a,s,this.duration,this.startTime,this.easing,!1)}}]),e}(),Ce=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(u=t.call(this,e,i,s.delay)).keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=l,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,u=U(e[0],!1);u.offset=0,o.push(u);var l=U(e[0],!1);l.offset=we(s),o.push(l);for(var c=e.length-1,h=1;h<=c;h++){var f=U(e[h],!1);f.offset=we((n+f.offset*i)/a),o.push(f)}i=a,n=0,r="",e=o}return de(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(ke);function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var xe=function e(){_classCallCheck(this,e)},Ee=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(e,t){return Q(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(Se[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(xe),Se=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Oe(e,t,n,i,r,o,a,s,u,l,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:f}}var Ae={},Te=function(){function e(t,n,i){_classCallCheck(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return _createClass(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,u,l){var c=[],h=this.ast.options&&this.ast.options.params||Ae,f=this.buildStyles(n,a&&a.params||Ae,c),p=s&&s.params||Ae,v=this.buildStyles(i,p,c),_=new Set,m=new Map,g=new Map,y="void"===i,b={params:Object.assign(Object.assign({},h),p)},k=l?[]:me(e,t,this.ast.animation,r,o,f,v,b,u,c),C=0;if(k.forEach(function(e){C=Math.max(e.duration+e.delay,C)}),c.length)return Oe(t,this._triggerName,n,i,y,f,v,[],[],m,g,C,c);k.forEach(function(e){var n=e.element,i=d(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=d(g,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&_.add(n)});var w=K(_.values());return Oe(t,this._triggerName,n,i,y,f,v,k,w,m,g,C)}}]),e}(),Pe=function(){function e(t,n,i){_classCallCheck(this,e),this.styles=t,this.defaultParams=n,this.normalizer=i}return _createClass(e,[{key:"buildStyles",value:function(e,t){var n=this,i={},r=B(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach(function(e){var a=o[e];a.length>1&&(a=G(a,r,t));var s=n.normalizer.normalizePropertyName(e,t);a=n.normalizer.normalizeStyleValue(e,s,a,t),i[s]=a})}}),i}}]),e}(),Ie=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.name=t,this.ast=n,this._normalizer=i,this.transitionFactories=[],this.states={},n.states.forEach(function(e){r.states[e.name]=new Pe(e.style,e.options&&e.options.params||{},i)}),Re(this.states,"true","1"),Re(this.states,"false","0"),n.transitions.forEach(function(e){r.transitionFactories.push(new Te(t,e,r.states))}),this.fallbackTransition=function(e,t,n){return new Te(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},t)}(t,this.states)}return _createClass(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Re(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var De=new pe,Me=function(){function e(t,n,i){_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var n=[],i=se(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=l(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],s=this._animations[e],l=new Map;if(s?(n=me(this._driver,t,s,T,P,{},{},r,De,a)).forEach(function(e){var t=d(l,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));l.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,o.l3)})});var c=u(n.map(function(e){var t=l.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=c,c.onDestroy(function(){return i.destroy(e)}),this.players.push(c),c}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=f(t,"","","");return c(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);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(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Le="ng-animate-queued",Fe="ng-animate-disabled",Ne=".ng-animate-disabled",Be=[],Ue={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ze={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},je="__ng_removed",qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var o=B(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),Ve="void",He=new qe(Ve),ze=function(){function e(t,n,i){_classCallCheck(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,$e(n,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=d(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var u=d(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||($e(e,I),$e(e,I+"-"+t),u[t]=He),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete u[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new Ge(this.id,t,e),s=this._engine.statesByElement.get(e);s||($e(e,I),$e(e,I+"-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],l=new qe(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[t]=l,u||(u=He),l.value===Ve||u.value!==l.value){var c=d(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=o.matchTransition(u.value,l.value,e,l.params),f=!1;if(!h){if(!r)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:l,player:a,isFallbackTransition:f}),f||($e(e,Le),a.onStart(function(){et(e,Le)})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),$e(e,Fe)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),et(e,Fe))}},{key:"removeNode",value:function(e,t,n,i){if(Ke(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t[je]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return Ke(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,R,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,M,!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return u(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e[je];if(n&&n.setForRemoval){if(e[je]=Ue,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,Ne)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Ne,!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;I--)this._namespaceList[I].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(O.push(t),n.collectedEnterElements.length){var a=o[je];if(a&&a.setForMove)return void t.destroy()}var u=!p||!n.driver.containsElement(p,o),f=E.get(o),v=m.get(o),_=n._buildInstruction(e,i,v,f,u);if(_.errors&&_.errors.length)A.push(_);else{if(u)return t.onStart(function(){return V(o,_.fromStyles)}),t.onDestroy(function(){return q(o,_.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return V(o,_.fromStyles)}),t.onDestroy(function(){return q(o,_.toStyles)}),void r.push(t);_.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(o,_.timelines),s.push({instruction:_,player:t,element:o}),_.queriedElements.forEach(function(e){return d(l,e,[]).push(t)}),_.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),_.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=h.get(t);i||h.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(A.length){var R=[];A.forEach(function(e){R.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return R.push("- ".concat(e,"\n"))})}),O.forEach(function(e){return e.destroy()}),this.reportError(R)}var D=new Map,L=new Map;s.forEach(function(e){var t=e.element;i.has(t)&&(L.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,D))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){d(D,t,[]).push(e),e.destroy()})});var F=y.filter(function(e){return it(e,c,h)}),N=new Map;Qe(N,this.driver,k,h,o.l3).forEach(function(e){it(e,c,h)&&F.push(e)});var B=new Map;_.forEach(function(e,t){Qe(B,n.driver,new Set(e),c,o.k1)}),F.forEach(function(e){var t=N.get(e),n=B.get(e);N.set(e,Object.assign(Object.assign({},t),n))});var U=[],Z=[],j={};s.forEach(function(e){var t=e.element,o=e.player,s=e.instruction;if(i.has(t)){if(f.has(t))return o.onDestroy(function(){return q(t,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var l=j;if(L.size>1){for(var c=t,h=[];c=c.parentNode;){var d=L.get(c);if(d){l=d;break}h.push(c)}h.forEach(function(e){return L.set(e,l)})}var p=n._buildAnimation(o.namespaceId,s,D,a,B,N);if(o.setRealPlayer(p),l===j)U.push(o);else{var v=n.playersByElement.get(l);v&&v.length&&(o.parentPlayer=u(v)),r.push(o)}}else V(t,s.fromStyles),o.onDestroy(function(){return q(t,s.toStyles)}),Z.push(o),f.has(t)&&r.push(o)}),Z.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=u(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var H=0;H0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new o.ZN(e.duration,e.delay)}}]),e}(),Ge=function(){function e(t,n,i){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new o.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return c(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){d(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Ke(e){return e&&1===e.nodeType}function We(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Qe(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(We(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);(!n||0==n.length)&&(i[je]=Ze,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return We(e,o[s++])}),a}function Je(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}var Xe="$$classes";function $e(e,t){if(e.classList)e.classList.add(t);else{var n=e[Xe];n||(n=e[Xe]={}),n[t]=!0}}function et(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Xe];n&&delete n[t]}}function tt(e,t,n){u(n).onDone(function(){return e.processLeaveNode(t)})}function nt(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function ot(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=st(t[0]),t.length>1&&(i=st(t[t.length-1]))):t&&(n=st(t)),n||i?new at(e,n,i):null}var at=function(){function e(t,n,i){_classCallCheck(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(V(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}]),e}();function st(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),vt(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){var n=mt(e,"").split(","),i=pt(n,t);i>=0&&(n.splice(i,1),_t(e,"",n.join(",")))}(this._element,this._name))}}]),e}();function ft(e,t,n){_t(e,"PlayState",n,dt(e,t))}function dt(e,t){var n=mt(e,"");return n.indexOf(",")>0?pt(n.split(","),t):pt([n],t)}function pt(e,t){for(var n=0;n=0)return n;return-1}function vt(e,t,n){n?e.removeEventListener(ct,t):e.addEventListener(ct,t)}function _t(e,t,n,i){var r=lt+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function mt(e,t){return e.style[lt+t]||""}var gt=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new ht(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:te(e.element,i))})}this.currentSnapshot=t}}]),e}(),yt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=E(i),r}return _createClass(n,[{key:"init",value:function(){var e=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(o.ZN),bt=function(){function e(){_classCallCheck(this,e),this._count=0}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return k(e)}},{key:"matchesElement",value:function(e,t){return C(e,t)}},{key:"containsElement",value:function(e,t){return w(e,t)}},{key:"query",value:function(e,t,n){return x(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return E(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof gt}),s={};X(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"==n||"easing"==n||(t[n]=e[n])})}),t}(t=$(e,t,s));if(0==n)return new yt(e,u);var l="gen_css_kf_"+this._count++,c=this.buildKeyframeElement(e,l,t);(function(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(e).appendChild(c);var h=ot(e,t),f=new gt(e,t,l,n,i,r,u,h);return f.onDestroy(function(){var e;(e=c).parentNode.removeChild(e)}),f}}]),e}(),kt=function(){function e(t,n,i,r){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:te(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Ct=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(wt().toString()),this._cssKeyframesDriver=new bt}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return k(e)}},{key:"matchesElement",value:function(e,t){return C(e,t)}},{key:"containsElement",value:function(e,t){return w(e,t)}},{key:"query",value:function(e,t,n){return x(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var u={},l=o.filter(function(e){return e instanceof kt});X(n,i)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var c=ot(e,t=$(e,t=t.map(function(e){return U(e,!1)}),u));return new kt(e,t,s,c)}}]),e}();function wt(){return a()&&Element.prototype.animate||{}}var xt=n(8583),Et=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this))._nextAnimationId=0,o._renderer=e.createRenderer(r.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}}),o}return _createClass(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?(0,o.vP)(e):e;return At(this._renderer,null,t,"register",[n]),new St(t,this._renderer)}}]),n}(o._j);return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.FYo),i.LFG(xt.K0))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),St=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return _createClass(n,[{key:"create",value:function(e,t){return new Ot(this._id,e,t||{},this._renderer)}}]),n}(o.LC),Ot=function(){function e(t,n,i,r){_classCallCheck(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&t==Tt?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),Rt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,i,r,o)).factory=e,a.namespaceId=i,a}return _createClass(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Tt?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i=this;if("@"==t.charAt(0)){var r,o=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),a=t.substr(1),s="";return"@"!=a.charAt(0)&&(a=(r=_slicedToArray(function(e){var t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(a),2))[0],s=r[1]),this.engine.listen(this.namespaceId,o,a,s,function(e){i.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(It),Dt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){return _classCallCheck(this,n),t.call(this,e.body,i,r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(rt);return e.\u0275fac=function(t){return new(t||e)(i.LFG(xt.K0),i.LFG(A),i.LFG(xe))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),Mt=new i.OlP("AnimationModuleType"),Lt=[{provide:o._j,useClass:Et},{provide:xe,useFactory:function(){return new Ee}},{provide:rt,useClass:Dt},{provide:i.FYo,useFactory:function(e,t,n){return new Pt(e,t,n)},deps:[r.se,rt,i.R0b]}],Ft=[{provide:A,useFactory:function(){return"function"==typeof wt()?new Ct:new bt}},{provide:Mt,useValue:"BrowserAnimations"}].concat(Lt),Nt=[{provide:A,useClass:O},{provide:Mt,useValue:"NoopAnimations"}].concat(Lt),Bt=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?Nt:Ft}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({providers:Ft,imports:[r.b2]}),e}()},9075:function(e,t,n){"use strict";n.d(t,{b2:function(){return N},H7:function(){return D},q6:function(){return L},se:function(){return w}});var i,r,o=n(8583),a=n(3018),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){e.parentNode&&e.parentNode.removeChild(e)}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getBaseHref",value:function(e){var t=(u=u||document.querySelector("base"))?u.getAttribute("href"):null;return null==t?null:function(e){(i=i||document.createElement("a")).setAttribute("href",e);var t=i.pathname;return"/"===t.charAt(0)?t:"/".concat(t)}(t)}},{key:"resetBaseElement",value:function(){u=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(e){return(0,o.Mx)(document.cookie,e)}}],[{key:"makeCurrent",value:function(){(0,o.HT)(new n)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).supportsDOMEvents=!0,e}return n}(o.w_)),u=null,l=new a.OlP("TRANSITION_ID"),c=[{provide:a.ip1,useFactory:function(e,t,n){return function(){n.get(a.CZH).donePromise.then(function(){for(var n=(0,o.q)(),i=t.querySelectorAll('style[ng-transition="'.concat(e,'"]')),r=0;r1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},a.dqk.getAllAngularTestabilities=function(){return e.getAllTestabilities()},a.dqk.getAllAngularRootElements=function(){return e.getAllRootElements()},a.dqk.frameworkStabilizers||(a.dqk.frameworkStabilizers=[]),a.dqk.frameworkStabilizers.push(function(e){var t=a.dqk.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?(0,o.q)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){(0,a.VLi)(new e)}}]),e}(),f=((r=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||r)},r.\u0275prov=a.Yz7({token:r,factory:r.\u0275fac}),r),d=new a.OlP("EventManagerPlugins"),p=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&P.hasOwnProperty(t)&&(t=P[t]))}return T[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),A.forEach(function(i){i!=n&&I[i](e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(v);return e.\u0275fac=function(t){return new(t||e)(a.LFG(o.K0))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),D=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,a.Yz7)({factory:function(){return(0,a.LFG)(M)},token:e,providedIn:"root"}),e}(),M=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i}return _createClass(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case a.q3G.NONE:return t;case a.q3G.HTML:return(0,a.qzn)(t,"HTML")?(0,a.z3N)(t):(0,a.EiD)(this._doc,String(t)).toString();case a.q3G.STYLE:return(0,a.qzn)(t,"Style")?(0,a.z3N)(t):t;case a.q3G.SCRIPT:if((0,a.qzn)(t,"Script"))return(0,a.z3N)(t);throw new Error("unsafe value used in a script context");case a.q3G.URL:return(0,a.yhl)(t),(0,a.qzn)(t,"URL")?(0,a.z3N)(t):(0,a.mCW)(String(t));case a.q3G.RESOURCE_URL:if((0,a.qzn)(t,"ResourceURL"))return(0,a.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return(0,a.JVY)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return(0,a.L6k)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return(0,a.eBb)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return(0,a.LAX)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return(0,a.pB0)(e)}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(a.LFG(o.K0))},e.\u0275prov=(0,a.Yz7)({factory:function(){return function(e){return new M(e.get(o.K0))}((0,a.LFG)(a.gxx))},token:e,providedIn:"root"}),e}(),L=(0,a.eFA)(a._c5,"browser",[{provide:a.Lbi,useValue:o.bD},{provide:a.g9A,useValue:function(){s.makeCurrent(),h.init()},multi:!0},{provide:o.K0,useFactory:function(){return(0,a.RDi)(document),document},deps:[]}]),F=[[],{provide:a.zSh,useValue:"root"},{provide:a.qLn,useFactory:function(){return new a.qLn},deps:[]},{provide:d,useClass:O,multi:!0,deps:[o.K0,a.R0b,a.Lbi]},{provide:d,useClass:R,multi:!0,deps:[o.K0]},[],{provide:w,useClass:w,deps:[p,m,a.AFp]},{provide:a.FYo,useExisting:w},{provide:_,useExisting:m},{provide:m,useClass:m,deps:[o.K0]},{provide:a.dDg,useClass:a.dDg,deps:[a.R0b]},{provide:p,useClass:p,deps:[d,a.R0b]},{provide:o.JF,useClass:f,deps:[]},[]],N=function(){var e=function(){function e(t){if(_classCallCheck(this,e),t)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.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:a.AFp,useValue:t.appId},{provide:l,useExisting:a.AFp},c]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(e,12))},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:F,imports:[o.ez,a.hGG]}),e}();"undefined"!=typeof window&&window},8741:function(e,t,n){"use strict";n.d(t,{gz:function(){return rt},F0:function(){return On},rH:function(){return Tn},yS:function(){return Pn},Bz:function(){return qn},lC:function(){return Rn}});var i=n(8583),r=n(3018),o=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),a=n(4402),s=n(5917),u=n(6215),l=n(739),c=n(7574),h=n(8071),f=n(1439),d=n(9193),p=n(2441),v=n(9765),_=n(7393);function m(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new g(e,t,n))}}var g=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new y(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),y=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return _createClass(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(_.L),b=n(5345);function k(e){return function(t){var n=new C(e),i=t.lift(n);return n.caught=i}}var C=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new w(e,this.selector,this.caught))}}]),e}(),w=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return _createClass(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var i=new b.IY(this);this.add(i);var r=(0,b.ft)(t,i);r!==i&&this.add(r)}}}]),n}(b.Ds),x=n(5435),E=n(7108);function S(e){return function(t){return 0===e?(0,d.c)():t.lift(new O(e))}}var O=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new E.W}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new A(e,this.total))}}]),e}(),A=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:R;return function(t){return t.lift(new P(e))}}var P=function(){function e(t){_classCallCheck(this,e),this.errorFactory=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new I(e,this.errorFactory))}}]),e}(),I=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(_.L);function R(){return new o}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new M(e))}}var M=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new L(e,this.defaultValue))}}]),e}(),L=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return _createClass(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(_.L),F=n(4487),N=n(5257);function B(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?(0,x.h)(function(t,n){return e(t,n,i)}):F.y,(0,N.q)(1),n?D(t):T(function(){return new o}))}}var U=n(5319),Z=function(){function e(t){_classCallCheck(this,e),this.callback=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new j(e,this.callback))}}]),e}(),j=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).add(new U.w(i)),r}return n}(_.L),q=n(8002),V=n(3190),H=n(9761),z=n(4612),Y=n(9773),G=n(3342),K=n(1307),W=n(3282),Q=function e(t,n){_classCallCheck(this,e),this.id=t,this.url=n},J=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Q),X=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Q),$=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).reason=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Q),ee=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).error=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Q),te=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ne=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ie=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s;return _classCallCheck(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(Q),re=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),oe=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ae=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),se=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),ue=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),le=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),ce=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),he=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fe=function(){function e(t,n,i){_classCallCheck(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),de="primary",pe=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function ve(e){return new pe(e)}var _e="ngNavigationCancelingError";function me(e){var t=Error("NavigationCancelingError: "+e);return t[_e]=!0,t}function ge(e,t,n){var i=n.path.split("/");if(i.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function we(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function xe(e){return(0,r.CqO)(e)?e:(0,r.QGY)(e)?(0,a.D)(Promise.resolve(e)):(0,s.of)(e)}var Ee={exact:function e(t,n,i){if(!Me(t.segments,n.segments)||!Pe(t.segments,n.segments,i)||t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children)if(!t.children[r]||!e(t.children[r],n.children[r],i))return!1;return!0},subset:Ae},Se={exact:function(e,t){return ye(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return be(e[n],t[n])})},ignored:function(){return!0}};function Oe(e,t,n){return Ee[n.paths](e.root,t.root,n.matrixParams)&&Se[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Ae(e,t,n){return Te(e,t,t.segments,n)}function Te(e,t,n,i){if(e.segments.length>n.length){var r=e.segments.slice(0,n.length);return!(!Me(r,n)||t.hasChildren()||!Pe(r,n,i))}if(e.segments.length===n.length){if(!Me(e.segments,n)||!Pe(e.segments,n,i))return!1;for(var o in t.children)if(!e.children[o]||!Ae(e.children[o],t.children[o],i))return!1;return!0}var a=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!(Me(e.segments,a)&&Pe(e.segments,a,i)&&e.children[de])&&Te(e.children[de],t,s,i)}function Pe(e,t,n){return t.every(function(t,i){return Se[n](e[i].parameters,t.parameters)})}var Ie=function(){function e(t,n,i){_classCallCheck(this,e),this.root=t,this.queryParams=n,this.fragment=i}return _createClass(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ve(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Ne.serialize(this)}}]),e}(),Re=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.segments=t,this.children=n,this.parent=null,we(n,function(e,t){return e.parent=i})}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Be(this)}}]),e}(),De=function(){function e(t,n){_classCallCheck(this,e),this.path=t,this.parameters=n}return _createClass(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=ve(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return ze(this)}}]),e}();function Me(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var Le=function e(){_classCallCheck(this,e)},Fe=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new Qe(e);return new Ie(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t;return"".concat("/".concat(Ue(e.root,!0)),function(e){var t=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(je(t),"=").concat(je(e))}).join("&"):"".concat(je(t),"=").concat(je(n))}).filter(function(e){return!!e});return t.length?"?".concat(t.join("&")):""}(e.queryParams)).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),Ne=new Fe;function Be(e){return e.segments.map(function(e){return ze(e)}).join("/")}function Ue(e,t){if(!e.hasChildren())return Be(e);if(t){var n=e.children[de]?Ue(e.children[de],!1):"",i=[];return we(e.children,function(e,t){t!==de&&i.push("".concat(t,":").concat(Ue(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return we(e.children,function(e,i){i===de&&(n=n.concat(t(e,i)))}),we(e.children,function(e,i){i!==de&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return n===de?[Ue(e.children[de],!1)]:["".concat(n,":").concat(Ue(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[de]?"".concat(Be(e),"/").concat(r[0]):"".concat(Be(e),"/(").concat(r.join("//"),")")}function Ze(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function je(e){return Ze(e).replace(/%3B/gi,";")}function qe(e){return Ze(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ve(e){return decodeURIComponent(e)}function He(e){return Ve(e.replace(/\+/g,"%20"))}function ze(e){return"".concat(qe(e.path)).concat(function(e){return Object.keys(e).map(function(t){return";".concat(qe(t),"=").concat(qe(e[t]))}).join("")}(e.parameters))}var Ye=/^[^\/()?;=#]+/;function Ge(e){var t=e.match(Ye);return t?t[0]:""}var Ke=/^[^=?&#]+/,We=/^[^?&#]+/,Qe=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Re([],{}):new Re([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[de]=new Re(e,t)),n}},{key:"parseSegment",value:function(){var e=Ge(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new De(Ve(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Ge(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Ge(this.remaining);i&&(n=i,this.capture(n))}e[Ve(t)]=Ve(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Ke);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(We);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=He(t),o=He(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Ge(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=de);var o=this.parseChildren();t[r]=1===Object.keys(o).length?o[de]:new Re([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Je=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Xe(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=Xe(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=$e(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return $e(e,this._root).map(function(e){return e.value})}}]),e}();function Xe(e,t){if(e===t.value)return t;var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=Xe(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function $e(e,t){if(e===t.value)return[t];var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=$e(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var et=function(){function e(t,n){_classCallCheck(this,e),this.value=t,this.children=n}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function tt(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var nt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).snapshot=i,ut(_assertThisInitialized(r),e),r}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Je);function it(e,t){var n=function(e,t){var n=new at([],{},{},"",{},de,t,null,e.root,-1,{});return new st("",new et(n,[]))}(e,t),i=new u.X([new De("",{})]),r=new u.X({}),o=new u.X({}),a=new u.X({}),s=new u.X(""),l=new rt(i,r,a,s,o,de,t,n.root);return l.snapshot=n.root,new nt(new et(l,[]),n)}var rt=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return _createClass(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,q.U)(function(e){return ve(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,q.U)(function(e){return ve(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var at=function(){function e(t,n,i,r,o,a,s,u,l,c,h){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return _createClass(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=ve(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ve(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),st=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,i)).url=e,ut(_assertThisInitialized(r),i),r}return _createClass(n,[{key:"toString",value:function(){return lt(this._root)}}]),n}(Je);function ut(e,t){t.value._routerState=e,t.children.forEach(function(t){return ut(e,t)})}function lt(e){var t=e.children.length>0?" { ".concat(e.children.map(lt).join(", ")," } "):"";return"".concat(e.value).concat(t)}function ct(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ye(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ye(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&pt(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(vt);if(r&&r!==Ce(i))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),yt=function e(t,n,i){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function bt(e,t,n){if(e||(e=new Re([],{})),0===e.segments.length&&e.hasChildren())return kt(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=e.segments[r],s=n[i];if(vt(s))break;var u="".concat(s),l=i0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!Et(u,l,a))return o;i+=2}else{if(!Et(u,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},jt):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||ge)(n,e,t);if(!r)return Object.assign({},jt);var o={};we(r.posParams,function(e,t){o[t]=e.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Vt(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Ht(e,t,n)&&Ut(n)!==de})}(e,n,i)){var o=new Re(t,function(e,t,n,i){var r={};r[de]=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,a=_createForOfIteratorHelper(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&Ut(s)!==de){var u=new Re([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,r[Ut(s)]=u}}}catch(l){a.e(l)}finally{a.f()}return r}(e,t,i,new Re(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Ht(e,t,n)})}(e,n,i)){var a=new Re(e.segments,function(e,t,n,i,r,o){var a,s={},u=_createForOfIteratorHelper(i);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(Ht(e,n,l)&&!r[Ut(l)]){var c=new Re([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[Ut(l)]=c}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new Re(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Ht(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function zt(e,t,n,i){return!!(Ut(e)===i||i!==de&&Ht(t,n,e))&&("**"===e.path||qt(t,e,n).matched)}function Yt(e,t,n){return 0===t.length&&!e.children[n]}var Gt=function e(t){_classCallCheck(this,e),this.segmentGroup=t||null},Kt=function e(t){_classCallCheck(this,e),this.urlTree=t};function Wt(e){return new c.y(function(t){return t.error(new Gt(e))})}function Qt(e){return new c.y(function(t){return t.error(new Kt(e))})}function Jt(e){return new c.y(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var Xt=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(r.h0i)}return _createClass(e,[{key:"apply",value:function(){var e=this,t=Vt(this.urlTree.root,[],[],this.config).segmentGroup,n=new Re(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,de).pipe((0,q.U)(function(t){return e.createUrlTree($t(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(k(function(t){if(t instanceof Kt)return e.allowRedirects=!1,e.match(t.urlTree);throw t instanceof Gt?e.noMatchError(t):t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,de).pipe((0,q.U)(function(n){return t.createUrlTree($t(n),e.queryParams,e.fragment)})).pipe(k(function(e){throw e instanceof Gt?t.noMatchError(e):e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new Re([],_defineProperty({},de,e)):e;return new Ie(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe((0,q.U)(function(e){return new Re([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],s=0,u=Object.keys(n.children);s=2;return function(i){return i.pipe(e?(0,x.h)(function(t,n){return e(t,n,i)}):F.y,S(1),n?D(t):T(function(){return new o}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,u){var l=this;return(0,a.D)(n).pipe((0,z.b)(function(o){return l.expandSegmentAgainstRoute(e,t,n,o,i,r,u).pipe(k(function(e){if(e instanceof Gt)return(0,s.of)(null);throw e}))}),B(function(e){return!!e}),k(function(e,n){if(e instanceof o||"EmptyError"===e.name){if(Yt(t,i,r))return(0,s.of)(new Re([],{}));throw new Gt(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return zt(i,t,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):Wt(t):Wt(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Qt(o):this.lineralizeSegments(n,o).pipe((0,Y.zg)(function(n){var o=new Re(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=qt(t,i,r),u=s.matched,l=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!u)return Wt(t);var f=this.applyRedirectCommands(l,i.redirectTo,h);return i.redirectTo.startsWith("/")?Qt(f):this.lineralizeSegments(i,f).pipe((0,Y.zg)(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,s.of)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe((0,q.U)(function(e){return n._loadedConfig=e,new Re(i,{})})):(0,s.of)(new Re(i,{}));var a=qt(t,n,i),u=a.matched,l=a.consumedSegments,c=a.lastChild;if(!u)return Wt(t);var h=i.slice(c);return this.getChildConfig(e,n,i).pipe((0,Y.zg)(function(e){var i=e.module,a=e.routes,u=Vt(t,l,h,a),c=u.segmentGroup,f=u.slicedSegments,d=new Re(c.segments,c.children);if(0===f.length&&d.hasChildren())return o.expandChildren(i,a,d).pipe((0,q.U)(function(e){return new Re(l,e)}));if(0===a.length&&0===f.length)return(0,s.of)(new Re(l,{}));var p=Ut(n)===r;return o.expandSegment(i,d,a,f,p?de:r,!0).pipe((0,q.U)(function(e){return new Re(l.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?(0,s.of)(new At(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?(0,s.of)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe((0,Y.zg)(function(n){return n?i.configLoader.load(e.injector,t).pipe((0,q.U)(function(e){return t._loadedConfig=e,e})):(r=t,new c.y(function(e){return e.error(me("Cannot load children because the guard of the route \"path: '".concat(r.path,"'\" returned false")))}));var r})):(0,s.of)(new At([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;if(!r||0===r.length)return(0,s.of)(!0);var o=r.map(function(i){var r,o,a=e.get(i);if((o=a)&&Tt(o.canLoad))r=a.canLoad(t,n);else{if(!Tt(a))throw new Error("Invalid CanLoad guard");r=a(t,n)}return xe(r)});return(0,s.of)(o).pipe(Rt(),(0,G.b)(function(e){if(Pt(e)){var t=me('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),(0,q.U)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,s.of)(n);if(i.numberOfChildren>1||!i.children[de])return Jt(e.redirectTo);i=i.children[de]}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new Ie(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return we(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return we(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new Re(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return e}}]),e}();function $t(e){for(var t={},n=0,i=Object.keys(e.children);n0||o.hasChildren())&&(t[r]=o)}return function(e){if(1===e.numberOfChildren&&e.children[de]){var t=e.children[de];return new Re(e.segments.concat(t.segments),t.children)}return e}(new Re(e.segments,t))}var en=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},tn=function e(t,n){_classCallCheck(this,e),this.component=t,this.route=n};function nn(e,t,n){var i=e._root;return on(i,t?t._root:null,n,[i.value])}function rn(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function on(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=tt(t);return e.children.forEach(function(e){(function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Me(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Me(e.url,t.url)||!ye(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ht(e,t)||!ye(e.queryParams,t.queryParams);case"paramsChange":default:return!ht(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new en(i)):(o.data=a.data,o._resolvedData=a._resolvedData),on(e,t,o.component?s?s.children:null:n,i,r),u&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new tn(s.outlet.component,a))}else a&&an(t,s,r),r.canActivateChecks.push(new en(i)),on(e,null,o.component?s?s.children:null:n,i,r)})(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),we(o,function(e,t){return an(e,n.getContext(t),r)}),r}function an(e,t,n){var i=tt(e),r=e.value;we(i,function(e,i){an(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new tn(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var sn=function e(){_classCallCheck(this,e)};function un(e){return new c.y(function(t){return t.error(e)})}var ln=function(){function e(t,n,i,r,o,a){_classCallCheck(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return _createClass(e,[{key:"recognize",value:function(){var e=Vt(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,de);if(null===t)return null;var n=new at([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},de,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new et(n,t),r=new st(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=ot(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i0?Ce(n).parameters:{};r=new at(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dn(e),Ut(e),e.component,e,hn(t),fn(t)+n.length,pn(e))}else{var u=qt(t,e,n);if(!u.matched)return null;o=u.consumedSegments,a=n.slice(u.lastChild),r=new at(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dn(e),Ut(e),e.component,e,hn(t),fn(t)+o.length,pn(e))}var l,c=(l=e).children?l.children:l.loadChildren?l._loadedConfig.routes:[],h=Vt(t,o,a,c.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),f=h.segmentGroup,d=h.slicedSegments;if(0===d.length&&f.hasChildren()){var p=this.processChildren(c,f);return null===p?null:[new et(r,p)]}if(0===c.length&&0===d.length)return[new et(r,[])];var v=Ut(e)===i,_=this.processSegment(c,f,d,v?de:i);return null===_?null:[new et(r,_)]}}]),e}();function cn(e){var t,n=[],i=new Set,r=_createForOfIteratorHelper(e);try{var o=function(){var e,r=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(r))return n.push(r),"continue";var o=n.find(function(e){return r.value.routeConfig===e.value.routeConfig});void 0!==o?((e=o.children).push.apply(e,_toConsumableArray(r.children)),i.add(o)):n.push(r)};for(r.s();!(t=r.n()).done;)o()}catch(c){r.e(c)}finally{r.f()}var a,s=_createForOfIteratorHelper(i);try{for(s.s();!(a=s.n()).done;){var u=a.value,l=cn(u.children);n.push(new et(u.value,l))}}catch(c){s.e(c)}finally{s.f()}return n.filter(function(e){return!i.has(e)})}function hn(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function fn(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function dn(e){return e.data||{}}function pn(e){return e.resolve||{}}function vn(e){return(0,V.w)(function(t){var n=e(t);return n?(0,a.D)(n).pipe((0,q.U)(function(){return t})):(0,s.of)(t)})}var _n=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),mn=new r.OlP("ROUTES"),gn=function(){function e(t,n,i,r){_classCallCheck(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return _createClass(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe((0,q.U)(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var o=i.create(e);return new At(ke(o.injector.get(mn,void 0,r.XFs.Self|r.XFs.Optional)).map(Bt),o)}),k(function(e){throw t._loader$=void 0,e}));return t._loader$=new p.c(i,function(){return new v.xQ}).pipe((0,K.x)()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?(0,a.D)(this.loader.load(e)):xe(e()).pipe((0,Y.zg)(function(e){return e instanceof r.YKP?(0,s.of)(e):(0,a.D)(t.compiler.compileModuleAsync(e))}))}}]),e}(),yn=function e(){_classCallCheck(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new bn,this.attachRef=null},bn=function(){function e(){_classCallCheck(this,e),this.contexts=new Map}return _createClass(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new yn,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),kn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Cn(e){throw e}function wn(e,t,n){return t.parse("/")}function xn(e,t){return(0,s.of)(null)}var En={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Sn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},On=function(){var e=function(){function e(t,n,i,o,a,s,l,c){var h=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=o,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new v.xQ,this.errorHandler=Cn,this.malformedUriErrorHandler=wn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:xn,afterPreactivation:xn},this.urlHandlingStrategy=new kn,this.routeReuseStrategy=new _n,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=a.get(r.h0i),this.console=a.get(r.c2e);var f=a.get(r.R0b);this.isNgZoneEnabled=f instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Ie(new Re([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new gn(s,l,function(e){return h.triggerEvent(new ae(e))},function(e){return h.triggerEvent(new se(e))}),this.routerState=it(this.currentUrlTree,this.rootComponentType),this.transitions=new u.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(e,[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe((0,x.h)(function(e){return 0!==e.id}),(0,q.U)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),(0,V.w)(function(e){var i=!1,r=!1;return(0,s.of)(e).pipe((0,G.b)(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,V.w)(function(e){var i=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString(),o=("reload"===t.onSameUrlNavigation||i)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl);if(An(e.source)&&(t.browserUrlTree=e.rawUrl),o)return(0,s.of)(e).pipe((0,V.w)(function(e){var i=t.transitions.getValue();return n.next(new J(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?d.E:Promise.resolve(e)}),function(e,t,n,i){return(0,V.w)(function(r){return function(e,t,n,i,r){return new Xt(e,t,n,i,r).apply()}(e,t,n,r.extractedUrl,i).pipe((0,q.U)(function(e){return Object.assign(Object.assign({},r),{urlAfterRedirects:e})}))})}(t.ngModule.injector,t.configLoader,t.urlSerializer,t.config),(0,G.b)(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,o,a){return(0,Y.zg)(function(i){return function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var u=new ln(e,t,n,i,o,a).recognize();return null===u?un(new sn):(0,s.of)(u)}catch(r){return un(r)}}(e,n,i.urlAfterRedirects,(u=i.urlAfterRedirects,t.serializeUrl(u)),o,a).pipe((0,q.U)(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var u})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),(0,G.b)(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,e),t.browserUrlTree=e.urlAfterRedirects);var i=new te(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(i&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var a=e.id,u=e.extractedUrl,l=e.source,c=e.restoredState,h=e.extras,f=new J(a,t.serializeUrl(u),l,c);n.next(f);var p=it(u,t.rootComponentType).snapshot;return(0,s.of)(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:u,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),d.E}),vn(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),(0,G.b)(function(e){var n=new ne(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,q.U)(function(e){return Object.assign(Object.assign({},e),{guards:nn(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return(0,Y.zg)(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,u=o.canActivateChecks,l=o.canDeactivateChecks;return 0===l.length&&0===u.length?(0,s.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return(0,a.D)(e).pipe((0,Y.zg)(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,s.of)(!0);var a=o.map(function(o){var a,s=rn(o,t,r);if(function(e){return e&&Tt(e.canDeactivate)}(s))a=xe(s.canDeactivate(e,t,n,i));else{if(!Tt(s))throw new Error("Invalid CanDeactivate guard");a=xe(s(e,t,n,i))}return a.pipe(B())});return(0,s.of)(a).pipe(Rt())}(e.component,e.route,n,t,i)}),B(function(e){return!0!==e},!0))}(l,i,r,e).pipe((0,Y.zg)(function(n){return n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,i){return(0,a.D)(t).pipe((0,z.b)(function(t){return(0,h.z)(function(e,t){return null!==e&&t&&t(new ue(e)),(0,s.of)(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new ce(e)),(0,s.of)(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return(0,f.P)(function(){var r=t.guards.map(function(r){var o,a=rn(r,t.node,n);if(function(e){return e&&Tt(e.canActivateChild)}(a))o=xe(a.canActivateChild(i,e));else{if(!Tt(a))throw new Error("Invalid CanActivateChild guard");o=xe(a(i,e))}return o.pipe(B())});return(0,s.of)(r).pipe(Rt())})});return(0,s.of)(r).pipe(Rt())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return(0,s.of)(!0);var r=i.map(function(i){return(0,f.P)(function(){var r,o=rn(i,t,n);if(function(e){return e&&Tt(e.canActivate)}(o))r=xe(o.canActivate(t,e));else{if(!Tt(o))throw new Error("Invalid CanActivate guard");r=xe(o(t,e))}return r.pipe(B())})});return(0,s.of)(r).pipe(Rt())}(e,t.route,n))}),B(function(e){return!0!==e},!0))}(i,u,e,t):(0,s.of)(n)}),(0,q.U)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),(0,G.b)(function(e){if(Pt(e.guardsResult)){var n=me('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new ie(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),(0,x.h)(function(e){return!!e.guardsResult||(t.restoreHistory(e),t.cancelNavigationTransition(e,""),!1)}),vn(function(e){if(e.guards.canActivateChecks.length)return(0,s.of)(e).pipe((0,G.b)(function(e){var n=new re(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,V.w)(function(e){var n=!1;return(0,s.of)(e).pipe(function(e,t){return(0,Y.zg)(function(n){var i=n.targetSnapshot,r=n.guards.canActivateChecks;if(!r.length)return(0,s.of)(n);var o=0;return(0,a.D)(r).pipe((0,z.b)(function(n){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return(0,s.of)({});var o={};return(0,a.D)(r).pipe((0,Y.zg)(function(r){return function(e,t,n,i){var r=rn(e,t,i);return xe(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe((0,G.b)(function(e){o[r]=e}))}),S(1),(0,Y.zg)(function(){return Object.keys(o).length===r.length?(0,s.of)(o):d.E}))}(e._resolve,e,t,i).pipe((0,q.U)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),ot(e,n).resolve),null}))}(n.route,i,e,t)}),(0,G.b)(function(){return o++}),S(1),(0,Y.zg)(function(e){return o===r.length?(0,s.of)(n):d.E}))})}(t.paramsInheritanceStrategy,t.ngModule.injector),(0,G.b)({next:function(){return n=!0},complete:function(){n||(t.restoreHistory(e),t.cancelNavigationTransition(e,"At least one route resolver didn't emit any value."))}}))}),(0,G.b)(function(e){var n=new oe(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),vn(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),(0,q.U)(function(e){var n=function(e,t,n){var i=ft(e,t._root,n?n._root:void 0);return new nt(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),(0,G.b)(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,e),t.browserUrlTree=e.urlAfterRedirects)}),function(e,t,n){return(0,q.U)(function(i){return new St(t,i.targetRouterState,i.currentRouterState,n).activate(e),i})}(t.rootContexts,t.routeReuseStrategy,function(e){return t.triggerEvent(e)}),(0,G.b)({next:function(){i=!0},complete:function(){i=!0}}),function(e){return function(t){return t.lift(new Z(e))}}(function(){if(!i&&!r){var n="Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId);"replace"===t.canceledNavigationResolution?(t.restoreHistory(e),t.cancelNavigationTransition(e,n)):t.cancelNavigationTransition(e,n)}t.currentNavigation=null}),k(function(i){if(r=!0,function(e){return e&&e[_e]}(i)){var o=Pt(i.url);o||(t.navigated=!0,t.restoreHistory(e,!0));var a=new $(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(a),o?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree),r={skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||An(e.source)};t.scheduleNavigation(n,"imperative",null,r,{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.restoreHistory(e,!0);var s=new ee(e.id,t.serializeUrl(e.extractedUrl),i);n.next(s);try{e.resolve(t.errorHandler(i))}catch(a){e.reject(a)}}return d.E}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return t.transitionId!==e.transitionId||!n||!("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source)}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){Lt(e),this.config=e.map(Bt),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,s=n||this.routerState.root,u=a?this.currentUrlTree.fragment:r,l=null;switch(o){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(e,t,n,i,r){if(0===n.length)return _t(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new gt(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return we(i.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(_toConsumableArray(e),[{outlets:o}])}if(i.segmentPath)return[].concat(_toConsumableArray(e),[i.segmentPath])}return"string"!=typeof i?[].concat(_toConsumableArray(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(_toConsumableArray(e),[i])},[]);return new gt(n,t,i)}(n);if(o.toRoot())return _t(t.root,new Re([],{}),t,i,r);var a=function(e,t,n){if(e.isAbsolute)return new yt(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new yt(i,i===t.root,0)}var r=pt(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new yt(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?kt(a.segmentGroup,a.index,o.commands):bt(a.segmentGroup,a.index,o.commands);return _t(a.segmentGroup,s,t,i,r)}(s,this.currentUrlTree,e,l,null!=u?u:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Pt(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(t=this.currentNavigation)||void 0===t?void 0:t.finalUrl)||0===r?this.currentUrlTree===(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,t){var n=new $(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(n),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":t}:{navigationId:e}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.DyG),r.LFG(Le),r.LFG(bn),r.LFG(i.Ye),r.LFG(r.zs3),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(void 0))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}();function An(e){return"imperative"!==e}var Tn=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new v.xQ,null==i&&r.setAttribute(o.nativeElement,"tabindex","0")}return _createClass(e,[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(On),r.Y36(rt),r.$8M("tabindex"),r.Y36(r.Qsj),r.Y36(r.SBq))},e.\u0275dir=r.lG2({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&r.NdJ("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),e}(),Pn=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.onChanges=new v.xQ,this.subscription=t.events.subscribe(function(e){e instanceof X&&r.updateTargetUrlAndHref()})}return _createClass(e,[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,i,r){if(0!==e||t||n||i||r||"string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(On),r.Y36(rt),r.Y36(i.S$))},e.\u0275dir=r.lG2({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&r.NdJ("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(r.Ikx("href",t.href,r.LSH),r.uIk("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),e}();function In(e){return""===e||!!e}var Rn=function(){var e=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.name=o||de,t.onChildOutletCreated(this.name,this)}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new Dn(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(bn),r.Y36(r.s_b),r.Y36(r._Vd),r.$8M("name"),r.Y36(r.sBO))},e.\u0275dir=r.lG2({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),Dn=function(){function e(t,n,i){_classCallCheck(this,e),this.route=t,this.childContexts=n,this.parent=i}return _createClass(e,[{key:"get",value:function(e,t){return e===rt?this.route:e===bn?this.childContexts:this.parent.get(e,t)}}]),e}(),Mn=function e(){_classCallCheck(this,e)},Ln=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return(0,s.of)(null)}}]),e}(),Fn=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new gn(n,i,function(e){return t.triggerEvent(new ae(e))},function(e){return t.triggerEvent(new se(e))})}return _createClass(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe((0,x.h)(function(e){return e instanceof X}),(0,z.b)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(r.h0i);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var s=o._loadedConfig;i.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(e,o)):o.children&&i.push(this.processRoutes(e,o.children))}}catch(u){r.e(u)}finally{r.f()}return(0,a.D)(i).pipe((0,W.J)(),(0,q.U)(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?(0,s.of)(t._loadedConfig):n.loader.load(e.injector,t)).pipe((0,Y.zg)(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(On),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(Mn))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Nn=function(){var e=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof J?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof X&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof fe&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new fe(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(On),r.LFG(i.EM),r.LFG(void 0))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Bn=new r.OlP("ROUTER_CONFIGURATION"),Un=new r.OlP("ROUTER_FORROOT_GUARD"),Zn=[i.Ye,{provide:Le,useClass:Fe},{provide:On,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new On(null,e,t,n,i,r,o,ke(a));return u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,c),s.enableTracing&&c.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),c},deps:[Le,bn,i.Ye,r.zs3,r.v3s,r.Sil,mn,Bn,[function(){return function e(){_classCallCheck(this,e)}}(),new r.FiY],[function(){return function e(){_classCallCheck(this,e)}}(),new r.FiY]]},bn,{provide:rt,useFactory:function(e){return e.routerState.root},deps:[On]},{provide:r.v3s,useClass:r.EAV},Fn,Ln,function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return t().pipe(k(function(){return(0,s.of)(null)}))}}]),e}(),{provide:Bn,useValue:{enableTracing:!1}}];function jn(){return new r.PXZ("Router",On)}var qn=function(){var e=function(){function e(t,n){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Zn,Yn(t),{provide:Un,useFactory:zn,deps:[[On,new r.FiY,new r.tp0]]},{provide:Bn,useValue:n||{}},{provide:i.S$,useFactory:Hn,deps:[i.lw,[new r.tBr(i.mr),new r.FiY],Bn]},{provide:Nn,useFactory:Vn,deps:[On,i.EM,Bn]},{provide:Mn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ln},{provide:r.PXZ,multi:!0,useFactory:jn},[Gn,{provide:r.ip1,multi:!0,useFactory:Kn,deps:[Gn]},{provide:Qn,useFactory:Wn,deps:[Gn]},{provide:r.tb,multi:!0,useExisting:Qn}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Yn(t)]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(Un,8),r.LFG(On,8))},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}();function Vn(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Nn(e,t,n)}function Hn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new i.Do(e,t):new i.b0(e,t)}function zn(e){return"guarded"}function Yn(e){return[{provide:r.deG,multi:!0,useValue:e},{provide:mn,multi:!0,useValue:e}]}var Gn=function(){var e=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new v.xQ}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(i.V_,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(On),r=e.injector.get(Bn);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?(0,s.of)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Bn),n=this.injector.get(Fn),i=this.injector.get(Nn),o=this.injector.get(On),a=this.injector.get(r.z2F);e===a.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&o.initialNavigation(),n.setUpPreloading(),i.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.zs3))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}();function Kn(e){return e.appInitializer.bind(e)}function Wn(e){return e.bootstrapListener.bind(e)}var Qn=new r.OlP("Router Initializer")},6215:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var i=n(9765),r=n(7971),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._value=e,i}return _createClass(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=_get(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.N;return this._value}},{key:"next",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=e)}}]),n}(i.xQ)},1593:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var i=n(9193),r=n(5917),o=n(7574),a=function(){function e(t,n,i){_classCallCheck(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,r.of)(this.value);case"E":return e=this.error,new o.y(function(t){return t.error(e)});case"C":return(0,i.c)()}var e;throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();a.completeNotification=new a("C"),a.undefinedValueNotification=new a("N",void 0)},7574:function(e,t,n){"use strict";n.d(t,{y:function(){return c}});var i,r=n(7393),o=n(9181),a=n(6490),s=n(6554),u=n(4487),l=n(2494),c=((i=function(e){function t(e){_classCallCheck(this,t),this._isScalar=!1,e&&(this._subscribe=e)}return _createClass(t,[{key:"lift",value:function(e){var n=new t;return n.source=this,n.operator=e,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,s=function(e,t,n){if(e){if(e instanceof r.L)return e;if(e[o.b])return e[o.b]()}return e||t||n?new r.L(e,t,n):new r.L(a.c)}(e,t,n);if(s.add(i?i.call(s,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),l.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){l.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,i=t.destination,o=t.isStopped;if(n||o)return!1;e=i&&i instanceof r.L?i:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=h(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:e,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n4&&void 0!==arguments[4]?arguments[4]:new s(e,n,i);if(!r.closed)return t instanceof l.y?t.subscribe(r):(0,u.s)(t)(r)}var h=n(6693),f={};function d(){for(var e=arguments.length,t=new Array(e),n=0;n1?Array.prototype.slice.call(arguments):e)},i,n)})}function u(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(t,n),o=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,h=e.length;c1&&"number"==typeof t[t.length-1]&&(s=t.pop())):"number"==typeof l&&(s=t.pop()),null===u&&1===t.length&&t[0]instanceof i.y?t[0]:(0,o.J)(s)((0,a.n)(t,u))}},5917:function(e,t,n){"use strict";n.d(t,{of:function(){return a}});var i=n(4869),r=n(6693),o=n(4087);function a(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:i.P;return function(e){return function(t){return t.lift(new o(e))}}(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=-1;return(0,u.k)(t)?r=Number(t)<1?1:Number(t):(0,l.K)(t)&&(n=t),(0,l.K)(n)||(n=i.P),new s.y(function(t){var i=(0,u.k)(e)?e:+e-n.now();return n.schedule(c,i,{index:0,period:r,subscriber:t})})}(e,t)})}},4612:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var i=n(9773);function r(e,t){return(0,i.zg)(e,t,1)}},4395:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var i=n(7393),r=n(3637);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P;return function(n){return n.lift(new a(e,t))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.dueTime=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return _createClass(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(u,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(i.L);function u(e){e.debouncedNext()}},7519:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var i=n(7393);function r(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.compare=t,this.keySelector=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.compare,this.keySelector))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return _createClass(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(n){return this.destination.error(n)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(i.L)},5435:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var i=n(7393);function r(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).predicate=i,o.thisArg=r,o.count=0,o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(i.L)},8002:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});var i=n(7393);function r(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||_assertThisInitialized(o),o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(i.L)},3282:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var i=n(9773),r=n(4487);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,i.zg)(r.y,e)}},9773:function(e,t,n){"use strict";n.d(t,{zg:function(){return a}});var i=n(8002),r=n(4402),o=n(5345);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(o){return o.pipe(a(function(n,o){return(0,r.D)(e(n,o)).pipe((0,i.U)(function(e,i){return t(n,e,o,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new s(e,n))})}var s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.project,this.concurrent))}}]),e}(),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(o.Ds)},1307:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var i=n(7393);function r(){return function(e){return e.lift(new o(e))}}var o=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new a(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).connectable=i,r}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}else this.connection=null}}]),n}(i.L)},3653:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var i=n(7393);function r(e){return function(t){return t.lift(new o(e))}}var o=function(){function e(t){_classCallCheck(this,e),this.total=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.total))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(i.L)},9761:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var i=n(8071),r=n(4869);function o(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"schedule",value:function(e){return this}}]),n}(n(5319).w))},6102:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var i,r=((i=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}()).now=function(){return Date.now()},i),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.now;return _classCallCheck(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==_assertThisInitialized(i)?n.delegate.now():o()})).actions=[],i.active=!1,i.scheduled=void 0,i}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(r)},4581:function(e,t,n){"use strict";n.d(t,{E:function(){return c}});var i=1,r=Promise.resolve(),o={};function a(e){return e in o&&(delete o[e],!0)}var s=function(e){var t=i++;return o[t]=!0,r.then(function(){return a(t)&&e()}),t},u=function(e){a(e)},l=n(6465),c=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=s(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(u(t),e.scheduled=void 0)}}]),n}(l.o))},3637:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var i=n(6465),r=new(n(6102).v)(i.o)},377:function(e,t,n){"use strict";n.d(t,{hZ:function(){return i}});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},7971:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},4449:function(e,t,n){"use strict";function i(e){setTimeout(function(){throw e},0)}n.d(t,{z:function(){return i}})},4487:function(e,t,n){"use strict";function i(e){return e}n.d(t,{y:function(){return i}})},9796:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var i=Array.isArray||function(e){return e&&"number"==typeof e.length}},9489:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},9105:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,{m:function(){return i}})},6561:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var i=n(9796);function r(e){return!(0,i.k)(e)&&e-parseFloat(e)+1>=0}},1555:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,{K:function(){return i}})},5639:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var i=n(7574);function r(e){return!!e&&(e instanceof i.y||"function"==typeof e.lift&&"function"==typeof e.subscribe)}},4072:function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,{t:function(){return i}})},4869:function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,{K:function(){return i}})},7444:function(e,t,n){"use strict";n.d(t,{s:function(){return c}});var i=n(5015),r=n(4449),o=n(377),a=n(6554),s=n(9489),u=n(4072),l=n(1555),c=function(e){if(e&&"function"==typeof e[a.L])return function(e){return function(t){var n=e[a.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}}(e);if((0,s.z)(e))return(0,i.V)(e);if((0,u.t)(e))return function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,r.z),t}}(e);if(e&&"function"==typeof e[o.hZ])return function(e){return function(t){for(var n=e[o.hZ]();;){var i=void 0;try{i=n.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}}(e);var t="You provided ".concat((0,l.K)(e)?"an invalid object":"'".concat(e,"'")," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.");throw new TypeError(t)}},5015:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var i=function(e){return function(t){for(var n=0,i=e.length;n0?(this.dialogRef.afterClosed().subscribe(function(t){e.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.P;return(!(0,a.k)(e)||e<0)&&(e=0),(!t||"function"!=typeof t.schedule)&&(t=o.P),new r.y(function(n){return n.add(t.schedule(s,e,{subscriber:n,counter:0,period:e})),n})}(1e3).subscribe(function(t){var n=e.data.autoclose-1e3*(t+1);e.setExtra(n),n<=0&&e.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(function(t){e.closed()}),this.subscription=this.data.checkClose.subscribe(function(t){window.setTimeout(function(){e.doClose()})}))}},{key:"initYesNo",value:function(){}},{key:"ngOnInit",value:function(){this.data.type===m.yesno?this.initYesNo():this.initAlert()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.Y36(i.so),u.Y36(i.WI))},e.\u0275cmp=u.Xpm({type:e,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"]],template:function(e,t){1&e&&(u._UZ(0,"h4",0),u.ALo(1,"safeHtml"),u._UZ(2,"mat-dialog-content",1),u.ALo(3,"safeHtml"),u.TgZ(4,"mat-dialog-actions"),u.YNc(5,d,4,1,"button",2),u.YNc(6,p,3,0,"button",2),u.YNc(7,v,3,0,"button",2),u.qZA()),2&e&&(u.Q6J("innerHtml",u.lcZ(1,5,t.data.title),u.oJD),u.xp6(2),u.Q6J("innerHTML",u.lcZ(3,7,t.data.body),u.oJD),u.xp6(3),u.Q6J("ngIf",0===t.data.type),u.xp6(1),u.Q6J("ngIf",1===t.data.type),u.xp6(1),u.Q6J("ngIf",1===t.data.type))},directives:[i.uh,i.xY,i.H8,l.O5,c.lW,i.ZT,h.P],pipes:[f.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}(),y=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialog=t}return _createClass(e,[{key:"alert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=window.innerWidth<800?"80%":"40%";return this.dialog.open(g,{width:r,data:{title:e,body:t,autoclose:n,checkClose:i,type:m.alert},disableClose:!0})}},{key:"yesno",value:function(e,t){var n=window.innerWidth<800?"80%":"40%";return this.dialog.open(g,{width:n,data:{title:e,body:t,type:m.yesno},disableClose:!0}).componentInstance.yesno}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.LFG(i.uw))},e.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac}),e}()},2870:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var i,r=n(7574),o=((i=function(){function e(t){_classCallCheck(this,e),this.api=t,this.delay=t.config.launcher_wait_time}return _createClass(e,[{key:"launchURL",value:function(t){var n=this,i="init",o=function(e){var t=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof e?t=e:403===e.status&&(t=django.gettext("Your session has expired. Please, login again")),window.setTimeout(function(){n.showAlert(django.gettext("Error"),t,5e3),403===e.status&&window.setTimeout(function(){n.api.logout()},5e3)})};if("udsa://"===t.substring(0,7)){var a=t.split("//")[1].split("/"),s=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new r.y(function(e){var t=0,r=function i(){s.componentInstance&&n.api.status(a[0],a[1]).subscribe(function(r){"ready"===r.status?(t?Date.now()-t>5*n.delay&&(s.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),s.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(t=Date.now(),s.componentInstance.data.title=django.gettext("Service ready"),s.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(i,n.delay)):"accessed"===r.status?(s.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),e.next(!0),e.complete()):"running"===r.status?window.setTimeout(i,n.delay):(e.next(!0),e.complete(),o())},function(t){e.next(!0),e.complete(),o(t)})};window.setTimeout(function e(){if("init"===i)window.setTimeout(e,n.delay);else{if("error"===i||"stop"===i)return;window.setTimeout(r)}})}));this.api.enabler(a[0],a[1]).subscribe(function(e){if(e.error)i="error",n.api.gui.alert(django.gettext("Error launching service"),e.error);else{if(e.url.startsWith("/"))return s.componentInstance&&s.componentInstance.close(),i="stop",void n.launchURL(e.url);"https:"===window.location.protocol&&(e.url=e.url.replace("uds://","udss://")),i="enabled",n.doLaunch(e.url)}},function(e){n.api.logout()})}else var u=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new r.y(function(i){window.setTimeout(function r(){u.componentInstance&&n.api.transportUrl(t).subscribe(function(t){if(t.url)if(i.next(!0),i.complete(),-1!==t.url.indexOf("o_s_w=")){var a=/(.*)&o_s_w=.*/.exec(t.url);window.location.href=a[1]}else{var s="global";if(-1!==t.url.indexOf("o_n_w=")){var u=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(t.url);u&&(s=u[2],t.url=u[1])}e.transportsWindow[s]&&e.transportsWindow[s].close(),e.transportsWindow[s]=window.open(t.url,"uds_trans_"+s)}else t.running?window.setTimeout(r,n.delay):(i.next(!0),i.complete(),o(t.error))},function(e){i.next(!0),i.complete(),o(e)})})}))}},{key:"showAlert",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return this.api.gui.alert(django.gettext("Launching service"),'

'+e+'

'+t+"

",n,i)}},{key:"doLaunch",value:function(e){var t=document.getElementById("hiddenUdsLauncherIFrame");if(null===t){var n=document.createElement("div");n.id="testID",n.innerHTML='',document.body.appendChild(n),t=document.getElementById("hiddenUdsLauncherIFrame")}t.contentWindow.location.href=e}}]),e}()).transportsWindow={},i)},4902:function _(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G:function(){return LoginComponent}});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3018),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(665),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8295),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9983),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8583),_angular_material_button__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1095),_angular_material_select__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7441),_angular_material_core__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2458),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template(e,t){if(1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&e){var n=t.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",n.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",n.name," ")}}function LoginComponent_div_22_Template(e,t){if(1&e){var n=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(1,"mat-form-field",17),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(2,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(e){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(n),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(e.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()}if(2&e){var i=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",i.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",i.auths)}}var LoginComponent=function(){var LoginComponent=function(){function LoginComponent(e){_classCallCheck(this,LoginComponent),this.api=e,this.title="UDS Enterprise",this.title=e.config.site_name,this.auths=e.config.authenticators.slice(0),this.auths.sort(function(e,t){return e.priority-t.priority})}return _createClass(LoginComponent,[{key:"ngOnInit",value:function(){document.getElementById("loginform").action=this.api.config.urls.login;var e=document.getElementById("token");e.name=this.api.csrfField,e.value=this.api.csrfToken,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}},{key:"changeAuth",value:function changeAuth(auth){this.auth.value=auth;var doCustomAuth=function doCustomAuth(data){eval(data)},_iterator22=_createForOfIteratorHelper(this.auths),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var Ke=_step22.value;Ke.id===auth&&Ke.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml(Ke.id).subscribe(function(e){return doCustomAuth(e)}))}}catch(err){_iterator22.e(err)}finally{_iterator22.f()}}},{key:"launch",value:function(){return document.getElementById("loginform").submit(),!0}}]),LoginComponent}();return LoginComponent.\u0275fac=function(e){return new(e||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return t.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(2,"input",2),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(10,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(11,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(12,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(17,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(18,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(24,"button",15),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",t.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",t.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",t.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,t.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_button__WEBPACK_IMPORTED_MODULE_7__.lW,_angular_material_select__WEBPACK_IMPORTED_MODULE_8__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_9__.ey],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent}()},7918:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var i,r=n(3018),o=((i=function(){function e(t){_classCallCheck(this,e),this.el=t}return _createClass(e,[{key:"ngOnInit",value:function(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}]),e}()).\u0275fac=function(e){return new(e||i)(r.Y36(r.SBq))},i.\u0275dir=r.lG2({type:i,selectors:[["uds-translate"]]}),i)},3513:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var i=function(){function e(t){_classCallCheck(this,e),this.user=t.user,this.role=t.role,this.admin=t.admin}return _createClass(e,[{key:"isStaff",get:function(){return"staff"===this.role||"admin"===this.role}},{key:"isAdmin",get:function(){return"admin"===this.role}},{key:"isLogged",get:function(){return null!=this.user}},{key:"isRestricted",get:function(){return"restricted"===this.role}}]),e}()},7540:function _(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return UDSApiService}});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3018),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1841),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3183),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8741),UDSApiService=function(){var UDSApiService=function(){function UDSApiService(e,t,n){_classCallCheck(this,UDSApiService),this.http=e,this.gui=t,this.router=n,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}return _createClass(UDSApiService,[{key:"config",get:function(){return udsData.config}},{key:"csrfField",get:function(){return csrf.csrfField}},{key:"csrfToken",get:function(){return csrf.csrfToken}},{key:"staffInfo",get:function(){return udsData.info}},{key:"plugins",get:function(){return udsData.plugins}},{key:"actors",get:function(){return udsData.actors}},{key:"errors",get:function(){return udsData.errors}},{key:"enabler",value:function(e,t){var n=this.config.urls.enabler.replace("param1",e).replace("param2",t);return this.http.get(n)}},{key:"status",value:function(e,t){var n=this.config.urls.status.replace("param1",e).replace("param2",t);return this.http.get(n)}},{key:"action",value:function(e,t){var n=this.config.urls.action.replace("param1",t).replace("param2",e);return this.http.get(n)}},{key:"transportUrl",value:function(e){return this.http.get(e)}},{key:"galleryImageURL",value:function(e){return this.config.urls.galleryImage.replace("param1",e)}},{key:"transportIconURL",value:function(e){return this.config.urls.transportIcon.replace("param1",e)}},{key:"staticURL",value:function(e){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+e:"/static/"+e}},{key:"getServicesInformation",value:function(){return this.http.get(this.config.urls.services)}},{key:"getErrorInformation",value:function(e){return this.http.get(this.config.urls.error.replace("9999",e))}},{key:"executeCustomJSForServiceLaunch",value:function executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}},{key:"gotoAdmin",value:function(){window.location.href=this.config.urls.admin}},{key:"logout",value:function(){window.location.href=this.config.urls.logout}},{key:"launchURL",value:function(e){this.plugin.launchURL(e)}},{key:"getAuthCustomHtml",value:function(e){return this.http.get(this.config.urls.customAuth+e,{responseType:"text"})}}]),UDSApiService}();return UDSApiService.\u0275fac=function(e){return new(e||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService}()},2340:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i={production:!0}},6445:function(e,t,n){"use strict";var i,r,o=n(9075),a=n(3018),s=n(9490),u=n(9765),l=n(739),c=n(8071),h=n(7574),f=n(5257),d=n(3653),p=n(4395),v=n(8002),_=n(9761),m=n(6782),g=n(521),y=((i=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||i)},i.\u0275mod=a.oAB({type:i}),i.\u0275inj=a.cJS({}),i),b=new Set,k=function(){var e=function(){function e(t){_classCallCheck(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):C}return _createClass(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!b.has(e))try{r||((r=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(r)),r.sheet&&(r.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),b.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(g.t4))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(g.t4))},token:e,providedIn:"root"}),e}();function C(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var w=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new u.xQ}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return x((0,s.Eq)(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=x((0,s.Eq)(e)).map(function(e){return t._registerQuery(e).observable}),i=(0,l.aj)(n);return(i=(0,c.z)(i.pipe((0,f.q)(1)),i.pipe((0,d.T)(1),(0,p.b)(0)))).pipe((0,v.U)(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new h.y(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe((0,_.O)(n),(0,v.U)(function(t){var n=t.matches;return{query:e,matches:n}}),(0,m.R)(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(k),a.LFG(a.R0b))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(k),a.LFG(a.R0b))},token:e,providedIn:"root"}),e}();function x(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var E=n(1841),S=n(8741),O=n(7540),A=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"canActivate",value:function(e,t){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(O.n))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),T=n(4902),P=n(7918),I=n(8583);function R(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw().download(e.url)}),a.TgZ(1,"div",7),a._UZ(2,"img",8),a.qZA(),a.TgZ(3,"div",9),a._uU(4),a.qZA(),a.TgZ(5,"div",10),a._uU(6),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.Tol(r.css(i)),a.xp6(2),a.Q6J("src",r.img(i.name),a.LSH),a.xp6(2),a.lnq(" ",r.legacy(i)," ",i.name," (",i.url.split(".").pop(),") "),a.xp6(2),a.hij(" ",i.description," ")}}var D=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"download",value:function(e){window.location.href=e}},{key:"img",value:function(e){return this.api.staticURL("modern/img/"+e+".png")}},{key:"css",value:function(e){var t=["plugin"];return e.legacy&&t.push("legacy"),t}},{key:"legacy",value:function(e){return e.legacy?"Legacy":""}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a.TgZ(3,"h1"),a.TgZ(4,"uds-translate"),a._uU(5,"UDS Client"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.YNc(7,R,7,7,"div",4),a.qZA(),a.TgZ(8,"div",5),a.TgZ(9,"ul"),a.TgZ(10,"li"),a.TgZ(11,"uds-translate"),a._uU(12,"Download UDS client for your platform"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(7),a.Q6J("ngForOf",t.api.plugins))},directives:[P.P,I.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem}"]}),e}(),M=n(6498);function L(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw().download(e.url)}),a.TgZ(1,"div",7),a._UZ(2,"img",8),a.qZA(),a._UZ(3,"div",9),a.ALo(4,"safeHtml"),a._UZ(5,"div",10),a.ALo(6,"safeHtml"),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.Tol(r.css(i.name)),a.xp6(2),a.Q6J("src",r.img(i.name),a.LSH),a.xp6(1),a.Q6J("innerHTML",a.lcZ(4,5,i.name),a.oJD),a.xp6(2),a.Q6J("innerHTML",a.lcZ(6,7,i.description),a.oJD)}}var F=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.actors=[];var t=[];this.api.actors.forEach(function(n){n.name.includes("legacy")?t.push(n):e.actors.push(n)}),t.forEach(function(t){e.actors.push(t)})}},{key:"download",value:function(e){window.location.href=e}},{key:"img",value:function(e){var t=e.split(".").pop().toLowerCase(),n="Linux";return"exe"===t?n="Windows":"pkg"===t&&(n="MacOS"),this.api.staticURL("modern/img/"+n+".png")}},{key:"css",value:function(e){var t=["actor"];return e.toLowerCase().includes("legacy")&&t.push("legacy"),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a.TgZ(3,"h1"),a.TgZ(4,"uds-translate"),a._uU(5,"Downloads"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.YNc(7,L,7,9,"div",4),a.qZA(),a.TgZ(8,"div",5),a.TgZ(9,"ul"),a.TgZ(10,"li"),a.TgZ(11,"uds-translate"),a._uU(12,"Always download the UDS actor matching your platform"),a.qZA(),a.qZA(),a.TgZ(13,"li"),a.TgZ(14,"uds-translate"),a._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(7),a.Q6J("ngForOf",t.actors))},directives:[P.P,I.sg],pipes:[M.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:bold;overflow:hidden}"]}),e}(),N=n(5319),B=n(8345),U=0,Z=new a.OlP("CdkAccordion"),j=function(){var e=function(){function e(){_classCallCheck(this,e),this._stateChanges=new u.xQ,this._openCloseAllActions=new u.xQ,this.id="cdk-accordion-"+U++,this._multi=!1}return _createClass(e,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=(0,s.Ig)(e)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[a._Bn([{provide:Z,useExisting:e}]),a.TTD]}),e}(),q=0,V=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=N.w.EMPTY,this.closed=new a.vpe,this.opened=new a.vpe,this.destroyed=new a.vpe,this.expandedChange=new a.vpe,this.id="cdk-accordion-child-"+q++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen(function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return _createClass(e,[{key:"expanded",get:function(){return this._expanded},set:function(e){e=(0,s.Ig)(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,s.Ig)(e)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe(function(t){e.disabled||(e.expanded=t)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Z,12),a.Y36(a.sBO),a.Y36(B.A8))},e.\u0275dir=a.lG2({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[a._Bn([{provide:Z,useValue:void 0}])]}),e}(),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),z=n(7636),Y=n(2458),G=n(9238),K=n(7519),W=n(5435),Q=n(6461),J=n(6237),X=n(9193),$=n(6682),ee=n(7238),te=["body"];function ne(e,t){}var ie=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],re=["mat-expansion-panel-header","*","mat-action-row"];function oe(e,t){if(1&e&&a._UZ(0,"span",2),2&e){var n=a.oxw();a.Q6J("@indicatorRotate",n._getExpandedState())}}var ae=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],se=["mat-panel-title","mat-panel-description","*"],ue=new a.OlP("MAT_ACCORDION"),le="225ms cubic-bezier(0.4,0.0,0.2,1)",ce={indicatorRotate:(0,ee.X$)("indicatorRotate",[(0,ee.SB)("collapsed, void",(0,ee.oB)({transform:"rotate(0deg)"})),(0,ee.SB)("expanded",(0,ee.oB)({transform:"rotate(180deg)"})),(0,ee.eR)("expanded <=> collapsed, void => collapsed",(0,ee.jt)(le))]),bodyExpansion:(0,ee.X$)("bodyExpansion",[(0,ee.SB)("collapsed, void",(0,ee.oB)({height:"0px",visibility:"hidden"})),(0,ee.SB)("expanded",(0,ee.oB)({height:"*",visibility:"visible"})),(0,ee.eR)("expanded <=> collapsed, void => collapsed",(0,ee.jt)(le))])},he=function(){var e=function e(t){_classCallCheck(this,e),this._template=t};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.Rgc))},e.\u0275dir=a.lG2({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e}(),fe=0,de=new a.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),pe=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,l,c){var h;return _classCallCheck(this,n),(h=t.call(this,e,i,r))._viewContainerRef=o,h._animationMode=l,h._hideToggle=!1,h.afterExpand=new a.vpe,h.afterCollapse=new a.vpe,h._inputChanges=new u.xQ,h._headerId="mat-expansion-panel-header-"+fe++,h._bodyAnimationDone=new u.xQ,h.accordion=e,h._document=s,h._bodyAnimationDone.pipe((0,K.x)(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){"void"!==e.fromState&&("expanded"===e.toState?h.afterExpand.emit():"collapsed"===e.toState&&h.afterCollapse.emit())}),c&&(h.hideToggle=c.hideToggle),h}return _createClass(n,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=(0,s.Ig)(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe((0,_.O)(null),(0,W.h)(function(){return e.expanded&&!e._portal}),(0,f.q)(1)).subscribe(function(){e._portal=new z.UE(e._lazyContent._template,e._viewContainerRef)})}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}]),n}(V);return e.\u0275fac=function(t){return new(t||e)(a.Y36(ue,12),a.Y36(a.sBO),a.Y36(B.A8),a.Y36(a.s_b),a.Y36(I.K0),a.Y36(J.Qb,8),a.Y36(de,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,he,5),2&e)&&(a.iGM(i=a.CRH())&&(t._lazyContent=i.first))},viewQuery:function(e,t){var n;(1&e&&a.Gf(te,5),2&e)&&(a.iGM(n=a.CRH())&&(t._body=n.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&a.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[a._Bn([{provide:ue,useValue:void 0}]),a.qOj,a.TTD],ngContentSelectors:re,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(a.F$t(ie),a.Hsn(0),a.TgZ(1,"div",0,1),a.NdJ("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),a.TgZ(3,"div",2),a.Hsn(4,1),a.YNc(5,ne,0,0,"ng-template",3),a.qZA(),a.Hsn(6,2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),a.uIk("aria-labelledby",t._headerId),a.xp6(4),a.Q6J("cdkPortalOutlet",t._portal))},directives:[z.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ce.bodyExpansion]},changeDetection:0}),e}(),ve=(0,Y.sb)(function e(){_classCallCheck(this,e)}),_e=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u){var l;_classCallCheck(this,n),(l=t.call(this)).panel=e,l._element=i,l._focusMonitor=r,l._changeDetectorRef=o,l._animationMode=s,l._parentChangeSubscription=N.w.EMPTY;var c=e.accordion?e.accordion._stateChanges.pipe((0,W.h)(function(e){return!(!e.hideToggle&&!e.togglePosition)})):X.E;return l.tabIndex=parseInt(u||"")||0,l._parentChangeSubscription=(0,$.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,W.h)(function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)}))).subscribe(function(){return l._changeDetectorRef.markForCheck()}),e.closed.pipe((0,W.h)(function(){return e._containsFocus()})).subscribe(function(){return r.focusVia(i,"program")}),a&&(l.expandedHeight=a.expandedHeight,l.collapsedHeight=a.collapsedHeight),l}return _createClass(n,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(e){switch(e.keyCode){case Q.L_:case Q.K5:(0,Q.Vb)(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._element).subscribe(function(t){t&&e.panel.accordion&&e.panel.accordion._handleHeaderFocus(e)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),n}(ve);return e.\u0275fac=function(t){return new(t||e)(a.Y36(pe,1),a.Y36(a.SBq),a.Y36(G.tE),a.Y36(a.sBO),a.Y36(de,8),a.Y36(J.Qb,8),a.$8M("tabindex"))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&a.NdJ("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(a.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),a.Udp("height",t._getHeaderHeight()),a.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[a.qOj],ngContentSelectors:se,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(a.F$t(ae),a.TgZ(0,"span",0),a.Hsn(1),a.Hsn(2,1),a.Hsn(3,2),a.qZA(),a.YNc(4,oe,1,1,"span",1)),2&e&&(a.xp6(4),a.Q6J("ngIf",t._showToggle()))},directives:[I.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[ce.indicatorRotate]},changeDetection:0}),e}(),me=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),e}(),ge=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e}(),ye=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._ownHeaders=new a.n_E,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return _createClass(n,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=(0,s.Ig)(e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe((0,_.O)(this._headers)).subscribe(function(t){e._ownHeaders.reset(t.filter(function(t){return t.panel.accordion===e})),e._ownHeaders.notifyOnChanges()}),this._keyManager=new G.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(e){this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),n}(j);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,_e,5),2&e)&&(a.iGM(i=a.CRH())&&(t._headers=i))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[a._Bn([{provide:ue,useExisting:t}]),a.qOj]}),t}(),be=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[I.ez,Y.BQ,H,z.eL]]}),e}();function ke(e,t){if(1&e&&(a.TgZ(0,"li"),a.TgZ(1,"uds-translate"),a._uU(2,"Detected proxy ip"),a.qZA(),a._uU(3),a.qZA()),2&e){var n=a.oxw(2);a.xp6(3),a.hij(": ",n.api.staffInfo.ip_proxy,"")}}function Ce(e,t){if(1&e&&(a.TgZ(0,"li"),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n)}}function we(e,t){if(1&e&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n)}}function xe(e,t){if(1&e&&(a.TgZ(0,"div",1),a.TgZ(1,"h1"),a.TgZ(2,"uds-translate"),a._uU(3,"Information"),a.qZA(),a.qZA(),a.TgZ(4,"mat-accordion"),a.TgZ(5,"mat-expansion-panel"),a.TgZ(6,"mat-expansion-panel-header",2),a.TgZ(7,"mat-panel-title"),a._uU(8," IPs "),a.qZA(),a.TgZ(9,"mat-panel-description"),a.TgZ(10,"uds-translate"),a._uU(11,"Client IP"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(12,"ol"),a.TgZ(13,"li"),a.TgZ(14,"uds-translate"),a._uU(15,"Client IP"),a.qZA(),a._uU(16),a.qZA(),a.YNc(17,ke,4,1,"li",3),a.qZA(),a.qZA(),a.TgZ(18,"mat-expansion-panel"),a.TgZ(19,"mat-expansion-panel-header",2),a.TgZ(20,"mat-panel-title"),a.TgZ(21,"uds-translate"),a._uU(22,"Transports"),a.qZA(),a.qZA(),a.TgZ(23,"mat-panel-description"),a.TgZ(24,"uds-translate"),a._uU(25,"UDS transports for this client"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(26,"ol"),a.YNc(27,Ce,2,1,"li",4),a.qZA(),a.qZA(),a.TgZ(28,"mat-expansion-panel"),a.TgZ(29,"mat-expansion-panel-header",2),a.TgZ(30,"mat-panel-title"),a.TgZ(31,"uds-translate"),a._uU(32,"Networks"),a.qZA(),a.qZA(),a.TgZ(33,"mat-panel-description"),a.TgZ(34,"uds-translate"),a._uU(35,"UDS networks for this IP"),a.qZA(),a.qZA(),a.qZA(),a.YNc(36,we,2,1,"span",4),a._uU(37,"\xa0 "),a.qZA(),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.xp6(16),a.hij(": ",n.api.staffInfo.ip,""),a.xp6(1),a.Q6J("ngIf",n.api.staffInfo.ip_proxy!==n.api.staffInfo.ip),a.xp6(10),a.Q6J("ngForOf",n.api.staffInfo.transports),a.xp6(9),a.Q6J("ngForOf",n.api.staffInfo.networks)}}var Ee=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(e,t){1&e&&a.YNc(0,xe,38,4,"div",0),2&e&&a.Q6J("ngIf",t.api.staffInfo)},directives:[I.O5,P.P,ye,pe,_e,ge,me,I.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4}"]}),e}(),Se=n(2759),Oe=n(3342),Ae=n(8295),Te=n(9983),Pe=["input"],Ie=function(){var e=function(){function e(){_classCallCheck(this,e),this.updateEvent=new a.vpe}return _createClass(e,[{key:"ngAfterViewInit",value:function(){var e=this;(0,Se.R)(this.input.nativeElement,"keyup").pipe((0,W.h)(Boolean),(0,p.b)(600),(0,K.x)(),(0,Oe.b)(function(){return e.update(e.input.nativeElement.value)})).subscribe()}},{key:"update",value:function(e){this.updateEvent.emit(e.toLowerCase())}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-filter"]],viewQuery:function(e,t){var n;(1&e&&a.Gf(Pe,7),2&e)&&(a.iGM(n=a.CRH())&&(t.input=n.first))},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"mat-form-field",1),a.TgZ(2,"mat-label"),a.TgZ(3,"uds-translate"),a._uU(4,"Filter"),a.qZA(),a.qZA(),a._UZ(5,"input",2,3),a.TgZ(7,"i",4),a._uU(8,"search"),a.qZA(),a.qZA(),a.qZA())},directives:[Ae.KE,Ae.hX,P.P,Te.Nt,Ae.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),e}(),Re=n(5917),De=n(4581),Me=n(3190),Le=n(3637),Fe=n(7393),Ne=n(1593);function Be(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Le.P,n=function(e){return e instanceof Date&&!isNaN(+e)}(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new Ue(n,t))}}var Ue=function(){function e(t,n){_classCallCheck(this,e),this.delay=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Ze(e,this.delay,this.scheduler))}}]),e}(),Ze=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return _createClass(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new je(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(Ne.P.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Ne.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(Fe.L),je=function e(t,n){_classCallCheck(this,e),this.time=t,this.notification=n},qe=n(625),Ve=n(9243),He=n(946),ze=["mat-menu-item",""];function Ye(e,t){1&e&&(a.O4$(),a.TgZ(0,"svg",2),a._UZ(1,"polygon",3),a.qZA())}var Ge=["*"];function Ke(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",0),a.NdJ("keydown",function(e){return a.CHM(n),a.oxw()._handleKeydown(e)})("click",function(){return a.CHM(n),a.oxw().closed.emit("click")})("@transformMenu.start",function(e){return a.CHM(n),a.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return a.CHM(n),a.oxw()._onAnimationDone(e)}),a.TgZ(1,"div",1),a.Hsn(2),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),a.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var We={transformMenu:(0,ee.X$)("transformMenu",[(0,ee.SB)("void",(0,ee.oB)({opacity:0,transform:"scale(0.8)"})),(0,ee.eR)("void => enter",(0,ee.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.oB)({opacity:1,transform:"scale(1)"}))),(0,ee.eR)("* => void",(0,ee.jt)("100ms 25ms linear",(0,ee.oB)({opacity:0})))]),fadeInItems:(0,ee.X$)("fadeInItems",[(0,ee.SB)("showing",(0,ee.oB)({opacity:1})),(0,ee.eR)("void => *",[(0,ee.oB)({opacity:0}),(0,ee.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Qe=new a.OlP("MatMenuContent"),Je=new a.OlP("MAT_MENU_PANEL"),Xe=(0,Y.Kr)((0,Y.Id)(function(){return function e(){_classCallCheck(this,e)}}())),$e=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s;return _classCallCheck(this,n),(s=t.call(this))._elementRef=e,s._focusMonitor=r,s._parentMenu=o,s._changeDetectorRef=a,s.role="menuitem",s._hovered=new u.xQ,s._focused=new u.xQ,s._highlighted=!1,s._triggersSubmenu=!1,o&&o.addItem&&o.addItem(_assertThisInitialized(s)),s}return _createClass(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t=this,n=Math.min(this._baseElevation+e,24),i="".concat(this._elevationPrefix).concat(n),r=Object.keys(this._classList).find(function(e){return e.startsWith(t._elevationPrefix)});(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe((0,_.O)(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(et))},e.\u0275dir=a.lG2({type:e,contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,Qe,5),a.Suo(n,$e,5),a.Suo(n,$e,4)),2&e)&&(a.iGM(i=a.CRH())&&(t.lazyContent=i.first),a.iGM(i=a.CRH())&&(t._allItems=i),a.iGM(i=a.CRH())&&(t.items=i))},viewQuery:function(e,t){var n;(1&e&&a.Gf(a.Rgc,5),2&e)&&(a.iGM(n=a.CRH())&&(t.templateRef=n.first))},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),it=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i,r))._elevationPrefix="mat-elevation-z",o._baseElevation=4,o}return n}(nt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(et))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&a.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[a._Bn([{provide:Je,useExisting:e}]),a.qOj],ngContentSelectors:Ge,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(a.F$t(),a.YNc(0,Ke,3,6,"ng-template"))},directives:[I.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[We.transformMenu,We.fadeInItems]},changeDetection:0}),e}(),rt=new a.OlP("mat-menu-scroll-strategy"),ot={provide:rt,deps:[qe.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},at=(0,g.i$)({passive:!0}),st=function(){var e=function(){function e(t,n,i,r,o,s,u,l){var c=this;_classCallCheck(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=u,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=N.w.EMPTY,this._hoverSubscription=N.w.EMPTY,this._menuCloseSubscription=N.w.EMPTY,this._handleTouchStart=function(e){(0,G.yG)(e)||(c._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new a.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof nt?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,at),s&&(s._triggersSubmenu=this.triggersSubmenu())}return _createClass(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),("click"===e||"tab"===e)&&t._parentMaterialMenu&&t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,at),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof nt&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof nt?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe((0,W.h)(function(e){return"void"===e.toState}),(0,f.q)(1),(0,m.R)(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new qe.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,u=a,l=n,c=i,h=0;this.triggersSubmenu()?(c=n="before"===this.menu.xPosition?"start":"end",i=l="end"===n?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",u="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:l,overlayY:o,offsetY:h},{originX:i,originY:s,overlayX:c,overlayY:o,offsetY:h},{originX:n,originY:u,overlayX:l,overlayY:a,offsetY:-h},{originX:i,originY:u,overlayX:c,overlayY:a,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Re.of)(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,W.h)(function(t){return t!==e._menuItemInstance}),(0,W.h)(function(){return e._menuOpen})):(0,Re.of)();return(0,$.T)(t,i,r,n)}},{key:"_handleMousedown",value:function(e){(0,G.X6)(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;(t===Q.K5||t===Q.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===Q.SV&&"ltr"===this.dir||t===Q.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,W.h)(function(t){return t===e._menuItemInstance&&!t.disabled}),Be(0,De.E)).subscribe(function(){e._openedBy="mouse",e.menu instanceof nt&&e.menu._isAnimating?e.menu._animationDone.pipe((0,f.q)(1),Be(0,De.E),(0,m.R)(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new z.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(a.s_b),a.Y36(rt),a.Y36(Je,8),a.Y36($e,10),a.Y36(He.Is,8),a.Y36(G.tE))},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&a.NdJ("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&a.uIk("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),ut=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[ot],imports:[Y.BQ]}),e}(),lt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[ot],imports:[[I.ez,Y.BQ,Y.si,qe.U8,ut],Ve.ZD,Y.BQ,ut]}),e}(),ct={tooltipState:(0,ee.X$)("state",[(0,ee.SB)("initial, void, hidden",(0,ee.oB)({opacity:0,transform:"scale(0)"})),(0,ee.SB)("visible",(0,ee.oB)({transform:"scale(1)"})),(0,ee.eR)("* => visible",(0,ee.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,ee.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,ee.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,ee.eR)("* => hidden",(0,ee.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.oB)({opacity:0})))])},ht="tooltip-panel",ft=(0,g.i$)({passive:!0}),dt=new a.OlP("mat-tooltip-scroll-strategy"),pt={provide:dt,deps:[qe.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},vt=new a.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),_t=function(){var e=function(){function e(t,n,i,r,o,a,s,l,c,h,f,d){var p=this;_classCallCheck(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=l,this._dir=h,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new u.xQ,this._handleKeydown=function(e){p._isTooltipVisible()&&e.keyCode===Q.hY&&!(0,Q.Vb)(e)&&(e.preventDefault(),e.stopPropagation(),p._ngZone.run(function(){return p.hide(0)}))},this._scrollStrategy=c,this._document=d,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe((0,m.R)(this._destroyed)).subscribe(function(){p._overlayRef&&p._updatePosition(p._overlayRef)}),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",p._handleKeydown)})}return _createClass(e,[{key:"position",get:function(){return this._position},set:function(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,s.Ig)(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,m.R)(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=_slicedToArray(t,2),i=n[0],r=n[1];e.removeEventListener(i,r,ft)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new z.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,m.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe((0,m.R)(this._destroyed)).subscribe(function(t){e._updateCurrentPositionClass(t.connectionPair),e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-").concat(ht),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,m.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,m.R)(this._destroyed)).subscribe(function(){var t;return null===(t=e._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var t=e.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,f.q)(1),(0,m.R)(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_updateCurrentPositionClass",value:function(e){var t,n=e.overlayY,i=e.originX,r=e.originY;if((t="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===r?"above":"below")!==this._currentPosition){var o=this._overlayRef;if(o){var a="".concat(this._cssClassPrefix,"-").concat(ht,"-");o.removePanelClass(a+this._currentPosition),o.addPanelClass(a+t)}this._currentPosition=t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=_slicedToArray(e,2),i=n[0],r=n[1];t._elementRef.nativeElement.addEventListener(i,r,ft)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t!==n&&!n.contains(t)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),("on"===e||!t.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(Ve.mF),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(g.t4),a.Y36(G.$s),a.Y36(G.tE),a.Y36(void 0),a.Y36(He.Is),a.Y36(void 0),a.Y36(I.K0))},e.\u0275dir=a.lG2({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),mt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u,l,c,h,f,d){var p;return _classCallCheck(this,n),(p=t.call(this,e,i,r,o,a,s,u,l,c,h,f,d))._tooltipComponent=yt,p}return n}(_t);return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(Ve.mF),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(g.t4),a.Y36(G.$s),a.Y36(G.tE),a.Y36(dt),a.Y36(He.Is,8),a.Y36(vt,8),a.Y36(I.K0))},e.\u0275dir=a.lG2({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[a.qOj]}),e}(),gt=function(){var e=function(){function e(t){_classCallCheck(this,e),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new u.xQ}return _createClass(e,[{key:"show",value:function(e){var t=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=void 0,t._onShow(),t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=void 0,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO))},e.\u0275dir=a.lG2({type:e}),e}(),yt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e))._breakpointObserver=i,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return n}(gt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO),a.Y36(w))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&a.Udp("zoom","visible"===t._visibility?1:null)},features:[a.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(a.TgZ(0,"div",0),a.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),a.ALo(1,"async"),a._uU(2),a.qZA()),2&e)&&(a.ekj("mat-tooltip-handset",null==(n=a.lcZ(1,5,t._isHandset))?null:n.matches),a.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),a.xp6(2),a.Oqu(t.message))},directives:[I.mk],pipes:[I.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ct.tooltipState]},changeDetection:0}),e}(),bt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[pt],imports:[[G.rt,I.ez,qe.U8,Y.BQ],Y.BQ,Ve.ZD]}),e}(),kt=n(1095);function Ct(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(2).launch(e)}),a.TgZ(1,"div",15),a._UZ(2,"img",9),a._uU(3),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw(2);a.xp6(2),a.Q6J("src",r.getTransportIcon(i.id),a.LSH),a.xp6(1),a.hij(" ",i.name," ")}}function wt(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).action("release")}),a.TgZ(1,"i",16),a._uU(2,"delete"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4," Release service"),a.qZA(),a.qZA()}}function xt(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).action("reset")}),a.TgZ(1,"i",16),a._uU(2,"refresh"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4," Reset service"),a.qZA(),a.qZA()}}function Et(e,t){if(1&e&&(a.TgZ(0,"button",17),a.TgZ(1,"uds-translate"),a._uU(2,"Connections"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(2);a.Q6J("matMenuTriggerFor",n)}}function St(e,t){if(1&e&&(a.TgZ(0,"button",17),a.TgZ(1,"uds-translate"),a._uU(2,"Actions"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(5);a.Q6J("matMenuTriggerFor",n)}}function Ot(e,t){if(1&e&&(a.TgZ(0,"button",18),a.TgZ(1,"i",16),a._uU(2,"menu"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(9);a.Q6J("matMenuTriggerFor",n)}}function At(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"mat-menu",null,1),a.YNc(3,Ct,4,2,"button",2),a.qZA(),a.TgZ(4,"mat-menu",null,3),a.YNc(6,wt,5,0,"button",4),a.YNc(7,xt,5,0,"button",4),a.qZA(),a.TgZ(8,"mat-menu",null,5),a.YNc(10,Et,3,1,"button",6),a.YNc(11,St,3,1,"button",6),a.qZA(),a.TgZ(12,"div",7),a.TgZ(13,"div",8),a.NdJ("click",function(){return a.CHM(n),a.oxw().launch(null)}),a._UZ(14,"img",9),a.qZA(),a.TgZ(15,"div",10),a.TgZ(16,"span",11),a._uU(17),a.qZA(),a.qZA(),a.TgZ(18,"div",12),a.YNc(19,Ot,3,1,"button",13),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(3),a.Q6J("ngForOf",i.service.transports),a.xp6(3),a.Q6J("ngIf",i.service.allow_users_remove),a.xp6(1),a.Q6J("ngIf",i.service.allow_users_reset),a.xp6(3),a.Q6J("ngIf",i.showTransportsMenu()),a.xp6(1),a.Q6J("ngIf",i.hasActions()),a.xp6(1),a.Q6J("ngClass",i.serviceClass)("matTooltipDisabled",""===i.serviceTooltip)("matTooltip",i.serviceTooltip),a.xp6(2),a.Q6J("src",i.serviceImage,a.LSH),a.xp6(2),a.Q6J("ngClass",i.serviceNameClass),a.xp6(1),a.Oqu(i.serviceName),a.xp6(2),a.Q6J("ngIf",i.hasMenu())}}var Tt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"serviceImage",get:function(){return this.api.galleryImageURL(this.service.imageId)}},{key:"serviceName",get:function(){var e=this.service.visual_name;return e.length>32&&(e=e.substring(0,29)+"..."),e}},{key:"serviceTooltip",get:function(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}},{key:"serviceClass",get:function(){var e=["service"];return null!=this.service.to_be_replaced?e.push("tobereplaced"):this.service.maintenance?e.push("maintenance"):this.service.not_accesible?e.push("forbidden"):this.service.in_use&&e.push("inuse"),e.length>1&&e.push("alert"),e}},{key:"serviceNameClass",get:function(){var e=[],t=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return t>=16&&e.push("small-"+t.toString()),e}},{key:"getTransportIcon",value:function(e){return this.api.transportIconURL(e)}},{key:"hasActions",value:function(){return this.service.allow_users_remove||this.service.allow_users_reset}},{key:"showTransportsMenu",value:function(){return this.service.transports.length>1&&this.service.show_transports}},{key:"hasMenu",value:function(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}},{key:"notifyNotLaunching",value:function(e){this.api.gui.alert('

'+django.gettext("Launcher")+"

",e)}},{key:"launch",value:function(e){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){var t=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching('

'+django.gettext("This service is currently not accesible due to schedule restrictions.")+'

'+t+'

')}else(null===e||!1===this.service.show_transports)&&(e=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(e.link)}},{key:"action",value:function(e){var t=this,n=("release"===e?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,i="release"===e?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(n,django.gettext("Are you sure?")).subscribe(function(r){r&&t.api.action(e,t.service.id).subscribe(function(e){e&&t.api.gui.alert(n,i)})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(e,t){1&e&&a.YNc(0,At,20,12,"div",0),2&e&&a.Q6J("ngIf",t.service.transports.length>0)},directives:[I.O5,it,I.sg,I.mk,mt,$e,P.P,st,kt.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:rgba(0,0,0,.22);display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22)}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;border-radius:1px;background-color:rgba(255,255,255,.8)}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:"Material Icons";font-weight:normal;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"}']}),e}();function Pt(e,t){1&e&&a._UZ(0,"uds-service",8),2&e&&a.Q6J("service",t.$implicit)}function It(e,t){if(1&e&&(a.TgZ(0,"mat-expansion-panel",1),a.TgZ(1,"mat-expansion-panel-header",2),a.TgZ(2,"mat-panel-title"),a.TgZ(3,"div",3),a._UZ(4,"img",4),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"mat-panel-description",5),a._uU(7),a.qZA(),a.qZA(),a.TgZ(8,"div",6),a.YNc(9,Pt,1,1,"uds-service",7),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.Q6J("expanded",n.expanded),a.xp6(1),a.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),a.xp6(3),a.Q6J("src",n.groupImage,a.LSH),a.xp6(1),a.hij(" ",n.group.name,""),a.xp6(2),a.hij(" ",n.group.comments," "),a.xp6(2),a.Q6J("ngForOf",n.sortedServices)}}var Rt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.expanded=!1}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"groupImage",get:function(){return this.api.galleryImageURL(this.group.imageUuid)}},{key:"hasVisibleServices",get:function(){return this.services.length>0}},{key:"sortedServices",get:function(){return this.services.sort(function(e,t){return e.name>t.name?1:e.name0&&void 0!==arguments[0]?arguments[0]:"";this.group=[];var n=null;this.servicesInformation.services.filter(function(e){return!t||e.visual_name.toLowerCase().includes(t)||e.group.name.toLowerCase().includes(t)}).sort(function(e,t){return e.group.priority!==t.group.priority?e.group.priority-t.group.priority:e.group.id>t.group.id?1:e.group.id=t.api.config.min_for_filter&&t.api.config.site_filter_on_top),a.xp6(3),a.Q6J("ngForOf",t.group),a.xp6(1),a.Q6J("ngIf",t.servicesInformation.services.length>=t.api.config.min_for_filter&&!t.api.config.site_filter_on_top))},directives:[I.O5,ye,I.sg,Ee,Ie,Rt],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),e}(),Bt=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.api=t,this.route=n}return _createClass(e,[{key:"ngOnInit",value:function(){this.getError()}},{key:"getError",value:function(){var e=this,t=this.route.snapshot.paramMap.get("id");"19"===t&&(this.returnUrl="/mfa"),this.error="",this.api.getErrorInformation(t).subscribe(function(t){e.error=t.error})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n),a.Y36(S.gz))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-error"]],decls:14,vars:2,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],["mat-raised-button","","color","warn",3,"routerLink"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.O4$(),a.TgZ(2,"svg",2),a._UZ(3,"path",3),a.qZA(),a.TgZ(4,"svg",4),a._UZ(5,"path",5),a.qZA(),a.qZA(),a.kcU(),a.TgZ(6,"h1",6),a.TgZ(7,"uds-translate"),a._uU(8,"An error has occurred"),a.qZA(),a.qZA(),a.TgZ(9,"p",7),a._uU(10),a.qZA(),a.TgZ(11,"a",8),a.TgZ(12,"uds-translate"),a._uU(13,"Return"),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(10),a.hij(" ",t.error," "),a.xp6(1),a.Q6J("routerLink",t.returnUrl))},directives:[P.P,kt.zs,S.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),e}(),Ut=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.year=(new Date).getFullYear()}return _createClass(e,[{key:"ngOnInit",value:function(){this.year<2021&&(this.year=2021)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-about"]],decls:45,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"h1"),a._uU(2),a.qZA(),a.TgZ(3,"h3"),a.TgZ(4,"a",1),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"h4"),a.TgZ(7,"uds-translate"),a._uU(8,"You can access UDS Open Source code at"),a.qZA(),a.TgZ(9,"a",2),a._uU(10,"OpenUDS github repository"),a.qZA(),a.qZA(),a.TgZ(11,"div",3),a.TgZ(12,"h2"),a.TgZ(13,"uds-translate"),a._uU(14,"UDS has been developed using these components:"),a.qZA(),a.qZA(),a.TgZ(15,"ul"),a.TgZ(16,"li"),a.TgZ(17,"a",4),a._uU(18,"Python"),a.qZA(),a.qZA(),a.TgZ(19,"li"),a.TgZ(20,"a",5),a._uU(21,"TypeScript"),a.qZA(),a.qZA(),a.TgZ(22,"li"),a.TgZ(23,"a",6),a._uU(24,"Django"),a.qZA(),a.qZA(),a.TgZ(25,"li"),a.TgZ(26,"a",7),a._uU(27,"Angular"),a.qZA(),a.qZA(),a.TgZ(28,"li"),a.TgZ(29,"a",8),a._uU(30,"Guacamole"),a.qZA(),a.qZA(),a.TgZ(31,"li"),a.TgZ(32,"a",9),a._uU(33,"weasyprint"),a.qZA(),a.qZA(),a.TgZ(34,"li"),a.TgZ(35,"a",10),a._uU(36,"Crystal project icons"),a.qZA(),a.qZA(),a.TgZ(37,"li"),a.TgZ(38,"a",11),a._uU(39,"Flattr Icons"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(40,"p"),a.TgZ(41,"small"),a._uU(42,"* "),a.TgZ(43,"uds-translate"),a._uU(44,"If you find that we missed any component, please let us know"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(2),a.AsE("Universal Desktop Services ",t.api.config.version," build ",t.api.config.version_stamp,""),a.xp6(3),a.hij(" \xa9 2012-",t.year," Virtual Cable S.L.U."))},directives:[P.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:normal}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px}"]}),e}(),Zt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"h1"),a.TgZ(3,"uds-translate"),a._uU(4,"UDS Service launcher"),a.qZA(),a.qZA(),a.TgZ(5,"h4"),a.TgZ(6,"uds-translate"),a._uU(7,"The service you have requested is being launched."),a.qZA(),a.qZA(),a.TgZ(8,"h5"),a.TgZ(9,"uds-translate"),a._uU(10,"Please, note that reloading this page will not work."),a.qZA(),a.qZA(),a.TgZ(11,"h5"),a.TgZ(12,"uds-translate"),a._uU(13,"To relaunch service, you will have to do it from origin."),a.qZA(),a.qZA(),a.TgZ(14,"h6"),a.TgZ(15,"uds-translate"),a._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),a.qZA(),a.qZA(),a.TgZ(17,"h6"),a.TgZ(18,"uds-translate"),a._uU(19,"You can obtain it from the"),a.qZA(),a._uU(20,"\xa0"),a.TgZ(21,"a",2),a.TgZ(22,"uds-translate"),a._uU(23,"UDS Client download page"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA())},directives:[P.P,S.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:rgba(0,0,0,.22);padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:normal}"]}),e}(),jt=n(665),qt=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:Nt,canActivate:[A]},{path:"login",component:T.G},{path:"login/:id",component:T.G},{path:"mfa",component:function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){document.getElementById("mfaform").action=this.api.config.urls.mfa,this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}},{key:"launch",value:function(){return document.getElementById("mfaform").submit(),!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-mfa"]],decls:17,vars:2,consts:[["id","mfaform","method","post",3,"ngSubmit"],[1,"mfa-container"],[1,"mfa-brand"],[3,"src"],[1,"mfa-info"],[1,"mfa-form"],[1,"mfa-field"],["appearance","standard"],["matInput","","id","code","name","code","value","","required","","autofocus",""],[1,"mfa-button"],["mat-stroked-button","","color","primary","type","submit"]],template:function(e,t){1&e&&(a.TgZ(0,"form",0),a.NdJ("ngSubmit",function(){return t.launch()}),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a._UZ(3,"img",3),a.qZA(),a.TgZ(4,"div",4),a.TgZ(5,"uds-translate"),a._uU(6,"Login Verification"),a.qZA(),a.qZA(),a.TgZ(7,"div",5),a.TgZ(8,"div",6),a.TgZ(9,"mat-form-field",7),a.TgZ(10,"mat-label"),a._uU(11),a.qZA(),a._UZ(12,"input",8),a.qZA(),a.qZA(),a.TgZ(13,"div",9),a.TgZ(14,"button",10),a.TgZ(15,"uds-translate"),a._uU(16,"Submit"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(3),a.Q6J("src",t.api.staticURL("modern/img/login-img.png"),a.LSH),a.xp6(8),a.hij(" ",t.api.config.mfa.label," "))},directives:[jt._Y,jt.JL,jt.F,P.P,Ae.KE,Ae.hX,Te.Nt,kt.lW],styles:[".mfa-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.mfa-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.mfa-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.mfa-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.mfa-form[_ngcontent-%COMP%]{min-width:80%}}"]}),e}()},{path:"client-download",component:D},{path:"downloads",component:F,canActivate:[A]},{path:"error/:id",component:Bt},{path:"about",component:Ut},{path:"ticket/launcher",component:Zt},{path:"**",redirectTo:"services"}],Vt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[S.Bz.forRoot(qt,{relativeLinkResolution:"legacy"})],S.Bz]}),e}(),Ht=n(8553),zt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),Yt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[Y.si,Y.BQ,Ht.Q8,zt],Y.BQ,zt]}),e}(),Gt=n(2238),Kt=n(7441),Wt=["*",[["mat-toolbar-row"]]],Qt=["*","mat-toolbar-row"],Jt=(0,Y.pj)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}()),Xt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),$t=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e))._platform=i,o._document=r,o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(Jt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(g.t4),a.Y36(I.K0))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,Xt,5),2&e)&&(a.iGM(i=a.CRH())&&(t._toolbarRows=i))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&a.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[a.qOj],ngContentSelectors:Qt,decls:2,vars:0,template:function(e,t){1&e&&(a.F$t(Wt),a.Hsn(0),a.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),en=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[Y.BQ],Y.BQ]}),e}(),tn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[{provide:Ae.o2,useValue:{floatLabel:"always"}}],imports:[jt.u5,en,kt.ot,lt,bt,be,Gt.Is,Ae.lN,Te.c,Kt.LD,Yt]}),e}();function nn(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",9),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(2).changeLang(e)}),a._uU(1),a.qZA()}if(2&e){var i=t.$implicit;a.xp6(1),a.Oqu(i.name)}}function rn(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",9),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).admin()}),a.TgZ(1,"i",23),a._uU(2,"dashboard"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4,"Dashboard"),a.qZA(),a.qZA()}}function on(e,t){1&e&&(a.TgZ(0,"button",28),a.TgZ(1,"i",23),a._uU(2,"file_download"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4,"Downloads"),a.qZA(),a.qZA())}function an(e,t){if(1&e&&(a.TgZ(0,"button",14),a._uU(1),a.qZA()),2&e){a.oxw();var n=a.MAs(8),i=a.oxw();a.Q6J("matMenuTriggerFor",n),a.xp6(1),a.Oqu(i.api.user.user)}}function sn(e,t){if(1&e&&(a.TgZ(0,"button",25),a._uU(1),a.TgZ(2,"i",23),a._uU(3,"arrow_drop_down"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(8),i=a.oxw();a.Q6J("matMenuTriggerFor",n),a.xp6(1),a.hij("",i.api.user.user," ")}}function un(e,t){if(1&e){var n=a.EpF();a.ynx(0),a.TgZ(1,"form",1),a._UZ(2,"input",2),a._UZ(3,"input",3),a.qZA(),a.TgZ(4,"mat-menu",null,4),a.YNc(6,nn,2,1,"button",5),a.qZA(),a.TgZ(7,"mat-menu",null,6),a.YNc(9,rn,5,0,"button",7),a.YNc(10,on,5,0,"button",8),a.TgZ(11,"button",9),a.NdJ("click",function(){return a.CHM(n),a.oxw().logout()}),a.TgZ(12,"i",10),a._uU(13,"exit_to_app"),a.qZA(),a.TgZ(14,"uds-translate"),a._uU(15,"Logout"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(16,"mat-menu",11,12),a.YNc(18,an,2,2,"button",13),a.TgZ(19,"button",14),a._uU(20),a.qZA(),a.TgZ(21,"button",15),a.TgZ(22,"uds-translate"),a._uU(23,"UDS Client"),a.qZA(),a.qZA(),a.TgZ(24,"button",16),a.TgZ(25,"uds-translate"),a._uU(26,"About"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(27,"mat-toolbar",17),a.TgZ(28,"button",18),a._UZ(29,"img",19),a._uU(30),a.qZA(),a._UZ(31,"span",20),a.TgZ(32,"div",21),a.TgZ(33,"button",22),a.TgZ(34,"i",23),a._uU(35,"file_download"),a.qZA(),a.TgZ(36,"uds-translate"),a._uU(37,"UDS Client"),a.qZA(),a.qZA(),a.TgZ(38,"button",24),a.TgZ(39,"i",23),a._uU(40,"info"),a.qZA(),a.TgZ(41,"uds-translate"),a._uU(42,"About"),a.qZA(),a.qZA(),a.TgZ(43,"button",25),a._uU(44),a.TgZ(45,"i",23),a._uU(46,"arrow_drop_down"),a.qZA(),a.qZA(),a.YNc(47,sn,4,2,"button",26),a.qZA(),a.TgZ(48,"div",27),a.TgZ(49,"button",25),a.TgZ(50,"i",23),a._uU(51,"menu"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.BQk()}if(2&e){var i=a.MAs(5),r=a.MAs(17),o=a.oxw();a.xp6(1),a.s9C("action",o.api.config.urls.changeLang,a.LSH),a.xp6(1),a.s9C("name",o.api.csrfField),a.s9C("value",o.api.csrfToken),a.xp6(1),a.s9C("value",o.lang.id),a.xp6(3),a.Q6J("ngForOf",o.langs),a.xp6(3),a.Q6J("ngIf",o.api.user.isStaff),a.xp6(1),a.Q6J("ngIf",o.api.user.isStaff),a.xp6(8),a.Q6J("ngIf",o.api.user.isLogged),a.xp6(1),a.Q6J("matMenuTriggerFor",i),a.xp6(1),a.hij("",o.lang.name," "),a.xp6(9),a.Q6J("src",o.api.staticURL("modern/img/udsicon.png"),a.LSH),a.xp6(1),a.hij(" ",o.api.config.site_logo_name," "),a.xp6(13),a.Q6J("matMenuTriggerFor",i),a.xp6(1),a.hij("",o.lang.name," "),a.xp6(3),a.Q6J("ngIf",o.api.user.isLogged),a.xp6(2),a.Q6J("matMenuTriggerFor",r)}}var ln=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.style="";var n=t.config.language;this.langs=[];var i,r=_createForOfIteratorHelper(t.config.available_languages);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.id===n?this.lang=o:this.langs.push(o)}}catch(a){r.e(a)}finally{r.f()}}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"changeLang",value:function(e){return this.lang=e,document.getElementById("id_language").attributes.value.value=e.id,document.getElementById("form_language").submit(),!1}},{key:"admin",value:function(){this.api.gotoAdmin()}},{key:"logout",value:function(){this.api.logout()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(e,t){1&e&&a.YNc(0,un,52,16,"ng-container",0),2&e&&a.Q6J("ngIf",""===t.api.config.urls.launch)},directives:[I.O5,jt._Y,jt.JL,jt.F,it,I.sg,$e,P.P,st,S.rH,$t,kt.lW],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),e}(),cn=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(e,t){1&e&&(a.TgZ(0,"div"),a.TgZ(1,"a",0),a._uU(2),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Q6J("href",t.api.config.site_copyright_link,a.LSH),a.xp6(1),a.Oqu(t.api.config.site_copyright_info))},styles:[""]}),e}(),hn=function(){var e=function(){function e(){_classCallCheck(this,e),this.title="uds"}return _createClass(e,[{key:"ngOnInit",value:function(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-root"]],decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(e,t){1&e&&(a._UZ(0,"uds-navbar"),a.TgZ(1,"div",0),a.TgZ(2,"div",1),a._UZ(3,"router-outlet"),a.qZA(),a.TgZ(4,"div",2),a._UZ(5,"uds-footer"),a.qZA(),a.qZA())},directives:[ln,S.lC,cn],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),e}(),fn=n(3183),dn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e,bootstrap:[hn]}),e.\u0275inj=a.cJS({providers:[O.n,fn.h],imports:[[o.b2,y,E.JF,Vt,J.PW,tn]]}),e}();n(2340).N.production&&(0,a.G48)(),o.q6().bootstrapModule(dn).catch(function(e){return console.log(e)})}},function(e){e(e.s=6445)}])})(); \ No newline at end of file diff --git a/server/src/uds/urls.py b/server/src/uds/urls.py index 541f4fd06..5c111fe00 100644 --- a/server/src/uds/urls.py +++ b/server/src/uds/urls.py @@ -88,6 +88,8 @@ urlpatterns = [ name='page.login.tag', ), path(r'uds/page/logout', uds.web.views.modern.logout, name='page.logout'), + # MFA authentication + path(r'uds/page/mfa/', uds.web.views.modern.mfa, name='page.mfa'), # Error URL (just a placeholder, calls index with data on url for angular) re_path( r'^uds/page/error/(?P[a-zA-Z0-9=-]+)$', @@ -127,8 +129,6 @@ urlpatterns = [ uds.web.views.modern.ticketLauncher, name='page.ticket.launcher', ), - # MFA authentication - path(r'uds/page/mfa/', uds.web.views.modern.mfa, name='page.mfa'), # This must be the last, so any patition will be managed by client in fact re_path(r'uds/page/.*', uds.web.views.modern.index, name='page.placeholder'), # Utility diff --git a/server/src/uds/web/views/auth.py b/server/src/uds/web/views/auth.py index adb12a687..b5b0a595e 100644 --- a/server/src/uds/web/views/auth.py +++ b/server/src/uds/web/views/auth.py @@ -142,7 +142,7 @@ def authCallback_stage2( if authInstance.mfaIdentifier(): request.authorized = False # We can ask for MFA so first disauthorize user response = HttpResponseRedirect( - reverse('page.auth.mfa') + reverse('page.mfa') ) return response diff --git a/server/src/uds/web/views/modern.py b/server/src/uds/web/views/modern.py index e062f77af..289c509e9 100644 --- a/server/src/uds/web/views/modern.py +++ b/server/src/uds/web/views/modern.py @@ -34,6 +34,7 @@ import typing from django.middleware import csrf from django.shortcuts import render +from django.views.decorators.csrf import csrf_exempt from django.http import HttpRequest, HttpResponse, JsonResponse, HttpResponseRedirect from django.urls import reverse @@ -92,16 +93,26 @@ def login( user, data = checkLogin(request, form, tag) if isinstance(user, str): return HttpResponseRedirect(user) - if user: - # TODO: Check if MFA to set authorize or redirect to MFA page - request.authorized = True + if user: + # Initial redirect page response = HttpResponseRedirect(reverse('page.index')) # save tag, weblogin will clear session tag = request.session.get('tag') auth.webLogin(request, response, user, data) # data is user password here # And restore tag request.session['tag'] = tag + + # If MFA is provided, we need to redirect to MFA page + request.authorized = True + if user.manager.getType().providesMfa() and user.manager.mfa: + authInstance = user.manager.getInstance() + if authInstance.mfaIdentifier(): + request.authorized = False # We can ask for MFA so first disauthorize user + response = HttpResponseRedirect( + reverse('page.mfa') + ) + else: # If error is numeric, redirect... # Error, set error on session for process for js @@ -146,7 +157,8 @@ def js(request: ExtendedHttpRequest) -> HttpResponse: def servicesData(request: ExtendedHttpRequestWithUser) -> HttpResponse: return JsonResponse(getServicesData(request)) - +# The MFA page does not needs CRF token, so we disable it +@csrf_exempt def mfa(request: ExtendedHttpRequest) -> HttpResponse: if not request.user: return HttpResponseRedirect(reverse('page.index')) # No user, no MFA @@ -184,4 +196,4 @@ def mfa(request: ExtendedHttpRequest) -> HttpResponse: 'label': label, 'validity': mfaInstance.validity(), } - return HttpResponseRedirect(reverse('page.index')) \ No newline at end of file + return index(request) # Render index with MFA data \ No newline at end of file From 43934d425f5512b356c66b24b5cfb75db6bba45c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Thu, 23 Jun 2022 15:56:14 +0200 Subject: [PATCH 07/15] added timeout value --- server/src/uds/REST/methods/mfas.py | 20 ++++++++++++++----- ...622_2133.py => 0043_auto_20220623_1555.py} | 3 ++- server/src/uds/models/mfa.py | 2 ++ 3 files changed, 19 insertions(+), 6 deletions(-) rename server/src/uds/migrations/{0043_auto_20220622_2133.py => 0043_auto_20220623_1555.py} (91%) diff --git a/server/src/uds/REST/methods/mfas.py b/server/src/uds/REST/methods/mfas.py index e6ee92a71..99d0e9d60 100644 --- a/server/src/uds/REST/methods/mfas.py +++ b/server/src/uds/REST/methods/mfas.py @@ -50,11 +50,7 @@ logger = logging.getLogger(__name__) class Notifiers(ModelHandler): path = 'mfa' model = models.MFA - save_fields = [ - 'name', - 'comments', - 'tags', - ] + save_fields = ['name', 'comments', 'tags', 'cache_device'] table_title = _('Notifiers') table_fields = [ @@ -76,6 +72,20 @@ class Notifiers(ModelHandler): localGui = self.addDefaultFields( mfa.guiDescription(), ['name', 'comments', 'tags'] ) + self.addField( + localGui, + { + 'name': 'cache_device', + 'value': '0', + 'minValue': '0', + 'label': gettext('Device Caching'), + 'tooltip': gettext( + 'Time in hours to cache device so MFA is not required again. User based.' + ), + 'type': gui.InputField.NUMERIC_TYPE, + 'order': 111, + }, + ) return localGui diff --git a/server/src/uds/migrations/0043_auto_20220622_2133.py b/server/src/uds/migrations/0043_auto_20220623_1555.py similarity index 91% rename from server/src/uds/migrations/0043_auto_20220622_2133.py rename to server/src/uds/migrations/0043_auto_20220623_1555.py index acddaaed4..8247d7c01 100644 --- a/server/src/uds/migrations/0043_auto_20220622_2133.py +++ b/server/src/uds/migrations/0043_auto_20220623_1555.py @@ -1,4 +1,4 @@ -# Generated by Django 3.2.10 on 2022-06-22 21:33 +# Generated by Django 3.2.10 on 2022-06-23 15:55 from django.db import migrations, models import django.db.models.deletion @@ -20,6 +20,7 @@ class Migration(migrations.Migration): ('data_type', models.CharField(max_length=128)), ('data', models.TextField(default='')), ('comments', models.CharField(max_length=256)), + ('cache_device', models.IntegerField(default=0)), ('tags', models.ManyToManyField(to='uds.Tag')), ], options={ diff --git a/server/src/uds/models/mfa.py b/server/src/uds/models/mfa.py index 671f4f4f3..0805d0f63 100644 --- a/server/src/uds/models/mfa.py +++ b/server/src/uds/models/mfa.py @@ -55,6 +55,8 @@ class MFA(ManagedObjectModel, TaggingMixin): # type: ignore objects: 'models.BaseManager[MFA]' authenticators: 'models.manager.RelatedManager[Authenticator]' + cache_device = models.IntegerField(default=0) # Time to cache the device MFA in hours + def getInstance( self, values: typing.Optional[typing.Dict[str, str]] = None ) -> 'mfas.MFA': From cb11a26fbe4a7d3b9a67243f0abc123ae3e12a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Thu, 23 Jun 2022 16:23:27 +0200 Subject: [PATCH 08/15] updated mfa icon --- server/src/uds/core/mfas/mfa.png | Bin 1168 -> 1353 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/server/src/uds/core/mfas/mfa.png b/server/src/uds/core/mfas/mfa.png index ece1ae0fa4577b5eb294a0be7e7c350b7f3daa54..0c67f0ad6bd65b65c6ce87c236b8352baef6362b 100755 GIT binary patch delta 1286 zcmV+h1^N1r3CRkOQ-2o@6(9a&4pIOB1lCDJK~#9!?VC$%8&w#EznSs)m6_BDt=c3Y zpr9@qArJzU1rlr6vjilTEV?NLHtnKFELyRt*n`B9O(i5)z>Xq7YEq&&fZQ}Kq0XbW zCyB>1p7Fd`I4ySV(8t)0$DOnDz2jg1J@?#mA9Dv{#E20i#((1rA#8xz+1X?xrG6?P zyaU11fbw1o1insM`q`zWrAC-QiLjY8((1XSocbuMj3Y|oKw9s6-n3cMKi+NmCt+fR z&R7V9ce9E*u*L(3l0;Tj5dz)|8!Hh$onT6oq=)*4zOCUpPJ1G95;Zr`@f-*p?y={_fP< zu>xWOhSdbm&dPmF_}r57_$lE0`SV=3aN+SC0)ikQ2tqW5KtFK$^y%n$!24hQ*jF;1 zdG(FqCZN{|#?xR-KukbPKqR-r-QfBSY}cgWn%J&^?SGmGL7fTN2Pua-c6@XRs2I1n zQJHTm%SZ{1PabRvG0-v08;oV29lar7dnT*eVn=x{oo-$3k>)m*eS5SB2nbjy&*KH1 zo0!Q|x;+^|Ky+7d-0J8Mu)b5ku(hsrf9q9rr~O!87DZg^5B$K6J^?jbV|}NvcfHe~ zu&s5Fkbjm$Ok;rnKe_~Xfy0gRJORP|RbtdS%Elz9>Ay#pfK_b~+cO{N*?Sdm2TH=F z;ci8X0LQnvUcN%bxYe5(#9oiiI$+COV^v$k@q1@rLQsp20@JaXfUhTgS2BL?_^ z6Fm=jSZtU^R}w@)z_QjxV=wR^By5<*-QUM@lYgjk63?vwPmdM>o0}V4y*h`gj-#q7 zimIY2==Ro zrhjR$yu8QqIGbsb09-2;8CO)M4^J^y+CY($9L{FBeDmAkB|vvUZm` zn#*)nA)jBw_x4!hx4!%kV7~AtnRJGU135ISPF^cvdma`{~HhB zx=^?7QH2P_B3|HAZP={p)!`iih01Nj02E0=-*K@m3o06(u0PD;e|HJkep*Cv4Q6JB z+yu=!K2QZPOsG`Ae}p}~ZMPEu%{Z&8pdN_8EU>)|+dJW6xGp3TohDhU4z~yNq<`^u z3~>Mu``!50pF746C%fNf{rSVQ{B-I}*Sg^1mjs`E(NscI&I7vjyd;Xqd)y@TgMc8o z&yiWp07+_kLZbI0HuSZNV=uoJ+_@C_+flW@dL7GxEOTPMdD^s9+N3c5t1vVQII*Jl zdBo~N?g0_RzMTiO-Wcz8Q+!b9g?|Fpe9s%W{rJ8IP~3L~xUO@_tmz*#Kbm;(?*_v3 zxbJ(IdKK4kFYWs*peV|rC!RWbQBI}a6h-O4AY|+N-i~A2-&g)wIa#aKO8ZK{E}jQw w2Iwj7uKbtxT>&jPIKWxO2g<~V5hE=A1t+Wb^|SC?MgRZ+07*qoM6N<$f-(?q{r~^~ delta 1100 zcmV-S1hf0e3XlnqQ-2l>4H~xZySM-V1RY64K~#9!?VCMp8)X>Be|P7vIIZIt{6*}f zsTD(DVCaHC?SfR080f%)1Y>6+Wno5QL5e6711l({LMRIipa?}&5LHcuA|Zk+mxLH& zC#~z)O>(h)cMP_Z_}iiW%H{sko!+zF`#<-)=Xvh#H5f8v$bXO_Lx#?(gnmpqH@^^+ zROM4N;cD?Lv_(|YhcoZL{ip5&FgL#tloa(hz*RN$Sdqk+XWzZH*~{}W^*R8Os?Gzh zXPgeE#>W7NY{W?IWJgVk_7!lYm**q)9660w0j9>suv*MmEoP=B0sv^Jul4$TdL96+ z>1`*7x(`5Ek$;UC2e~|QE>C15*0(BP>es}noh-|%fAqZ!_Kg7d=m?S|B1s}{*T~r; z;Kk5H#r{%i^=uI^D5@mjW_DT5FG5@az>*@VGrZ$it0mxO zc3KjIyJ%ePn)&|92D~9D;tJnnUZ^3Ubmi^CCh*!sOn=>Kl2grx!{@tmSLQX?l2vvK z*d;~0p}?D!1ZZ3a@O0CBA7vK6V?DHcxn2$!Dj(Pl?LJDAh(t+W6mgnWmhRSO{d8U+ zy1arf9Aenz?0gW8F1NksRUmOcN+Fly);~j}^I~1|w_r8m|CrPpTDR-0)|~qLa$sJxa4Sbf;Eq+S@lc>z#yQ!F<0u*-+SwI zT^s)LyF~zI3<6qIfgy`YS4Q`91tSOiuRb8M`R`Lr5Dxk)_OD(4psn96eDRr41qQYg zlyiBan{m>aEC5c&IVQ*a*lpH%r>^->Rnw!p9IzfwvJp?#9g8Kmi6yrg_j#BM__|gFI$bTqPMANg zzkd^3{1r>+i-2~`9}fahmxNPS1x{-Iw2{z~08u>pRCM7vFY7IWF&Xe38bAKqPUnD5 zk<>B(<310nTKr-?(MABOk3aPUgoFNyXZmm(rLNgAMklC;_W^^XMmeS9eSks0fa+;; zib25PmZr%Ff^APez;3fPe2;#bwJRSKt$(8J*AP%pm0tjsSJ&7p9jG_+cS=ihl|s>L z1p%q#_UyBM@2~OghqiAQZ|fF$Ra51iM~T_;zEs}$`N!`QjuFS5QI~t#Y&N?EQIvFL zTv77bZ06p|?VqlH{>jIO1XMTcPT&F%06f4s9VAK>cmiwzF<>1?H!6c^AXzdkQ$<`( zriTFRQCy;#JZ`=o0cCkgGz`(Ff0lJn8n9n7zEwTg%$$Yd`dU2@AOpF2gZ}|D25ekN Sa+Bu(0000 Date: Thu, 23 Jun 2022 16:42:46 +0200 Subject: [PATCH 09/15] Fixed mfas rest path --- server/src/uds/REST/methods/mfas.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/uds/REST/methods/mfas.py b/server/src/uds/REST/methods/mfas.py index 99d0e9d60..f1ec76350 100644 --- a/server/src/uds/REST/methods/mfas.py +++ b/server/src/uds/REST/methods/mfas.py @@ -47,12 +47,11 @@ logger = logging.getLogger(__name__) # Enclosed methods under /item path -class Notifiers(ModelHandler): - path = 'mfa' +class MFA(ModelHandler): model = models.MFA save_fields = ['name', 'comments', 'tags', 'cache_device'] - table_title = _('Notifiers') + table_title = _('Multi Factor Authentication') table_fields = [ {'name': {'title': _('Name'), 'visible': True, 'type': 'iconType'}}, {'type_name': {'title': _('Type')}}, @@ -94,6 +93,7 @@ class Notifiers(ModelHandler): return { 'id': item.uuid, 'name': item.name, + 'cache_device': item.cache_device, 'tags': [tag.tag for tag in item.tags.all()], 'comments': item.comments, 'type': type_.type(), From 098396be879fe87989f412258e9cc16d56b23a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Thu, 23 Jun 2022 16:46:19 +0200 Subject: [PATCH 10/15] Updared admin interface --- .../static/admin/img/icons/authentication.png | Bin 0 -> 710 bytes .../static/admin/img/icons/authenticators.png | Bin 710 -> 1168 bytes .../src/uds/static/admin/img/icons/mfas.png | Bin 0 -> 1353 bytes server/src/uds/static/admin/main.js | 2 +- .../uds/static/admin/translations-fakejs.js | 163 +++++++++--------- server/src/uds/templates/uds/admin/index.html | 2 +- 6 files changed, 86 insertions(+), 81 deletions(-) create mode 100644 server/src/uds/static/admin/img/icons/authentication.png create mode 100755 server/src/uds/static/admin/img/icons/mfas.png diff --git a/server/src/uds/static/admin/img/icons/authentication.png b/server/src/uds/static/admin/img/icons/authentication.png new file mode 100644 index 0000000000000000000000000000000000000000..c138873ace9c467d9d82288d39f32cd659e829fb GIT binary patch literal 710 zcmV;%0y+JOP)+Vo|8L6@@@IZuJd(09Wo@h<{%|6iRXD%XA@9C{#*u*Fr(5R1>vHnh^7E=DO%u z%1r1C%?!yT=Ud*nH_7*%@1AqW91sWu0)ap9fwx4 zL9g4HSB_c%9-e+4VCUJMOg5K#@&Kk%WO66B_(34x1J30BAB+PZ-meUG{_&Hi!;4^^ zaLEUrO?wrvlKz4?BADnEnRW+=0Fnbj@ao0$R18; z-T{G8*;{v)HNgCp;zSXx{yKh>wY#-phy#+y0sgxe*MzA5bK;&mlpGMq0e6-g7-Z)P zmt&h39yMIoq5kJLz|rp3#@v|>(Axb7&}uet9cLoQw;D&s++24pGzawi{nwT~bFbI! ziLtuYy54TKp83}U9WgyYe3l}-3Br#6`%zidR%Ies(=p*o*OPk*gJOa s2mX4*E0N3K0NB86N*&M!x@T?r2QYK3{48c{O8@`>07*qoM6N<$f)&3y`Tzg` literal 0 HcmV?d00001 diff --git a/server/src/uds/static/admin/img/icons/authenticators.png b/server/src/uds/static/admin/img/icons/authenticators.png index c138873ace9c467d9d82288d39f32cd659e829fb..ece1ae0fa4577b5eb294a0be7e7c350b7f3daa54 100644 GIT binary patch delta 1121 zcmV-n1fKiG1&|4lBo78+OGiWi{{a60|De66laV1Ff93`j4GkK$@4L7F00bRLL_t(| z+U=V?Y#U`5$A5R{uQ;va82m--q^T7{U|{HiK<$E5kQnH|f&^n{B4uGlVnK>169X$K zr9vnR44?=_R1j57g(4w>E0=^AV<)Za*iCY=eRmADlla@A{>tV4)1BV4-uplIyXSfC z?ll-Pe`LszAw!1Fs)T+_Iyb)%lvL$YG~sITEVM;b(}y$fzx}7~128wg5R?@4H^5aj z^jML^muKI-w%N<`G4(nClB&)Fu4kMMrpCtrh-}12?PNzyiuM(7rI+U;_8d8lR{^HR z$FN$=SS@CzCISFxsIT?WL~HtpmgQ!!zS?B ze?&~(YLZjUhr{Q)b64gy*pgLt3)m$^yrICGl>}&92Jm##d>>^Nz+*kMd%0c?7%Csw z4edTklZZq~UlehgRhI77X8m+tAiBJQFC1dnXHsaf?*1;8MnyfIhm(cgRPbzK|&^1DRQfw{6>3xJ%Bt#)%juLwGE4k%+^PpKwj zx*?#TG=5f46!p~QfHPkOP8@)M&)s;;>(+k&LIFQPzo)MGP*u~TyBx3{PqGnD)*Xu_ zw}~aU8TWaZ4EVZM1v*_V#7>w$f3Ck1Tl^JE=!<}M%^wc}P?v;LR|QUL{Oz< zF-9k-hxY-4q((WV<9&cZz<}y$bBaO0;g+V!2!d@-KEQ6XHhhnMnzbt*e-y2v?bi@c zP?cW*mRHxrUVT5CA;DIUOWQ z6?g({0Wn}5NH;2jX&_lLM=euaPNs(d>``2znLKX39sy-}N;C}7r+=1pP#UmbGQL$k n*vy=T;`&-W5Fi7&dV~J~GX`v2NOF_s00000NkvXXu0mjfr_mPV delta 686 zcmV;f0#W^t3C0DGB!3BTNLh0L01ejw01ejxLMWSf00007bV*G`2jKw}11>r|n&mhE z00L!6L_t(|+U=UpY79fwx4L9g4HSB_c%9-e+4VCUJMOg5K#@&Kk%WO66B z_(34x1J30BAAgJkAKtGFb^h^_r^Ab2o^Z(ro=tldu#*0QI3k$n6`6JihyaoULh$Ov z^HdXj^Y)!MAeJf+rsTLGs&mBwNhv$(yDe29=}z$a)#6Bg@VA4q^Z{exfVd+eonTrV zkhXq693TRS0LfH=QFVlI=OA&wxI{v7fCwN0hyWsh2!9{~hyWtMxOReRe?ue=IIjaH z?H?d{mKzvk=L(l&n-?B6T-Txg=QqI7?$*ZKnGVp}{Rq%% zHgFwhB7exY8b`<6Tz4%r2lV^>*OonVuh;G5>xZ3*vAWi}-fp&@`PTy;uT_4OwV^-R z_Uuj5R7JxutdtXP_j}#->d%8m<^8=cp*g_ACEx~d4OjrODNL9y&;%;Lci<~fi&_S2 zK-nYR1~MrXpamRyTxyZ3fDa3v8!krJJ9h2|{wI3GE0N3K0NB86N*&M!x@T?r2QYK3 U{48c{O8@`>07*qoM6N<$f^(cX=Kufz diff --git a/server/src/uds/static/admin/img/icons/mfas.png b/server/src/uds/static/admin/img/icons/mfas.png new file mode 100755 index 0000000000000000000000000000000000000000..0c67f0ad6bd65b65c6ce87c236b8352baef6362b GIT binary patch literal 1353 zcmV-P1-AN$P)Xq7YEq&&fZQ}Kq0XbWCyB>1p7Fd`I4ySV(8t)0$DOnDz2jg1J@?#m zA9Dv{#E20i#^VbiY=GI>*<>T7ekvfm1HsgQ@?HxBzD`>D*`=kWMwmc}u$eT{>bazx z`Y5Z6BTC{xTJL+_v{}HROdm?fYH8;`m90(od0HP=X90^Tkzj|q_w8>U!GolJoc};QaaXT)1%I@f`w! zARq`rG=@MwaQgJ==y<^UU;WruGM;($jo~Js*9pecU`#+vKuka+x5M4w`VDN?q~V&_ zu7T~E2tl0**#{|yI(B??38)yixKWvJE6Yd;j!zzJ3Ng?z%o~hlpB=p+V0$L3+G0m} zE}d>&?vds;mVJA)2nYyRDbM2totv1+RJuJGK|pj@aNO$X5U{>ez_7Khb${zsbf^7T zUlv7N>ks_Ejy?f3TVs8vuy?)Fps=lVkdT%{Ok;rnKe_~Xfy0gRJORP|RbtdS%Elz9 z>Ay#pfK_b~+cO{N*?Sdm2TH=F;ci8X0LQnvUcN%bxYe5(#9oiiI$+COV^v$k@q1@r zLQsp20@JaXfUhTgS2BL?_^6Fm=jSZtU^R}w@)z_QjxV=wR^By5<*-QUM@lc;hM z&#eGYj}`%&n;TrcI)|!`qpB*3s-i06sH#Fbow++bs<}yI(HSiTc)mwIzlh^FXj%nL ztNd4)l$n~I;guI&LU$VIP6Jg=Qq>n2S6>_r4_IElhS?(Z)(sJv4C~ul{B^z1wn$PF zHdTEgS_-JUE)~0ugvgQX7=i$%X|TM!$MQIvX_5e3D;617RHhG4F<06^k&_(GX1RRx z+u#Ul~bXFmsU&QzJSmU?8{19Ni@F$schKU0?G^XyYX`8;~Lw08i@1|`w5l@_?XFb6YFA|(=x$w_jl)Np%1 zLKG<)?c-Z7m$^B2<^LNG;JQ$^?oovZ#UftdQ*GF+>eb;L0)@(L!~hgYLf>(*Eek3d zo~}R4;(vDu*nV0>aSdi>hTH_rIzCVZFifaaz<-22y=}J>0L?h7tDqi;z$~!64cj~6 zVz@3O5}hVls}8pZ^rZ233~>Mu``!50pF746C%fNf{rSVQ{B-I}*Sg^1mjs`E(NscI z&I7vjyd;Xqd)y@TgMc8o&yiWp07+_kLZbI0HuSZNV=uoJ+_@C_+flW@dL7GxEOTPM zdD^s9+N3c5t1vVQII*JldBo~N?g0_RzMTiO-Wcz8Q+!b9g#y-m&l|Y?_`U~F+;;`I zu5-z(=^r#dnt1T<2Ez2X?|Ybf71wbu?fWdCD9WKHo;rF_PNm)yMd`pGWb6Chj$_;3 zSN>T!S*z7b`%1tro(E18),d&&(r.weChat=!0),i.canvasSupported=!!document.createElement("canvas").getContext,i.svgSupported="undefined"!=typeof SVGRect,i.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,i.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),i.domSupported="undefined"!=typeof document;var p=document.documentElement.style;i.transform3dSupported=(r.ie&&"transition"in p||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in p)&&!("OTransition"in p),i.transformSupported=i.transform3dSupported||r.ie&&+r.version>=9}(navigator.userAgent,fr);var Ze=fr,Fs={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},HP={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},Sp=Object.prototype.toString,Uc=Array.prototype,Ob=Uc.forEach,AX=Uc.filter,Ib=Uc.slice,gn=Uc.map,gk=function(){}.constructor,Rb=gk?gk.prototype:null,Hu={};function mk(o,i){Hu[o]=i}var zP=2311;function qe(){return zP++}function Ns(){for(var o=[],i=0;i>1)%2;d.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",s[v]+":0",u[g]+":0",s[1-v]+":auto",u[1-g]+":auto",""].join("!important;"),o.appendChild(d),r.push(d)}return r}(i,f),f,u);if(p)return p(o,r,s),!0}return!1}function nr(o){return"CANVAS"===o.nodeName.toUpperCase()}var Dp="undefined"!=typeof window&&!!window.addEventListener,Mk=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Qg=[];function Gb(o,i,r,s){return r=r||{},s||!Ze.canvasSupported?eO(o,i,r):Ze.browser.firefox&&null!=i.layerX&&i.layerX!==i.offsetX?(r.zrX=i.layerX,r.zrY=i.layerY):null!=i.offsetX?(r.zrX=i.offsetX,r.zrY=i.offsetY):eO(o,i,r),r}function eO(o,i,r){if(Ze.domSupported&&o.getBoundingClientRect){var s=i.clientX,u=i.clientY;if(nr(o)){var f=o.getBoundingClientRect();return r.zrX=s-f.left,void(r.zrY=u-f.top)}if(JP(Qg,o,s,u))return r.zrX=Qg[0],void(r.zrY=Qg[1])}r.zrX=r.zrY=0}function zs(o){return o||window.event}function ca(o,i,r){if(null!=(i=zs(i)).zrX)return i;var s=i.type;if(s&&s.indexOf("touch")>=0){var d="touchend"!==s?i.targetTouches[0]:i.changedTouches[0];d&&Gb(o,d,i,r)}else{Gb(o,i,i,r);var f=function(o){var i=o.wheelDelta;if(i)return i;var r=o.deltaX,s=o.deltaY;return null==r||null==s?i:3*Math.abs(0!==s?s:r)*(s>0?-1:s<0?1:r>0?-1:1)}(i);i.zrDelta=f?f/120:-(i.detail||0)/3}var p=i.button;return null==i.which&&void 0!==p&&Mk.test(i.type)&&(i.which=1&p?1:2&p?3:4&p?2:0),i}function ke(o,i,r,s){Dp?o.addEventListener(i,r,s):o.attachEvent("on"+i,r)}function tO(o,i,r,s){Dp?o.removeEventListener(i,r,s):o.detachEvent("on"+i,r)}var Vl=Dp?function(o){o.preventDefault(),o.stopPropagation(),o.cancelBubble=!0}:function(o){o.returnValue=!1,o.cancelBubble=!0};function xk(o){return 2===o.which||3===o.which}var bt=function(){function o(){this._track=[]}return o.prototype.recognize=function(i,r,s){return this._doTrack(i,r,s),this._recognize(i)},o.prototype.clear=function(){return this._track.length=0,this},o.prototype._doTrack=function(i,r,s){var u=i.touches;if(u){for(var f={points:[],touches:[],target:r,event:i},d=0,p=u.length;d1&&u&&u.length>1){var d=nO(u)/nO(f);!isFinite(d)&&(d=1),r.pinchScale=d;var p=[((o=u)[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2];return r.pinchX=p[0],r.pinchY=p[1],{type:"pinch",target:i[0].target,event:r}}}}};function Kc(){Vl(this.event)}var wd=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.handler=null,r}return Ln(i,o),i.prototype.dispose=function(){},i.prototype.setCursor=function(){},i}(Bs),fa=function(i,r){this.x=i,this.y=r},AH=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],xo=function(o){function i(r,s,u,f){var d=o.call(this)||this;return d._hovered=new fa(0,0),d.storage=r,d.painter=s,d.painterRoot=f,u=u||new wd,d.proxy=null,d.setHandlerProxy(u),d._draggingMgr=new $g(d),d}return Ln(i,o),i.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(q(AH,function(s){r.on&&r.on(s,this[s],this)},this),r.handler=this),this.proxy=r},i.prototype.mousemove=function(r){var s=r.zrX,u=r.zrY,f=mn(this,s,u),d=this._hovered,p=d.target;p&&!p.__zr&&(p=(d=this.findHover(d.x,d.y)).target);var v=this._hovered=f?new fa(s,u):this.findHover(s,u),g=v.target,m=this.proxy;m.setCursor&&m.setCursor(g?g.cursor:"default"),p&&g!==p&&this.dispatchToElement(d,"mouseout",r),this.dispatchToElement(v,"mousemove",r),g&&g!==p&&this.dispatchToElement(v,"mouseover",r)},i.prototype.mouseout=function(r){var s=r.zrEventControl;"only_globalout"!==s&&this.dispatchToElement(this._hovered,"mouseout",r),"no_globalout"!==s&&this.trigger("globalout",{type:"globalout",event:r})},i.prototype.resize=function(){this._hovered=new fa(0,0)},i.prototype.dispatch=function(r,s){var u=this[r];u&&u.call(this,s)},i.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},i.prototype.setCursorStyle=function(r){var s=this.proxy;s.setCursor&&s.setCursor(r)},i.prototype.dispatchToElement=function(r,s,u){var f=(r=r||{}).target;if(!f||!f.silent){for(var d="on"+s,p=function(o,i,r){return{type:o,event:r,target:i.target,topTarget:i.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Kc}}(s,r,u);f&&(f[d]&&(p.cancelBubble=!!f[d].call(f,p)),f.trigger(s,p),f=f.__hostTarget?f.__hostTarget:f.parent,!p.cancelBubble););p.cancelBubble||(this.trigger(s,p),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(v){"function"==typeof v[d]&&v[d].call(v,p),v.trigger&&v.trigger(s,p)}))}},i.prototype.findHover=function(r,s,u){for(var f=this.storage.getDisplayList(),d=new fa(r,s),p=f.length-1;p>=0;p--){var v=void 0;if(f[p]!==u&&!f[p].ignore&&(v=st(f[p],r,s))&&(!d.topTarget&&(d.topTarget=f[p]),"silent"!==v)){d.target=f[p];break}}return d},i.prototype.processGesture=function(r,s){this._gestureMgr||(this._gestureMgr=new bt);var u=this._gestureMgr;"start"===s&&u.clear();var f=u.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if("end"===s&&u.clear(),f){var d=f.type;r.gestureEvent=d;var p=new fa;p.target=f.target,this.dispatchToElement(p,d,f.event)}},i}(Bs);function st(o,i,r){if(o[o.rectHover?"rectContain":"contain"](i,r)){for(var s=o,u=void 0,f=!1;s;){if(s.ignoreClip&&(f=!0),!f){var d=s.getClipPath();if(d&&!d.contain(i,r))return!1;s.silent&&(u=!0)}s=s.__hostTarget||s.parent}return!u||"silent"}return!1}function mn(o,i,r){var s=o.painter;return i<0||i>s.getWidth()||r<0||r>s.getHeight()}q(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(o){xo.prototype[o]=function(i){var f,d,r=i.zrX,s=i.zrY,u=mn(this,r,s);if(("mouseup"!==o||!u)&&(d=(f=this.findHover(r,s)).target),"mousedown"===o)this._downEl=d,this._downPoint=[i.zrX,i.zrY],this._upEl=d;else if("mouseup"===o)this._upEl=d;else if("click"===o){if(this._downEl!==this._upEl||!this._downPoint||Vs(this._downPoint,[i.zrX,i.zrY])>4)return;this._downPoint=null}this.dispatchToElement(f,o,i)}});var Pr=xo;function Zr(o,i,r,s){var u=i+1;if(u===r)return 1;if(s(o[u++],o[i])<0){for(;u=0;)u++;return u-i}function kd(o,i,r,s,u){for(s===i&&s++;s>>1])<0?p=v:d=v+1;var g=s-d;switch(g){case 3:o[d+3]=o[d+2];case 2:o[d+2]=o[d+1];case 1:o[d+1]=o[d];break;default:for(;g>0;)o[d+g]=o[d+g-1],g--}o[d]=f}}function rn(o,i,r,s,u,f){var d=0,p=0,v=1;if(f(o,i[r+u])>0){for(p=s-u;v0;)d=v,(v=1+(v<<1))<=0&&(v=p);v>p&&(v=p),d+=u,v+=u}else{for(p=u+1;vp&&(v=p);var g=d;d=u-v,v=u-g}for(d++;d>>1);f(o,i[r+m])>0?d=m+1:v=m}return v}function Ap(o,i,r,s,u,f){var d=0,p=0,v=1;if(f(o,i[r+u])<0){for(p=u+1;vp&&(v=p);var g=d;d=u-v,v=u-g}else{for(p=s-u;v=0;)d=v,(v=1+(v<<1))<=0&&(v=p);v>p&&(v=p),d+=u,v+=u}for(d++;d>>1);f(o,i[r+m])<0?v=m:d=m+1}return v}function em(o,i,r,s){r||(r=0),s||(s=o.length);var u=s-r;if(!(u<2)){var f=0;if(u<32)return void kd(o,r,s,r+(f=Zr(o,r,s,i)),i);var d=function(o,i){var d,p,r=7,v=0,g=[];function w(x){var T=d[x],P=p[x],O=d[x+1],R=p[x+1];p[x]=P+R,x===v-3&&(d[x+1]=d[x+2],p[x+1]=p[x+2]),v--;var V=Ap(o[O],o,T,P,0,i);T+=V,0!=(P-=V)&&0!==(R=rn(o[T+P-1],o,O,R,R-1,i))&&(P<=R?function(x,T,P,O){var R=0;for(R=0;R=7||Z>=7);if($)break;j<0&&(j=0),j+=2}if((r=j)<1&&(r=1),1===T){for(R=0;R=0;R--)o[X+R]=o[j+R];if(0===T){ee=!0;break}}if(o[U--]=g[B--],1==--O){ee=!0;break}if(0!=(te=O-rn(o[V],g,0,O,O-1,i))){for(O-=te,X=1+(U-=te),j=1+(B-=te),R=0;R=7||te>=7);if(ee)break;Z<0&&(Z=0),Z+=2}if((r=Z)<1&&(r=1),1===O){for(X=1+(U-=T),j=1+(V-=T),R=T-1;R>=0;R--)o[X+R]=o[j+R];o[U]=g[B]}else{if(0===O)throw new Error;for(j=U-(O-1),R=0;R=0;R--)o[X+R]=o[j+R];o[U]=g[B]}else for(j=U-(O-1),R=0;R1;){var x=v-2;if(x>=1&&p[x-1]<=p[x]+p[x+1]||x>=2&&p[x-2]<=p[x]+p[x-1])p[x-1]p[x+1])break;w(x)}},forceMergeRuns:function(){for(;v>1;){var x=v-2;x>0&&p[x-1]=32;)i|=1&o,o>>=1;return o+i}(u);do{if((f=Zr(o,r,s,i))p&&(v=p),kd(o,r,r+v,r+f,i),f=v}d.pushRun(r,f),d.mergeRuns(),u-=f,r+=f}while(0!==u);d.forceMergeRuns()}}var Md=!1;function To(){Md||(Md=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hr(o,i){return o.zlevel===i.zlevel?o.z===i.z?o.z2-i.z2:o.z-i.z:o.zlevel-i.zlevel}var PH=function(){function o(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hr}return o.prototype.traverse=function(i,r){for(var s=0;s0&&(m.__clipPaths=[]),isNaN(m.z)&&(To(),m.z=0),isNaN(m.z2)&&(To(),m.z2=0),isNaN(m.zlevel)&&(To(),m.zlevel=0),this._displayList[this._displayListLen++]=m}var y=i.getDecalElement&&i.getDecalElement();y&&this._updateAndAddDisplayable(y,r,s);var b=i.getTextGuideLine();b&&this._updateAndAddDisplayable(b,r,s);var w=i.getTextContent();w&&this._updateAndAddDisplayable(w,r,s)}},o.prototype.addRoot=function(i){i.__zr&&i.__zr.storage===this||this._roots.push(i)},o.prototype.delRoot=function(i){if(i instanceof Array)for(var r=0,s=i.length;r=0&&this._roots.splice(u,1)}},o.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},o.prototype.getRoots=function(){return this._roots},o.prototype.dispose=function(){this._displayList=null,this._roots=null},o}(),nm="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(o){return setTimeout(o,16)},$c={linear:function(i){return i},quadraticIn:function(i){return i*i},quadraticOut:function(i){return i*(2-i)},quadraticInOut:function(i){return(i*=2)<1?.5*i*i:-.5*(--i*(i-2)-1)},cubicIn:function(i){return i*i*i},cubicOut:function(i){return--i*i*i+1},cubicInOut:function(i){return(i*=2)<1?.5*i*i*i:.5*((i-=2)*i*i+2)},quarticIn:function(i){return i*i*i*i},quarticOut:function(i){return 1- --i*i*i*i},quarticInOut:function(i){return(i*=2)<1?.5*i*i*i*i:-.5*((i-=2)*i*i*i-2)},quinticIn:function(i){return i*i*i*i*i},quinticOut:function(i){return--i*i*i*i*i+1},quinticInOut:function(i){return(i*=2)<1?.5*i*i*i*i*i:.5*((i-=2)*i*i*i*i+2)},sinusoidalIn:function(i){return 1-Math.cos(i*Math.PI/2)},sinusoidalOut:function(i){return Math.sin(i*Math.PI/2)},sinusoidalInOut:function(i){return.5*(1-Math.cos(Math.PI*i))},exponentialIn:function(i){return 0===i?0:Math.pow(1024,i-1)},exponentialOut:function(i){return 1===i?1:1-Math.pow(2,-10*i)},exponentialInOut:function(i){return 0===i?0:1===i?1:(i*=2)<1?.5*Math.pow(1024,i-1):.5*(2-Math.pow(2,-10*(i-1)))},circularIn:function(i){return 1-Math.sqrt(1-i*i)},circularOut:function(i){return Math.sqrt(1- --i*i)},circularInOut:function(i){return(i*=2)<1?-.5*(Math.sqrt(1-i*i)-1):.5*(Math.sqrt(1-(i-=2)*i)+1)},elasticIn:function(i){var r,s=.1;return 0===i?0:1===i?1:(!s||s<1?(s=1,r=.1):r=.4*Math.asin(1/s)/(2*Math.PI),-s*Math.pow(2,10*(i-=1))*Math.sin((i-r)*(2*Math.PI)/.4))},elasticOut:function(i){var r,s=.1;return 0===i?0:1===i?1:(!s||s<1?(s=1,r=.1):r=.4*Math.asin(1/s)/(2*Math.PI),s*Math.pow(2,-10*i)*Math.sin((i-r)*(2*Math.PI)/.4)+1)},elasticInOut:function(i){var r,s=.1;return 0===i?0:1===i?1:(!s||s<1?(s=1,r=.1):r=.4*Math.asin(1/s)/(2*Math.PI),(i*=2)<1?s*Math.pow(2,10*(i-=1))*Math.sin((i-r)*(2*Math.PI)/.4)*-.5:s*Math.pow(2,-10*(i-=1))*Math.sin((i-r)*(2*Math.PI)/.4)*.5+1)},backIn:function(i){var r=1.70158;return i*i*((r+1)*i-r)},backOut:function(i){var r=1.70158;return--i*i*((r+1)*i+r)+1},backInOut:function(i){var r=2.5949095;return(i*=2)<1?i*i*((r+1)*i-r)*.5:.5*((i-=2)*i*((r+1)*i+r)+2)},bounceIn:function(i){return 1-$c.bounceOut(1-i)},bounceOut:function(i){return i<1/2.75?7.5625*i*i:i<2/2.75?7.5625*(i-=1.5/2.75)*i+.75:i<2.5/2.75?7.5625*(i-=2.25/2.75)*i+.9375:7.5625*(i-=2.625/2.75)*i+.984375},bounceInOut:function(i){return i<.5?.5*$c.bounceIn(2*i):.5*$c.bounceOut(2*i-1)+.5}},jb=$c,da=function(){function o(i){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=i.life||1e3,this._delay=i.delay||0,this.loop=null!=i.loop&&i.loop,this.gap=i.gap||0,this.easing=i.easing||"linear",this.onframe=i.onframe,this.ondestroy=i.ondestroy,this.onrestart=i.onrestart}return o.prototype.step=function(i,r){if(this._initialized||(this._startTime=i+this._delay,this._initialized=!0),!this._paused){var s=(i-this._startTime-this._pausedTime)/this._life;s<0&&(s=0),s=Math.min(s,1);var u=this.easing,f="string"==typeof u?jb[u]:u,d="function"==typeof f?f(s):s;if(this.onframe&&this.onframe(d),1===s){if(!this.loop)return!0;this._restart(i),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=r},o.prototype._restart=function(i){this._startTime=i-(i-this._startTime-this._pausedTime)%this._life+this.gap,this._pausedTime=0},o.prototype.pause=function(){this._paused=!0},o.prototype.resume=function(){this._paused=!1},o}(),iO=function(i){this.value=i},Hl=function(){function o(){this._len=0}return o.prototype.insert=function(i){var r=new iO(i);return this.insertEntry(r),r},o.prototype.insertEntry=function(i){this.head?(this.tail.next=i,i.prev=this.tail,i.next=null,this.tail=i):this.head=this.tail=i,this._len++},o.prototype.remove=function(i){var r=i.prev,s=i.next;r?r.next=s:this.head=s,s?s.prev=r:this.tail=r,i.next=i.prev=null,this._len--},o.prototype.len=function(){return this._len},o.prototype.clear=function(){this.head=this.tail=null,this._len=0},o}(),Td=function(){function o(i){this._list=new Hl,this._maxSize=10,this._map={},this._maxSize=i}return o.prototype.put=function(i,r){var s=this._list,u=this._map,f=null;if(null==u[i]){var d=s.len(),p=this._lastRemovedEntry;if(d>=this._maxSize&&d>0){var v=s.head;s.remove(v),delete u[v.key],f=v.value,this._lastRemovedEntry=v}p?p.value=r:p=new iO(r),p.key=i,s.insertEntry(p),u[i]=p}return f},o.prototype.get=function(i){var r=this._map[i],s=this._list;if(null!=r)return r!==s.tail&&(s.remove(r),s.insertEntry(r)),r.value},o.prototype.clear=function(){this._list.clear(),this._map={}},o.prototype.len=function(){return this._list.len()},o}(),rm={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function to(o){return(o=Math.round(o))<0?0:o>255?255:o}function im(o){return o<0?0:o>1?1:o}function aO(o){var i=o;return i.length&&"%"===i.charAt(i.length-1)?to(parseFloat(i)/100*255):to(parseInt(i,10))}function Pp(o){var i=o;return i.length&&"%"===i.charAt(i.length-1)?im(parseFloat(i)/100):im(parseFloat(i))}function Tk(o,i,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?o+(i-o)*r*6:2*r<1?i:3*r<2?o+(i-o)*(2/3-r)*6:o}function Dd(o,i,r){return o+(i-o)*r}function Ws(o,i,r,s,u){return o[0]=i,o[1]=r,o[2]=s,o[3]=u,o}function oO(o,i){return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o}var OH=new Td(20),Dk=null;function am(o,i){Dk&&oO(Dk,i),Dk=OH.put(o,Dk||i.slice())}function La(o,i){if(o){i=i||[];var r=OH.get(o);if(r)return oO(i,r);var s=(o+="").replace(/ /g,"").toLowerCase();if(s in rm)return oO(i,rm[s]),am(o,i),i;var f,u=s.length;if("#"===s.charAt(0))return 4===u||5===u?(f=parseInt(s.slice(1,4),16))>=0&&f<=4095?(Ws(i,(3840&f)>>4|(3840&f)>>8,240&f|(240&f)>>4,15&f|(15&f)<<4,5===u?parseInt(s.slice(4),16)/15:1),am(o,i),i):void Ws(i,0,0,0,1):7===u||9===u?(f=parseInt(s.slice(1,7),16))>=0&&f<=16777215?(Ws(i,(16711680&f)>>16,(65280&f)>>8,255&f,9===u?parseInt(s.slice(7),16)/255:1),am(o,i),i):void Ws(i,0,0,0,1):void 0;var d=s.indexOf("("),p=s.indexOf(")");if(-1!==d&&p+1===u){var v=s.substr(0,d),g=s.substr(d+1,p-(d+1)).split(","),m=1;switch(v){case"rgba":if(4!==g.length)return 3===g.length?Ws(i,+g[0],+g[1],+g[2],1):Ws(i,0,0,0,1);m=Pp(g.pop());case"rgb":return 3!==g.length?void Ws(i,0,0,0,1):(Ws(i,aO(g[0]),aO(g[1]),aO(g[2]),m),am(o,i),i);case"hsla":return 4!==g.length?void Ws(i,0,0,0,1):(g[3]=Pp(g[3]),sO(g,i),am(o,i),i);case"hsl":return 3!==g.length?void Ws(i,0,0,0,1):(sO(g,i),am(o,i),i);default:return}}Ws(i,0,0,0,1)}}function sO(o,i){var r=(parseFloat(o[0])%360+360)%360/360,s=Pp(o[1]),u=Pp(o[2]),f=u<=.5?u*(s+1):u+s-u*s,d=2*u-f;return Ws(i=i||[],to(255*Tk(d,f,r+1/3)),to(255*Tk(d,f,r)),to(255*Tk(d,f,r-1/3)),1),4===o.length&&(i[3]=o[3]),i}function lO(o,i){var r=La(o);if(r){for(var s=0;s<3;s++)r[s]=i<0?r[s]*(1-i)|0:(255-r[s])*i+r[s]|0,r[s]>255?r[s]=255:r[s]<0&&(r[s]=0);return zl(r,4===r.length?"rgba":"rgb")}}function uO(o){var i=La(o);if(i)return((1<<24)+(i[0]<<16)+(i[1]<<8)+ +i[2]).toString(16).slice(1)}function Wb(o,i,r){if(i&&i.length&&o>=0&&o<=1){r=r||[];var s=o*(i.length-1),u=Math.floor(s),f=Math.ceil(s),d=i[u],p=i[f],v=s-u;return r[0]=to(Dd(d[0],p[0],v)),r[1]=to(Dd(d[1],p[1],v)),r[2]=to(Dd(d[2],p[2],v)),r[3]=im(Dd(d[3],p[3],v)),r}}var FX=Wb;function IH(o,i,r){if(i&&i.length&&o>=0&&o<=1){var s=o*(i.length-1),u=Math.floor(s),f=Math.ceil(s),d=La(i[u]),p=La(i[f]),v=s-u,g=zl([to(Dd(d[0],p[0],v)),to(Dd(d[1],p[1],v)),to(Dd(d[2],p[2],v)),im(Dd(d[3],p[3],v))],"rgba");return r?{color:g,leftIndex:u,rightIndex:f,value:s}:g}}var cO=IH;function Qc(o,i,r,s){var u=La(o);if(o)return u=function(o){if(o){var v,g,i=o[0]/255,r=o[1]/255,s=o[2]/255,u=Math.min(i,r,s),f=Math.max(i,r,s),d=f-u,p=(f+u)/2;if(0===d)v=0,g=0;else{g=p<.5?d/(f+u):d/(2-f-u);var m=((f-i)/6+d/2)/d,y=((f-r)/6+d/2)/d,b=((f-s)/6+d/2)/d;i===f?v=b-y:r===f?v=1/3+m-b:s===f&&(v=2/3+y-m),v<0&&(v+=1),v>1&&(v-=1)}var w=[360*v,g,p];return null!=o[3]&&w.push(o[3]),w}}(u),null!=i&&(u[0]=function(o){return(o=Math.round(o))<0?0:o>360?360:o}(i)),null!=r&&(u[1]=Pp(r)),null!=s&&(u[2]=Pp(s)),zl(sO(u),"rgba")}function Yb(o,i){var r=La(o);if(r&&null!=i)return r[3]=im(i),zl(r,"rgba")}function zl(o,i){if(o&&o.length){var r=o[0]+","+o[1]+","+o[2];return("rgba"===i||"hsva"===i||"hsla"===i)&&(r+=","+o[3]),i+"("+r+")"}}function qb(o,i){var r=La(o);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*i:0}function Ad(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"}var Xb=Array.prototype.slice;function an(o,i,r){return(i-o)*r+o}function dO(o,i,r,s){for(var u=i.length,f=0;fd)s.length=d;else for(var v=f;v=2&&this.interpolable&&this.maxTime>0},o.prototype.getAdditiveTrack=function(){return this._additiveTrack},o.prototype.addKeyframe=function(i,r){i>=this.maxTime?this.maxTime=i:this._needsSort=!0;var s=this.keyframes,u=s.length;if(this.interpolable)if(Pa(r)){var f=function(o){return Pa(o&&o[0])?2:1}(r);if(u>0&&this.arrDim!==f)return void(this.interpolable=!1);if(1===f&&"number"!=typeof r[0]||2===f&&"number"!=typeof r[0][0])return void(this.interpolable=!1);if(u>0){var d=s[u-1];this._isAllValueEqual&&(1===f&&Zb(r,d.value)||(this._isAllValueEqual=!1))}this.arrDim=f}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"==typeof r){var p=La(r);p?(r=p,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof r||isNaN(r))return void(this.interpolable=!1);this._isAllValueEqual&&u>0&&(d=s[u-1],(this.isValueColor&&!Zb(d.value,r)||d.value!==r)&&(this._isAllValueEqual=!1))}var v={time:i,value:r,percent:0};return this.keyframes.push(v),v},o.prototype.prepare=function(i){var r=this.keyframes;this._needsSort&&r.sort(function(v,g){return v.time-g.time});for(var s=this.arrDim,u=r.length,f=r[u-1],d=0;d0&&d!==u-1&&LH(r[d].value,f.value,s);if(i&&this.needsAnimate()&&i.needsAnimate()&&s===i.arrDim&&this.isValueColor===i.isValueColor&&!i._finished){this._additiveTrack=i;var p=r[0].value;for(d=0;d=0&&!(f[m].percent<=r);m--);m=Math.min(m,d-2)}else{for(m=this._lastFrame;mr);m++);m=Math.min(m-1,d-2)}var b=f[m+1],w=f[m];if(w&&b){this._lastFrame=m,this._lastFramePercent=r;var S=b.percent-w.percent;if(0!==S){var M=(r-w.percent)/S,x=s?this._additiveValue:g?Pd:i[p];if((v>0||g)&&!x&&(x=this._additiveValue=[]),this.useSpline){var T=f[m][u],P=f[0===m?m:m-1][u],O=f[m>d-2?d-1:m+1][u],R=f[m>d-3?d-1:m+2][u];if(v>0)1===v?Do(x,P,T,O,R,M,M*M,M*M*M):function(o,i,r,s,u,f,d,p){for(var v=i.length,g=i[0].length,m=0;m0?1===v?dO(x,w[u],b[u],M):function(o,i,r,s){for(var u=i.length,f=u&&i[0].length,d=0;d.5?i:o}(w[u],b[u],M),s?this._additiveValue=V:i[p]=V);s&&this._addToTarget(i)}}}},o.prototype._addToTarget=function(i){var r=this.arrDim,s=this.propName,u=this._additiveValue;0===r?this.isValueColor?(La(i[s],Pd),om(Pd,Pd,u,1),i[s]=Ed(Pd)):i[s]=i[s]+u:1===r?om(i[s],i[s],u,1):2===r&&Ak(i[s],i[s],u,1)},o}(),Pk=function(){function o(i,r,s){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=i,this._loop=r,r&&s?Ns("Can' use additive animation on looped animation."):this._additiveAnimators=s}return o.prototype.getTarget=function(){return this._target},o.prototype.changeTarget=function(i){this._target=i},o.prototype.when=function(i,r){return this.whenWithKeys(i,r,_n(r))},o.prototype.whenWithKeys=function(i,r,s){for(var u=this._tracks,f=0;f0)){this._started=1;for(var s=this,u=[],f=0;f1){var p=d.pop();f.addKeyframe(p.time,i[u]),f.prepare(f.getAdditiveTrack())}}}},o}(),NH=function(o){function i(r){var s=o.call(this)||this;return s._running=!1,s._time=0,s._pausedTime=0,s._pauseStart=0,s._paused=!1,s.stage=(r=r||{}).stage||{},s.onframe=r.onframe||function(){},s}return Ln(i,o),i.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._clipsHead?(this._clipsTail.next=r,r.prev=this._clipsTail,r.next=null,this._clipsTail=r):this._clipsHead=this._clipsTail=r,r.animation=this},i.prototype.addAnimator=function(r){r.animation=this;var s=r.getClip();s&&this.addClip(s)},i.prototype.removeClip=function(r){if(r.animation){var s=r.prev,u=r.next;s?s.next=u:this._clipsHead=u,u?u.prev=s:this._clipsTail=s,r.next=r.prev=r.animation=null}},i.prototype.removeAnimator=function(r){var s=r.getClip();s&&this.removeClip(s),r.animation=null},i.prototype.update=function(r){for(var s=(new Date).getTime()-this._pausedTime,u=s-this._time,f=this._clipsHead;f;){var d=f.next;f.step(s,u)&&(f.ondestroy&&f.ondestroy(),this.removeClip(f)),f=d}this._time=s,r||(this.onframe(u),this.trigger("frame",u),this.stage.update&&this.stage.update())},i.prototype._startLoop=function(){var r=this;this._running=!0,nm(function s(){r._running&&(nm(s),!r._paused&&r.update())})},i.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},i.prototype.stop=function(){this._running=!1},i.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},i.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},i.prototype.clear=function(){for(var r=this._clipsHead;r;){var s=r.next;r.prev=r.next=r.animation=null,r=s}this._clipsHead=this._clipsTail=null},i.prototype.isFinished=function(){return null==this._clipsHead},i.prototype.animate=function(r,s){s=s||{},this.start();var u=new Pk(r,s.loop);return this.addAnimator(u),u},i}(Bs),Ok=Ze.domSupported,vO=(r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:o=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:Te(o,function(u){var f=u.replace("mouse","pointer");return r.hasOwnProperty(f)?f:u})}),sm_mouse=["mousemove","mouseup"],sm_pointer=["pointermove","pointerup"],Ao=!1;function Ik(o){var i=o.pointerType;return"pen"===i||"touch"===i}function Jc(o){o&&(o.zrByTouch=!0)}function Lk(o,i){for(var r=i,s=!1;r&&9!==r.nodeType&&!(s=r.domBelongToZr||r!==i&&r===o.painterRoot);)r=r.parentNode;return s}var Fk=function(i,r){this.stopPropagation=Mo,this.stopImmediatePropagation=Mo,this.preventDefault=Mo,this.type=r.type,this.target=this.currentTarget=i.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY},Ys={mousedown:function(i){i=ca(this.dom,i),this.__mayPointerCapture=[i.zrX,i.zrY],this.trigger("mousedown",i)},mousemove:function(i){i=ca(this.dom,i);var r=this.__mayPointerCapture;r&&(i.zrX!==r[0]||i.zrY!==r[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",i)},mouseup:function(i){i=ca(this.dom,i),this.__togglePointerCapture(!1),this.trigger("mouseup",i)},mouseout:function(i){Lk(this,(i=ca(this.dom,i)).toElement||i.relatedTarget)||(this.__pointerCapturing&&(i.zrEventControl="no_globalout"),this.trigger("mouseout",i))},wheel:function(i){Ao=!0,i=ca(this.dom,i),this.trigger("mousewheel",i)},mousewheel:function(i){Ao||(i=ca(this.dom,i),this.trigger("mousewheel",i))},touchstart:function(i){Jc(i=ca(this.dom,i)),this.__lastTouchMoment=new Date,this.handler.processGesture(i,"start"),Ys.mousemove.call(this,i),Ys.mousedown.call(this,i)},touchmove:function(i){Jc(i=ca(this.dom,i)),this.handler.processGesture(i,"change"),Ys.mousemove.call(this,i)},touchend:function(i){Jc(i=ca(this.dom,i)),this.handler.processGesture(i,"end"),Ys.mouseup.call(this,i),+new Date-+this.__lastTouchMoment<300&&Ys.click.call(this,i)},pointerdown:function(i){Ys.mousedown.call(this,i)},pointermove:function(i){Ik(i)||Ys.mousemove.call(this,i)},pointerup:function(i){Ys.mouseup.call(this,i)},pointerout:function(i){Ik(i)||Ys.mouseout.call(this,i)}};q(["click","dblclick","contextmenu"],function(o){Ys[o]=function(i){i=ca(this.dom,i),this.trigger(o,i)}});var Ul={pointermove:function(i){Ik(i)||Ul.mousemove.call(this,i)},pointerup:function(i){Ul.mouseup.call(this,i)},mousemove:function(i){this.trigger("mousemove",i)},mouseup:function(i){var r=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",i),r&&(i.zrEventControl="only_globalout",this.trigger("mouseout",i))}};function Lt(o,i,r,s){o.mounted[i]=r,o.listenerOpts[i]=s,ke(o.domTarget,i,r,s)}function mO(o){var i=o.mounted;for(var r in i)i.hasOwnProperty(r)&&tO(o.domTarget,r,i[r],o.listenerOpts[r]);o.mounted={}}var _O=function(i,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=i,this.domHandlers=r},BH=function(o){function i(r,s){var u=o.call(this)||this;return u.__pointerCapturing=!1,u.dom=r,u.painterRoot=s,u._localHandlerScope=new _O(r,Ys),Ok&&(u._globalHandlerScope=new _O(document,Ul)),function(o,i){var r=i.domHandlers;Ze.pointerEventsSupported?q(vO.pointer,function(s){Lt(i,s,function(u){r[s].call(o,u)})}):(Ze.touchEventsSupported&&q(vO.touch,function(s){Lt(i,s,function(u){r[s].call(o,u),function(o){o.touching=!0,null!=o.touchTimer&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout(function(){o.touching=!1,o.touchTimer=null},700)}(i)})}),q(vO.mouse,function(s){Lt(i,s,function(u){u=zs(u),i.touching||r[s].call(o,u)})}))}(u,u._localHandlerScope),u}return Ln(i,o),i.prototype.dispose=function(){mO(this._localHandlerScope),Ok&&mO(this._globalHandlerScope)},i.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},i.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Ok&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var s=this._globalHandlerScope;r?function(o,i){function r(s){Lt(i,s,function(f){f=zs(f),Lk(o,f.target)||(f=function(o,i){return ca(o.dom,new Fk(o,i),!0)}(o,f),i.domHandlers[s].call(o,f))},{capture:!0})}Ze.pointerEventsSupported?q(sm_pointer,r):Ze.touchEventsSupported||q(sm_mouse,r)}(this,s):mO(s)}},i}(Bs),Vk=1;"undefined"!=typeof window&&(Vk=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Kb=Vk,En="#333",pe="#ccc";function no(){return[1,0,0,1,0,0]}function Wu(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=1,o[4]=0,o[5]=0,o}function Po(o,i){return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o[4]=i[4],o[5]=i[5],o}function Jo(o,i,r){var u=i[1]*r[0]+i[3]*r[1],f=i[0]*r[2]+i[2]*r[3],d=i[1]*r[2]+i[3]*r[3],p=i[0]*r[4]+i[2]*r[5]+i[4],v=i[1]*r[4]+i[3]*r[5]+i[5];return o[0]=i[0]*r[0]+i[2]*r[1],o[1]=u,o[2]=f,o[3]=d,o[4]=p,o[5]=v,o}function Oo(o,i,r){return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o[4]=i[4]+r[0],o[5]=i[5]+r[1],o}function Od(o,i,r){var s=i[0],u=i[2],f=i[4],d=i[1],p=i[3],v=i[5],g=Math.sin(r),m=Math.cos(r);return o[0]=s*m+d*g,o[1]=-s*g+d*m,o[2]=u*m+p*g,o[3]=-u*g+m*p,o[4]=m*f+g*v,o[5]=m*v-g*f,o}function $b(o,i,r){var s=r[0],u=r[1];return o[0]=i[0]*s,o[1]=i[1]*u,o[2]=i[2]*s,o[3]=i[3]*u,o[4]=i[4]*s,o[5]=i[5]*u,o}function Gl(o,i){var r=i[0],s=i[2],u=i[4],f=i[1],d=i[3],p=i[5],v=r*d-f*s;return v?(o[0]=d*(v=1/v),o[1]=-f*v,o[2]=-s*v,o[3]=r*v,o[4]=(s*p-d*u)*v,o[5]=(f*u-r*p)*v,o):null}function lm(o){var i=[1,0,0,1,0,0];return Po(i,o),i}var ha=Wu;function Ip(o){return o>5e-5||o<-5e-5}var Zs,zr,es=[],ro=[],Bk=[1,0,0,1,0,0],Qb=Math.abs,HH=function(){function o(){}return o.prototype.getLocalTransform=function(i){return o.getLocalTransform(this,i)},o.prototype.setPosition=function(i){this.x=i[0],this.y=i[1]},o.prototype.setScale=function(i){this.scaleX=i[0],this.scaleY=i[1]},o.prototype.setSkew=function(i){this.skewX=i[0],this.skewY=i[1]},o.prototype.setOrigin=function(i){this.originX=i[0],this.originY=i[1]},o.prototype.needLocalTransform=function(){return Ip(this.rotation)||Ip(this.x)||Ip(this.y)||Ip(this.scaleX-1)||Ip(this.scaleY-1)},o.prototype.updateTransform=function(){var i=this.parent&&this.parent.transform,r=this.needLocalTransform(),s=this.transform;r||i?(s=s||[1,0,0,1,0,0],r?this.getLocalTransform(s):ha(s),i&&(r?Jo(s,i,s):Po(s,i)),this.transform=s,this._resolveGlobalScaleRatio(s)):s&&ha(s)},o.prototype._resolveGlobalScaleRatio=function(i){var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(es);var s=es[0]<0?-1:1,u=es[1]<0?-1:1,f=((es[0]-s)*r+s)/es[0]||0,d=((es[1]-u)*r+u)/es[1]||0;i[0]*=f,i[1]*=f,i[2]*=d,i[3]*=d}this.invTransform=this.invTransform||[1,0,0,1,0,0],Gl(this.invTransform,i)},o.prototype.getComputedTransform=function(){for(var i=this,r=[];i;)r.push(i),i=i.parent;for(;i=r.pop();)i.updateTransform();return this.transform},o.prototype.setLocalTransform=function(i){if(i){var r=i[0]*i[0]+i[1]*i[1],s=i[2]*i[2]+i[3]*i[3],u=Math.atan2(i[1],i[0]),f=Math.PI/2+u-Math.atan2(i[3],i[2]);s=Math.sqrt(s)*Math.cos(f),r=Math.sqrt(r),this.skewX=f,this.skewY=0,this.rotation=-u,this.x=+i[4],this.y=+i[5],this.scaleX=r,this.scaleY=s,this.originX=0,this.originY=0}},o.prototype.decomposeTransform=function(){if(this.transform){var i=this.parent,r=this.transform;i&&i.transform&&(Jo(ro,i.invTransform,r),r=ro);var s=this.originX,u=this.originY;(s||u)&&(Bk[4]=s,Bk[5]=u,Jo(ro,r,Bk),ro[4]-=s,ro[5]-=u,r=ro),this.setLocalTransform(r)}},o.prototype.getGlobalScale=function(i){var r=this.transform;return i=i||[],r?(i[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),i[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(i[0]=-i[0]),r[3]<0&&(i[1]=-i[1]),i):(i[0]=1,i[1]=1,i)},o.prototype.transformCoordToLocal=function(i,r){var s=[i,r],u=this.invTransform;return u&&_i(s,s,u),s},o.prototype.transformCoordToGlobal=function(i,r){var s=[i,r],u=this.transform;return u&&_i(s,s,u),s},o.prototype.getLineScale=function(){var i=this.transform;return i&&Qb(i[0]-1)>1e-10&&Qb(i[3]-1)>1e-10?Math.sqrt(Qb(i[0]*i[3]-i[2]*i[1])):1},o.prototype.copyTransform=function(i){for(var s=0;sS&&(S=O,Tt.set(Fp,MS&&(S=R,Tt.set(Fp,0,T=s.x&&i<=s.x+s.width&&r>=s.y&&r<=s.y+s.height},o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height)},o.prototype.copy=function(i){o.copy(this,i)},o.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},o.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},o.prototype.isZero=function(){return 0===this.width||0===this.height},o.create=function(i){return new o(i.x,i.y,i.width,i.height)},o.copy=function(i,r){i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height},o.applyTransform=function(i,r,s){if(s){if(s[1]<1e-5&&s[1]>-1e-5&&s[2]<1e-5&&s[2]>-1e-5){var u=s[0],f=s[3],p=s[5];return i.x=r.x*u+s[4],i.y=r.y*f+p,i.width=r.width*u,i.height=r.height*f,i.width<0&&(i.x+=i.width,i.width=-i.width),void(i.height<0&&(i.y+=i.height,i.height=-i.height))}ef.x=tf.x=r.x,ef.y=nf.y=r.y,jl.x=nf.x=r.x+r.width,jl.y=tf.y=r.y+r.height,ef.transform(s),nf.transform(s),jl.transform(s),tf.transform(s),i.x=Rp(ef.x,jl.x,tf.x,nf.x),i.y=Rp(ef.y,jl.y,tf.y,nf.y);var v=Jb(ef.x,jl.x,tf.x,nf.x),g=Jb(ef.y,jl.y,tf.y,nf.y);i.width=v-i.x,i.height=g-i.y}else i!==r&&o.copy(i,r)},o}(),bO={},ri="12px sans-serif",zk_measureText=function(o,i){return Zs||(Zs=md().getContext("2d")),zr!==i&&(zr=Zs.font=i||ri),Zs.measureText(o)};function Io(o,i){var r=bO[i=i||ri];r||(r=bO[i]=new Td(500));var s=r.get(o);return null==s&&(s=zk_measureText(o,i).width,r.put(o,s)),s}function CO(o,i,r,s){var u=Io(o,i),f=Id(i),d=rf(0,u,r),p=Yu(0,f,s);return new Ft(d,p,u,f)}function um(o,i,r,s){var u=((o||"")+"").split("\n");if(1===u.length)return CO(u[0],i,r,s);for(var d=new Ft(0,0,0,0),p=0;p=0?parseFloat(o)/100*i:parseFloat(o):o}function n0(o,i,r){var s=i.position||"inside",u=null!=i.distance?i.distance:5,f=r.height,d=r.width,p=f/2,v=r.x,g=r.y,m="left",y="top";if(s instanceof Array)v+=Ro(s[0],r.width),g+=Ro(s[1],r.height),m=null,y=null;else switch(s){case"left":v-=u,g+=p,m="right",y="middle";break;case"right":v+=u+d,g+=p,y="middle";break;case"top":v+=d/2,g-=u,m="center",y="bottom";break;case"bottom":v+=d/2,g+=f+u,m="center";break;case"inside":v+=d/2,g+=p,m="center",y="middle";break;case"insideLeft":v+=u,g+=p,y="middle";break;case"insideRight":v+=d-u,g+=p,m="right",y="middle";break;case"insideTop":v+=d/2,g+=u,m="center";break;case"insideBottom":v+=d/2,g+=f-u,m="center",y="bottom";break;case"insideTopLeft":v+=u,g+=u;break;case"insideTopRight":v+=d-u,g+=u,m="right";break;case"insideBottomLeft":v+=u,g+=f-u,y="bottom";break;case"insideBottomRight":v+=d-u,g+=f-u,m="right",y="bottom"}return(o=o||{}).x=v,o.y=g,o.align=m,o.verticalAlign=y,o}var Wl="__zr_normal__",Rd=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],zH={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},Np={},cm=new Ft(0,0,0,0),fm=function(){function o(i){this.id=qe(),this.animators=[],this.currentStates=[],this.states={},this._init(i)}return o.prototype._init=function(i){this.attr(i)},o.prototype.drift=function(i,r,s){switch(this.draggable){case"horizontal":r=0;break;case"vertical":i=0}var u=this.transform;u||(u=this.transform=[1,0,0,1,0,0]),u[4]+=i,u[5]+=r,this.decomposeTransform(),this.markRedraw()},o.prototype.beforeUpdate=function(){},o.prototype.afterUpdate=function(){},o.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},o.prototype.updateInnerText=function(i){var r=this._textContent;if(r&&(!r.ignore||i)){this.textConfig||(this.textConfig={});var s=this.textConfig,u=s.local,f=r.innerTransformable,d=void 0,p=void 0,v=!1;f.parent=u?this:null;var g=!1;if(f.copyTransform(r),null!=s.position){var m=cm;m.copy(s.layoutRect?s.layoutRect:this.getBoundingRect()),u||m.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Np,s,m):n0(Np,s,m),f.x=Np.x,f.y=Np.y,d=Np.align,p=Np.verticalAlign;var y=s.origin;if(y&&null!=s.rotation){var b=void 0,w=void 0;"center"===y?(b=.5*m.width,w=.5*m.height):(b=Ro(y[0],m.width),w=Ro(y[1],m.height)),g=!0,f.originX=-f.x+b+(u?0:m.x),f.originY=-f.y+w+(u?0:m.y)}}null!=s.rotation&&(f.rotation=s.rotation);var S=s.offset;S&&(f.x+=S[0],f.y+=S[1],g||(f.originX=-S[0],f.originY=-S[1]));var M=null==s.inside?"string"==typeof s.position&&s.position.indexOf("inside")>=0:s.inside,x=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),T=void 0,P=void 0,O=void 0;M&&this.canBeInsideText()?(P=s.insideStroke,(null==(T=s.insideFill)||"auto"===T)&&(T=this.getInsideTextFill()),(null==P||"auto"===P)&&(P=this.getInsideTextStroke(T),O=!0)):(P=s.outsideStroke,(null==(T=s.outsideFill)||"auto"===T)&&(T=this.getOutsideFill()),(null==P||"auto"===P)&&(P=this.getOutsideStroke(T),O=!0)),((T=T||"#000")!==x.fill||P!==x.stroke||O!==x.autoStroke||d!==x.align||p!==x.verticalAlign)&&(v=!0,x.fill=T,x.stroke=P,x.autoStroke=O,x.align=d,x.verticalAlign=p,r.setDefaultTextStyle(x)),r.__dirty|=1,v&&r.dirtyStyle(!0)}},o.prototype.canBeInsideText=function(){return!0},o.prototype.getInsideTextFill=function(){return"#fff"},o.prototype.getInsideTextStroke=function(i){return"#000"},o.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?pe:En},o.prototype.getOutsideStroke=function(i){var r=this.__zr&&this.__zr.getBackgroundColor(),s="string"==typeof r&&La(r);s||(s=[255,255,255,1]);for(var u=s[3],f=this.__zr.isDarkMode(),d=0;d<3;d++)s[d]=s[d]*u+(f?0:255)*(1-u);return s[3]=1,zl(s,"rgba")},o.prototype.traverse=function(i,r){},o.prototype.attrKV=function(i,r){"textConfig"===i?this.setTextConfig(r):"textContent"===i?this.setTextContent(r):"clipPath"===i?this.setClipPath(r):"extra"===i?(this.extra=this.extra||{},Se(this.extra,r)):this[i]=r},o.prototype.hide=function(){this.ignore=!0,this.markRedraw()},o.prototype.show=function(){this.ignore=!1,this.markRedraw()},o.prototype.attr=function(i,r){if("string"==typeof i)this.attrKV(i,r);else if(at(i))for(var u=_n(i),f=0;f0},o.prototype.getState=function(i){return this.states[i]},o.prototype.ensureState=function(i){var r=this.states;return r[i]||(r[i]={}),r[i]},o.prototype.clearStates=function(i){this.useState(Wl,!1,i)},o.prototype.useState=function(i,r,s,u){var f=i===Wl;if(this.hasState()||!f){var p=this.currentStates,v=this.stateTransition;if(!(Rt(p,i)>=0)||!r&&1!==p.length){var g;if(this.stateProxy&&!f&&(g=this.stateProxy(i)),g||(g=this.states&&this.states[i]),!g&&!f)return void Ns("State "+i+" not exists.");f||this.saveCurrentToNormalState(g);var m=!!(g&&g.hoverLayer||u);m&&this._toggleHoverLayerFlag(!0),this._applyStateObj(i,g,this._normalState,r,!s&&!this.__inHover&&v&&v.duration>0,v);var y=this._textContent,b=this._textGuide;return y&&y.useState(i,r,s,m),b&&b.useState(i,r,s,m),f?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(i):this.currentStates=[i],this._updateAnimationTargets(),this.markRedraw(),!m&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),g}}},o.prototype.useStates=function(i,r,s){if(i.length){var u=[],f=this.currentStates,d=i.length,p=d===f.length;if(p)for(var v=0;v0,S);var M=this._textContent,x=this._textGuide;M&&M.useStates(i,r,b),x&&x.useStates(i,r,b),this._updateAnimationTargets(),this.currentStates=i.slice(),this.markRedraw(),!b&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},o.prototype._updateAnimationTargets=function(){for(var i=0;i=0){var s=this.currentStates.slice();s.splice(r,1),this.useStates(s)}},o.prototype.replaceState=function(i,r,s){var u=this.currentStates.slice(),f=Rt(u,i),d=Rt(u,r)>=0;f>=0?d?u.splice(f,1):u[f]=r:s&&!d&&u.push(r),this.useStates(u)},o.prototype.toggleState=function(i,r){r?this.useState(i,!0):this.removeState(i)},o.prototype._mergeStates=function(i){for(var s,r={},u=0;u=0&&f.splice(d,1)}),this.animators.push(i),s&&s.animation.addAnimator(i),s&&s.wakeUp()},o.prototype.updateDuringAnimation=function(i){this.markRedraw()},o.prototype.stopAnimation=function(i,r){for(var s=this.animators,u=s.length,f=[],d=0;d8)&&(u("position","_legacyPos","x","y"),u("scale","_legacyScale","scaleX","scaleY"),u("origin","_legacyOrigin","originX","originY"))}(),o}();function Uk(o,i,r,s,u){var f=[];dm(o,"",o,i,r=r||{},s,f,u);var d=f.length,p=!1,v=r.done,g=r.aborted,m=function(){p=!0,--d<=0&&(p?v&&v():g&&g())},y=function(){--d<=0&&(p?v&&v():g&&g())};d||v&&v(),f.length>0&&r.during&&f[0].during(function(S,M){r.during(M)});for(var b=0;b0||u.force&&!d.length){for(var O=o.animators,R=[],V=0;V=0&&(u.splice(f,0,r),this._doAdd(r))}return this},i.prototype.replace=function(r,s){var u=Rt(this._children,r);return u>=0&&this.replaceAt(s,u),this},i.prototype.replaceAt=function(r,s){var u=this._children,f=u[s];if(r&&r!==this&&r.parent!==this&&r!==f){u[s]=r,f.parent=null;var d=this.__zr;d&&f.removeSelfFromZr(d),this._doAdd(r)}return this},i.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var s=this.__zr;s&&s!==r.__zr&&r.addSelfToZr(s),s&&s.refresh()},i.prototype.remove=function(r){var s=this.__zr,u=this._children,f=Rt(u,r);return f<0||(u.splice(f,1),r.parent=null,s&&r.removeSelfFromZr(s),s&&s.refresh()),this},i.prototype.removeAll=function(){for(var r=this._children,s=this.__zr,u=0;u0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},o.prototype.setSleepAfterStill=function(i){this._sleepAfterStill=i},o.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},o.prototype.addHover=function(i){},o.prototype.removeHover=function(i){},o.prototype.clearHover=function(){},o.prototype.refreshHover=function(){this._needsRefreshHover=!0},o.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},o.prototype.resize=function(i){this.painter.resize((i=i||{}).width,i.height),this.handler.resize()},o.prototype.clearAnimation=function(){this.animation.clear()},o.prototype.getWidth=function(){return this.painter.getWidth()},o.prototype.getHeight=function(){return this.painter.getHeight()},o.prototype.pathToImage=function(i,r){if(this.painter.pathToImage)return this.painter.pathToImage(i,r)},o.prototype.setCursorStyle=function(i){this.handler.setCursorStyle(i)},o.prototype.findHover=function(i,r){return this.handler.findHover(i,r)},o.prototype.on=function(i,r,s){return this.handler.on(i,r,s),this},o.prototype.off=function(i,r){this.handler.off(i,r)},o.prototype.trigger=function(i,r){this.handler.trigger(i,r)},o.prototype.clear=function(){for(var i=this.storage.getRoots(),r=0;r0){if(o<=u)return d;if(o>=f)return p}else{if(o>=u)return d;if(o<=f)return p}else{if(o===u)return d;if(o===f)return p}return(o-u)/v*g+d}function Fe(o,i){switch(o){case"center":case"middle":o="50%";break;case"left":case"top":o="0%";break;case"right":case"bottom":o="100%"}return"string"==typeof o?function(o){return o.replace(/^\s+|\s+$/g,"")}(o).match(/%$/)?parseFloat(o)/100*i:parseFloat(o):null==o?NaN:+o}function hi(o,i,r){return null==i&&(i=10),i=Math.min(Math.max(0,i),20),o=(+o).toFixed(i),r?o:+o}function io(o){return o.sort(function(i,r){return i-r}),o}function ns(o){if(o=+o,isNaN(o))return 0;if(o>1e-14)for(var i=1,r=0;r<15;r++,i*=10)if(Math.round(o*i)/i===o)return r;return qk(o)}function qk(o){var i=o.toString().toLowerCase(),r=i.indexOf("e"),s=r>0?+i.slice(r+1):0,u=r>0?r:i.length,f=i.indexOf(".");return Math.max(0,(f<0?0:u-1-f)-s)}function o0(o,i){var r=Math.log,s=Math.LN10,u=Math.floor(r(o[1]-o[0])/s),f=Math.round(r(Math.abs(i[1]-i[0]))/s),d=Math.min(Math.max(-u+f,0),20);return isFinite(d)?d:20}function TO(o,i,r){if(!o[i])return 0;var s=zu(o,function(S,M){return S+(isNaN(M)?0:M)},0);if(0===s)return 0;for(var u=Math.pow(10,r),f=Te(o,function(S){return(isNaN(S)?0:S)/s*u*100}),d=100*u,p=Te(f,function(S){return Math.floor(S)}),v=zu(p,function(S,M){return S+M},0),g=Te(f,function(S,M){return S-p[M]});vm&&(m=g[b],y=b);++p[y],g[y]=0,++v}return p[i]/u}function WH(o,i){var r=Math.max(ns(o),ns(i)),s=o+i;return r>20?s:hi(s,r)}var Up=9007199254740991;function Ld(o){var i=2*Math.PI;return(o%i+i)%i}function hm(o){return o>-1e-4&&o<1e-4}var DO=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ao(o){if(o instanceof Date)return o;if("string"==typeof o){var i=DO.exec(o);if(!i)return new Date(NaN);if(i[8]){var r=+i[4]||0;return"Z"!==i[8].toUpperCase()&&(r-=+i[8].slice(0,3)),new Date(Date.UTC(+i[1],+(i[2]||1)-1,+i[3]||1,r,+(i[5]||0),+i[6]||0,i[7]?+i[7].substring(0,3):0))}return new Date(+i[1],+(i[2]||1)-1,+i[3]||1,+i[4]||0,+(i[5]||0),+i[6]||0,i[7]?+i[7].substring(0,3):0)}return null==o?new Date(NaN):new Date(Math.round(o))}function Fd(o){return Math.pow(10,Xt(o))}function Xt(o){if(0===o)return 0;var i=Math.floor(Math.log(o)/Math.LN10);return o/Math.pow(10,i)>=10&&i++,i}function pm(o,i){var r=Xt(o),s=Math.pow(10,r),u=o/s;return o=(i?u<1.5?1:u<2.5?2:u<4?3:u<7?5:10:u<1?1:u<2?2:u<3?3:u<5?5:10)*s,r>=-20?+o.toFixed(r<0?-r:0):o}function Ci(o,i){var r=(o.length-1)*i+1,s=Math.floor(r),u=+o[s-1],f=r-s;return f?u+f*(o[s]-u):u}function af(o){o.sort(function(v,g){return p(v,g,0)?-1:1});for(var i=-1/0,r=1,s=0;s=0||f&&Rt(f,v)<0)){var g=s.getShallow(v,i);null!=g&&(d[o[p][0]]=g)}}return d}}var rz=Hd([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),$k=function(){function o(){}return o.prototype.getAreaStyle=function(i,r){return rz(this,i,r)},o}(),Qk=new Td(50);function Jk(o){if("string"==typeof o){var i=Qk.get(o);return i&&i.image}return o}function zd(o,i,r,s,u){if(o){if("string"==typeof o){if(i&&i.__zrImageSrc===o||!r)return i;var f=Qk.get(o),d={hostEl:r,cb:s,cbPayload:u};return f?!g0(i=f.image)&&f.pending.push(d):((i=new Image).onload=i.onerror=v0,Qk.put(o,i.__cachedImgObj={image:i,pending:[d]}),i.src=i.__zrImageSrc=o),i}return o}return i}function v0(){var o=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var i=0;i=d;v++)p-=d;var g=Io(r,i);return g>p&&(r="",g=0),p=o-g,u.ellipsis=r,u.ellipsisWidth=g,u.contentWidth=p,u.containerWidth=o,u}function uf(o,i){var r=i.containerWidth,s=i.font,u=i.contentWidth;if(!r)return"";var f=Io(o,s);if(f<=r)return o;for(var d=0;;d++){if(f<=u||d>=i.maxIterations){o+=i.ellipsis;break}var p=0===d?_m(o,u,i.ascCharWidth,i.cnCharWidth):f>0?Math.floor(o.length*u/f):0;f=Io(o=o.substr(0,p),s)}return""===o&&(o=i.placeholder),o}function _m(o,i,r,s){for(var u=0,f=0,d=o.length;f0&&S+s.accumWidth>s.width&&(m=i.split("\n"),g=!0),s.accumWidth=S}else{var M=rM(i,v,s.width,s.breakAll,s.accumWidth);s.accumWidth=M.accumWidth+w,y=M.linesWidths,m=M.lines}}else m=i.split("\n");for(var x=0;x=33&&i<=255}(o)||!!Fo[o]}function rM(o,i,r,s,u){for(var f=[],d=[],p="",v="",g=0,m=0,y=0;yr:u+m+w>r)?m?(p||v)&&(S?(p||(p=v,v="",m=g=0),f.push(p),d.push(m-g),v+=b,p="",m=g+=w):(v&&(p+=v,m+=g,v="",g=0),f.push(p),d.push(m),p=b,m=w)):S?(f.push(v),d.push(g),v=b,g=w):(f.push(b),d.push(w)):(m+=w,S?(v+=b,g+=w):(v&&(p+=v,v="",g=0),p+=b))}else v&&(p+=v,m+=g),f.push(p),d.push(m),p="",v="",g=0,m=0}return!f.length&&!p&&(p=o,v="",g=0),v&&(p+=v),p&&(f.push(p),d.push(m)),1===f.length&&(m+=u),{accumWidth:m,lines:f,linesWidths:d}}var ym="__zr_style_"+Math.round(10*Math.random()),Xl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},bm={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Xl[ym]=!0;var OO=["z","z2","invisible"],lz=["invisible"],Wp=function(o){function i(r){return o.call(this,r)||this}return Ln(i,o),i.prototype._init=function(r){for(var s=_n(r),u=0;u-1e-8&&o<1e-8}function uz(o){return o>1e-8||o<-1e-8}function pr(o,i,r,s,u){var f=1-u;return f*f*(f*o+3*u*i)+u*u*(u*s+3*f*r)}function b0(o,i,r,s,u){var f=1-u;return 3*(((i-o)*f+2*(r-i)*u)*f+(s-r)*u*u)}function C0(o,i,r,s,u,f){var d=s+3*(i-r)-o,p=3*(r-2*i+o),v=3*(i-o),g=o-u,m=p*p-3*d*v,y=p*v-9*d*g,b=v*v-3*p*g,w=0;if(cf(m)&&cf(y))cf(p)?f[0]=0:(S=-v/p)>=0&&S<=1&&(f[w++]=S);else{var M=y*y-4*m*b;if(cf(M)){var x=y/m,T=-x/2;(S=-p/d+x)>=0&&S<=1&&(f[w++]=S),T>=0&&T<=1&&(f[w++]=T)}else if(M>0){var P=Gd(M),O=m*p+1.5*d*(-y+P),R=m*p+1.5*d*(-y-P);(S=(-p-((O=O<0?-_0(-O,jd):_0(O,jd))+(R=R<0?-_0(-R,jd):_0(R,jd))))/(3*d))>=0&&S<=1&&(f[w++]=S)}else{var V=(2*m*p-3*d*y)/(2*Gd(m*m*m)),B=Math.acos(V)/3,U=Gd(m),j=Math.cos(B),S=(-p-2*U*j)/(3*d),X=(T=(-p+U*(j+RO*Math.sin(B)))/(3*d),(-p+U*(j-RO*Math.sin(B)))/(3*d));S>=0&&S<=1&&(f[w++]=S),T>=0&&T<=1&&(f[w++]=T),X>=0&&X<=1&&(f[w++]=X)}}return w}function aM(o,i,r,s,u){var f=6*r-12*i+6*o,d=9*i+3*s-3*o-9*r,p=3*i-3*o,v=0;if(cf(d))uz(f)&&(g=-p/f)>=0&&g<=1&&(u[v++]=g);else{var m=f*f-4*d*p;if(cf(m))u[0]=-f/(2*d);else if(m>0){var g,y=Gd(m),b=(-f-y)/(2*d);(g=(-f+y)/(2*d))>=0&&g<=1&&(u[v++]=g),b>=0&&b<=1&&(u[v++]=b)}}return v}function Xu(o,i,r,s,u,f){var d=(i-o)*u+o,p=(r-i)*u+i,v=(s-r)*u+r,g=(p-d)*u+d,m=(v-p)*u+p,y=(m-g)*u+g;f[0]=o,f[1]=d,f[2]=g,f[3]=y,f[4]=y,f[5]=m,f[6]=v,f[7]=s}function ff(o,i,r,s,u,f,d,p,v,g,m){var y,S,M,x,T,b=.005,w=1/0;os[0]=v,os[1]=g;for(var P=0;P<1;P+=.05)ji[0]=pr(o,r,u,d,P),ji[1]=pr(i,s,f,p,P),(x=Xc(os,ji))=0&&x=0&&w1e-4)return p[0]=o-r,p[1]=i-s,v[0]=o+r,void(v[1]=i+s);if(Cm[0]=lM(u)*r+o,Cm[1]=sM(u)*s+i,w0[0]=lM(f)*r+o,w0[1]=sM(f)*s+i,g(p,Cm,w0),m(v,Cm,w0),(u%=Wd)<0&&(u+=Wd),(f%=Wd)<0&&(f+=Wd),u>f&&!d?f+=Wd:uu&&(S0[0]=lM(w)*r+o,S0[1]=sM(w)*s+i,g(p,S0,p),m(v,S0,v))}var Fn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},df=[],hf=[],$s=[],pf=[],Kl=[],$l=[],Yd=Math.min,qd=Math.max,Zu=Math.cos,Xd=Math.sin,k0=Math.sqrt,Ql=Math.abs,uM=Math.PI,vf=2*uM,cM="undefined"!=typeof Float32Array,km=[];function M0(o){return Math.round(o/uM*1e8)/1e8%2*uM}function Mm(o,i){var r=M0(o[0]);r<0&&(r+=vf);var u=o[1];u+=r-o[0],!i&&u-r>=vf?u=r+vf:i&&r-u>=vf?u=r-vf:!i&&r>u?u=r+(vf-M0(r-u)):i&&r0&&(this._ux=Ql(s/Kb/i)||0,this._uy=Ql(s/Kb/r)||0)},o.prototype.setDPR=function(i){this.dpr=i},o.prototype.setContext=function(i){this._ctx=i},o.prototype.getContext=function(){return this._ctx},o.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},o.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},o.prototype.moveTo=function(i,r){return this._drawPendingPt(),this.addData(Fn.M,i,r),this._ctx&&this._ctx.moveTo(i,r),this._x0=i,this._y0=r,this._xi=i,this._yi=r,this},o.prototype.lineTo=function(i,r){var s=Ql(i-this._xi),u=Ql(r-this._yi),f=s>this._ux||u>this._uy;if(this.addData(Fn.L,i,r),this._ctx&&f&&(this._needsDash?this._dashedLineTo(i,r):this._ctx.lineTo(i,r)),f)this._xi=i,this._yi=r,this._pendingPtDist=0;else{var d=s*s+u*u;d>this._pendingPtDist&&(this._pendingPtX=i,this._pendingPtY=r,this._pendingPtDist=d)}return this},o.prototype.bezierCurveTo=function(i,r,s,u,f,d){return this._drawPendingPt(),this.addData(Fn.C,i,r,s,u,f,d),this._ctx&&(this._needsDash?this._dashedBezierTo(i,r,s,u,f,d):this._ctx.bezierCurveTo(i,r,s,u,f,d)),this._xi=f,this._yi=d,this},o.prototype.quadraticCurveTo=function(i,r,s,u){return this._drawPendingPt(),this.addData(Fn.Q,i,r,s,u),this._ctx&&(this._needsDash?this._dashedQuadraticTo(i,r,s,u):this._ctx.quadraticCurveTo(i,r,s,u)),this._xi=s,this._yi=u,this},o.prototype.arc=function(i,r,s,u,f,d){return this._drawPendingPt(),km[0]=u,km[1]=f,Mm(km,d),this.addData(Fn.A,i,r,s,s,u=km[0],(f=km[1])-u,0,d?0:1),this._ctx&&this._ctx.arc(i,r,s,u,f,d),this._xi=Zu(f)*s+i,this._yi=Xd(f)*s+r,this},o.prototype.arcTo=function(i,r,s,u,f){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(i,r,s,u,f),this},o.prototype.rect=function(i,r,s,u){return this._drawPendingPt(),this._ctx&&this._ctx.rect(i,r,s,u),this.addData(Fn.R,i,r,s,u),this},o.prototype.closePath=function(){this._drawPendingPt(),this.addData(Fn.Z);var i=this._ctx,r=this._x0,s=this._y0;return i&&(this._needsDash&&this._dashedLineTo(r,s),i.closePath()),this._xi=r,this._yi=s,this},o.prototype.fill=function(i){i&&i.fill(),this.toStatic()},o.prototype.stroke=function(i){i&&i.stroke(),this.toStatic()},o.prototype.setLineDash=function(i){if(i instanceof Array){this._lineDash=i,this._dashIdx=0;for(var r=0,s=0;sm.length&&(this._expandData(),m=this.data);for(var y=0;y0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},o.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var i=[],r=0;r0&&b<=i||g<0&&b>=i||0===g&&(m>0&&w<=r||m<0&&w>=r);)b+=g*(M=u[x=this._dashIdx]),w+=m*M,this._dashIdx=(x+1)%S,!(g>0&&bp||m>0&&wv)&&f[x%2?"moveTo":"lineTo"](g>=0?Yd(b,i):qd(b,i),m>=0?Yd(w,r):qd(w,r));this._dashOffset=-k0((g=b-i)*g+(m=w-r)*m)},o.prototype._dashedBezierTo=function(i,r,s,u,f,d){var x,T,P,O,R,p=this._ctx,v=this._dashSum,g=this._dashOffset,m=this._lineDash,y=this._xi,b=this._yi,w=0,S=this._dashIdx,M=m.length,V=0;for(g<0&&(g=v+g),g%=v,x=0;x<1;x+=.1)T=pr(y,i,s,f,x+.1)-pr(y,i,s,f,x),P=pr(b,r,u,d,x+.1)-pr(b,r,u,d,x),w+=k0(T*T+P*P);for(;Sg);S++);for(x=(V-g)/w;x<=1;)O=pr(y,i,s,f,x),R=pr(b,r,u,d,x),S%2?p.moveTo(O,R):p.lineTo(O,R),x+=m[S]/w,S=(S+1)%M;S%2!=0&&p.lineTo(f,d),this._dashOffset=-k0((T=f-O)*T+(P=d-R)*P)},o.prototype._dashedQuadraticTo=function(i,r,s,u){var f=s,d=u;s=(s+2*i)/3,u=(u+2*r)/3,this._dashedBezierTo(i=(this._xi+2*i)/3,r=(this._yi+2*r)/3,s,u,f,d)},o.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var i=this.data;i instanceof Array&&(i.length=this._len,cM&&this._len>11&&(this.data=new Float32Array(i)))}},o.prototype.getBoundingRect=function(){$s[0]=$s[1]=Kl[0]=Kl[1]=Number.MAX_VALUE,pf[0]=pf[1]=$l[0]=$l[1]=-Number.MAX_VALUE;var d,i=this.data,r=0,s=0,u=0,f=0;for(d=0;ds||Ql(O)>u||b===r-1)&&(M=Math.sqrt(P*P+O*O),f=x,d=T);break;case Fn.C:var R=i[b++],V=i[b++],T=(x=i[b++],i[b++]),B=i[b++],U=i[b++];M=cz(f,d,R,V,x,T,B,U,10),f=B,d=U;break;case Fn.Q:M=FO(f,d,R=i[b++],V=i[b++],x=i[b++],T=i[b++],10),f=x,d=T;break;case Fn.A:var j=i[b++],X=i[b++],Z=i[b++],$=i[b++],te=i[b++],ee=i[b++],le=ee+te;b+=1,b++,S&&(p=Zu(te)*Z+j,v=Xd(te)*$+X),M=qd(Z,$)*Yd(vf,Math.abs(ee)),f=Zu(le)*Z+j,d=Xd(le)*$+X;break;case Fn.R:p=f=i[b++],v=d=i[b++],M=2*i[b++]+2*i[b++];break;case Fn.Z:var P=p-f;O=v-d,M=Math.sqrt(P*P+O*O),f=p,d=v}M>=0&&(g[y++]=M,m+=M)}return this._pathLen=m,m},o.prototype.rebuildPath=function(i,r){var p,v,g,m,y,b,S,P,R,V,s=this.data,u=this._ux,f=this._uy,d=this._len,w=r<1,x=0,T=0,O=0;if(!w||(this._pathSegLen||this._calculateLength(),S=this._pathSegLen,P=r*this._pathLen))e:for(var B=0;B0&&(i.lineTo(R,V),O=0),U){case Fn.M:p=g=s[B++],v=m=s[B++],i.moveTo(g,m);break;case Fn.L:y=s[B++],b=s[B++];var X=Ql(y-g),Z=Ql(b-m);if(X>u||Z>f){if(w){if(x+($=S[T++])>P){i.lineTo(g*(1-(te=(P-x)/$))+y*te,m*(1-te)+b*te);break e}x+=$}i.lineTo(y,b),g=y,m=b,O=0}else{var ee=X*X+Z*Z;ee>O&&(R=y,V=b,O=ee)}break;case Fn.C:var le=s[B++],oe=s[B++],de=s[B++],ge=s[B++],_e=s[B++],xe=s[B++];if(w){if(x+($=S[T++])>P){Xu(g,le,de,_e,te=(P-x)/$,df),Xu(m,oe,ge,xe,te,hf),i.bezierCurveTo(df[1],hf[1],df[2],hf[2],df[3],hf[3]);break e}x+=$}i.bezierCurveTo(le,oe,de,ge,_e,xe),g=_e,m=xe;break;case Fn.Q:if(le=s[B++],oe=s[B++],de=s[B++],ge=s[B++],w){if(x+($=S[T++])>P){Wi(g,le,de,te=(P-x)/$,df),Wi(m,oe,ge,te,hf),i.quadraticCurveTo(df[1],hf[1],df[2],hf[2]);break e}x+=$}i.quadraticCurveTo(le,oe,de,ge),g=de,m=ge;break;case Fn.A:var Me=s[B++],ze=s[B++],Je=s[B++],mt=s[B++],Qt=s[B++],zt=s[B++],xt=s[B++],Yt=!s[B++],Ut=Je>mt?Je:mt,Wn=Ql(Je-mt)>.001,ur=Qt+zt,fi=!1;if(w&&(x+($=S[T++])>P&&(ur=Qt+zt*(P-x)/$,fi=!0),x+=$),Wn&&i.ellipse?i.ellipse(Me,ze,Je,mt,xt,Qt,ur,Yt):i.arc(Me,ze,Ut,Qt,ur,Yt),fi)break e;j&&(p=Zu(Qt)*Je+Me,v=Xd(Qt)*mt+ze),g=Zu(ur)*Je+Me,m=Xd(ur)*mt+ze;break;case Fn.R:p=g=s[B],v=m=s[B+1],y=s[B++],b=s[B++];var Mt=s[B++],Nr=s[B++];if(w){if(x+($=S[T++])>P){var gr=P-x;i.moveTo(y,b),i.lineTo(y+Yd(gr,Mt),b),(gr-=Mt)>0&&i.lineTo(y+Mt,b+Yd(gr,Nr)),(gr-=Nr)>0&&i.lineTo(y+qd(Mt-gr,0),b+Nr),(gr-=Mt)>0&&i.lineTo(y,b+qd(Nr-gr,0));break e}x+=$}i.rect(y,b,Mt,Nr);break;case Fn.Z:if(w){var $;if(x+($=S[T++])>P){var te;i.lineTo(g*(1-(te=(P-x)/$))+p*te,m*(1-te)+v*te);break e}x+=$}i.closePath(),g=p,m=v}}},o.prototype.clone=function(){var i=new o,r=this.data;return i.data=r.slice?r.slice():Array.prototype.slice.call(r),i._len=this._len,i},o.CMD=Fn,o.initDefaultProps=((i=o.prototype)._saveData=!0,i._needsDash=!1,i._dashOffset=0,i._dashIdx=0,i._dashSum=0,i._ux=0,i._uy=0,i._pendingPtDist=0,void(i._version=0)),o;var i}();function gf(o,i,r,s,u,f,d){if(0===u)return!1;var v,p=u;if(d>i+p&&d>s+p||do+p&&f>r+p||fi+y&&m>s+y&&m>f+y&&m>p+y||mo+y&&g>r+y&&g>u+y&&g>d+y||gi+g&&v>s+g&&v>f+g||vo+g&&p>r+g&&p>u+g||pr||m+gu&&(u+=qp);var b=Math.atan2(v,p);return b<0&&(b+=qp),b>=s&&b<=u||b+qp>=s&&b+qp<=u}function Ku(o,i,r,s,u,f){if(f>i&&f>s||fu?p:0}var mf=Qs.CMD,Zd=2*Math.PI,lo=[-1,-1,-1],ga=[-1,-1];function ls(){var o=ga[0];ga[0]=ga[1],ga[1]=o}function fM(o,i,r,s,u,f,d,p,v,g){if(g>i&&g>s&&g>f&&g>p||g1&&ls(),w=pr(i,s,f,p,ga[0]),b>1&&(S=pr(i,s,f,p,ga[1]))),y+=2===b?xi&&p>s&&p>f||p=0&&g<=1&&(u[v++]=g);else{var m=d*d-4*f*p;if(cf(m))(g=-d/(2*f))>=0&&g<=1&&(u[v++]=g);else if(m>0){var g,y=Gd(m),b=(-d-y)/(2*f);(g=(-d+y)/(2*f))>=0&&g<=1&&(u[v++]=g),b>=0&&b<=1&&(u[v++]=b)}}return v}(i,s,f,p,lo);if(0===v)return 0;var g=LO(i,s,f);if(g>=0&&g<=1){for(var m=0,y=Fi(i,s,f,g),b=0;br||p<-r)return 0;var v=Math.sqrt(r*r-p*p);lo[0]=-v,lo[1]=v;var g=Math.abs(s-u);if(g<1e-4)return 0;if(g>=Zd-1e-4){s=0,u=Zd;var m=f?1:-1;return d>=lo[0]+o&&d<=lo[1]+o?m:0}if(s>u){var y=s;s=u,u=y}s<0&&(s+=Zd,u+=Zd);for(var b=0,w=0;w<2;w++){var S=lo[w];if(S+o>d){var M=Math.atan2(p,S);m=f?1:-1,M<0&&(M=Zd+M),(M>=s&&M<=u||M+Zd>=s&&M+Zd<=u)&&(M>Math.PI/2&&M<1.5*Math.PI&&(m=-m),b+=m)}}return b}function Yi(o,i,r,s,u){for(var b,w,f=o.data,d=o.len(),p=0,v=0,g=0,m=0,y=0,S=0;S1&&(r||(p+=Ku(v,g,m,y,s,u))),x&&(m=v=f[S],y=g=f[S+1]),M){case mf.M:v=m=f[S++],g=y=f[S++];break;case mf.L:if(r){if(gf(v,g,f[S],f[S+1],i,s,u))return!0}else p+=Ku(v,g,f[S],f[S+1],s,u)||0;v=f[S++],g=f[S++];break;case mf.C:if(r){if(ss(v,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],i,s,u))return!0}else p+=fM(v,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],s,u)||0;v=f[S++],g=f[S++];break;case mf.Q:if(r){if(Si(v,g,f[S++],f[S++],f[S],f[S+1],i,s,u))return!0}else p+=UO(v,g,f[S++],f[S++],f[S],f[S+1],s,u)||0;v=f[S++],g=f[S++];break;case mf.A:var T=f[S++],P=f[S++],O=f[S++],R=f[S++],V=f[S++],B=f[S++];S+=1;var U=!!(1-f[S++]);b=Math.cos(V)*O+T,w=Math.sin(V)*R+P,x?(m=b,y=w):p+=Ku(v,g,b,w,s,u);var j=(s-T)*R/O+T;if(r){if(hz(T,P,R,V,V+B,U,i,j,u))return!0}else p+=GO(T,P,R,V,V+B,U,j,u);v=Math.cos(V+B)*O+T,g=Math.sin(V+B)*R+P;break;case mf.R:if(m=v=f[S++],y=g=f[S++],b=m+f[S++],w=y+f[S++],r){if(gf(m,y,b,y,i,s,u)||gf(b,y,b,w,i,s,u)||gf(b,w,m,w,i,s,u)||gf(m,w,m,y,i,s,u))return!0}else p+=Ku(b,y,b,w,s,u),p+=Ku(m,w,m,y,s,u);break;case mf.Z:if(r){if(gf(v,g,m,y,i,s,u))return!0}else p+=Ku(v,g,m,y,s,u);v=m,g=y}}return!r&&!function(o,i){return Math.abs(o-i)<1e-4}(g,y)&&(p+=Ku(v,g,m,y,s,u)||0),0!==p}var jO=tt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xl),vz={style:tt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},bm.style)},x0=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],Nt=function(o){function i(r){return o.call(this,r)||this}return Ln(i,o),i.prototype.update=function(){var r=this;o.prototype.update.call(this);var s=this.style;if(s.decal){var u=this._decalEl=this._decalEl||new i;u.buildPath===i.prototype.buildPath&&(u.buildPath=function(v){r.buildPath(v,r.shape)}),u.silent=!0;var f=u.style;for(var d in s)f[d]!==s[d]&&(f[d]=s[d]);f.fill=s.fill?s.decal:null,f.decal=null,f.shadowColor=null,s.strokeFirst&&(f.stroke=null);for(var p=0;p.5?En:s>.2?"#eee":pe}if(r)return pe}return En},i.prototype.getInsideTextStroke=function(r){var s=this.style.fill;if(yt(s)){var u=this.__zr;if(!(!u||!u.isDarkMode())==qb(r,0)<.4)return s}},i.prototype.buildPath=function(r,s,u){},i.prototype.pathUpdated=function(){this.__dirty&=-5},i.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},i.prototype.createPathProxy=function(){this.path=new Qs(!1)},i.prototype.hasStroke=function(){var r=this.style,s=r.stroke;return!(null==s||"none"===s||!(r.lineWidth>0))},i.prototype.hasFill=function(){var s=this.style.fill;return null!=s&&"none"!==s},i.prototype.getBoundingRect=function(){var r=this._rect,s=this.style,u=!r;if(u){var f=!1;this.path||(f=!0,this.createPathProxy());var d=this.path;(f||4&this.__dirty)&&(d.beginPath(),this.buildPath(d,this.shape,!1),this.pathUpdated()),r=d.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var p=this._rectWithStroke||(this._rectWithStroke=r.clone());if(this.__dirty||u){p.copy(r);var v=s.strokeNoScale?this.getLineScale():1,g=s.lineWidth;if(!this.hasFill()){var m=this.strokeContainThreshold;g=Math.max(g,null==m?4:m)}v>1e-10&&(p.width+=g/v,p.height+=g/v,p.x-=g/v/2,p.y-=g/v/2)}return p}return r},i.prototype.contain=function(r,s){var u=this.transformCoordToLocal(r,s),f=this.getBoundingRect(),d=this.style;if(f.contain(r=u[0],s=u[1])){var p=this.path;if(this.hasStroke()){var v=d.lineWidth,g=d.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(this.hasFill()||(v=Math.max(v,this.strokeContainThreshold)),function(o,i,r,s){return Yi(o,i,!0,r,s)}(p,v/g,r,s)))return!0}if(this.hasFill())return function(o,i,r){return Yi(o,0,!1,i,r)}(p,r,s)}return!1},i.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},i.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},i.prototype.animateShape=function(r){return this.animate("shape",r)},i.prototype.updateDuringAnimation=function(r){"style"===r?this.dirtyStyle():"shape"===r?this.dirtyShape():this.markRedraw()},i.prototype.attrKV=function(r,s){"shape"===r?this.setShape(s):o.prototype.attrKV.call(this,r,s)},i.prototype.setShape=function(r,s){var u=this.shape;return u||(u=this.shape={}),"string"==typeof r?u[r]=s:Se(u,r),this.dirtyShape(),this},i.prototype.shapeChanged=function(){return!!(4&this.__dirty)},i.prototype.createStyle=function(r){return Mp(jO,r)},i.prototype._innerSaveToNormal=function(r){o.prototype._innerSaveToNormal.call(this,r);var s=this._normalState;r.shape&&!s.shape&&(s.shape=Se({},this.shape))},i.prototype._applyStateObj=function(r,s,u,f,d,p){o.prototype._applyStateObj.call(this,r,s,u,f,d,p);var g,v=!(s&&f);if(s&&s.shape?d?f?g=s.shape:(g=Se({},u.shape),Se(g,s.shape)):(g=Se({},f?this.shape:u.shape),Se(g,s.shape)):v&&(g=u.shape),g)if(d){this.shape=Se({},this.shape);for(var m={},y=_n(g),b=0;b0},i.prototype.hasFill=function(){var s=this.style.fill;return null!=s&&"none"!==s},i.prototype.createStyle=function(r){return Mp(mz,r)},i.prototype.setBoundingRect=function(r){this._rect=r},i.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var s=r.text;null!=s?s+="":s="";var u=um(s,r.font,r.textAlign,r.textBaseline);if(u.x+=r.x||0,u.y+=r.y||0,this.hasStroke()){var f=r.lineWidth;u.x-=f/2,u.y-=f/2,u.width+=f,u.height+=f}this._rect=u}return this._rect},i.initDefaultProps=void(i.prototype.dirtyRectTolerance=10),i}(as);hM.prototype.type="tspan";var Xp=hM,_z=tt({x:0,y:0},Xl),yz={style:tt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},bm.style)},T0=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return Ln(i,o),i.prototype.createStyle=function(r){return Mp(_z,r)},i.prototype._getSize=function(r){var s=this.style,u=s[r];if(null!=u)return u;var f=function(o){return!!(o&&"string"!=typeof o&&o.width&&o.height)}(s.image)?s.image:this.__image;if(!f)return 0;var d="width"===r?"height":"width",p=s[d];return null==p?f[r]:f[r]/f[d]*p},i.prototype.getWidth=function(){return this._getSize("width")},i.prototype.getHeight=function(){return this._getSize("height")},i.prototype.getAnimationStyleProps=function(){return yz},i.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ft(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},i}(as);T0.prototype.type="image";var si=T0,Tm=Math.round;function pM(o,i,r){if(i){var s=i.x1,u=i.x2,f=i.y1,d=i.y2;o.x1=s,o.x2=u,o.y1=f,o.y2=d;var p=r&&r.lineWidth;return p&&(Tm(2*s)===Tm(2*u)&&(o.x1=o.x2=Kd(s,p,!0)),Tm(2*f)===Tm(2*d)&&(o.y1=o.y2=Kd(f,p,!0))),o}}function Dm(o,i,r){if(i){var s=i.x,u=i.y,f=i.width,d=i.height;o.x=s,o.y=u,o.width=f,o.height=d;var p=r&&r.lineWidth;return p&&(o.x=Kd(s,p,!0),o.y=Kd(u,p,!0),o.width=Math.max(Kd(s+f,p,!1)-o.x,0===f?0:1),o.height=Math.max(Kd(u+d,p,!1)-o.y,0===d?0:1)),o}}function Kd(o,i,r){if(!i)return o;var s=Tm(2*o);return(s+Tm(i))%2==0?s/2:(s+(r?1:-1))/2}var Cz=function(){this.x=0,this.y=0,this.width=0,this.height=0},$d={},YO=function(o){function i(r){return o.call(this,r)||this}return Ln(i,o),i.prototype.getDefaultShape=function(){return new Cz},i.prototype.buildPath=function(r,s){var u,f,d,p;if(this.subPixelOptimize){var v=Dm($d,s,this.style);u=v.x,f=v.y,d=v.width,p=v.height,v.r=s.r,s=v}else u=s.x,f=s.y,d=s.width,p=s.height;s.r?function(o,i){var p,v,g,m,y,r=i.x,s=i.y,u=i.width,f=i.height,d=i.r;u<0&&(r+=u,u=-u),f<0&&(s+=f,f=-f),"number"==typeof d?p=v=g=m=d:d instanceof Array?1===d.length?p=v=g=m=d[0]:2===d.length?(p=g=d[0],v=m=d[1]):3===d.length?(p=d[0],v=m=d[1],g=d[2]):(p=d[0],v=d[1],g=d[2],m=d[3]):p=v=g=m=0,p+v>u&&(p*=u/(y=p+v),v*=u/y),g+m>u&&(g*=u/(y=g+m),m*=u/y),v+g>f&&(v*=f/(y=v+g),g*=f/y),p+m>f&&(p*=f/(y=p+m),m*=f/y),o.moveTo(r+p,s),o.lineTo(r+u-v,s),0!==v&&o.arc(r+u-v,s+v,v,-Math.PI/2,0),o.lineTo(r+u,s+f-g),0!==g&&o.arc(r+u-g,s+f-g,g,0,Math.PI/2),o.lineTo(r+m,s+f),0!==m&&o.arc(r+m,s+f-m,m,Math.PI/2,Math.PI),o.lineTo(r,s+p),0!==p&&o.arc(r+p,s+p,p,Math.PI,1.5*Math.PI)}(r,s):r.rect(u,f,d,p)},i.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},i}(Nt);YO.prototype.type="rect";var sn=YO,qO={fill:"#000"},wz={style:tt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},bm.style)},D0=function(o){function i(r){var s=o.call(this)||this;return s.type="text",s._children=[],s._defaultStyle=qO,s.attr(r),s}return Ln(i,o),i.prototype.childrenRef=function(){return this._children},i.prototype.update=function(){o.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;rb&&v){var w=Math.floor(b/p);m=m.slice(0,w)}var S=b,M=g;if(s&&(S+=s[0]+s[2],null!=M&&(M+=s[1]+s[3])),o&&f&&null!=M)for(var x=tM(g,u,i.ellipsis,{minChar:i.truncateMinChar,placeholder:i.placeholder}),T=0;T0,$=null!=r.width&&("truncate"===r.overflow||"break"===r.overflow||"breakAll"===r.overflow),te=d.calculatedLineHeight,ee=0;eep&&oi(r,o.substring(p,g),i,d),oi(r,v[2],i,d,v[1]),p=ce.lastIndex}pu){V>0?(P.tokens=P.tokens.slice(0,V),x(P,R,O),r.lines=r.lines.slice(0,T+1)):r.lines=r.lines.slice(0,T);break e}var te=U.width,ee=null==te||"auto"===te;if("string"==typeof te&&"%"===te.charAt(te.length-1))B.percentWidth=te,m.push(B),B.contentWidth=Io(B.text,Z);else{if(ee){var le=U.backgroundColor,oe=le&&le.image;oe&&g0(oe=Jk(oe))&&(B.width=Math.max(B.width,oe.width*$/oe.height))}var de=S&&null!=s?s-R:null;null!=de&&de=0&&"right"===(le=B[ee]).align;)this._placeToken(le,r,j,T,te,"right",O),X-=le.width,te-=le.width,ee--;for($+=(f-($-x)-(P-te)-X)/2;Z<=ee;)this._placeToken(le=B[Z],r,j,T,$+le.width/2,"center",O),$+=le.width,Z++;T+=j}},i.prototype._placeToken=function(r,s,u,f,d,p,v){var g=s.rich[r.styleName]||{};g.text=r.text;var m=r.verticalAlign,y=f+u/2;"top"===m?y=f+r.height/2:"bottom"===m&&(y=f+u-r.height/2),!r.isLineHolder&&E0(g)&&this._renderBackground(g,s,"right"===p?d-r.width:"center"===p?d-r.width/2:d,y-r.height/2,r.width,r.height);var w=!!g.backgroundColor,S=r.textPadding;S&&(d=gM(d,p,S),y-=r.height/2-S[0]-r.innerHeight/2);var M=this._getOrCreateChild(Xp),x=M.createStyle();M.useStyle(x);var T=this._defaultStyle,P=!1,O=0,R=$O("fill"in g?g.fill:"fill"in s?s.fill:(P=!0,T.fill)),V=vM("stroke"in g?g.stroke:"stroke"in s?s.stroke:w||v||T.autoStroke&&!P?null:(O=2,T.stroke)),B=g.textShadowBlur>0||s.textShadowBlur>0;x.text=r.text,x.x=d,x.y=y,B&&(x.shadowBlur=g.textShadowBlur||s.textShadowBlur||0,x.shadowColor=g.textShadowColor||s.textShadowColor||"transparent",x.shadowOffsetX=g.textShadowOffsetX||s.textShadowOffsetX||0,x.shadowOffsetY=g.textShadowOffsetY||s.textShadowOffsetY||0),x.textAlign=p,x.textBaseline="middle",x.font=r.font||ri,x.opacity=Qo(g.opacity,s.opacity,1),V&&(x.lineWidth=Qo(g.lineWidth,s.lineWidth,O),x.lineDash=ot(g.lineDash,s.lineDash),x.lineDashOffset=s.lineDashOffset||0,x.stroke=V),R&&(x.fill=R);var U=r.contentWidth,j=r.contentHeight;M.setBoundingRect(new Ft(rf(x.x,U,x.textAlign),Yu(x.y,j,x.textBaseline),U,j))},i.prototype._renderBackground=function(r,s,u,f,d,p){var M,x,P,v=r.backgroundColor,g=r.borderWidth,m=r.borderColor,y=v&&v.image,b=v&&!y,w=r.borderRadius,S=this;if(b||r.lineHeight||g&&m){(M=this._getOrCreateChild(sn)).useStyle(M.createStyle()),M.style.fill=null;var T=M.shape;T.x=u,T.y=f,T.width=d,T.height=p,T.r=w,M.dirtyShape()}if(b)(P=M.style).fill=v||null,P.fillOpacity=ot(r.fillOpacity,1);else if(y){(x=this._getOrCreateChild(si)).onload=function(){S.dirtyStyle()};var O=x.style;O.image=v.image,O.x=u,O.y=f,O.width=d,O.height=p}g&&m&&((P=M.style).lineWidth=g,P.stroke=m,P.strokeOpacity=ot(r.strokeOpacity,1),P.lineDash=r.borderDash,P.lineDashOffset=r.borderDashOffset||0,M.strokeContainThreshold=0,M.hasFill()&&M.hasStroke()&&(P.strokeFirst=!0,P.lineWidth*=2));var R=(M||x).style;R.shadowBlur=r.shadowBlur||0,R.shadowColor=r.shadowColor||"transparent",R.shadowOffsetX=r.shadowOffsetX||0,R.shadowOffsetY=r.shadowOffsetY||0,R.opacity=Qo(r.opacity,s.opacity,1)},i.makeFont=function(r){var s="";if(r.fontSize||r.fontFamily||r.fontWeight){var u="";u="string"!=typeof r.fontSize||-1===r.fontSize.indexOf("px")&&-1===r.fontSize.indexOf("rem")&&-1===r.fontSize.indexOf("em")?isNaN(+r.fontSize)?"12px":r.fontSize+"px":r.fontSize,s=[r.fontStyle,r.fontWeight,u,r.fontFamily||"sans-serif"].join(" ")}return s&&jc(s)||r.textFont||r.font},i}(as),us={left:!0,right:1,center:1},ZO={top:1,bottom:1,middle:1};function KO(o){if(o){o.font=D0.makeFont(o);var i=o.align;"middle"===i&&(i="center"),o.align=null==i||us[i]?i:"left";var r=o.verticalAlign;"center"===r&&(r="middle"),o.verticalAlign=null==r||ZO[r]?r:"top",o.padding&&(o.padding=Nb(o.padding))}}function vM(o,i){return null==o||i<=0||"transparent"===o||"none"===o?null:o.image||o.colorStops?"#000":o}function $O(o){return null==o||"none"===o?null:o.image||o.colorStops?"#000":o}function gM(o,i,r){return"right"===i?o-r[1]:"center"===i?o+r[3]/2-r[1]/2:o+r[3]}function A0(o){var i=o.text;return null!=i&&(i+=""),i}function E0(o){return!!(o.backgroundColor||o.lineHeight||o.borderWidth&&o.borderColor)}var fn=D0,ht=pn(),cs=function(i,r,s,u){if(u){var f=ht(u);f.dataIndex=s,f.dataType=r,f.seriesIndex=i,"group"===u.type&&u.traverse(function(d){var p=ht(d);p.seriesIndex=i,p.dataIndex=s,p.dataType=r})}},kz=1,Mz={},mM=pn(),qi=["emphasis","blur","select"],Am=["normal","emphasis","blur","select"],_f="highlight",Pm="downplay",Jd="select",Kp="unselect",$p="toggleSelect";function Om(o){return null!=o&&"none"!==o}var eh=new Td(100);function P0(o){if("string"!=typeof o)return o;var i=eh.get(o);return i||(i=lO(o,-.1),eh.put(o,i)),i}function Im(o,i,r){o.onHoverStateChange&&(o.hoverState||0)!==r&&o.onHoverStateChange(i),o.hoverState=r}function JO(o){Im(o,"emphasis",2)}function O0(o){2===o.hoverState&&Im(o,"normal",0)}function _M(o){Im(o,"blur",1)}function eI(o){1===o.hoverState&&Im(o,"normal",0)}function xz(o){o.selected=!0}function Tz(o){o.selected=!1}function tI(o,i,r){i(o,r)}function $u(o,i,r){tI(o,i,r),o.isGroup&&o.traverse(function(s){tI(s,i,r)})}function Rm(o,i){switch(i){case"emphasis":o.hoverState=2;break;case"normal":o.hoverState=0;break;case"blur":o.hoverState=1;break;case"select":o.selected=!0}}function I0(o,i){var r=this.states[o];if(this.style){if("emphasis"===o)return function(o,i,r,s){var u=r&&Rt(r,"select")>=0,f=!1;if(o instanceof Nt){var d=mM(o),p=u&&d.selectFill||d.normalFill,v=u&&d.selectStroke||d.normalStroke;if(Om(p)||Om(v)){var g=(s=s||{}).style||{};"inherit"===g.fill?(f=!0,s=Se({},s),(g=Se({},g)).fill=p):!Om(g.fill)&&Om(p)?(f=!0,s=Se({},s),(g=Se({},g)).fill=P0(p)):!Om(g.stroke)&&Om(v)&&(f||(s=Se({},s),g=Se({},g)),g.stroke=P0(v)),s.style=g}}if(s&&null==s.z2){f||(s=Se({},s));var m=o.z2EmphasisLift;s.z2=o.z2+(null!=m?m:10)}return s}(this,0,i,r);if("blur"===o)return function(o,i,r){var s=Rt(o.currentStates,i)>=0,u=o.style.opacity,f=s?null:function(o,i,r,s){for(var u=o.style,f={},d=0;d0){var v={dataIndex:p,seriesIndex:r.seriesIndex};null!=d&&(v.dataType=d),i.push(v)}})}),i}function qn(o,i,r){th(o,!0),$u(o,yf),xM(o,i,r)}function xM(o,i,r){var s=ht(o);null!=i?(s.focus=i,s.blurScope=r):s.focus&&(s.focus=null)}var oI=["emphasis","blur","select"],sI={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ki(o,i,r,s){r=r||"itemStyle";for(var u=0;u0){var S={duration:m.duration,delay:m.delay||0,easing:m.easing,done:f,force:!!f||!!d,setToFinal:!g,scope:o,during:d};p?i.animateFrom(r,S):i.animateTo(r,S)}else i.stopAnimation(),!p&&i.attr(r),d&&d(1),f&&f()}function ln(o,i,r,s,u,f){H0("update",o,i,r,s,u,f)}function yr(o,i,r,s,u,f){H0("init",o,i,r,s,u,f)}function ev(o){if(!o.__zr)return!0;for(var i=0;i-1?"ZH":"EN";function LM(o,i){o=o.toUpperCase(),nu[o]=new Nn(i),RM[o]=i}LM("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),LM("ZH",{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var ds=36e5,No=24*ds,vI=365*No,zm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},tv="{yyyy}-{MM}-{dd}",gI={year:"{yyyy}",month:"{yyyy}-{MM}",day:tv,hour:tv+" "+zm.hour,minute:tv+" "+zm.minute,second:tv+" "+zm.second,millisecond:zm.none},K0=["year","month","day","hour","minute","second","millisecond"],mI=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Vo(o,i){return"0000".substr(0,i-(o+="").length)+o}function ru(o){switch(o){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return o}}function nv(o){return o===ru(o)}function iu(o,i,r,s){var u=ao(o),f=u[$0(r)](),d=u[ah(r)]()+1,p=Math.floor((d-1)/4)+1,v=u[rv(r)](),g=u["get"+(r?"UTC":"")+"Day"](),m=u[oh(r)](),y=(m-1)%12+1,b=u[Gm(r)](),w=u[sh(r)](),S=u[Q0(r)](),x=(s instanceof Nn?s:function(o){return nu[o]}(s||Z0)||nu.EN).getModel("time"),T=x.get("month"),P=x.get("monthAbbr"),O=x.get("dayOfWeek"),R=x.get("dayOfWeekAbbr");return(i||"").replace(/{yyyy}/g,f+"").replace(/{yy}/g,f%100+"").replace(/{Q}/g,p+"").replace(/{MMMM}/g,T[d-1]).replace(/{MMM}/g,P[d-1]).replace(/{MM}/g,Vo(d,2)).replace(/{M}/g,d+"").replace(/{dd}/g,Vo(v,2)).replace(/{d}/g,v+"").replace(/{eeee}/g,O[g]).replace(/{ee}/g,R[g]).replace(/{e}/g,g+"").replace(/{HH}/g,Vo(m,2)).replace(/{H}/g,m+"").replace(/{hh}/g,Vo(y+"",2)).replace(/{h}/g,y+"").replace(/{mm}/g,Vo(b,2)).replace(/{m}/g,b+"").replace(/{ss}/g,Vo(w,2)).replace(/{s}/g,w+"").replace(/{SSS}/g,Vo(S,3)).replace(/{S}/g,S+"")}function ih(o,i){var r=ao(o),s=r[ah(i)]()+1,u=r[rv(i)](),f=r[oh(i)](),d=r[Gm(i)](),p=r[sh(i)](),g=0===r[Q0(i)](),m=g&&0===p,y=m&&0===d,b=y&&0===f,w=b&&1===u;return w&&1===s?"year":w?"month":b?"day":y?"hour":m?"minute":g?"second":"millisecond"}function _I(o,i,r){var s="number"==typeof o?ao(o):o;switch(i=i||ih(o,r)){case"year":return s[$0(r)]();case"half-year":return s[ah(r)]()>=6?1:0;case"quarter":return Math.floor((s[ah(r)]()+1)/4);case"month":return s[ah(r)]();case"day":return s[rv(r)]();case"half-day":return s[oh(r)]()/24;case"hour":return s[oh(r)]();case"minute":return s[Gm(r)]();case"second":return s[sh(r)]();case"millisecond":return s[Q0(r)]()}}function $0(o){return o?"getUTCFullYear":"getFullYear"}function ah(o){return o?"getUTCMonth":"getMonth"}function rv(o){return o?"getUTCDate":"getDate"}function oh(o){return o?"getUTCHours":"getHours"}function Gm(o){return o?"getUTCMinutes":"getMinutes"}function sh(o){return o?"getUTCSeconds":"getSeconds"}function Q0(o){return o?"getUTCMilliseconds":"getMilliseconds"}function yI(o){return o?"setUTCFullYear":"setFullYear"}function Nz(o){return o?"setUTCMonth":"setMonth"}function BM(o){return o?"setUTCDate":"setDate"}function HM(o){return o?"setUTCHours":"setHours"}function bI(o){return o?"setUTCMinutes":"setMinutes"}function zM(o){return o?"setUTCSeconds":"setSeconds"}function CI(o){return o?"setUTCMilliseconds":"setMilliseconds"}function UM(o){if(!of(o))return yt(o)?o:"-";var i=(o+"").split(".");return i[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(i.length>1?"."+i[1]:"")}function Na(o,i){return o=(o||"").toLowerCase().replace(/-(.)/g,function(r,s){return s.toUpperCase()}),i&&o&&(o=o.charAt(0).toUpperCase()+o.slice(1)),o}var lh=Nb,Vz=/([&<>"'])/g,iZ={"&":"&","<":"<",">":">",'"':""","'":"'"};function Bo(o){return null==o?"":(o+"").replace(Vz,function(i,r){return iZ[r]})}function jm(o,i,r){function u(m){return m&&jc(m)?m:"-"}function f(m){return!(null==m||isNaN(m)||!isFinite(m))}var d="time"===i,p=o instanceof Date;if(d||p){var v=d?ao(o):o;if(!isNaN(+v))return iu(v,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",r);if(p)return"-"}if("ordinal"===i)return Gc(o)?u(o):yk(o)&&f(o)?o+"":"-";var g=Fa(o);return f(g)?UM(g):Gc(o)?u(o):"-"}var Bz=["a","b","c","d","e","f","g"],GM=function(i,r){return"{"+i+(null==r?"":r)+"}"};function Wm(o,i,r){we(i)||(i=[i]);var s=i.length;if(!s)return"";for(var u=i[0].$vars||[],f=0;f':'':{renderMode:f,content:"{"+(r.markerId||"markerX")+"|} ",style:"subItem"===u?{width:4,height:4,borderRadius:2,backgroundColor:s}:{width:10,height:10,borderRadius:5,backgroundColor:s}}:""}function Hz(o,i,r){("week"===o||"month"===o||"quarter"===o||"half-year"===o||"year"===o)&&(o="MM-dd\nyyyy");var s=ao(i),u=r?"UTC":"",f=s["get"+u+"FullYear"](),d=s["get"+u+"Month"]()+1,p=s["get"+u+"Date"](),v=s["get"+u+"Hours"](),g=s["get"+u+"Minutes"](),m=s["get"+u+"Seconds"](),y=s["get"+u+"Milliseconds"]();return o.replace("MM",Vo(d,2)).replace("M",d).replace("yyyy",f).replace("yy",f%100+"").replace("dd",Vo(p,2)).replace("d",p).replace("hh",Vo(v,2)).replace("h",v).replace("mm",Vo(g,2)).replace("m",g).replace("ss",Vo(m,2)).replace("s",m).replace("SSS",Vo(y,3))}function zz(o){return o&&o.charAt(0).toUpperCase()+o.substr(1)}function wf(o,i){return i=i||"transparent",yt(o)?o:at(o)&&o.colorStops&&(o.colorStops[0]||{}).color||i}function J0(o,i){if("_blank"===i||"blank"===i){var r=window.open();r.opener=null,r.location.href=o}else window.open(o,i)}var Ym=q,kI=["left","right","top","bottom","width","height"],uh=[["width","left","right"],["height","top","bottom"]];function eC(o,i,r,s,u){var f=0,d=0;null==s&&(s=1/0),null==u&&(u=1/0);var p=0;i.eachChild(function(v,g){var w,S,m=v.getBoundingRect(),y=i.childAt(g+1),b=y&&y.getBoundingRect();if("horizontal"===o){var M=m.width+(b?-b.x+m.x:0);(w=f+M)>s||v.newline?(f=0,w=M,d+=p+r,p=m.height):p=Math.max(p,m.height)}else{var x=m.height+(b?-b.y+m.y:0);(S=d+x)>u||v.newline?(f+=p+r,d=0,S=x,p=m.width):p=Math.max(p,m.width)}v.newline||(v.x=f,v.y=d,v.markRedraw(),"horizontal"===o?f=w+r:d=S+r)})}var Sf=eC;function li(o,i,r){r=lh(r||0);var s=i.width,u=i.height,f=Fe(o.left,s),d=Fe(o.top,u),p=Fe(o.right,s),v=Fe(o.bottom,u),g=Fe(o.width,s),m=Fe(o.height,u),y=r[2]+r[0],b=r[1]+r[3],w=o.aspect;switch(isNaN(g)&&(g=s-p-b-f),isNaN(m)&&(m=u-v-y-d),null!=w&&(isNaN(g)&&isNaN(m)&&(w>s/u?g=.8*s:m=.8*u),isNaN(g)&&(g=w*m),isNaN(m)&&(m=g/w)),isNaN(f)&&(f=s-p-g-b),isNaN(d)&&(d=u-v-m-y),o.left||o.right){case"center":f=s/2-g/2-r[3];break;case"right":f=s-g-b}switch(o.top||o.bottom){case"middle":case"center":d=u/2-m/2-r[0];break;case"bottom":d=u-m-y}f=f||0,d=d||0,isNaN(g)&&(g=s-b-f-(p||0)),isNaN(m)&&(m=u-y-d-(v||0));var S=new Ft(f+r[3],d+r[0],g,m);return S.margin=r,S}function tC(o,i,r,s,u){var f=!u||!u.hv||u.hv[0],d=!u||!u.hv||u.hv[1],p=u&&u.boundingMode||"all";if(f||d){var v;if("raw"===p)v="group"===o.type?new Ft(0,0,+i.width||0,+i.height||0):o.getBoundingRect();else if(v=o.getBoundingRect(),o.needLocalTransform()){var g=o.getLocalTransform();(v=v.clone()).applyTransform(g)}var m=li(tt({width:v.width,height:v.height},i),r,s),y=f?m.x-v.x:0,b=d?m.y-v.y:0;"raw"===p?(o.x=y,o.y=b):(o.x+=y,o.y+=b),o.markRedraw()}}function iv(o){var i=o.layoutMode||o.constructor.layoutMode;return at(i)?i:i?{type:i}:null}function kf(o,i,r){var s=r&&r.ignoreSize;!we(s)&&(s=[s,s]);var u=d(uh[0],0),f=d(uh[1],1);function d(m,y){var b={},w=0,S={},M=0;if(Ym(m,function(O){S[O]=o[O]}),Ym(m,function(O){p(i,O)&&(b[O]=S[O]=i[O]),v(b,O)&&w++,v(S,O)&&M++}),s[y])return v(i,m[1])?S[m[2]]=null:v(i,m[2])&&(S[m[1]]=null),S;if(2===M||!w)return S;if(w>=2)return b;for(var T=0;T=0;v--)p=He(p,u[v],!0);s.defaultOption=p}return s.defaultOption},i.prototype.getReferringComponents=function(r,s){var f=r+"Id";return d0(this.ecModel,r,{index:this.get(r+"Index",!0),id:this.get(f,!0)},s)},i.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},i.protoInitialize=function(){var r=i.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),i}(Nn);h0(ov,Nn),qu(ov),function(o){var i={};o.registerSubTypeDefaulter=function(r,s){var u=ql(r);i[u.main]=s},o.determineSubType=function(r,s){var u=s.type;if(!u){var f=ql(r).main;o.hasSubTypes(r)&&i[f]&&(u=i[f](s))}return u}}(ov),function(o,i){function s(f,d){return f[d]||(f[d]={predecessor:[],successor:[]}),f[d]}o.topologicalTravel=function(f,d,p,v){if(f.length){var g=function(f){var d={},p=[];return q(f,function(v){var g=s(d,v),y=function(f,d){var p=[];return q(f,function(v){Rt(d,v)>=0&&p.push(v)}),p}(g.originalDeps=function(o){var i=[];return q(ov.getClassesByMainType(o),function(r){i=i.concat(r.dependencies||r.prototype.dependencies||[])}),i=Te(i,function(r){return ql(r).main}),"dataset"!==o&&Rt(i,"dataset")<=0&&i.unshift("dataset"),i}(v),f);g.entryCount=y.length,0===g.entryCount&&p.push(v),q(y,function(b){Rt(g.predecessor,b)<0&&g.predecessor.push(b);var w=s(d,b);Rt(w.successor,b)<0&&w.successor.push(v)})}),{graph:d,noEntryList:p}}(d),m=g.graph,y=g.noEntryList,b={};for(q(f,function(P){b[P]=!0});y.length;){var w=y.pop(),S=m[w],M=!!b[w];M&&(p.call(v,w,S.originalDeps.slice()),delete b[w]),q(S.successor,M?T:x)}q(b,function(){throw new Error("")})}function x(P){m[P].entryCount--,0===m[P].entryCount&&y.push(P)}function T(P){b[P]=!0,x(P)}}}(ov);var qt=ov,nC="";"undefined"!=typeof navigator&&(nC=navigator.platform||"");var sv="rgba(0, 0, 0, 0.2)",YM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:sv,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sv,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sv,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sv,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sv,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sv,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:nC.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},rC=et(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ho="original",ma="arrayRows",hs="objectRows",ps="keyedColumns",Mf="typedArray",xI="unknown",tl="column",ch="row",qM=pn();function au(o,i,r){var s={},u=XM(i);if(!u||!o)return s;var m,y,f=[],d=[],v=qM(i.ecModel).datasetMap,g=u.uid+"_"+r.seriesLayoutBy;q(o=o.slice(),function(M,x){var T=at(M)?M:o[x]={name:M};"ordinal"===T.type&&null==m&&(m=x,y=S(T)),s[T.name]=[]});var b=v.get(g)||v.set(g,{categoryWayDim:y,valueWayDim:0});function w(M,x,T){for(var P=0;Pi)return o[s];return o[r-1]}(s,d):r;if((m=m||r)&&m.length){var y=m[v];return u&&(g[u]=y),p.paletteIdx=(v+1)%m.length,y}}var oC,Zm,QM,fh="\0_ec_inner",OI=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.init=function(r,s,u,f,d,p){f=f||{},this.option=null,this._theme=new Nn(f),this._locale=new Nn(d),this._optionManager=p},i.prototype.setOption=function(r,s,u){var f=JM(s);this._optionManager.setOption(r,u,f),this._resetOption(null,f)},i.prototype.resetOption=function(r,s){return this._resetOption(r,JM(s))},i.prototype._resetOption=function(r,s){var u=!1,f=this._optionManager;if(!r||"recreate"===r){var d=f.mountOption("recreate"===r);this.option&&"recreate"!==r?(this.restoreData(),this._mergeOption(d,s)):QM(this,d),u=!0}if(("timeline"===r||"media"===r)&&this.restoreData(),!r||"recreate"===r||"timeline"===r){var p=f.getTimelineOption(this);p&&(u=!0,this._mergeOption(p,s))}if(!r||"recreate"===r||"media"===r){var v=f.getMediaOption(this);v.length&&q(v,function(g){u=!0,this._mergeOption(g,s)},this)}return u},i.prototype.mergeOption=function(r){this._mergeOption(r,null)},i.prototype._mergeOption=function(r,s){var u=this.option,f=this._componentsMap,d=this._componentsCount,p=[],v=et(),g=s&&s.replaceMergeMainTypeMap;(function(o){qM(o).datasetMap=et()})(this),q(r,function(y,b){null!=y&&(qt.hasClass(b)?b&&(p.push(b),v.set(b,!0)):u[b]=null==u[b]?rt(y):He(u[b],y,!0))}),g&&g.each(function(y,b){qt.hasClass(b)&&!v.get(b)&&(p.push(b),v.set(b,!0))}),qt.topologicalTravel(p,qt.getAllClassMainTypes(),function(y){var b=function(o,i,r){var s=iC.get(i);if(!s)return r;var u=s(o);return u?r.concat(u):r}(this,y,jn(r[y])),w=f.get(y),M=Xk(w,b,w?g&&g.get(y)?"replaceMerge":"normalMerge":"replaceAll");(function(o,i,r){q(o,function(s){var u=s.newOption;at(u)&&(s.keyInfo.mainType=i,s.keyInfo.subType=function(o,i,r,s){return i.type?i.type:r?r.subType:s.determineSubType(o,i)}(i,u,s.existing,r))})})(M,y,qt),u[y]=null,f.set(y,null),d.set(y,0);var x=[],T=[],P=0;q(M,function(O,R){var V=O.existing,B=O.newOption;if(B){var j=qt.getClass(y,O.keyInfo.subType,!("series"===y));if(!j)return;if(V&&V.constructor===j)V.name=O.keyInfo.name,V.mergeOption(B,this),V.optionUpdated(B,!1);else{var $=Se({componentIndex:R},O.keyInfo);Se(V=new j(B,this,this,$),$),O.brandNew&&(V.__requireNewView=!0),V.init(B,this,this),V.optionUpdated(null,!0)}}else V&&(V.mergeOption({},this),V.optionUpdated({},!1));V?(x.push(V.option),T.push(V),P++):(x.push(void 0),T.push(void 0))},this),u[y]=x,f.set(y,T),d.set(y,P),"series"===y&&oC(this)},this),this._seriesIndices||oC(this)},i.prototype.getOption=function(){var r=rt(this.option);return q(r,function(s,u){if(qt.hasClass(u)){for(var f=jn(s),d=f.length,p=!1,v=d-1;v>=0;v--)f[v]&&!Yl(f[v])?p=!0:(f[v]=null,!p&&d--);f.length=d,r[u]=f}}),delete r[fh],r},i.prototype.getTheme=function(){return this._theme},i.prototype.getLocaleModel=function(){return this._locale},i.prototype.setUpdatePayload=function(r){this._payload=r},i.prototype.getUpdatePayload=function(){return this._payload},i.prototype.getComponent=function(r,s){var u=this._componentsMap.get(r);if(u){var f=u[s||0];if(f)return f;if(null==s)for(var d=0;d=i:"max"===r?o<=i:o===i})(s[g],f,v)||(u=!1)}}),u}var t4=function(){function o(i){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=i}return o.prototype.setOption=function(i,r,s){i&&(q(jn(i.series),function(d){d&&d.data&&Ii(d.data)&&Vb(d.data)}),q(jn(i.dataset),function(d){d&&d.source&&Ii(d.source)&&Vb(d.source)})),i=rt(i);var u=this._optionBackup,f=function(o,i,r){var u,f,s=[],d=o.baseOption,p=o.timeline,v=o.options,g=o.media,m=!!o.media,y=!!(v||p||d&&d.timeline);function b(w){q(i,function(S){S(w,r)})}return d?(f=d).timeline||(f.timeline=p):((y||m)&&(o.options=o.media=null),f=o),m&&we(g)&&q(g,function(w){w&&w.option&&(w.query?s.push(w):u||(u=w))}),b(f),q(v,function(w){return b(w)}),q(s,function(w){return b(w.option)}),{baseOption:f,timelineOptions:v||[],mediaDefault:u,mediaList:s}}(i,r,!u);this._newBaseOption=f.baseOption,u?(f.timelineOptions.length&&(u.timelineOptions=f.timelineOptions),f.mediaList.length&&(u.mediaList=f.mediaList),f.mediaDefault&&(u.mediaDefault=f.mediaDefault)):this._optionBackup=f},o.prototype.mountOption=function(i){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],rt(i?r.baseOption:this._newBaseOption)},o.prototype.getTimelineOption=function(i){var r,s=this._timelineOptions;if(s.length){var u=i.getComponent("timeline");u&&(r=rt(s[u.getCurrentIndex()]))}return r},o.prototype.getMediaOption=function(i){var r=this._api.getWidth(),s=this._api.getHeight(),u=this._mediaList,f=this._mediaDefault,d=[],p=[];if(!u.length&&!f)return p;for(var v=0,g=u.length;v=0;M--){var x=o[M];if(p||(w=x.data.rawIndexOf(x.stackedByDimension,b)),w>=0){var T=x.data.getByRawIndex(x.stackResultDimension,w);if(y>=0&&T>0||y<=0&&T<0){y=WH(y,T),S=T;break}}}return s[0]=y,s[1]=S,s})})}var rx=function(i){this.data=i.data||(i.sourceFormat===ps?{}:[]),this.sourceFormat=i.sourceFormat||xI,this.seriesLayoutBy=i.seriesLayoutBy||tl,this.startIndex=i.startIndex||0,this.dimensionsDetectedCount=i.dimensionsDetectedCount,this.metaRawOption=i.metaRawOption;var r=this.dimensionsDefine=i.dimensionsDefine;if(r)for(var s=0;sx&&(x=R)}S[0]=M,S[1]=x}},u=function(){return this._data?this._data.length/this._dimSize:0};function f(d){for(var p=0;p=0&&(M=d.interpolatedValue[x])}return null!=M?M+"":""}):void 0},o.prototype.getRawValue=function(i,r){return zo(this.getData(r),i)},o.prototype.formatTooltip=function(i,r,s){},o}();function yh(o){var i,r;return at(o)?o.type&&(r=o):i=o,{markupText:i,markupFragment:r}}function su(o){return new hv(o)}var hv=function(){function o(i){this._reset=(i=i||{}).reset,this._plan=i.plan,this._count=i.count,this._onDirty=i.onDirty,this._dirty=!0}return o.prototype.perform=function(i){var f,r=this._upstream,s=i&&i.skip;if(this._dirty&&r){var u=this.context;u.data=u.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!s&&(f=this._plan(this.context));var y,d=m(this._modBy),p=this._modDataCount||0,v=m(i&&i.modBy),g=i&&i.modDataCount||0;function m(P){return!(P>=1)&&(P=1),P}(d!==v||p!==g)&&(f="reset"),(this._dirty||"reset"===f)&&(this._dirty=!1,y=this._doReset(s)),this._modBy=v,this._modDataCount=g;var b=i&&i.step;if(this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var w=this._dueIndex,S=Math.min(null!=b?this._dueIndex+b:1/0,this._dueEnd);if(!s&&(y||w1&&s>0?p:d}};return f;function d(){return i=o?null:vr},gte:function(i,r){return i>=r}},re=function(){function o(i,r){"number"!=typeof r&&Mn(""),this._opFn=ZI[i],this._rvalFloat=Fa(r)}return o.prototype.evaluate=function(i){return this._opFn("number"==typeof i?i:Fa(i),this._rvalFloat)},o}(),KI=function(){function o(i,r){var s="desc"===i;this._resultLT=s?1:-1,null==r&&(r=s?"min":"max"),this._incomparable="min"===r?-1/0:1/0}return o.prototype.evaluate=function(i,r){var s=typeof i,u=typeof r,f="number"===s?i:Fa(i),d="number"===u?r:Fa(r),p=isNaN(f),v=isNaN(d);if(p&&(f=this._incomparable),v&&(d=this._incomparable),p&&v){var g="string"===s,m="string"===u;g&&(f=m?i:0),m&&(d=g?r:0)}return fd?-this._resultLT:0},o}(),Pn=function(){function o(i,r){this._rval=r,this._isEQ=i,this._rvalTypeof=typeof r,this._rvalFloat=Fa(r)}return o.prototype.evaluate=function(i){var r=i===this._rval;if(!r){var s=typeof i;s!==this._rvalTypeof&&("number"===s||"number"===this._rvalTypeof)&&(r=Fa(i)===this._rvalFloat)}return this._isEQ?r:!r},o}();function $I(o,i){return"eq"===o||"ne"===o?new Pn("eq"===o,i):Ae(ZI,o)?new re(o,i):null}var v4=function(){function o(){}return o.prototype.getRawData=function(){throw new Error("not supported")},o.prototype.getRawDataItem=function(i){throw new Error("not supported")},o.prototype.cloneRawData=function(){},o.prototype.getDimensionInfo=function(i){},o.prototype.cloneAllDimensionInfo=function(){},o.prototype.count=function(){},o.prototype.retrieveValue=function(i,r){},o.prototype.retrieveValueFromItem=function(i,r){},o.prototype.convertValue=function(i,r){return n_(i,r)},o}();function m4(o){return fC(o.sourceFormat)||Mn(""),o.data}function QI(o){var i=o.sourceFormat,r=o.data;if(fC(i)||Mn(""),i===ma){for(var u=[],f=0,d=r.length;f65535?hZ:pZ}function S4(o){var i=o.constructor;return i===Array?o.slice():new i(o)}function k4(o,i,r,s,u){var f=nR[r||"float"];if(u){var d=o[i],p=d&&d.length;if(p!==s){for(var v=new f(s),g=0;gx[1]&&(x[1]=M)}return this._rawCount=this._count=v,{start:p,end:v}},o.prototype._initDataFromProvider=function(i,r,s){for(var u=this._provider,f=this._chunks,d=this._dimensions,p=d.length,v=this._rawExtent,g=Te(d,function(P){return P.property}),m=0;mT[1]&&(T[1]=x)}}!u.persistent&&u.clean&&u.clean(),this._rawCount=this._count=r,this._extent=[]},o.prototype.count=function(){return this._count},o.prototype.get=function(i,r){if(!(r>=0&&r=0&&r=this._rawCount||i<0)return-1;if(!this._indices)return i;var r=this._indices,s=r[i];if(null!=s&&si))return d;f=d-1}}return-1},o.prototype.indicesOfNearest=function(i,r,s){var f=this._chunks[i],d=[];if(!f)return d;null==s&&(s=1/0);for(var p=1/0,v=-1,g=0,m=0,y=this.count();m=0&&v<0)&&(p=S,v=w,g=0),w===v&&(d[g++]=m))}return d.length=g,d},o.prototype.getIndices=function(){var i,r=this._indices;if(r){var u=this._count;if((s=r.constructor)===Array){i=new s(u);for(var f=0;f=y&&P<=b||isNaN(P))&&(v[g++]=M),M++;S=!0}else if(2===f){x=w[u[0]];var O=w[u[1]],R=i[u[1]][0],V=i[u[1]][1];for(T=0;T=y&&P<=b||isNaN(P))&&(B>=R&&B<=V||isNaN(B))&&(v[g++]=M),M++}S=!0}}if(!S)if(1===f)for(T=0;T=y&&P<=b||isNaN(P))&&(v[g++]=U)}else for(T=0;Ti[Z][1])&&(j=!1)}j&&(v[g++]=r.getRawIndex(T))}return gT[1]&&(T[1]=x)}}},o.prototype.lttbDownSample=function(i,r){var m,y,b,s=this.clone([i],!0),f=s._chunks[i],d=this.count(),p=0,v=Math.floor(1/r),g=this.getRawIndex(0),w=new(Ch(this._rawCount))(Math.ceil(d/v)+2);w[p++]=g;for(var S=1;Sm&&(m=y,b=R)}w[p++]=b,g=b}return w[p++]=this.getRawIndex(d-1),s._count=p,s._indices=w,s.getRawIndex=this._getRawIdx,s},o.prototype.downSample=function(i,r,s,u){for(var f=this.clone([i],!0),d=f._chunks,p=[],v=Math.floor(1/r),g=d[i],m=this.count(),y=f._rawExtent[i]=[1/0,-1/0],b=new(Ch(this._rawCount))(Math.ceil(m/v)),w=0,S=0;Sm-S&&(p.length=v=m-S);for(var M=0;My[1]&&(y[1]=T),b[w++]=P}return f._count=w,f._indices=b,f._updateGetRawIdx(),f},o.prototype.each=function(i,r){if(this._count)for(var s=i.length,u=this._chunks,f=0,d=this.count();fv&&(v=y)}return this._extent[i]=d=[p,v],d},o.prototype.getRawDataItem=function(i){var r=this.getRawIndex(i);if(this._provider.persistent)return this._provider.getItem(r);for(var s=[],u=this._chunks,f=0;f=0?this._indices[i]:-1},o.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},o.internalField=function(){function i(r,s,u,f){return n_(r[f],this._dimensions[f])}sx={arrayRows:i,objectRows:function(s,u,f,d){return n_(s[u],this._dimensions[d])},keyedColumns:i,original:function(s,u,f,d){var p=s&&(null==s.value?s:s.value);return n_(p instanceof Array?p[d]:p,this._dimensions[d])},typedArray:function(s,u,f,d){return s[d]}}}(),o}(),iR=function(){function o(i){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=i}return o.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},o.prototype._setLocalSource=function(i,r){this._sourceList=i,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},o.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},o.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},o.prototype._createSource=function(){this._setLocalSource([],[]);var u,f,i=this._sourceHost,r=this._getUpstreamSourceManagers(),s=!!r.length;if(ux(i)){var d=i,p=void 0,v=void 0,g=void 0;if(s){var m=r[0];m.prepareSource(),p=(g=m.getSource()).data,v=g.sourceFormat,f=[m._getVersionSign()]}else v=Ii(p=d.get("data",!0))?Mf:Ho,f=[];var y=this._getSourceMetaRawOption()||{},b=g&&g.metaRawOption||{},w=ot(y.seriesLayoutBy,b.seriesLayoutBy)||null,S=ot(y.sourceHeader,b.sourceHeader)||null,M=ot(y.dimensions,b.dimensions);u=w!==b.seriesLayoutBy||!!S!=!!b.sourceHeader||M?[lC(p,{seriesLayoutBy:w,sourceHeader:S,dimensions:M},v)]:[]}else{var T=i;if(s){var P=this._applyTransform(r);u=P.sourceList,f=P.upstreamSignList}else u=[lC(T.get("source",!0),this._getSourceMetaRawOption(),null)],f=[]}this._setLocalSource(u,f)},o.prototype._applyTransform=function(i){var r=this._sourceHost,s=r.get("transform",!0),u=r.get("fromTransformResult",!0);null!=u&&1!==i.length&&aR("");var d,p=[],v=[];return q(i,function(g){g.prepareSource();var m=g.getSource(u||0);null!=u&&!m&&aR(""),p.push(m),v.push(g._getVersionSign())}),s?d=function(o,i,r){var s=jn(o),u=s.length;u||Mn("");for(var d=0,p=u;d1||r>0&&!i.noHeader,u=0;q(i.blocks,function(f){hC(f).planLayout(f);var d=f.__gapLevelBetweenSubBlocks;d>=u&&(u=d+(!s||d&&("section"!==f.type||f.noHeader)?0:1))}),i.__gapLevelBetweenSubBlocks=u},build:function(i,r,s,u){var f=r.noHeader,d=fR(r),p=function(o,i,r,s){var u=[],f=i.blocks||[];Oa(!f||we(f)),f=f||[];var d=o.orderMode;if(i.sortBlocks&&d){f=f.slice();var p={valueAsc:"asc",valueDesc:"desc"};if(Ae(p,d)){var v=new KI(p[d],null);f.sort(function(m,y){return v.evaluate(m.sortParam,y.sortParam)})}else"seriesDesc"===d&&f.reverse()}var g=fR(i);if(q(f,function(m,y){var b=hC(m).build(o,m,y>0?g.html:0,s);null!=b&&u.push(b)}),u.length)return"richText"===o.renderMode?u.join(g.richText):cx(u.join(""),r)}(i,r,f?s:d.html,u);if(f)return p;var v=jm(r.header,"ordinal",i.useUTC),g=oR(u,i.renderMode).nameStyle;return"richText"===i.renderMode?fx(i,v,g)+d.richText+p:cx('
'+Bo(v)+"
"+p,s)}},nameValue:{planLayout:function(i){i.__gapLevelBetweenSubBlocks=0},build:function(i,r,s,u){var f=i.renderMode,d=r.noName,p=r.noValue,v=!r.markerType,g=r.name,m=r.value,y=i.useUTC;if(!d||!p){var b=v?"":i.markupStyleCreator.makeTooltipMarker(r.markerType,r.markerColor||"#333",f),w=d?"":jm(g,"ordinal",y),S=r.valueType,M=p?[]:we(m)?Te(m,function(V,B){return jm(V,we(S)?S[B]:S,y)}):[jm(m,we(S)?S[0]:S,y)],x=!v||!d,T=!v&&d,P=oR(u,f),O=P.nameStyle,R=P.valueStyle;return"richText"===f?(v?"":b)+(d?"":fx(i,w,O))+(p?"":function(o,i,r,s,u){var f=[u];return r&&f.push({padding:[0,0,0,s?10:20],align:"right"}),o.markupStyleCreator.wrapRichTextStyle(i.join(" "),f)}(i,M,x,T,R)):cx((v?"":b)+(d?"":function(o,i,r){return''+Bo(o)+""}(w,!v,O))+(p?"":function(o,i,r,s){return''+Te(o,function(d){return Bo(d)}).join("  ")+""}(M,x,T,R)),s)}}}};function cR(o,i,r,s,u,f){if(o){var d=hC(o);return d.planLayout(o),d.build({useUTC:u,renderMode:r,orderMode:s,markupStyleCreator:i},o,0,f)}}function fR(o){var i=o.__gapLevelBetweenSubBlocks;return{html:sR[i],richText:M4[i]}}function cx(o,i){return'
'+o+'
'}function fx(o,i,r){return o.markupStyleCreator.wrapRichTextStyle(i,r)}function dx(o,i){return wf(o.getData().getItemVisual(i,"style")[o.visualDrawType])}function hx(o,i){var r=o.get("padding");return null!=r?r:"richText"===i?[8,10]:10}var r_=function(){function o(){this.richTextStyles={},this._nextStyleNameId=Gp()}return o.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},o.prototype.makeTooltipMarker=function(i,r,s){var u="richText"===s?this._generateStyleName():null,f=SI({color:r,type:i,renderMode:s,markerId:u});return yt(f)?f:(this.richTextStyles[u]=f.style,f.content)},o.prototype.wrapRichTextStyle=function(i,r){var s={};we(r)?q(r,function(f){return Se(s,f)}):Se(s,r);var u=this._generateStyleName();return this.richTextStyles[u]=s,"{"+u+"|"+i+"}"},o}();function D4(o){var m,y,b,w,i=o.series,r=o.dataIndex,s=o.multipleSeries,u=i.getData(),f=u.mapDimensionsAll("defaultedTooltip"),d=f.length,p=i.getRawValue(r),v=we(p),g=dx(i,r);if(d>1||v&&!d){var S=function(o,i,r,s,u){var f=i.getData(),d=zu(o,function(y,b,w){var S=f.getDimensionInfo(w);return y||S&&!1!==S.tooltip&&null!=S.displayName},!1),p=[],v=[],g=[];function m(y,b){var w=f.getDimensionInfo(b);!w||!1===w.otherDims.tooltip||(d?g.push(pi("nameValue",{markerType:"subItem",markerColor:u,name:w.displayName,value:y,valueType:w.type})):(p.push(y),v.push(w.type)))}return s.length?q(s,function(y){m(zo(f,r,y),y)}):q(o,m),{inlineValues:p,inlineValueTypes:v,blocks:g}}(p,i,r,f,g);m=S.inlineValues,y=S.inlineValueTypes,b=S.blocks,w=S.inlineValues[0]}else if(d){var M=u.getDimensionInfo(f[0]);w=m=zo(u,r,f[0]),y=M.type}else w=m=v?p[0]:p;var x=ii(i),T=x&&i.name||"",P=u.getName(r),O=s?T:P;return pi("section",{header:T,noHeader:s||!x,sortParam:w,blocks:[pi("nameValue",{markerType:"item",markerColor:g,name:O,noName:!jc(O),value:m,valueType:y})].concat(b||[])})}var Sh=pn();function px(o,i){return o.getName(i)||o.getId(i)}var N="__universalTransitionEnabled",pC=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return he(i,o),i.prototype.init=function(r,s,u){this.seriesIndex=this.componentIndex,this.dataTask=su({count:A4,reset:A}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,u),(Sh(this).sourceManager=new iR(this)).prepareSource();var d=this.getInitialData(r,u);me(d,this),this.dataTask.context.data=d,Sh(this).dataBeforeProcessed=d,z(this),this._initSelectedMapFromData(d)},i.prototype.mergeDefaultAndTheme=function(r,s){var u=iv(this),f=u?av(r):{},d=this.subType;qt.hasClass(d)&&(d+="Series"),He(r,s.getTheme().get(this.subType)),He(r,this.getDefaultOption()),Nd(r,"label",["show"]),this.fillDataTextStyle(r.data),u&&kf(r,f,u)},i.prototype.mergeOption=function(r,s){r=He(this.option,r,!0),this.fillDataTextStyle(r.data);var u=iv(this);u&&kf(this.option,r,u);var f=Sh(this).sourceManager;f.dirty(),f.prepareSource();var d=this.getInitialData(r,s);me(d,this),this.dataTask.dirty(),this.dataTask.context.data=d,Sh(this).dataBeforeProcessed=d,z(this),this._initSelectedMapFromData(d)},i.prototype.fillDataTextStyle=function(r){if(r&&!Ii(r))for(var s=["show"],u=0;uthis.getShallow("animationThreshold")&&(r=!1),!!r},i.prototype.restoreData=function(){this.dataTask.dirty()},i.prototype.getColorFromPalette=function(r,s,u){var f=this.ecModel,d=aC.prototype.getColorFromPalette.call(this,r,s,u);return d||(d=f.getColorFromPalette(r,s,u)),d},i.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},i.prototype.getProgressive=function(){return this.get("progressive")},i.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},i.prototype.select=function(r,s){this._innerSelect(this.getData(s),r)},i.prototype.unselect=function(r,s){var u=this.option.selectedMap;if(u)for(var f=this.getData(s),d=0;d=0&&u.push(d)}return u},i.prototype.isSelected=function(r,s){var u=this.option.selectedMap;return u&&u[px(this.getData(s),r)]||!1},i.prototype.isUniversalTransitionEnabled=function(){if(this[N])return!0;var r=this.option.universalTransition;return!!r&&(!0===r||r&&r.enabled)},i.prototype._innerSelect=function(r,s){var u,f,d=this.option.selectedMode,p=s.length;if(d&&p)if("multiple"===d)for(var v=this.option.selectedMap||(this.option.selectedMap={}),g=0;g0&&this._innerSelect(r,s)}},i.registerClass=function(r){return qt.registerClass(r)},i.protoInitialize=function(){var r=i.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),i}(qt);function z(o){var i=o.name;ii(o)||(o.name=function(o){var i=o.getRawData(),r=i.mapDimensionsAll("seriesName"),s=[];return q(r,function(u){var f=i.getDimensionInfo(u);f.displayName&&s.push(f.displayName)}),s.join(" ")}(o)||i)}function A4(o){return o.model.getRawData().count()}function A(o){var i=o.model;return i.setData(i.getRawData().cloneShallow()),E}function E(o,i){i.outputData&&o.end>i.outputData.count()&&i.model.getRawData().cloneShallow(i.outputData)}function me(o,i){q(Bb(o.CHANGABLE_METHODS,o.DOWNSAMPLE_METHODS),function(r){o.wrapMethod(r,St(_Z,i))})}function _Z(o,i){var r=gx(o);return r&&r.setOutputEnd((i||this).count()),i}function gx(o){var i=(o.ecModel||{}).scheduler,r=i&&i.getPipeline(o.uid);if(r){var s=r.currentTask;if(s){var u=s.agentStubMap;u&&(s=u.get(o.uid))}return s}}qr(pC,Ke),qr(pC,aC),h0(pC,qt);var vt=pC,xn=function(){function o(){this.group=new ct,this.uid=Bm("viewComponent")}return o.prototype.init=function(i,r){},o.prototype.render=function(i,r,s,u){},o.prototype.dispose=function(i,r){},o.prototype.updateView=function(i,r,s,u){},o.prototype.updateLayout=function(i,r,s,u){},o.prototype.updateVisual=function(i,r,s,u){},o.prototype.blurSeries=function(i,r){},o}();Zk(xn),qu(xn);var un=xn;function De(){var o=pn();return function(i){var r=o(i),s=i.pipelineContext,u=!!r.large,f=!!r.progressiveRender,d=r.large=!(!s||!s.large),p=r.progressiveRender=!(!s||!s.progressiveRender);return(u!==d||f!==p)&&"reset"}}var vv=pn(),dR=De(),gv=function(){function o(){this.group=new ct,this.uid=Bm("viewChart"),this.renderTask=su({plan:E4,reset:hR}),this.renderTask.context={view:this}}return o.prototype.init=function(i,r){},o.prototype.render=function(i,r,s,u){},o.prototype.highlight=function(i,r,s,u){mv(i.getData(),u,"emphasis")},o.prototype.downplay=function(i,r,s,u){mv(i.getData(),u,"normal")},o.prototype.remove=function(i,r){this.group.removeAll()},o.prototype.dispose=function(i,r){},o.prototype.updateView=function(i,r,s,u){this.render(i,r,s,u)},o.prototype.updateLayout=function(i,r,s,u){this.render(i,r,s,u)},o.prototype.updateVisual=function(i,r,s,u){this.render(i,r,s,u)},o.markUpdateMethod=function(i,r){vv(i).updateMethod=r},o.protoInitialize=void(o.prototype.type="chart"),o}();function ne(o,i,r){o&&("emphasis"===i?Js:eu)(o,r)}function mv(o,i,r){var s=va(o,i),u=i&&null!=i.highlightKey?function(o){var i=Mz[o];return null==i&&kz<=32&&(i=Mz[o]=kz++),i}(i.highlightKey):null;null!=s?q(jn(s),function(f){ne(o.getItemGraphicEl(f),r,u)}):o.eachItemGraphicEl(function(f){ne(f,r,u)})}function E4(o){return dR(o.model)}function hR(o){var i=o.model,r=o.ecModel,s=o.api,u=o.payload,f=i.pipelineContext.progressiveRender,d=o.view,p=u&&vv(u).updateMethod,v=f?"incrementalPrepareRender":p&&d[p]?p:"render";return"render"!==v&&d[v](i,r,s,u),pR[v]}Zk(gv),qu(gv);var pR={incrementalPrepareRender:{progress:function(i,r){r.view.incrementalRender(i,r.model,r.ecModel,r.api,r.payload)}},render:{forceFirstProgress:!0,progress:function(i,r){r.view.render(r.model,r.ecModel,r.api,r.payload)}}},Vn=gv,J="\0__throttleOriginMethod",vR="\0__throttleRate",rr="\0__throttleType";function Wt(o,i,r){var s,p,v,g,m,u=0,f=0,d=null;function y(){f=(new Date).getTime(),d=null,o.apply(v,g||[])}i=i||0;var b=function(){for(var S=[],M=0;M=0?y():d=setTimeout(y,-p),u=s};return b.clear=function(){d&&(clearTimeout(d),d=null)},b.debounceNextCall=function(w){m=w},b}function il(o,i,r,s){var u=o[i];if(u){var f=u[J]||u;if(u[vR]!==r||u[rr]!==s){if(null==r||!s)return o[i]=f;(u=o[i]=Wt(f,r,"debounce"===s))[J]=f,u[rr]=s,u[vR]=r}return u}}var _x=pn(),yx={itemStyle:Hd(uI,!0),lineStyle:Hd(q0,!0)},gR={lineStyle:"stroke",itemStyle:"fill"};function bx(o,i){return o.visualStyleMapper||yx[i]||(console.warn("Unkown style type '"+i+"'."),yx.itemStyle)}function Cx(o,i){return o.visualDrawType||gR[i]||(console.warn("Unkown style type '"+i+"'."),"fill")}var mR={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){var s=i.getData(),u=i.visualStyleAccessPath||"itemStyle",f=i.getModel(u),p=bx(i,u)(f),v=f.getShallow("decal");v&&(s.setVisual("decal",v),v.dirty=!0);var g=Cx(i,u),m=p[g],y=An(m)?m:null;if(!p[g]||y||"auto"===p.fill||"auto"===p.stroke){var w=i.getColorFromPalette(i.name,null,r.getSeriesCount());p[g]||(p[g]=w,s.setVisual("colorFromPalette",!0)),p.fill="auto"===p.fill||"function"==typeof p.fill?w:p.fill,p.stroke="auto"===p.stroke||"function"==typeof p.stroke?w:p.stroke}if(s.setVisual("style",p),s.setVisual("drawType",g),!r.isSeriesFiltered(i)&&y)return s.setVisual("colorFromPalette",!1),{dataEach:function(M,x){var T=i.getDataParams(x),P=Se({},p);P[g]=y(T),M.setItemVisual(x,"style",P)}}}},_v=new Nn,_R={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){if(!i.ignoreStyleOnData&&!r.isSeriesFiltered(i)){var s=i.getData(),u=i.visualStyleAccessPath||"itemStyle",f=bx(i,u),d=s.getVisual("drawType");return{dataEach:s.hasItemOption?function(p,v){var g=p.getRawDataItem(v);if(g&&g[u]){_v.option=g[u];var m=f(_v);Se(p.ensureUniqueItemVisual(v,"style"),m),_v.option.decal&&(p.setItemVisual(v,"decal",_v.option.decal),_v.option.decal.dirty=!0),d in m&&p.setItemVisual(v,"colorFromPalette",!1)}}:null}}}},yZ={performRawSeries:!0,overallReset:function(i){var r=et();i.eachSeries(function(s){var u=s.getColorBy();if(!s.isColorBySeries()){var f=s.type+"-"+u,d=r.get(f);d||r.set(f,d={}),_x(s).scope=d}}),i.eachSeries(function(s){if(!s.isColorBySeries()&&!i.isSeriesFiltered(s)){var u=s.getRawData(),f={},d=s.getData(),p=_x(s).scope,g=Cx(s,s.visualStyleAccessPath||"itemStyle");d.each(function(m){var y=d.getRawIndex(m);f[y]=m}),u.each(function(m){var y=f[m];if(d.getItemVisual(y,"colorFromPalette")){var w=d.ensureUniqueItemVisual(y,"style"),S=u.getName(m)||m+"",M=u.count();w[g]=s.getColorFromPalette(S,p,M)}})}})}},P4=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},yR=function(o){function i(r){return o.call(this,r)||this}return Ln(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new P4},i.prototype.buildPath=function(r,s){var u=s.cx,f=s.cy,d=Math.max(s.r,0),p=s.startAngle,v=s.endAngle,g=s.clockwise,m=Math.cos(p),y=Math.sin(p);r.moveTo(m*d+u,y*d+f),r.arc(u,f,d,p,v,!g)},i}(Nt);yR.prototype.type="arc";var i_=yR,vC=Math.PI,bR=function(){function o(i,r,s,u){this._stageTaskMap=et(),this.ecInstance=i,this.api=r,s=this._dataProcessorHandlers=s.slice(),u=this._visualHandlers=u.slice(),this._allHandlers=s.concat(u)}return o.prototype.restoreData=function(i,r){i.restoreData(r),this._stageTaskMap.each(function(s){var u=s.overallTask;u&&u.dirty()})},o.prototype.getPerformArgs=function(i,r){if(i.__pipeline){var s=this._pipelineMap.get(i.__pipeline.id),u=s.context,d=!r&&s.progressiveEnabled&&(!u||u.progressiveRender)&&i.__idxInPipeline>s.blockIndex?s.step:null,p=u&&u.modDataCount;return{step:d,modBy:null!=p?Math.ceil(p/d):null,modDataCount:p}}},o.prototype.getPipeline=function(i){return this._pipelineMap.get(i)},o.prototype.updateStreamModes=function(i,r){var s=this._pipelineMap.get(i.uid),f=i.getData().count(),d=s.progressiveEnabled&&r.incrementalPrepareRender&&f>=s.threshold,p=i.get("large")&&f>=i.get("largeThreshold"),v="mod"===i.get("progressiveChunkMode")?f:null;i.pipelineContext=s.context={progressiveRender:d,modDataCount:v,large:p}},o.prototype.restorePipelines=function(i){var r=this,s=r._pipelineMap=et();i.eachSeries(function(u){var f=u.getProgressive(),d=u.uid;s.set(d,{id:d,head:null,tail:null,threshold:u.getProgressiveThreshold(),progressiveEnabled:f&&!(u.preventIncremental&&u.preventIncremental()),blockIndex:-1,step:Math.round(f||700),count:0}),r._pipe(u,u.dataTask)})},o.prototype.prepareStageTasks=function(){var i=this._stageTaskMap,r=this.api.getModel(),s=this.api;q(this._allHandlers,function(u){var f=i.get(u.uid)||i.set(u.uid,{});Oa(!(u.reset&&u.overallReset),""),u.reset&&this._createSeriesStageTask(u,f,r,s),u.overallReset&&this._createOverallStageTask(u,f,r,s)},this)},o.prototype.prepareView=function(i,r,s,u){var f=i.renderTask,d=f.context;d.model=r,d.ecModel=s,d.api=u,f.__block=!i.incrementalPrepareRender,this._pipe(r,f)},o.prototype.performDataProcessorTasks=function(i,r){this._performStageTasks(this._dataProcessorHandlers,i,r,{block:!0})},o.prototype.performVisualTasks=function(i,r,s){this._performStageTasks(this._visualHandlers,i,r,s)},o.prototype._performStageTasks=function(i,r,s,u){u=u||{};var f=!1,d=this;function p(v,g){return v.setDirty&&(!v.dirtyMap||v.dirtyMap.get(g.__pipeline.id))}q(i,function(v,g){if(!u.visualType||u.visualType===v.visualType){var m=d._stageTaskMap.get(v.uid),y=m.seriesTaskMap,b=m.overallTask;if(b){var w,S=b.agentStubMap;S.each(function(x){p(u,x)&&(x.dirty(),w=!0)}),w&&b.dirty(),d.updatePayload(b,s);var M=d.getPerformArgs(b,u.block);S.each(function(x){x.perform(M)}),b.perform(M)&&(f=!0)}else y&&y.each(function(x,T){p(u,x)&&x.dirty();var P=d.getPerformArgs(x,u.block);P.skip=!v.performRawSeries&&r.isSeriesFiltered(x.context.model),d.updatePayload(x,s),x.perform(P)&&(f=!0)})}}),this.unfinished=f||this.unfinished},o.prototype.performSeriesTasks=function(i){var r;i.eachSeries(function(s){r=s.dataTask.perform()||r}),this.unfinished=r||this.unfinished},o.prototype.plan=function(){this._pipelineMap.each(function(i){var r=i.tail;do{if(r.__block){i.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},o.prototype.updatePayload=function(i,r){"remain"!==r&&(i.context.payload=r)},o.prototype._createSeriesStageTask=function(i,r,s,u){var f=this,d=r.seriesTaskMap,p=r.seriesTaskMap=et(),v=i.seriesType,g=i.getTargetSeries;function m(y){var b=y.uid,w=p.set(b,d&&d.get(b)||su({plan:wR,reset:SR,count:L4}));w.context={model:y,ecModel:s,api:u,useClearVisual:i.isVisual&&!i.isLayout,plan:i.plan,reset:i.reset,scheduler:f},f._pipe(y,w)}i.createOnAllSeries?s.eachRawSeries(m):v?s.eachRawSeriesByType(v,m):g&&g(s,u).each(m)},o.prototype._createOverallStageTask=function(i,r,s,u){var f=this,d=r.overallTask=r.overallTask||su({reset:O4});d.context={ecModel:s,api:u,overallReset:i.overallReset,scheduler:f};var p=d.agentStubMap,v=d.agentStubMap=et(),g=i.seriesType,m=i.getTargetSeries,y=!0,b=!1;function S(M){var x=M.uid,T=v.set(x,p&&p.get(x)||(b=!0,su({reset:I4,onDirty:R4})));T.context={model:M,overallProgress:y},T.agent=d,T.__block=y,f._pipe(M,T)}Oa(!i.createOnAllSeries,""),g?s.eachRawSeriesByType(g,S):m?m(s,u).each(S):(y=!1,q(s.getSeries(),S)),b&&d.dirty()},o.prototype._pipe=function(i,r){var u=this._pipelineMap.get(i.uid);!u.head&&(u.head=r),u.tail&&u.tail.pipe(r),u.tail=r,r.__idxInPipeline=u.count++,r.__pipeline=u},o.wrapStageHandler=function(i,r){return An(i)&&(i={overallReset:i,seriesType:MR(i)}),i.uid=Bm("stageHandler"),r&&(i.visualType=r),i},o}();function O4(o){o.overallReset(o.ecModel,o.api,o.payload)}function I4(o){return o.overallProgress&&CR}function CR(){this.agent.dirty(),this.getDownstream().dirty()}function R4(){this.agent&&this.agent.dirty()}function wR(o){return o.plan?o.plan(o.model,o.ecModel,o.api,o.payload):null}function SR(o){o.useClearVisual&&o.data.clearAllVisual();var i=o.resetDefines=jn(o.reset(o.model,o.ecModel,o.api,o.payload));return i.length>1?Te(i,function(r,s){return kR(s)}):yv}var yv=kR(0);function kR(o){return function(i,r){var s=r.data,u=r.resetDefines[o];if(u&&u.dataEach)for(var f=i.start;f0&&w===g.length-b.length){var S=g.slice(0,w);"data"!==S&&(r.mainType=S,r[b.toLowerCase()]=v,m=!0)}}p.hasOwnProperty(g)&&(s[g]=v,m=!0),m||(u[g]=v)})}return{cptQuery:r,dataQuery:s,otherQuery:u}},o.prototype.filter=function(i,r){var s=this.eventInfo;if(!s)return!0;var u=s.targetEl,f=s.packedEvent,d=s.model,p=s.view;if(!d||!p)return!0;var v=r.cptQuery,g=r.dataQuery;return m(v,d,"mainType")&&m(v,d,"subType")&&m(v,d,"index","componentIndex")&&m(v,d,"name")&&m(v,d,"id")&&m(g,f,"name")&&m(g,f,"dataIndex")&&m(g,f,"dataType")&&(!p.filterForExposedEvent||p.filterForExposedEvent(i,r.otherQuery,u,f));function m(y,b,w,S){return null==y[w]||b[S||w]===y[w]}},o.prototype.afterTrigger=function(){this.eventInfo=null},o}(),V4={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){var s=i.getData();if(i.legendIcon&&s.setVisual("legendIcon",i.legendIcon),i.hasSymbolVisual){var u=i.get("symbol"),f=i.get("symbolSize"),d=i.get("symbolKeepAspect"),p=i.get("symbolRotate"),v=i.get("symbolOffset"),g=An(u),m=An(f),y=An(p),b=An(v),w=g||m||y||b,S=!g&&u?u:i.defaultSymbol;if(s.setVisual({legendIcon:i.legendIcon||S,symbol:S,symbolSize:m?null:f,symbolKeepAspect:d,symbolRotate:y?null:p,symbolOffset:b?null:v}),!r.isSeriesFiltered(i))return{dataEach:w?function(O,R){var V=i.getRawValue(R),B=i.getDataParams(R);g&&O.setItemVisual(R,"symbol",u(V,B)),m&&O.setItemVisual(R,"symbolSize",f(V,B)),y&&O.setItemVisual(R,"symbolRotate",p(V,B)),b&&O.setItemVisual(R,"symbolOffset",v(V,B))}:null}}}};function xx(o,i,r){switch(r){case"color":return o.getItemVisual(i,"style")[o.getVisual("drawType")];case"opacity":return o.getItemVisual(i,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return o.getItemVisual(i,r)}}function kh(o,i){switch(i){case"color":return o.getVisual("style")[o.getVisual("drawType")];case"opacity":return o.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return o.getVisual(i)}}function bv(o,i,r,s){switch(r){case"color":o.ensureUniqueItemVisual(i,"style")[o.getVisual("drawType")]=s,o.setItemVisual(i,"colorFromPalette",!1);break;case"opacity":o.ensureUniqueItemVisual(i,"style").opacity=s;break;case"symbol":case"symbolSize":case"liftZ":o.setItemVisual(i,r,s)}}function TR(o,i){function r(s,u){var f=[];return s.eachComponent({mainType:"series",subType:o,query:u},function(d){f.push(d.seriesIndex)}),f}q([[o+"ToggleSelect","toggleSelect"],[o+"Select","select"],[o+"UnSelect","unselect"]],function(s){i(s[0],function(u,f,d){u=Se({},u),d.dispatchAction(Se(u,{type:s[1],seriesIndex:r(f,u)}))})})}function Mh(o,i,r,s,u){var f=o+i;r.isSilent(f)||s.eachComponent({mainType:"series",subType:"pie"},function(d){for(var p=d.seriesIndex,v=u.selected,g=0;g1&&(d*=mC(S),p*=mC(S));var M=(u===f?-1:1)*mC((d*d*(p*p)-d*d*(w*w)-p*p*(b*b))/(d*d*(w*w)+p*p*(b*b)))||0,x=M*d*w/p,T=M*-p*b/d,P=(o+r)/2+s_(y)*x-o_(y)*T,O=(i+s)/2+o_(y)*x+s_(y)*T,R=Ex([1,0],[(b-x)/d,(w-T)/p]),V=[(b-x)/d,(w-T)/p],B=[(-1*b-x)/d,(-1*w-T)/p],U=Ex(V,B);if(_C(V,B)<=-1&&(U=wv),_C(V,B)>=1&&(U=0),U<0){var j=Math.round(U/wv*1e6)/1e6;U=2*wv+j%2*wv}m.addData(g,P,O,d,p,R,U,y,f)}var U4=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,G4=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,ER=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return Ln(i,o),i.prototype.applyTransform=function(r){},i}(Nt);function PR(o){return null!=o.setData}function OR(o,i){var r=function(o){var i=new Qs;if(!o)return i;var d,r=0,s=0,u=r,f=s,p=Qs.CMD,v=o.match(U4);if(!v)return i;for(var g=0;gle*le+oe*oe&&(j=Z,X=$),{cx:j,cy:X,x01:-m,y01:-y,x11:j*(u/V-1),y11:X*(u/V-1)}}var kv=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0},K4=function(o){function i(r){return o.call(this,r)||this}return Ln(i,o),i.prototype.getDefaultShape=function(){return new kv},i.prototype.buildPath=function(r,s){!function(o,i){var r=bC(i.r,0),s=bC(i.r0||0,0),u=r>0;if(u||s>0){if(u||(r=s,s=0),s>r){var d=r;r=s,s=d}var m,p=!!i.clockwise,v=i.startAngle,g=i.endAngle;if(v===g)m=0;else{var y=[v,g];Mm(y,!p),m=Ix(y[0]-y[1])}var b=i.cx,w=i.cy,S=i.cornerRadius||0,M=i.innerCornerRadius||0;if(r>Ba)if(m>FR-Ba)o.moveTo(b+r*Th(v),w+r*Ef(v)),o.arc(b,w,r,v,g,!p),s>Ba&&(o.moveTo(b+s*Th(g),w+s*Ef(g)),o.arc(b,w,s,g,v,p));else{var x=Ix(r-s)/2,T=Zi(x,S),P=Zi(x,M),O=P,R=T,V=r*Th(v),B=r*Ef(v),U=s*Th(g),j=s*Ef(g),X=void 0,Z=void 0,$=void 0,te=void 0;if((T>Ba||P>Ba)&&(X=r*Th(g),Z=r*Ef(g),$=s*Th(v),te=s*Ef(v),mBa)if(R>Ba){var Me=CC($,te,V,B,r,R,p),ze=CC(X,Z,U,j,r,R,p);o.moveTo(b+Me.cx+Me.x01,w+Me.cy+Me.y01),RBa&&m>Ba?O>Ba?(Me=CC(U,j,X,Z,s,-O,p),ze=CC(V,B,$,te,s,-O,p),o.lineTo(b+Me.cx+Me.x01,w+Me.cy+Me.y01),O=2){if(s&&"spline"!==s){var f=function(o,i,r,s){var v,g,m,y,u=[],f=[],d=[],p=[];if(s){m=[1/0,1/0],y=[-1/0,-1/0];for(var b=0,w=o.length;br-2?r-1:v+1],w=o[v>r-3?r-1:v+2]);var S=g*g,M=g*S;s.push([$4(m[0],y[0],b[0],w[0],g,S,M),$4(m[1],y[1],b[1],w[1],g,S,M)])}return s}(u,r)),o.moveTo(u[0][0],u[0][1]),p=1;for(var y=u.length;pOf[1]){if(p=!1,f)return p;var m=Math.abs(Of[0]-Pf[1]),y=Math.abs(Pf[0]-Of[1]);Math.min(m,y)>u.len()&&Tt.scale(u,g,mMath.abs(f[1])?f[0]>0?"right":"left":f[1]>0?"bottom":"top"}function WR(o){return!o.isGroup}function Dv(o,i,r){if(o&&i){var p,f=(p={},o.traverse(function(v){WR(v)&&v.anid&&(p[v.anid]=v)}),p);i.traverse(function(d){if(WR(d)&&d.anid){var p=f[d.anid];if(p){var v=u(d);d.attr(u(p)),ln(d,v,r,ht(d).dataIndex)}}})}function u(d){var p={x:d.x,y:d.y,rotation:d.rotation};return function(o){return null!=o.shape}(d)&&(p.shape=Se({},d.shape)),p}}function Gx(o,i){return Te(o,function(r){var s=r[0];s=h_(s,i.x),s=p_(s,i.x+i.width);var u=r[1];return u=h_(u,i.y),[s,u=p_(u,i.y+i.height)]})}function YR(o,i){var r=h_(o.x,i.x),s=p_(o.x+o.width,i.x+i.width),u=h_(o.y,i.y),f=p_(o.y+o.height,i.y+i.height);if(s>=r&&f>=u)return{x:r,y:u,width:s-r,height:f-u}}function cl(o,i,r){var s=Se({rectHover:!0},i),u=s.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},o)return 0===o.indexOf("image://")?(u.image=o.slice(8),tt(u,r),new si(s)):DC(o.replace("path://",""),s,r,"center")}function v_(o,i,r,s,u){for(var f=0,d=u[u.length-1];f=-1e-6}(b))return!1;var w=o-u,S=i-f,M=Wx(w,S,v,g)/b;if(M<0||M>1)return!1;var x=Wx(w,S,m,y)/b;return!(x<0||x>1)}function Wx(o,i,r,s){return o*s-r*i}function Av(o){var i=o.itemTooltipOption,r=o.componentModel,s=o.itemName,u=yt(i)?{formatter:i}:i,f=r.mainType,d=r.componentIndex,p={componentType:f,name:s,$vars:["name"]};p[f+"Index"]=d;var v=o.formatterParamsExtra;v&&q(_n(v),function(m){Ae(p,m)||(p[m]=v[m],p.$vars.push(m))});var g=ht(o.el);g.componentMainType=f,g.componentIndex=d,g.tooltipConfig={name:s,option:tt({content:s,formatterParams:p},u)}}ll("circle",sl),ll("ellipse",yC),ll("sector",ir),ll("ring",Mv),ll("polygon",ya),ll("polyline",br),ll("rect",sn),ll("line",Ti),ll("bezierCurve",c_),ll("arc",i_);var XR=Nt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(i,r){var s=r.cx,u=r.cy,f=r.width/2,d=r.height/2;i.moveTo(s,u-d),i.lineTo(s+f,u+d),i.lineTo(s-f,u+d),i.closePath()}}),s8=Nt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(i,r){var s=r.cx,u=r.cy,f=r.width/2,d=r.height/2;i.moveTo(s,u-d),i.lineTo(s+f,u),i.lineTo(s,u+d),i.lineTo(s-f,u),i.closePath()}}),Yx=Nt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(i,r){var s=r.x,u=r.y,f=r.width/5*3,d=Math.max(f,r.height),p=f/2,v=p*p/(d-p),g=u-d+p+v,m=Math.asin(v/p),y=Math.cos(m)*p,b=Math.sin(m),w=Math.cos(m),S=.6*p,M=.7*p;i.moveTo(s-y,g+v),i.arc(s,g,p,Math.PI-m,2*Math.PI+m),i.bezierCurveTo(s+y-b*S,g+v+w*S,s,u-M,s,u),i.bezierCurveTo(s,u-M,s-y+b*S,g+v+w*S,s-y,g+v),i.closePath()}}),l8=Nt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(i,r){var s=r.height,f=r.x,d=r.y,p=r.width/3*2;i.moveTo(f,d),i.lineTo(f+p,d+s),i.lineTo(f,d+s/4*3),i.lineTo(f-p,d+s),i.lineTo(f,d),i.closePath()}}),KR={line:function(i,r,s,u,f){f.x1=i,f.y1=r+u/2,f.x2=i+s,f.y2=r+u/2},rect:function(i,r,s,u,f){f.x=i,f.y=r,f.width=s,f.height=u},roundRect:function(i,r,s,u,f){f.x=i,f.y=r,f.width=s,f.height=u,f.r=Math.min(s,u)/4},square:function(i,r,s,u,f){var d=Math.min(s,u);f.x=i,f.y=r,f.width=d,f.height=d},circle:function(i,r,s,u,f){f.cx=i+s/2,f.cy=r+u/2,f.r=Math.min(s,u)/2},diamond:function(i,r,s,u,f){f.cx=i+s/2,f.cy=r+u/2,f.width=s,f.height=u},pin:function(i,r,s,u,f){f.x=i+s/2,f.y=r+u/2,f.width=s,f.height=u},arrow:function(i,r,s,u,f){f.x=i+s/2,f.y=r+u/2,f.width=s,f.height=u},triangle:function(i,r,s,u,f){f.cx=i+s/2,f.cy=r+u/2,f.width=s,f.height=u}},EC={};q({line:Ti,rect:sn,roundRect:sn,square:sn,circle:sl,diamond:s8,pin:Yx,arrow:l8,triangle:XR},function(o,i){EC[i]=new o});var u8=Nt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(i,r,s){var u=n0(i,r,s),f=this.shape;return f&&"pin"===f.symbolType&&"inside"===r.position&&(u.y=s.y+.4*s.height),u},buildPath:function(i,r,s){var u=r.symbolType;if("none"!==u){var f=EC[u];f||(f=EC[u="rect"]),KR[u](r.x,r.y,r.width,r.height,f.shape),f.buildPath(i,f.shape,s)}}});function c8(o,i){if("image"!==this.type){var r=this.style;this.__isEmptyBrush?(r.stroke=o,r.fill=i||"#fff",r.lineWidth=2):"line"===this.shape.symbolType?r.stroke=o:r.fill=o,this.markRedraw()}}function Ir(o,i,r,s,u,f,d){var v,p=0===o.indexOf("empty");return p&&(o=o.substr(5,1).toLowerCase()+o.substr(6)),(v=0===o.indexOf("image://")?GR(o.slice(8),new Ft(i,r,s,u),d?"center":"cover"):0===o.indexOf("path://")?DC(o.slice(7),{},new Ft(i,r,s,u),d?"center":"cover"):new u8({shape:{symbolType:o,x:i,y:r,width:s,height:u}})).__isEmptyBrush=p,v.setColor=c8,f&&v.setColor(f),v}function g_(o){return we(o)||(o=[+o,+o]),[o[0]||0,o[1]||0]}function Ah(o,i){if(null!=o)return we(o)||(o=[o,o]),[Fe(o[0],i[0])||0,Fe(ot(o[1],o[0]),i[1])||0]}function qx(o,i,r){for(var s="radial"===i.type?function(o,i,r){var s=r.width,u=r.height,f=Math.min(s,u),d=null==i.x?.5:i.x,p=null==i.y?.5:i.y,v=null==i.r?.5:i.r;return i.global||(d=d*s+r.x,p=p*u+r.y,v*=f),o.createRadialGradient(d,p,0,d,p,v)}(o,i,r):function(o,i,r){var s=null==i.x?0:i.x,u=null==i.x2?1:i.x2,f=null==i.y?0:i.y,d=null==i.y2?0:i.y2;return i.global||(s=s*r.width+r.x,u=u*r.width+r.x,f=f*r.height+r.y,d=d*r.height+r.y),s=isNaN(s)?0:s,u=isNaN(u)?1:u,f=isNaN(f)?0:f,d=isNaN(d)?0:d,o.createLinearGradient(s,f,u,d)}(o,i,r),u=i.colorStops,f=0;f0?(i=i||1,"dashed"===o?[4*i,2*i]:"dotted"===o?[i]:yk(o)?[o]:we(o)?o:null):null}var h8=new Qs(!0);function PC(o){var i=o.stroke;return!(null==i||"none"===i||!(o.lineWidth>0))}function QR(o){return"string"==typeof o&&"none"!==o}function m_(o){var i=o.fill;return null!=i&&"none"!==i}function Zx(o,i){if(null!=i.fillOpacity&&1!==i.fillOpacity){var r=o.globalAlpha;o.globalAlpha=i.fillOpacity*i.opacity,o.fill(),o.globalAlpha=r}else o.fill()}function JR(o,i){if(null!=i.strokeOpacity&&1!==i.strokeOpacity){var r=o.globalAlpha;o.globalAlpha=i.strokeOpacity*i.opacity,o.stroke(),o.globalAlpha=r}else o.stroke()}function Kx(o,i,r){var s=zd(i.image,i.__image,r);if(g0(s)){var u=o.createPattern(s,i.repeat||"repeat");if("function"==typeof DOMMatrix&&u.setTransform){var f=new DOMMatrix;f.rotateSelf(0,0,(i.rotation||0)/Math.PI*180),f.scaleSelf(i.scaleX||1,i.scaleY||1),f.translateSelf(i.x||0,i.y||0),u.setTransform(f)}return u}}var t2=["shadowBlur","shadowOffsetX","shadowOffsetY"],OC=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function IC(o,i,r,s,u){var f=!1;if(!s&&i===(r=r||{}))return!1;if(s||i.opacity!==r.opacity){f||(za(o,u),f=!0);var d=Math.max(Math.min(i.opacity,1),0);o.globalAlpha=isNaN(d)?Xl.opacity:d}(s||i.blend!==r.blend)&&(f||(za(o,u),f=!0),o.globalCompositeOperation=i.blend||Xl.blend);for(var p=0;p0&&Xx(r.lineDash,r.lineWidth),B=r.lineDashOffset,U=!!o.setLineDash,j=i.getGlobalScale();if(g.setScale(j[0],j[1],i.segmentIgnoreThreshold),V){var X=r.strokeNoScale&&i.getLineScale?i.getLineScale():1;X&&1!==X&&(V=Te(V,function($){return $/X}),B/=X)}var Z=!0;(v||4&i.__dirty||V&&!U&&u)&&(g.setDPR(o.dpr),p?g.setContext(null):(g.setContext(o),Z=!1),g.reset(),V&&!U&&(g.setLineDash(V),g.setLineDashOffset(B)),i.buildPath(g,i.shape,s),g.toStatic(),i.pathUpdated()),Z&&g.rebuildPath(o,p?d:1),V&&U&&(o.setLineDash(V),o.lineDashOffset=B),s||(r.strokeFirst?(u&&JR(o,r),f&&Zx(o,r)):(f&&Zx(o,r),u&&JR(o,r))),V&&U&&o.setLineDash([])}(o,i,y,m),m&&(r.batchFill=y.fill||"",r.batchStroke=y.stroke||"")):i instanceof Xp?(3!==r.lastDrawType&&(v=!0,r.lastDrawType=3),$x(o,i,g,v,r),function(o,i,r){var s=r.text;if(null!=s&&(s+=""),s){o.font=r.font||ri,o.textAlign=r.textAlign,o.textBaseline=r.textBaseline;var u=void 0;if(o.setLineDash){var f=r.lineDash&&r.lineWidth>0&&Xx(r.lineDash,r.lineWidth),d=r.lineDashOffset;if(f){var p=r.strokeNoScale&&i.getLineScale?i.getLineScale():1;p&&1!==p&&(f=Te(f,function(v){return v/p}),d/=p),o.setLineDash(f),o.lineDashOffset=d,u=!0}}r.strokeFirst?(PC(r)&&o.strokeText(s,r.x,r.y),m_(r)&&o.fillText(s,r.x,r.y)):(m_(r)&&o.fillText(s,r.x,r.y),PC(r)&&o.strokeText(s,r.x,r.y)),u&&o.setLineDash([])}}(o,i,y)):i instanceof si?(2!==r.lastDrawType&&(v=!0,r.lastDrawType=2),function(o,i,r,s,u){IC(o,RC(i,u.inHover),r&&RC(r,u.inHover),s,u)}(o,i,g,v,r),function(o,i,r){var s=i.__image=zd(r.image,i.__image,i,i.onload);if(s&&g0(s)){var u=r.x||0,f=r.y||0,d=i.getWidth(),p=i.getHeight(),v=s.width/s.height;if(null==d&&null!=p?d=p*v:null==p&&null!=d?p=d/v:null==d&&null==p&&(d=s.width,p=s.height),r.sWidth&&r.sHeight)o.drawImage(s,g=r.sx||0,m=r.sy||0,r.sWidth,r.sHeight,u,f,d,p);else if(r.sx&&r.sy){var g,m;o.drawImage(s,g=r.sx,m=r.sy,d-g,p-m,u,f,d,p)}else o.drawImage(s,u,f,d,p)}}(o,i,y)):i instanceof Tv&&(4!==r.lastDrawType&&(v=!0,r.lastDrawType=4),function(o,i,r){var s=i.getDisplayables(),u=i.getTemporalDisplayables();o.save();var d,p,f={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover};for(d=i.getCursor(),p=s.length;d=4&&(m={x:parseFloat(b[0]||0),y:parseFloat(b[1]||0),width:parseFloat(b[2]),height:parseFloat(b[3])})}if(m&&null!=p&&null!=v&&(y=Eh(m,{x:0,y:0,width:p,height:v}),!r.ignoreViewBox)){var w=u;(u=new ct).add(w),w.scaleX=w.scaleY=y.scale,w.x=y.x,w.y=y.y}return!r.ignoreRootClip&&null!=p&&null!=v&&u.setClipPath(new sn({shape:{x:0,y:0,width:p,height:v}})),{root:u,width:p,height:v,viewBoxRect:m,viewBoxTransform:y,named:f}},o.prototype._parseNode=function(i,r,s,u,f,d){var v,p=i.nodeName.toLowerCase(),g=u;if("defs"===p&&(f=!0),"text"===p&&(d=!0),"defs"===p||"switch"===p)v=r;else{if(!f){var m=fl[p];if(m&&Ae(fl,p)){v=m.call(this,i,r);var y=i.getAttribute("name");if(y){var b={name:y,namedFrom:null,svgNodeTagLower:p,el:v};s.push(b),"g"===p&&(g=b)}else u&&s.push({name:u.name,namedFrom:u,svgNodeTagLower:p,el:v});r.add(v)}}var w=NC[p];if(w&&Ae(NC,p)){var S=w.call(this,i),M=i.getAttribute("id");M&&(this._defs[M]=S)}}if(v&&v.isGroup)for(var x=i.firstChild;x;)1===x.nodeType?this._parseNode(x,v,s,g,f,d):3===x.nodeType&&d&&this._parseText(x,v),x=x.nextSibling},o.prototype._parseText=function(i,r){var s=new Xp({style:{text:i.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Uo(r,s),_s(i,s,this._defsUsePending,!1,!1),function(o,i){var r=i.__selfStyle;if(r){var s=r.textBaseline,u=s;s&&"auto"!==s&&"baseline"!==s?"before-edge"===s||"text-before-edge"===s?u="top":"after-edge"===s||"text-after-edge"===s?u="bottom":("central"===s||"mathematical"===s)&&(u="middle"):u="alphabetic",o.style.textBaseline=u}var f=i.__inheritedStyle;if(f){var d=f.textAlign,p=d;d&&("middle"===d&&(p="center"),o.style.textAlign=p)}}(s,r);var u=s.style,f=u.fontSize;f&&f<9&&(u.fontSize=9,s.scaleX*=f/9,s.scaleY*=f/9);var d=(u.fontSize||u.fontFamily)&&[u.fontStyle,u.fontWeight,(u.fontSize||12)+"px",u.fontFamily||"sans-serif"].join(" ");u.font=d;var p=s.getBoundingRect();return this._textX+=p.width,r.add(s),s},o.internalField=void(fl={g:function(r,s){var u=new ct;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u},rect:function(r,s){var u=new sn;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setShape({x:parseFloat(r.getAttribute("x")||"0"),y:parseFloat(r.getAttribute("y")||"0"),width:parseFloat(r.getAttribute("width")||"0"),height:parseFloat(r.getAttribute("height")||"0")}),u.silent=!0,u},circle:function(r,s){var u=new sl;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setShape({cx:parseFloat(r.getAttribute("cx")||"0"),cy:parseFloat(r.getAttribute("cy")||"0"),r:parseFloat(r.getAttribute("r")||"0")}),u.silent=!0,u},line:function(r,s){var u=new Ti;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setShape({x1:parseFloat(r.getAttribute("x1")||"0"),y1:parseFloat(r.getAttribute("y1")||"0"),x2:parseFloat(r.getAttribute("x2")||"0"),y2:parseFloat(r.getAttribute("y2")||"0")}),u.silent=!0,u},ellipse:function(r,s){var u=new yC;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setShape({cx:parseFloat(r.getAttribute("cx")||"0"),cy:parseFloat(r.getAttribute("cy")||"0"),rx:parseFloat(r.getAttribute("rx")||"0"),ry:parseFloat(r.getAttribute("ry")||"0")}),u.silent=!0,u},polygon:function(r,s){var f,u=r.getAttribute("points");u&&(f=c2(u));var d=new ya({shape:{points:f||[]},silent:!0});return Uo(s,d),_s(r,d,this._defsUsePending,!1,!1),d},polyline:function(r,s){var f,u=r.getAttribute("points");u&&(f=c2(u));var d=new br({shape:{points:f||[]},silent:!0});return Uo(s,d),_s(r,d,this._defsUsePending,!1,!1),d},image:function(r,s){var u=new si;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setStyle({image:r.getAttribute("xlink:href"),x:+r.getAttribute("x"),y:+r.getAttribute("y"),width:+r.getAttribute("width"),height:+r.getAttribute("height")}),u.silent=!0,u},text:function(r,s){var u=r.getAttribute("x")||"0",f=r.getAttribute("y")||"0",d=r.getAttribute("dx")||"0",p=r.getAttribute("dy")||"0";this._textX=parseFloat(u)+parseFloat(d),this._textY=parseFloat(f)+parseFloat(p);var v=new ct;return Uo(s,v),_s(r,v,this._defsUsePending,!1,!0),v},tspan:function(r,s){var u=r.getAttribute("x"),f=r.getAttribute("y");null!=u&&(this._textX=parseFloat(u)),null!=f&&(this._textY=parseFloat(f));var d=r.getAttribute("dx")||"0",p=r.getAttribute("dy")||"0",v=new ct;return Uo(s,v),_s(r,v,this._defsUsePending,!1,!0),this._textX+=parseFloat(d),this._textY+=parseFloat(p),v},path:function(r,s){var f=IR(r.getAttribute("d")||"");return Uo(s,f),_s(r,f,this._defsUsePending,!1,!1),f.silent=!0,f}}),o}(),NC={lineargradient:function(i){var r=parseInt(i.getAttribute("x1")||"0",10),s=parseInt(i.getAttribute("y1")||"0",10),u=parseInt(i.getAttribute("x2")||"10",10),f=parseInt(i.getAttribute("y2")||"0",10),d=new xv(r,s,u,f);return nc(i,d),u2(i,d),d},radialgradient:function(i){var r=parseInt(i.getAttribute("cx")||"0",10),s=parseInt(i.getAttribute("cy")||"0",10),u=parseInt(i.getAttribute("r")||"0",10),f=new MC(r,s,u);return nc(i,f),u2(i,f),f}};function nc(o,i){"userSpaceOnUse"===o.getAttribute("gradientUnits")&&(i.global=!0)}function u2(o,i){for(var r=o.firstChild;r;){if(1===r.nodeType&&"stop"===r.nodeName.toLocaleLowerCase()){var u,s=r.getAttribute("offset");u=s&&s.indexOf("%")>0?parseInt(s,10)/100:s?parseFloat(s):0;var f={};v2(r,f,f);var d=f.stopColor||r.getAttribute("stop-color")||"#000000";i.colorStops.push({offset:u,color:d})}r=r.nextSibling}}function Uo(o,i){o&&o.__inheritedStyle&&(i.__inheritedStyle||(i.__inheritedStyle={}),tt(i.__inheritedStyle,o.__inheritedStyle))}function c2(o){for(var i=y_(o),r=[],s=0;s0;f-=2){var p=s[f-1],v=y_(s[f]);switch(u=u||[1,0,0,1,0,0],p){case"translate":Oo(u,u,[parseFloat(v[0]),parseFloat(v[1]||"0")]);break;case"scale":$b(u,u,[parseFloat(v[0]),parseFloat(v[1]||v[0])]);break;case"rotate":Od(u,u,-parseFloat(v[0])*iT);break;case"skewX":Jo(u,[1,0,Math.tan(parseFloat(v[0])*iT),1,0,0],u);break;case"skewY":Jo(u,[1,Math.tan(parseFloat(v[0])*iT),0,1,0,0],u);break;case"matrix":u[0]=parseFloat(v[0]),u[1]=parseFloat(v[1]),u[2]=parseFloat(v[2]),u[3]=parseFloat(v[3]),u[4]=parseFloat(v[4]),u[5]=parseFloat(v[5])}}i.setLocalTransform(u)}}(o,i),v2(o,d,p),s||function(o,i,r){for(var s=0;s>1^-(1&p),v=v>>1^-(1&v),u=p+=u,f=v+=f,s.push([p/r,v/r])}return s}function b2(o,i){return Te(Yn((o=function(o){if(!o.UTF8Encoding)return o;var i=o,r=i.UTF8Scale;null==r&&(r=1024);for(var s=i.features,u=0;u0}),function(r){var d,s=r.properties,u=r.geometry,f=[];"Polygon"===u.type&&f.push({type:"polygon",exterior:(d=u.coordinates)[0],interiors:d.slice(1)}),"MultiPolygon"===u.type&&q(d=u.coordinates,function(g){g[0]&&f.push({type:"polygon",exterior:g[0],interiors:g.slice(1)})});var p=new Vt(s[i||"name"],f,s.cp);return p.properties=s,p})}for(var aT=[126,25],Oh=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Ih=0;Ih0&&r.unfinished);r.unfinished||this._zr.flush()}}},i.prototype.getDom=function(){return this._dom},i.prototype.getId=function(){return this.id},i.prototype.getZr=function(){return this._zr},i.prototype.setOption=function(r,s,u){if(!this._disposed){var f,d,p;if(at(s)&&(u=s.lazyUpdate,f=s.silent,d=s.replaceMerge,p=s.transition,s=s.notMerge),this[ic]=!0,!this._model||s){var v=new t4(this._api),g=this._theme,m=this._model=new kn;m.scheduler=this._scheduler,m.init(null,null,null,g,this._locale,v)}this._model.setOption(r,{replaceMerge:d},E2);var y={seriesTransition:p,optionChanged:!0};u?(this[bs]={silent:f,updateParams:y},this[ic]=!1,this.getZr().wakeUp()):(ws(this),cu.update.call(this,null,y),this._zr.flush(),this[bs]=null,this[ic]=!1,Vf.call(this,f),WC.call(this,f))}},i.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},i.prototype.getModel=function(){return this._model},i.prototype.getOption=function(){return this._model&&this._model.getOption()},i.prototype.getWidth=function(){return this._zr.getWidth()},i.prototype.getHeight=function(){return this._zr.getHeight()},i.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||L8&&window.devicePixelRatio||1},i.prototype.getRenderedCanvas=function(r){if(Ze.canvasSupported)return this._zr.painter.getRenderedCanvas({backgroundColor:(r=r||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},i.prototype.getSvgDataURL=function(){if(Ze.svgSupported){var r=this._zr;return q(r.storage.getDisplayList(),function(u){u.stopAnimation(null,!0)}),r.painter.toDataURL()}},i.prototype.getDataURL=function(r){if(!this._disposed){var u=this._model,f=[],d=this;q((r=r||{}).excludeComponents,function(v){u.eachComponent({mainType:v},function(g){var m=d._componentsMap[g.__viewId];m.group.ignore||(f.push(m),m.group.ignore=!0)})});var p="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return q(f,function(v){v.group.ignore=!1}),p}},i.prototype.getConnectedDataURL=function(r){if(!this._disposed&&Ze.canvasSupported){var s="svg"===r.type,u=this.group,f=Math.min,d=Math.max,p=1/0;if(Iv[u]){var v=p,g=p,m=-p,y=-p,b=[],w=r&&r.pixelRatio||this.getDevicePixelRatio();q(Nh,function(O,R){if(O.group===u){var V=s?O.getZr().painter.getSvgDom().innerHTML:O.getRenderedCanvas(rt(r)),B=O.getDom().getBoundingClientRect();v=f(B.left,v),g=f(B.top,g),m=d(B.right,m),y=d(B.bottom,y),b.push({dom:V,left:B.left,top:B.top})}});var S=(m*=w)-(v*=w),M=(y*=w)-(g*=w),x=md(),T=Hp(x,{renderer:s?"svg":"canvas"});if(T.resize({width:S,height:M}),s){var P="";return q(b,function(O){P+=''+O.dom+""}),T.painter.getSvgRoot().innerHTML=P,r.connectedBackgroundColor&&T.painter.setBackgroundColor(r.connectedBackgroundColor),T.refreshImmediately(),T.painter.toDataURL()}return r.connectedBackgroundColor&&T.add(new sn({shape:{x:0,y:0,width:S,height:M},style:{fill:r.connectedBackgroundColor}})),q(b,function(O){var R=new si({style:{x:O.left*w-v,y:O.top*w-g,image:O.dom}});T.add(R)}),T.refreshImmediately(),x.toDataURL("image/"+(r&&r.type||"png"))}return this.getDataURL(r)}},i.prototype.convertToPixel=function(r,s){return Fh(this,"convertToPixel",r,s)},i.prototype.convertFromPixel=function(r,s){return Fh(this,"convertFromPixel",r,s)},i.prototype.containPixel=function(r,s){var f;if(!this._disposed)return q(is(this._model,r),function(p,v){v.indexOf("Models")>=0&&q(p,function(g){var m=g.coordinateSystem;if(m&&m.containPoint)f=f||!!m.containPoint(s);else if("seriesModels"===v){var y=this._chartsMap[g.__viewId];y&&y.containPoint&&(f=f||y.containPoint(s,g))}},this)},this),!!f},i.prototype.getVisual=function(r,s){var f=is(this._model,r,{defaultMainType:"series"}),p=f.seriesModel.getData(),v=f.hasOwnProperty("dataIndexInside")?f.dataIndexInside:f.hasOwnProperty("dataIndex")?p.indexOfRawIndex(f.dataIndex):null;return null!=v?xx(p,v,s):kh(p,s)},i.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},i.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},i.prototype._initEvents=function(){var r=this;q(D_,function(s){var u=function(d){var g,p=r.getModel(),v=d.target;if("globalout"===s?g={}:v&&xh(v,function(M){var x=ht(M);if(x&&null!=x.dataIndex){var T=x.dataModel||p.getSeriesByIndex(x.seriesIndex);return g=T&&T.getDataParams(x.dataIndex,x.dataType)||{},!0}if(x.eventData)return g=Se({},x.eventData),!0},!0),g){var y=g.componentType,b=g.componentIndex;("markLine"===y||"markPoint"===y||"markArea"===y)&&(y="series",b=g.seriesIndex);var w=y&&null!=b&&p.getComponent(y,b),S=w&&r["series"===w.mainType?"_chartsMap":"_componentsMap"][w.__viewId];g.event=d,g.type=s,r._$eventProcessor.eventInfo={targetEl:v,packedEvent:g,model:w,view:S},r.trigger(s,g)}};u.zrEventfulCallAtLast=!0,r._zr.on(s,u,r)}),q(A_,function(s,u){r._messageCenter.on(u,function(f){this.trigger(u,f)},r)}),q(["selectchanged"],function(s){r._messageCenter.on(s,function(u){this.trigger(s,u)},r)}),function(o,i,r){o.on("selectchanged",function(s){var u=r.getModel();s.isFromClick?(Mh("map","selectchanged",i,u,s),Mh("pie","selectchanged",i,u,s)):"select"===s.fromAction?(Mh("map","selected",i,u,s),Mh("pie","selected",i,u,s)):"unselect"===s.fromAction&&(Mh("map","unselected",i,u,s),Mh("pie","unselected",i,u,s))})}(this._messageCenter,this,this._api)},i.prototype.isDisposed=function(){return this._disposed},i.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},i.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,QH(this.getDom(),P2,"");var r=this,s=r._api,u=r._model;q(r._componentsViews,function(f){f.dispose(u,s)}),q(r._chartsViews,function(f){f.dispose(u,s)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Nh[r.id]}},i.prototype.resize=function(r){if(!this._disposed){this._zr.resize(r);var s=this._model;if(this._loadingFX&&this._loadingFX.resize(),s){var u=s.resetOption("media"),f=r&&r.silent;this[bs]&&(null==f&&(f=this[bs].silent),u=!0,this[bs]=null),this[ic]=!0,u&&ws(this),cu.update.call(this,{type:"resize",animation:Se({duration:0},r&&r.animation)}),this[ic]=!1,Vf.call(this,f),WC.call(this,f)}}},i.prototype.showLoading=function(r,s){if(!this._disposed&&(at(r)&&(s=r,r=""),r=r||"default",this.hideLoading(),pT[r])){var u=pT[r](this._api,s),f=this._zr;this._loadingFX=u,f.add(u)}},i.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},i.prototype.makeActionFromEvent=function(r){var s=Se({},r);return s.type=A_[r.type],s},i.prototype.dispatchAction=function(r,s){if(!this._disposed&&(at(s)||(s={silent:!!s}),KC[r.type]&&this._model)){if(this[ic])return void this._pendingActions.push(r);var u=s.silent;jC.call(this,r,u);var f=s.flush;f?this._zr.flush():!1!==f&&Ze.browser.weChat&&this._throttledZrFlush(),Vf.call(this,u),WC.call(this,u)}},i.prototype.updateLabelLayout=function(){dl.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},i.prototype.appendData=function(r){if(!this._disposed){var s=r.seriesIndex;this.getModel().getSeriesByIndex(s).appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},i.internalField=function(){function r(g){for(var m=[],y=g.currentStates,b=0;b0?{duration:w,delay:y.get("delay"),easing:y.get("easing")}:null;m.group.traverse(function(M){if(M.states&&M.states.emphasis){if(ev(M))return;if(M instanceof Nt&&function(o){var i=mM(o);i.normalFill=o.style.fill,i.normalStroke=o.style.stroke;var r=o.states.select||{};i.selectFill=r.style&&r.style.fill||null,i.selectStroke=r.style&&r.style.stroke||null}(M),M.__dirty){var x=M.prevStates;x&&M.useStates(x)}if(b){M.stateTransition=S;var T=M.getTextContent(),P=M.getTextGuideLine();T&&(T.stateTransition=S),P&&(P.stateTransition=S)}M.__dirty&&r(M)}})}ws=function(m){var y=m._scheduler;y.restorePipelines(m._model),y.prepareStageTasks(),fT(m,!0),fT(m,!1),y.plan()},fT=function(m,y){for(var b=m._model,w=m._scheduler,S=y?m._componentsViews:m._chartsViews,M=y?m._componentsMap:m._chartsMap,x=m._zr,T=m._api,P=0;Pm.get("hoverLayerThreshold")&&!Ze.node&&!Ze.worker&&m.eachSeries(function(S){if(!S.preventUsingHoverLayer){var M=g._chartsMap[S.__viewId];M.__alive&&M.group.traverse(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}(m,y),dl.trigger("series:afterupdate",y,b,S)},hl=function(m){m[uT]=!0,m.getZr().wakeUp()},H8=function(m){!m[uT]||(m.getZr().storage.traverse(function(y){ev(y)||r(y)}),m[uT]=!1)},XC=function(m){return new(function(y){function b(){return null!==y&&y.apply(this,arguments)||this}return he(b,y),b.prototype.getCoordinateSystems=function(){return m._coordSysMgr.getCoordinateSystems()},b.prototype.getComponentByElement=function(w){for(;w;){var S=w.__ecComponentInfo;if(null!=S)return m._model.getComponent(S.mainType,S.index);w=w.parent}},b.prototype.enterEmphasis=function(w,S){Js(w,S),hl(m)},b.prototype.leaveEmphasis=function(w,S){eu(w,S),hl(m)},b.prototype.enterBlur=function(w){Lm(w),hl(m)},b.prototype.leaveBlur=function(w){iI(w),hl(m)},b.prototype.enterSelect=function(w){CM(w),hl(m)},b.prototype.leaveSelect=function(w){wM(w),hl(m)},b.prototype.getModel=function(){return m.getModel()},b.prototype.getViewOfComponentModel=function(w){return m.getViewOfComponentModel(w)},b.prototype.getViewOfSeriesModel=function(w){return m.getViewOfSeriesModel(w)},b}(hh))(m)},ZC=function(m){function y(b,w){for(var S=0;S=0)){z2.push(r);var f=dt.wrapStageHandler(r,u);f.__prio=i,f.__raw=r,o.push(f)}}function mT(o,i){pT[o]=i}function EZ(o){mk("createCanvas",o)}function _T(o,i,r){!function(i,r,s){if(r.svg){var u=new T8(i,r.svg);Rh.set(i,u)}else{var f=r.geoJson||r.geoJSON;f&&!r.features?s=r.specialAreas:f=r,u=new R8(i,f,s),Rh.set(i,u)}}(o,i,r)}function Y8(o){return function(i){var r=Rh.get(i);return r&&"geoJSON"===r.type&&r.getMapForUser()}(o)}var U2=function(o){var i=(o=rt(o)).type;i||Mn("");var s=i.split(":");2!==s.length&&Mn("");var u=!1;"echarts"===s[0]&&(i=s[1],u=!0),o.__isBuiltIn=u,eR.set(i,o)};Bf(2e3,mR),Bf(4500,_R),Bf(4500,yZ),Bf(2e3,V4),Bf(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){if(i.hasSymbolVisual&&!r.isSeriesFiltered(i))return{dataEach:i.getData().hasItemOption?function(f,d){var p=f.getItemModel(d),v=p.getShallow("symbol",!0),g=p.getShallow("symbolSize",!0),m=p.getShallow("symbolRotate",!0),y=p.getShallow("symbolOffset",!0),b=p.getShallow("symbolKeepAspect",!0);null!=v&&f.setItemVisual(d,"symbol",v),null!=g&&f.setItemVisual(d,"symbolSize",g),null!=m&&f.setItemVisual(d,"symbolRotate",m),null!=y&&f.setItemVisual(d,"symbolOffset",y),null!=b&&f.setItemVisual(d,"symbolKeepAspect",b)}:null}}}),Bf(7e3,function(o,i){o.eachRawSeries(function(r){if(!o.isSeriesFiltered(r)){var s=r.getData();s.hasItemVisual()&&s.each(function(d){var p=s.getItemVisual(d,"decal");p&&(s.ensureUniqueItemVisual(d,"style").decal=lu(p,i))});var u=s.getVisual("decal");u&&(s.getVisual("style").decal=lu(u,i))}})}),L2(vs),F2(900,function(o){var i=et();o.eachSeries(function(r){var s=r.get("stack");if(s){var u=i.get(s)||i.set(s,[]),f=r.getData(),d={stackResultDimension:f.getCalculationInfo("stackResultDimension"),stackedOverDimension:f.getCalculationInfo("stackedOverDimension"),stackedDimension:f.getCalculationInfo("stackedDimension"),stackedByDimension:f.getCalculationInfo("stackedByDimension"),isStackedByIndex:f.getCalculationInfo("isStackedByIndex"),data:f,seriesModel:r};if(!d.stackedDimension||!d.isStackedByIndex&&!d.stackedByDimension)return;u.length&&f.setCalculationInfo("stackedOnSeries",u[u.length-1].seriesModel),u.push(d)}}),i.each(dZ)}),mT("default",function(o,i){tt(i=i||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ct,s=new sn({style:{fill:i.maskColor},zlevel:i.zlevel,z:1e4});r.add(s);var d,u=new fn({style:{text:i.text,fill:i.textColor,fontSize:i.fontSize,fontWeight:i.fontWeight,fontStyle:i.fontStyle,fontFamily:i.fontFamily},zlevel:i.zlevel,z:10001}),f=new sn({style:{fill:"none"},textContent:u,textConfig:{position:"right",distance:10},zlevel:i.zlevel,z:10001});return r.add(f),i.showSpinner&&((d=new i_({shape:{startAngle:-vC/2,endAngle:-vC/2+.1,r:i.spinnerRadius},style:{stroke:i.color,lineCap:"round",lineWidth:i.lineWidth},zlevel:i.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*vC/2}).start("circularInOut"),d.animateShape(!0).when(1e3,{startAngle:3*vC/2}).delay(300).start("circularInOut"),r.add(d)),r.resize=function(){var p=u.getBoundingRect().width,v=i.showSpinner?i.spinnerRadius:0,g=(o.getWidth()-2*v-(i.showSpinner&&p?10:0)-p)/2-(i.showSpinner&&p?0:5+p/2)+(i.showSpinner?0:p/2)+(p?0:v),m=o.getHeight()/2;i.showSpinner&&d.setShape({cx:g,cy:m}),f.setShape({x:g-v,y:m-v,width:2*v,height:2*v}),s.setShape({x:0,y:0,width:o.getWidth(),height:o.getHeight()})},r.resize(),r}),pl({type:_f,event:_f,update:_f},Mo),pl({type:Pm,event:Pm,update:Pm},Mo),pl({type:Jd,event:Jd,update:Jd},Mo),pl({type:Kp,event:Kp,update:Kp},Mo),pl({type:$p,event:$p,update:$p},Mo),$C("light",F4),$C("dark",xR);var q8={},G2=[],X8={registerPreprocessor:L2,registerProcessor:F2,registerPostInit:N2,registerPostUpdate:V2,registerUpdateLifecycle:vT,registerAction:pl,registerCoordinateSystem:B2,registerLayout:H2,registerVisual:Bf,registerTransform:U2,registerLoading:mT,registerMap:_T,PRIORITY:lT,ComponentModel:qt,ComponentView:un,SeriesModel:vt,ChartView:Vn,registerComponentModel:function(i){qt.registerClass(i)},registerComponentView:function(i){un.registerClass(i)},registerSeriesModel:function(i){vt.registerClass(i)},registerChartView:function(i){Vn.registerClass(i)},registerSubTypeDefaulter:function(i,r){qt.registerSubTypeDefaulter(i,r)},registerPainter:function(i,r){xO(i,r)}};function Ot(o){we(o)?q(o,function(i){Ot(i)}):Rt(G2,o)>=0||(G2.push(o),An(o)&&(o={install:o}),o.install(X8))}function E_(o){return null==o?0:o.length||1}function j2(o){return o}var Hf=function(){function o(i,r,s,u,f,d){this._old=i,this._new=r,this._oldKeyGetter=s||j2,this._newKeyGetter=u||j2,this.context=f,this._diffModeMultiple="multiple"===d}return o.prototype.add=function(i){return this._add=i,this},o.prototype.update=function(i){return this._update=i,this},o.prototype.updateManyToOne=function(i){return this._updateManyToOne=i,this},o.prototype.updateOneToMany=function(i){return this._updateOneToMany=i,this},o.prototype.updateManyToMany=function(i){return this._updateManyToMany=i,this},o.prototype.remove=function(i){return this._remove=i,this},o.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},o.prototype._executeOneToOne=function(){var i=this._old,r=this._new,s={},u=new Array(i.length),f=new Array(r.length);this._initIndexMap(i,null,u,"_oldKeyGetter"),this._initIndexMap(r,s,f,"_newKeyGetter");for(var d=0;d1){var m=v.shift();1===v.length&&(s[p]=v[0]),this._update&&this._update(m,d)}else 1===g?(s[p]=null,this._update&&this._update(v,d)):this._remove&&this._remove(d)}this._performRestAdd(f,s)},o.prototype._executeMultiple=function(){var r=this._new,s={},u={},f=[],d=[];this._initIndexMap(this._old,s,f,"_oldKeyGetter"),this._initIndexMap(r,u,d,"_newKeyGetter");for(var p=0;p1&&1===b)this._updateManyToOne&&this._updateManyToOne(m,g),u[v]=null;else if(1===y&&b>1)this._updateOneToMany&&this._updateOneToMany(m,g),u[v]=null;else if(1===y&&1===b)this._update&&this._update(m,g),u[v]=null;else if(y>1&&b>1)this._updateManyToMany&&this._updateManyToMany(m,g),u[v]=null;else if(y>1)for(var w=0;w1)for(var p=0;p30}var Z2,tw,Rv,P_,K2,nw,ST,Ua=at,fu=Te,Q8="undefined"==typeof Int32Array?Array:Int32Array,X2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],J8=["_approximateExtent"],Ga=function(){function o(i,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var s,u=!1;Y2(i)?(s=i.dimensions,this._dimOmitted=i.isDimensionOmitted(),this._schema=i):(u=!0,s=i),s=s||["x","y"];for(var f={},d=[],p={},v=!1,g={},m=0;m=r)){var u=this._store.getProvider();this._updateOrdinalMeta();var f=this._nameList,d=this._idList;if(u.getSource().sourceFormat===Ho&&!u.pure)for(var g=[],m=i;m0},o.prototype.ensureUniqueItemVisual=function(i,r){var s=this._itemVisuals,u=s[i];u||(u=s[i]={});var f=u[r];return null==f&&(we(f=this.getVisual(r))?f=f.slice():Ua(f)&&(f=Se({},f)),u[r]=f),f},o.prototype.setItemVisual=function(i,r,s){var u=this._itemVisuals[i]||{};this._itemVisuals[i]=u,Ua(r)?Se(u,r):u[r]=s},o.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},o.prototype.setLayout=function(i,r){if(Ua(i))for(var s in i)i.hasOwnProperty(s)&&this.setLayout(s,i[s]);else this._layout[i]=r},o.prototype.getLayout=function(i){return this._layout[i]},o.prototype.getItemLayout=function(i){return this._itemLayouts[i]},o.prototype.setItemLayout=function(i,r,s){this._itemLayouts[i]=s?Se(this._itemLayouts[i]||{},r):r},o.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},o.prototype.setItemGraphicEl=function(i,r){cs(this.hostModel&&this.hostModel.seriesIndex,this.dataType,i,r),this._graphicEls[i]=r},o.prototype.getItemGraphicEl=function(i){return this._graphicEls[i]},o.prototype.eachItemGraphicEl=function(i,r){q(this._graphicEls,function(s,u){s&&i&&i.call(r,s,u)})},o.prototype.cloneShallow=function(i){return i||(i=new o(this._schema?this._schema:fu(this.dimensions,this._getDimInfo,this),this.hostModel)),K2(i,this),i._store=this._store,i},o.prototype.wrapMethod=function(i,r){var s=this[i];"function"==typeof s&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(i),this[i]=function(){var u=s.apply(this,arguments);return r.apply(this,[u].concat(Fb(arguments)))})},o.internalField=(Z2=function(r){var s=r._invertedIndicesMap;q(s,function(u,f){var d=r._dimInfos[f],p=d.ordinalMeta,v=r._store;if(p){u=s[f]=new Q8(p.categories.length);for(var g=0;g1&&(g+="__ec__"+y),f[s]=g}})),o}();function $2(o,i){return Fv(o,i).dimensions}function Fv(o,i){sC(o)||(o=uC(o));var r=(i=i||{}).coordDimensions||[],s=i.dimensionsDefine||o.dimensionsDefine||[],u=et(),f=[],d=function(o,i,r,s){var u=Math.max(o.dimensionsDetectedCount||1,i.length,r.length,s||0);return q(i,function(f){var d;at(f)&&(d=f.dimsDef)&&(u=Math.max(u,d.length))}),u}(o,r,s,i.dimensionsCount),p=i.canOmitUnusedDimensions&&CT(d),v=s===o.dimensionsDefine,g=v?$i(o):Vh(s),m=i.encodeDefine;!m&&i.encodeDefaulter&&(m=i.encodeDefaulter(o,d));for(var y=et(m),b=new tR(d),w=0;w0&&(s.name=u+(f-1)),f++,i.set(u,f)}}(f),new ew({source:o,dimensions:f,fullDimensionCount:d,dimensionOmitted:p})}function eU(o,i,r){var s=i.data;if(r||s.hasOwnProperty(o)){for(var u=0;s.hasOwnProperty(o+u);)u++;o+=u}return i.set(o,!0),o}var kT=function(i){this.coordSysDims=[],this.axisMap=et(),this.categoryAxisMap=et(),this.coordSysName=i},vl={cartesian2d:function(i,r,s,u){var f=i.getReferringComponents("xAxis",ai).models[0],d=i.getReferringComponents("yAxis",ai).models[0];r.coordSysDims=["x","y"],s.set("x",f),s.set("y",d),zf(f)&&(u.set("x",f),r.firstCategoryDimIndex=0),zf(d)&&(u.set("y",d),null==r.firstCategoryDimIndex&&(r.firstCategoryDimIndex=1))},singleAxis:function(i,r,s,u){var f=i.getReferringComponents("singleAxis",ai).models[0];r.coordSysDims=["single"],s.set("single",f),zf(f)&&(u.set("single",f),r.firstCategoryDimIndex=0)},polar:function(i,r,s,u){var f=i.getReferringComponents("polar",ai).models[0],d=f.findAxisModel("radiusAxis"),p=f.findAxisModel("angleAxis");r.coordSysDims=["radius","angle"],s.set("radius",d),s.set("angle",p),zf(d)&&(u.set("radius",d),r.firstCategoryDimIndex=0),zf(p)&&(u.set("angle",p),null==r.firstCategoryDimIndex&&(r.firstCategoryDimIndex=1))},geo:function(i,r,s,u){r.coordSysDims=["lng","lat"]},parallel:function(i,r,s,u){var f=i.ecModel,d=f.getComponent("parallel",i.get("parallelIndex")),p=r.coordSysDims=d.dimensions.slice();q(d.parallelAxisIndex,function(v,g){var m=f.getComponent("parallelAxis",v),y=p[g];s.set(y,m),zf(m)&&(u.set(y,m),null==r.firstCategoryDimIndex&&(r.firstCategoryDimIndex=g))})}};function zf(o){return"category"===o.get("type")}function J2(o,i,r){var f,d,p,s=(r=r||{}).byIndex,u=r.stackedCoordDimension;!function(o){return!Y2(o.schema)}(i)?(f=(d=i.schema).dimensions,p=i.store):f=i;var g,m,y,b,v=!(!o||!o.get("stack"));if(q(f,function(P,O){yt(P)&&(f[O]=P={name:P}),v&&!P.isExtraCoord&&(!s&&!g&&P.ordinalMeta&&(g=P),!m&&"ordinal"!==P.type&&"time"!==P.type&&(!u||u===P.coordDim)&&(m=P))}),m&&!s&&!g&&(s=!0),m){y="__\0ecstackresult_"+o.id,b="__\0ecstackedover_"+o.id,g&&(g.createInvertedIndices=!0);var w=m.coordDim,S=m.type,M=0;q(f,function(P){P.coordDim===w&&M++});var x={name:y,coordDim:w,coordDimIndex:M,type:S,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:f.length},T={name:b,coordDim:b,coordDimIndex:M+1,type:S,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:f.length+1};d?(p&&(x.storeDimIndex=p.ensureCalculationDimension(b,S),T.storeDimIndex=p.ensureCalculationDimension(y,S)),d.appendCalculationDimension(x),d.appendCalculationDimension(T)):(f.push(x),f.push(T))}return{stackedDimension:m&&m.name,stackedByDimension:g&&g.name,isStackedByIndex:s,stackedOverDimension:b,stackResultDimension:y}}function ac(o,i){return!!i&&i===o.getCalculationInfo("stackedDimension")}function MT(o,i){return ac(o,i)?o.getCalculationInfo("stackResultDimension"):i}var gl=function(o,i,r){r=r||{};var u,s=i.getSourceManager(),f=!1;o?(f=!0,u=uC(o)):f=(u=s.getSource()).sourceFormat===Ho;var d=function(o){var i=o.get("coordinateSystem"),r=new kT(i),s=vl[i];if(s)return s(o,r,r.axisMap,r.categoryAxisMap),r}(i),p=function(o,i){var u,r=o.get("coordinateSystem"),s=$m.get(r);return i&&i.coordSysDims&&(u=Te(i.coordSysDims,function(f){var d={name:f},p=i.axisMap.get(f);if(p){var v=p.get("type");d.type=QC(v)}return d})),u||(u=s&&(s.getDimensionsInfo?s.getDimensionsInfo():s.dimensions.slice())||["x","y"]),u}(i,d),v=r.useEncodeDefaulter,g=An(v)?v:v?St(au,p,i):null,y=Fv(u,{coordDimensions:p,generateCoord:r.generateCoord,encodeDefine:i.getEncode(),encodeDefaulter:g,canOmitUnusedDimensions:!f}),b=function(o,i,r){var s,u;return r&&q(o,function(f,d){var v=r.categoryAxisMap.get(f.coordDim);v&&(null==s&&(s=d),f.ordinalMeta=v.getOrdinalMeta(),i&&(f.createInvertedIndices=!0)),null!=f.otherDims.itemName&&(u=!0)}),!u&&null!=s&&(o[s].otherDims.itemName=0),s}(y.dimensions,r.createInvertedIndices,d),w=f?null:s.getSharedDataStore(y),S=J2(i,{schema:y,store:w}),M=new Ga(y,i);M.setCalculationInfo(S);var x=null!=b&&function(o){if(o.sourceFormat===Ho){var i=function(o){for(var i=0;ir[1]&&(r[1]=i[1])},o.prototype.unionExtentFromData=function(i,r){this.unionExtent(i.getApproximateExtent(r))},o.prototype.getExtent=function(){return this._extent.slice()},o.prototype.setExtent=function(i,r){var s=this._extent;isNaN(i)||(s[0]=i),isNaN(r)||(s[1]=r)},o.prototype.isInExtentRange=function(i){return this._extent[0]<=i&&this._extent[1]>=i},o.prototype.isBlank=function(){return this._isBlank},o.prototype.setBlank=function(i){this._isBlank=i},o}();qu(xT);var du=xT,tL=0;function aU(o){return at(o)&&null!=o.value?o.value:o+""}var Gf=function(){function o(i){this.categories=i.categories||[],this._needCollect=i.needCollect,this._deduplication=i.deduplication,this.uid=++tL}return o.createByAxisModel=function(i){var r=i.option,s=r.data,u=s&&Te(s,aU);return new o({categories:u,needCollect:!u,deduplication:!1!==r.dedplication})},o.prototype.getOrdinal=function(i){return this._getOrCreateMap().get(i)},o.prototype.parseAndCollect=function(i){var r,s=this._needCollect;if("string"!=typeof i&&!s)return i;if(s&&!this._deduplication)return this.categories[r=this.categories.length]=i,r;var u=this._getOrCreateMap();return null==(r=u.get(i))&&(s?(this.categories[r=this.categories.length]=i,u.set(i,r)):r=NaN),r},o.prototype._getOrCreateMap=function(){return this._map||(this._map=et(this.categories))},o}(),iw=hi;function nL(o){return ns(o)+2}function rL(o,i,r){o[i]=Math.max(Math.min(o[i],r[1]),r[0])}function jf(o,i){return o>=i[0]&&o<=i[1]}function aw(o,i){return i[1]===i[0]?.5:(o-i[0])/(i[1]-i[0])}function Nv(o,i){return o*(i[1]-i[0])+i[0]}var ye=function(o){function i(r){var s=o.call(this,r)||this;s.type="ordinal";var u=s.getSetting("ordinalMeta");return u||(u=new Gf({})),we(u)&&(u=new Gf({categories:Te(u,function(f){return at(f)?f.value:f})})),s._ordinalMeta=u,s._extent=s.getSetting("extent")||[0,u.categories.length-1],s}return he(i,o),i.prototype.parse=function(r){return"string"==typeof r?this._ordinalMeta.getOrdinal(r):Math.round(r)},i.prototype.contain=function(r){return jf(r=this.parse(r),this._extent)&&null!=this._ordinalMeta.categories[r]},i.prototype.normalize=function(r){return aw(r=this._getTickNumber(this.parse(r)),this._extent)},i.prototype.scale=function(r){return r=Math.round(Nv(r,this._extent)),this.getRawOrdinalNumber(r)},i.prototype.getTicks=function(){for(var r=[],s=this._extent,u=s[0];u<=s[1];)r.push({value:u}),u++;return r},i.prototype.getMinorTicks=function(r){},i.prototype.setSortInfo=function(r){if(null!=r){for(var s=r.ordinalNumbers,u=this._ordinalNumbersByTick=[],f=this._ticksByOrdinalNumber=[],d=0,p=this._ordinalMeta.categories.length,v=Math.min(p,s.length);d=0&&r=0&&r=r},i.prototype.getOrdinalMeta=function(){return this._ordinalMeta},i.prototype.niceTicks=function(){},i.prototype.niceExtent=function(){},i.type="ordinal",i}(du);du.registerClass(ye);var TT=ye,Wo=hi,iL=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return he(i,o),i.prototype.parse=function(r){return r},i.prototype.contain=function(r){return jf(r,this._extent)},i.prototype.normalize=function(r){return aw(r,this._extent)},i.prototype.scale=function(r){return Nv(r,this._extent)},i.prototype.setExtent=function(r,s){var u=this._extent;isNaN(r)||(u[0]=parseFloat(r)),isNaN(s)||(u[1]=parseFloat(s))},i.prototype.unionExtent=function(r){var s=this._extent;r[0]s[1]&&(s[1]=r[1]),this.setExtent(s[0],s[1])},i.prototype.getInterval=function(){return this._interval},i.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=nL(r)},i.prototype.getTicks=function(r){var s=this._interval,u=this._extent,f=this._niceExtent,d=this._intervalPrecision,p=[];if(!s)return p;u[0]1e4)return[];var m=p.length?p[p.length-1].value:f[1];return u[1]>m&&p.push(r?{value:Wo(m+s,d)}:{value:u[1]}),p},i.prototype.getMinorTicks=function(r){for(var s=this.getTicks(!0),u=[],f=this.getExtent(),d=1;df[0]&&ws&&(d=u.interval=s);var p=u.intervalPrecision=nL(d);return function(o,i){!isFinite(o[0])&&(o[0]=i[0]),!isFinite(o[1])&&(o[1]=i[1]),rL(o,0,i),rL(o,1,i),o[0]>o[1]&&(o[0]=o[1])}(u.niceTickExtent=[iw(Math.ceil(o[0]/d)*d,p),iw(Math.floor(o[1]/d)*d,p)],o),u}(f,r,s,u);this._intervalPrecision=p.intervalPrecision,this._interval=p.interval,this._niceExtent=p.niceTickExtent}},i.prototype.niceExtent=function(r){var s=this._extent;if(s[0]===s[1])if(0!==s[0]){var u=s[0];r.fixMax||(s[1]+=u/2),s[0]-=u/2}else s[1]=1;isFinite(s[1]-s[0])||(s[0]=0,s[1]=1),this.niceTicks(r.splitNumber,r.minInterval,r.maxInterval);var d=this._interval;r.fixMin||(s[0]=Wo(Math.floor(s[0]/d)*d)),r.fixMax||(s[1]=Wo(Math.ceil(s[1]/d)*d))},i.type="interval",i}(du);du.registerClass(iL);var Vv=iL,aL="__ec_stack_",DT="undefined"!=typeof Float32Array?Float32Array:Array;function ow(o){return o.get("stack")||aL+o.seriesIndex}function AT(o){return o.dim+o.index}function sL(o,i){var r=[];return i.eachSeriesByType(o,function(s){wt(s)&&!Zt(s)&&r.push(s)}),r}function ET(o){var i=function(o){var i={};q(o,function(v){var m=v.coordinateSystem.getBaseAxis();if("time"===m.type||"value"===m.type)for(var y=v.getData(),b=m.dim+"_"+m.index,w=y.getDimensionIndex(y.mapDimension(m.dim)),S=y.getStore(),M=0,x=S.count();M0&&(f=null===f?p:Math.min(f,p))}r[s]=f}}return r}(o),r=[];return q(o,function(s){var p,f=s.coordinateSystem.getBaseAxis(),d=f.getExtent();if("category"===f.type)p=f.getBandWidth();else if("value"===f.type||"time"===f.type){var g=i[f.dim+"_"+f.index],m=Math.abs(d[1]-d[0]),y=f.scale.getExtent(),b=Math.abs(y[1]-y[0]);p=g?m/b*g:m}else{var w=s.getData();p=Math.abs(d[1]-d[0])/w.count()}var S=Fe(s.get("barWidth"),p),M=Fe(s.get("barMaxWidth"),p),x=Fe(s.get("barMinWidth")||1,p),T=s.get("barGap"),P=s.get("barCategoryGap");r.push({bandWidth:p,barWidth:S,barMaxWidth:M,barMinWidth:x,barGap:T,barCategoryGap:P,axisKey:AT(f),stackId:ow(s)})}),lL(r)}function lL(o){var i={};q(o,function(s,u){var f=s.axisKey,d=s.bandWidth,p=i[f]||{bandWidth:d,remainedWidth:d,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},v=p.stacks;i[f]=p;var g=s.stackId;v[g]||p.autoWidthCount++,v[g]=v[g]||{width:0,maxWidth:0};var m=s.barWidth;m&&!v[g].width&&(v[g].width=m,m=Math.min(p.remainedWidth,m),p.remainedWidth-=m);var y=s.barMaxWidth;y&&(v[g].maxWidth=y);var b=s.barMinWidth;b&&(v[g].minWidth=b);var w=s.barGap;null!=w&&(p.gap=w);var S=s.barCategoryGap;null!=S&&(p.categoryGap=S)});var r={};return q(i,function(s,u){r[u]={};var f=s.stacks,d=s.bandWidth,p=s.categoryGap;if(null==p){var v=_n(f).length;p=Math.max(35-4*v,15)+"%"}var g=Fe(p,d),m=Fe(s.gap,1),y=s.remainedWidth,b=s.autoWidthCount,w=(y-g)/(b+(b-1)*m);w=Math.max(w,0),q(f,function(T){var P=T.maxWidth,O=T.minWidth;if(T.width){var R=T.width;P&&(R=Math.min(R,P)),O&&(R=Math.max(R,O)),T.width=R,y-=R+m*R,b--}else R=w,P&&PR&&(R=O),R!==w&&(T.width=R,y-=R+m*R,b--)}),w=(y-g)/(b+(b-1)*m),w=Math.max(w,0);var M,S=0;q(f,function(T,P){T.width||(T.width=w),M=T,S+=T.width*(1+m)}),M&&(S-=M.width*m);var x=-S/2;q(f,function(T,P){r[u][P]=r[u][P]||{bandWidth:d,offset:x,width:T.width},x+=T.width*(1+m)})}),r}function PT(o,i,r){if(o&&i){var s=o[AT(i)];return null!=s&&null!=r?s[ow(r)]:s}}function sw(o,i){var r=sL(o,i),s=ET(r),u={};q(r,function(f){var d=f.getData(),p=f.coordinateSystem,v=p.getBaseAxis(),g=ow(f),m=s[AT(v)][g],y=m.offset,b=m.width,w=p.getOtherAxis(v),S=f.get("barMinHeight")||0;u[g]=u[g]||[],d.setLayout({bandWidth:m.bandWidth,offset:y,size:b});for(var M=d.mapDimension(w.dim),x=d.mapDimension(v.dim),T=ac(d,M),P=w.isHorizontal(),O=Le(0,w),R=d.getStore(),V=d.getDimensionIndex(M),B=d.getDimensionIndex(x),U=0,j=R.count();U=0?"p":"n",te=O;T&&(u[g][Z]||(u[g][Z]={p:O,n:O}),te=u[g][Z][$]);var ge,ee=void 0,le=void 0,oe=void 0,de=void 0;P?(ee=te,le=(ge=p.dataToPoint([X,Z]))[1]+y,oe=ge[0]-O,de=b,Math.abs(oe).5||(y=.5),{progress:function(w,S){for(var O,M=w.count,x=new DT(2*M),T=new DT(2*M),P=new DT(M),R=[],V=[],B=0,U=0,j=S.getStore();null!=(O=w.next());)V[m]=j.get(p,O),V[1-m]=j.get(v,O),R=s.dataToPoint(V,null),T[B]=g?u.x+u.width:R[0],x[B++]=R[0],T[B]=g?R[1]:u.y+u.height,x[B++]=R[1],P[U++]=O;S.setLayout({largePoints:x,largeDataIndices:P,largeBackgroundPoints:T,barWidth:y,valueAxisStart:Le(0,d),backgroundStart:g?u.x:u.y,valueAxisHorizontal:g})}}}}};function wt(o){return o.coordinateSystem&&"cartesian2d"===o.coordinateSystem.type}function Zt(o){return o.pipelineContext&&o.pipelineContext.large}function Le(o,i,r){return i.toGlobalCoord(i.dataToCoord("log"===i.type?1:0))}var OT=function(o){function i(r){var s=o.call(this,r)||this;return s.type="time",s}return he(i,o),i.prototype.getLabel=function(r){var s=this.getSetting("useUTC");return iu(r.value,gI[function(o){switch(o){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(ru(this._minLevelUnit))]||gI.second,s,this.getSetting("locale"))},i.prototype.getFormattedLabel=function(r,s,u){var f=this.getSetting("useUTC");return function(o,i,r,s,u){var f=null;if("string"==typeof r)f=r;else if("function"==typeof r)f=r(o.value,i,{level:o.level});else{var d=Se({},zm);if(o.level>0)for(var p=0;p=0;--p)if(v[g]){f=v[g];break}f=f||d.none}if(we(f)){var y=null==o.level?0:o.level>=0?o.level:f.length+o.level;f=f[y=Math.min(y,f.length-1)]}}return iu(new Date(o.value),f,u,s)}(r,s,u,this.getSetting("locale"),f)},i.prototype.getTicks=function(r){var u=this._extent,f=[];if(!this._interval)return f;f.push({value:u[0],level:0});var d=this.getSetting("useUTC"),p=function(o,i,r,s){var f=mI,d=0;function p(Z,$,te,ee,le,oe,de){for(var ge=new Date($),_e=$,xe=ge[ee]();_e1&&0===oe&&te.unshift({value:te[0].value-_e})}}for(oe=0;oe=s[0]&&P<=s[1]&&y++)}var O=(s[1]-s[0])/i;if(y>1.5*O&&b>O/1.5||(g.push(x),y>O||o===f[w]))break}m=[]}}var R=Yn(Te(g,function(Z){return Yn(Z,function($){return $.value>=s[0]&&$.value<=s[1]&&!$.notAdd})}),function(Z){return Z.length>0}),V=[],B=R.length-1;for(w=0;wu&&(this._approxInterval=u);var p=R_.length,v=Math.min(function(i,r,s,u){for(;s>>1;i[f][1]16?16:o>7.5?7:o>3.5?4:o>1.5?2:1}function ml(o){return(o/=2592e6)>6?6:o>3?3:o>2?2:1}function fU(o){return(o/=ds)>12?12:o>6?6:o>3.5?4:o>2?2:1}function wa(o,i){return(o/=i?6e4:1e3)>30?30:o>20?20:o>15?15:o>10?10:o>5?5:o>2?2:1}function Bv(o){return pm(o,!0)}function dU(o,i,r){var s=new Date(o);switch(ru(i)){case"year":case"month":s[Nz(r)](0);case"day":s[BM(r)](1);case"hour":s[HM(r)](0);case"minute":s[bI(r)](0);case"second":s[zM(r)](0),s[CI(r)](0)}return s.getTime()}du.registerClass(OT);var pU=OT,Hv=du.prototype,L_=Vv.prototype,IT=hi,vU=Math.floor,cL=Math.ceil,lw=Math.pow,Ss=Math.log,F_=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Vv,r._interval=0,r}return he(i,o),i.prototype.getTicks=function(r){var u=this._extent,f=this._originalScale.getExtent();return Te(L_.getTicks.call(this,r),function(p){var v=p.value,g=hi(lw(this.base,v));return g=v===u[0]&&this._fixMin?N_(g,f[0]):g,{value:g=v===u[1]&&this._fixMax?N_(g,f[1]):g}},this)},i.prototype.setExtent=function(r,s){var u=this.base;r=Ss(r)/Ss(u),s=Ss(s)/Ss(u),L_.setExtent.call(this,r,s)},i.prototype.getExtent=function(){var r=this.base,s=Hv.getExtent.call(this);s[0]=lw(r,s[0]),s[1]=lw(r,s[1]);var f=this._originalScale.getExtent();return this._fixMin&&(s[0]=N_(s[0],f[0])),this._fixMax&&(s[1]=N_(s[1],f[1])),s},i.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var s=this.base;r[0]=Ss(r[0])/Ss(s),r[1]=Ss(r[1])/Ss(s),Hv.unionExtent.call(this,r)},i.prototype.unionExtentFromData=function(r,s){this.unionExtent(r.getApproximateExtent(s))},i.prototype.niceTicks=function(r){r=r||10;var s=this._extent,u=s[1]-s[0];if(!(u===1/0||u<=0)){var f=Fd(u);for(r/u*f<=.5&&(f*=10);!isNaN(f)&&Math.abs(f)<1&&Math.abs(f)>0;)f*=10;var p=[hi(cL(s[0]/f)*f),hi(vU(s[1]/f)*f)];this._interval=f,this._niceExtent=p}},i.prototype.niceExtent=function(r){L_.niceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},i.prototype.parse=function(r){return r},i.prototype.contain=function(r){return jf(r=Ss(r)/Ss(this.base),this._extent)},i.prototype.normalize=function(r){return aw(r=Ss(r)/Ss(this.base),this._extent)},i.prototype.scale=function(r){return r=Nv(r,this._extent),lw(this.base,r)},i.type="log",i}(du),RT=F_.prototype;function N_(o,i){return IT(o,ns(i))}RT.getMinorTicks=L_.getMinorTicks,RT.getLabel=L_.getLabel,du.registerClass(F_);var uw=F_,LT=function(){function o(i,r,s){this._prepareParams(i,r,s)}return o.prototype._prepareParams=function(i,r,s){s[1]v&&(p=NaN,v=NaN);var y=Uu(p)||Uu(v)||i&&!u;this._needCrossZero&&(p>0&&v>0&&!g&&(p=0),p<0&&v<0&&!m&&(v=0));var b=this._determinedMin,w=this._determinedMax;return null!=b&&(p=b,g=!0),null!=w&&(v=w,m=!0),{min:p,max:v,minFixed:g,maxFixed:m,isBlank:y}},o.prototype.modifyDataMinMax=function(i,r){this[fL[i]]=r},o.prototype.setDeterminedMinMax=function(i,r){this[RZ[i]]=r},o.prototype.freeze=function(){this.frozen=!0},o}(),RZ={min:"_determinedMin",max:"_determinedMax"},fL={min:"_dataMin",max:"_dataMax"};function dL(o,i,r){var s=o.rawExtentInfo;return s||(s=new LT(o,i,r),o.rawExtentInfo=s,s)}function Bh(o,i){return null==i?null:Uu(i)?NaN:o.parse(i)}function V_(o,i){var r=o.type,s=dL(o,i,o.getExtent()).calculate();o.setBlank(s.isBlank);var u=s.min,f=s.max,d=i.ecModel;if(d&&"time"===r){var p=sL("bar",d),v=!1;if(q(p,function(y){v=v||y.getBaseAxis()===i.axis}),v){var g=ET(p),m=function(o,i,r,s){var u=r.axis.getExtent(),f=u[1]-u[0],d=PT(s,r.axis);if(void 0===d)return{min:o,max:i};var p=1/0;q(d,function(w){p=Math.min(w.offset,p)});var v=-1/0;q(d,function(w){v=Math.max(w.offset+w.width,v)}),p=Math.abs(p),v=Math.abs(v);var g=p+v,m=i-o,b=m/(1-(p+v)/f)-m;return{min:o-=b*(p/g),max:i+=b*(v/g)}}(u,f,i,g);u=m.min,f=m.max}}return{extent:[u,f],fixMin:s.minFixed,fixMax:s.maxFixed}}function Wf(o,i){var r=V_(o,i),s=r.extent,u=i.get("splitNumber");o instanceof uw&&(o.base=i.get("logBase"));var f=o.type;o.setExtent(s[0],s[1]),o.niceExtent({splitNumber:u,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:"interval"===f||"time"===f?i.get("minInterval"):null,maxInterval:"interval"===f||"time"===f?i.get("maxInterval"):null});var d=i.get("interval");null!=d&&o.setInterval&&o.setInterval(d)}function Hh(o,i){if(i=i||o.get("type"))switch(i){case"category":return new TT({ordinalMeta:o.getOrdinalMeta?o.getOrdinalMeta():o.getCategories(),extent:[1/0,-1/0]});case"time":return new pU({locale:o.ecModel.getLocaleModel(),useUTC:o.ecModel.get("useUTC")});default:return new(du.getClass(i)||Vv)}}function B_(o){var s,i=o.getLabelModel().get("formatter"),r="category"===o.type?o.scale.getExtent()[0]:null;return"time"===o.scale.type?(s=i,function(u,f){return o.scale.getFormattedLabel(u,f,s)}):"string"==typeof i?function(s){return function(u){var f=o.scale.getLabel(u);return s.replace("{value}",null!=f?f:"")}}(i):"function"==typeof i?function(s){return function(u,f){return null!=r&&(f=u.value-r),s(NT(o,u),f,null!=u.level?{level:u.level}:null)}}(i):function(s){return o.scale.getLabel(s)}}function NT(o,i){return"category"===o.type?o.scale.getLabel(i):i.value}function vL(o,i){var r=i*Math.PI/180,s=o.width,u=o.height,f=s*Math.abs(Math.cos(r))+Math.abs(u*Math.sin(r)),d=s*Math.abs(Math.sin(r))+Math.abs(u*Math.cos(r));return new Ft(o.x,o.y,f,d)}function cw(o){var i=o.get("interval");return null==i?"auto":i}function gL(o){return"category"===o.type&&0===cw(o.getLabelModel())}function H_(o,i){var r={};return q(o.mapDimensionsAll(i),function(s){r[MT(o,s)]=!0}),_n(r)}var zv=function(){function o(){}return o.prototype.getNeedCrossZero=function(){return!this.option.scale},o.prototype.getCoordSysModel=function(){},o}();function gU(o){return gl(null,o)}var _L={isDimensionStacked:ac,enableDataStack:J2,getStackedDimension:MT};function mU(o,i){var r=i;i instanceof Nn||(r=new Nn(i));var s=Hh(r);return s.setExtent(o[0],o[1]),Wf(s,r),s}function yL(o){qr(o,zv)}function bL(o,i){return Or(o,null,null,"normal"!==(i=i||{}).state)}function CL(o,i,r,s,u,f,d,p){return new fn({style:{text:o,font:i,align:r,verticalAlign:s,padding:u,rich:f,overflow:d?"truncate":null,lineHeight:p}}).getBoundingRect()}var Uv=pn();function VT(o,i){var f,d,r=wL(o,"labels"),s=cw(i);return SL(r,s)||(An(s)?f=xU(o,s):(d="auto"===s?function(o){var i=Uv(o).autoInterval;return null!=i?i:Uv(o).autoInterval=o.calculateCategoryInterval()}(o):s,f=MU(o,d)),kL(r,s,{labels:f,labelCategoryInterval:d}))}function wL(o,i){return Uv(o)[i]||(Uv(o)[i]=[])}function SL(o,i){for(var r=0;r1&&m/v>2&&(g=Math.round(Math.ceil(g/v)*v));var y=gL(o),b=d.get("showMinLabel")||y,w=d.get("showMaxLabel")||y;b&&g!==f[0]&&M(f[0]);for(var S=g;S<=f[1];S+=v)M(S);function M(x){var T={value:x};p.push(r?x:{formattedLabel:s(T),rawLabel:u.getLabel(T),tickValue:x})}return w&&S-v!==f[1]&&M(f[1]),p}function xU(o,i,r){var s=o.scale,u=B_(o),f=[];return q(s.getTicks(),function(d){var p=s.getLabel(d),v=d.value;i(d.value,p)&&f.push(r?v:{formattedLabel:u(d),rawLabel:p,tickValue:v})}),f}var TU=[0,1];function DU(o,i){var u=(o[1]-o[0])/i/2;o[0]+=u,o[1]-=u}var _l=function(){function o(i,r,s){this.onBand=!1,this.inverse=!1,this.dim=i,this.scale=r,this._extent=s||[0,0]}return o.prototype.contain=function(i){var r=this._extent,s=Math.min(r[0],r[1]),u=Math.max(r[0],r[1]);return i>=s&&i<=u},o.prototype.containData=function(i){return this.scale.contain(i)},o.prototype.getExtent=function(){return this._extent.slice()},o.prototype.getPixelPrecision=function(i){return o0(i||this.scale.getExtent(),this._extent)},o.prototype.setExtent=function(i,r){var s=this._extent;s[0]=i,s[1]=r},o.prototype.dataToCoord=function(i,r){var s=this._extent,u=this.scale;return i=u.normalize(i),this.onBand&&"ordinal"===u.type&&DU(s=s.slice(),u.count()),bn(i,TU,s,r)},o.prototype.coordToData=function(i,r){var s=this._extent,u=this.scale;this.onBand&&"ordinal"===u.type&&DU(s=s.slice(),u.count());var f=bn(i,s,TU,r);return this.scale.scale(f)},o.prototype.pointToData=function(i,r){},o.prototype.getTicksCoords=function(i){var r=(i=i||{}).tickModel||this.getTickModel(),f=Te(function(o,i){return"category"===o.type?function(o,i){var f,d,r=wL(o,"ticks"),s=cw(i),u=SL(r,s);if(u)return u;if((!i.get("show")||o.scale.isBlank())&&(f=[]),An(s))f=xU(o,s,!0);else if("auto"===s){var p=VT(o,o.getLabelModel());d=p.labelCategoryInterval,f=Te(p.labels,function(v){return v.tickValue})}else f=MU(o,d=s,!0);return kL(r,s,{ticks:f,tickCategoryInterval:d})}(o,i):{ticks:Te(o.scale.getTicks(),function(r){return r.value})}}(this,r).ticks,function(p){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(p):p),tickValue:p}},this);return function(o,i,r,s){var u=i.length;if(o.onBand&&!r&&u){var d,f=o.getExtent();if(1===u)i[0].coord=f[0],d=i[1]={coord:f[0]};else{var g=(i[u-1].coord-i[0].coord)/(i[u-1].tickValue-i[0].tickValue);q(i,function(w){w.coord-=g/2});var m=o.scale.getExtent();i.push(d={coord:i[u-1].coord+g*(1+m[1]-i[u-1].tickValue)})}var y=f[0]>f[1];b(i[0].coord,f[0])&&(s?i[0].coord=f[0]:i.shift()),s&&b(f[0],i[0].coord)&&i.unshift({coord:f[0]}),b(f[1],d.coord)&&(s?d.coord=f[1]:i.pop()),s&&b(d.coord,f[1])&&i.push({coord:f[1]})}function b(w,S){return w=hi(w),S=hi(S),y?w>S:w0&&r<100||(r=5),Te(this.scale.getMinorTicks(r),function(f){return Te(f,function(d){return{coord:this.dataToCoord(d),tickValue:d}},this)},this)},o.prototype.getViewLabels=function(){return function(o){return"category"===o.type?function(o){var i=o.getLabelModel(),r=VT(o,i);return!i.get("show")||o.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}(o):function(o){var i=o.scale.getTicks(),r=B_(o);return{labels:Te(i,function(s,u){return{formattedLabel:r(s,u),rawLabel:o.scale.getLabel(s),tickValue:s.value}})}}(o)}(this).labels},o.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},o.prototype.getTickModel=function(){return this.model.getModel("axisTick")},o.prototype.getBandWidth=function(){var i=this._extent,r=this.scale.getExtent(),s=r[1]-r[0]+(this.onBand?1:0);0===s&&(s=1);var u=Math.abs(i[1]-i[0]);return Math.abs(u)/s},o.prototype.calculateCategoryInterval=function(){return function(o){var i=function(o){var i=o.getLabelModel();return{axisRotate:o.getRotate?o.getRotate():o.isHorizontal&&!o.isHorizontal()?90:0,labelRotate:i.get("rotate")||0,font:i.getFont()}}(o),r=B_(o),s=(i.axisRotate-i.labelRotate)/180*Math.PI,u=o.scale,f=u.getExtent(),d=u.count();if(f[1]-f[0]<1)return 0;var p=1;d>40&&(p=Math.max(1,Math.floor(d/40)));for(var v=f[0],g=o.dataToCoord(v+1)-o.dataToCoord(v),m=Math.abs(g*Math.cos(s)),y=Math.abs(g*Math.sin(s)),b=0,w=0;v<=f[1];v+=p){var M,x=um(r({value:v}),i.font,"center","top");M=1.3*x.height,b=Math.max(b,1.3*x.width,7),w=Math.max(w,M,7)}var T=b/m,P=w/y;isNaN(T)&&(T=1/0),isNaN(P)&&(P=1/0);var O=Math.max(0,Math.floor(Math.min(T,P))),R=Uv(o.model),V=o.getExtent(),B=R.lastAutoInterval,U=R.lastTickCount;return null!=B&&null!=U&&Math.abs(B-O)<=1&&Math.abs(U-d)<=1&&B>O&&R.axisExtent0===V[0]&&R.axisExtent1===V[1]?O=B:(R.lastTickCount=d,R.lastAutoInterval=O,R.axisExtent0=V[0],R.axisExtent1=V[1]),O}(this)},o}();function VZ(o){var i=qt.extend(o);return qt.registerClass(i),i}function BZ(o){var i=un.extend(o);return un.registerClass(i),i}function AU(o){var i=vt.extend(o);return vt.registerClass(i),i}function EU(o){var i=Vn.extend(o);return Vn.registerClass(i),i}var z_=2*Math.PI,Gv=Qs.CMD,HZ=["top","right","bottom","left"];function zZ(o,i,r,s,u){var f=r.width,d=r.height;switch(o){case"top":s.set(r.x+f/2,r.y-i),u.set(0,-1);break;case"bottom":s.set(r.x+f/2,r.y+d+i),u.set(0,1);break;case"left":s.set(r.x-i,r.y+d/2),u.set(-1,0);break;case"right":s.set(r.x+f+i,r.y+d/2),u.set(1,0)}}function PU(o,i,r,s,u,f,d,p,v){d-=o,p-=i;var g=Math.sqrt(d*d+p*p),m=(d/=g)*r+o,y=(p/=g)*r+i;if(Math.abs(s-u)%z_<1e-4)return v[0]=m,v[1]=y,g-r;if(f){var b=s;s=Gt(u),u=Gt(b)}else s=Gt(s),u=Gt(u);s>u&&(u+=z_);var w=Math.atan2(p,d);if(w<0&&(w+=z_),w>=s&&w<=u||w+z_>=s&&w+z_<=u)return v[0]=m,v[1]=y,g-r;var S=r*Math.cos(s)+o,M=r*Math.sin(s)+i,x=r*Math.cos(u)+o,T=r*Math.sin(u)+i,P=(S-d)*(S-d)+(M-p)*(M-p),O=(x-d)*(x-d)+(T-p)*(T-p);return P0){i=i/180*Math.PI,hu.fromArray(o[0]),ar.fromArray(o[1]),ci.fromArray(o[2]),Tt.sub(pu,hu,ar),Tt.sub(fo,ci,ar);var r=pu.len(),s=fo.len();if(!(r<.001||s<.001)){pu.scale(1/r),fo.scale(1/s);var u=pu.dot(fo);if(Math.cos(i)1&&Tt.copy(ja,ci),ja.toArray(o[1])}}}}function BT(o,i,r){if(r<=180&&r>0){r=r/180*Math.PI,hu.fromArray(o[0]),ar.fromArray(o[1]),ci.fromArray(o[2]),Tt.sub(pu,ar,hu),Tt.sub(fo,ci,ar);var s=pu.len(),u=fo.len();if(!(s<.001||u<.001)&&(pu.scale(1/s),fo.scale(1/u),pu.dot(i)=v)Tt.copy(ja,ci);else{ja.scaleAndAdd(fo,p/Math.tan(Math.PI/2-m));var y=ci.x!==ar.x?(ja.x-ar.x)/(ci.x-ar.x):(ja.y-ar.y)/(ci.y-ar.y);if(isNaN(y))return;y<0?Tt.copy(ja,ar):y>1&&Tt.copy(ja,ci)}ja.toArray(o[1])}}}function HT(o,i,r,s){var u="normal"===r,f=u?o:o.ensureState(r);f.ignore=i;var d=s.get("smooth");d&&!0===d&&(d=.3),f.shape=f.shape||{},d>0&&(f.shape.smooth=d);var p=s.getModel("lineStyle").getLineStyle();u?o.useStyle(p):f.style=p}function jv(o,i){var r=i.smooth,s=i.points;if(s)if(o.moveTo(s[0][0],s[0][1]),r>0&&s.length>=3){var u=Vs(s[0],s[1]),f=Vs(s[1],s[2]);if(!u||!f)return o.lineTo(s[1][0],s[1][1]),void o.lineTo(s[2][0],s[2][1]);var d=Math.min(u,f)*r,p=Cd([],s[1],s[0],d/u),v=Cd([],s[1],s[2],d/f),g=Cd([],p,v,.5);o.bezierCurveTo(p[0],p[1],p[0],p[1],g[0],g[1]),o.bezierCurveTo(v[0],v[1],v[0],v[1],s[2][0],s[2][1])}else for(var m=1;m0&&f&&B(-y/d,0,d);var P,O,x=o[0],T=o[d-1];return R(),P<0&&U(-P,.8),O<0&&U(O,.8),R(),V(P,O,1),V(O,P,-1),R(),P<0&&j(-P),O<0&&j(O),g}function R(){P=x.rect[i]-s,O=u-T.rect[i]-T.rect[r]}function V(X,Z,$){if(X<0){var te=Math.min(Z,-X);if(te>0){B(te*$,0,d);var ee=te+X;ee<0&&U(-ee*$,1)}else U(-X*$,1)}}function B(X,Z,$){0!==X&&(g=!0);for(var te=Z;te<$;te++){var ee=o[te];ee.rect[i]+=X,ee.label[i]+=X}}function U(X,Z){for(var $=[],te=0,ee=1;ee0)for(ee=0;ee0;ee--)B(-$[ee-1]*de,ee,d)}}function j(X){var Z=X<0?-1:1;X=Math.abs(X);for(var $=Math.ceil(X/(d-1)),te=0;te0?B($,0,te+1):B(-$,d-te-1,d),(X-=$)<=0)return}}function IU(o,i,r,s){return vu(o,"y","height",i,r,s)}function jZ(o){if(o){for(var i=[],r=0;r=0&&s.attr(f.oldLayoutSelect),Rt(b,"emphasis")>=0&&s.attr(f.oldLayoutEmphasis)),ln(s,g,r,v)}else if(s.attr(g),!W0(s).valueAnimation){var y=ot(s.style.opacity,1);s.style.opacity=0,yr(s,{style:{opacity:y}},r,v)}if(f.oldLayout=g,s.states.select){var w=f.oldLayoutSelect={};UT(w,g,Wv),UT(w,s.states.select,Wv)}if(s.states.emphasis){var S=f.oldLayoutEmphasis={};UT(S,g,Wv),UT(S,s.states.emphasis,Wv)}Nm(s,v,m,r,r)}if(u&&!u.ignore&&!u.invisible){var f=WZ(u),M={points:u.shape.points};(d=f.oldLayout)?(u.attr({shape:d}),ln(u,{shape:M},r)):(u.setShape(M),u.style.strokePercent=0,yr(u,{style:{strokePercent:1}},r)),f.oldLayout=M}},o}(),GT=pn();function AL(o){o.registerUpdateLifecycle("series:beforeupdate",function(i,r,s){var u=GT(r).labelManager;u||(u=GT(r).labelManager=new YZ),u.clearLabels()}),o.registerUpdateLifecycle("series:layoutlabels",function(i,r,s){var u=GT(r).labelManager;s.updatedSeries.forEach(function(f){u.addLabelsOfSeries(r.getViewOfSeriesModel(f))}),u.updateLayoutConfig(r),u.layout(r),u.processLabelsOverall()})}function qZ(){return!1}function jT(o,i,r){var s=md(),u=i.getWidth(),f=i.getHeight(),d=s.style;return d&&(d.position="absolute",d.left="0",d.top="0",d.width=u+"px",d.height=f+"px",s.setAttribute("data-zr-dom-id",o)),s.width=u*r,s.height=f*r,s}Ot(AL);var EL=function(o){function i(r,s,u){var d,f=o.call(this)||this;f.motionBlur=!1,f.lastFrameAlpha=.7,f.dpr=1,f.virtual=!1,f.config={},f.incremental=!1,f.zlevel=0,f.maxRepaintRectCount=5,f.__dirty=!0,f.__firstTimePaint=!0,f.__used=!1,f.__drawIndex=0,f.__startIndex=0,f.__endIndex=0,f.__prevStartIndex=null,f.__prevEndIndex=null,u=u||Kb,"string"==typeof r?d=jT(r,s,u):at(r)&&(r=(d=r).id),f.id=r,f.dom=d;var p=d.style;return p&&(d.onselectstart=qZ,p.webkitUserSelect="none",p.userSelect="none",p.webkitTapHighlightColor="rgba(0,0,0,0)",p["-webkit-touch-callout"]="none",p.padding="0",p.margin="0",p.borderWidth="0"),f.domBack=null,f.ctxBack=null,f.painter=s,f.config=null,f.dpr=u,f}return Ln(i,o),i.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},i.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},i.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},i.prototype.setUnpainted=function(){this.__firstTimePaint=!0},i.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=jT("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),1!==r&&this.ctxBack.scale(r,r)},i.prototype.createRepaintRects=function(r,s,u,f){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var x,d=[],p=this.maxRepaintRectCount,v=!1,g=new Ft(0,0,0,0);function m(P){if(P.isFinite()&&!P.isZero())if(0===d.length)(O=new Ft(0,0,0,0)).copy(P),d.push(O);else{for(var R=!1,V=1/0,B=0,U=0;U=p)}}for(var y=this.__startIndex;y15)break}de.prevElClipPaths&&P.restore()};if(O)if(0===O.length)X=T.__endIndex;else for(var $=w.dpr,te=0;te0&&i>u[0]){for(v=0;vi);v++);p=s[u[v]]}if(u.splice(v+1,0,i),s[i]=r,!r.virtual)if(p){var g=p.dom;g.nextSibling?d.insertBefore(r.dom,g.nextSibling):d.appendChild(r.dom)}else d.firstChild?d.insertBefore(r.dom,d.firstChild):d.appendChild(r.dom);r.__painter=this}else Ns("Layer of zlevel "+i+" is not valid")},o.prototype.eachLayer=function(i,r){for(var s=this._zlevelList,u=0;u0?.01:0),this._needsManuallyCompositing),m.__builtin__||Ns("ZLevel "+g+" has been used by unkown layer "+m.id),m!==f&&(m.__used=!0,m.__startIndex!==v&&(m.__dirty=!0),m.__startIndex=v,m.__drawIndex=m.incremental?-1:v,r(v),f=m),1&u.__dirty&&!u.__inHover&&(m.__dirty=!0,m.incremental&&m.__drawIndex<0&&(m.__drawIndex=v))}r(v),this.eachBuiltinLayer(function(y,b){!y.__used&&y.getElementCount()>0&&(y.__dirty=!0,y.__startIndex=y.__endIndex=y.__drawIndex=0),y.__dirty&&y.__drawIndex<0&&(y.__drawIndex=y.__startIndex)})},o.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},o.prototype._clearLayer=function(i){i.clear()},o.prototype.setBackgroundColor=function(i){this._backgroundColor=i,q(this._layers,function(r){r.setUnpainted()})},o.prototype.configLayer=function(i,r){if(r){var s=this._layerConfig;s[i]?He(s[i],r,!0):s[i]=r;for(var u=0;u-1){var r=La(o);r&&(o="rgb("+r[0]+","+r[1]+","+r[2]+")",i=r[3])}}else o="none";return{color:o,opacity:null==i?1:i}}function gw(o,i,r,s,u){for(var f=i.length,d=r.length,p=o.newPos,v=p-s,g=0;p+1-1e-4}function ZT(o,i){i&&Rr(o,"transform","matrix("+ho(i[0])+","+ho(i[1])+","+ho(i[2])+","+ho(i[3])+","+sc(i[4])+","+sc(i[5])+")")}function Rr(o,i,r){(!r||"linear"!==r.type&&"radial"!==r.type)&&o.setAttribute(i,r)}function KT(o,i,r){var s=null==i.opacity?1:i.opacity;if(r instanceof si)o.style.opacity=s+"";else{if(function(o){var i=o.fill;return null!=i&&i!==U_}(i)){var u=vw(i.fill);Rr(o,"fill",u.color),Rr(o,"fill-opacity",(null!=i.fillOpacity?i.fillOpacity*u.opacity*s:u.opacity*s)+"")}else Rr(o,"fill",U_);if(function(o){var i=o.stroke;return null!=i&&i!==U_}(i)){var f=vw(i.stroke);Rr(o,"stroke",f.color);var d=i.lineWidth,p=i.strokeNoScale?r.getLineScale():1;Rr(o,"stroke-width",(p?d/p:0)+""),Rr(o,"paint-order",i.strokeFirst?"stroke":"fill"),Rr(o,"stroke-opacity",(null!=i.strokeOpacity?i.strokeOpacity*f.opacity*s:f.opacity*s)+"");var v=i.lineDash&&d>0&&Xx(i.lineDash,d);if(v){var g=i.lineDashOffset;p&&1!==p&&(v=Te(v,function(m){return m/p}),g&&(g=mw(g/=p))),Rr(o,"stroke-dasharray",v.join(",")),Rr(o,"stroke-dashoffset",(g||0)+"")}else Rr(o,"stroke-dasharray","");i.lineCap&&Rr(o,"stroke-linecap",i.lineCap),i.lineJoin&&Rr(o,"stroke-linejoin",i.lineJoin),i.miterLimit&&Rr(o,"stroke-miterlimit",i.miterLimit+"")}else Rr(o,"stroke",U_)}}var LL=function(){function o(){}return o.prototype.reset=function(){this._d=[],this._str=""},o.prototype.moveTo=function(i,r){this._add("M",i,r)},o.prototype.lineTo=function(i,r){this._add("L",i,r)},o.prototype.bezierCurveTo=function(i,r,s,u,f,d){this._add("C",i,r,s,u,f,d)},o.prototype.quadraticCurveTo=function(i,r,s,u){this._add("Q",i,r,s,u)},o.prototype.arc=function(i,r,s,u,f,d){this.ellipse(i,r,s,s,0,u,f,d)},o.prototype.ellipse=function(i,r,s,u,f,d,p,v){var g=0===this._d.length,m=p-d,y=!v,b=Math.abs(m),w=jU(b-oc)||(y?m>=oc:-m>=oc),S=m>0?m%oc:m%oc+oc,M=!1;M=!!w||!jU(b)&&S>=XT==!!y;var x=sc(i+s*_w(d)),T=sc(r+u*IL(d));w&&(m=y?oc-1e-4:1e-4-oc,M=!0,g&&this._d.push("M",x,T));var P=sc(i+s*_w(d+m)),O=sc(r+u*IL(d+m));if(isNaN(x)||isNaN(T)||isNaN(s)||isNaN(u)||isNaN(f)||isNaN(yw)||isNaN(P)||isNaN(O))return"";this._d.push("A",sc(s),sc(u),mw(f*yw),+M,+y,P,O)},o.prototype.rect=function(i,r,s,u){this._add("M",i,r),this._add("L",i+s,r),this._add("L",i+s,r+u),this._add("L",i,r+u),this._add("L",i,r),this._add("Z")},o.prototype.closePath=function(){this._d.length>0&&this._add("Z")},o.prototype._add=function(i,r,s,u,f,d,p,v,g){this._d.push(i);for(var m=1;m=0;--p)if(d[p]===f)return!0;return!1}),u}return null}return s[0]},o.prototype.doUpdate=function(i,r){if(i){var s=this.getDefs(!1);if(i[this._domName]&&s.contains(i[this._domName]))"function"==typeof r&&r(i);else{var u=this.add(i);u&&(i[this._domName]=u)}}},o.prototype.add=function(i){return null},o.prototype.addDom=function(i){var r=this.getDefs(!0);i.parentNode!==r&&r.appendChild(i)},o.prototype.removeDom=function(i){var r=this.getDefs(!1);r&&i[this._domName]&&(r.removeChild(i[this._domName]),i[this._domName]=null)},o.prototype.getDoms=function(){var i=this.getDefs(!1);if(!i)return[];var r=[];return q(this._tagNames,function(s){for(var u=i.getElementsByTagName(s),f=0;f-1){var g=La(v)[3],m=uO(v);p.setAttribute("stop-color","#"+m),p.setAttribute("stop-opacity",g+"")}else p.setAttribute("stop-color",u[f].color);s.appendChild(p)}r.__dom=s},i.prototype.markUsed=function(r){if(r.style){var s=r.style.fill;s&&s.__dom&&o.prototype.markDomUsed.call(this,s.__dom),(s=r.style.stroke)&&s.__dom&&o.prototype.markDomUsed.call(this,s.__dom)}},i}(bw);function qf(o){return o&&(!!o.image||!!o.svgElement)}var ww=new Tx,$Z=function(o){function i(r,s){return o.call(this,r,s,["pattern"],"__pattern_in_use__")||this}return Ln(i,o),i.prototype.addWithoutUpdate=function(r,s){if(s&&s.style){var u=this;q(["fill","stroke"],function(f){var d=s.style[f];if(qf(d)){var p=u.getDefs(!0),v=ww.get(d);v?p.contains(v)||u.addDom(v):v=u.add(d),u.markUsed(s);var g=v.getAttribute("id");r.setAttribute(f,"url(#"+g+")")}})}},i.prototype.add=function(r){if(qf(r)){var s=this.createElement("pattern");return r.id=null==r.id?this.nextId++:r.id,s.setAttribute("id","zr"+this._zrId+"-pattern-"+r.id),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(r,s),this.addDom(s),s}},i.prototype.update=function(r){if(qf(r)){var s=this;this.doUpdate(r,function(){var u=ww.get(r);s.updateDom(r,u)})}},i.prototype.updateDom=function(r,s){var u=r.svgElement;if(u instanceof SVGElement)u.parentNode!==s&&(s.innerHTML="",s.appendChild(u),s.setAttribute("width",r.svgWidth+""),s.setAttribute("height",r.svgHeight+""));else{var f=void 0,d=s.getElementsByTagName("image");if(d.length){if(!r.image)return void s.removeChild(d[0]);f=d[0]}else r.image&&(f=this.createElement("image"));if(f){var p=void 0,v=r.image;if("string"==typeof v?p=v:v instanceof HTMLImageElement?p=v.src:v instanceof HTMLCanvasElement&&(p=v.toDataURL()),p){f.setAttribute("href",p),f.setAttribute("x","0"),f.setAttribute("y","0");var m=zd(p,f,{dirty:function(){}},function(T){s.setAttribute("width",T.width+""),s.setAttribute("height",T.height+"")});m&&m.width&&m.height&&(s.setAttribute("width",m.width+""),s.setAttribute("height",m.height+"")),s.appendChild(f)}}}var w=(r.rotation||0)/Math.PI*180;s.setAttribute("patternTransform","translate("+(r.x||0)+", "+(r.y||0)+") rotate("+w+") scale("+(r.scaleX||1)+", "+(r.scaleY||1)+")"),ww.set(r,s)},i.prototype.markUsed=function(r){r.style&&(qf(r.style.fill)&&o.prototype.markDomUsed.call(this,ww.get(r.style.fill)),qf(r.style.stroke)&&o.prototype.markDomUsed.call(this,ww.get(r.style.stroke)))},i}(bw);function eD(o){var i=o.__clipPaths;return i&&i.length>0}var QU=function(o){function i(r,s){var u=o.call(this,r,s,"clipPath","__clippath_in_use__")||this;return u._refGroups={},u._keyDuplicateCount={},u}return Ln(i,o),i.prototype.markAllUnused=function(){o.prototype.markAllUnused.call(this);var r=this._refGroups;for(var s in r)r.hasOwnProperty(s)&&this.markDomUnused(r[s]);this._keyDuplicateCount={}},i.prototype._getClipPathGroup=function(r,s){if(eD(r)){var u=r.__clipPaths,f=this._keyDuplicateCount,d=function(o){var i=[];if(o)for(var r=0;r0){var u=this.getDefs(!0),f=s[0],d=void 0,p=void 0;f._dom?(p=f._dom.getAttribute("id"),u.contains(d=f._dom)||u.appendChild(d)):(p="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(d=this.createElement("clipPath")).setAttribute("id",p),u.appendChild(d),f._dom=d),this.getSvgProxy(f).brush(f);var g=this.getSvgElement(f);d.innerHTML="",d.appendChild(g),r.setAttribute("clip-path","url(#"+p+")"),s.length>1&&this.updateDom(d,s.slice(1))}else r&&r.setAttribute("clip-path","none")},i.prototype.markUsed=function(r){var s=this;r.__clipPaths&&q(r.__clipPaths,function(u){u._dom&&o.prototype.markDomUsed.call(s,u._dom)})},i.prototype.removeUnused=function(){o.prototype.removeUnused.call(this);var r={},s=this._refGroups;for(var u in s)if(s.hasOwnProperty(u)){var f=s[u];this.isDomUnused(f)?f.parentNode&&f.parentNode.removeChild(f):r[u]=f}this._refGroups=r},i}(bw),eG=function(o){function i(r,s){var u=o.call(this,r,s,["filter"],"__filter_in_use__","_shadowDom")||this;return u._shadowDomMap={},u._shadowDomPool=[],u}return Ln(i,o),i.prototype._getFromPool=function(){var r=this._shadowDomPool.pop();if(!r){(r=this.createElement("filter")).setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var s=this.createElement("feDropShadow");r.appendChild(s),this.addDom(r)}return r},i.prototype.update=function(r,s){if(function(o){return o&&(o.shadowBlur||o.shadowOffsetX||o.shadowOffsetY)}(s.style)){var f=function(o){var i=o.style,r=o.getGlobalScale();return[i.shadowColor,(i.shadowBlur||0).toFixed(2),(i.shadowOffsetX||0).toFixed(2),(i.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}(s),d=s._shadowDom=this._shadowDomMap[f];d||(d=this._getFromPool(),this._shadowDomMap[f]=d),this.updateDom(r,s,d)}else this.remove(r,s)},i.prototype.remove=function(r,s){null!=s._shadowDom&&(s._shadowDom=null,r.style.filter="")},i.prototype.updateDom=function(r,s,u){var f=u.children[0],d=s.style,p=s.getGlobalScale(),v=p[0],g=p[1];if(v&&g){var m=d.shadowOffsetX||0,y=d.shadowOffsetY||0,b=d.shadowBlur,w=vw(d.shadowColor);f.setAttribute("dx",m/v+""),f.setAttribute("dy",y/g+""),f.setAttribute("flood-color",w.color),f.setAttribute("flood-opacity",w.opacity+""),f.setAttribute("stdDeviation",b/2/v+" "+b/2/g),u.setAttribute("x","-100%"),u.setAttribute("y","-100%"),u.setAttribute("width","300%"),u.setAttribute("height","300%"),s._shadowDom=u;var T=u.getAttribute("id");r.style.filter="url(#"+T+")"}},i.prototype.removeUnused=function(){if(this.getDefs(!1)){var s=this._shadowDomPool,u=this._shadowDomMap;for(var f in u)u.hasOwnProperty(f)&&s.push(u[f]);this._shadowDomMap={}}},i}(bw);function Sw(o){return parseInt(o,10)}function nG(o){return o instanceof Nt?Yv:o instanceof si?FL:o instanceof Xp?XU:Yv}function rG(o,i){return i&&o&&i.parentNode!==o}function kw(o,i,r){if(rG(o,i)&&r){var s=r.nextSibling;s?o.insertBefore(i,s):o.appendChild(i)}}function iG(o,i){if(rG(o,i)){var r=o.firstChild;r?o.insertBefore(i,r):o.appendChild(i)}}function aG(o,i){i&&o&&i.parentNode===o&&o.removeChild(i)}function oG(o){o&&o.parentNode&&o.parentNode.removeChild(o)}function G_(o){return o.__svgEl}function zL(o){return function(){Ns('In SVG mode painter not support method "'+o+'"')}}var sG=function(){function o(i,r,s,u){this.type="svg",this.refreshHover=zL("refreshHover"),this.pathToImage=zL("pathToImage"),this.configLayer=zL("configLayer"),this.root=i,this.storage=r,this._opts=s=Se({},s||{});var f=bl("svg");f.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),f.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),f.setAttribute("version","1.1"),f.setAttribute("baseProfile","full"),f.style.cssText="user-select:none;position:absolute;left:0;top:0;";var d=bl("g");f.appendChild(d);var p=bl("g");f.appendChild(p),this._gradientManager=new KU(u,p),this._patternManager=new $Z(u,p),this._clipPathManager=new QU(u,p),this._shadowManager=new eG(u,p);var v=document.createElement("div");v.style.cssText="overflow:hidden;position:relative",this._svgDom=f,this._svgRoot=p,this._backgroundRoot=d,this._viewport=v,i.appendChild(v),v.appendChild(f),this.resize(s.width,s.height),this._visibleList=[]}return o.prototype.getType=function(){return"svg"},o.prototype.getViewportRoot=function(){return this._viewport},o.prototype.getSvgDom=function(){return this._svgDom},o.prototype.getSvgRoot=function(){return this._svgRoot},o.prototype.getViewportRootOffset=function(){var i=this.getViewportRoot();if(i)return{offsetLeft:i.offsetLeft||0,offsetTop:i.offsetTop||0}},o.prototype.refresh=function(){var i=this.storage.getDisplayList(!0);this._paintList(i)},o.prototype.setBackgroundColor=function(i){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var r=bl("rect");r.setAttribute("width",this.getWidth()),r.setAttribute("height",this.getHeight()),r.setAttribute("x",0),r.setAttribute("y",0),r.setAttribute("id",0);var s=vw(i),f=s.opacity;r.setAttribute("fill",s.color),r.setAttribute("fill-opacity",f),this._backgroundRoot.appendChild(r),this._backgroundNode=r},o.prototype.createSVGElement=function(i){return bl(i)},o.prototype.paintOne=function(i){var r=nG(i);return r&&r.brush(i),G_(i)},o.prototype._paintList=function(i){var r=this._gradientManager,s=this._patternManager,u=this._clipPathManager,f=this._shadowManager;r.markAllUnused(),s.markAllUnused(),u.markAllUnused(),f.markAllUnused();for(var d=this._svgRoot,p=this._visibleList,v=i.length,g=[],m=0;m=s&&v+1>=u){for(var g=[],m=0;m=s&&T+1>=u)return OL(S.components);p[w]=S}else p[w]=void 0}f++}for(;f<=d;){var b=y();if(b)return b}}(o,i,r)}(p,g);for(m=0;m\n\r<"))},o}(),UL=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r}return he(i,o),i.prototype.getInitialData=function(r){return gl(null,this,{useEncodeDefaulter:!0})},i.prototype.getLegendIcon=function(r){var s=new ct,u=Ir("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);s.add(u),u.setStyle(r.lineStyle);var f=this.getData().getVisual("symbol"),d=this.getData().getVisual("symbolRotate"),p="none"===f?"circle":f,v=.8*r.itemHeight,g=Ir(p,(r.itemWidth-v)/2,(r.itemHeight-v)/2,v,v,r.itemStyle.fill);return s.add(g),g.setStyle(r.itemStyle),g.rotation=("inherit"===r.iconRotate?d:r.iconRotate||0)*Math.PI/180,g.setOrigin([r.itemWidth/2,r.itemHeight/2]),p.indexOf("empty")>-1&&(g.style.stroke=g.style.fill,g.style.fill="#fff",g.style.lineWidth=2),s},i.type="series.line",i.dependencies=["grid","polar"],i.defaultOption={zlevel:0,z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0,lineStyle:{width:"bolder"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"}},i}(vt);function Xf(o,i){var r=o.mapDimensionsAll("defaultedLabel"),s=r.length;if(1===s){var u=zo(o,i,r[0]);return null!=u?u+"":null}if(s){for(var f=[],d=0;d=0&&s.push(i[f])}return s.join(" ")}function xw(o,i){this.parent.drift(o,i)}var j_=function(o){function i(r,s,u,f){var d=o.call(this)||this;return d.updateData(r,s,u,f),d}return he(i,o),i.prototype._createSymbol=function(r,s,u,f,d){this.removeAll();var p=Ir(r,-1,-1,2,2,null,d);p.attr({z2:100,culling:!0,scaleX:f[0]/2,scaleY:f[1]/2}),p.drift=xw,this._symbolType=r,this.add(p)},i.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},i.prototype.getSymbolType=function(){return this._symbolType},i.prototype.getSymbolPath=function(){return this.childAt(0)},i.prototype.highlight=function(){Js(this.childAt(0))},i.prototype.downplay=function(){eu(this.childAt(0))},i.prototype.setZ=function(r,s){var u=this.childAt(0);u.zlevel=r,u.z=s},i.prototype.setDraggable=function(r){var s=this.childAt(0);s.draggable=r,s.cursor=r?"move":s.cursor},i.prototype.updateData=function(r,s,u,f){this.silent=!1;var d=r.getItemVisual(s,"symbol")||"circle",p=r.hostModel,v=i.getSymbolSize(r,s),g=d!==this._symbolType,m=f&&f.disableAnimation;if(g){var y=r.getItemVisual(s,"symbolKeepAspect");this._createSymbol(d,r,s,v,y)}else{(b=this.childAt(0)).silent=!1;var w={scaleX:v[0]/2,scaleY:v[1]/2};m?b.attr(w):ln(b,w,p,s),el(b)}if(this._updateCommon(r,s,v,u,f),g){var b=this.childAt(0);m||(w={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:b.style.opacity}},b.scaleX=b.scaleY=0,b.style.opacity=0,yr(b,w,p,s))}m&&this.childAt(0).stopAnimation("remove"),this._seriesModel=p},i.prototype._updateCommon=function(r,s,u,f,d){var g,m,y,b,w,S,M,x,p=this.childAt(0),v=r.hostModel;if(f&&(g=f.emphasisItemStyle,m=f.blurItemStyle,y=f.selectItemStyle,b=f.focus,w=f.blurScope,S=f.labelStatesModels,M=f.hoverScale,x=f.cursorStyle),!f||r.hasItemOption){var T=f&&f.itemModel?f.itemModel:r.getItemModel(s),P=T.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=T.getModel(["select","itemStyle"]).getItemStyle(),m=T.getModel(["blur","itemStyle"]).getItemStyle(),b=P.get("focus"),w=P.get("blurScope"),S=lr(T),M=P.getShallow("scale"),x=T.getShallow("cursor")}var O=r.getItemVisual(s,"symbolRotate");p.attr("rotation",(O||0)*Math.PI/180||0);var R=Ah(r.getItemVisual(s,"symbolOffset"),u);R&&(p.x=R[0],p.y=R[1]),x&&p.attr("cursor",x);var V=r.getItemVisual(s,"style"),B=V.fill;if(p instanceof si){var U=p.style;p.useStyle(Se({image:U.image,x:U.x,y:U.y,width:U.width,height:U.height},V))}else p.useStyle(p.__isEmptyBrush?Se({},V):V),p.style.decal=null,p.setColor(B,d&&d.symbolInnerColor),p.style.strokeNoScale=!0;var j=r.getItemVisual(s,"liftZ"),X=this._z2;null!=j?null==X&&(this._z2=p.z2,p.z2+=j):null!=X&&(p.z2=X,this._z2=null);var Z=d&&d.useNameLabel;Mi(p,S,{labelFetcher:v,labelDataIndex:s,defaultText:function(le){return Z?r.getName(le):Xf(r,le)},inheritColor:B,defaultOpacity:V.opacity}),this._sizeX=u[0]/2,this._sizeY=u[1]/2;var te=p.ensureState("emphasis");if(te.style=g,p.ensureState("select").style=y,p.ensureState("blur").style=m,M){var ee=Math.max(1.1,3/this._sizeY);te.scaleX=this._sizeX*ee,te.scaleY=this._sizeY*ee}this.setSymbolScale(1),qn(this,b,w)},i.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},i.prototype.fadeOut=function(r,s){var u=this.childAt(0),f=this._seriesModel,d=ht(this).dataIndex,p=s&&s.animation;if(this.silent=u.silent=!0,s&&s.fadeLabel){var v=u.getTextContent();v&&Cf(v,{style:{opacity:0}},f,{dataIndex:d,removeOpt:p,cb:function(){u.removeTextContent()}})}else u.removeTextContent();Cf(u,{style:{opacity:0},scaleX:0,scaleY:0},f,{dataIndex:d,cb:r,removeOpt:p})},i.getSymbolSize=function(r,s){return g_(r.getItemVisual(s,"symbolSize"))},i}(ct);function W_(o,i,r,s){return i&&!isNaN(i[0])&&!isNaN(i[1])&&!(s.isIgnore&&s.isIgnore(r))&&!(s.clipShape&&!s.clipShape.contain(i[0],i[1]))&&"none"!==o.getItemVisual(r,"symbol")}function lG(o){return null!=o&&!at(o)&&(o={isIgnore:o}),o||{}}function nD(o){var i=o.hostModel,r=i.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:i.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:i.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),hoverScale:r.get("scale"),labelStatesModels:lr(i),cursorStyle:i.get("cursor")}}var Y_=function(){function o(i){this.group=new ct,this._SymbolCtor=i||j_}return o.prototype.updateData=function(i,r){r=lG(r);var s=this.group,u=i.hostModel,f=this._data,d=this._SymbolCtor,p=r.disableAnimation,v=nD(i),g={disableAnimation:p},m=r.getSymbolPoint||function(y){return i.getItemLayout(y)};f||s.removeAll(),i.diff(f).add(function(y){var b=m(y);if(W_(i,b,y,r)){var w=new d(i,y,v,g);w.setPosition(b),i.setItemGraphicEl(y,w),s.add(w)}}).update(function(y,b){var w=f.getItemGraphicEl(b),S=m(y);if(W_(i,S,y,r)){var M=i.getItemVisual(y,"symbol")||"circle",x=w&&w.getSymbolType&&w.getSymbolType();if(!w||x&&x!==M)s.remove(w),(w=new d(i,y,v,g)).setPosition(S);else{w.updateData(i,y,v,g);var T={x:S[0],y:S[1]};p?w.attr(T):ln(w,T,u)}s.add(w),i.setItemGraphicEl(y,w)}else s.remove(w)}).remove(function(y){var b=f.getItemGraphicEl(y);b&&b.fadeOut(function(){s.remove(b)})}).execute(),this._getSymbolPoint=m,this._data=i},o.prototype.isPersistent=function(){return!0},o.prototype.updateLayout=function(){var i=this,r=this._data;r&&r.eachItemGraphicEl(function(s,u){var f=i._getSymbolPoint(u);s.setPosition(f),s.markRedraw()})},o.prototype.incrementalPrepareUpdate=function(i){this._seriesScope=nD(i),this._data=null,this.group.removeAll()},o.prototype.incrementalUpdate=function(i,r,s){function u(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}s=lG(s);for(var f=i.start;f0?r=s[0]:s[1]<0&&(r=s[1]),r}(u,r),d=s.dim,p=u.dim,v=i.mapDimension(p),g=i.mapDimension(d),m="x"===p||"radius"===p?1:0,y=Te(o.dimensions,function(S){return i.mapDimension(S)}),b=!1,w=i.getCalculationInfo("stackResultDimension");return ac(i,y[0])&&(b=!0,y[0]=w),ac(i,y[1])&&(b=!0,y[1]=w),{dataDimsForPoint:y,valueStart:f,valueAxisDim:p,baseAxisDim:d,stacked:!!b,valueDim:v,baseDim:g,baseDataOffset:m,stackedOverDimension:i.getCalculationInfo("stackedOverDimension")}}function uG(o,i,r,s){var u=NaN;o.stacked&&(u=r.get(r.getCalculationInfo("stackedOverDimension"),s)),isNaN(u)&&(u=o.valueStart);var f=o.baseDataOffset,d=[];return d[f]=r.get(o.baseDim,s),d[1-f]=u,i.dataToPoint(d)}var cG="undefined"!=typeof Float32Array,nK=cG?Float32Array:Array;function q_(o){return we(o)?cG?new Float32Array(o):o:new nK(o)}var Zf=Math.min,Kf=Math.max;function jh(o,i){return isNaN(o)||isNaN(i)}function rD(o,i,r,s,u,f,d,p,v){for(var g,m,y,b,w,S,M=r,x=0;x=u||M<0)break;if(jh(T,P)){if(v){M+=f;continue}break}if(M===r)o[f>0?"moveTo":"lineTo"](T,P),y=T,b=P;else{var O=T-g,R=P-m;if(O*O+R*R<.5){M+=f;continue}if(d>0){var V=M+f,B=i[2*V],U=i[2*V+1],j=x+1;if(v)for(;jh(B,U)&&j=s||jh(B,U))w=T,S=P;else{Z=B-g,$=U-m;var le=T-g,oe=B-T,de=P-m,ge=U-P,_e=void 0,xe=void 0;"x"===p?(_e=Math.abs(le),xe=Math.abs(oe),w=T-_e*d,S=P,te=T+_e*d,ee=P):"y"===p?(_e=Math.abs(de),xe=Math.abs(ge),w=T,S=P-_e*d,te=T,ee=P+_e*d):(_e=Math.sqrt(le*le+de*de),w=T-Z*d*(1-(X=(xe=Math.sqrt(oe*oe+ge*ge))/(xe+_e))),S=P-$*d*(1-X),ee=P+$*d*X,te=Zf(te=T+Z*d*X,Kf(B,T)),ee=Zf(ee,Kf(U,P)),te=Kf(te,Zf(B,T)),S=P-($=(ee=Kf(ee,Zf(U,P)))-P)*_e/xe,w=Zf(w=T-(Z=te-T)*_e/xe,Kf(g,T)),S=Zf(S,Kf(m,P)),te=T+(Z=T-(w=Kf(w,Zf(g,T))))*xe/_e,ee=P+($=P-(S=Kf(S,Zf(m,P))))*xe/_e)}o.bezierCurveTo(y,b,w,S,T,P),y=te,b=ee}else o.lineTo(T,P)}g=T,m=P,M+=f}return x}var jL=function(){this.smooth=0,this.smoothConstraint=!0},hG=function(o){function i(r){var s=o.call(this,r)||this;return s.type="ec-polyline",s}return he(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new jL},i.prototype.buildPath=function(r,s){var u=s.points,f=0,d=u.length/2;if(s.connectNulls){for(;d>0&&jh(u[2*d-2],u[2*d-1]);d--);for(;f=0){var R=g?(S-v)*O+v:(w-p)*O+p;return g?[r,R]:[R,r]}p=w,v=S;break;case d.C:w=f[y++],S=f[y++],M=f[y++],x=f[y++],T=f[y++],P=f[y++];var V=g?C0(p,w,M,T,r,m):C0(v,S,x,P,r,m);if(V>0)for(var B=0;B=0)return R=g?pr(v,S,x,P,U):pr(p,w,M,T,U),g?[r,R]:[R,r]}p=T,v=P}}},i}(Nt),pG=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i}(jL),WL=function(o){function i(r){var s=o.call(this,r)||this;return s.type="ec-polygon",s}return he(i,o),i.prototype.getDefaultShape=function(){return new pG},i.prototype.buildPath=function(r,s){var u=s.points,f=s.stackedOnPoints,d=0,p=u.length/2,v=s.smoothMonotone;if(s.connectNulls){for(;p>0&&jh(u[2*p-2],u[2*p-1]);p--);for(;ds)return!1;return!0}(f,i))){var d=i.mapDimension(f.dim),p={};return q(f.getViewLabels(),function(v){var g=f.scale.getRawOrdinalNumber(v.tickValue);p[g]=1}),function(v){return!p.hasOwnProperty(i.get(d,v))}}}}(r,v,d),X=this._data;X&&X.eachItemGraphicEl(function(Je,mt){Je.__temp&&(p.remove(Je),X.setItemGraphicEl(mt,null))}),U||S.remove(),p.add(T);var $,Z=!b&&r.get("step");d&&d.getArea&&r.get("clip",!0)&&(null!=($=d.getArea()).width?($.x-=.1,$.y-=.1,$.width+=.2,$.height+=.2):$.r0&&($.r0-=.5,$.r+=.5)),this._clipShapeForSymbol=$;var te=function(o,i){var r=o.getVisual("visualMeta");if(r&&r.length&&o.count()&&"cartesian2d"===i.type){for(var s,u,f=r.length-1;f>=0;f--){var d=o.getDimensionInfo(r[f].dimension);if("x"===(s=d&&d.coordDim)||"y"===s){u=r[f];break}}if(u){var p=i.getAxis(s),v=p.scale.getExtent(),g=Te(u.stops,function(T){var P=p.toGlobalCoord(p.dataToCoord(T.value));return isNaN(P)||isFinite(P)||(P=p.toGlobalCoord(p.dataToCoord(v[+(P<0)]))),{offset:0,coord:P,color:T.color}}),m=g.length,y=u.outerColors.slice();m&&g[0].coord>g[m-1].coord&&(g.reverse(),y.reverse());var w=g[0].coord-10,S=g[m-1].coord+10,M=S-w;if(M<.001)return"transparent";q(g,function(T){T.offset=(T.coord-w)/M}),g.push({offset:m?g[m-1].offset:.5,color:y[1]||"transparent"}),g.unshift({offset:m?g[0].offset:.5,color:y[0]||"transparent"});var x=new xv(0,0,0,0,g,!0);return x[s]=w,x[s+"2"]=S,x}}}(v,d)||v.getVisual("style")[v.getVisual("drawType")];M&&w.type===d.type&&Z===this._step?(O&&!x?x=this._newPolygon(y,B):x&&!O&&(T.remove(x),x=this._polygon=null),b||this._initOrUpdateEndLabel(r,d,wf(te)),T.setClipPath(wG(this,d,!1,r)),U&&S.updateData(v,{isIgnore:j,clipShape:$,disableAnimation:!0,getSymbolPoint:function(mt){return[y[2*mt],y[2*mt+1]]}}),(!YL(this._stackedOnPoints,B)||!YL(this._points,y))&&(P?this._doUpdateAnimation(v,B,d,u,Z,R):(Z&&(y=$f(y,d,Z),B&&(B=$f(B,d,Z))),M.setShape({points:y}),x&&x.setShape({points:y,stackedOnPoints:B})))):(U&&S.updateData(v,{isIgnore:j,clipShape:$,disableAnimation:!0,getSymbolPoint:function(mt){return[y[2*mt],y[2*mt+1]]}}),P&&this._initSymbolLabelAnimation(v,d,$),Z&&(y=$f(y,d,Z),B&&(B=$f(B,d,Z))),M=this._newPolyline(y),O&&(x=this._newPolygon(y,B)),b||this._initOrUpdateEndLabel(r,d,wf(te)),T.setClipPath(wG(this,d,!0,r)));var ee=r.get(["emphasis","focus"]),le=r.get(["emphasis","blurScope"]);M.useStyle(tt(g.getLineStyle(),{fill:"none",stroke:te,lineJoin:"bevel"})),ki(M,r,"lineStyle"),M.style.lineWidth>0&&"bolder"===r.get(["emphasis","lineStyle","width"])&&(M.getState("emphasis").style.lineWidth=+M.style.lineWidth+1),ht(M).seriesIndex=r.seriesIndex,qn(M,ee,le);var de=ks(r.get("smooth")),ge=r.get("smoothMonotone"),_e=r.get("connectNulls");if(M.setShape({smooth:de,smoothMonotone:ge,connectNulls:_e}),x){var xe=v.getCalculationInfo("stackedOnSeries"),Me=0;x.useStyle(tt(m.getAreaStyle(),{fill:te,opacity:.7,lineJoin:"bevel",decal:v.getVisual("style").decal})),xe&&(Me=ks(xe.get("smooth"))),x.setShape({smooth:de,stackedOnSmooth:Me,smoothMonotone:ge,connectNulls:_e}),ki(x,r,"areaStyle"),ht(x).seriesIndex=r.seriesIndex,qn(x,ee,le)}var ze=function(mt){f._changePolyState(mt)};v.eachItemGraphicEl(function(Je){Je&&(Je.onHoverStateChange=ze)}),this._polyline.onHoverStateChange=ze,this._data=v,this._coordSys=d,this._stackedOnPoints=B,this._points=y,this._step=Z,this._valueOrigin=R},i.prototype.dispose=function(){},i.prototype.highlight=function(r,s,u,f){var d=r.getData(),p=va(d,f);if(this._changePolyState("emphasis"),!(p instanceof Array)&&null!=p&&p>=0){var v=d.getLayout("points"),g=d.getItemGraphicEl(p);if(!g){var m=v[2*p],y=v[2*p+1];if(isNaN(m)||isNaN(y)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(m,y))return;var b=r.get("zlevel"),w=r.get("z");(g=new j_(d,p)).x=m,g.y=y,g.setZ(b,w);var S=g.getSymbolPath().getTextContent();S&&(S.zlevel=b,S.z=w,S.z2=this._polyline.z2+1),g.__temp=!0,d.setItemGraphicEl(p,g),g.stopSymbolAnimation(!0),this.group.add(g)}g.highlight()}else Vn.prototype.highlight.call(this,r,s,u,f)},i.prototype.downplay=function(r,s,u,f){var d=r.getData(),p=va(d,f);if(this._changePolyState("normal"),null!=p&&p>=0){var v=d.getItemGraphicEl(p);v&&(v.__temp?(d.setItemGraphicEl(p,null),this.group.remove(v)):v.downplay())}else Vn.prototype.downplay.call(this,r,s,u,f)},i.prototype._changePolyState=function(r){var s=this._polygon;Rm(this._polyline,r),s&&Rm(s,r)},i.prototype._newPolyline=function(r){var s=this._polyline;return s&&this._lineGroup.remove(s),s=new hG({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(s),this._polyline=s,s},i.prototype._newPolygon=function(r,s){var u=this._polygon;return u&&this._lineGroup.remove(u),u=new WL({shape:{points:r,stackedOnPoints:s},segmentIgnoreThreshold:2}),this._lineGroup.add(u),this._polygon=u,u},i.prototype._initSymbolLabelAnimation=function(r,s,u){var f,d,p=s.getBaseAxis(),v=p.inverse;"cartesian2d"===s.type?(f=p.isHorizontal(),d=!1):"polar"===s.type&&(f="angle"===p.dim,d=!0);var g=r.hostModel,m=g.get("animationDuration");"function"==typeof m&&(m=m(null));var y=g.get("animationDelay")||0,b="function"==typeof y?y(null):y;r.eachItemGraphicEl(function(w,S){var M=w;if(M){var T=void 0,P=void 0,O=void 0;if(u)if(d){var R=u,V=s.pointToCoord([w.x,w.y]);f?(T=R.startAngle,P=R.endAngle,O=-V[1]/180*Math.PI):(T=R.r0,P=R.r,O=V[0])}else f?(T=u.x,P=u.x+u.width,O=w.x):(T=u.y+u.height,P=u.y,O=w.y);var U=P===T?0:(O-T)/(P-T);v&&(U=1-U);var j="function"==typeof y?y(S):m*U+b,X=M.getSymbolPath(),Z=X.getTextContent();M.attr({scaleX:0,scaleY:0}),M.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:j}),Z&&Z.animateFrom({style:{opacity:0}},{duration:300,delay:j}),X.disableLabelAnimation=!0}})},i.prototype._initOrUpdateEndLabel=function(r,s,u){var f=r.getModel("endLabel");if(iD(r)){var d=r.getData(),p=this._polyline,v=this._endLabel;v||((v=this._endLabel=new fn({z2:200})).ignoreClip=!0,p.setTextContent(this._endLabel),p.disableLabelAnimation=!0);var g=function(o){for(var i=o.length/2;i>0&&bG(o[2*i-2],o[2*i-1]);i--);return i-1}(d.getLayout("points"));g>=0&&(Mi(p,lr(r,"endLabel"),{inheritColor:u,labelFetcher:r,labelDataIndex:g,defaultText:function(y,b,w){return null!=w?Mw(d,w):Xf(d,y)},enableTextSetter:!0},function(o,i){var r=i.getBaseAxis(),s=r.isHorizontal(),u=r.inverse,f=s?u?"right":"left":"center",d=s?"middle":u?"top":"bottom";return{normal:{align:o.get("align")||f,verticalAlign:o.get("verticalAlign")||d}}}(f,s)),p.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},i.prototype._endLabelOnDuring=function(r,s,u,f,d,p,v){var g=this._endLabel,m=this._polyline;if(g){r<1&&null==f.originalX&&(f.originalX=g.x,f.originalY=g.y);var y=u.getLayout("points"),b=u.hostModel,w=b.get("connectNulls"),S=p.get("precision"),M=p.get("distance")||0,x=v.getBaseAxis(),T=x.isHorizontal(),P=x.inverse,O=s.shape,R=P?T?O.x:O.y+O.height:T?O.x+O.width:O.y,V=(T?M:0)*(P?-1:1),B=(T?0:-M)*(P?-1:1),U=T?"x":"y",j=function(o,i,r){for(var f,d,s=o.length/2,u="x"===r?0:1,p=0,v=-1,g=0;g=i||f>=i&&d<=i){v=g;break}p=g,f=d}return{range:[p,v],t:(i-f)/(d-f)}}(y,R,U),X=j.range,Z=X[1]-X[0],$=void 0;if(Z>=1){if(Z>1&&!w){var te=ZL(y,X[0]);g.attr({x:te[0]+V,y:te[1]+B}),d&&($=b.getRawValue(X[0]))}else{(te=m.getPointOn(R,U))&&g.attr({x:te[0]+V,y:te[1]+B});var ee=b.getRawValue(X[0]),le=b.getRawValue(X[1]);d&&($=Bd(u,S,ee,le,j.t))}f.lastFrameIndex=X[0]}else{var oe=1===r||f.lastFrameIndex>0?X[0]:0;te=ZL(y,oe),d&&($=b.getRawValue(oe)),g.attr({x:te[0]+V,y:te[1]+B})}d&&W0(g).setLabelText($)}},i.prototype._doUpdateAnimation=function(r,s,u,f,d,p){var v=this._polyline,g=this._polygon,m=r.hostModel,y=function(o,i,r,s,u,f,d,p){for(var v=function(o,i){var r=[];return i.diff(o).add(function(s){r.push({cmd:"+",idx:s})}).update(function(s,u){r.push({cmd:"=",idx:u,idx1:s})}).remove(function(s){r.push({cmd:"-",idx:s})}).execute(),r}(o,i),g=[],m=[],y=[],b=[],w=[],S=[],M=[],x=GL(u,i,d),T=o.getLayout("points")||[],P=i.getLayout("points")||[],O=0;O3e3||g&&XL(w,M)>3e3)return v.setShape({points:S}),void(g&&g.setShape({points:S,stackedOnPoints:M}));v.shape.__points=y.current,v.shape.points=b;var x={shape:{points:S}};y.current!==b&&(x.shape.__points=y.next),v.stopAnimation(),ln(v,x,m),g&&(g.setShape({points:b,stackedOnPoints:w}),g.stopAnimation(),ln(g,{shape:{stackedOnPoints:M}},m),v.shape.points!==g.shape.points&&(g.shape.points=v.shape.points));for(var T=[],P=y.status,O=0;Or&&(r=i[s]);return isFinite(r)?r:NaN},min:function(i){for(var r=1/0,s=0;s10&&"cartesian2d"===p.type&&d){var g=p.getBaseAxis(),m=p.getOtherAxis(g),y=g.getExtent(),b=u.getDevicePixelRatio(),w=Math.abs(y[1]-y[0])*(b||1),S=Math.round(v/w);if(S>1){"lttb"===d&&r.setData(f.lttbDownSample(f.mapDimension(m.dim),1/S));var M=void 0;"string"==typeof d?M=aD[d]:"function"==typeof d&&(M=d),M&&r.setData(f.downSample(f.mapDimension(m.dim),1/S,M,kG))}}}}}var xG=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.getInitialData=function(r,s){return gl(null,this,{useEncodeDefaulter:!0})},i.prototype.getMarkerPosition=function(r){var s=this.coordinateSystem;if(s&&s.clampData){var u=s.dataToPoint(s.clampData(r)),f=this.getData(),d=f.getLayout("offset"),p=f.getLayout("size");return u[s.getBaseAxis().isHorizontal()?0:1]+=d+p/2,u}return[NaN,NaN]},i.type="series.__base_bar__",i.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},i}(vt);vt.registerClass(xG);var Aw=xG,DG=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.getInitialData=function(){return gl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},i.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},i.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),s=this.get("largeThreshold");return s>r&&(r=s),r},i.prototype.brushSelector=function(r,s,u){return u.rect(s.getItemLayout(r))},i.type="series.bar",i.dependencies=["grid","polar"],i.defaultOption=rh(Aw.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),i}(Aw),Cl=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Z_=function(o){function i(r){var s=o.call(this,r)||this;return s.type="sausage",s}return he(i,o),i.prototype.getDefaultShape=function(){return new Cl},i.prototype.buildPath=function(r,s){var u=s.cx,f=s.cy,d=Math.max(s.r0||0,0),p=Math.max(s.r,0),v=.5*(p-d),g=d+v,m=s.startAngle,y=s.endAngle,b=s.clockwise,w=Math.cos(m),S=Math.sin(m),M=Math.cos(y),x=Math.sin(y);(b?y-m<2*Math.PI:m-y<2*Math.PI)&&(r.moveTo(w*d+u,S*d+f),r.arc(w*g+u,S*g+f,v,-Math.PI+m,m,!b)),r.arc(u,f,p,m,y,!b),r.moveTo(M*p+u,x*p+f),r.arc(M*g+u,x*g+f,v,y-2*Math.PI,y-Math.PI,!b),0!==d&&(r.arc(u,f,d,y,m,b),r.moveTo(w*d+u,x*d+f)),r.closePath()},i}(Nt);function K_(o,i,r){return i*Math.sin(o)*(r?-1:1)}function $_(o,i,r){return i*Math.cos(o)*(r?1:-1)}var qv=[0,0],Q_=Math.max,J_=Math.min,Pw=function(o){function i(){var r=o.call(this)||this;return r.type=i.type,r._isFirstFrame=!0,r}return he(i,o),i.prototype.render=function(r,s,u,f){this._model=r,this._removeOnRenderedListener(u),this._updateDrawMode(r);var d=r.get("coordinateSystem");("cartesian2d"===d||"polar"===d)&&(this._isLargeDraw?this._renderLarge(r,s,u):this._renderNormal(r,s,u,f))},i.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},i.prototype.incrementalRender=function(r,s){this._incrementalRenderLarge(r,s)},i.prototype._updateDrawMode=function(r){var s=r.pipelineContext.large;(null==this._isLargeDraw||s!==this._isLargeDraw)&&(this._isLargeDraw=s,this._clear())},i.prototype._renderNormal=function(r,s,u,f){var y,d=this.group,p=r.getData(),v=this._data,g=r.coordinateSystem,m=g.getBaseAxis();"cartesian2d"===g.type?y=m.isHorizontal():"polar"===g.type&&(y="angle"===m.dim);var b=r.isAnimationEnabled()?r:null,w=function(o,i){var r=o.get("realtimeSort",!0),s=i.getBaseAxis();if(r&&"category"===s.type&&"cartesian2d"===i.type)return{baseAxis:s,otherAxis:i.getOtherAxis(s)}}(r,g);w&&this._enableRealtimeSort(w,p,u);var S=r.get("clip",!0)||w,M=function(o,i){var r=o.getArea&&o.getArea();if(uc(o,"cartesian2d")){var s=o.getBaseAxis();if("category"!==s.type||!s.onBand){var u=i.getLayout("bandWidth");s.isHorizontal()?(r.x-=u,r.width+=2*u):(r.y-=u,r.height+=2*u)}}return r}(g,p);d.removeClipPath();var x=r.get("roundCap",!0),T=r.get("showBackground",!0),P=r.getModel("backgroundStyle"),O=P.get("borderRadius")||0,R=[],V=this._backgroundEls,B=f&&f.isInitSort,U=f&&"changeAxisOrder"===f.type;function j($){var te=Xv[g.type](p,$),ee=function(o,i,r){return new("polar"===o.type?ir:sn)({shape:tF(i,r,o),silent:!0,z2:0})}(g,y,te);return ee.useStyle(P.getItemStyle()),"cartesian2d"===g.type&&ee.setShape("r",O),R[$]=ee,ee}p.diff(v).add(function($){var te=p.getItemModel($),ee=Xv[g.type](p,$,te);if(T&&j($),p.hasValue($)&&JL[g.type](ee)){var le=!1;S&&(le=oD[g.type](M,ee));var oe=sD[g.type](r,p,$,ee,y,b,m.model,!1,x);Zv(oe,p,$,te,ee,r,y,"polar"===g.type),B?oe.attr({shape:ee}):w?QL(w,b,oe,ee,$,y,!1,!1):yr(oe,{shape:ee},r,$),p.setItemGraphicEl($,oe),d.add(oe),oe.ignore=le}}).update(function($,te){var ee=p.getItemModel($),le=Xv[g.type](p,$,ee);if(T){var oe=void 0;0===V.length?oe=j(te):((oe=V[te]).useStyle(P.getItemStyle()),"cartesian2d"===g.type&&oe.setShape("r",O),R[$]=oe);var de=Xv[g.type](p,$);ln(oe,{shape:tF(y,de,g)},b,$)}var _e=v.getItemGraphicEl(te);if(p.hasValue($)&&JL[g.type](le)){var xe=!1;S&&(xe=oD[g.type](M,le))&&d.remove(_e),_e?el(_e):_e=sD[g.type](r,p,$,le,y,b,m.model,!!_e,x),U||Zv(_e,p,$,ee,le,r,y,"polar"===g.type),B?_e.attr({shape:le}):w?QL(w,b,_e,le,$,y,!0,U):ln(_e,{shape:le},r,$,null),p.setItemGraphicEl($,_e),_e.ignore=xe,d.add(_e)}else d.remove(_e)}).remove(function($){var te=v.getItemGraphicEl($);te&&Fm(te,r,$)}).execute();var X=this._backgroundGroup||(this._backgroundGroup=new ct);X.removeAll();for(var Z=0;Zp)return!0;p=y}return!1},i.prototype._isOrderDifferentInView=function(r,s){for(var u=s.scale,f=u.getExtent(),d=Math.max(0,f[0]),p=Math.min(f[1],u.getOrdinalMeta().categories.length-1);d<=p;++d)if(r.ordinalNumbers[d]!==u.getRawOrdinalNumber(d))return!0},i.prototype._updateSortWithinSameData=function(r,s,u,f){if(this._isOrderChangedWithinSameData(r,s,u)){var d=this._dataSort(r,u,s);this._isOrderDifferentInView(d,u)&&(this._removeOnRenderedListener(f),f.dispatchAction({type:"changeAxisOrder",componentType:u.dim+"Axis",axisId:u.index,sortInfo:d}))}},i.prototype._dispatchInitSort=function(r,s,u){var f=s.baseAxis,d=this._dataSort(r,f,function(p){return r.get(r.mapDimension(s.otherAxis.dim),p)});u.dispatchAction({type:"changeAxisOrder",componentType:f.dim+"Axis",isInitSort:!0,axisId:f.index,sortInfo:d})},i.prototype.remove=function(r,s){this._clear(this._model),this._removeOnRenderedListener(s)},i.prototype.dispose=function(r,s){this._removeOnRenderedListener(s)},i.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},i.prototype._clear=function(r){var s=this.group,u=this._data;r&&r.isAnimationEnabled()&&u&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],u.eachItemGraphicEl(function(f){Fm(f,r,ht(f).dataIndex)})):s.removeAll(),this._data=null,this._isFirstFrame=!0},i.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},i.type="bar",i}(Vn),oD={cartesian2d:function(i,r){var s=r.width<0?-1:1,u=r.height<0?-1:1;s<0&&(r.x+=r.width,r.width=-r.width),u<0&&(r.y+=r.height,r.height=-r.height);var f=i.x+i.width,d=i.y+i.height,p=Q_(r.x,i.x),v=J_(r.x+r.width,f),g=Q_(r.y,i.y),m=J_(r.y+r.height,d),y=vf?v:p,r.y=b&&g>d?m:g,r.width=y?0:v-p,r.height=b?0:m-g,s<0&&(r.x+=r.width,r.width=-r.width),u<0&&(r.y+=r.height,r.height=-r.height),y||b},polar:function(i,r){var s=r.r0<=r.r?1:-1;if(s<0){var u=r.r;r.r=r.r0,r.r0=u}var f=J_(r.r,i.r),d=Q_(r.r0,i.r0);r.r=f,r.r0=d;var p=f-d<0;return s<0&&(u=r.r,r.r=r.r0,r.r0=u),p}},sD={cartesian2d:function(i,r,s,u,f,d,p,v,g){var m=new sn({shape:Se({},u),z2:1});return m.__dataIndex=s,m.name="item",d&&(m.shape[f?"height":"width"]=0),m},polar:function(i,r,s,u,f,d,p,v,g){var y=!f&&g?Z_:ir,b=new y({shape:tt({clockwise:u.startAngle0?1:-1,p=u.height>0?1:-1;return{x:u.x+d*f/2,y:u.y+p*f/2,width:u.width-d*f,height:u.height-p*f}},polar:function(i,r,s){var u=i.getItemLayout(r);return{cx:u.cx,cy:u.cy,r0:u.r0,r:u.r,startAngle:u.startAngle,endAngle:u.endAngle}}};function ka(o){return function(i){var r=i?"Arc":"Angle";return function(s){switch(s){case"start":case"insideStart":case"end":case"insideEnd":return s+r;default:return s}}}(o)}function Zv(o,i,r,s,u,f,d,p){var v=i.getItemVisual(r,"style");p||o.setShape("r",s.get(["itemStyle","borderRadius"])||0),o.useStyle(v);var g=s.getShallow("cursor");g&&o.attr("cursor",g);var m=p?d?u.r>=u.r0?"endArc":"startArc":u.endAngle>=u.startAngle?"endAngle":"startAngle":d?u.height>=0?"bottom":"top":u.width>=0?"right":"left",y=lr(s);Mi(o,y,{labelFetcher:f,labelDataIndex:r,defaultText:Xf(f.getData(),r),inheritColor:v.fill,defaultOpacity:v.opacity,defaultOutsidePosition:m});var b=o.getTextContent();if(p&&b){var w=s.get(["label","position"]);o.textConfig.inside="middle"===w||null,function(o,i,r,s){if("number"!=typeof s)if(we(i))o.setTextConfig({rotation:0});else{var v,u=o.shape,f=u.clockwise?u.startAngle:u.endAngle,d=u.clockwise?u.endAngle:u.startAngle,p=(f+d)/2,g=r(i);switch(g){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":v=p;break;case"startAngle":case"insideStartAngle":v=f;break;case"endAngle":case"insideEndAngle":v=d;break;default:return void o.setTextConfig({rotation:0})}var m=1.5*Math.PI-v;"middle"===g&&m>Math.PI/2&&m<1.5*Math.PI&&(m-=Math.PI),o.setTextConfig({rotation:m})}else o.setTextConfig({rotation:s})}(o,"outside"===w?m:w,ka(d),s.get(["label","rotate"]))}tu(b,y,f.getRawValue(r),function(M){return Mw(i,M)});var S=s.getModel(["emphasis"]);qn(o,S.get("focus"),S.get("blurScope")),ki(o,s),function(o){return null!=o.startAngle&&null!=o.endAngle&&o.startAngle===o.endAngle}(u)&&(o.style.fill="none",o.style.stroke="none",q(o.states,function(M){M.style&&(M.style.fill=M.style.stroke="none")}))}var eF=function(){},ey=function(o){function i(r){var s=o.call(this,r)||this;return s.type="largeBar",s}return he(i,o),i.prototype.getDefaultShape=function(){return new eF},i.prototype.buildPath=function(r,s){for(var u=s.points,f=this.__startPoint,d=this.__baseDimIdx,p=0;p=y&&x<=b&&(v<=T?m>=v&&m<=T:m>=T&&m<=v))return d[w]}return-1}(this,o.offsetX,o.offsetY);ht(this).dataIndex=r>=0?r:null},30,!1);function tF(o,i,r){if(uc(r,"cartesian2d")){var s=i,u=r.getArea();return{x:o?s.x:u.x,y:o?u.y:s.y,width:o?s.width:u.width,height:o?u.height:s.height}}return{cx:(u=r.getArea()).cx,cy:u.cy,r0:o?u.r0:i.r0,r:o?u.r:i.r,startAngle:o?i.startAngle:0,endAngle:o?i.endAngle:2*Math.PI}}var nF=Pw,Rw=2*Math.PI,rF=Math.PI/180;function cc(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}function Kv(o,i){var r=cc(o,i),s=o.get("center"),u=o.get("radius");we(u)||(u=[0,u]),we(s)||(s=[s,s]);var f=Fe(r.width,i.getWidth()),d=Fe(r.height,i.getHeight()),p=Math.min(f,d);return{cx:Fe(s[0],f)+r.x,cy:Fe(s[1],d)+r.y,r0:Fe(u[0],p/2),r:Fe(u[1],p/2)}}function fD(o,i,r){i.eachSeriesByType(o,function(s){var u=s.getData(),f=u.mapDimension("value"),d=cc(s,r),p=Kv(s,r),v=p.cx,g=p.cy,m=p.r,y=p.r0,b=-s.get("startAngle")*rF,w=s.get("minAngle")*rF,S=0;u.each(f,function(Z){!isNaN(Z)&&S++});var M=u.getSum(f),x=Math.PI/(M||S)*2,T=s.get("clockwise"),P=s.get("roseType"),O=s.get("stillShowZeroSum"),R=u.getDataExtent(f);R[0]=0;var V=Rw,B=0,U=b,j=T?1:-1;if(u.setLayout({viewRect:d,r:m}),u.each(f,function(Z,$){var te;if(isNaN(Z))u.setItemLayout($,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:T,cx:v,cy:g,r0:y,r:P?NaN:m});else{(te="area"!==P?0===M&&O?x:Z*x:Rw/S)r?T:x,V=Math.abs(O.label.y-r);if(V>R.maxY){var B=O.label.x-i-O.len2*u,U=s+O.len,j=Math.abs(B)0){for(var m=d.getItemLayout(0),y=1;isNaN(m&&m.startAngle)&&y0?"right":"left":Je>0?"left":"right"}var Vr,Ol=te.get("rotate");if("number"==typeof Ol)Vr=Ol*(Math.PI/180);else if("center"===ee)Vr=0;else{var _p=Je<0?-ze+Math.PI:-ze;"radial"===Ol||!0===Ol?Vr=_p:"tangential"===Ol&&"outside"!==ee&&"outer"!==ee?(Vr=_p+Math.PI/2)>Math.PI/2&&(Vr-=Math.PI):Vr=0}if(f=!!Vr,X.x=Qt,X.y=zt,X.rotation=Vr,X.setStyle({verticalAlign:"middle"}),Ut){X.setStyle({align:Yt});var x5=X.states.select;x5&&(x5.x+=X.x,x5.y+=X.y)}else{var ZS=X.getBoundingRect().clone();ZS.applyTransform(X.getComputedTransform());var Cq=(X.style.margin||0)+2.1;ZS.y-=Cq/2,ZS.height+=Cq,r.push({label:X,labelLine:Z,position:ee,len:xe,len2:Me,minTurnAngle:_e.get("minTurnAngle"),maxSurfaceAngle:_e.get("maxSurfaceAngle"),surfaceNormal:new Tt(Je,mt),linePoints:xt,textAlign:Yt,labelDistance:le,labelAlignTo:oe,edgeDistance:de,bleedMargin:ge,rect:ZS})}U.setTextConfig({inside:Ut})}}),!f&&o.get("avoidLabelOverlap")&&function(o,i,r,s,u,f,d,p){for(var v=[],g=[],m=Number.MAX_VALUE,y=-Number.MAX_VALUE,b=0;b=f.r0}},i.type="pie",i}(Vn);function po(o,i,r){i=we(i)&&{coordDimensions:i}||Se({encodeDefine:o.getEncode()},i);var s=o.getSource(),u=Fv(s,i).dimensions,f=new Ga(u,o);return f.initData(s,r),f}var mu=function(){function o(i,r){this._getDataWithEncodedVisual=i,this._getRawData=r}return o.prototype.getAllNames=function(){var i=this._getRawData();return i.mapArray(i.getName)},o.prototype.containName=function(i){return this._getRawData().indexOfName(i)>=0},o.prototype.indexOfName=function(i){return this._getDataWithEncodedVisual().indexOfName(i)},o.prototype.getItemVisual=function(i,r){return this._getDataWithEncodedVisual().getItemVisual(i,r)},o}(),$v=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.init=function(r){o.prototype.init.apply(this,arguments),this.legendVisualProvider=new mu(Ye(this.getData,this),Ye(this.getRawData,this)),this._defaultLabelLine(r)},i.prototype.mergeOption=function(){o.prototype.mergeOption.apply(this,arguments)},i.prototype.getInitialData=function(){return po(this,{coordDimensions:["value"],encodeDefaulter:St(lv,this)})},i.prototype.getDataParams=function(r){var s=this.getData(),u=o.prototype.getDataParams.call(this,r),f=[];return s.each(s.mapDimension("value"),function(d){f.push(d)}),u.percent=TO(f,r,s.hostModel.get("percentPrecision")),u.$vars.push("percent"),u},i.prototype._defaultLabelLine=function(r){Nd(r,"labelLine",["show"]);var s=r.labelLine,u=r.emphasis.labelLine;s.show=s.show&&r.label.show,u.show=u.show&&r.emphasis.label.show},i.type="series.pie",i.defaultOption={zlevel:0,z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},i}(vt),sF=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r}return he(i,o),i.prototype.getInitialData=function(r,s){return gl(null,this,{useEncodeDefaulter:!0})},i.prototype.getProgressive=function(){var r=this.option.progressive;return null==r?this.option.large?5e3:this.get("progressive"):r},i.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return null==r?this.option.large?1e4:this.get("progressiveThreshold"):r},i.prototype.brushSelector=function(r,s,u){return u.point(s.getItemLayout(r))},i.type="series.scatter",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},i}(vt),lF=function(){},Fw=function(o){function i(r){return o.call(this,r)||this}return he(i,o),i.prototype.getDefaultShape=function(){return new lF},i.prototype.buildPath=function(r,s){var u=s.points,f=s.size,d=this.symbolProxy,p=d.shape,v=r.getContext?r.getContext():r;if(v&&f[0]<4)this._ctx=v;else{this._ctx=null;for(var m=0;m=0;g--){var m=2*g,y=f[m]-p/2,b=f[m+1]-v/2;if(r>=y&&s>=b&&r<=y+p&&s<=b+v)return g}return-1},i}(Nt),sK=function(){function o(){this.group=new ct}return o.prototype.isPersistent=function(){return!this._incremental},o.prototype.updateData=function(i,r){this.group.removeAll();var s=new Fw({rectHover:!0,cursor:"default"});s.setShape({points:i.getLayout("points")}),this._setCommon(s,i,!1,r),this.group.add(s),this._incremental=null},o.prototype.updateLayout=function(i){if(!this._incremental){var r=i.getLayout("points");this.group.eachChild(function(s){null!=s.startIndex&&(r=new Float32Array(r.buffer,4*s.startIndex*2,2*(s.endIndex-s.startIndex))),s.setShape("points",r)})}},o.prototype.incrementalPrepareUpdate=function(i){this.group.removeAll(),this._clearIncremental(),i.count()>2e6?(this._incremental||(this._incremental=new Tv({silent:!0})),this.group.add(this._incremental)):this._incremental=null},o.prototype.incrementalUpdate=function(i,r,s){var u;this._incremental?(u=new Fw,this._incremental.addDisplayable(u,!0)):((u=new Fw({rectHover:!0,cursor:"default",startIndex:i.start,endIndex:i.end})).incremental=!0,this.group.add(u)),u.setShape({points:r.getLayout("points")}),this._setCommon(u,r,!!this._incremental,s)},o.prototype._setCommon=function(i,r,s,u){var f=r.hostModel;u=u||{};var d=r.getVisual("symbolSize");i.setShape("size",d instanceof Array?d:[d,d]),i.softClipShape=u.clipShape||null,i.symbolProxy=Ir(r.getVisual("symbol"),0,0,0,0),i.setColor=i.symbolProxy.setColor;var p=i.shape.size[0]<4;i.useStyle(f.getModel("itemStyle").getItemStyle(p?["color","shadowBlur","shadowColor"]:["color"]));var v=r.getVisual("style"),g=v&&v.fill;if(g&&i.setColor(g),!s){var m=ht(i);m.seriesIndex=f.seriesIndex,i.on("mousemove",function(y){m.dataIndex=null;var b=i.findDataIndex(y.offsetX,y.offsetY);b>=0&&(m.dataIndex=b+(i.startIndex||0))})}},o.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},o.prototype._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()},o}(),uK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData();this._updateSymbolDraw(f,r).updateData(f,{clipShape:this._getClipShape(r)}),this._finished=!0},i.prototype.incrementalPrepareRender=function(r,s,u){var f=r.getData();this._updateSymbolDraw(f,r).incrementalPrepareUpdate(f),this._finished=!1},i.prototype.incrementalRender=function(r,s,u){this._symbolDraw.incrementalUpdate(r,s.getData(),{clipShape:this._getClipShape(s)}),this._finished=r.end===s.getData().count()},i.prototype.updateTransform=function(r,s,u){var f=r.getData();if(this.group.dirty(),!this._finished||f.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var d=Dw("").reset(r,s,u);d.progress&&d.progress({start:0,end:f.count(),count:f.count()},f),this._symbolDraw.updateLayout(f)},i.prototype._getClipShape=function(r){var s=r.coordinateSystem,u=s&&s.getArea&&s.getArea();return r.get("clip",!0)?u:null},i.prototype._updateSymbolDraw=function(r,s){var u=this._symbolDraw,d=s.pipelineContext.large;return(!u||d!==this._isLargeDraw)&&(u&&u.remove(),u=this._symbolDraw=d?new sK:new Y_,this._isLargeDraw=d,this.group.removeAll()),this.group.add(u.group),u},i.prototype.remove=function(r,s){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},i.prototype.dispose=function(){},i.type="scatter",i}(Vn),WG=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.type="grid",i.dependencies=["xAxis","yAxis"],i.layoutMode="box",i.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},i}(qt),vD=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ai).models[0]},i.type="cartesian2dAxis",i}(qt);qr(vD,zv);var YG={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},cK=He({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},YG),uF=He({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},YG),cF={category:cK,value:uF,time:He({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},uF),log:tt({scale:!0,logBase:10},uF)},hK={value:1,category:1,time:1,log:1};function ry(o,i,r,s){q(hK,function(u,f){var d=He(He({},cF[f],!0),s,!0),p=function(v){function g(){var m=null!==v&&v.apply(this,arguments)||this;return m.type=i+"Axis."+f,m}return he(g,v),g.prototype.mergeDefaultAndTheme=function(m,y){var b=iv(this),w=b?av(m):{};He(m,y.getTheme().get(f+"Axis")),He(m,this.getDefaultOption()),m.type=qG(m),b&&kf(m,w,b)},g.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Gf.createByAxisModel(this))},g.prototype.getCategories=function(m){var y=this.option;if("category"===y.type)return m?y.data:this.__ordinalMeta.categories},g.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},g.type=i+"Axis."+f,g.defaultOption=d,g}(r);o.registerComponentModel(p)}),o.registerSubTypeDefaulter(i+"Axis",qG)}function qG(o){return o.type||(o.data?"category":"value")}var pK=function(){function o(i){this.type="cartesian",this._dimList=[],this._axes={},this.name=i||""}return o.prototype.getAxis=function(i){return this._axes[i]},o.prototype.getAxes=function(){return Te(this._dimList,function(i){return this._axes[i]},this)},o.prototype.getAxesByScale=function(i){return i=i.toLowerCase(),Yn(this.getAxes(),function(r){return r.scale.type===i})},o.prototype.addAxis=function(i){var r=i.dim;this._axes[r]=i,this._dimList.push(r)},o}(),fF=["x","y"];function ZG(o){return"interval"===o.type||"time"===o.type}var gK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=fF,r}return he(i,o),i.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,s=this.getAxis("y").scale;if(ZG(r)&&ZG(s)){var u=r.getExtent(),f=s.getExtent(),d=this.dataToPoint([u[0],f[0]]),p=this.dataToPoint([u[1],f[1]]),v=u[1]-u[0],g=f[1]-f[0];if(v&&g){var m=(p[0]-d[0])/v,y=(p[1]-d[1])/g,S=this._transform=[m,0,0,y,d[0]-u[0]*m,d[1]-f[0]*y];this._invTransform=Gl([],S)}}},i.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},i.prototype.containPoint=function(r){var s=this.getAxis("x"),u=this.getAxis("y");return s.contain(s.toLocalCoord(r[0]))&&u.contain(u.toLocalCoord(r[1]))},i.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},i.prototype.dataToPoint=function(r,s,u){u=u||[];var f=r[0],d=r[1];if(this._transform&&null!=f&&isFinite(f)&&null!=d&&isFinite(d))return _i(u,r,this._transform);var p=this.getAxis("x"),v=this.getAxis("y");return u[0]=p.toGlobalCoord(p.dataToCoord(f,s)),u[1]=v.toGlobalCoord(v.dataToCoord(d,s)),u},i.prototype.clampData=function(r,s){var u=this.getAxis("x").scale,f=this.getAxis("y").scale,d=u.getExtent(),p=f.getExtent(),v=u.parse(r[0]),g=f.parse(r[1]);return(s=s||[])[0]=Math.min(Math.max(Math.min(d[0],d[1]),v),Math.max(d[0],d[1])),s[1]=Math.min(Math.max(Math.min(p[0],p[1]),g),Math.max(p[0],p[1])),s},i.prototype.pointToData=function(r,s){var u=[];if(this._invTransform)return _i(u,r,this._invTransform);var f=this.getAxis("x"),d=this.getAxis("y");return u[0]=f.coordToData(f.toLocalCoord(r[0]),s),u[1]=d.coordToData(d.toLocalCoord(r[1]),s),u},i.prototype.getOtherAxis=function(r){return this.getAxis("x"===r.dim?"y":"x")},i.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),s=this.getAxis("y").getGlobalExtent(),u=Math.min(r[0],r[1]),f=Math.min(s[0],s[1]),d=Math.max(r[0],r[1])-u,p=Math.max(s[0],s[1])-f;return new Ft(u,f,d,p)},i}(pK),_u=function(o){function i(r,s,u,f,d){var p=o.call(this,r,s,u)||this;return p.index=0,p.type=f||"value",p.position=d||"bottom",p}return he(i,o),i.prototype.isHorizontal=function(){var r=this.position;return"top"===r||"bottom"===r},i.prototype.getGlobalExtent=function(r){var s=this.getExtent();return s[0]=this.toGlobalCoord(s[0]),s[1]=this.toGlobalCoord(s[1]),r&&s[0]>s[1]&&s.reverse(),s},i.prototype.pointToData=function(r,s){return this.coordToData(this.toLocalCoord(r["x"===this.dim?0:1]),s)},i.prototype.setCategorySortInfo=function(r){if("category"!==this.type)return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},i}(_l);function dF(o,i,r){r=r||{};var s=o.coordinateSystem,u=i.axis,f={},d=u.getAxesOnZeroOf()[0],p=u.position,v=d?"onZero":p,g=u.dim,m=s.getRect(),y=[m.x,m.x+m.width,m.y,m.y+m.height],b={left:0,right:1,top:0,bottom:1,onZero:2},w=i.get("offset")||0,S="x"===g?[y[2]-w,y[3]+w]:[y[0]-w,y[1]+w];if(d){var M=d.toGlobalCoord(d.dataToCoord(0));S[b.onZero]=Math.max(Math.min(M,S[1]),S[0])}f.position=["y"===g?S[b[v]]:y[0],"x"===g?S[b[v]]:y[3]],f.rotation=Math.PI/2*("x"===g?0:1),f.labelDirection=f.tickDirection=f.nameDirection={top:-1,bottom:1,left:-1,right:1}[p],f.labelOffset=d?S[b[p]]-S[b.onZero]:0,i.get(["axisTick","inside"])&&(f.tickDirection=-f.tickDirection),ni(r.labelInside,i.get(["axisLabel","inside"]))&&(f.labelDirection=-f.labelDirection);var T=i.get(["axisLabel","rotate"]);return f.labelRotate="top"===v?-T:T,f.z2=1,f}function hF(o){return"cartesian2d"===o.get("coordinateSystem")}function pF(o){var i={xAxisModel:null,yAxisModel:null};return q(i,function(r,s){var u=s.replace(/Model$/,""),f=o.getReferringComponents(u,ai).models[0];i[s]=f}),i}function fc(o,i){return o.getCoordSysModel()===i}function vF(o,i,r,s){r.getAxesOnZeroOf=function(){return f?[f]:[]};var f,u=o[i],d=r.model,p=d.get(["axisLine","onZero"]),v=d.get(["axisLine","onZeroAxisIndex"]);if(p){if(null!=v)gF(u[v])&&(f=u[v]);else for(var g in u)if(u.hasOwnProperty(g)&&gF(u[g])&&!s[m(u[g])]){f=u[g];break}f&&(s[m(f)]=!0)}function m(y){return y.dim+"_"+y.index}}function gF(o){return o&&"category"!==o.type&&"time"!==o.type&&function(o){var i=o.scale.getExtent(),r=i[0],s=i[1];return!(r>0&&s>0||r<0&&s<0)}(o)}var _F=function(){function o(i,r,s){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=fF,this._initCartesian(i,r,s),this.model=i}return o.prototype.getRect=function(){return this._rect},o.prototype.update=function(i,r){var s=this._axesMap;this._updateScale(i,this.model),q(s.x,function(f){Wf(f.scale,f.model)}),q(s.y,function(f){Wf(f.scale,f.model)});var u={};q(s.x,function(f){vF(s,"y",f,u)}),q(s.y,function(f){vF(s,"x",f,u)}),this.resize(this.model,r)},o.prototype.resize=function(i,r,s){var u=i.getBoxLayoutParams(),f=!s&&i.get("containLabel"),d=li(u,{width:r.getWidth(),height:r.getHeight()});this._rect=d;var p=this._axesList;function v(){q(p,function(g){var m=g.isHorizontal(),y=m?[0,d.width]:[0,d.height],b=g.inverse?1:0;g.setExtent(y[b],y[1-b]),function(o,i){var r=o.getExtent(),s=r[0]+r[1];o.toGlobalCoord="x"===o.dim?function(u){return u+i}:function(u){return s-u+i},o.toLocalCoord="x"===o.dim?function(u){return u-i}:function(u){return s-u+i}}(g,m?d.x:d.y)})}v(),f&&(q(p,function(g){if(!g.model.get(["axisLabel","inside"])){var m=function(o){var r=o.scale;if(o.model.get(["axisLabel","show"])&&!r.isBlank()){var s,u,f=r.getExtent();u=r instanceof TT?r.count():(s=r.getTicks()).length;var v,d=o.getLabelModel(),p=B_(o),g=1;u>40&&(g=Math.ceil(u/40));for(var m=0;m0?"top":"bottom",f="center"):hm(u-Qf)?(d=s>0?"bottom":"top",f="center"):(d="middle",f=u>0&&u0?"right":"left":s>0?"left":"right"),{rotation:u,textAlign:f,textVerticalAlign:d}},o.makeAxisEventDataBase=function(i){var r={componentType:i.mainType,componentIndex:i.componentIndex};return r[i.mainType+"Index"]=i.componentIndex,r},o.isLabelSilent=function(i){var r=i.get("tooltip");return i.get("silent")||!(i.get("triggerEvent")||r&&r.show)},o}(),gD={axisLine:function(i,r,s,u){var f=r.get(["axisLine","show"]);if("auto"===f&&i.handleAutoShown&&(f=i.handleAutoShown("axisLine")),f){var d=r.axis.getExtent(),p=u.transform,v=[d[0],0],g=[d[1],0];p&&(_i(v,v,p),_i(g,g,p));var m=Se({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),y=new Ti({subPixelOptimize:!0,shape:{x1:v[0],y1:v[1],x2:g[0],y2:g[1]},style:m,strokeContainThreshold:i.strokeContainThreshold||5,silent:!0,z2:1});y.anid="line",s.add(y);var b=r.get(["axisLine","symbol"]);if(null!=b){var w=r.get(["axisLine","symbolSize"]);"string"==typeof b&&(b=[b,b]),("string"==typeof w||"number"==typeof w)&&(w=[w,w]);var S=Ah(r.get(["axisLine","symbolOffset"])||0,w),M=w[0],x=w[1];q([{rotate:i.rotation+Math.PI/2,offset:S[0],r:0},{rotate:i.rotation-Math.PI/2,offset:S[1],r:Math.sqrt((v[0]-g[0])*(v[0]-g[0])+(v[1]-g[1])*(v[1]-g[1]))}],function(T,P){if("none"!==b[P]&&null!=b[P]){var O=Ir(b[P],-M/2,-x/2,M,x,m.stroke,!0),R=T.r+T.offset;O.attr({rotation:T.rotate,x:v[0]+R*Math.cos(i.rotation),y:v[1]-R*Math.sin(i.rotation),silent:!0,z2:11}),s.add(O)}})}}},axisTickLabel:function(i,r,s,u){var f=function(o,i,r,s){var u=r.axis,f=r.getModel("axisTick"),d=f.get("show");if("auto"===d&&s.handleAutoShown&&(d=s.handleAutoShown("axisTick")),d&&!u.scale.isBlank()){for(var p=f.getModel("lineStyle"),v=s.tickDirection*f.get("length"),m=yF(u.getTicksCoords(),i.transform,v,tt(p.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),y=0;ym[1]?-1:1,b=["start"===d?m[0]-y*g:"end"===d?m[1]+y*g:(m[0]+m[1])/2,mD(d)?i.labelOffset+p*g:0],S=r.get("nameRotate");null!=S&&(S=S*Qf/180),mD(d)?w=dc.innerTextLayout(i.rotation,null!=S?S:i.rotation,p):(w=function(o,i,r,s){var f,d,u=Ld(r-o),p=s[0]>s[1],v="start"===i&&!p||"start"!==i&&p;return hm(u-Qf/2)?(d=v?"bottom":"top",f="center"):hm(u-1.5*Qf)?(d=v?"top":"bottom",f="center"):(d="middle",f=u<1.5*Qf&&u>Qf/2?v?"left":"right":v?"right":"left"),{rotation:u,textAlign:f,textVerticalAlign:d}}(i.rotation,d,S||0,m),null!=(M=i.axisNameAvailableWidth)&&(M=Math.abs(M/Math.sin(w.rotation)),!isFinite(M)&&(M=null)));var x=v.getFont(),T=r.get("nameTruncate",!0)||{},P=T.ellipsis,O=ni(i.nameTruncateMaxWidth,T.maxWidth,M),R=new fn({x:b[0],y:b[1],rotation:w.rotation,silent:dc.isLabelSilent(r),style:Or(v,{text:f,font:x,overflow:"truncate",width:O,ellipsis:P,fill:v.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:v.get("align")||w.textAlign,verticalAlign:v.get("verticalAlign")||w.textVerticalAlign}),z2:1});if(Av({el:R,componentModel:r,itemName:f}),R.__fullText=f,R.anid="name",r.get("triggerEvent")){var V=dc.makeAxisEventDataBase(r);V.targetType="axisName",V.name=f,ht(R).eventData=V}u.add(R),R.updateTransform(),s.add(R),R.decomposeTransform()}}};function Ms(o){o&&(o.ignore=!0)}function Vw(o,i){var r=o&&o.getBoundingRect().clone(),s=i&&i.getBoundingRect().clone();if(r&&s){var u=Wu([]);return Od(u,u,-o.rotation),r.applyTransform(Jo([],u,o.getLocalTransform())),s.applyTransform(Jo([],u,i.getLocalTransform())),r.intersect(s)}}function mD(o){return"middle"===o||"center"===o}function yF(o,i,r,s,u){for(var f=[],d=[],p=[],v=0;v=0||o===i}function vi(o){var i=CF(o);if(i){var r=i.axisPointerModel,s=i.axis.scale,u=r.option,f=r.get("status"),d=r.get("value");null!=d&&(d=s.parse(d));var p=yD(r);null==f&&(u.status=p?"show":"hide");var v=s.getExtent().slice();v[0]>v[1]&&v.reverse(),(null==d||d>v[1])&&(d=v[1]),d0&&!S.min?S.min=0:null!=S.min&&S.min<0&&!S.max&&(S.max=0);var M=v;null!=S.color&&(M=tt({color:S.color},v));var x=He(rt(S),{boundaryGap:r,splitNumber:s,scale:u,axisLine:f,axisTick:d,axisLabel:p,name:S.text,nameLocation:"end",nameGap:y,nameTextStyle:M,triggerEvent:b},!1);if(g||(x.name=""),"string"==typeof m){var T=x.name;x.name=m.replace("{value}",null!=T?T:"")}else"function"==typeof m&&(x.name=m(x.name,x));var P=new Nn(x,null,this.ecModel);return qr(P,zv.prototype),P.mainType="radar",P.componentIndex=this.componentIndex,P},this);this._indicatorModels=w},i.prototype.getIndicatorModels=function(){return this._indicatorModels},i.type="radar",i.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:He({lineStyle:{color:"#bbb"}},uy.axisLine),axisLabel:wl(uy.axisLabel,!1),axisTick:wl(uy.axisTick,!1),splitLine:wl(uy.splitLine,!0),splitArea:wl(uy.splitArea,!0),indicator:[]},i}(qt),s6=["axisLine","axisTickLabel","axisName"],pc=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){this.group.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},i.prototype._buildAxes=function(r){var s=r.coordinateSystem;q(Te(s.getIndicatorAxes(),function(d){return new yu(d.model,{position:[s.cx,s.cy],rotation:d.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(d){q(s6,d.add,d),this.group.add(d.getGroup())},this)},i.prototype._buildSplitLineAndArea=function(r){var s=r.coordinateSystem,u=s.getIndicatorAxes();if(u.length){var f=r.get("shape"),d=r.getModel("splitLine"),p=r.getModel("splitArea"),v=d.getModel("lineStyle"),g=p.getModel("areaStyle"),m=d.get("show"),y=p.get("show"),b=v.get("color"),w=g.get("color"),S=we(b)?b:[b],M=we(w)?w:[w],x=[],T=[];if("circle"===f)for(var O=u[0].getTicksCoords(),R=s.cx,V=s.cy,B=0;Bg[0]&&isFinite(x)&&isFinite(g[0]))}else y.getTicks().length-1>f&&(S=d(S)),x=hi((M=Math.ceil(g[1]/S)*S)-S*f),y.setExtent(x,M),y.setInterval(S)})},o.prototype.convertToPixel=function(i,r,s){return console.warn("Not implemented."),null},o.prototype.convertFromPixel=function(i,r,s){return console.warn("Not implemented."),null},o.prototype.containPoint=function(i){return console.warn("Not implemented."),!1},o.create=function(i,r){var s=[];return i.eachComponent("radar",function(u){var f=new o(u,i,r);s.push(f),u.coordinateSystem=f}),i.eachSeriesByType("radar",function(u){"radar"===u.get("coordinateSystem")&&(u.coordinateSystem=s[u.get("radarIndex")||0])}),s},o.dimensions=[],o}();function u6(o){o.registerCoordinateSystem("radar",gi),o.registerComponentModel(Jn),o.registerComponentView(pc),o.registerVisual({seriesType:"radar",reset:function(r){var s=r.getData();s.each(function(u){s.setItemVisual(u,"legendIcon","roundRect")}),s.setVisual("legendIcon","roundRect")}})}var MF="\0_ec_interaction_mutex";function cy(o,i){return!!CD(o)[i]}function CD(o){return o[MF]||(o[MF]={})}function fy(o,i,r,s,u){o.pointerChecker&&o.pointerChecker(s,u.originX,u.originY)&&(Vl(s.event),dy(o,i,r,s,u))}function dy(o,i,r,s,u){u.isAvailableBehavior=Ye(tg,null,r,s),o.trigger(i,u)}function tg(o,i,r){var s=r[o];return!o||s&&(!yt(s)||i.event[s+"Key"])}pl({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var hy=function(o){function i(r){var s=o.call(this)||this;s._zr=r;var u=Ye(s._mousedownHandler,s),f=Ye(s._mousemoveHandler,s),d=Ye(s._mouseupHandler,s),p=Ye(s._mousewheelHandler,s),v=Ye(s._pinchHandler,s);return s.enable=function(g,m){this.disable(),this._opt=tt(rt(m)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==g&&(g=!0),(!0===g||"move"===g||"pan"===g)&&(r.on("mousedown",u),r.on("mousemove",f),r.on("mouseup",d)),(!0===g||"scale"===g||"zoom"===g)&&(r.on("mousewheel",p),r.on("pinch",v))},s.disable=function(){r.off("mousedown",u),r.off("mousemove",f),r.off("mouseup",d),r.off("mousewheel",p),r.off("pinch",v)},s}return he(i,o),i.prototype.isDragging=function(){return this._dragging},i.prototype.isPinching=function(){return this._pinching},i.prototype.setPointerChecker=function(r){this.pointerChecker=r},i.prototype.dispose=function(){this.disable()},i.prototype._mousedownHandler=function(r){if(!(xk(r)||r.target&&r.target.draggable)){var s=r.offsetX,u=r.offsetY;this.pointerChecker&&this.pointerChecker(r,s,u)&&(this._x=s,this._y=u,this._dragging=!0)}},i.prototype._mousemoveHandler=function(r){if(this._dragging&&tg("moveOnMouseMove",r,this._opt)&&"pinch"!==r.gestureEvent&&!cy(this._zr,"globalPan")){var s=r.offsetX,u=r.offsetY,f=this._x,d=this._y,p=s-f,v=u-d;this._x=s,this._y=u,this._opt.preventDefaultMouseMove&&Vl(r.event),dy(this,"pan","moveOnMouseMove",r,{dx:p,dy:v,oldX:f,oldY:d,newX:s,newY:u,isAvailableBehavior:null})}},i.prototype._mouseupHandler=function(r){xk(r)||(this._dragging=!1)},i.prototype._mousewheelHandler=function(r){var s=tg("zoomOnMouseWheel",r,this._opt),u=tg("moveOnMouseWheel",r,this._opt),f=r.wheelDelta,d=Math.abs(f),p=r.offsetX,v=r.offsetY;if(0!==f&&(s||u)){if(s){var g=d>3?1.4:d>1?1.2:1.1;fy(this,"zoom","zoomOnMouseWheel",r,{scale:f>0?g:1/g,originX:p,originY:v,isAvailableBehavior:null})}if(u){var y=Math.abs(f);fy(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:(f>0?1:-1)*(y>3?.4:y>1?.15:.05),originX:p,originY:v,isAvailableBehavior:null})}}},i.prototype._pinchHandler=function(r){cy(this._zr,"globalPan")||fy(this,"zoom",null,r,{scale:r.pinchScale>1?1.1:1/1.1,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})},i}(Bs);function Ww(o,i,r){var s=o.target;s.x+=i,s.y+=r,s.dirty()}function wD(o,i,r,s){var u=o.target,f=o.zoomLimit,d=o.zoom=o.zoom||1;if(d*=i,f){var p=f.min||0;d=Math.max(Math.min(f.max||1/0,d),p)}var g=d/o.zoom;o.zoom=d,u.x-=(r-u.x)*(g-1),u.y-=(s-u.y)*(g-1),u.scaleX*=g,u.scaleY*=g,u.dirty()}var f6={axisPointer:1,tooltip:1,brush:1};function Yw(o,i,r){var s=i.getComponentByElement(o.topTarget),u=s&&s.coordinateSystem;return s&&s!==r&&!f6.hasOwnProperty(s.mainType)&&u&&u.model!==r}var SD=["rect","circle","line","ellipse","polygon","polyline","path"],TF=et(SD),d6=et(SD.concat(["g"])),DF=et(SD.concat(["g"])),py=pn();function Jf(o){var i=o.getItemStyle(),r=o.get("areaColor");return null!=r&&(i.fill=r),i}function AF(o,i,r,s){var u=s.getModel("itemStyle"),f=s.getModel(["emphasis","itemStyle"]),d=s.getModel(["blur","itemStyle"]),p=s.getModel(["select","itemStyle"]),v=Jf(u),g=Jf(f),m=Jf(p),y=Jf(d),b=o.data;if(b){var w=b.getItemVisual(r,"style"),S=b.getItemVisual(r,"decal");o.isVisualEncodedByVisualMap&&w.fill&&(v.fill=w.fill),S&&(v.decal=lu(S,o.api))}i.setStyle(v),i.style.strokeNoScale=!0,i.ensureState("emphasis").style=g,i.ensureState("select").style=m,i.ensureState("blur").style=y,yf(i)}function qw(o,i,r,s,u,f,d){var p=o.data,v=o.isGeo,g=p&&isNaN(p.get(p.mapDimension("value"),f)),m=p&&p.getItemLayout(f);if(v||g||m&&m.showLabel){var y=v?r:f,b=void 0;(!p||f>=0)&&(b=u);var w=d?{normal:{align:"center",verticalAlign:"middle"}}:null;Mi(i,lr(s),{labelFetcher:b,labelDataIndex:y,defaultText:r},w);var S=i.getTextContent();if(S&&(py(S).ignore=S.ignore,i.textConfig&&d)){var M=i.getBoundingRect().clone();i.textConfig.layoutRect=M,i.textConfig.position=[(d[0]-M.x)/M.width*100+"%",(d[1]-M.y)/M.height*100+"%"]}i.disableLabelAnimation=!0}else i.removeTextContent(),i.removeTextConfig(),i.disableLabelAnimation=null}function kD(o,i,r,s,u,f){o.data?o.data.setItemGraphicEl(f,i):ht(i).eventData={componentType:"geo",componentIndex:u.componentIndex,geoIndex:u.componentIndex,name:r,region:s&&s.option||{}}}function EF(o,i,r,s,u){o.data||Av({el:i,componentModel:u,itemName:r,itemTooltipOption:s.get("tooltip")})}function Xw(o,i,r,s,u){i.highDownSilentOnTouch=!!u.get("selectedMode");var f=s.getModel("emphasis"),d=f.get("focus");return qn(i,d,f.get("blurScope")),o.isGeo&&function(o,i,r){var s=ht(o);s.componentMainType=i.mainType,s.componentIndex=i.componentIndex,s.componentHighDownName=r}(i,u,r),d}var PF=function(){function o(i){var r=new ct;this.uid=Bm("ec_map_draw"),this._controller=new hy(i.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new ct),r.add(this._svgGroup=new ct)}return o.prototype.draw=function(i,r,s,u,f){var d="geo"===i.mainType,p=i.getData&&i.getData();d&&r.eachComponent({mainType:"series",subType:"map"},function(T){!p&&T.getHostGeoModel()===i&&(p=T.getData())});var v=i.coordinateSystem,g=this._regionsGroup,m=this.group,y=v.getTransformInfo(),b=y.raw,w=y.roam;!g.childAt(0)||f?(m.x=w.x,m.y=w.y,m.scaleX=w.scaleX,m.scaleY=w.scaleY,m.dirty()):ln(m,w,i);var M=p&&p.getVisual("visualMeta")&&p.getVisual("visualMeta").length>0,x={api:s,geo:v,mapOrGeoModel:i,data:p,isVisualEncodedByVisualMap:M,isGeo:d,transformInfoRaw:b};"geoJSON"===v.resourceType?this._buildGeoJSON(x):"geoSVG"===v.resourceType&&this._buildSVG(x),this._updateController(i,r,s),this._updateMapSelectHandler(i,g,s,u)},o.prototype._buildGeoJSON=function(i){var r=this._regionsGroupByName=et(),s=et(),u=this._regionsGroup,f=i.transformInfoRaw,d=i.mapOrGeoModel,p=i.data,v=function(m){return[m[0]*f.scaleX+f.x,m[1]*f.scaleY+f.y]};u.removeAll(),q(i.geo.regions,function(g){var m=g.name,y=r.get(m),b=s.get(m)||{},w=b.dataIdx,S=b.regionModel;y||(y=r.set(m,new ct),u.add(y),w=p?p.indexOfName(m):null,S=i.isGeo?d.getRegionModel(m):p?p.getItemModel(w):null,s.set(m,{dataIdx:w,regionModel:S}));var M=new Nx({segmentIgnoreThreshold:1,shape:{paths:[]}});y.add(M),q(g.geometries,function(T){if("polygon"===T.type){for(var P=[],O=0;O-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),u},i.type="series.map",i.dependencies=["geo"],i.layoutMode="box",i.defaultOption={zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},i}(vt);function _6(o){var i={};o.eachSeriesByType("map",function(r){var s=r.getHostGeoModel(),u=s?"o"+s.id:"i"+r.getMapType();(i[u]=i[u]||[]).push(r)}),q(i,function(r,s){for(var u=function(o,i){var r={};return q(o,function(s){s.each(s.mapDimension("value"),function(u,f){var d="ec-"+s.getName(f);r[d]=r[d]||[],isNaN(u)||r[d].push(u)})}),o[0].map(o[0].mapDimension("value"),function(s,u){for(var f="ec-"+o[0].getName(u),d=0,p=1/0,v=-1/0,g=r[f].length,m=0;m1?(S.width=w,S.height=w/m):(S.height=w,S.width=w*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var M=o.getBoxLayoutParams();M.aspect=m,S=li(M,{width:v,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(o.get("center")),this.setZoom(o.get("zoom"))}var DD=new(function(){function o(){this.dimensions=Ts}return o.prototype.create=function(i,r){var s=[];i.eachComponent("geo",function(f,d){var p=f.get("map"),v=new er(p+d,p,{nameMap:f.get("nameMap"),nameProperty:f.get("nameProperty"),aspectScale:f.get("aspectScale")});v.zoomLimit=f.get("scaleLimit"),s.push(v),f.coordinateSystem=v,v.model=f,v.resize=TD,v.resize(f,r)}),i.eachSeries(function(f){if("geo"===f.get("coordinateSystem")){var p=f.get("geoIndex")||0;f.coordinateSystem=s[p]}});var u={};return i.eachSeriesByType("map",function(f){if(!f.getHostGeoModel()){var d=f.getMapType();u[d]=u[d]||[],u[d].push(f)}}),q(u,function(f,d){var p=Te(f,function(g){return g.get("nameMap")}),v=new er(d,d,{nameMap:Lb(p),nameProperty:f[0].get("nameProperty"),aspectScale:f[0].get("aspectScale")});v.zoomLimit=ni.apply(null,Te(f,function(g){return g.get("scaleLimit")})),s.push(v),v.resize=TD,v.resize(f[0],r),q(f,function(g){g.coordinateSystem=v,function(o,i){q(i.get("geoCoord"),function(r,s){o.addGeoCoord(s,r)})}(v,g)})}),s},o.prototype.getFilledRegions=function(i,r,s,u){for(var f=(i||[]).slice(),d=et(),p=0;p=0;){var f=i[r];f.hierNode.prelim+=s,f.hierNode.modifier+=s,s+=f.hierNode.shift+(u+=f.hierNode.change)}}(o);var f=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;u?(o.hierNode.prelim=u.hierNode.prelim+i(o,u),o.hierNode.modifier=o.hierNode.prelim-f):o.hierNode.prelim=f}else u&&(o.hierNode.prelim=u.hierNode.prelim+i(o,u));o.parentNode.hierNode.defaultAncestor=function(o,i,r,s){if(i){for(var u=o,f=o,d=f.parentNode.children[0],p=i,v=u.hierNode.modifier,g=f.hierNode.modifier,m=d.hierNode.modifier,y=p.hierNode.modifier;p=Zw(p),f=OD(f),p&&f;){u=Zw(u),d=OD(d),u.hierNode.ancestor=o;var b=p.hierNode.prelim+y-f.hierNode.prelim-g+s(p,f);b>0&&(T6(x6(p,o,r),o,b),g+=b,v+=b),y+=p.hierNode.modifier,g+=f.hierNode.modifier,v+=u.hierNode.modifier,m+=d.hierNode.modifier}p&&!Zw(u)&&(u.hierNode.thread=p,u.hierNode.modifier+=y-v),f&&!OD(d)&&(d.hierNode.thread=f,d.hierNode.modifier+=g-m,r=o)}return r}(o,u,o.parentNode.hierNode.defaultAncestor||s[0],i)}function wK(o){o.setLayout({x:o.hierNode.prelim+o.parentNode.hierNode.modifier},!0),o.hierNode.modifier+=o.parentNode.hierNode.modifier}function Ds(o){return arguments.length?o:D6}function my(o,i){return o-=Math.PI/2,{x:i*Math.cos(o),y:i*Math.sin(o)}}function Zw(o){var i=o.children;return i.length&&o.isExpand?i[i.length-1]:o.hierNode.thread}function OD(o){var i=o.children;return i.length&&o.isExpand?i[0]:o.hierNode.thread}function x6(o,i,r){return o.hierNode.ancestor.parentNode===i.parentNode?o.hierNode.ancestor:r}function T6(o,i,r){var s=r/(i.hierNode.i-o.hierNode.i);i.hierNode.change-=s,i.hierNode.shift+=r,i.hierNode.modifier+=r,i.hierNode.prelim+=r,o.hierNode.change+=s}function D6(o,i){return o.parentNode===i.parentNode?1:2}var A6=function(){this.parentPoint=[],this.childPoints=[]},E6=function(o){function i(r){return o.call(this,r)||this}return he(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new A6},i.prototype.buildPath=function(r,s){var u=s.childPoints,f=u.length,d=s.parentPoint,p=u[0],v=u[f-1];if(1===f)return r.moveTo(d[0],d[1]),void r.lineTo(p[0],p[1]);var g=s.orient,m="TB"===g||"BT"===g?0:1,y=1-m,b=Fe(s.forkPosition,1),w=[];w[m]=d[m],w[y]=d[y]+(v[y]-d[y])*b,r.moveTo(d[0],d[1]),r.lineTo(w[0],w[1]),r.moveTo(p[0],p[1]),w[m]=p[m],r.lineTo(w[0],w[1]),w[m]=v[m],r.lineTo(w[0],w[1]),r.lineTo(v[0],v[1]);for(var S=1;SP.x)||(R-=Math.PI);var U=V?"left":"right",j=p.getModel("label"),X=j.get("rotate"),Z=X*(Math.PI/180),$=x.getTextContent();$&&(x.setTextConfig({position:j.get("position")||U,rotation:null==X?-R:Z,origin:"center"}),$.setStyle("verticalAlign","middle"))}var te=p.get(["emphasis","focus"]),ee="ancestor"===te?d.getAncestorsIndices():"descendant"===te?d.getDescendantIndices():null;ee&&(ht(r).focus=ee),function(o,i,r,s,u,f,d,p){var v=i.getModel(),g=o.get("edgeShape"),m=o.get("layout"),y=o.getOrient(),b=o.get(["lineStyle","curveness"]),w=o.get("edgeForkPosition"),S=v.getModel("lineStyle").getLineStyle(),M=s.__edge;if("curve"===g)i.parentNode&&i.parentNode!==r&&(M||(M=s.__edge=new c_({shape:LD(m,y,b,u,u)})),ln(M,{shape:LD(m,y,b,f,d)},o));else if("polyline"===g&&"orthogonal"===m&&i!==r&&i.children&&0!==i.children.length&&!0===i.isExpand){for(var x=i.children,T=[],P=0;Pr&&(r=u.height)}this.height=r+1},o.prototype.getNodeById=function(i){if(this.getId()===i)return this;for(var r=0,s=this.children,u=s.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,i,r)},o.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},o.prototype.getModel=function(i){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(i)},o.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},o.prototype.setVisual=function(i,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,i,r)},o.prototype.getVisual=function(i){return this.hostTree.data.getItemVisual(this.dataIndex,i)},o.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},o.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},o.prototype.getChildIndex=function(){if(this.parentNode){for(var i=this.parentNode.children,r=0;r=0){var s=r.getData().tree.root,u=o.targetNode;if("string"==typeof u&&(u=s.getNodeById(u)),u&&s.contains(u))return{node:u};var f=o.targetNodeId;if(null!=f&&(u=s.getNodeById(f)))return{node:u}}}function VD(o){for(var i=[];o;)(o=o.parentNode)&&i.push(o);return i.reverse()}function BD(o,i){return Rt(VD(o),i)>=0}function HD(o,i){for(var r=[];o;){var s=o.dataIndex;r.push({name:o.name,dataIndex:s,value:i.getRawValue(s)}),o=o.parentNode}return r.reverse(),r}var V6=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return he(i,o),i.prototype.getInitialData=function(r){var s={name:r.name,children:r.data},f=new Nn(r.leaves||{},this,this.ecModel),d=Kw.createTree(s,this,function(y){y.wrapMethod("getItemModel",function(b,w){var S=d.getNodeByDataIndex(w);return S&&S.children.length&&S.isExpand||(b.parentModel=f),b})}),v=0;d.eachNode("preorder",function(y){y.depth>v&&(v=y.depth)});var m=r.expandAndCollapse&&r.initialTreeDepth>=0?r.initialTreeDepth:v;return d.root.eachNode("preorder",function(y){var b=y.hostTree.data.getRawDataItem(y.dataIndex);y.isExpand=b&&null!=b.collapsed?!b.collapsed:y.depth<=m}),d.data},i.prototype.getOrient=function(){var r=this.get("orient");return"horizontal"===r?r="LR":"vertical"===r&&(r="TB"),r},i.prototype.setZoom=function(r){this.option.zoom=r},i.prototype.setCenter=function(r){this.option.center=r},i.prototype.formatTooltip=function(r,s,u){for(var f=this.getData().tree,d=f.root.children[0],p=f.getNodeByDataIndex(r),v=p.getValue(),g=p.name;p&&p!==d;)g=p.parentNode.name+"."+g,p=p.parentNode;return pi("nameValue",{name:g,value:v,noValue:isNaN(v)||null==v})},i.prototype.getDataParams=function(r){var s=o.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(r);return s.treeAncestors=HD(u,this),s},i.type="series.tree",i.layoutMode="box",i.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},i}(vt);function vc(o,i){for(var s,r=[o];s=r.pop();)if(i(s),s.isExpand){var u=s.children;if(u.length)for(var f=u.length-1;f>=0;f--)r.push(u[f])}}function H6(o,i){o.eachSeriesByType("tree",function(r){!function(o,i){var r=function(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(o,i);o.layoutInfo=r;var s=o.get("layout"),u=0,f=0,d=null;"radial"===s?(u=2*Math.PI,f=Math.min(r.height,r.width)/2,d=Ds(function(O,R){return(O.parentNode===R.parentNode?1:2)/O.depth})):(u=r.width,f=r.height,d=Ds());var p=o.getData().tree.root,v=p.children[0];if(v){(function(o){var i=o;i.hierNode={defaultAncestor:null,ancestor:i,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var s,u,r=[i];s=r.pop();)if(u=s.children,s.isExpand&&u.length)for(var d=u.length-1;d>=0;d--){var p=u[d];p.hierNode={defaultAncestor:null,ancestor:p,prelim:0,modifier:0,change:0,shift:0,i:d,thread:null},r.push(p)}})(p),function(o,i,r){for(var f,s=[o],u=[];f=s.pop();)if(u.push(f),f.isExpand){var d=f.children;if(d.length)for(var p=0;pm.getLayout().x&&(m=O),O.depth>y.depth&&(y=O)});var b=g===m?1:d(g,m)/2,w=b-g.getLayout().x,S=0,M=0,x=0,T=0;if("radial"===s)S=u/(m.getLayout().x+b+w),M=f/(y.depth-1||1),vc(v,function(O){var R=my(x=(O.getLayout().x+w)*S,T=(O.depth-1)*M);O.setLayout({x:R.x,y:R.y,rawX:x,rawY:T},!0)});else{var P=o.getOrient();"RL"===P||"LR"===P?(M=f/(m.getLayout().x+b+w),S=u/(y.depth-1||1),vc(v,function(O){T=(O.getLayout().x+w)*M,O.setLayout({x:x="LR"===P?(O.depth-1)*S:u-(O.depth-1)*S,y:T},!0)})):("TB"===P||"BT"===P)&&(S=u/(m.getLayout().x+b+w),M=f/(y.depth-1||1),vc(v,function(O){x=(O.getLayout().x+w)*S,O.setLayout({x:x,y:T="TB"===P?(O.depth-1)*M:f-(O.depth-1)*M},!0)}))}}}(r,i)})}function z6(o){o.eachSeriesByType("tree",function(i){var r=i.getData();r.tree.eachNode(function(u){var d=u.getModel().getModel("itemStyle").getItemStyle();Se(r.ensureUniqueItemVisual(u.dataIndex,"style"),d)})})}var G6=function(){},jF=["treemapZoomToNode","treemapRender","treemapMove"];function WF(o){var i=o.getData(),s={};i.tree.eachNode(function(u){for(var f=u;f&&f.depth>1;)f=f.parentNode;var d=KM(o.ecModel,f.name||f.dataIndex+"",s);u.setVisual("decal",d)})}function Y6(o){var i=0;q(o.children,function(s){Y6(s);var u=s.value;we(u)&&(u=u[0]),i+=u});var r=o.value;we(r)&&(r=r[0]),(null==r||isNaN(r))&&(r=i),r<0&&(r=0),we(o.value)?o.value[0]=r:o.value=r}var Qw=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.preventUsingHoverLayer=!0,r}return he(i,o),i.prototype.getInitialData=function(r,s){var u={name:r.name,children:r.data};Y6(u);var f=r.levels||[],d=this.designatedVisualItemStyle={},p=new Nn({itemStyle:d},this,s),v=Te((f=r.levels=function(o,i){var r=jn(i.get("color")),s=jn(i.get(["aria","decal","decals"]));if(r){var u,f;q(o=o||[],function(p){var v=new Nn(p),g=v.get("color"),m=v.get("decal");(v.get(["itemStyle","color"])||g&&"none"!==g)&&(u=!0),(v.get(["itemStyle","decal"])||m&&"none"!==m)&&(f=!0)});var d=o[0]||(o[0]={});return u||(d.color=r.slice()),!f&&s&&(d.decal=s.slice()),o}}(f,s))||[],function(y){return new Nn(y,p,s)},this),g=Kw.createTree(u,this,function(y){y.wrapMethod("getItemModel",function(b,w){var S=g.getNodeByDataIndex(w);return b.parentModel=(S?v[S.depth]:null)||p,b})});return g.data},i.prototype.optionUpdated=function(){this.resetViewRoot()},i.prototype.formatTooltip=function(r,s,u){var f=this.getData(),d=this.getRawValue(r);return pi("nameValue",{name:f.getName(r),value:d})},i.prototype.getDataParams=function(r){var s=o.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(r);return s.treeAncestors=HD(u,this),s.treePathInfo=s.treeAncestors,s},i.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Se(this.layoutInfo,r)},i.prototype.mapIdToIndex=function(r){var s=this._idIndexMap;s||(s=this._idIndexMap=et(),this._idIndexMapCount=0);var u=s.get(r);return null==u&&s.set(r,u=this._idIndexMapCount++),u},i.prototype.getViewRoot=function(){return this._viewRoot},i.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var s=this.getRawData().tree.root;(!r||r!==s&&!s.contains(r))&&(this._viewRoot=s)},i.prototype.enableAriaDecal=function(){WF(this)},i.type="series.treemap",i.layoutMode="box",i.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},i}(vt);function qF(o,i,r,s,u,f){var d=[[u?o:o-5,i],[o+r,i],[o+r,i+s],[u?o:o-5,i+s]];return!f&&d.splice(2,0,[o+r+5,i+s/2]),!u&&d.push([o,i+s/2]),d}function Z6(o,i,r){ht(o).eventData={componentType:"series",componentSubType:"treemap",componentIndex:i.componentIndex,seriesIndex:i.componentIndex,seriesName:i.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&HD(r,i)}}var K6=function(){function o(i){this.group=new ct,i.add(this.group)}return o.prototype.render=function(i,r,s,u){var f=i.getModel("breadcrumb"),d=this.group;if(d.removeAll(),f.get("show")&&s){var p=f.getModel("itemStyle"),v=p.getModel("textStyle"),g={pos:{left:f.get("left"),right:f.get("right"),top:f.get("top"),bottom:f.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:f.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(s,g,v),this._renderContent(i,g,p,v,u),tC(d,g.pos,g.box)}},o.prototype._prepare=function(i,r,s){for(var u=i;u;u=u.parentNode){var f=wi(u.getModel().get("name"),""),d=s.getTextRect(f),p=Math.max(d.width+16,r.emptyItemWidth);r.totalWidth+=p+8,r.renderList.push({node:u,text:f,width:p})}},o.prototype._renderContent=function(i,r,s,u,f){for(var d=0,p=r.emptyItemWidth,v=i.get(["breadcrumb","height"]),g=function(o,i,r){var s=i.width,u=i.height,f=Fe(o.left,s),d=Fe(o.top,u),p=Fe(o.right,s),v=Fe(o.bottom,u);return(isNaN(f)||isNaN(parseFloat(o.left)))&&(f=0),(isNaN(p)||isNaN(parseFloat(o.right)))&&(p=s),(isNaN(d)||isNaN(parseFloat(o.top)))&&(d=0),(isNaN(v)||isNaN(parseFloat(o.bottom)))&&(v=u),r=lh(r||0),{width:Math.max(p-f-r[1]-r[3],0),height:Math.max(v-d-r[0]-r[2],0)}}(r.pos,r.box),m=r.totalWidth,y=r.renderList,b=y.length-1;b>=0;b--){var w=y[b],S=w.node,M=w.width,x=w.text;m>g.width&&(m-=M-p,M=p,x=null);var T=new ya({shape:{points:qF(d,0,M,v,b===y.length-1,0===b)},style:tt(s.getItemStyle(),{lineJoin:"bevel"}),textContent:new fn({style:{text:x,fill:u.getTextColor(),font:u.getFont()}}),textConfig:{position:"inside"},z2:1e5,onclick:St(f,S)});T.disableLabelAnimation=!0,this.group.add(T),Z6(T,i,S),d+=M+8}},o.prototype.remove=function(){this.group.removeAll()},o}(),$6=function(){function o(){this._storage=[],this._elExistsMap={}}return o.prototype.add=function(i,r,s,u,f){return!this._elExistsMap[i.id]&&(this._elExistsMap[i.id]=!0,this._storage.push({el:i,target:r,duration:s,delay:u,easing:f}),!0)},o.prototype.finished=function(i){return this._finishedCallback=i,this},o.prototype.start=function(){for(var i=this,r=this._storage.length,s=function(){--r<=0&&(i._storage.length=0,i._elExistsMap={},i._finishedCallback&&i._finishedCallback())},u=0,f=this._storage.length;u3||Math.abs(r.dy)>3)){var s=this.seriesModel.getData().tree.root;if(!s)return;var u=s.getLayout();if(!u)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x+r.dx,y:u.y+r.dy,width:u.width,height:u.height}})}},i.prototype._onZoom=function(r){var s=r.originX,u=r.originY;if("animating"!==this._state){var f=this.seriesModel.getData().tree.root;if(!f)return;var d=f.getLayout();if(!d)return;var p=new Ft(d.x,d.y,d.width,d.height),v=this.seriesModel.layoutInfo,g=[1,0,0,1,0,0];Oo(g,g,[-(s-=v.x),-(u-=v.y)]),$b(g,g,[r.scale,r.scale]),Oo(g,g,[s,u]),p.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:p.x,y:p.y,width:p.width,height:p.height}})}},i.prototype._initEvents=function(r){var s=this;r.on("click",function(u){if("ready"===s._state){var f=s.seriesModel.get("nodeClick",!0);if(f){var d=s.findTarget(u.offsetX,u.offsetY);if(d){var p=d.node;if(p.getLayout().isLeafRoot)s._rootToNode(d);else if("zoomToNode"===f)s._zoomToNode(d);else if("link"===f){var v=p.hostTree.data.getItemModel(p.dataIndex),g=v.get("link",!0),m=v.get("target",!0)||"blank";g&&J0(g,m)}}}}},this)},i.prototype._renderBreadcrumb=function(r,s,u){var f=this;u||(u=null!=r.get("leafDepth",!0)?{node:r.getViewRoot()}:this.findTarget(s.getWidth()/2,s.getHeight()/2))||(u={node:r.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new K6(this.group))).render(r,s,u.node,function(d){"animating"!==f._state&&(BD(r.getViewRoot(),d)?f._rootToNode({node:d}):f._zoomToNode({node:d}))})},i.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},i.prototype.dispose=function(){this._clearController()},i.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},i.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},i.prototype.findTarget=function(r,s){var u;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(d){var p=this._storage.background[d.getRawIndex()];if(p){var v=p.transformCoordToLocal(r,s),g=p.shape;if(!(g.x<=v[0]&&v[0]<=g.x+g.width&&g.y<=v[1]&&v[1]<=g.y+g.height))return!1;u={node:d,offsetX:v[0],offsetY:v[1]}}},this),u},i.type="treemap",i}(Vn),rg=q,AK=at,Sy=function(){function o(i){var r=i.mappingMethod,s=i.type,u=this.option=rt(i);this.type=s,this.mappingMethod=r,this._normalizeData=rj[r];var f=o.visualHandlers[s];this.applyVisual=f.applyVisual,this.getColorMapper=f.getColorMapper,this._normalizedToVisual=f._normalizedToVisual[r],"piecewise"===r?(t1(u),function(o){var i=o.pieceList;o.hasSpecialVisual=!1,q(i,function(r,s){r.originIndex=s,null!=r.visual&&(o.hasSpecialVisual=!0)})}(u)):"category"===r?u.categories?function(o){var i=o.categories,r=o.categoryMap={},s=o.visual;if(rg(i,function(d,p){r[d]=p}),!we(s)){var u=[];at(s)?rg(s,function(d,p){var v=r[p];u[null!=v?v:-1]=d}):u[-1]=s,s=KF(o,u)}for(var f=i.length-1;f>=0;f--)null==s[f]&&(delete r[i[f]],i.pop())}(u):t1(u,!0):(Oa("linear"!==r||u.dataExtent),t1(u))}return o.prototype.mapValueToVisual=function(i){var r=this._normalizeData(i);return this._normalizedToVisual(r,i)},o.prototype.getNormalizer=function(){return Ye(this._normalizeData,this)},o.listVisualTypes=function(){return _n(o.visualHandlers)},o.isValidType=function(i){return o.visualHandlers.hasOwnProperty(i)},o.eachVisual=function(i,r,s){at(i)?q(i,r,s):r.call(s,i)},o.mapVisual=function(i,r,s){var u,f=we(i)?[]:at(i)?{}:(u=!0,null);return o.eachVisual(i,function(d,p){var v=r.call(s,d,p);u?f=v:f[p]=v}),f},o.retrieveVisuals=function(i){var s,r={};return i&&rg(o.visualHandlers,function(u,f){i.hasOwnProperty(f)&&(r[f]=i[f],s=!0)}),s?r:null},o.prepareVisualTypes=function(i){if(we(i))i=i.slice();else{if(!AK(i))return[];var r=[];rg(i,function(s,u){r.push(u)}),i=r}return i.sort(function(s,u){return"color"===u&&"color"!==s&&0===s.indexOf("color")?1:-1}),i},o.dependsOn=function(i,r){return"color"===r?!(!i||0!==i.indexOf(r)):i===r},o.findPieceIndex=function(i,r,s){for(var u,f=1/0,d=0,p=r.length;dg[1]&&(g[1]=v);var m=i.get("colorMappingBy"),y={type:d.name,dataExtent:g,visual:d.range};"color"!==y.type||"index"!==m&&"id"!==m?y.mappingMethod="linear":(y.mappingMethod="category",y.loop=!0);var b=new Qi(y);return ZD(b).drColorMappingBy=m,b}}}(0,u,f,0,v,w);q(w,function(M,x){(M.depth>=r.length||M===r[M.depth])&&$F(M,function(o,i,r,s,u,f){var d=Se({},i);if(u){var p=u.type,v="color"===p&&ZD(u).drColorMappingBy,g="index"===v?s:"id"===v?f.mapIdToIndex(r.getId()):r.getValue(o.get("visualDimension"));d[p]=u.mapValueToVisual(g)}return d}(u,v,M,x,S,s),r,s)})}else b=JF(v),g.fill=b}}function JF(o){var i=KD(o,"color");if(i){var r=KD(o,"colorAlpha"),s=KD(o,"colorSaturation");return s&&(i=Qc(i,null,null,s)),r&&(i=Yb(i,r)),i}}function KD(o,i){var r=o[i];if(null!=r&&"none"!==r)return r}function $D(o,i){var r=o.get(i);return we(r)&&r.length?{name:i,range:r}:null}var xy=Math.max,ed=Math.min,eN=ni,Ty=q,tN=["itemStyle","borderWidth"],lj=["itemStyle","gapWidth"],uj=["upperLabel","show"],cj=["upperLabel","height"],fj={seriesType:"treemap",reset:function(i,r,s,u){var f=s.getWidth(),d=s.getHeight(),p=i.option,v=li(i.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()}),g=p.size||[],m=Fe(eN(v.width,g[0]),f),y=Fe(eN(v.height,g[1]),d),b=u&&u.type,S=_y(u,["treemapZoomToNode","treemapRootToNode"],i),M="treemapRender"===b||"treemapMove"===b?u.rootRect:null,x=i.getViewRoot(),T=VD(x);if("treemapMove"!==b){var P="treemapZoomToNode"===b?function(o,i,r,s,u){var f=(i||{}).node,d=[s,u];if(!f||f===r)return d;for(var p,v=s*u,g=v*o.option.zoomToNodeRatio;p=f.parentNode;){for(var m=0,y=p.children,b=0,w=y.length;bUp&&(g=Up),f=p}gp[1]&&(p[1]=g)})):p=[NaN,NaN],{sum:s,dataExtent:p}}(i,d,p);if(0===g.sum)return o.viewChildren=[];if(g.sum=function(o,i,r,s,u){if(!s)return r;for(var f=o.get("visibleMin"),d=u.length,p=d,v=d-1;v>=0;v--){var g=u["asc"===s?d-v-1:v].getValue();g/r*is&&(s=d));var v=o.area*o.area,g=i*i*r;return v?xy(g*s/v,v/(g*u)):1/0}function mj(o,i,r,s,u){var f=i===r.width?0:1,d=1-f,p=["x","y"],v=["width","height"],g=r[p[f]],m=i?o.area/i:0;(u||m>r[v[d]])&&(m=r[v[d]]);for(var y=0,b=o.length;yu&&(u=r);var d=u%2?u+2:u+3;f=[];for(var p=0;p0&&(V[0]=-V[0],V[1]=-V[1]);var U=R[0]<0?-1:1;if("start"!==f.__position&&"end"!==f.__position){var j=-Math.atan2(R[1],R[0]);y[0].8?"left":b[0]<-.8?"right":"center",M=b[1]>.8?"top":b[1]<-.8?"bottom":"middle";break;case"start":f.x=-b[0]*T+m[0],f.y=-b[1]*P+m[1],S=b[0]>.8?"right":b[0]<-.8?"left":"center",M=b[1]>.8?"bottom":b[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":f.x=T*U+m[0],f.y=m[1]+X,S=R[0]<0?"right":"left",f.originX=-T*U,f.originY=-X;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":f.x=B[0],f.y=B[1]+X,S="center",f.originY=-X;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":f.x=-T*U+y[0],f.y=y[1]+X,S=R[0]>=0?"right":"left",f.originX=T*U,f.originY=-X}f.scaleX=f.scaleY=d,f.setStyle({verticalAlign:f.__verticalAlign||M,align:f.__align||S})}}}function w(Z,$){var te=Z.__specifiedRotation;if(null==te){var ee=v.tangentAt($);Z.attr("rotation",(1===$?-1:1)*Math.PI/2-Math.atan2(ee[1],ee[0]))}else Z.attr("rotation",te)}},i}(ct);function iA(o){var i=o.hostModel;return{lineStyle:i.getModel("lineStyle").getLineStyle(),emphasisLineStyle:i.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:i.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:i.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:lr(i)}}function pN(o){return isNaN(o[0])||isNaN(o[1])}function vN(o){return!pN(o[0])&&!pN(o[1])}var gN=function(){function o(i){this.group=new ct,this._LineCtor=i||Oy}return o.prototype.isPersistent=function(){return!0},o.prototype.updateData=function(i){var r=this,s=this,u=s.group,f=s._lineData;s._lineData=i,f||u.removeAll();var d=iA(i);i.diff(f).add(function(p){r._doAdd(i,p,d)}).update(function(p,v){r._doUpdate(f,i,v,p,d)}).remove(function(p){u.remove(f.getItemGraphicEl(p))}).execute()},o.prototype.updateLayout=function(){var i=this._lineData;!i||i.eachItemGraphicEl(function(r,s){r.updateLayout(i,s)},this)},o.prototype.incrementalPrepareUpdate=function(i){this._seriesScope=iA(i),this._lineData=null,this.group.removeAll()},o.prototype.incrementalUpdate=function(i,r){function s(p){!p.isGroup&&!function(o){return o.animators&&o.animators.length>0}(p)&&(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}for(var u=i.start;u=0?p+=g:p-=g:S>=0?p-=g:p+=g}return p}function l1(o,i){var r=[],s=Wi,u=[[],[],[]],f=[[],[]],d=[];i/=2,o.eachEdge(function(p,v){var g=p.getLayout(),m=p.getVisual("fromSymbol"),y=p.getVisual("toSymbol");g.__original||(g.__original=[Gu(g[0]),Gu(g[1])],g[2]&&g.__original.push(Gu(g[2])));var b=g.__original;if(null!=g[2]){if(ua(u[0],b[0]),ua(u[1],b[2]),ua(u[2],b[1]),m&&"none"!==m){var w=Ey(p.node1),S=wN(u,b[0],w*i);s(u[0][0],u[1][0],u[2][0],S,r),u[0][0]=r[3],u[1][0]=r[4],s(u[0][1],u[1][1],u[2][1],S,r),u[0][1]=r[3],u[1][1]=r[4]}y&&"none"!==y&&(w=Ey(p.node2),S=wN(u,b[1],w*i),s(u[0][0],u[1][0],u[2][0],S,r),u[1][0]=r[1],u[2][0]=r[2],s(u[0][1],u[1][1],u[2][1],S,r),u[1][1]=r[1],u[2][1]=r[2]),ua(g[0],u[0]),ua(g[1],u[2]),ua(g[2],u[1])}else ua(f[0],b[0]),ua(f[1],b[1]),yd(d,f[1],f[0]),bd(d,d),m&&"none"!==m&&(w=Ey(p.node1),Ck(f[0],f[0],d,w*i)),y&&"none"!==y&&(w=Ey(p.node2),Ck(f[1],f[1],d,-w*i)),ua(g[0],f[0]),ua(g[1],f[1])})}function u1(o){return"view"===o.type}var SN=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){var u=new Y_,f=new gN,d=this.group;this._controller=new hy(s.getZr()),this._controllerHost={target:d},d.add(u.group),d.add(f.group),this._symbolDraw=u,this._lineDraw=f,this._firstRender=!0},i.prototype.render=function(r,s,u){var f=this,d=r.coordinateSystem;this._model=r;var p=this._symbolDraw,v=this._lineDraw,g=this.group;if(u1(d)){var m={x:d.x,y:d.y,scaleX:d.scaleX,scaleY:d.scaleY};this._firstRender?g.attr(m):ln(g,m,r)}l1(r.getGraph(),Ay(r));var y=r.getData();p.updateData(y);var b=r.getEdgeData();v.updateData(b),this._updateNodeAndLinkScale(),this._updateController(r,s,u),clearTimeout(this._layoutTimeout);var w=r.forceLayout,S=r.get(["force","layoutAnimation"]);w&&this._startForceLayoutIteration(w,S),y.graph.eachNode(function(P){var O=P.dataIndex,R=P.getGraphicEl(),V=P.getModel();R.off("drag").off("dragend");var B=V.get("draggable");B&&R.on("drag",function(){w&&(w.warmUp(),!f._layouting&&f._startForceLayoutIteration(w,S),w.setFixed(O),y.setItemLayout(O,[R.x,R.y]))}).on("dragend",function(){w&&w.setUnfixed(O)}),R.setDraggable(B&&!!w),"adjacency"===V.get(["emphasis","focus"])&&(ht(R).focus=P.getAdjacentDataIndices())}),y.graph.eachEdge(function(P){var O=P.getGraphicEl();"adjacency"===P.getModel().get(["emphasis","focus"])&&(ht(O).focus={edge:[P.dataIndex],node:[P.node1.dataIndex,P.node2.dataIndex]})});var M="circular"===r.get("layout")&&r.get(["circular","rotateLabel"]),x=y.getLayout("cx"),T=y.getLayout("cy");y.eachItemGraphicEl(function(P,O){var V=y.getItemModel(O).get(["label","rotate"])||0,B=P.getSymbolPath();if(M){var U=y.getItemLayout(O),j=Math.atan2(U[1]-T,U[0]-x);j<0&&(j=2*Math.PI+j);var X=U[0]=0&&i.call(r,s[f],f)},o.prototype.eachEdge=function(i,r){for(var s=this.edges,u=s.length,f=0;f=0&&s[f].node1.dataIndex>=0&&s[f].node2.dataIndex>=0&&i.call(r,s[f],f)},o.prototype.breadthFirstTraverse=function(i,r,s,u){if(r instanceof Kh||(r=this._nodesMap[sg(r)]),r){for(var f="out"===s?"outEdges":"in"===s?"inEdges":"edges",d=0;d=0&&v.node2.dataIndex>=0}),f=0,d=u.length;f=0&&this[o][i].setItemVisual(this.dataIndex,s,u)},getVisual:function(s){return this[o][i].getItemVisual(this.dataIndex,s)},setLayout:function(s,u){this.dataIndex>=0&&this[o][i].setItemLayout(this.dataIndex,s,u)},getLayout:function(){return this[o][i].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[o][i].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[o][i].getRawIndex(this.dataIndex)}}}qr(Kh,Oj("hostGraph","data")),qr(Pj,Oj("hostGraph","edgeData"));var Ij=oA;function kN(o,i,r,s,u){for(var f=new Ij(s),d=0;d "+b)),g++)}var S,w=r.get("coordinateSystem");if("cartesian2d"===w||"polar"===w)S=gl(o,r);else{var M=$m.get(w),x=M&&M.dimensions||[];Rt(x,"value")<0&&x.concat(["value"]);var T=Fv(o,{coordDimensions:x,encodeDefine:r.getEncode()}).dimensions;(S=new Ga(T,r)).initData(o)}var P=new Ga(["value"],r);return P.initData(v,p),u&&u(S,P),N6({mainData:S,struct:f,structAttr:"graph",datas:{node:S,edge:P},datasAttr:{node:"data",edge:"edgeData"}}),f.update(),f}var NK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r}return he(i,o),i.prototype.init=function(r){o.prototype.init.apply(this,arguments);var s=this;function u(){return s._categoriesData}this.legendVisualProvider=new mu(u,u),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},i.prototype.mergeOption=function(r){o.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},i.prototype.mergeDefaultAndTheme=function(r){o.prototype.mergeDefaultAndTheme.apply(this,arguments),Nd(r,"edgeLabel",["show"])},i.prototype.getInitialData=function(r,s){var u=r.edges||r.links||[],f=r.data||r.nodes||[],d=this;if(f&&u){!function(o){!tA(o)||(o.__curvenessList=[],o.__edgeMap={},Cj(o))}(this);var p=kN(f,u,this,!0,function(g,m){g.wrapMethod("getItemModel",function(S){var T=d._categoriesModels[S.getShallow("category")];return T&&(T.parentModel=S.parentModel,S.parentModel=T),S});var y=Nn.prototype.getModel;function b(S,M){var x=y.call(this,S,M);return x.resolveParentPath=w,x}function w(S){if(S&&("label"===S[0]||"label"===S[1])){var M=S.slice();return"label"===S[0]?M[0]="edgeLabel":"label"===S[1]&&(M[1]="edgeLabel"),M}return S}m.wrapMethod("getItemModel",function(S){return S.resolveParentPath=w,S.getModel=b,S})});return q(p.edges,function(g){!function(o,i,r,s){if(tA(r)){var u=Dy(o,i,r),f=r.__edgeMap,d=f[wj(u)];f[u]&&!d?f[u].isForward=!0:d&&f[u]&&(d.isForward=!0,f[u].isForward=!1),f[u]=f[u]||[],f[u].push(s)}}(g.node1,g.node2,this,g.dataIndex)},this),p.data}},i.prototype.getGraph=function(){return this.getData().graph},i.prototype.getEdgeData=function(){return this.getGraph().edgeData},i.prototype.getCategoriesData=function(){return this._categoriesData},i.prototype.formatTooltip=function(r,s,u){if("edge"===u){var f=this.getData(),d=this.getDataParams(r,u),p=f.graph.getEdgeByIndex(r),v=f.getName(p.node1.dataIndex),g=f.getName(p.node2.dataIndex),m=[];return null!=v&&m.push(v),null!=g&&m.push(g),pi("nameValue",{name:m.join(" > "),value:d.value,noValue:null==d.value})}return D4({series:this,dataIndex:r,multipleSeries:s})},i.prototype._updateCategoriesData=function(){var r=Te(this.option.categories||[],function(u){return null!=u.value?u:Se({value:0},u)}),s=new Ga(["value"],this);s.initData(r),this._categoriesData=s,this._categoriesModels=s.mapArray(function(u){return s.getItemModel(u)})},i.prototype.setZoom=function(r){this.option.zoom=r},i.prototype.setCenter=function(r){this.option.center=r},i.prototype.isAnimationEnabled=function(){return o.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},i.type="series.graph",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},i}(vt),Ma={type:"graphRoam",event:"graphRoam",update:"none"},Lj=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},MN=function(o){function i(r){var s=o.call(this,r)||this;return s.type="pointer",s}return he(i,o),i.prototype.getDefaultShape=function(){return new Lj},i.prototype.buildPath=function(r,s){var u=Math.cos,f=Math.sin,d=s.r,p=s.width,v=s.angle,g=s.x-u(v)*p*(p>=d/3?1:2),m=s.y-f(v)*p*(p>=d/3?1:2);v=s.angle-Math.PI/2,r.moveTo(g,m),r.lineTo(s.x+u(v)*p,s.y+f(v)*p),r.lineTo(s.x+u(s.angle)*d,s.y+f(s.angle)*d),r.lineTo(s.x-u(v)*p,s.y-f(v)*p),r.lineTo(g,m)},i}(Nt);function c1(o,i){var r=null==o?"":o+"";return i&&("string"==typeof i?r=i.replace("{value}",r):"function"==typeof i&&(r=i(o))),r}var sA=2*Math.PI,f1=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){this.group.removeAll();var f=r.get(["axisLine","lineStyle","color"]),d=function(o,i){var r=o.get("center"),s=i.getWidth(),u=i.getHeight(),f=Math.min(s,u);return{cx:Fe(r[0],i.getWidth()),cy:Fe(r[1],i.getHeight()),r:Fe(o.get("radius"),f/2)}}(r,u);this._renderMain(r,s,u,f,d),this._data=r.getData()},i.prototype.dispose=function(){},i.prototype._renderMain=function(r,s,u,f,d){for(var p=this.group,v=r.get("clockwise"),g=-r.get("startAngle")/180*Math.PI,m=-r.get("endAngle")/180*Math.PI,y=r.getModel("axisLine"),w=y.get("roundCap")?Z_:ir,S=y.get("show"),M=y.getModel("lineStyle"),x=M.get("width"),T=(m-g)%sA||m===g?(m-g)%sA:sA,P=g,O=0;S&&O=X&&(0===Z?0:f[Z-1][0]).8?"bottom":"middle",align:le<-.4?"left":le>.4?"right":"center"},{inheritColor:Me}),silent:!0}))}if(P.get("show")&&de!==R){ge=(ge=P.get("distance"))?ge+m:m;for(var ze=0;ze<=V;ze++){le=Math.cos(j),oe=Math.sin(j);var Je=new Ti({shape:{x1:le*(S-ge)+b,y1:oe*(S-ge)+w,x2:le*(S-U-ge)+b,y2:oe*(S-U-ge)+w},silent:!0,style:te});"auto"===te.stroke&&Je.setStyle({stroke:f((de+ze/V)/R)}),y.add(Je),j+=Z}j-=Z}else j+=X}},i.prototype._renderPointer=function(r,s,u,f,d,p,v,g,m){var y=this.group,b=this._data,w=this._progressEls,S=[],M=r.get(["pointer","show"]),x=r.getModel("progress"),T=x.get("show"),P=r.getData(),O=P.mapDimension("value"),R=+r.get("min"),V=+r.get("max"),B=[R,V],U=[p,v];function j(Z,$){var ze,ee=P.getItemModel(Z).getModel("pointer"),le=Fe(ee.get("width"),d.r),oe=Fe(ee.get("length"),d.r),de=r.get(["pointer","icon"]),ge=ee.get("offsetCenter"),_e=Fe(ge[0],d.r),xe=Fe(ge[1],d.r),Me=ee.get("keepAspect");return(ze=de?Ir(de,_e-le/2,xe-oe,le,oe,null,Me):new MN({shape:{angle:-Math.PI/2,width:le,r:oe,x:_e,y:xe}})).rotation=-($+Math.PI/2),ze.x=d.cx,ze.y=d.cy,ze}function X(Z,$){var ee=x.get("roundCap")?Z_:ir,le=x.get("overlap"),oe=le?x.get("width"):m/P.count(),_e=new ee({shape:{startAngle:p,endAngle:$,cx:d.cx,cy:d.cy,clockwise:g,r0:le?d.r-oe:d.r-(Z+1)*oe,r:le?d.r:d.r-Z*oe}});return le&&(_e.z2=V-P.get(O,Z)%V),_e}(T||M)&&(P.diff(b).add(function(Z){if(M){var $=j(Z,p);yr($,{rotation:-(bn(P.get(O,Z),B,U,!0)+Math.PI/2)},r),y.add($),P.setItemGraphicEl(Z,$)}if(T){var te=X(Z,p),ee=x.get("clip");yr(te,{shape:{endAngle:bn(P.get(O,Z),B,U,ee)}},r),y.add(te),cs(r.seriesIndex,P.dataType,Z,te),S[Z]=te}}).update(function(Z,$){if(M){var te=b.getItemGraphicEl($),ee=te?te.rotation:p,le=j(Z,ee);le.rotation=ee,ln(le,{rotation:-(bn(P.get(O,Z),B,U,!0)+Math.PI/2)},r),y.add(le),P.setItemGraphicEl(Z,le)}if(T){var oe=w[$],ge=X(Z,oe?oe.shape.endAngle:p),_e=x.get("clip");ln(ge,{shape:{endAngle:bn(P.get(O,Z),B,U,_e)}},r),y.add(ge),cs(r.seriesIndex,P.dataType,Z,ge),S[Z]=ge}}).execute(),P.each(function(Z){var $=P.getItemModel(Z),te=$.getModel("emphasis");if(M){var ee=P.getItemGraphicEl(Z),le=P.getItemVisual(Z,"style"),oe=le.fill;if(ee instanceof si){var de=ee.style;ee.useStyle(Se({image:de.image,x:de.x,y:de.y,width:de.width,height:de.height},le))}else ee.useStyle(le),"pointer"!==ee.type&&ee.setColor(oe);ee.setStyle($.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===ee.style.fill&&ee.setStyle("fill",f(bn(P.get(O,Z),B,[0,1],!0))),ee.z2EmphasisLift=0,ki(ee,$),qn(ee,te.get("focus"),te.get("blurScope"))}if(T){var ge=S[Z];ge.useStyle(P.getItemVisual(Z,"style")),ge.setStyle($.getModel(["progress","itemStyle"]).getItemStyle()),ge.z2EmphasisLift=0,ki(ge,$),qn(ge,te.get("focus"),te.get("blurScope"))}}),this._progressEls=S)},i.prototype._renderAnchor=function(r,s){var u=r.getModel("anchor");if(u.get("show")){var d=u.get("size"),p=u.get("icon"),v=u.get("offsetCenter"),g=u.get("keepAspect"),m=Ir(p,s.cx-d/2+Fe(v[0],s.r),s.cy-d/2+Fe(v[1],s.r),d,d,null,g);m.z2=u.get("showAbove")?1:0,m.setStyle(u.getModel("itemStyle").getItemStyle()),this.group.add(m)}},i.prototype._renderTitleAndDetail=function(r,s,u,f,d){var p=this,v=r.getData(),g=v.mapDimension("value"),m=+r.get("min"),y=+r.get("max"),b=new ct,w=[],S=[],M=r.isAnimationEnabled(),x=r.get(["pointer","showAbove"]);v.diff(this._data).add(function(T){w[T]=new fn({silent:!0}),S[T]=new fn({silent:!0})}).update(function(T,P){w[T]=p._titleEls[P],S[T]=p._detailEls[P]}).execute(),v.each(function(T){var P=v.getItemModel(T),O=v.get(g,T),R=new ct,V=f(bn(O,[m,y],[0,1],!0)),B=P.getModel("title");if(B.get("show")){var U=B.get("offsetCenter"),j=d.cx+Fe(U[0],d.r),X=d.cy+Fe(U[1],d.r);(Z=w[T]).attr({z2:x?0:2,style:Or(B,{x:j,y:X,text:v.getName(T),align:"center",verticalAlign:"middle"},{inheritColor:V})}),R.add(Z)}var $=P.getModel("detail");if($.get("show")){var te=$.get("offsetCenter"),ee=d.cx+Fe(te[0],d.r),le=d.cy+Fe(te[1],d.r),oe=Fe($.get("width"),d.r),de=Fe($.get("height"),d.r),ge=r.get(["progress","show"])?v.getItemVisual(T,"style").fill:V,Z=S[T],_e=$.get("formatter");Z.attr({z2:x?0:2,style:Or($,{x:ee,y:le,text:c1(O,_e),width:isNaN(oe)?null:oe,height:isNaN(de)?null:de,align:"center",verticalAlign:"middle"},{inheritColor:ge})}),tu(Z,{normal:$},O,function(Me){return c1(Me,_e)}),M&&Nm(Z,T,v,r,{getFormattedLabel:function(ze,Je,mt,Qt,zt,xt){return c1(xt?xt.interpolatedValue:O,_e)}}),R.add(Z)}b.add(R)}),this.group.add(b),this._titleEls=w,this._detailEls=S},i.type="gauge",i}(Vn),d1=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.visualStyleAccessPath="itemStyle",r}return he(i,o),i.prototype.getInitialData=function(r,s){return po(this,["value"])},i.type="series.gauge",i.defaultOption={zlevel:0,z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},i}(vt),h1=["itemStyle","opacity"],Bj=function(o){function i(r,s){var u=o.call(this)||this,f=u,d=new br,p=new fn;return f.setTextContent(p),u.setTextGuideLine(d),u.updateData(r,s,!0),u}return he(i,o),i.prototype.updateData=function(r,s,u){var f=this,d=r.hostModel,p=r.getItemModel(s),v=r.getItemLayout(s),g=p.getModel("emphasis"),m=p.get(h1);m=null==m?1:m,u||el(f),f.useStyle(r.getItemVisual(s,"style")),f.style.lineJoin="round",u?(f.setShape({points:v.points}),f.style.opacity=0,yr(f,{style:{opacity:m}},d,s)):ln(f,{style:{opacity:m},shape:{points:v.points}},d,s),ki(f,p),this._updateLabel(r,s),qn(this,g.get("focus"),g.get("blurScope"))},i.prototype._updateLabel=function(r,s){var u=this,f=this.getTextGuideLine(),d=u.getTextContent(),p=r.hostModel,v=r.getItemModel(s),m=r.getItemLayout(s).label,y=r.getItemVisual(s,"style"),b=y.fill;Mi(d,lr(v),{labelFetcher:r.hostModel,labelDataIndex:s,defaultOpacity:y.opacity,defaultText:r.getName(s)},{normal:{align:m.textAlign,verticalAlign:m.verticalAlign}}),u.setTextConfig({local:!0,inside:!!m.inside,insideStroke:b,outsideFill:b});var w=m.linePoints;f.setShape({points:w}),u.textGuideLineConfig={anchor:w?new Tt(w[0][0],w[0][1]):null},ln(d,{style:{x:m.x,y:m.y}},p,s),d.attr({rotation:m.rotation,originX:m.x,originY:m.y,z2:10}),dw(u,TL(v),{stroke:b})},i}(ya),xa=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.ignoreLabelLineUpdate=!0,r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData(),d=this._data,p=this.group;f.diff(d).add(function(v){var g=new Bj(f,v);f.setItemGraphicEl(v,g),p.add(g)}).update(function(v,g){var m=d.getItemGraphicEl(g);m.updateData(f,v),p.add(m),f.setItemGraphicEl(v,m)}).remove(function(v){Fm(d.getItemGraphicEl(v),r,v)}).execute(),this._data=f},i.prototype.remove=function(){this.group.removeAll(),this._data=null},i.prototype.dispose=function(){},i.type="funnel",i}(Vn),zj=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r){o.prototype.init.apply(this,arguments),this.legendVisualProvider=new mu(Ye(this.getData,this),Ye(this.getRawData,this)),this._defaultLabelLine(r)},i.prototype.getInitialData=function(r,s){return po(this,{coordDimensions:["value"],encodeDefaulter:St(lv,this)})},i.prototype._defaultLabelLine=function(r){Nd(r,"labelLine",["show"]);var s=r.labelLine,u=r.emphasis.labelLine;s.show=s.show&&r.label.show,u.show=u.show&&r.emphasis.label.show},i.prototype.getDataParams=function(r){var s=this.getData(),u=o.prototype.getDataParams.call(this,r),f=s.mapDimension("value"),d=s.getSum(f);return u.percent=d?+(s.get(f,r)/d*100).toFixed(2):0,u.$vars.push("percent"),u},i.type="series.funnel",i.defaultOption={zlevel:0,z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},i}(vt);function Gj(o,i){o.eachSeriesByType("funnel",function(r){var s=r.getData(),u=s.mapDimension("value"),f=r.get("sort"),d=function(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(r,i),p=r.get("orient"),v=d.width,g=d.height,m=function(o,i){for(var r=o.mapDimension("value"),s=o.mapArray(r,function(v){return v}),u=[],f="ascending"===i,d=0,p=o.count();d5)return;var f=this._model.coordinateSystem.getSlidedAxisExpandWindow([i.offsetX,i.offsetY]);"none"!==f.behavior&&this._dispatchExpand({axisExpandWindow:f.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(i){if(!this._mouseDownPoint&&cA(this,"mousemove")){var r=this._model,s=r.coordinateSystem.getSlidedAxisExpandWindow([i.offsetX,i.offsetY]),u=s.behavior;"jump"===u&&this._throttledDispatchExpand.debounceNextCall(r.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===u?null:{axisExpandWindow:s.axisExpandWindow,animation:"jump"===u?null:{duration:0}})}}};function cA(o,i){var r=o._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===i}var t7=Ya,r7=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(){o.prototype.init.apply(this,arguments),this.mergeOption({})},i.prototype.mergeOption=function(r){r&&He(this.option,r,!0),this._initDimensions()},i.prototype.contains=function(r,s){var u=r.get("parallelIndex");return null!=u&&s.getComponent("parallel",u)===this},i.prototype.setAxisExpand=function(r){q(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(s){r.hasOwnProperty(s)&&(this.option[s]=r[s])},this)},i.prototype._initDimensions=function(){var r=this.dimensions=[],s=this.parallelAxisIndex=[];q(Yn(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(f){return(f.get("parallelIndex")||0)===this.componentIndex},this),function(f){r.push("dim"+f.get("dim")),s.push(f.componentIndex)})},i.type="parallel",i.dependencies=["parallelAxis"],i.layoutMode="box",i.defaultOption={zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},i}(qt),fA=function(o){function i(r,s,u,f,d){var p=o.call(this,r,s,u)||this;return p.type=f||"value",p.axisIndex=d,p}return he(i,o),i.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},i}(_l);function kl(o,i,r,s,u,f){o=o||0;var d=r[1]-r[0];if(null!=u&&(u=ug(u,[0,d])),null!=f&&(f=Math.max(f,null!=u?u:0)),"all"===s){var p=Math.abs(i[1]-i[0]);p=ug(p,[0,d]),u=f=ug(p,[u,f]),s=0}i[0]=ug(i[0],r),i[1]=ug(i[1],r);var v=p1(i,s);i[s]+=o;var y,g=u||0,m=r.slice();return v.sign<0?m[0]+=g:m[1]-=g,i[s]=ug(i[s],m),y=p1(i,s),null!=u&&(y.sign!==v.sign||y.spanf&&(i[1-s]=i[s]+y.sign*f),i}function p1(o,i){var r=o[i]-o[1-i];return{span:Math.abs(r),sign:r>0?-1:r<0?1:i?-1:1}}function ug(o,i){return Math.min(null!=i[1]?i[1]:1/0,Math.max(null!=i[0]?i[0]:-1/0,o))}var dA=q,ON=Math.min,IN=Math.max,RN=Math.floor,i7=Math.ceil,hA=hi,LN=Math.PI;function v1(o,i){return ON(IN(o,i[0]),i[1])}function o7(o,i){var r=i.layoutLength/(i.axisCount-1);return{position:r*o,axisNameAvailableWidth:r,axisLabelShow:!0}}function s7(o,i){var p,m,s=i.axisExpandWidth,f=i.axisCollapseWidth,d=i.winInnerIndices,v=f,g=!1;return o=s&&d<=s+r.axisLength&&p>=u&&p<=u+r.layoutLength},o.prototype.getModel=function(){return this._model},o.prototype._updateAxesFromSeries=function(i,r){r.eachSeries(function(s){if(i.contains(s,r)){var u=s.getData();dA(this.dimensions,function(f){var d=this._axesMap.get(f);d.scale.unionExtentFromData(u,u.mapDimension(f)),Wf(d.scale,d.model)},this)}},this)},o.prototype.resize=function(i,r){this._rect=li(i.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},o.prototype.getRect=function(){return this._rect},o.prototype._makeLayoutInfo=function(){var S,i=this._model,r=this._rect,s=["x","y"],u=["width","height"],f=i.get("layout"),d="horizontal"===f?0:1,p=r[u[d]],v=[0,p],g=this.dimensions.length,m=v1(i.get("axisExpandWidth"),v),y=v1(i.get("axisExpandCount")||0,[0,g]),b=i.get("axisExpandable")&&g>3&&g>y&&y>1&&m>0&&p>0,w=i.get("axisExpandWindow");w?(S=v1(w[1]-w[0],v),w[1]=w[0]+S):(S=v1(m*(y-1),v),(w=[m*(i.get("axisExpandCenter")||RN(g/2))-S/2])[1]=w[0]+S);var x=(p-S)/(g-y);x<3&&(x=0);var T=[RN(hA(w[0]/m,1))+1,i7(hA(w[1]/m,1))-1];return{layout:f,pixelDimIndex:d,layoutBase:r[s[d]],layoutLength:p,axisBase:r[s[1-d]],axisLength:r[u[1-d]],axisExpandable:b,axisExpandWidth:m,axisCollapseWidth:x,axisExpandWindow:w,axisCount:g,winInnerIndices:T,axisExpandWindow0Pos:x/m*w[0]}},o.prototype._layoutAxes=function(){var i=this._rect,r=this._axesMap,s=this.dimensions,u=this._makeLayoutInfo(),f=u.layout;r.each(function(d){var p=[0,u.axisLength],v=d.inverse?1:0;d.setExtent(p[v],p[1-v])}),dA(s,function(d,p){var v=(u.axisExpandable?s7:o7)(p,u),g={horizontal:{x:v.position,y:u.axisLength},vertical:{x:0,y:v.position}},y=[g[f].x+i.x,g[f].y+i.y],b={horizontal:LN/2,vertical:0}[f],w=[1,0,0,1,0,0];Od(w,w,b),Oo(w,w,y),this._axesLayout[d]={position:y,rotation:b,transform:w,axisNameAvailableWidth:v.axisNameAvailableWidth,axisLabelShow:v.axisLabelShow,nameTruncateMaxWidth:v.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},o.prototype.getAxis=function(i){return this._axesMap.get(i)},o.prototype.dataToPoint=function(i,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(i),r)},o.prototype.eachActiveState=function(i,r,s,u){null==s&&(s=0),null==u&&(u=i.count());var f=this._axesMap,d=this.dimensions,p=[],v=[];q(d,function(x){p.push(i.mapDimension(x)),v.push(f.get(x).model)});for(var g=this.hasAxisBrushed(),m=s;mf*(1-y[0])?(g="jump",v=p-f*(1-y[2])):(v=p-f*y[1])>=0&&(v=p-f*(1-y[1]))<=0&&(v=0),(v*=r.axisExpandWidth/m)?kl(v,u,d,"all"):g="none";else{var w=u[1]-u[0];(u=[IN(0,d[1]*p/w-w/2)])[1]=ON(d[1],u[0]+w),u[0]=u[1]-w}return{axisExpandWindow:u,behavior:g}},o}(),cg={create:function(o,i){var r=[];return o.eachComponent("parallel",function(s,u){var f=new FN(s,o,i);f.name="parallel_"+u,f.resize(s,i),s.coordinateSystem=f,f.model=s,r.push(f)}),o.eachSeries(function(s){if("parallel"===s.get("coordinateSystem")){var u=s.getReferringComponents("parallel",ai).models[0];s.coordinateSystem=u.coordinateSystem}}),r}},pA=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.activeIntervals=[],r}return he(i,o),i.prototype.getAreaSelectStyle=function(){return Hd([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},i.prototype.setActiveIntervals=function(r){var s=this.activeIntervals=rt(r);if(s)for(var u=s.length-1;u>=0;u--)io(s[u])},i.prototype.getActiveState=function(r){var s=this.activeIntervals;if(!s.length)return"normal";if(null==r||isNaN(+r))return"inactive";if(1===s.length){var u=s[0];if(u[0]<=r&&r<=u[1])return"active"}else for(var f=0,d=s.length;f6}(o)||u){if(f&&!u){"single"===d.brushMode&&wn(o);var v=rt(d);v.brushType=qN(v.brushType,f),v.panelId=f===$h?null:f.panelId,u=o._creatingCover=vA(o,v),o._covers.push(u)}if(u){var g=Ny[qN(o._brushType,f)];u.__brushOption.range=g.getCreatingRange(S1(o,u,o._track)),s&&(UN(o,u),g.updateCommon(o,u)),gA(o,u),p={isEnd:s}}}else s&&"single"===d.brushMode&&d.removeOnClick&&dg(o,i,r)&&wn(o)&&(p={isEnd:s,removeOnClick:!0});return p}function qN(o,i){return"auto"===o?i.defaultBrushType:o}var v7={mousedown:function(i){if(this._dragging)XN(this,i);else if(!i.target||!i.target.draggable){_A(i);var r=this.group.transformCoordToLocal(i.offsetX,i.offsetY);this._creatingCover=null,(this._creatingPanel=dg(this,i,r))&&(this._dragging=!0,this._track=[r.slice()])}},mousemove:function(i){var u=this.group.transformCoordToLocal(i.offsetX,i.offsetY);if(function(o,i,r){if(o._brushType&&!function(o,i,r){var s=o._zr;return i<0||i>s.getWidth()||r<0||r>s.getHeight()}(o,i.offsetX,i.offsetY)){var s=o._zr,u=o._covers,f=dg(o,i,r);if(!o._dragging)for(var d=0;d=0&&(p[d[v].depth]=new Nn(d[v],this,s));if(f&&u)return kN(f,u,this,!0,function(y,b){y.wrapMethod("getItemModel",function(w,S){var M=w.parentModel,x=M.getData().getItemLayout(S);if(x){var P=M.levelModels[x.depth];P&&(w.parentModel=P)}return w}),b.wrapMethod("getItemModel",function(w,S){var M=w.parentModel,T=M.getGraph().getEdgeByIndex(S).node1.getLayout();if(T){var O=M.levelModels[T.depth];O&&(w.parentModel=O)}return w})}).data},i.prototype.setNodePosition=function(r,s){var f=(this.option.data||this.option.nodes)[r];f.localX=s[0],f.localY=s[1]},i.prototype.getGraph=function(){return this.getData().graph},i.prototype.getEdgeData=function(){return this.getGraph().edgeData},i.prototype.formatTooltip=function(r,s,u){function f(w){return isNaN(w)||null==w}if("edge"===u){var d=this.getDataParams(r,u),p=d.data,v=d.value;return pi("nameValue",{name:p.source+" -- "+p.target,value:v,noValue:f(v)})}var y=this.getGraph().getNodeByIndex(r).getLayout().value,b=this.getDataParams(r,u).data.name;return pi("nameValue",{name:null!=b?b+"":null,value:y,noValue:f(y)})},i.prototype.optionUpdated=function(){},i.prototype.getDataParams=function(r,s){var u=o.prototype.getDataParams.call(this,r,s);if(null==u.value&&"node"===s){var d=this.getGraph().getNodeByIndex(r).getLayout().value;u.value=d}return u},i.type="series.sankey",i.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},i}(vt);function wA(o,i){o.eachSeriesByType("sankey",function(r){var s=r.get("nodeWidth"),u=r.get("nodeGap"),f=function(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(r,i);r.layoutInfo=f;var d=f.width,p=f.height,v=r.getGraph(),g=v.nodes,m=v.edges;!function(o){q(o,function(i){var r=qa(i.outEdges,_g),s=qa(i.inEdges,_g),u=i.getValue()||0,f=Math.max(r,s,u);i.setLayout({value:f},!0)})}(g),function(o,i,r,s,u,f,d,p,v){(function(o,i,r,s,u,f,d){for(var p=[],v=[],g=[],m=[],y=0,b=0;b=0;T&&x.depth>w&&(w=x.depth),M.setLayout({depth:T?x.depth:y},!0),M.setLayout("vertical"===f?{dy:r}:{dx:r},!0);for(var P=0;Py-1?w:y-1;d&&"left"!==d&&function(o,i,r,s){if("right"===i){for(var u=[],f=o,d=0;f.length;){for(var p=0;p0;f--)r3(p,v*=.99,d),MA(p,u,r,s,d),A7(p,v,d),MA(p,u,r,s,d)}(o,i,f,u,s,d,p),function(o,i){var r="vertical"===i?"x":"y";q(o,function(s){s.outEdges.sort(function(u,f){return u.node2.getLayout()[r]-f.node2.getLayout()[r]}),s.inEdges.sort(function(u,f){return u.node1.getLayout()[r]-f.node1.getLayout()[r]})}),q(o,function(s){var u=0,f=0;q(s.outEdges,function(d){d.setLayout({sy:u},!0),u+=d.getLayout().dy}),q(s.inEdges,function(d){d.setLayout({ty:f},!0),f+=d.getLayout().dy})})}(o,p)}(g,m,s,u,d,p,0!==Yn(g,function(M){return 0===M.getLayout().value}).length?0:r.get("layoutIterations"),r.get("orient"),r.get("nodeAlign"))})}function t3(o){var i=o.hostGraph.data.getRawDataItem(o.dataIndex);return null!=i.depth&&i.depth>=0}function MA(o,i,r,s,u){var f="vertical"===u?"x":"y";q(o,function(d){d.sort(function(M,x){return M.getLayout()[f]-x.getLayout()[f]});for(var p,v,g,m=0,y=d.length,b="vertical"===u?"dx":"dy",w=0;w0&&(p=v.getLayout()[f]+g,v.setLayout("vertical"===u?{x:p}:{y:p},!0)),m=v.getLayout()[f]+v.getLayout()[b]+i;if((g=m-i-("vertical"===u?s:r))>0)for(p=v.getLayout()[f]-g,v.setLayout("vertical"===u?{x:p}:{y:p},!0),m=p,w=y-2;w>=0;--w)(g=(v=d[w]).getLayout()[f]+v.getLayout()[b]+i-m)>0&&(p=v.getLayout()[f]-g,v.setLayout("vertical"===u?{x:p}:{y:p},!0)),m=v.getLayout()[f]})}function r3(o,i,r){q(o.slice().reverse(),function(s){q(s,function(u){if(u.outEdges.length){var f=qa(u.outEdges,i3,r)/qa(u.outEdges,_g);if(isNaN(f)){var d=u.outEdges.length;f=d?qa(u.outEdges,T7,r)/d:0}if("vertical"===r){var p=u.getLayout().x+(f-id(u,r))*i;u.setLayout({x:p},!0)}else{var v=u.getLayout().y+(f-id(u,r))*i;u.setLayout({y:v},!0)}}})})}function i3(o,i){return id(o.node2,i)*o.getValue()}function T7(o,i){return id(o.node2,i)}function D7(o,i){return id(o.node1,i)*o.getValue()}function a3(o,i){return id(o.node1,i)}function id(o,i){return"vertical"===i?o.getLayout().x+o.getLayout().dx/2:o.getLayout().y+o.getLayout().dy/2}function _g(o){return o.getValue()}function qa(o,i,r){for(var s=0,u=o.length,f=-1;++ff&&(f=p)}),q(s,function(d){var v=new Qi({type:"color",mappingMethod:"linear",dataExtent:[u,f],visual:i.get("color")}).mapValueToVisual(d.getLayout().value),g=d.getModel().get(["itemStyle","color"]);null!=g?(d.setVisual("color",g),d.setVisual("style",{fill:g})):(d.setVisual("color",v),d.setVisual("style",{fill:v}))})}})}var o3=function(){function o(){}return o.prototype.getInitialData=function(i,r){var s,v,u=r.getComponent("xAxis",this.get("xAxisIndex")),f=r.getComponent("yAxis",this.get("yAxisIndex")),d=u.get("type"),p=f.get("type");"category"===d?(i.layout="horizontal",s=u.getOrdinalMeta(),v=!0):"category"===p?(i.layout="vertical",s=f.getOrdinalMeta(),v=!0):i.layout=i.layout||"horizontal";var g=["x","y"],m="horizontal"===i.layout?0:1,y=this._baseAxisDim=g[m],b=g[1-m],w=[u,f],S=w[m].get("type"),M=w[1-m].get("type"),x=i.data;if(x&&v){var T=[];q(x,function(R,V){var B;we(R)?(B=R.slice(),R.unshift(V)):we(R.value)?((B=Se({},R)).value=B.value.slice(),R.value.unshift(V)):B=R,T.push(B)}),i.data=T}var P=this.defaultValueDimensions,O=[{name:y,type:QC(S),ordinalMeta:s,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:b,type:QC(M),dimsDef:P.slice()}];return po(this,{coordDimensions:O,dimensionsCount:P.length+1,encodeDefaulter:St(au,O,this)})},o.prototype.getBaseAxis=function(){var i=this._baseAxisDim;return this.ecModel.getComponent(i+"Axis",this.get(i+"AxisIndex")).axis},o}(),s3=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return he(i,o),i.type="series.boxplot",i.dependencies=["xAxis","yAxis","grid"],i.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},i}(vt);qr(s3,o3,!0);var Hy=s3,zy=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData(),d=this.group,p=this._data;this._data||d.removeAll();var v="horizontal"===r.get("layout")?1:0;f.diff(p).add(function(g){if(f.hasValue(g)){var y=c3(f.getItemLayout(g),f,g,v,!0);f.setItemGraphicEl(g,y),d.add(y)}}).update(function(g,m){var y=p.getItemGraphicEl(m);if(f.hasValue(g)){var b=f.getItemLayout(g);y?(el(y),f3(b,y,f,g)):y=c3(b,f,g,v),d.add(y),f.setItemGraphicEl(g,y)}else d.remove(y)}).remove(function(g){var m=p.getItemGraphicEl(g);m&&d.remove(m)}).execute(),this._data=f},i.prototype.remove=function(r){var s=this.group,u=this._data;this._data=null,u&&u.eachItemGraphicEl(function(f){f&&s.remove(f)})},i.type="boxplot",i}(Vn),l3=function(){},u3=function(o){function i(r){var s=o.call(this,r)||this;return s.type="boxplotBoxPath",s}return he(i,o),i.prototype.getDefaultShape=function(){return new l3},i.prototype.buildPath=function(r,s){var u=s.points,f=0;for(r.moveTo(u[f][0],u[f][1]),f++;f<4;f++)r.lineTo(u[f][0],u[f][1]);for(r.closePath();fM)&&s.push([T,O])}}return{boxData:r,outliers:s}}(r.getRawData(),i.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:u.boxData},{data:u.outliers}]}},h3=["color","borderColor"],p3=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){this.group.removeClipPath(),this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},i.prototype.incrementalPrepareRender=function(r,s,u){this._clear(),this._updateDrawMode(r)},i.prototype.incrementalRender=function(r,s,u,f){this._isLargeDraw?this._incrementalRenderLarge(r,s):this._incrementalRenderNormal(r,s)},i.prototype._updateDrawMode=function(r){var s=r.pipelineContext.large;(null==this._isLargeDraw||s!==this._isLargeDraw)&&(this._isLargeDraw=s,this._clear())},i.prototype._renderNormal=function(r){var s=r.getData(),u=this._data,f=this.group,d=s.getLayout("isSimpleBox"),p=r.get("clip",!0),v=r.coordinateSystem,g=v.getArea&&v.getArea();this._data||f.removeAll(),s.diff(u).add(function(m){if(s.hasValue(m)){var y=s.getItemLayout(m);if(p&&TA(g,y))return;var b=bg(y,0,!0);yr(b,{shape:{points:y.ends}},r,m),DA(b,s,m,d),f.add(b),s.setItemGraphicEl(m,b)}}).update(function(m,y){var b=u.getItemGraphicEl(y);if(s.hasValue(m)){var w=s.getItemLayout(m);p&&TA(g,w)?f.remove(b):(b?(ln(b,{shape:{points:w.ends}},r,m),el(b)):b=bg(w),DA(b,s,m,d),f.add(b),s.setItemGraphicEl(m,b))}else f.remove(b)}).remove(function(m){var y=u.getItemGraphicEl(m);y&&f.remove(y)}).execute(),this._data=s},i.prototype._renderLarge=function(r){this._clear(),m3(r,this.group);var s=r.get("clip",!0)?Tw(r.coordinateSystem,!1,r):null;s?this.group.setClipPath(s):this.group.removeClipPath()},i.prototype._incrementalRenderNormal=function(r,s){for(var d,u=s.getData(),f=u.getLayout("isSimpleBox");null!=(d=r.next());){var v=bg(u.getItemLayout(d));DA(v,u,d,f),v.incremental=!0,this.group.add(v)}},i.prototype._incrementalRenderLarge=function(r,s){m3(s,this.group,!0)},i.prototype.remove=function(r){this._clear()},i.prototype._clear=function(){this.group.removeAll(),this._data=null},i.type="candlestick",i}(Vn),Uy=function(){},v3=function(o){function i(r){var s=o.call(this,r)||this;return s.type="normalCandlestickBox",s}return he(i,o),i.prototype.getDefaultShape=function(){return new Uy},i.prototype.buildPath=function(r,s){var u=s.points;this.__simpleBox?(r.moveTo(u[4][0],u[4][1]),r.lineTo(u[6][0],u[6][1])):(r.moveTo(u[0][0],u[0][1]),r.lineTo(u[1][0],u[1][1]),r.lineTo(u[2][0],u[2][1]),r.lineTo(u[3][0],u[3][1]),r.closePath(),r.moveTo(u[4][0],u[4][1]),r.lineTo(u[5][0],u[5][1]),r.moveTo(u[6][0],u[6][1]),r.lineTo(u[7][0],u[7][1]))},i}(Nt);function bg(o,i,r){var s=o.ends;return new v3({shape:{points:r?F7(s,o):s},z2:100})}function TA(o,i){for(var r=!0,s=0;s0?"borderColor":"borderColor0"])||r.get(["itemStyle",o>0?"color":"color0"]),f=r.getModel("itemStyle").getItemStyle(h3);i.useStyle(f),i.style.fill=null,i.style.stroke=u}var V7=p3,AA=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return he(i,o),i.prototype.getShadowDim=function(){return"open"},i.prototype.brushSelector=function(r,s,u){var f=s.getItemLayout(r);return f&&u.rect(f.brushRect)},i.type="series.candlestick",i.dependencies=["xAxis","yAxis","grid"],i.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},i}(vt);qr(AA,o3,!0);var L1=AA;function B7(o){!o||!we(o.series)||q(o.series,function(i){at(i)&&"k"===i.type&&(i.type="candlestick")})}var H7=["itemStyle","borderColor"],F1=["itemStyle","borderColor0"],z7=["itemStyle","color"],Gy=["itemStyle","color0"],G7={seriesType:"candlestick",plan:De(),performRawSeries:!0,reset:function(i,r){function s(d,p){return p.get(d>0?z7:Gy)}function u(d,p){return p.get(d>0?H7:F1)}if(!r.isSeriesFiltered(i))return!i.pipelineContext.large&&{progress:function(p,v){for(var g;null!=(g=p.next());){var m=v.getItemModel(g),y=v.getItemLayout(g).sign,b=m.getItemStyle();b.fill=s(y,m),b.stroke=u(y,m)||b.fill,Se(v.ensureUniqueItemVisual(g,"style"),b)}}}}},jy="undefined"!=typeof Float32Array?Float32Array:Array;function _3(o,i,r,s,u){return r>s?-1:r0?o.get(u,i-1)<=s?1:-1:1}var Y7={seriesType:"candlestick",plan:De(),reset:function(i){var r=i.coordinateSystem,s=i.getData(),u=function(o,i){var s,r=o.getBaseAxis(),u="category"===r.type?r.getBandWidth():(s=r.getExtent(),Math.abs(s[1]-s[0])/i.count()),f=Fe(ot(o.get("barMaxWidth"),u),u),d=Fe(ot(o.get("barMinWidth"),1),u),p=o.get("barWidth");return null!=p?Fe(p,u):Math.max(Math.min(u/2,f),d)}(i,s),p=["x","y"],v=s.getDimensionIndex(s.mapDimension(p[0])),g=Te(s.mapDimensionsAll(p[1]),s.getDimensionIndex,s),m=g[0],y=g[1],b=g[2],w=g[3];if(s.setLayout({candleWidth:u,isSimpleBox:u<=1.3}),!(v<0||g.length<4))return{progress:i.pipelineContext.large?function(x,T){for(var R,U,P=new jy(4*x.count),O=0,V=[],B=[],j=T.getStore();null!=(U=x.next());){var X=j.get(v,U),Z=j.get(m,U),$=j.get(y,U),te=j.get(b,U),ee=j.get(w,U);isNaN(X)||isNaN(te)||isNaN(ee)?(P[O++]=NaN,O+=3):(P[O++]=_3(j,U,Z,$,y),V[0]=X,V[1]=te,R=r.dataToPoint(V,null,B),P[O++]=R?R[0]:NaN,P[O++]=R?R[1]:NaN,V[1]=ee,R=r.dataToPoint(V,null,B),P[O++]=R?R[1]:NaN)}T.setLayout("largePoints",P)}:function(x,T){for(var P,O=T.getStore();null!=(P=x.next());){var R=O.get(v,P),V=O.get(m,P),B=O.get(y,P),U=O.get(b,P),j=O.get(w,P),X=Math.min(V,B),Z=Math.max(V,B),$=de(X,R),te=de(Z,R),ee=de(U,R),le=de(j,R),oe=[];ge(oe,te,0),ge(oe,$,1),oe.push(xe(le),xe(te),xe(ee),xe($)),T.setItemLayout(P,{sign:_3(O,P,V,B,y),initBaseline:V>B?te[1]:$[1],ends:oe,brushRect:(Me=U,ze=j,Je=R,mt=void 0,Qt=void 0,mt=de(Me,Je),Qt=de(ze,Je),mt[0]-=u/2,Qt[0]-=u/2,{x:mt[0],y:mt[1],width:u,height:Qt[1]-mt[1]})})}var Me,ze,Je,mt,Qt;function de(Me,ze){var Je=[];return Je[0]=ze,Je[1]=Me,isNaN(ze)||isNaN(Me)?[NaN,NaN]:r.dataToPoint(Je)}function ge(Me,ze,Je){var mt=ze.slice(),Qt=ze.slice();mt[0]=Rf(mt[0]+u/2,1,!1),Qt[0]=Rf(Qt[0]-u/2,1,!0),Je?Me.push(mt,Qt):Me.push(Qt,mt)}function xe(Me){return Me[0]=Rf(Me[0],1),Me}}}}};function y3(o,i){var r=i.rippleEffectColor||i.color;o.eachChild(function(s){s.attr({z:i.z,zlevel:i.zlevel,style:{stroke:"stroke"===i.brushType?r:null,fill:"fill"===i.brushType?r:null}})})}var Z7=function(o){function i(r,s){var u=o.call(this)||this,f=new j_(r,s),d=new ct;return u.add(f),u.add(d),u.updateData(r,s),u}return he(i,o),i.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},i.prototype.startEffectAnimation=function(r){for(var s=r.symbolType,u=r.color,f=r.rippleNumber,d=this.childAt(1),p=0;p0&&(v=this._getLineLength(f)/m*1e3),(v!==this._period||g!==this._loop)&&(f.stopAnimation(),v>0)){var b=void 0;b="function"==typeof y?y(u):y,f.__t>0&&(b=-v*f.__t),f.__t=0;var w=f.animate("",g).when(v,{__t:1}).delay(b).during(function(){d._updateSymbolPosition(f)});g||w.done(function(){d.remove(f)}),w.start()}this._period=v,this._loop=g}},i.prototype._getLineLength=function(r){return Vs(r.__p1,r.__cp1)+Vs(r.__cp1,r.__p2)},i.prototype._updateAnimationPoints=function(r,s){r.__p1=s[0],r.__p2=s[1],r.__cp1=s[2]||[(s[0][0]+s[1][0])/2,(s[0][1]+s[1][1])/2]},i.prototype.updateData=function(r,s,u){this.childAt(0).updateData(r,s,u),this._updateEffectSymbol(r,s)},i.prototype._updateSymbolPosition=function(r){var s=r.__p1,u=r.__p2,f=r.__cp1,d=r.__t,p=[r.x,r.y],v=p.slice(),g=Fi,m=oM;p[0]=g(s[0],f[0],u[0],d),p[1]=g(s[1],f[1],u[1],d);var y=m(s[0],f[0],u[0],d),b=m(s[1],f[1],u[1],d);r.rotation=-Math.atan2(b,y)-Math.PI/2,("line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)&&(void 0!==r.__lastT&&r.__lastT=0&&!(f[v]<=s);v--);v=Math.min(v,d-2)}else{for(v=p;vs);v++);v=Math.min(v-1,d-2)}var m=(s-f[v])/(f[v+1]-f[v]),y=u[v],b=u[v+1];r.x=y[0]*(1-m)+m*b[0],r.y=y[1]*(1-m)+m*b[1],r.rotation=-Math.atan2(b[1]-y[1],b[0]-y[0])-Math.PI/2,this._lastFrame=v,this._lastFramePercent=s,r.ignore=!1}},i}(C3),M3=function(){this.polyline=!1,this.curveness=0,this.segs=[]},EA=function(o){function i(r){return o.call(this,r)||this}return he(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new M3},i.prototype.buildPath=function(r,s){var u=s.segs,f=s.curveness;if(s.polyline)for(var d=0;d0){r.moveTo(u[d++],u[d++]);for(var v=1;v0?r.quadraticCurveTo((g+y)/2-(m-b)*f,(m+b)/2-(y-g)*f,y,b):r.lineTo(y,b)}},i.prototype.findDataIndex=function(r,s){var u=this.shape,f=u.segs,d=u.curveness,p=this.style.lineWidth;if(u.polyline)for(var v=0,g=0;g0)for(var y=f[g++],b=f[g++],w=1;w0){if(Si(y,b,(y+S)/2-(b-M)*d,(b+M)/2-(S-y)*d,S,M,p,r,s))return v}else if(gf(y,b,S,M,p,r,s))return v;v++}return-1},i}(Nt),rW=function(){function o(){this.group=new ct}return o.prototype.isPersistent=function(){return!this._incremental},o.prototype.updateData=function(i){this.group.removeAll();var r=new EA({rectHover:!0,cursor:"default"});r.setShape({segs:i.getLayout("linesPoints")}),this._setCommon(r,i),this.group.add(r),this._incremental=null},o.prototype.incrementalPrepareUpdate=function(i){this.group.removeAll(),this._clearIncremental(),i.count()>5e5?(this._incremental||(this._incremental=new Tv({silent:!0})),this.group.add(this._incremental)):this._incremental=null},o.prototype.incrementalUpdate=function(i,r){var s=new EA;s.setShape({segs:r.getLayout("linesPoints")}),this._setCommon(s,r,!!this._incremental),this._incremental?this._incremental.addDisplayable(s,!0):(s.rectHover=!0,s.cursor="default",s.__startIndex=i.start,this.group.add(s))},o.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},o.prototype._setCommon=function(i,r,s){var u=r.hostModel;i.setShape({polyline:u.get("polyline"),curveness:u.get(["lineStyle","curveness"])}),i.useStyle(u.getModel("lineStyle").getLineStyle()),i.style.strokeNoScale=!0;var f=r.getVisual("style");if(f&&f.stroke&&i.setStyle("stroke",f.stroke),i.setStyle("fill",null),!s){var d=ht(i);d.seriesIndex=u.seriesIndex,i.on("mousemove",function(p){d.dataIndex=null;var v=i.findDataIndex(p.offsetX,p.offsetY);v>0&&(d.dataIndex=v+i.__startIndex)})}},o.prototype._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()},o}(),x3={seriesType:"lines",plan:De(),reset:function(i){var r=i.coordinateSystem,s=i.get("polyline"),u=i.pipelineContext.large;return{progress:function(d,p){var v=[];if(u){var g=void 0,m=d.end-d.start;if(s){for(var y=0,b=d.start;b ")})},i.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},i.prototype.getProgressive=function(){var r=this.option.progressive;return null==r?this.option.large?1e4:this.get("progressive"):r},i.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return null==r?this.option.large?2e4:this.get("progressiveThreshold"):r},i.type="series.lines",i.dependencies=["grid","polar","geo","calendar"],i.defaultOption={coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},i}(vt);function N1(o){return o instanceof Array||(o=[o,o]),o}var lW={seriesType:"lines",reset:function(i){var r=N1(i.get("symbol")),s=N1(i.get("symbolSize")),u=i.getData();return u.setVisual("fromSymbol",r&&r[0]),u.setVisual("toSymbol",r&&r[1]),u.setVisual("fromSymbolSize",s&&s[0]),u.setVisual("toSymbolSize",s&&s[1]),{dataEach:u.hasItemOption?function(d,p){var v=d.getItemModel(p),g=N1(v.getShallow("symbol",!0)),m=N1(v.getShallow("symbolSize",!0));g[0]&&d.setItemVisual(p,"fromSymbol",g[0]),g[1]&&d.setItemVisual(p,"toSymbol",g[1]),m[0]&&d.setItemVisual(p,"fromSymbolSize",m[0]),m[1]&&d.setItemVisual(p,"toSymbolSize",m[1])}:null}}},A3=function(){function o(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var i=md();this.canvas=i}return o.prototype.update=function(i,r,s,u,f,d){var p=this._getBrush(),v=this._getGradient(f,"inRange"),g=this._getGradient(f,"outOfRange"),m=this.pointSize+this.blurSize,y=this.canvas,b=y.getContext("2d"),w=i.length;y.width=r,y.height=s;for(var S=0;S0){var te=d(O)?v:g;O>0&&(O=O*Z+j),V[B++]=te[$],V[B++]=te[$+1],V[B++]=te[$+2],V[B++]=te[$+3]*O*256}else B+=4}return b.putImageData(R,0,0),y},o.prototype._getBrush=function(){var i=this._brushCanvas||(this._brushCanvas=md()),r=this.pointSize+this.blurSize,s=2*r;i.width=s,i.height=s;var u=i.getContext("2d");return u.clearRect(0,0,s,s),u.shadowOffsetX=s,u.shadowBlur=this.blurSize,u.shadowColor="#000",u.beginPath(),u.arc(-r,r,this.pointSize,0,2*Math.PI,!0),u.closePath(),u.fill(),i},o.prototype._getGradient=function(i,r){for(var s=this._gradientPixels,u=s[r]||(s[r]=new Uint8ClampedArray(1024)),f=[0,0,0,0],d=0,p=0;p<256;p++)i[r](p/255,!0,f),u[d++]=f[0],u[d++]=f[1],u[d++]=f[2],u[d++]=f[3];return u},o}();function Ta(o){var i=o.dimensions;return"lng"===i[0]&&"lat"===i[1]}var V1=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f;s.eachComponent("visualMap",function(p){p.eachTargetSeries(function(v){v===r&&(f=p)})}),this.group.removeAll(),this._incrementalDisplayable=null;var d=r.coordinateSystem;"cartesian2d"===d.type||"calendar"===d.type?this._renderOnCartesianAndCalendar(r,u,0,r.getData().count()):Ta(d)&&this._renderOnGeo(d,r,f,u)},i.prototype.incrementalPrepareRender=function(r,s,u){this.group.removeAll()},i.prototype.incrementalRender=function(r,s,u,f){var d=s.coordinateSystem;d&&(Ta(d)?this.render(s,u,f):this._renderOnCartesianAndCalendar(s,f,r.start,r.end,!0))},i.prototype._renderOnCartesianAndCalendar=function(r,s,u,f,d){var v,g,m,y,p=r.coordinateSystem;if(uc(p,"cartesian2d")){var b=p.getAxis("x"),w=p.getAxis("y");v=b.getBandWidth(),g=w.getBandWidth(),m=b.scale.getExtent(),y=w.scale.getExtent()}for(var S=this.group,M=r.getData(),x=r.getModel(["emphasis","itemStyle"]).getItemStyle(),T=r.getModel(["blur","itemStyle"]).getItemStyle(),P=r.getModel(["select","itemStyle"]).getItemStyle(),O=lr(r),R=r.get(["emphasis","focus"]),V=r.get(["emphasis","blurScope"]),B=uc(p,"cartesian2d")?[M.mapDimension("x"),M.mapDimension("y"),M.mapDimension("value")]:[M.mapDimension("time"),M.mapDimension("value")],U=u;Um[1]||$y[1])continue;var te=p.dataToPoint([Z,$]);j=new sn({shape:{x:Math.floor(Math.round(te[0])-v/2),y:Math.floor(Math.round(te[1])-g/2),width:Math.ceil(v),height:Math.ceil(g)},style:X})}else{if(isNaN(M.get(B[1],U)))continue;j=new sn({z2:1,shape:p.dataToRect([M.get(B[0],U)]).contentShape,style:X})}var ee=M.getItemModel(U);if(M.hasItemOption){var le=ee.getModel("emphasis");x=le.getModel("itemStyle").getItemStyle(),T=ee.getModel(["blur","itemStyle"]).getItemStyle(),P=ee.getModel(["select","itemStyle"]).getItemStyle(),R=le.get("focus"),V=le.get("blurScope"),O=lr(ee)}var oe=r.getRawValue(U),de="-";oe&&null!=oe[2]&&(de=oe[2]+""),Mi(j,O,{labelFetcher:r,labelDataIndex:U,defaultOpacity:X.opacity,defaultText:de}),j.ensureState("emphasis").style=x,j.ensureState("blur").style=T,j.ensureState("select").style=P,qn(j,R,V),j.incremental=d,d&&(j.states.emphasis.hoverLayer=!0),S.add(j),M.setItemGraphicEl(U,j)}},i.prototype._renderOnGeo=function(r,s,u,f){var d=u.targetVisuals.inRange,p=u.targetVisuals.outOfRange,v=s.getData(),g=this._hmLayer||this._hmLayer||new A3;g.blurSize=s.get("blurSize"),g.pointSize=s.get("pointSize"),g.minOpacity=s.get("minOpacity"),g.maxOpacity=s.get("maxOpacity");var m=r.getViewRect().clone(),y=r.getRoamTransform();m.applyTransform(y);var b=Math.max(m.x,0),w=Math.max(m.y,0),S=Math.min(m.width+m.x,f.getWidth()),M=Math.min(m.height+m.y,f.getHeight()),x=S-b,T=M-w,P=[v.mapDimension("lng"),v.mapDimension("lat"),v.mapDimension("value")],O=v.mapArray(P,function(U,j,X){var Z=r.dataToPoint([U,j]);return Z[0]-=b,Z[1]-=w,Z.push(X),Z}),R=u.getExtent(),V="visualMap.continuous"===u.type?function(o,i){var r=o[1]-o[0];return i=[(i[0]-o[0])/r,(i[1]-o[0])/r],function(s){return s>=i[0]&&s<=i[1]}}(R,u.option.range):function(o,i,r){var s=o[1]-o[0],u=(i=Te(i,function(d){return{interval:[(d.interval[0]-o[0])/s,(d.interval[1]-o[0])/s]}})).length,f=0;return function(d){var p;for(p=f;p=0;p--){var v;if((v=i[p].interval)[0]<=d&&d<=v[1]){f=p;break}}return p>=0&&p0?1:m<0?-1:0})(r,f,u,s,b),function(o,i,r,s,u,f,d,p,v,g){var S,m=v.valueDim,y=v.categoryDim,b=Math.abs(r[y.wh]),w=o.getItemVisual(i,"symbolSize");(S=we(w)?w.slice():null==w?["100%","100%"]:[w,w])[y.index]=Fe(S[y.index],b),S[m.index]=Fe(S[m.index],s?b:Math.abs(f)),g.symbolSize=S,(g.symbolScale=[S[0]/p,S[1]/p])[m.index]*=(v.isHorizontal?-1:1)*d}(o,i,u,f,0,b.boundingLength,b.pxSign,m,s,b),function(o,i,r,s,u){var f=o.get(vW)||0;f&&(Wy.attr({scaleX:i[0],scaleY:i[1],rotation:r}),Wy.updateTransform(),f/=Wy.getLineScale(),f*=i[s.valueDim.index]),u.valueLineWidth=f}(r,b.symbolScale,g,s,b);var w=b.symbolSize,S=Ah(r.get("symbolOffset"),w);return function(o,i,r,s,u,f,d,p,v,g,m,y){var b=m.categoryDim,w=m.valueDim,S=y.pxSign,M=Math.max(i[w.index]+p,0),x=M;if(s){var T=Math.abs(v),P=ni(o.get("symbolMargin"),"15%")+"",O=!1;P.lastIndexOf("!")===P.length-1&&(O=!0,P=P.slice(0,P.length-1));var R=Fe(P,i[w.index]),V=Math.max(M+2*R,0),B=O?0:2*R,U=of(s),j=U?s:H3((T+B)/V);V=M+2*(R=(T-j*M)/2/(O?j:Math.max(j-1,1))),B=O?0:2*R,!U&&"fixed"!==s&&(j=g?H3((Math.abs(g)+B)/V):0),x=j*V-B,y.repeatTimes=j,y.symbolMargin=R}var Z=S*(x/2),$=y.pathPosition=[];$[b.index]=r[b.wh]/2,$[w.index]="start"===d?Z:"end"===d?v-Z:v/2,f&&($[0]+=f[0],$[1]+=f[1]);var te=y.bundlePosition=[];te[b.index]=r[b.xy],te[w.index]=r[w.xy];var ee=y.barRectShape=Se({},r);ee[w.wh]=S*Math.max(Math.abs(r[w.wh]),Math.abs($[w.index]+Z)),ee[b.wh]=r[b.wh];var le=y.clipShape={};le[b.xy]=-r[b.xy],le[b.wh]=m.ecSize[b.wh],le[w.xy]=0,le[w.wh]=r[w.wh]}(r,w,u,f,0,S,p,b.valueLineWidth,b.boundingLength,b.repeatCutLength,s,b),b}function H1(o,i){return o.toGlobalCoord(o.dataToCoord(o.scale.parse(i)))}function ad(o){var i=o.symbolPatternSize,r=Ir(o.symbolType,-i/2,-i/2,i,i);return r.attr({culling:!0}),"image"!==r.type&&r.setStyle({strokeNoScale:!0}),r}function LA(o,i,r,s){var u=o.__pictorialBundle,p=r.pathPosition,v=i.valueDim,g=r.repeatTimes||0,m=0,y=r.symbolSize[i.valueDim.index]+r.valueLineWidth+2*r.symbolMargin;for(NA(o,function(M){M.__pictorialAnimationIndex=m,M.__pictorialRepeatTimes=g,m0:T<0)&&(P=g-1-M),x[v.index]=y*(P-g/2+.5)+p[v.index],{x:x[0],y:x[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function O3(o,i,r,s){var u=o.__pictorialBundle,f=o.__pictorialMainPath;f?od(f,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,s):(f=o.__pictorialMainPath=ad(r),u.add(f),od(f,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,s))}function I3(o,i,r){var s=Se({},i.barRectShape),u=o.__pictorialBarRect;u?od(u,null,{shape:s},i,r):((u=o.__pictorialBarRect=new sn({z2:2,shape:s,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,o.add(u))}function R3(o,i,r,s){if(r.symbolClip){var u=o.__pictorialClipPath,f=Se({},r.clipShape),d=i.valueDim,p=r.animationModel,v=r.dataIndex;if(u)ln(u,{shape:f},p,v);else{f[d.wh]=0,u=new sn({shape:f}),o.__pictorialBundle.setClipPath(u),o.__pictorialClipPath=u;var g={};g[d.wh]=r.clipShape[d.wh],F[s?"updateProps":"initProps"](u,{shape:g},p,v)}}}function FA(o,i){var r=o.getItemModel(i);return r.getAnimationDelayParams=_W,r.isAnimationEnabled=yW,r}function _W(o){return{index:o.__pictorialAnimationIndex,count:o.__pictorialRepeatTimes}}function yW(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function L3(o,i,r,s){var u=new ct,f=new ct;return u.add(f),u.__pictorialBundle=f,f.x=r.bundlePosition[0],f.y=r.bundlePosition[1],r.symbolRepeat?LA(u,i,r):O3(u,0,r),I3(u,r,s),R3(u,i,r,s),u.__pictorialShapeStr=V3(o,r),u.__pictorialSymbolMeta=r,u}function N3(o,i,r,s){var u=s.__pictorialBarRect;u&&u.removeTextContent();var f=[];NA(s,function(d){f.push(d)}),s.__pictorialMainPath&&f.push(s.__pictorialMainPath),s.__pictorialClipPath&&(r=null),q(f,function(d){Cf(d,{scaleX:0,scaleY:0},r,i,function(){s.parent&&s.parent.remove(s)})}),o.setItemGraphicEl(i,null)}function V3(o,i){return[o.getItemVisual(i.dataIndex,"symbol")||"none",!!i.symbolRepeat,!!i.symbolClip].join(":")}function NA(o,i,r){q(o.__pictorialBundle.children(),function(s){s!==o.__pictorialBarRect&&i.call(r,s)})}function od(o,i,r,s,u,f){i&&o.attr(i),s.symbolClip&&!u?r&&o.attr(r):r&&F[u?"updateProps":"initProps"](o,r,s.animationModel,s.dataIndex,f)}function B3(o,i,r){var s=r.dataIndex,u=r.itemModel,f=u.getModel("emphasis"),d=f.getModel("itemStyle").getItemStyle(),p=u.getModel(["blur","itemStyle"]).getItemStyle(),v=u.getModel(["select","itemStyle"]).getItemStyle(),g=u.getShallow("cursor"),m=f.get("focus"),y=f.get("blurScope"),b=f.get("scale");NA(o,function(M){if(M instanceof si){var x=M.style;M.useStyle(Se({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},r.style))}else M.useStyle(r.style);var T=M.ensureState("emphasis");T.style=d,b&&(T.scaleX=1.1*M.scaleX,T.scaleY=1.1*M.scaleY),M.ensureState("blur").style=p,M.ensureState("select").style=v,g&&(M.cursor=g),M.z2=r.z2});var w=i.valueDim.posDesc[+(r.boundingLength>0)];Mi(o.__pictorialBarRect,lr(u),{labelFetcher:i.seriesModel,labelDataIndex:s,defaultText:Xf(i.seriesModel.getData(),s),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:w}),qn(o,m,y)}function H3(o){var i=Math.round(o);return Math.abs(o-i)<1e-4?i:Math.ceil(o)}var z3=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=this.group,d=r.getData(),p=this._data,v=r.coordinateSystem,m=v.getBaseAxis().isHorizontal(),y=v.master.getRect(),b={ecSize:{width:u.getWidth(),height:u.getHeight()},seriesModel:r,coordSys:v,coordSysExtent:[[y.x,y.x+y.width],[y.y,y.y+y.height]],isHorizontal:m,valueDim:E3[+m],categoryDim:E3[1-+m]};return d.diff(p).add(function(w){if(d.hasValue(w)){var S=FA(d,w),M=IA(d,w,S,b),x=L3(d,b,M);d.setItemGraphicEl(w,x),f.add(x),B3(x,b,M)}}).update(function(w,S){var M=p.getItemGraphicEl(S);if(d.hasValue(w)){var x=FA(d,w),T=IA(d,w,x,b),P=V3(d,T);M&&P!==M.__pictorialShapeStr&&(f.remove(M),d.setItemGraphicEl(w,null),M=null),M?function(o,i,r){ln(o.__pictorialBundle,{x:r.bundlePosition[0],y:r.bundlePosition[1]},r.animationModel,r.dataIndex),r.symbolRepeat?LA(o,i,r,!0):O3(o,0,r,!0),I3(o,r,!0),R3(o,i,r,!0)}(M,b,T):M=L3(d,b,T,!0),d.setItemGraphicEl(w,M),M.__pictorialSymbolMeta=T,f.add(M),B3(M,b,T)}else f.remove(M)}).remove(function(w){var S=p.getItemGraphicEl(w);S&&N3(p,w,S.__pictorialSymbolMeta.animationModel,S)}).execute(),this._data=d,this.group},i.prototype.remove=function(r,s){var u=this.group,f=this._data;r.get("animation")?f&&f.eachItemGraphicEl(function(d){N3(f,ht(d).dataIndex,r,d)}):u.removeAll()},i.type="pictorialBar",i}(Vn),BK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return he(i,o),i.prototype.getInitialData=function(r){return r.stack=null,o.prototype.getInitialData.apply(this,arguments)},i.type="series.pictorialBar",i.dependencies=["grid"],i.defaultOption=rh(Aw.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),i}(Aw),U3=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._layers=[],r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData(),d=this,p=this.group,v=r.getLayerSeries(),g=f.getLayout("layoutInfo"),m=g.rect,y=g.boundaryGap;function b(x){return x.name}p.x=0,p.y=m.y+y[0];var w=new Hf(this._layersSeries||[],v,b,b),S=[];function M(x,T,P){var O=d._layers;if("remove"!==x){for(var B,R=[],V=[],U=v[T].indices,j=0;jf&&(f=p),s.push(p)}for(var g=0;gf&&(f=y)}return{y0:u,max:f}}(p),g=v.y0,m=r/v.max,y=u.length,b=u[0].indices.length,S=0;SMath.PI/2?"right":"left"):te&&"center"!==te?"left"===te?(Z=d.r0+$,v>Math.PI/2&&(te="right")):"right"===te&&(Z=d.r-$,v>Math.PI/2&&(te="left")):(Z=(d.r+d.r0)/2,te="center"),R.style.align=te,R.style.verticalAlign=x(P,"verticalAlign")||"middle",R.x=Z*g+d.cx,R.y=Z*m+d.cy;var ee=x(P,"rotate"),le=0;"radial"===ee?(le=-v)<-Math.PI/2&&(le+=Math.PI):"tangential"===ee?(le=Math.PI/2-v)>Math.PI/2?le-=Math.PI:le<-Math.PI/2&&(le+=Math.PI):"number"==typeof ee&&(le=ee*Math.PI/180),R.rotation=le}),b.dirtyStyle()},i}(ir),kg="sunburstRootToNode",Y3="sunburstHighlight",TW=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u,f){var d=this;this.seriesModel=r,this.api=u,this.ecModel=s;var P,O,p=r.getData(),v=p.tree.root,g=r.getViewRoot(),m=this.group,y=r.get("renderLabelForZeroData"),b=[];g.eachNode(function(P){b.push(P)}),function(P,O){function R(B){return B.getId()}function V(B,U){!function(P,O){if(!y&&P&&!P.getValue()&&(P=null),P!==v&&O!==v)if(O&&O.piece)P?(O.piece.updateData(!1,P,r,s,u),p.setItemGraphicEl(P.dataIndex,O.piece)):function(P){!P||P.piece&&(m.remove(P.piece),P.piece=null)}(O);else if(P){var R=new W3(P,r,s,u);m.add(R),p.setItemGraphicEl(P.dataIndex,R)}}(null==B?null:P[B],null==U?null:O[U])}0===P.length&&0===O.length||new Hf(O,P,R,R).add(V).update(V).remove(St(V,null)).execute()}(b,this._oldChildren||[]),P=v,(O=g).depth>0?(d.virtualPiece?d.virtualPiece.updateData(!1,P,r,s,u):(d.virtualPiece=new W3(P,r,s,u),m.add(d.virtualPiece)),O.piece.off("click"),d.virtualPiece.on("click",function(R){d._rootToNode(O.parentNode)})):d.virtualPiece&&(m.remove(d.virtualPiece),d.virtualPiece=null),this._initEvents(),this._oldChildren=b},i.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(s){var u=!1;r.seriesModel.getViewRoot().eachNode(function(d){if(!u&&d.piece&&d.piece===s.target){var p=d.getModel().get("nodeClick");if("rootToNode"===p)r._rootToNode(d);else if("link"===p){var v=d.getModel(),g=v.get("link");g&&J0(g,v.get("target",!0)||"_blank")}u=!0}})})},i.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:kg,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},i.prototype.containPoint=function(r,s){var f=s.getData().getItemLayout(0);if(f){var d=r[0]-f.cx,p=r[1]-f.cy,v=Math.sqrt(d*d+p*p);return v<=f.r&&v>=f.r0}},i.type="sunburst",i}(Vn);function X3(o){var i=0;q(o.children,function(s){X3(s);var u=s.value;we(u)&&(u=u[0]),i+=u});var r=o.value;we(r)&&(r=r[0]),(null==r||isNaN(r))&&(r=i),r<0&&(r=0),we(o.value)?o.value[0]=r:o.value=r}var DW=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.ignoreStyleOnData=!0,r}return he(i,o),i.prototype.getInitialData=function(r,s){var u={name:r.name,children:r.data};X3(u);var f=Te(r.levels||[],function(v){return new Nn(v,this,s)},this),d=Kw.createTree(u,this,function(v){v.wrapMethod("getItemModel",function(g,m){var y=d.getNodeByDataIndex(m),b=f[y.depth];return b&&(g.parentModel=b),g})});return d.data},i.prototype.optionUpdated=function(){this.resetViewRoot()},i.prototype.getDataParams=function(r){var s=o.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(r);return s.treePathInfo=HD(u,this),s},i.prototype.getViewRoot=function(){return this._viewRoot},i.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var s=this.getRawData().tree.root;(!r||r!==s&&!s.contains(r))&&(this._viewRoot=s)},i.prototype.enableAriaDecal=function(){WF(this)},i.type="series.sunburst",i.defaultOption={zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},i}(vt),Yy=Math.PI/180;function Z3(o,i,r){i.eachSeriesByType(o,function(s){var u=s.get("center"),f=s.get("radius");we(f)||(f=[0,f]),we(u)||(u=[u,u]);var d=r.getWidth(),p=r.getHeight(),v=Math.min(d,p),g=Fe(u[0],d),m=Fe(u[1],p),y=Fe(f[0],v/2),b=Fe(f[1],v/2),w=-s.get("startAngle")*Yy,S=s.get("minAngle")*Yy,M=s.getData().tree.root,x=s.getViewRoot(),T=x.depth,P=s.get("sort");null!=P&&VA(x,P);var O=0;q(x.children,function(de){!isNaN(de.getValue())&&O++});var R=x.getValue(),V=Math.PI/(R||O)*2,B=x.depth>0,j=(b-y)/(x.height-(B?-1:1)||1),X=s.get("clockwise"),Z=s.get("stillShowZeroSum"),$=X?1:-1;if(B){var oe=2*Math.PI;M.setLayout({angle:oe,startAngle:w,endAngle:w+oe,clockwise:X,cx:g,cy:m,r0:y,r:y+j})}!function de(ge,_e){if(ge){var xe=_e;if(ge!==M){var Me=ge.getValue(),ze=0===R&&Z?V:Me*V;ze1;)d=d.parentNode;var p=u.getColorFromPalette(d.name||d.dataIndex+"",i);return s.depth>1&&"string"==typeof p&&(p=lO(p,(s.depth-1)/(f-1)*.5)),p}(d,s,f.root.height)),Se(u.ensureUniqueItemVisual(d.dataIndex,"style"),v)})})}var PW={color:"fill",borderColor:"stroke"},HA={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Xa=pn(),IW=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},i.prototype.getInitialData=function(r,s){return gl(null,this)},i.prototype.getDataParams=function(r,s,u){var f=o.prototype.getDataParams.call(this,r,s);return u&&(f.info=Xa(u).info),f},i.type="series.custom",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},i}(vt);function RW(o,i){return i=i||[0,0],Te(["x","y"],function(r,s){var u=this.getAxis(r),f=i[s],d=o[s]/2;return"category"===u.type?u.getBandWidth():Math.abs(u.dataToCoord(f-d)-u.dataToCoord(f+d))},this)}function LW(o,i){return i=i||[0,0],Te([0,1],function(r){var s=i[r],u=o[r]/2,f=[],d=[];return f[r]=s-u,d[r]=s+u,f[1-r]=d[1-r]=i[1-r],Math.abs(this.dataToPoint(f)[r]-this.dataToPoint(d)[r])},this)}function NW(o,i){var r=this.getAxis(),s=i instanceof Array?i[0]:i,u=(o instanceof Array?o[0]:o)/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(s-u)-r.dataToCoord(s+u))}function K3(o,i){return i=i||[0,0],Te(["Radius","Angle"],function(r,s){var f=this["get"+r+"Axis"](),d=i[s],p=o[s]/2,v="category"===f.type?f.getBandWidth():Math.abs(f.dataToCoord(d-p)-f.dataToCoord(d+p));return"Angle"===r&&(v=v*Math.PI/180),v},this)}function $3(o,i,r,s){return o&&(o.legacy||!1!==o.legacy&&!r&&!s&&"tspan"!==i&&("text"===i||Ae(o,"text")))}function Q3(o,i,r){var u,f,d,s=o;if("text"===i)d=s;else{d={},Ae(s,"text")&&(d.text=s.text),Ae(s,"rich")&&(d.rich=s.rich),Ae(s,"textFill")&&(d.fill=s.textFill),Ae(s,"textStroke")&&(d.stroke=s.textStroke),Ae(s,"fontFamily")&&(d.fontFamily=s.fontFamily),Ae(s,"fontSize")&&(d.fontSize=s.fontSize),Ae(s,"fontStyle")&&(d.fontStyle=s.fontStyle),Ae(s,"fontWeight")&&(d.fontWeight=s.fontWeight),f={type:"text",style:d,silent:!0},u={};var p=Ae(s,"textPosition");r?u.position=p?s.textPosition:"inside":p&&(u.position=s.textPosition),Ae(s,"textPosition")&&(u.position=s.textPosition),Ae(s,"textOffset")&&(u.offset=s.textOffset),Ae(s,"textRotation")&&(u.rotation=s.textRotation),Ae(s,"textDistance")&&(u.distance=s.textDistance)}return J3(d,o),q(d.rich,function(v){J3(v,v)}),{textConfig:u,textContent:f}}function J3(o,i){!i||(i.font=i.textFont||i.font,Ae(i,"textStrokeWidth")&&(o.lineWidth=i.textStrokeWidth),Ae(i,"textAlign")&&(o.align=i.textAlign),Ae(i,"textVerticalAlign")&&(o.verticalAlign=i.textVerticalAlign),Ae(i,"textLineHeight")&&(o.lineHeight=i.textLineHeight),Ae(i,"textWidth")&&(o.width=i.textWidth),Ae(i,"textHeight")&&(o.height=i.textHeight),Ae(i,"textBackgroundColor")&&(o.backgroundColor=i.textBackgroundColor),Ae(i,"textPadding")&&(o.padding=i.textPadding),Ae(i,"textBorderColor")&&(o.borderColor=i.textBorderColor),Ae(i,"textBorderWidth")&&(o.borderWidth=i.textBorderWidth),Ae(i,"textBorderRadius")&&(o.borderRadius=i.textBorderRadius),Ae(i,"textBoxShadowColor")&&(o.shadowColor=i.textBoxShadowColor),Ae(i,"textBoxShadowBlur")&&(o.shadowBlur=i.textBoxShadowBlur),Ae(i,"textBoxShadowOffsetX")&&(o.shadowOffsetX=i.textBoxShadowOffsetX),Ae(i,"textBoxShadowOffsetY")&&(o.shadowOffsetY=i.textBoxShadowOffsetY))}function eV(o,i,r){var s=o;s.textPosition=s.textPosition||r.position||"inside",null!=r.offset&&(s.textOffset=r.offset),null!=r.rotation&&(s.textRotation=r.rotation),null!=r.distance&&(s.textDistance=r.distance);var u=s.textPosition.indexOf("inside")>=0,f=o.fill||"#000";tV(s,i);var d=null==s.textFill;return u?d&&(s.textFill=r.insideFill||"#fff",!s.textStroke&&r.insideStroke&&(s.textStroke=r.insideStroke),!s.textStroke&&(s.textStroke=f),null==s.textStrokeWidth&&(s.textStrokeWidth=2)):(d&&(s.textFill=o.fill||r.outsideFill||"#000"),!s.textStroke&&r.outsideStroke&&(s.textStroke=r.outsideStroke)),s.text=i.text,s.rich=i.rich,q(i.rich,function(p){tV(p,p)}),s}function tV(o,i){!i||(Ae(i,"fill")&&(o.textFill=i.fill),Ae(i,"stroke")&&(o.textStroke=i.fill),Ae(i,"lineWidth")&&(o.textStrokeWidth=i.lineWidth),Ae(i,"font")&&(o.font=i.font),Ae(i,"fontStyle")&&(o.fontStyle=i.fontStyle),Ae(i,"fontWeight")&&(o.fontWeight=i.fontWeight),Ae(i,"fontSize")&&(o.fontSize=i.fontSize),Ae(i,"fontFamily")&&(o.fontFamily=i.fontFamily),Ae(i,"align")&&(o.textAlign=i.align),Ae(i,"verticalAlign")&&(o.textVerticalAlign=i.verticalAlign),Ae(i,"lineHeight")&&(o.textLineHeight=i.lineHeight),Ae(i,"width")&&(o.textWidth=i.width),Ae(i,"height")&&(o.textHeight=i.height),Ae(i,"backgroundColor")&&(o.textBackgroundColor=i.backgroundColor),Ae(i,"padding")&&(o.textPadding=i.padding),Ae(i,"borderColor")&&(o.textBorderColor=i.borderColor),Ae(i,"borderWidth")&&(o.textBorderWidth=i.borderWidth),Ae(i,"borderRadius")&&(o.textBorderRadius=i.borderRadius),Ae(i,"shadowColor")&&(o.textBoxShadowColor=i.shadowColor),Ae(i,"shadowBlur")&&(o.textBoxShadowBlur=i.shadowBlur),Ae(i,"shadowOffsetX")&&(o.textBoxShadowOffsetX=i.shadowOffsetX),Ae(i,"shadowOffsetY")&&(o.textBoxShadowOffsetY=i.shadowOffsetY),Ae(i,"textShadowColor")&&(o.textShadowColor=i.textShadowColor),Ae(i,"textShadowBlur")&&(o.textShadowBlur=i.textShadowBlur),Ae(i,"textShadowOffsetX")&&(o.textShadowOffsetX=i.textShadowOffsetX),Ae(i,"textShadowOffsetY")&&(o.textShadowOffsetY=i.textShadowOffsetY))}var BW={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]};function UA(o,i,r){var s=o[r],u=BW[r];s&&(i[u[0]]=s[0],i[u[1]]=s[1])}function Jh(o,i,r){null!=o[r]&&(i[r]=o[r])}function GA(o,i,r){r&&(o[i]=r[i])}function nV(o,i,r,s,u){var f=r[o];if(f){var p,d=i[o],v=f.enterFrom;if(u&&v){!p&&(p=s[o]={});for(var g=_n(v),m=0;m=0){!p&&(p=s[o]={});var S=_n(d);for(m=0;ms[1]&&s.reverse(),{coordSys:{type:"polar",cx:o.cx,cy:o.cy,r:s[1],r0:s[0]},api:{coord:function(f){var d=i.dataToRadius(f[0]),p=r.dataToAngle(f[1]),v=o.coordToPoint([d,p]);return v.push(d,p*Math.PI/180),v},size:Ye(K3,o)}}},calendar:function(o){var i=o.getRect(),r=o.getRangeInfo();return{coordSys:{type:"calendar",x:i.x,y:i.y,width:i.width,height:i.height,cellWidth:o.getCellWidth(),cellHeight:o.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(u,f){return o.dataToPoint(u,f)}}}}};function np(o){return o instanceof Nt}function wc(o){return o instanceof as}var WA=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u,f){var d=this._data,p=r.getData(),v=this.group,g=XA(r,p,s,u);d||v.removeAll(),p.diff(d).add(function(y){ip(u,null,y,g(y,f),r,v,p)}).remove(function(y){QA(d.getItemGraphicEl(y),r,v)}).update(function(y,b){var w=d.getItemGraphicEl(b);ip(u,w,y,g(y,f),r,v,p)}).execute();var m=r.get("clip",!0)?Tw(r.coordinateSystem,!1,r):null;m?v.setClipPath(m):v.removeClipPath(),this._data=p},i.prototype.incrementalPrepareRender=function(r,s,u){this.group.removeAll(),this._data=null},i.prototype.incrementalRender=function(r,s,u,f,d){var p=s.getData(),v=XA(s,p,u,f);function g(b){b.isGroup||(b.incremental=!0,b.ensureState("emphasis").hoverLayer=!0)}for(var m=r.start;m=0){var w=o.getAnimationStyleProps(),S=w?w.style:null;if(S){!d&&(d=s.style={});var M=_n(r);for(g=0;g=0?i.getStore().get(ge,oe):void 0}var _e=i.get(de.name,oe),xe=de&&de.ordinalMeta;return xe?xe.categories[_e]:_e},styleEmphasis:function(le,oe){null==oe&&(oe=g);var de=P(oe,Cc).getItemStyle(),ge=O(oe,Cc),_e=Or(ge,null,null,!0,!0);_e.text=ge.getShallow("show")?Qo(o.getFormattedLabel(oe,Cc),o.getFormattedLabel(oe,Mu),Xf(i,oe)):null;var xe=U0(ge,null,!0);return X(le,de),de=eV(de,_e,xe),le&&j(de,le),de.legacy=!0,de},visual:function(le,oe){if(null==oe&&(oe=g),Ae(PW,le)){var de=i.getItemVisual(oe,"style");return de?de[PW[le]]:null}if(Ae(HA,le))return i.getItemVisual(oe,le)},barLayout:function(le){if("cartesian2d"===f.type)return function(o){var i=[],r=o.axis,s="axis0";if("category"===r.type){for(var u=r.getBandWidth(),f=0;f=m;y--)QA(i.childAt(y),u,i)}}(o,m,r,s,u),p>=0?f.replaceAt(m,p):f.add(m),m}function KA(o,i,r){var s=Xa(o),u=i.type,f=i.shape,d=i.style;return r.isUniversalTransitionEnabled()||null!=u&&u!==s.customGraphicType||"path"===u&&function(o){return o&&(Ae(o,"pathData")||Ae(o,"d"))}(f)&&yo(f)!==s.customPathData||"image"===u&&Ae(d,"image")&&d.image!==s.customImagePath}function oV(o,i,r){var s=i?Qy(o,i):o,u=i?$A(o,s,Cc):o.style,f=o.type,d=s?s.textConfig:null,p=o.textContent,v=p?i?Qy(p,i):p:null;if(u&&(r.isLegacy||$3(u,f,!!d,!!v))){r.isLegacy=!0;var g=Q3(u,f,!i);!d&&g.textConfig&&(d=g.textConfig),!v&&g.textContent&&(v=g.textContent)}!i&&v&&!v.type&&(v.type="text");var y=i?r[i]:r.normal;y.cfg=d,y.conOpt=v}function Qy(o,i){return i?o?o[i]:null:o}function $A(o,i,r){var s=i&&i.style;return null==s&&r===Cc&&o&&(s=o.styleEmphasis),s}function sV(o,i){var r=o&&o.name;return null!=r?r:"e\0\0"+i}function op(o,i){var r=this.context;aV(r.api,null!=i?r.oldChildren[i]:null,r.dataIndex,null!=o?r.newChildren[o]:null,r.seriesModel,r.group)}function lV(o){var i=this.context;QA(i.oldChildren[o],i.seriesModel,i.group)}function QA(o,i,r){if(o){var s=Xa(o).leaveToProps;s?ln(o,s,i,{cb:function(){r.remove(o)}}):r.remove(o)}}function yo(o){return o&&(o.pathData||o.d)}var sp=pn(),JA=rt,uV=Ye;function q1(o,i,r,s){XW(sp(r).lastProp,s)||(sp(r).lastProp=s,i?ln(r,s,o):(r.stopAnimation(),r.attr(s)))}function XW(o,i){if(at(o)&&at(i)){var r=!0;return q(i,function(s,u){r=r&&XW(o[u],s)}),!!r}return o===i}function ZW(o,i){o[i.get(["label","show"])?"show":"hide"]()}function cV(o){return{x:o.x||0,y:o.y||0,rotation:o.rotation||0}}function KW(o,i,r){var s=i.get("z"),u=i.get("zlevel");o&&o.traverse(function(f){"group"!==f.type&&(null!=s&&(f.z=s),null!=u&&(f.zlevel=u),f.silent=r)})}var fV=function(){function o(){this._dragging=!1,this.animationThreshold=15}return o.prototype.render=function(i,r,s,u){var f=r.get("value"),d=r.get("status");if(this._axisModel=i,this._axisPointerModel=r,this._api=s,u||this._lastValue!==f||this._lastStatus!==d){this._lastValue=f,this._lastStatus=d;var p=this._group,v=this._handle;if(!d||"hide"===d)return p&&p.hide(),void(v&&v.hide());p&&p.show(),v&&v.show();var g={};this.makeElOption(g,f,i,r,s);var m=g.graphicKey;m!==this._lastGraphicKey&&this.clear(s),this._lastGraphicKey=m;var y=this._moveAnimation=this.determineAnimation(i,r);if(p){var b=St(q1,r,y);this.updatePointerEl(p,g,b),this.updateLabelEl(p,g,b,r)}else p=this._group=new ct,this.createPointerEl(p,g,i,r),this.createLabelEl(p,g,i,r),s.getZr().add(p);KW(p,r,!0),this._renderHandle(f)}},o.prototype.remove=function(i){this.clear(i)},o.prototype.dispose=function(i){this.clear(i)},o.prototype.determineAnimation=function(i,r){var s=r.get("animation"),u=i.axis,f="category"===u.type,d=r.get("snap");if(!d&&!f)return!1;if("auto"===s||null==s){var p=this.animationThreshold;if(f&&u.getBandWidth()>p)return!0;if(d){var v=CF(i).seriesDataCount,g=u.getExtent();return Math.abs(g[0]-g[1])/v>p}return!1}return!0===s},o.prototype.makeElOption=function(i,r,s,u,f){},o.prototype.createPointerEl=function(i,r,s,u){var f=r.pointer;if(f){var d=sp(i).pointerEl=new F[f.type](JA(r.pointer));i.add(d)}},o.prototype.createLabelEl=function(i,r,s,u){if(r.label){var f=sp(i).labelEl=new fn(JA(r.label));i.add(f),ZW(f,u)}},o.prototype.updatePointerEl=function(i,r,s){var u=sp(i).pointerEl;u&&r.pointer&&(u.setStyle(r.pointer.style),s(u,{shape:r.pointer.shape}))},o.prototype.updateLabelEl=function(i,r,s,u){var f=sp(i).labelEl;f&&(f.setStyle(r.label.style),s(f,{x:r.label.x,y:r.label.y}),ZW(f,u))},o.prototype._renderHandle=function(i){if(!this._dragging&&this.updateHandleTransform){var p,r=this._axisPointerModel,s=this._api.getZr(),u=this._handle,f=r.getModel("handle"),d=r.get("status");if(!f.get("show")||!d||"hide"===d)return u&&s.remove(u),void(this._handle=null);this._handle||(p=!0,u=this._handle=cl(f.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(m){Vl(m.event)},onmousedown:uV(this._onHandleDragMove,this,0,0),drift:uV(this._onHandleDragMove,this),ondragend:uV(this._onHandleDragEnd,this)}),s.add(u)),KW(u,r,!1),u.setStyle(f.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var v=f.get("size");we(v)||(v=[v,v]),u.scaleX=v[0]/2,u.scaleY=v[1]/2,il(this,"_doDispatchAxisPointer",f.get("throttle")||0,"fixRate"),this._moveHandleToValue(i,p)}},o.prototype._moveHandleToValue=function(i,r){q1(this._axisPointerModel,!r&&this._moveAnimation,this._handle,cV(this.getHandleTransform(i,this._axisModel,this._axisPointerModel)))},o.prototype._onHandleDragMove=function(i,r){var s=this._handle;if(s){this._dragging=!0;var u=this.updateHandleTransform(cV(s),[i,r],this._axisModel,this._axisPointerModel);this._payloadInfo=u,s.stopAnimation(),s.attr(cV(u)),sp(s).lastProp=null,this._doDispatchAxisPointer()}},o.prototype._doDispatchAxisPointer=function(){if(this._handle){var r=this._payloadInfo,s=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:s.axis.dim,axisIndex:s.componentIndex}]})}},o.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},o.prototype.clear=function(i){this._lastValue=null,this._lastStatus=null;var r=i.getZr(),s=this._group,u=this._handle;r&&s&&(this._lastGraphicKey=null,s&&r.remove(s),u&&r.remove(u),this._group=null,this._handle=null,this._payloadInfo=null)},o.prototype.doClear=function(){},o.prototype.buildLabel=function(i,r,s){return{x:i[s=s||0],y:i[1-s],width:r[s],height:r[1-s]}},o}();function dV(o){var s,i=o.get("type"),r=o.getModel(i+"Style");return"line"===i?(s=r.getLineStyle()).fill=null:"shadow"===i&&((s=r.getAreaStyle()).stroke=null),s}function X1(o,i,r,s,u){var d=Ps(r.get("value"),i.axis,i.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),p=r.getModel("label"),v=lh(p.get("padding")||0),g=p.getFont(),m=um(d,g),y=u.position,b=m.width+v[1]+v[3],w=m.height+v[0]+v[2],S=u.align;"right"===S&&(y[0]-=b),"center"===S&&(y[0]-=b/2);var M=u.verticalAlign;"bottom"===M&&(y[1]-=w),"middle"===M&&(y[1]-=w/2),function(o,i,r,s){var u=s.getWidth(),f=s.getHeight();o[0]=Math.min(o[0]+i,u)-i,o[1]=Math.min(o[1]+r,f)-r,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0)}(y,b,w,s);var x=p.get("backgroundColor");(!x||"auto"===x)&&(x=i.get(["axisLine","lineStyle","color"])),o.label={x:y[0],y:y[1],style:Or(p,{text:d,font:g,fill:p.getTextColor(),padding:v,backgroundColor:x}),z2:10}}function Ps(o,i,r,s,u){o=i.scale.parse(o);var f=i.scale.getLabel({value:o},{precision:u.precision}),d=u.formatter;if(d){var p={value:NT(i,{value:o}),axisDimension:i.dim,axisIndex:i.index,seriesData:[]};q(s,function(v){var g=r.getSeriesByIndex(v.seriesIndex),y=g&&g.getDataParams(v.dataIndexInside);y&&p.seriesData.push(y)}),yt(d)?f=d.replace("{value}",f):An(d)&&(f=d(p))}return f}function eE(o,i,r){var s=[1,0,0,1,0,0];return Od(s,s,r.rotation),Oo(s,s,r.position),ul([o.dataToCoord(i),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],s)}function Jy(o,i,r,s,u,f){var d=yu.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=u.get(["label","margin"]),X1(i,s,u,f,{position:eE(s.axis,o,r),align:d.textAlign,verticalAlign:d.textVerticalAlign})}function hV(o,i,r){return{x1:o[r=r||0],y1:o[1-r],x2:i[r],y2:i[1-r]}}function tE(o,i,r){return{x:o[r=r||0],y:o[1-r],width:i[r],height:i[1-r]}}function $W(o,i,r,s,u,f){return{cx:o,cy:i,r0:r,r:s,startAngle:u,endAngle:f,clockwise:!0}}var nE=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.makeElOption=function(r,s,u,f,d){var p=u.axis,v=p.grid,g=f.get("type"),m=QW(v,p).getOtherAxis(p).getGlobalExtent(),y=p.toGlobalCoord(p.dataToCoord(s,!0));if(g&&"none"!==g){var b=dV(f),w=Os[g](p,y,m);w.style=b,r.graphicKey=w.type,r.pointer=w}Jy(s,r,dF(v.model,u),u,f,d)},i.prototype.getHandleTransform=function(r,s,u){var f=dF(s.axis.grid.model,s,{labelInside:!1});f.labelMargin=u.get(["handle","margin"]);var d=eE(s.axis,r,f);return{x:d[0],y:d[1],rotation:f.rotation+(f.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(r,s,u,f){var d=u.axis,p=d.grid,v=d.getGlobalExtent(!0),g=QW(p,d).getOtherAxis(d).getGlobalExtent(),m="x"===d.dim?0:1,y=[r.x,r.y];y[m]+=s[m],y[m]=Math.min(v[1],y[m]),y[m]=Math.max(v[0],y[m]);var b=(g[1]+g[0])/2,w=[b,b];return w[m]=y[m],{x:y[0],y:y[1],rotation:r.rotation,cursorPoint:w,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][m]}},i}(fV);function QW(o,i){var r={};return r[i.dim+"AxisIndex"]=i.index,o.getCartesian(r)}var Os={line:function(i,r,s){return{type:"Line",subPixelOptimize:!0,shape:hV([r,s[0]],[r,s[1]],JW(i))}},shadow:function(i,r,s){var u=Math.max(1,i.getBandWidth());return{type:"Rect",shape:tE([r-u/2,s[0]],[u,s[1]-s[0]],JW(i))}}};function JW(o){return"x"===o.dim?0:1}var xg=nE,eY=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="axisPointer",i.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},i}(qt),Sc=pn(),tY=q;function nY(o,i,r){if(!Ze.node){var s=i.getZr();Sc(s).records||(Sc(s).records={}),function(o,i){function r(s,u){o.on(s,function(f){var d=function(o){var i={showTip:[],hideTip:[]};return{dispatchAction:function s(u){var f=i[u.type];f?f.push(u):(u.dispatchAction=s,o.dispatchAction(u))},pendings:i}}(i);tY(Sc(o).records,function(p){p&&u(p,f,d.dispatchAction)}),function(o,i){var u,r=o.showTip.length,s=o.hideTip.length;r?u=o.showTip[r-1]:s&&(u=o.hideTip[s-1]),u&&(u.dispatchAction=null,i.dispatchAction(u))}(d.pendings,i)})}Sc(o).initialized||(Sc(o).initialized=!0,r("click",St(ta,"click")),r("mousemove",St(ta,"mousemove")),r("globalout",ZK))}(s,i),(Sc(s).records[o]||(Sc(s).records[o]={})).handler=r}}function ZK(o,i,r){o.handler("leave",null,r)}function ta(o,i,r,s){i.handler(o,r,s)}function iE(o,i){if(!Ze.node){var r=i.getZr();(Sc(r).records||{})[o]&&(Sc(r).records[o]=null)}}var KK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=s.getComponent("tooltip"),d=r.get("triggerOn")||f&&f.get("triggerOn")||"mousemove|click";nY("axisPointer",u,function(p,v,g){"none"!==d&&("leave"===p||d.indexOf(p)>=0)&&g({type:"updateAxisPointer",currTrigger:p,x:v&&v.offsetX,y:v&&v.offsetY})})},i.prototype.remove=function(r,s){iE("axisPointer",s)},i.prototype.dispose=function(r,s){iE("axisPointer",s)},i.type="axisPointer",i}(un);function aY(o,i){var u,r=[],s=o.seriesIndex;if(null==s||!(u=i.getSeriesByIndex(s)))return{point:[]};var f=u.getData(),d=va(f,o);if(null==d||d<0||we(d))return{point:[]};var p=f.getItemGraphicEl(d),v=u.coordinateSystem;if(u.getTooltipPosition)r=u.getTooltipPosition(d)||[];else if(v&&v.dataToPoint)if(o.isStacked){var g=v.getBaseAxis(),y=v.getOtherAxis(g).dim,w="x"===y||"radius"===y?1:0,S=f.mapDimension(g.dim),M=[];M[w]=f.get(S,d),M[1-w]=f.get(f.getCalculationInfo("stackResultDimension"),d),r=v.dataToPoint(M)||[]}else r=v.dataToPoint(f.getValues(Te(v.dimensions,function(T){return f.mapDimension(T)}),d))||[];else if(p){var x=p.getBoundingRect().clone();x.applyTransform(p.transform),r=[x.x+x.width/2,x.y+x.height/2]}return{point:r,el:p}}var kc=pn();function Za(o,i,r){var s=o.currTrigger,u=[o.x,o.y],f=o,d=o.dispatchAction||Ye(r.dispatchAction,r),p=i.getComponent("axisPointer").coordSysAxesInfo;if(p){oE(u)&&(u=aY({seriesIndex:f.seriesIndex,dataIndex:f.dataIndex},i).point);var v=oE(u),g=f.axesInfo,m=p.axesInfo,y="leave"===s||oE(u),b={},w={},S={list:[],map:{}},M={showPointer:St(Tg,w),showTooltip:St(Dg,S)};q(p.coordSysMap,function(T,P){var O=v||T.containPoint(u);q(p.coordSysAxesInfo[P],function(R,V){var B=R.axis,U=function(o,i){for(var r=0;r<(o||[]).length;r++){var s=o[r];if(i.axis.dim===s.axisDim&&i.axis.model.componentIndex===s.axisIndex)return s}}(g,R);if(!y&&O&&(!g||U)){var j=U&&U.value;null==j&&!v&&(j=B.pointToData(u)),null!=j&&K1(R,j,M,!1,b)}})});var x={};return q(m,function(T,P){var O=T.linkGroup;O&&!w[P]&&q(O.axesInfo,function(R,V){var B=w[V];if(R!==T&&B){var U=B.value;O.mapper&&(U=T.axis.scale.parse(O.mapper(U,oY(R),oY(T)))),x[T.key]=U}})}),q(x,function(T,P){K1(m[P],T,M,!0,b)}),function(o,i,r){var s=r.axesInfo=[];q(i,function(u,f){var d=u.axisPointerModel.option,p=o[f];p?(!u.useHandle&&(d.status="show"),d.value=p.value,d.seriesDataIndices=(p.payloadBatch||[]).slice()):!u.useHandle&&(d.status="hide"),"show"===d.status&&s.push({axisDim:u.axis.dim,axisIndex:u.axis.model.componentIndex,value:d.value})})}(w,m,b),function(o,i,r,s){if(!oE(i)&&o.list.length){var u=((o.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};s({type:"showTip",escapeConnect:!0,x:i[0],y:i[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:u.dataIndexInside,dataIndex:u.dataIndex,seriesIndex:u.seriesIndex,dataByCoordSys:o.list})}else s({type:"hideTip"})}(S,u,o,d),function(o,i,r){var s=r.getZr(),u="axisPointerLastHighlights",f=kc(s)[u]||{},d=kc(s)[u]={};q(o,function(g,m){var y=g.axisPointerModel.option;"show"===y.status&&q(y.seriesDataIndices,function(b){d[b.seriesIndex+" | "+b.dataIndex]=b})});var p=[],v=[];q(f,function(g,m){!d[m]&&v.push(g)}),q(d,function(g,m){!f[m]&&p.push(g)}),v.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:v}),p.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:p})}(m,0,r),b}}function K1(o,i,r,s,u){var f=o.axis;if(!f.scale.isBlank()&&f.containData(i)){if(!o.involveSeries)return void r.showPointer(o,i);var d=function(o,i){var r=i.axis,s=r.dim,u=o,f=[],d=Number.MAX_VALUE,p=-1;return q(i.seriesModels,function(v,g){var y,b,m=v.getData().mapDimensionsAll(s);if(v.getAxisTooltipData){var w=v.getAxisTooltipData(m,o,r);b=w.dataIndices,y=w.nestestValue}else{if(!(b=v.getData().indicesOfNearest(m[0],o,"category"===r.type?.5:null)).length)return;y=v.getData().get(m[0],b[0])}if(null!=y&&isFinite(y)){var S=o-y,M=Math.abs(S);M<=d&&((M=0&&p<0)&&(d=M,p=S,u=y,f.length=0),q(b,function(x){f.push({seriesIndex:v.seriesIndex,dataIndexInside:x,dataIndex:v.getData().getRawIndex(x)})}))}}),{payloadBatch:f,snapToValue:u}}(i,o),p=d.payloadBatch,v=d.snapToValue;p[0]&&null==u.seriesIndex&&Se(u,p[0]),!s&&o.snap&&f.containData(v)&&null!=v&&(i=v),r.showPointer(o,i,p),r.showTooltip(o,d,v)}}function Tg(o,i,r,s){o[i.key]={value:r,payloadBatch:s}}function Dg(o,i,r,s){var u=r.payloadBatch,f=i.axis,d=f.model,p=i.axisPointerModel;if(i.triggerTooltip&&u.length){var v=i.coordSys.model,g=ay(v),m=o.map[g];m||(m=o.map[g]={coordSysId:v.id,coordSysIndex:v.componentIndex,coordSysType:v.type,coordSysMainType:v.mainType,dataByAxis:[]},o.list.push(m)),m.dataByAxis.push({axisDim:f.dim,axisIndex:d.componentIndex,axisType:d.type,axisId:d.id,value:s,valueLabelOpt:{precision:p.get(["label","precision"]),formatter:p.get(["label","formatter"])},seriesDataIndices:u.slice()})}}function oY(o){var i=o.axis.model,r={},s=r.axisDim=o.axis.dim;return r.axisIndex=r[s+"AxisIndex"]=i.componentIndex,r.axisName=r[s+"AxisName"]=i.name,r.axisId=r[s+"AxisId"]=i.id,r}function oE(o){return!o||null==o[0]||isNaN(o[0])||null==o[1]||isNaN(o[1])}function $1(o){eg.registerAxisPointerClass("CartesianAxisPointer",xg),o.registerComponentModel(eY),o.registerComponentView(KK),o.registerPreprocessor(function(i){if(i){(!i.axisPointer||0===i.axisPointer.length)&&(i.axisPointer={});var r=i.axisPointer.link;r&&!we(r)&&(i.axisPointer.link=[r])}}),o.registerProcessor(o.PRIORITY.PROCESSOR.STATISTIC,function(i,r){i.getComponent("axisPointer").coordSysAxesInfo=function(o,i){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(o,i,r){var s=i.getComponent("tooltip"),u=i.getComponent("axisPointer"),f=u.get("link",!0)||[],d=[];q(r.getCoordinateSystems(),function(p){if(p.axisPointerEnabled){var v=ay(p.model),g=o.coordSysAxesInfo[v]={};o.coordSysMap[v]=p;var y=p.model.getModel("tooltip",s);if(q(p.getAxes(),St(M,!1,null)),p.getTooltipAxes&&s&&y.get("show")){var b="axis"===y.get("trigger"),w="cross"===y.get(["axisPointer","type"]),S=p.getTooltipAxes(y.get(["axisPointer","axis"]));(b||w)&&q(S.baseAxes,St(M,!w||"cross",b)),w&&q(S.otherAxes,St(M,"cross",!1))}}function M(x,T,P){var O=P.model.getModel("axisPointer",u),R=O.get("show");if(R&&("auto"!==R||x||yD(O))){null==T&&(T=O.get("triggerTooltip"));var V=(O=x?function(o,i,r,s,u,f){var d=i.getModel("axisPointer"),v={};q(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(b){v[b]=rt(d.get(b))}),v.snap="category"!==o.type&&!!f,"cross"===d.get("type")&&(v.type="line");var g=v.label||(v.label={});if(null==g.show&&(g.show=!1),"cross"===u){var m=d.get(["label","show"]);if(g.show=null==m||m,!f){var y=v.lineStyle=d.get("crossStyle");y&&tt(g,y.textStyle)}}return o.model.getModel("axisPointer",new Nn(v,r,s))}(P,y,u,i,x,T):O).get("snap"),B=ay(P.model),U=T||V||"category"===P.type,j=o.axesInfo[B]={key:B,axis:P,coordSys:p,axisPointerModel:O,triggerTooltip:T,involveSeries:U,snap:V,useHandle:yD(O),seriesModels:[],linkGroup:null};g[B]=j,o.seriesInvolved=o.seriesInvolved||U;var X=function(o,i){for(var r=i.model,s=i.dim,u=0;ux?"left":"right",y=Math.abs(g[1]-T)/M<.3?"middle":g[1]>T?"top":"bottom"}return{position:g,align:m,verticalAlign:y}}(s,u,0,v,f.get(["label","margin"]));X1(r,u,f,d,x)},i}(fV),QK={line:function(i,r,s,u){return"angle"===i.dim?{type:"Line",shape:hV(r.coordToPoint([u[0],s]),r.coordToPoint([u[1],s]))}:{type:"Circle",shape:{cx:r.cx,cy:r.cy,r:s}}},shadow:function(i,r,s,u){var f=Math.max(1,i.getBandWidth()),d=Math.PI/180;return"angle"===i.dim?{type:"Sector",shape:$W(r.cx,r.cy,u[0],u[1],(-s-f/2)*d,(f/2-s)*d)}:{type:"Sector",shape:$W(r.cx,r.cy,s-f/2,s+f/2,0,2*Math.PI)}}},JK=pV,t$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.findAxisModel=function(r){var s;return this.ecModel.eachComponent(r,function(f){f.getCoordSysModel()===this&&(s=f)},this),s},i.type="polar",i.dependencies=["radiusAxis","angleAxis"],i.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},i}(qt),vV=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ai).models[0]},i.type="polarAxis",i}(qt);qr(vV,zv);var n$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="angleAxis",i}(vV),r$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="radiusAxis",i}(vV),Q1=function(o){function i(r,s){return o.call(this,"radius",r,s)||this}return he(i,o),i.prototype.pointToData=function(r,s){return this.polar.pointToData(r,s)["radius"===this.dim?0:1]},i}(_l);Q1.prototype.dataToRadius=_l.prototype.dataToCoord,Q1.prototype.radiusToData=_l.prototype.coordToData;var i$=Q1,a$=pn(),gV=function(o){function i(r,s){return o.call(this,"angle",r,s||[0,360])||this}return he(i,o),i.prototype.pointToData=function(r,s){return this.polar.pointToData(r,s)["radius"===this.dim?0:1]},i.prototype.calculateCategoryInterval=function(){var r=this,s=r.getLabelModel(),u=r.scale,f=u.getExtent(),d=u.count();if(f[1]-f[0]<1)return 0;var p=f[0],v=r.dataToCoord(p+1)-r.dataToCoord(p),g=Math.abs(v),m=um(null==p?"":p+"",s.getFont(),"center","top"),b=Math.max(m.height,7)/g;isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(b)),S=a$(r.model),M=S.lastAutoInterval,x=S.lastTickCount;return null!=M&&null!=x&&Math.abs(M-w)<=1&&Math.abs(x-d)<=1&&M>w?w=M:(S.lastTickCount=d,S.lastAutoInterval=w),w},i}(_l);gV.prototype.dataToAngle=_l.prototype.dataToCoord,gV.prototype.angleToData=_l.prototype.coordToData;var o$=gV,J1=["radius","angle"];function lY(o){var i=o.seriesModel,r=o.polarModel;return r&&r.coordinateSystem||i&&i.coordinateSystem}var l$=function(){function o(i){this.dimensions=J1,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new i$,this._angleAxis=new o$,this.axisPointerEnabled=!0,this.name=i||"",this._radiusAxis.polar=this._angleAxis.polar=this}return o.prototype.containPoint=function(i){var r=this.pointToCoord(i);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},o.prototype.containData=function(i){return this._radiusAxis.containData(i[0])&&this._angleAxis.containData(i[1])},o.prototype.getAxis=function(i){return this["_"+i+"Axis"]},o.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},o.prototype.getAxesByScale=function(i){var r=[],s=this._angleAxis,u=this._radiusAxis;return s.scale.type===i&&r.push(s),u.scale.type===i&&r.push(u),r},o.prototype.getAngleAxis=function(){return this._angleAxis},o.prototype.getRadiusAxis=function(){return this._radiusAxis},o.prototype.getOtherAxis=function(i){var r=this._angleAxis;return i===r?this._radiusAxis:r},o.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},o.prototype.getTooltipAxes=function(i){var r=null!=i&&"auto"!==i?this.getAxis(i):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},o.prototype.dataToPoint=function(i,r){return this.coordToPoint([this._radiusAxis.dataToRadius(i[0],r),this._angleAxis.dataToAngle(i[1],r)])},o.prototype.pointToData=function(i,r){var s=this.pointToCoord(i);return[this._radiusAxis.radiusToData(s[0],r),this._angleAxis.angleToData(s[1],r)]},o.prototype.pointToCoord=function(i){var r=i[0]-this.cx,s=i[1]-this.cy,u=this.getAngleAxis(),f=u.getExtent(),d=Math.min(f[0],f[1]),p=Math.max(f[0],f[1]);u.inverse?d=p-360:p=d+360;var v=Math.sqrt(r*r+s*s);r/=v,s/=v;for(var g=Math.atan2(-s,r)/Math.PI*180,m=gp;)g+=360*m;return[v,g]},o.prototype.coordToPoint=function(i){var r=i[0],s=i[1]/180*Math.PI;return[Math.cos(s)*r+this.cx,-Math.sin(s)*r+this.cy]},o.prototype.getArea=function(){var i=this.getAngleAxis(),s=this.getRadiusAxis().getExtent().slice();s[0]>s[1]&&s.reverse();var u=i.getExtent(),f=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:s[0],r:s[1],startAngle:-u[0]*f,endAngle:-u[1]*f,clockwise:i.inverse,contain:function(p,v){var g=p-this.cx,m=v-this.cy,y=g*g+m*m,b=this.r,w=this.r0;return y<=b*b&&y>=w*w}}},o.prototype.convertToPixel=function(i,r,s){return lY(r)===this?this.dataToPoint(s):null},o.prototype.convertFromPixel=function(i,r,s){return lY(r)===this?this.pointToData(s):null},o}();function c$(o,i){var r=this,s=r.getAngleAxis(),u=r.getRadiusAxis();if(s.scale.setExtent(1/0,-1/0),u.scale.setExtent(1/0,-1/0),o.eachSeries(function(p){if(p.coordinateSystem===r){var v=p.getData();q(H_(v,"radius"),function(g){u.scale.unionExtentFromData(v,g)}),q(H_(v,"angle"),function(g){s.scale.unionExtentFromData(v,g)})}}),Wf(s.scale,s.model),Wf(u.scale,u.model),"category"===s.type&&!s.onBand){var f=s.getExtent(),d=360/s.scale.count();s.inverse?f[1]+=d:f[1]-=d,s.setExtent(f[0],f[1])}}function uY(o,i){if(o.type=i.get("type"),o.scale=Hh(i),o.onBand=i.get("boundaryGap")&&"category"===o.type,o.inverse=i.get("inverse"),function(o){return"angleAxis"===o.mainType}(i)){o.inverse=o.inverse!==i.get("clockwise");var r=i.get("startAngle");o.setExtent(r,r+(o.inverse?-360:360))}i.axis=o,o.model=i}var h$={dimensions:J1,create:function(i,r){var s=[];return i.eachComponent("polar",function(u,f){var d=new l$(f+"");d.update=c$;var p=d.getRadiusAxis(),v=d.getAngleAxis(),g=u.findAxisModel("radiusAxis"),m=u.findAxisModel("angleAxis");uY(p,g),uY(v,m),function(o,i,r){var s=i.get("center"),u=r.getWidth(),f=r.getHeight();o.cx=Fe(s[0],u),o.cy=Fe(s[1],f);var d=o.getRadiusAxis(),p=Math.min(u,f)/2,v=i.get("radius");null==v?v=[0,"100%"]:we(v)||(v=[0,v]);var g=[Fe(v[0],p),Fe(v[1],p)];d.inverse?d.setExtent(g[1],g[0]):d.setExtent(g[0],g[1])}(d,u,r),s.push(d),u.coordinateSystem=d,d.model=u}),i.eachSeries(function(u){if("polar"===u.get("coordinateSystem")){var f=u.getReferringComponents("polar",ai).models[0];u.coordinateSystem=f.coordinateSystem}}),s}},p$=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function sE(o,i,r){i[1]>i[0]&&(i=i.slice().reverse());var s=o.coordToPoint([i[0],r]),u=o.coordToPoint([i[1],r]);return{x1:s[0],y1:s[1],x2:u[0],y2:u[1]}}function lE(o){return o.getRadiusAxis().inverse?0:1}function cY(o){var i=o[0],r=o[o.length-1];i&&r&&Math.abs(Math.abs(i.coord-r.coord)-360)<1e-4&&o.pop()}var v$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.axisPointerClass="PolarAxisPointer",r}return he(i,o),i.prototype.render=function(r,s){if(this.group.removeAll(),r.get("show")){var u=r.axis,f=u.polar,d=f.getRadiusAxis().getExtent(),p=u.getTicksCoords(),v=u.getMinorTicksCoords(),g=Te(u.getViewLabels(),function(m){m=rt(m);var y=u.scale,b="ordinal"===y.type?y.getRawOrdinalNumber(m.tickValue):m.tickValue;return m.coord=u.dataToCoord(b),m});cY(g),cY(p),q(p$,function(m){r.get([m,"show"])&&(!u.scale.isBlank()||"axisLine"===m)&&g$[m](this.group,r,f,p,v,d,g)},this)}},i.type="angleAxis",i}(eg),g$={axisLine:function(i,r,s,u,f,d){var m,p=r.getModel(["axisLine","lineStyle"]),v=lE(s),g=v?0:1;(m=0===d[g]?new sl({shape:{cx:s.cx,cy:s.cy,r:d[v]},style:p.getLineStyle(),z2:1,silent:!0}):new Mv({shape:{cx:s.cx,cy:s.cy,r:d[v],r0:d[g]},style:p.getLineStyle(),z2:1,silent:!0})).style.fill=null,i.add(m)},axisTick:function(i,r,s,u,f,d){var p=r.getModel("axisTick"),v=(p.get("inside")?-1:1)*p.get("length"),g=d[lE(s)],m=Te(u,function(y){return new Ti({shape:sE(s,[g,g+v],y.coord)})});i.add(ba(m,{style:tt(p.getModel("lineStyle").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})}))},minorTick:function(i,r,s,u,f,d){if(f.length){for(var p=r.getModel("axisTick"),v=r.getModel("minorTick"),g=(p.get("inside")?-1:1)*v.get("length"),m=d[lE(s)],y=[],b=0;bP?"left":"right",V=Math.abs(T[1]-O)/x<.3?"middle":T[1]>O?"top":"bottom";if(v&&v[M]){var B=v[M];at(B)&&B.textStyle&&(S=new Nn(B.textStyle,g,g.ecModel))}var U=new fn({silent:yu.isLabelSilent(r),style:Or(S,{x:T[0],y:T[1],fill:S.getTextColor()||r.get(["axisLine","lineStyle","color"]),text:b.formattedLabel,align:R,verticalAlign:V})});if(i.add(U),y){var j=yu.makeAxisEventDataBase(r);j.targetType="axisLabel",j.value=b.rawLabel,ht(U).eventData=j}},this)},splitLine:function(i,r,s,u,f,d){var v=r.getModel("splitLine").getModel("lineStyle"),g=v.get("color"),m=0;g=g instanceof Array?g:[g];for(var y=[],b=0;b=0?"p":"n",ee=U;V&&(s[m][$]||(s[m][$]={p:U,n:U}),ee=s[m][$][te]);var le=void 0,oe=void 0,de=void 0,ge=void 0;if("radius"===S.dim){var _e=S.dataToCoord(Z)-U,xe=v.dataToCoord($);Math.abs(_e)=r.y&&i[1]<=r.y+r.height:s.contain(s.toLocalCoord(i[1]))&&i[0]>=r.y&&i[0]<=r.y+r.height},o.prototype.pointToData=function(i){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(i["horizontal"===r.orient?0:1]))]},o.prototype.dataToPoint=function(i){var r=this.getAxis(),s=this.getRect(),u=[],f="horizontal"===r.orient?0:1;return i instanceof Array&&(i=i[0]),u[f]=r.toGlobalCoord(r.dataToCoord(+i)),u[1-f]=0===f?s.y+s.height/2:s.x+s.width/2,u},o.prototype.convertToPixel=function(i,r,s){return gY(r)===this?this.dataToPoint(s):null},o.prototype.convertFromPixel=function(i,r,s){return gY(r)===this?this.pointToData(s):null},o}(),H$={create:function(o,i){var r=[];return o.eachComponent("singleAxis",function(s,u){var f=new N$(s,o,i);f.name="single_"+u,f.resize(s,i),s.coordinateSystem=f,r.push(f)}),o.eachSeries(function(s){if("singleAxis"===s.get("coordinateSystem")){var u=s.getReferringComponents("singleAxis",ai).models[0];s.coordinateSystem=u&&u.coordinateSystem}}),r},dimensions:vY},mY=["x","y"],z$=["width","height"],U$=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.makeElOption=function(r,s,u,f,d){var p=u.axis,v=p.coordinateSystem,g=bV(v,1-uE(p)),m=v.dataToPoint(s)[0],y=f.get("type");if(y&&"none"!==y){var b=dV(f),w=G$[y](p,m,g);w.style=b,r.graphicKey=w.type,r.pointer=w}Jy(s,r,_V(u),u,f,d)},i.prototype.getHandleTransform=function(r,s,u){var f=_V(s,{labelInside:!1});f.labelMargin=u.get(["handle","margin"]);var d=eE(s.axis,r,f);return{x:d[0],y:d[1],rotation:f.rotation+(f.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(r,s,u,f){var d=u.axis,p=d.coordinateSystem,v=uE(d),g=bV(p,v),m=[r.x,r.y];m[v]+=s[v],m[v]=Math.min(g[1],m[v]),m[v]=Math.max(g[0],m[v]);var y=bV(p,1-v),b=(y[1]+y[0])/2,w=[b,b];return w[v]=m[v],{x:m[0],y:m[1],rotation:r.rotation,cursorPoint:w,tooltipOption:{verticalAlign:"middle"}}},i}(fV),G$={line:function(i,r,s){return{type:"Line",subPixelOptimize:!0,shape:hV([r,s[0]],[r,s[1]],uE(i))}},shadow:function(i,r,s){var u=i.getBandWidth();return{type:"Rect",shape:tE([r-u/2,s[0]],[u,s[1]-s[0]],uE(i))}}};function uE(o){return o.isHorizontal()?0:1}function bV(o,i){var r=o.getRect();return[r[mY[i]],r[mY[i]]+r[z$[i]]]}var j$=U$,W$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="single",i}(un);function _Y(o,i){var s,r=o.cellSize;1===(s=we(r)?r:o.cellSize=[r,r]).length&&(s[1]=s[0]);var u=Te([0,1],function(f){return function(o,i){return null!=o[uh[i][0]]||null!=o[uh[i][1]]&&null!=o[uh[i][2]]}(i,f)&&(s[f]="auto"),null!=s[f]&&"auto"!==s[f]});kf(o,i,{type:"box",ignoreSize:u})}var X$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s,u){var f=av(r);o.prototype.init.apply(this,arguments),_Y(r,f)},i.prototype.mergeOption=function(r){o.prototype.mergeOption.apply(this,arguments),_Y(this.option,r)},i.prototype.getCellSize=function(){return this.option.cellSize},i.type="calendar",i.defaultOption={zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},i}(qt),Z$={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},K$={EN:["S","M","T","W","T","F","S"],CN:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},Q$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=this.group;f.removeAll();var d=r.coordinateSystem,p=d.getRangeInfo(),v=d.getOrient();this._renderDayRect(r,p,f),this._renderLines(r,p,v,f),this._renderYearText(r,p,v,f),this._renderMonthText(r,v,f),this._renderWeekText(r,p,v,f)},i.prototype._renderDayRect=function(r,s,u){for(var f=r.coordinateSystem,d=r.getModel("itemStyle").getItemStyle(),p=f.getCellWidth(),v=f.getCellHeight(),g=s.start.time;g<=s.end.time;g=f.getNextNDay(g,1).time){var m=f.dataToRect([g],!1).tl,y=new sn({shape:{x:m[0],y:m[1],width:p,height:v},cursor:"default",style:d});u.add(y)}},i.prototype._renderLines=function(r,s,u,f){var d=this,p=r.coordinateSystem,v=r.getModel(["splitLine","lineStyle"]).getLineStyle(),g=r.get(["splitLine","show"]),m=v.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var y=s.start,b=0;y.time<=s.end.time;b++){S(y.formatedDate),0===b&&(y=p.getDateInfo(s.start.y+"-"+s.start.m));var w=y.date;w.setMonth(w.getMonth()+1),y=p.getDateInfo(w)}function S(M){d._firstDayOfMonth.push(p.getDateInfo(M)),d._firstDayPoints.push(p.dataToRect([M],!1).tl);var x=d._getLinePointsOfOneWeek(r,M,u);d._tlpoints.push(x[0]),d._blpoints.push(x[x.length-1]),g&&d._drawSplitline(x,v,f)}S(p.getNextNDay(s.end.time,1).formatedDate),g&&this._drawSplitline(d._getEdgesPoints(d._tlpoints,m,u),v,f),g&&this._drawSplitline(d._getEdgesPoints(d._blpoints,m,u),v,f)},i.prototype._getEdgesPoints=function(r,s,u){var f=[r[0].slice(),r[r.length-1].slice()],d="horizontal"===u?0:1;return f[0][d]=f[0][d]-s/2,f[1][d]=f[1][d]+s/2,f},i.prototype._drawSplitline=function(r,s,u){var f=new br({z2:20,shape:{points:r},style:s});u.add(f)},i.prototype._getLinePointsOfOneWeek=function(r,s,u){for(var f=r.coordinateSystem,d=f.getDateInfo(s),p=[],v=0;v<7;v++){var g=f.getNextNDay(d.time,v),m=f.dataToRect([g.time],!1);p[2*g.day]=m.tl,p[2*g.day+1]=m["horizontal"===u?"bl":"tr"]}return p},i.prototype._formatterLabel=function(r,s){return"string"==typeof r&&r?function(o,i,r){return q(i,function(s,u){o=o.replace("{"+u+"}",s)}),o}(r,s):"function"==typeof r?r(s):s.nameMap},i.prototype._yearTextPositionControl=function(r,s,u,f,d){var p=s[0],v=s[1],g=["center","bottom"];"bottom"===f?(v+=d,g=["center","top"]):"left"===f?p-=d:"right"===f?(p+=d,g=["center","top"]):v-=d;var m=0;return("left"===f||"right"===f)&&(m=Math.PI/2),{rotation:m,x:p,y:v,style:{align:g[0],verticalAlign:g[1]}}},i.prototype._renderYearText=function(r,s,u,f){var d=r.getModel("yearLabel");if(d.get("show")){var p=d.get("margin"),v=d.get("position");v||(v="horizontal"!==u?"top":"left");var g=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],m=(g[0][0]+g[1][0])/2,y=(g[0][1]+g[1][1])/2,b="horizontal"===u?0:1,w={top:[m,g[b][1]],bottom:[m,g[1-b][1]],left:[g[1-b][0],y],right:[g[b][0],y]},S=s.start.y;+s.end.y>+s.start.y&&(S=S+"-"+s.end.y);var M=d.get("formatter"),T=this._formatterLabel(M,{start:s.start.y,end:s.end.y,nameMap:S}),P=new fn({z2:30,style:Or(d,{text:T})});P.attr(this._yearTextPositionControl(P,w[v],u,v,p)),f.add(P)}},i.prototype._monthTextPositionControl=function(r,s,u,f,d){var p="left",v="top",g=r[0],m=r[1];return"horizontal"===u?(m+=d,s&&(p="center"),"start"===f&&(v="bottom")):(g+=d,s&&(v="middle"),"start"===f&&(p="right")),{x:g,y:m,align:p,verticalAlign:v}},i.prototype._renderMonthText=function(r,s,u){var f=r.getModel("monthLabel");if(f.get("show")){var d=f.get("nameMap"),p=f.get("margin"),v=f.get("position"),g=f.get("align"),m=[this._tlpoints,this._blpoints];yt(d)&&(d=Z$[d.toUpperCase()]||[]);var y="start"===v?0:1,b="horizontal"===s?0:1;p="start"===v?-p:p;for(var w="center"===g,S=0;S=u.start.time&&s.timep.end.time&&r.reverse(),r},o.prototype._getRangeInfo=function(i){var s,r=[this.getDateInfo(i[0]),this.getDateInfo(i[1])];r[0].time>r[1].time&&(s=!0,r.reverse());var u=Math.floor(r[1].time/CV)-Math.floor(r[0].time/CV)+1,f=new Date(r[0].time),d=f.getDate(),p=r[1].date.getDate();f.setDate(d+u-1);var v=f.getDate();if(v!==p)for(var g=f.getTime()-r[1].time>0?1:-1;(v=f.getDate())!==p&&(f.getTime()-r[1].time)*g>0;)u-=g,f.setDate(v-g);var m=Math.floor((u+r[0].day+6)/7),y=s?1-m:m-1;return s&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:u,weeks:m,nthWeek:y,fweek:r[0].day,lweek:r[1].day}},o.prototype._getDateByWeeksAndDay=function(i,r,s){var u=this._getRangeInfo(s);if(i>u.weeks||0===i&&ru.lweek)return null;var f=7*(i-1)-u.fweek+r,d=new Date(u.start.time);return d.setDate(+u.start.d+f),this.getDateInfo(d)},o.create=function(i,r){var s=[];return i.eachComponent("calendar",function(u){var f=new o(u,i,r);s.push(f),u.coordinateSystem=f}),i.eachSeries(function(u){"calendar"===u.get("coordinateSystem")&&(u.coordinateSystem=s[u.get("calendarIndex")||0])}),s},o.dimensions=["time","value"],o}(),eb=pn(),bY={path:null,compoundPath:null,group:ct,image:si,text:fn},rQ=function(i){var r=i.graphic;we(r)?i.graphic=r[0]&&r[0].elements?[i.graphic[0]]:[{elements:r}]:r&&!r.elements&&(i.graphic=[{elements:[r]}])},iQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.preventAutoZ=!0,r}return he(i,o),i.prototype.mergeOption=function(r,s){var u=this.option.elements;this.option.elements=null,o.prototype.mergeOption.call(this,r,s),this.option.elements=u},i.prototype.optionUpdated=function(r,s){var u=this.option,f=(s?u:r).elements,d=u.elements=s?[]:u.elements,p=[];this._flatten(f,p,null);var v=Xk(d,p,"normalMerge"),g=this._elOptionsToUpdate=[];q(v,function(y,b){var w=y.newOption;!w||(g.push(w),function(o,i){var r=o.existing;if(i.id=o.keyInfo.id,!i.type&&r&&(i.type=r.type),null==i.parentId){var s=i.parentOption;s?i.parentId=s.id:r&&(i.parentId=r.parentId)}i.parentOption=null}(y,w),function(o,i,r){var s=Se({},r),u=o[i],f=r.$action||"merge";"merge"===f?u?(He(u,s,!0),kf(u,s,{ignoreSize:!0}),MI(r,u)):o[i]=s:"replace"===f?o[i]=s:"remove"===f&&u&&(o[i]=null)}(d,b,w),function(o,i){if(o&&(o.hv=i.hv=[wY(i,["left","right"]),wY(i,["top","bottom"])],"group"===o.type)){var r=o,s=i;null==r.width&&(r.width=s.width=0),null==r.height&&(r.height=s.height=0)}}(d[b],w))},this);for(var m=d.length-1;m>=0;m--)null==d[m]?d.splice(m,1):delete d[m].$action},i.prototype._flatten=function(r,s,u){q(r,function(f){if(f){u&&(f.parentOption=u),s.push(f);var d=f.children;"group"===f.type&&d&&this._flatten(d,s,f),delete f.children}},this)},i.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},i.type="graphic",i.defaultOption={elements:[]},i}(qt),aQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(){this._elMap=et()},i.prototype.render=function(r,s,u){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,u)},i.prototype._updateElements=function(r){var s=r.useElOptionsToUpdate();if(s){var u=this._elMap,f=this.group;q(s,function(d){var p=wi(d.id,null),v=null!=p?u.get(p):null,g=wi(d.parentId,null),m=null!=g?u.get(g):f,y=d.type,b=d.style;"text"===y&&b&&d.hv&&d.hv[1]&&(b.textVerticalAlign=b.textBaseline=b.verticalAlign=b.align=null);var w=d.textContent,S=d.textConfig;if(b&&$3(b,y,!!S,!!w)){var M=Q3(b,y,!0);!S&&M.textConfig&&(S=d.textConfig=M.textConfig),!w&&M.textContent&&(w=M.textContent)}var x=function(o){return o=Se({},o),q(["id","parentId","$action","hv","bounding","textContent"].concat(kI),function(i){delete o[i]}),o}(d),T=d.$action||"merge";"merge"===T?v?v.attr(x):CY(p,m,x,u):"replace"===T?(cE(v,u),CY(p,m,x,u)):"remove"===T&&cE(v,u);var P=u.get(p);if(P&&w)if("merge"===T){var O=P.getTextContent();O?O.attr(w):P.setTextContent(new fn(w))}else"replace"===T&&P.setTextContent(new fn(w));if(P){var R=eb(P);R.__ecGraphicWidthOption=d.width,R.__ecGraphicHeightOption=d.height,function(o,i,r){var s=ht(o).eventData;!o.silent&&!o.ignore&&!s&&(s=ht(o).eventData={componentType:"graphic",componentIndex:i.componentIndex,name:o.name}),s&&(s.info=r.info)}(P,r,d),Av({el:P,componentModel:r,itemName:P.name,itemTooltipOption:d.tooltip})}})}},i.prototype._relocate=function(r,s){for(var u=r.option.elements,f=this.group,d=this._elMap,p=s.getWidth(),v=s.getHeight(),g=0;g=0;g--){var m,y,b,w;if(b=null!=(y=wi((m=u[g]).id,null))?d.get(y):null)x=eb(w=b.parent),tC(b,m,w===f?{width:p,height:v}:{width:x.__ecGraphicWidth,height:x.__ecGraphicHeight},null,{hv:m.hv,boundingMode:m.bounding})}},i.prototype._clear=function(){var r=this._elMap;r.each(function(s){cE(s,r)}),this._elMap=et()},i.prototype.dispose=function(){this._clear()},i.type="graphic",i}(un);function CY(o,i,r,s){var u=r.type,d=new(Ae(bY,u)?bY[u]:Hx(u))(r);i.add(d),s.set(o,d),eb(d).__ecGraphicId=o}function cE(o,i){var r=o&&o.parent;r&&("group"===o.type&&o.traverse(function(s){cE(s,i)}),i.removeKey(eb(o).__ecGraphicId),r.remove(o))}function wY(o,i){var r;return q(i,function(s){null!=o[s]&&"auto"!==o[s]&&(r=!0)}),r}var SV=["x","y","radius","angle","single"],kV=["cartesian2d","polar","singleAxis"];function Dc(o){return o+"Axis"}function MV(o){var i=o.ecModel,r={infoList:[],infoMap:et()};return o.eachTargetAxis(function(s,u){var f=i.getComponent(Dc(s),u);if(f){var d=f.getCoordSysModel();if(d){var p=d.uid,v=r.infoMap.get(p);v||(r.infoList.push(v={model:d,axisModels:[]}),r.infoMap.set(p,v)),v.axisModels.push(f)}}}),r}var xV=function(){function o(){this.indexList=[],this.indexMap=[]}return o.prototype.add=function(i){this.indexMap[i]||(this.indexList.push(i),this.indexMap[i]=!0)},o}();function xY(o){var i={};return q(["start","end","startValue","endValue","throttle"],function(r){o.hasOwnProperty(r)&&(i[r]=o[r])}),i}var eS=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return he(i,o),i.prototype.init=function(r,s,u){var f=xY(r);this.settledOption=f,this.mergeDefaultAndTheme(r,u),this._doInit(f)},i.prototype.mergeOption=function(r){var s=xY(r);He(this.option,r,!0),He(this.settledOption,s,!0),this._doInit(s)},i.prototype._doInit=function(r){var s=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var u=this.settledOption;q([["start","startValue"],["end","endValue"]],function(f,d){"value"===this._rangePropMode[d]&&(s[f[0]]=u[f[0]]=null)},this),this._resetTarget()},i.prototype._resetTarget=function(){var r=this.get("orient",!0),s=this._targetAxisInfoMap=et();this._fillSpecifiedTargetAxis(s)?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(s,this._orient)),this._noTarget=!0,s.each(function(f){f.indexList.length&&(this._noTarget=!1)},this)},i.prototype._fillSpecifiedTargetAxis=function(r){var s=!1;return q(SV,function(u){var f=this.getReferringComponents(Dc(u),$H);if(f.specified){s=!0;var d=new xV;q(f.models,function(p){d.add(p.componentIndex)}),r.set(u,d)}},this),s},i.prototype._fillAutoTargetAxisByOrient=function(r,s){var u=this.ecModel,f=!0;if(f){var d="vertical"===s?"y":"x";v(u.findComponents({mainType:d+"Axis"}),d)}function v(g,m){var y=g[0];if(y){var b=new xV;if(b.add(y.componentIndex),r.set(m,b),f=!1,"x"===m||"y"===m){var w=y.getReferringComponents("grid",ai).models[0];w&&q(g,function(S){y.componentIndex!==S.componentIndex&&w===S.getReferringComponents("grid",ai).models[0]&&b.add(S.componentIndex)})}}}f&&v(u.findComponents({mainType:"singleAxis",filter:function(y){return y.get("orient",!0)===s}}),"single"),f&&q(SV,function(g){if(f){var m=u.findComponents({mainType:Dc(g),filter:function(w){return"category"===w.get("type",!0)}});if(m[0]){var y=new xV;y.add(m[0].componentIndex),r.set(g,y),f=!1}}},this)},i.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(s){!r&&(r=s)},this),"y"===r?"vertical":"horizontal"},i.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var s=this.ecModel.option;this.option.throttle=s.animation&&s.animationDurationUpdate>0?100:20}},i.prototype._updateRangeUse=function(r){var s=this._rangePropMode,u=this.get("rangeMode");q([["start","startValue"],["end","endValue"]],function(f,d){var p=null!=r[f[0]],v=null!=r[f[1]];p&&!v?s[d]="percent":!p&&v?s[d]="value":u?s[d]=u[d]:p&&(s[d]="percent")})},i.prototype.noTarget=function(){return this._noTarget},i.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(s,u){null==r&&(r=this.ecModel.getComponent(Dc(s),u))},this),r},i.prototype.eachTargetAxis=function(r,s){this._targetAxisInfoMap.each(function(u,f){q(u.indexList,function(d){r.call(s,f,d)})})},i.prototype.getAxisProxy=function(r,s){var u=this.getAxisModel(r,s);if(u)return u.__dzAxisProxy},i.prototype.getAxisModel=function(r,s){var u=this._targetAxisInfoMap.get(r);if(u&&u.indexMap[s])return this.ecModel.getComponent(Dc(r),s)},i.prototype.setRawRange=function(r){var s=this.option,u=this.settledOption;q([["start","startValue"],["end","endValue"]],function(f){(null!=r[f[0]]||null!=r[f[1]])&&(s[f[0]]=u[f[0]]=r[f[0]],s[f[1]]=u[f[1]]=r[f[1]])},this),this._updateRangeUse(r)},i.prototype.setCalculatedRange=function(r){var s=this.option;q(["start","startValue","end","endValue"],function(u){s[u]=r[u]})},i.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},i.prototype.getValueRange=function(r,s){if(null!=r||null!=s)return this.getAxisProxy(r,s).getDataValueWindow();var u=this.findRepresentativeAxisProxy();return u?u.getDataValueWindow():void 0},i.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var s,u=this._targetAxisInfoMap.keys(),f=0;f=0}(r)){var s=Dc(this._dimName),u=r.getReferringComponents(s,ai).models[0];u&&this._axisIndex===u.componentIndex&&i.push(r)}},this),i},o.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},o.prototype.getMinMaxSpan=function(){return rt(this._minMaxSpan)},o.prototype.calculateDataWindow=function(i){var g,r=this._dataExtent,u=this.getAxisModel().axis.scale,f=this._dataZoomModel.getRangePropMode(),d=[0,100],p=[],v=[];Ag(["start","end"],function(b,w){var S=i[b],M=i[b+"Value"];"percent"===f[w]?(null==S&&(S=d[w]),M=u.parse(bn(S,d,r))):(g=!0,S=bn(M=null==M?r[w]:u.parse(M),r,d)),v[w]=M,p[w]=S}),dE(v),dE(p);var m=this._minMaxSpan;function y(b,w,S,M,x){var T=x?"Span":"ValueSpan";kl(0,b,S,"all",m["min"+T],m["max"+T]);for(var P=0;P<2;P++)w[P]=bn(b[P],S,M,!0),x&&(w[P]=u.parse(w[P]))}return g?y(v,p,r,d,!1):y(p,v,d,r,!0),{valueWindow:v,percentWindow:p}},o.prototype.reset=function(i){if(i===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=function(o,i,r){var s=[1/0,-1/0];Ag(r,function(d){!function(o,i,r){i&&q(H_(i,r),function(s){var u=i.getApproximateExtent(s);u[0]o[1]&&(o[1]=u[1])})}(s,d.getData(),i)});var u=o.getAxisModel(),f=dL(u.axis.scale,u,s).calculate();return[f.min,f.max]}(this,this._dimName,r),this._updateMinMaxSpan();var s=this.calculateDataWindow(i.settledOption);this._valueWindow=s.valueWindow,this._percentWindow=s.percentWindow,this._setAxisModel()}},o.prototype.filterData=function(i,r){if(i===this._dataZoomModel){var s=this._dimName,u=this.getTargetSeriesModels(),f=i.get("filterMode"),d=this._valueWindow;"none"!==f&&Ag(u,function(v){var g=v.getData(),m=g.mapDimensionsAll(s);if(m.length){if("weakFilter"===f){var y=g.getStore(),b=Te(m,function(w){return g.getDimensionIndex(w)},g);g.filterSelf(function(w){for(var S,M,x,T=0;Td[1];if(O&&!R&&!V)return!0;O&&(x=!0),R&&(S=!0),V&&(M=!0)}return x&&S&&M})}else Ag(m,function(w){if("empty"===f)v.setData(g=g.map(w,function(M){return function(v){return v>=d[0]&&v<=d[1]}(M)?M:NaN}));else{var S={};S[w]=d,g.selectRange(S)}});Ag(m,function(w){g.setApproximateExtent(d,w)})}})}},o.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},r=this._dataZoomModel,s=this._dataExtent;Ag(["min","max"],function(u){var f=r.get(u+"Span"),d=r.get(u+"ValueSpan");null!=d&&(d=this.getAxisModel().axis.scale.parse(d)),null!=d?f=bn(s[0]+d,s,[0,100],!0):null!=f&&(d=bn(f,[0,100],s,!0)-s[0]),i[u+"Span"]=f,i[u+"ValueSpan"]=d},this)},o.prototype._setAxisModel=function(){var i=this.getAxisModel(),r=this._percentWindow,s=this._valueWindow;if(r){var u=o0(s,[0,500]);u=Math.min(u,20);var f=i.axis.scale.rawExtentInfo;0!==r[0]&&f.setDeterminedMinMax("min",+s[0].toFixed(u)),100!==r[1]&&f.setDeterminedMinMax("max",+s[1].toFixed(u)),f.freeze()}},o}(),EV={getTargetSeries:function(i){function r(f){i.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(p,v){var g=i.getComponent(Dc(p),v);f(p,v,g,d)})})}r(function(f,d,p,v){p.__dzAxisProxy=null});var s=[];r(function(f,d,p,v){p.__dzAxisProxy||(p.__dzAxisProxy=new cp(f,d,v,i),s.push(p.__dzAxisProxy))});var u=et();return q(s,function(f){q(f.getTargetSeriesModels(),function(d){u.set(d.uid,d)})}),u},overallReset:function(i,r){i.eachComponent("dataZoom",function(s){s.eachTargetAxis(function(u,f){s.getAxisProxy(u,f).reset(s)}),s.eachTargetAxis(function(u,f){s.getAxisProxy(u,f).filterData(s,r)})}),i.eachComponent("dataZoom",function(s){var u=s.findRepresentativeAxisProxy();if(u){var f=u.getDataPercentWindow(),d=u.getDataValueWindow();s.setCalculatedRange({start:f[0],end:f[1],startValue:d[0],endValue:d[1]})}})}},pE=!1;function vE(o){pE||(pE=!0,o.registerProcessor(o.PRIORITY.PROCESSOR.FILTER,EV),function(o){o.registerAction("dataZoom",function(i,r){q(function(o,i){var f,r=et(),s=[],u=et();o.eachComponent({mainType:"dataZoom",query:i},function(m){u.get(m.uid)||p(m)});do{f=!1,o.eachComponent("dataZoom",d)}while(f);function d(m){!u.get(m.uid)&&function(m){var y=!1;return m.eachTargetAxis(function(b,w){var S=r.get(b);S&&S[w]&&(y=!0)}),y}(m)&&(p(m),f=!0)}function p(m){u.set(m.uid,!0),s.push(m),function(m){m.eachTargetAxis(function(y,b){(r.get(y)||r.set(y,[]))[b]=!0})}(m)}return s}(r,i),function(u){u.setRawRange({start:i.start,end:i.end,startValue:i.startValue,endValue:i.endValue})})})}(o),o.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function PY(o){o.registerComponentModel(TY),o.registerComponentView(tb),vE(o)}var Is=function(){},Ai={};function Eg(o,i){Ai[o]=i}function gE(o){return Ai[o]}var PV=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.optionUpdated=function(){o.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;q(this.option.feature,function(s,u){var f=gE(u);f&&(f.getDefaultOption&&(f.defaultOption=f.getDefaultOption(r)),He(s,f.defaultOption))})},i.type="toolbox",i.layoutMode={type:"box",ignoreSize:!0},i.defaultOption={show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},i}(qt);function OV(o,i){var r=lh(i.get("padding")),s=i.getItemStyle(["color","opacity"]);return s.fill=i.get("backgroundColor"),new sn({shape:{x:o.x-r[3],y:o.y-r[0],width:o.width+r[1]+r[3],height:o.height+r[0]+r[2],r:i.get("borderRadius")},style:s,silent:!0,z2:-1})}var mE=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.render=function(r,s,u,f){var d=this.group;if(d.removeAll(),r.get("show")){var p=+r.get("itemSize"),v=r.get("feature")||{},g=this._features||(this._features={}),m=[];q(v,function(w,S){m.push(S)}),new Hf(this._featureNames||[],m).add(y).update(y).remove(St(y,null)).execute(),this._featureNames=m,function(o,i,r){var s=i.getBoxLayoutParams(),u=i.get("padding"),f={width:r.getWidth(),height:r.getHeight()},d=li(s,f,u);Sf(i.get("orient"),o,i.get("itemGap"),d.width,d.height),tC(o,s,f,u)}(d,r,u),d.add(OV(d.getBoundingRect(),r)),d.eachChild(function(w){var S=w.__title,M=w.ensureState("emphasis"),x=M.textConfig||(M.textConfig={}),T=w.getTextContent(),P=T&&T.states.emphasis;if(P&&!An(P)&&S){var O=P.style||(P.style={}),R=um(S,fn.makeFont(O)),V=w.x+d.x,U=!1;w.y+d.y+p+R.height>u.getHeight()&&(x.position="top",U=!0);var j=U?-5-R.height:p+8;V+R.width/2>u.getWidth()?(x.position=["100%",j],O.align="right"):V-R.width/2<0&&(x.position=[0,j],O.align="left")}})}function y(w,S){var O,M=m[w],x=m[S],T=v[M],P=new Nn(T,r,r.ecModel);if(f&&null!=f.newTitle&&f.featureName===M&&(T.title=f.newTitle),M&&!x){if(function(o){return 0===o.indexOf("my")}(M))O={onclick:P.option.onclick,featureName:M};else{var R=gE(M);if(!R)return;O=new R}g[M]=O}else if(!(O=g[x]))return;O.uid=Bm("toolbox-feature"),O.model=P,O.ecModel=s,O.api=u;var V=O instanceof Is;M||!x?!P.get("show")||V&&O.unusable?V&&O.remove&&O.remove(s,u):(function(w,S,M){var R,V,x=w.getModel("iconStyle"),T=w.getModel(["emphasis","iconStyle"]),P=S instanceof Is&&S.getIcons?S.getIcons():w.get("icon"),O=w.get("title")||{};"string"==typeof P?(R={})[M]=P:R=P,"string"==typeof O?(V={})[M]=O:V=O;var B=w.iconPaths={};q(R,function(U,j){var X=cl(U,{},{x:-p/2,y:-p/2,width:p,height:p});X.setStyle(x.getItemStyle()),X.ensureState("emphasis").style=T.getItemStyle();var $=new fn({style:{text:V[j],align:T.get("textAlign"),borderRadius:T.get("textBorderRadius"),padding:T.get("textPadding"),fill:null},ignore:!0});X.setTextContent($),Av({el:X,componentModel:r,itemName:j,formatterParamsExtra:{title:V[j]}}),X.__title=V[j],X.on("mouseover",function(){var te=T.getItemStyle(),ee="vertical"===r.get("orient")?null==r.get("right")?"right":"left":null==r.get("bottom")?"bottom":"top";$.setStyle({fill:T.get("textFill")||te.fill||te.stroke||"#000",backgroundColor:T.get("textBackgroundColor")}),X.setTextConfig({position:T.get("textPosition")||ee}),$.ignore=!r.get("showTitle"),Js(this)}).on("mouseout",function(){"emphasis"!==w.get(["iconStatus",j])&&eu(this),$.hide()}),("emphasis"===w.get(["iconStatus",j])?Js:eu)(X),d.add(X),X.on("click",Ye(S.onclick,S,s,u,j)),B[j]=X})}(P,O,M),P.setIconStatus=function(B,U){var j=this.option,X=this.iconPaths;j.iconStatus=j.iconStatus||{},j.iconStatus[B]=U,X[B]&&("emphasis"===U?Js:eu)(X[B])},O instanceof Is&&O.render&&O.render(P,s,u,f)):V&&O.dispose&&O.dispose(s,u)}},i.prototype.updateView=function(r,s,u,f){q(this._features,function(d){d instanceof Is&&d.updateView&&d.updateView(d.model,s,u,f)})},i.prototype.remove=function(r,s){q(this._features,function(u){u instanceof Is&&u.remove&&u.remove(r,s)}),this.group.removeAll()},i.prototype.dispose=function(r,s){q(this._features,function(u){u instanceof Is&&u.dispose&&u.dispose(r,s)})},i.type="toolbox",i}(un),IV=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.onclick=function(r,s){var u=this.model,f=u.get("name")||r.get("title.0.text")||"echarts",d="svg"===s.getZr().painter.getType(),p=d?"svg":u.get("type",!0)||"png",v=s.getConnectedDataURL({type:p,backgroundColor:u.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:u.get("connectedBackgroundColor"),excludeComponents:u.get("excludeComponents"),pixelRatio:u.get("pixelRatio")});if("function"!=typeof MouseEvent||!Ze.browser.newEdge&&(Ze.browser.ie||Ze.browser.edge))if(window.navigator.msSaveOrOpenBlob||d){var y=v.split(","),b=y[0].indexOf("base64")>-1,w=d?decodeURIComponent(y[1]):y[1];b&&(w=window.atob(w));var S=f+"."+p;if(window.navigator.msSaveOrOpenBlob){for(var M=w.length,x=new Uint8Array(M);M--;)x[M]=w.charCodeAt(M);var T=new Blob([x]);window.navigator.msSaveOrOpenBlob(T,S)}else{var P=document.createElement("iframe");document.body.appendChild(P);var O=P.contentWindow,R=O.document;R.open("image/svg+xml","replace"),R.write(w),R.close(),O.focus(),R.execCommand("SaveAs",!0,S),document.body.removeChild(P)}}else{var V=u.get("lang"),B='',U=window.open();U.document.write(B),U.document.title=f}else{var g=document.createElement("a");g.download=f+"."+p,g.target="_blank",g.href=v;var m=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});g.dispatchEvent(m)}},i.getDefaultOption=function(r){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},i}(Is);IV.prototype.unusable=!Ze.canvasSupported;var RY=IV,RV="__ec_magicType_stack__",FY=[["line","bar"],["stack"]],_E=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.getIcons=function(){var r=this.model,s=r.get("icon"),u={};return q(r.get("type"),function(f){s[f]&&(u[f]=s[f])}),u},i.getDefaultOption=function(r){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},i.prototype.onclick=function(r,s,u){var f=this.model,d=f.get(["seriesIndex",u]);if(yE[u]){var p={series:[]};q(FY,function(y){Rt(y,u)>=0&&q(y,function(b){f.setIconStatus(b,"normal")})}),f.setIconStatus(u,"emphasis"),r.eachComponent({mainType:"series",query:null==d?null:{seriesIndex:d}},function(b){var M=yE[u](b.subType,b.id,b,f);M&&(tt(M,b.option),p.series.push(M));var x=b.coordinateSystem;if(x&&"cartesian2d"===x.type&&("line"===u||"bar"===u)){var T=x.getAxesByScale("ordinal")[0];if(T){var O=T.dim+"Axis",V=b.getReferringComponents(O,ai).models[0].componentIndex;p[O]=p[O]||[];for(var B=0;B<=V;B++)p[O][V]=p[O][V]||{};p[O][V].boundaryGap="bar"===u}}});var g,m=u;"stack"===u&&(g=He({stack:f.option.title.tiled,tiled:f.option.title.stack},f.option.title),"emphasis"!==f.get(["iconStatus",u])&&(m="tiled")),s.dispatchAction({type:"changeMagicType",currentType:m,newOption:p,newTitle:g,featureName:"magicType"})}},i}(Is),yE={line:function(i,r,s,u){if("bar"===i)return He({id:r,type:"line",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},u.get(["option","line"])||{},!0)},bar:function(i,r,s,u){if("line"===i)return He({id:r,type:"bar",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},u.get(["option","bar"])||{},!0)},stack:function(i,r,s,u){var f=s.get("stack")===RV;if("line"===i||"bar"===i)return u.setIconStatus("stack",f?"normal":"emphasis"),He({id:r,stack:f?"":RV},u.get(["option","stack"])||{},!0)}};pl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(o,i){i.mergeOption(o.newOption)});var nb=_E,ld=new Array(60).join("-");function VY(o){var i=[];return q(o,function(r,s){var u=r.categoryAxis,d=r.valueAxis.dim,p=[" "].concat(Te(r.series,function(w){return w.name})),v=[u.model.getCategories()];q(r.series,function(w){var S=w.getRawData();v.push(w.getRawData().mapArray(S.mapDimension(d),function(M){return M}))});for(var g=[p.join("\t")],m=0;m=0)return!0}(u)){var d=function(o){for(var i=o.split(/\n+/g),s=[],u=Te(rb(i.shift()).split(bE),function(v){return{name:v,data:[]}}),f=0;f=0)&&d(f,u._targetInfoList)})}return o.prototype.setOutputRanges=function(i,r){return this.matchOutputRanges(i,r,function(s,u,f){if((s.coordRanges||(s.coordRanges=[])).push(u),!s.coordRange){s.coordRange=u;var d=ME[s.brushType](0,f,u);s.__rangeOffset={offset:UV[s.brushType](d.values,s.range,[1,1]),xyMinMax:d.xyMinMax}}}),i},o.prototype.matchOutputRanges=function(i,r,s){q(i,function(u){var f=this.findTargetInfo(u,r);f&&!0!==f&&q(f.coordSyses,function(d){var p=ME[u.brushType](1,d,u.range,!0);s(u,p.values,d,r)})},this)},o.prototype.setInputRanges=function(i,r){q(i,function(s){var u=this.findTargetInfo(s,r);if(s.range=s.range||[],u&&!0!==u){s.panelId=u.panelId;var f=ME[s.brushType](0,u.coordSys,s.coordRange),d=s.__rangeOffset;s.range=d?UV[s.brushType](f.values,d.offset,function(o,i){var r=qY(o),s=qY(i),u=[r[0]/s[0],r[1]/s[1]];return isNaN(u[0])&&(u[0]=1),isNaN(u[1])&&(u[1]=1),u}(f.xyMinMax,d.xyMinMax)):f.values}},this)},o.prototype.makePanelOpts=function(i,r){return Te(this._targetInfoList,function(s){var u=s.getPanelRect();return{panelId:s.panelId,defaultBrushType:r?r(s):null,clipPath:ku(u),isTargetByCursor:yA(u,i,s.coordSysModel),getLinearBrushOtherExtent:mg(u)}})},o.prototype.controlSeries=function(i,r,s){var u=this.findTargetInfo(i,s);return!0===u||u&&Rt(u.coordSyses,r.coordinateSystem)>=0},o.prototype.findTargetInfo=function(i,r){for(var s=this._targetInfoList,u=kE(r,i),f=0;fo[1]&&o.reverse(),o}function kE(o,i){return is(o,i,{includeMainTypes:GY})}var WY={grid:function(i,r){var s=i.xAxisModels,u=i.yAxisModels,f=i.gridModels,d=et(),p={},v={};!s&&!u&&!f||(q(s,function(g){var m=g.axis.grid.model;d.set(m.id,m),p[m.id]=!0}),q(u,function(g){var m=g.axis.grid.model;d.set(m.id,m),v[m.id]=!0}),q(f,function(g){d.set(g.id,g),p[g.id]=!0,v[g.id]=!0}),d.each(function(g){var y=[];q(g.coordinateSystem.getCartesians(),function(b,w){(Rt(s,b.getAxis("x").model)>=0||Rt(u,b.getAxis("y").model)>=0)&&y.push(b)}),r.push({panelId:"grid--"+g.id,gridModel:g,coordSysModel:g,coordSys:y[0],coordSyses:y,getPanelRect:zV.grid,xAxisDeclared:p[g.id],yAxisDeclared:v[g.id]})}))},geo:function(i,r){q(i.geoModels,function(s){var u=s.coordinateSystem;r.push({panelId:"geo--"+s.id,geoModel:s,coordSysModel:s,coordSys:u,coordSyses:[u],getPanelRect:zV.geo})})}},HV=[function(o,i){var r=o.xAxisModel,s=o.yAxisModel,u=o.gridModel;return!u&&r&&(u=r.axis.grid.model),!u&&s&&(u=s.axis.grid.model),u&&u===i.gridModel},function(o,i){var r=o.geoModel;return r&&r===i.geoModel}],zV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var i=this.coordSys,r=i.getBoundingRect().clone();return r.applyTransform(Lf(i)),r}},ME={lineX:St(xE,0),lineY:St(xE,1),rect:function(i,r,s,u){var f=i?r.pointToData([s[0][0],s[1][0]],u):r.dataToPoint([s[0][0],s[1][0]],u),d=i?r.pointToData([s[0][1],s[1][1]],u):r.dataToPoint([s[0][1],s[1][1]],u),p=[rS([f[0],d[0]]),rS([f[1],d[1]])];return{values:p,xyMinMax:p}},polygon:function(i,r,s,u){var f=[[1/0,-1/0],[1/0,-1/0]];return{values:Te(s,function(p){var v=i?r.pointToData(p,u):r.dataToPoint(p,u);return f[0][0]=Math.min(f[0][0],v[0]),f[1][0]=Math.min(f[1][0],v[1]),f[0][1]=Math.max(f[0][1],v[0]),f[1][1]=Math.max(f[1][1],v[1]),v}),xyMinMax:f}}};function xE(o,i,r,s){var u=r.getAxis(["x","y"][o]),f=rS(Te([0,1],function(p){return i?u.coordToData(u.toLocalCoord(s[p]),!0):u.toGlobalCoord(u.dataToCoord(s[p]))})),d=[];return d[o]=f,d[1-o]=[NaN,NaN],{values:f,xyMinMax:d}}var UV={lineX:St(YY,0),lineY:St(YY,1),rect:function(i,r,s){return[[i[0][0]-s[0]*r[0][0],i[0][1]-s[0]*r[0][1]],[i[1][0]-s[1]*r[1][0],i[1][1]-s[1]*r[1][1]]]},polygon:function(i,r,s){return Te(i,function(u,f){return[u[0]-s[0]*r[f][0],u[1]-s[1]*r[f][1]]})}};function YY(o,i,r,s){return[i[0]-s[o]*r[0],i[1]-s[o]*r[1]]}function qY(o){return o?[o[0][1]-o[0][0],o[1][1]-o[1][0]]:[NaN,NaN]}var TE=jY,DE=q,pQ=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.render=function(r,s,u,f){this._brushController||(this._brushController=new Vy(u.getZr()),this._brushController.on("brush",Ye(this._onBrush,this)).mount()),function(o,i,r,s,u){var f=r._isZoomActive;s&&"takeGlobalCursor"===s.type&&(f="dataZoomSelect"===s.key&&s.dataZoomSelectActive),r._isZoomActive=f,o.setIconStatus("zoom",f?"emphasis":"normal");var p=new TE(ab(o),i,{include:["grid"]}).makePanelOpts(u,function(v){return v.xAxisDeclared&&!v.yAxisDeclared?"lineX":!v.xAxisDeclared&&v.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(p).enableBrush(!(!f||!p.length)&&{brushType:"auto",brushStyle:o.getModel("brushStyle").getItemStyle()})}(r,s,this,f,u),function(o,i){o.setIconStatus("back",function(o){return SE(o).length}(i)>1?"emphasis":"normal")}(r,s)},i.prototype.onclick=function(r,s,u){vQ[u].call(this)},i.prototype.remove=function(r,s){this._brushController&&this._brushController.unmount()},i.prototype.dispose=function(r,s){this._brushController&&this._brushController.dispose()},i.prototype._onBrush=function(r){var s=r.areas;if(r.isEnd&&s.length){var u={},f=this.ecModel;this._brushController.updateCovers([]),new TE(ab(this.model),f,{include:["grid"]}).matchOutputRanges(s,f,function(g,m,y){if("cartesian2d"===y.type){var b=g.brushType;"rect"===b?(p("x",y,m[0]),p("y",y,m[1])):p({lineX:"x",lineY:"y"}[b],y,m)}}),function(o,i){var r=SE(o);wE(i,function(s,u){for(var f=r.length-1;f>=0&&!r[f][u];f--);if(f<0){var p=o.queryComponents({mainType:"dataZoom",subType:"select",id:u})[0];if(p){var v=p.getPercentRange();r[0][u]={dataZoomId:u,start:v[0],end:v[1]}}}}),r.push(i)}(f,u),this._dispatchZoomAction(u)}function p(g,m,y){var b=m.getAxis(g),w=b.model,S=function(g,m,y){var b;return y.eachComponent({mainType:"dataZoom",subType:"select"},function(w){w.getAxisModel(g,m.componentIndex)&&(b=w)}),b}(g,w,f),M=S.findRepresentativeAxisProxy(w).getMinMaxSpan();(null!=M.minValueSpan||null!=M.maxValueSpan)&&(y=kl(0,y.slice(),b.scale.getExtent(),0,M.minValueSpan,M.maxValueSpan)),S&&(u[S.id]={dataZoomId:S.id,startValue:y[0],endValue:y[1]})}},i.prototype._dispatchZoomAction=function(r){var s=[];DE(r,function(u,f){s.push(rt(u))}),s.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:s})},i.getDefaultOption=function(r){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},i}(Is),vQ={zoom:function(){this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!this._isZoomActive})},back:function(){this._dispatchZoomAction(function(o){var i=SE(o),r=i[i.length-1];i.length>1&&i.pop();var s={};return wE(r,function(u,f){for(var d=i.length-1;d>=0;d--)if(u=i[d][f]){s[f]=u;break}}),s}(this.ecModel))}};function ab(o){var i={xAxisIndex:o.get("xAxisIndex",!0),yAxisIndex:o.get("yAxisIndex",!0),xAxisId:o.get("xAxisId",!0),yAxisId:o.get("yAxisId",!0)};return null==i.xAxisIndex&&null==i.xAxisId&&(i.xAxisIndex="all"),null==i.yAxisIndex&&null==i.yAxisId&&(i.yAxisIndex="all"),i}!function(o,i){Oa(null==iC.get(o)&&i),iC.set(o,i)}("dataZoom",function(o){var i=o.getComponent("toolbox",0),r=["feature","dataZoom"];if(i&&null!=i.get(r)){var s=i.getModel(r),u=[],d=is(o,ab(s));return DE(d.xAxisModels,function(v){return p(v,"xAxis","xAxisIndex")}),DE(d.yAxisModels,function(v){return p(v,"yAxis","yAxisIndex")}),u}function p(v,g,m){var y=v.componentIndex,b={type:"select",$fromToolbox:!0,filterMode:s.get("filterMode",!0)||"filter",id:"\0_ec_\0toolbox-dataZoom_"+g+y};b[m]=y,u.push(b)}});var ZY=pQ,WV=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="tooltip",i.dependencies=["axisPointer"],i.defaultOption={zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},i}(qt);function EE(o){var i=o.get("confine");return null!=i?!!i:"richText"===o.get("renderMode")}function YV(o){if(Ze.domSupported)for(var i=document.documentElement.style,r=0,s=o.length;r-1?(p+="top:50%",v+="translateY(-50%) rotate("+(g="left"===f?-225:-45)+"deg)"):(p+="left:50%",v+="translateX(-50%) rotate("+(g="top"===f?225:45)+"deg)");var m=g*Math.PI/180,y=d+u,b=y*Math.abs(Math.cos(m))+y*Math.abs(Math.sin(m)),S=i+" solid "+u+"px;";return'
'}(s,u,f)),yt(i))d.innerHTML=i+p;else if(i){d.innerHTML="",we(i)||(i=[i]);for(var v=0;v=0;f--){var d=o[f];d&&(d instanceof Nn&&(d=d.get("tooltip",!0)),yt(d)&&(d={formatter:d}),d&&(u=new Nn(d,u,s)))}return u}function BE(o,i){return o.dispatchAction||Ye(i.dispatchAction,i)}function HE(o){return"center"===o||"middle"===o}var eB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){if(!Ze.node){var u=r.getComponent("tooltip"),f=u.get("renderMode");this._renderMode=function(o){return"auto"===o?Ze.domSupported?"html":"richText":o||"html"}(f),this._tooltipContent="richText"===this._renderMode?new gt(s):new Ac(s.getDom(),s,{appendToBody:u.get("appendToBody",!0)})}},i.prototype.render=function(r,s,u){if(!Ze.node){this.group.removeAll(),this._tooltipModel=r,this._ecModel=s,this._api=u,this._alwaysShowContent=r.get("alwaysShowContent");var f=this._tooltipContent;f.update(r),f.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow()}},i.prototype._initGlobalListener=function(){var s=this._tooltipModel.get("triggerOn");nY("itemTooltip",this._api,Bn(function(u,f,d){"none"!==s&&(s.indexOf(u)>=0?this._tryShow(f,d):"leave"===u&&this._hide(d))},this))},i.prototype._keepShow=function(){var r=this._tooltipModel,s=this._ecModel,u=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==r.get("triggerOn")){var f=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!u.isDisposed()&&f.manuallyShowTip(r,s,u,{x:f._lastX,y:f._lastY,dataByCoordSys:f._lastDataByCoordSys})})}},i.prototype.manuallyShowTip=function(r,s,u,f){if(f.from!==this.uid&&!Ze.node){var d=BE(f,u);this._ticket="";var p=f.dataByCoordSys,v=function(o,i,r){var s=f0(o).queryOptionMap,u=s.keys()[0];if(u&&"series"!==u){var v,d=d0(i,u,s.get(u),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(d&&(r.getViewOfComponentModel(d).group.traverse(function(g){var m=ht(g).tooltipConfig;if(m&&m.name===o.name)return v=g,!0}),v))return{componentMainType:u,componentIndex:d.componentIndex,el:v}}}(f,s,u);if(v){var g=v.el.getBoundingRect().clone();g.applyTransform(v.el.transform),this._tryShow({offsetX:g.x+g.width/2,offsetY:g.y+g.height/2,target:v.el,position:f.position,positionDefault:"bottom"},d)}else if(f.tooltip&&null!=f.x&&null!=f.y){var m=gQ;m.x=f.x,m.y=f.y,m.update(),ht(m).tooltipConfig={name:null,option:f.tooltip},this._tryShow({offsetX:f.x,offsetY:f.y,target:m},d)}else if(p)this._tryShow({offsetX:f.x,offsetY:f.y,position:f.position,dataByCoordSys:p,tooltipOption:f.tooltipOption},d);else if(null!=f.seriesIndex){if(this._manuallyAxisShowTip(r,s,u,f))return;var y=aY(f,s),b=y.point[0],w=y.point[1];null!=b&&null!=w&&this._tryShow({offsetX:b,offsetY:w,target:y.el,position:f.position,positionDefault:"bottom"},d)}else null!=f.x&&null!=f.y&&(u.dispatchAction({type:"updateAxisPointer",x:f.x,y:f.y}),this._tryShow({offsetX:f.x,offsetY:f.y,position:f.position,target:u.getZr().findHover(f.x,f.y).target},d))}},i.prototype.manuallyHideTip=function(r,s,u,f){!this._alwaysShowContent&&this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,f.from!==this.uid&&this._hide(BE(f,u))},i.prototype._manuallyAxisShowTip=function(r,s,u,f){var d=f.seriesIndex,p=f.dataIndex,v=s.getComponent("axisPointer").coordSysAxesInfo;if(null!=d&&null!=p&&null!=v){var g=s.getSeriesByIndex(d);if(g&&"axis"===VE([g.getData().getItemModel(p),g,(g.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return u.dispatchAction({type:"updateAxisPointer",seriesIndex:d,dataIndex:p,position:f.position}),!0}},i.prototype._tryShow=function(r,s){var u=r.target;if(this._tooltipModel){this._lastX=r.offsetX,this._lastY=r.offsetY;var d=r.dataByCoordSys;if(d&&d.length)this._showAxisTooltip(d,r);else if(u){var p,v;this._lastDataByCoordSys=null,xh(u,function(g){return null!=ht(g).dataIndex?(p=g,!0):null!=ht(g).tooltipConfig?(v=g,!0):void 0},!0),p?this._showSeriesItemTooltip(r,p,s):v?this._showComponentItemTooltip(r,v,s):this._hide(s)}else this._lastDataByCoordSys=null,this._hide(s)}},i.prototype._showOrMove=function(r,s){var u=r.get("showDelay");s=Ye(s,this),clearTimeout(this._showTimout),u>0?this._showTimout=setTimeout(s,u):s()},i.prototype._showAxisTooltip=function(r,s){var u=this._ecModel,d=[s.offsetX,s.offsetY],p=VE([s.tooltipOption],this._tooltipModel),v=this._renderMode,g=[],m=pi("section",{blocks:[],noHeader:!0}),y=[],b=new r_;Dl(r,function(P){Dl(P.dataByAxis,function(O){var R=u.getComponent(O.axisDim+"Axis",O.axisIndex),V=O.value;if(R&&null!=V){var B=Ps(V,R.axis,u,O.seriesDataIndices,O.valueLabelOpt),U=pi("section",{header:B,noHeader:!jc(B),sortBlocks:!0,blocks:[]});m.blocks.push(U),q(O.seriesDataIndices,function(j){var X=u.getSeriesByIndex(j.seriesIndex),Z=j.dataIndexInside,$=X.getDataParams(Z);if(!($.dataIndex<0)){$.axisDim=O.axisDim,$.axisIndex=O.axisIndex,$.axisType=O.axisType,$.axisId=O.axisId,$.axisValue=NT(R.axis,{value:V}),$.axisValueLabel=B,$.marker=b.makeTooltipMarker("item",wf($.color),v);var te=yh(X.formatTooltip(Z,!0,null));te.markupFragment&&U.blocks.push(te.markupFragment),te.markupText&&y.push(te.markupText),g.push($)}})}})}),m.blocks.reverse(),y.reverse();var w=s.position,S=p.get("order"),M=cR(m,b,v,S,u.get("useUTC"),p.get("textStyle"));M&&y.unshift(M);var T=y.join("richText"===v?"\n\n":"
");this._showOrMove(p,function(){this._updateContentNotChangedOnAxis(r,g)?this._updatePosition(p,w,d[0],d[1],this._tooltipContent,g):this._showTooltipContent(p,T,g,Math.random()+"",d[0],d[1],w,null,b)})},i.prototype._showSeriesItemTooltip=function(r,s,u){var f=this._ecModel,d=ht(s),p=d.seriesIndex,v=f.getSeriesByIndex(p),g=d.dataModel||v,m=d.dataIndex,y=d.dataType,b=g.getData(y),w=this._renderMode,S=r.positionDefault,M=VE([b.getItemModel(m),g,v&&(v.coordinateSystem||{}).model],this._tooltipModel,S?{position:S}:null),x=M.get("trigger");if(null==x||"item"===x){var T=g.getDataParams(m,y),P=new r_;T.marker=P.makeTooltipMarker("item",wf(T.color),w);var O=yh(g.formatTooltip(m,!1,y)),R=M.get("order"),V=O.markupFragment?cR(O.markupFragment,P,w,R,f.get("useUTC"),M.get("textStyle")):O.markupText,B="item_"+g.name+"_"+m;this._showOrMove(M,function(){this._showTooltipContent(M,V,T,B,r.offsetX,r.offsetY,r.position,r.target,P)}),u({type:"showTip",dataIndexInside:m,dataIndex:b.getRawIndex(m),seriesIndex:p,from:this.uid})}},i.prototype._showComponentItemTooltip=function(r,s,u){var f=ht(s),p=f.tooltipConfig.option||{};yt(p)&&(p={content:p,formatter:p});var g=[p],m=this._ecModel.getComponent(f.componentMainType,f.componentIndex);m&&g.push(m),g.push({formatter:p.content});var y=r.positionDefault,b=VE(g,this._tooltipModel,y?{position:y}:null),w=b.get("content"),S=Math.random()+"",M=new r_;this._showOrMove(b,function(){var x=rt(b.get("formatterParams")||{});this._showTooltipContent(b,w,x,S,r.offsetX,r.offsetY,r.position,s,M)}),u({type:"showTip",from:this.uid})},i.prototype._showTooltipContent=function(r,s,u,f,d,p,v,g,m){if(this._ticket="",r.get("showContent")&&r.get("show")){var y=this._tooltipContent,b=r.get("formatter");v=v||r.get("position");var w=s,M=this._getNearestPoint([d,p],u,r.get("trigger"),r.get("borderColor")).color;if(b)if(yt(b)){var x=r.ecModel.get("useUTC"),T=we(u)?u[0]:u;w=b,T&&T.axisType&&T.axisType.indexOf("time")>=0&&(w=iu(T.axisValue,w,x)),w=Wm(w,u,!0)}else if(An(b)){var O=Bn(function(R,V){R===this._ticket&&(y.setContent(V,m,r,M,v),this._updatePosition(r,v,d,p,y,u,g))},this);this._ticket=f,w=b(u,f,O)}else w=b;y.setContent(w,m,r,M,v),y.show(r,M),this._updatePosition(r,v,d,p,y,u,g)}},i.prototype._getNearestPoint=function(r,s,u,f){return"axis"===u||we(s)?{color:f||("html"===this._renderMode?"#fff":"none")}:we(s)?void 0:{color:f||s.color||s.borderColor}},i.prototype._updatePosition=function(r,s,u,f,d,p,v){var g=this._api.getWidth(),m=this._api.getHeight();s=s||r.get("position");var y=d.getSize(),b=r.get("align"),w=r.get("verticalAlign"),S=v&&v.getBoundingRect().clone();if(v&&S.applyTransform(v.transform),An(s)&&(s=s([u,f],p,d.el,S,{viewSize:[g,m],contentSize:y.slice()})),we(s))u=zn(s[0],g),f=zn(s[1],m);else if(at(s)){var M=s;M.width=y[0],M.height=y[1];var x=li(M,{width:g,height:m});u=x.x,f=x.y,b=null,w=null}else if(yt(s)&&v)u=(T=function(o,i,r,s){var u=r[0],f=r[1],d=Math.ceil(Math.SQRT2*s)+8,p=0,v=0,g=i.width,m=i.height;switch(o){case"inside":p=i.x+g/2-u/2,v=i.y+m/2-f/2;break;case"top":p=i.x+g/2-u/2,v=i.y-f-d;break;case"bottom":p=i.x+g/2-u/2,v=i.y+m+d;break;case"left":p=i.x-u-d,v=i.y+m/2-f/2;break;case"right":p=i.x+g+d,v=i.y+m/2-f/2}return[p,v]}(s,S,y,r.get("borderWidth")))[0],f=T[1];else{var T;u=(T=function(o,i,r,s,u,f,d){var p=r.getSize(),v=p[0],g=p[1];return null!=f&&(o+v+f+2>s?o-=v+f:o+=f),null!=d&&(i+g+d>u?i-=g+d:i+=d),[o,i]}(u,f,d,g,m,b?null:20,w?null:20))[0],f=T[1]}b&&(u-=HE(b)?y[0]/2:"right"===b?y[0]:0),w&&(f-=HE(w)?y[1]/2:"bottom"===w?y[1]:0),EE(r)&&(u=(T=function(o,i,r,s,u){var f=r.getSize(),d=f[0],p=f[1];return o=Math.min(o+d,s)-d,i=Math.min(i+p,u)-p,[o=Math.max(o,0),i=Math.max(i,0)]}(u,f,d,g,m))[0],f=T[1]),d.moveTo(u,f)},i.prototype._updateContentNotChangedOnAxis=function(r,s){var u=this._lastDataByCoordSys,f=this._cbParamsList,d=!!u&&u.length===r.length;return d&&Dl(u,function(p,v){var g=p.dataByAxis||[],y=(r[v]||{}).dataByAxis||[];(d=d&&g.length===y.length)&&Dl(g,function(b,w){var S=y[w]||{},M=b.seriesDataIndices||[],x=S.seriesDataIndices||[];(d=d&&b.value===S.value&&b.axisType===S.axisType&&b.axisId===S.axisId&&M.length===x.length)&&Dl(M,function(T,P){var O=x[P];d=d&&T.seriesIndex===O.seriesIndex&&T.dataIndex===O.dataIndex}),f&&q(b.seriesDataIndices,function(T){var P=T.seriesIndex,O=s[P],R=f[P];O&&R&&R.data!==O.data&&(d=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=s,!!d},i.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},i.prototype.dispose=function(r,s){Ze.node||(this._tooltipContent.dispose(),iE("itemTooltip",s))},i.type="tooltip",i}(un),ud=["rect","polygon","keep","clear"];function tB(o,i){var r=jn(o?o.brush:[]);if(r.length){var s=[];q(r,function(v){var g=v.hasOwnProperty("toolbox")?v.toolbox:[];g instanceof Array&&(s=s.concat(g))});var u=o&&o.toolbox;we(u)&&(u=u[0]),u||(o.toolbox=[u={feature:{}}]);var f=u.feature||(u.feature={}),d=f.brush||(f.brush={}),p=d.type||(d.type=[]);p.push.apply(p,s),function(o){var i={};q(o,function(r){i[r]=1}),o.length=0,q(i,function(r,s){o.push(s)})}(p),i&&!p.length&&p.push.apply(p,ud)}}var oS=q;function sS(o){if(o)for(var i in o)if(o.hasOwnProperty(i))return!0}function Ka(o,i,r){var s={};return oS(i,function(f){var d=s[f]=function(){var f=function(){};return f.prototype.__hidden=f.prototype,new f}();oS(o[f],function(p,v){if(Qi.isValidType(v)){var g={type:v,visual:p};r&&r(g,f),d[v]=new Qi(g),"opacity"===v&&((g=rt(g)).type="colorAlpha",d.__hidden.__alphaForOpacity=new Qi(g))}})}),s}function jE(o,i,r){var s;q(r,function(u){i.hasOwnProperty(u)&&sS(i[u])&&(s=!0)}),s&&q(r,function(u){i.hasOwnProperty(u)&&sS(i[u])?o[u]=rt(i[u]):delete o[u]})}var QY={lineX:qE(0),lineY:qE(1),rect:{point:function(i,r,s){return i&&s.boundingRect.contain(i[0],i[1])},rect:function(i,r,s){return i&&s.boundingRect.intersect(i)}},polygon:{point:function(i,r,s){return i&&s.boundingRect.contain(i[0],i[1])&&Ph(s.range,i[0],i[1])},rect:function(i,r,s){var u=s.range;if(!i||u.length<=1)return!1;var f=i.x,d=i.y,p=i.width,v=i.height,g=u[0];return!!(Ph(u,f,d)||Ph(u,f+p,d)||Ph(u,f,d+v)||Ph(u,f+p,d+v)||Ft.create(i).contain(g[0],g[1])||v_(f,d,f+p,d,u)||v_(f,d,f,d+v,u)||v_(f+p,d,f+p,d+v,u)||v_(f,d+v,f+p,d+v,u))||void 0}}};function qE(o){var i=["x","y"],r=["width","height"];return{point:function(u,f,d){if(u)return lS(u[o],d.range)},rect:function(u,f,d){if(u){var p=d.range,v=[u[i[o]],u[i[o]]+u[r[o]]];return v[1]r[0][1]&&(r[0][1]=d[0]),d[1]r[1][1]&&(r[1][1]=d[1])}return r&&dS(r)}};function dS(o){return new Ft(o[0][0],o[1][0],o[0][1]-o[0][0],o[1][1]-o[1][0])}var aB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){this.ecModel=r,this.api=s,(this._brushController=new Vy(s.getZr())).on("brush",Ye(this._onBrush,this)).mount()},i.prototype.render=function(r,s,u,f){this.model=r,this._updateController(r,s,u,f)},i.prototype.updateTransform=function(r,s,u,f){cS(s),this._updateController(r,s,u,f)},i.prototype.updateVisual=function(r,s,u,f){this.updateTransform(r,s,u,f)},i.prototype.updateView=function(r,s,u,f){this._updateController(r,s,u,f)},i.prototype._updateController=function(r,s,u,f){(!f||f.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(u)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},i.prototype.dispose=function(){this._brushController.dispose()},i.prototype._onBrush=function(r){var s=this.model.id,u=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:s,areas:rt(u),$from:s}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:s,areas:rt(u),$from:s})},i.type="brush",i}(un);function hS(o,i){return He({brushType:o.brushType,brushMode:o.brushMode,transformable:o.transformable,brushStyle:new Nn(o.brushStyle).getItemStyle(),removeOnClick:o.removeOnClick,z:o.z},i,!0)}var yQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.areas=[],r.brushOption={},r}return he(i,o),i.prototype.optionUpdated=function(r,s){var u=this.option;!s&&jE(u,r,["inBrush","outOfBrush"]);var f=u.inBrush=u.inBrush||{};u.outOfBrush=u.outOfBrush||{color:"#ddd"},f.hasOwnProperty("liftZ")||(f.liftZ=5)},i.prototype.setAreas=function(r){!r||(this.areas=Te(r,function(s){return hS(this.option,s)},this))},i.prototype.setBrushOption=function(r){this.brushOption=hS(this.option,r),this.brushType=this.brushOption.brushType},i.type="brush",i.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],i.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},i}(qt),bQ=["rect","polygon","lineX","lineY","keep","clear"],vS=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.render=function(r,s,u){var f,d,p;s.eachComponent({mainType:"brush"},function(v){f=v.brushType,d=v.brushOption.brushMode||"single",p=p||!!v.areas.length}),this._brushType=f,this._brushMode=d,q(r.get("type",!0),function(v){r.setIconStatus(v,("keep"===v?"multiple"===d:"clear"===v?p:v===f)?"emphasis":"normal")})},i.prototype.updateView=function(r,s,u){this.render(r,s,u)},i.prototype.getIcons=function(){var r=this.model,s=r.get("icon",!0),u={};return q(r.get("type",!0),function(f){s[f]&&(u[f]=s[f])}),u},i.prototype.onclick=function(r,s,u){var f=this._brushType,d=this._brushMode;"clear"===u?(s.dispatchAction({type:"axisAreaSelect",intervals:[]}),s.dispatchAction({type:"brush",command:"clear",areas:[]})):s.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===u?f:f!==u&&u,brushMode:"keep"===u?"multiple"===d?"single":"multiple":d}})},i.getDefaultOption=function(r){return{show:!0,type:bQ.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])}},i}(Is),KE=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.layoutMode={type:"box",ignoreSize:!0},r}return he(i,o),i.type="title",i.defaultOption={zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},i}(qt),hp=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){if(this.group.removeAll(),r.get("show")){var f=this.group,d=r.getModel("textStyle"),p=r.getModel("subtextStyle"),v=r.get("textAlign"),g=ot(r.get("textBaseline"),r.get("textVerticalAlign")),m=new fn({style:Or(d,{text:r.get("text"),fill:d.getTextColor()},{disableBox:!0}),z2:10}),y=m.getBoundingRect(),b=r.get("subtext"),w=new fn({style:Or(p,{text:b,fill:p.getTextColor(),y:y.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),S=r.get("link"),M=r.get("sublink"),x=r.get("triggerEvent",!0);m.silent=!S&&!x,w.silent=!M&&!x,S&&m.on("click",function(){J0(S,"_"+r.get("target"))}),M&&w.on("click",function(){J0(M,"_"+r.get("subtarget"))}),ht(m).eventData=ht(w).eventData=x?{componentType:"title",componentIndex:r.componentIndex}:null,f.add(m),b&&f.add(w);var T=f.getBoundingRect(),P=r.getBoxLayoutParams();P.width=T.width,P.height=T.height;var O=li(P,{width:u.getWidth(),height:u.getHeight()},r.get("padding"));v||("middle"===(v=r.get("left")||r.get("right"))&&(v="center"),"right"===v?O.x+=O.width:"center"===v&&(O.x+=O.width/2)),g||("center"===(g=r.get("top")||r.get("bottom"))&&(g="middle"),"bottom"===g?O.y+=O.height:"middle"===g&&(O.y+=O.height/2),g=g||"top"),f.x=O.x,f.y=O.y,f.markRedraw();var R={align:v,verticalAlign:g};m.setStyle(R),w.setStyle(R),T=f.getBoundingRect();var V=O.margin,B=r.getItemStyle(["color","opacity"]);B.fill=r.get("backgroundColor");var U=new sn({shape:{x:T.x-V[3],y:T.y-V[0],width:T.width+V[1]+V[3],height:T.height+V[0]+V[2],r:r.get("borderRadius")},style:B,subPixelOptimize:!0,silent:!0});f.add(U)}},i.type="title",i}(un),lB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.layoutMode="box",r}return he(i,o),i.prototype.init=function(r,s,u){this.mergeDefaultAndTheme(r,u),this._initData()},i.prototype.mergeOption=function(r){o.prototype.mergeOption.apply(this,arguments),this._initData()},i.prototype.setCurrentIndex=function(r){null==r&&(r=this.option.currentIndex);var s=this._data.count();this.option.loop?r=(r%s+s)%s:(r>=s&&(r=s-1),r<0&&(r=0)),this.option.currentIndex=r},i.prototype.getCurrentIndex=function(){return this.option.currentIndex},i.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},i.prototype.setPlayState=function(r){this.option.autoPlay=!!r},i.prototype.getPlayState=function(){return!!this.option.autoPlay},i.prototype._initData=function(){var d,r=this.option,s=r.data||[],u=r.axisType,f=this._names=[];"category"===u?(d=[],q(s,function(g,m){var b,y=wi(Ee(g),"");at(g)?(b=rt(g)).value=m:b=m,d.push(b),f.push(y)})):d=s,(this._data=new Ga([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[u]||"number"}],this)).initData(d,f)},i.prototype.getData=function(){return this._data},i.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},i.type="timeline",i.defaultOption={zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},i}(qt),pp=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="timeline.slider",i.defaultOption=rh(lB.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),i}(lB);qr(pp,Ke.prototype);var CQ=pp,uB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="timeline",i}(un),Au=function(o){function i(r,s,u,f){var d=o.call(this,r,s,u)||this;return d.type=f||"value",d}return he(i,o),i.prototype.getLabelModel=function(){return this.model.getModel("label")},i.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},i}(_l),Pc=Math.PI,Ig=pn();function ob(o,i,r,s,u,f){var d=i.get("color");u?(u.setColor(d),r.add(u),f&&f.onUpdate(u)):((u=Ir(o.get("symbol"),-1,-1,2,2,d)).setStyle("strokeNoScale",!0),r.add(u),f&&f.onCreate(u));var v=i.getItemStyle(["color"]);u.setStyle(v),s=He({rectHover:!0,z2:100},s,!0);var g=g_(o.get("symbolSize"));s.scaleX=g[0]/2,s.scaleY=g[1]/2;var m=Ah(o.get("symbolOffset"),g);m&&(s.x=(s.x||0)+m[0],s.y=(s.y||0)+m[1]);var y=o.get("symbolRotate");return s.rotation=(y||0)*Math.PI/180||0,u.attr(s),u.updateTransform(),u}function dB(o,i,r,s,u,f){if(!o.dragging){var d=u.getModel("checkpointStyle"),p=s.dataToCoord(u.getData().get("value",r));if(f||!d.get("animation",!0))o.attr({x:p,y:0}),i&&i.attr({shape:{x2:p}});else{var v={duration:d.get("animationDuration",!0),easing:d.get("animationEasing",!0)};o.stopAnimation(null,!0),o.animateTo({x:p,y:0},v),i&&i.animateTo({shape:{x2:p}},v)}}}var JE=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){this.api=s},i.prototype.render=function(r,s,u){if(this.model=r,this.api=u,this.ecModel=s,this.group.removeAll(),r.get("show",!0)){var f=this._layout(r,u),d=this._createGroup("_mainGroup"),p=this._createGroup("_labelGroup"),v=this._axis=this._createAxis(f,r);r.formatTooltip=function(g){return pi("nameValue",{noName:!0,value:v.scale.getLabel({value:g})})},q(["AxisLine","AxisTick","Control","CurrentPointer"],function(g){this["_render"+g](f,d,v,r)},this),this._renderAxisLabel(f,p,v,r),this._position(f,r)}this._doPlayStop(),this._updateTicksStatus()},i.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},i.prototype.dispose=function(){this._clearTimer()},i.prototype._layout=function(r,s){var p,u=r.get(["label","position"]),f=r.get("orient"),d=function(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()},o.get("padding"))}(r,s),v={horizontal:"center",vertical:(p=null==u||"auto"===u?"horizontal"===f?d.y+d.height/2=0||"+"===p?"left":"right"},g={horizontal:p>=0||"+"===p?"top":"bottom",vertical:"middle"},m={horizontal:0,vertical:Pc/2},y="vertical"===f?d.height:d.width,b=r.getModel("controlStyle"),w=b.get("show",!0),S=w?b.get("itemSize"):0,M=w?b.get("itemGap"):0,x=S+M,T=r.get(["label","rotate"])||0;T=T*Pc/180;var P,O,R,V=b.get("position",!0),B=w&&b.get("showPlayBtn",!0),U=w&&b.get("showPrevBtn",!0),j=w&&b.get("showNextBtn",!0),X=0,Z=y;"left"===V||"bottom"===V?(B&&(P=[0,0],X+=x),U&&(O=[X,0],X+=x),j&&(R=[Z-S,0],Z-=x)):(B&&(P=[Z-S,0],Z-=x),U&&(O=[0,0],X+=x),j&&(R=[Z-S,0],Z-=x));var $=[X,Z];return r.get("inverse")&&$.reverse(),{viewRect:d,mainLength:y,orient:f,rotation:m[f],labelRotation:T,labelPosOpt:p,labelAlign:r.get(["label","align"])||v[f],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||g[f],playPosition:P,prevBtnPosition:O,nextBtnPosition:R,axisExtent:$,controlSize:S,controlGap:M}},i.prototype._position=function(r,s){var u=this._mainGroup,f=this._labelGroup,d=r.viewRect;if("vertical"===r.orient){var p=[1,0,0,1,0,0],v=d.x,g=d.y+d.height;Oo(p,p,[-v,-g]),Od(p,p,-Pc/2),Oo(p,p,[v,g]),(d=d.clone()).applyTransform(p)}var m=P(d),y=P(u.getBoundingRect()),b=P(f.getBoundingRect()),w=[u.x,u.y],S=[f.x,f.y];S[0]=w[0]=m[0][0];var x,M=r.labelPosOpt;function T(R){R.originX=m[0][0]-R.x,R.originY=m[1][0]-R.y}function P(R){return[[R.x,R.x+R.width],[R.y,R.y+R.height]]}function O(R,V,B,U,j){R[U]+=B[U][j]-V[U][j]}null==M||yt(M)?(O(w,y,m,1,x="+"===M?0:1),O(S,b,m,1,1-x)):(O(w,y,m,1,x=M>=0?0:1),S[1]=w[1]+M),u.setPosition(w),f.setPosition(S),u.rotation=f.rotation=r.rotation,T(u),T(f)},i.prototype._createAxis=function(r,s){var u=s.getData(),f=s.get("axisType"),d=function(o,i){if(i=i||o.get("type"))switch(i){case"category":return new TT({ordinalMeta:o.getCategories(),extent:[1/0,-1/0]});case"time":return new pU({locale:o.ecModel.getLocaleModel(),useUTC:o.ecModel.get("useUTC")});default:return new Vv}}(s,f);d.getTicks=function(){return u.mapArray(["value"],function(g){return{value:g}})};var p=u.getDataExtent("value");d.setExtent(p[0],p[1]),d.niceTicks();var v=new Au("value",d,r.axisExtent,f);return v.model=s,v},i.prototype._createGroup=function(r){var s=this[r]=new ct;return this.group.add(s),s},i.prototype._renderAxisLine=function(r,s,u,f){var d=u.getExtent();if(f.get(["lineStyle","show"])){var p=new Ti({shape:{x1:d[0],y1:0,x2:d[1],y2:0},style:Se({lineCap:"round"},f.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});s.add(p);var v=this._progressLine=new Ti({shape:{x1:d[0],x2:this._currentPointer?this._currentPointer.x:d[0],y1:0,y2:0},style:tt({lineCap:"round",lineWidth:p.style.lineWidth},f.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});s.add(v)}},i.prototype._renderAxisTick=function(r,s,u,f){var d=this,p=f.getData(),v=u.scale.getTicks();this._tickSymbols=[],q(v,function(g){var m=u.dataToCoord(g.value),y=p.getItemModel(g.value),b=y.getModel("itemStyle"),w=y.getModel(["emphasis","itemStyle"]),S=y.getModel(["progress","itemStyle"]),M={x:m,y:0,onclick:Ye(d._changeTimeline,d,g.value)},x=ob(y,b,s,M);x.ensureState("emphasis").style=w.getItemStyle(),x.ensureState("progress").style=S.getItemStyle(),qn(x);var T=ht(x);y.get("tooltip")?(T.dataIndex=g.value,T.dataModel=f):T.dataIndex=T.dataModel=null,d._tickSymbols.push(x)})},i.prototype._renderAxisLabel=function(r,s,u,f){var d=this;if(u.getLabelModel().get("show")){var v=f.getData(),g=u.getViewLabels();this._tickLabels=[],q(g,function(m){var y=m.tickValue,b=v.getItemModel(y),w=b.getModel("label"),S=b.getModel(["emphasis","label"]),M=b.getModel(["progress","label"]),x=u.dataToCoord(m.tickValue),T=new fn({x:x,y:0,rotation:r.labelRotation-r.rotation,onclick:Ye(d._changeTimeline,d,y),silent:!1,style:Or(w,{text:m.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});T.ensureState("emphasis").style=Or(S),T.ensureState("progress").style=Or(M),s.add(T),qn(T),Ig(T).dataIndex=y,d._tickLabels.push(T)})}},i.prototype._renderControl=function(r,s,u,f){var d=r.controlSize,p=r.rotation,v=f.getModel("controlStyle").getItemStyle(),g=f.getModel(["emphasis","controlStyle"]).getItemStyle(),m=f.getPlayState(),y=f.get("inverse",!0);function b(w,S,M,x){if(w){var T=Ro(ot(f.get(["controlStyle",S+"BtnSize"]),d),d),O=function(o,i,r,s){var u=s.style,f=cl(o.get(["controlStyle",i]),s||{},new Ft(r[0],r[1],r[2],r[3]));return u&&f.setStyle(u),f}(f,S+"Icon",[0,-T/2,T,T],{x:w[0],y:w[1],originX:d/2,originY:0,rotation:x?-p:0,rectHover:!0,style:v,onclick:M});O.ensureState("emphasis").style=g,s.add(O),qn(O)}}b(r.nextBtnPosition,"next",Ye(this._changeTimeline,this,y?"-":"+")),b(r.prevBtnPosition,"prev",Ye(this._changeTimeline,this,y?"+":"-")),b(r.playPosition,m?"stop":"play",Ye(this._handlePlayClick,this,!m),!0)},i.prototype._renderCurrentPointer=function(r,s,u,f){var d=f.getData(),p=f.getCurrentIndex(),v=d.getItemModel(p).getModel("checkpointStyle"),g=this;this._currentPointer=ob(v,v,this._mainGroup,{},this._currentPointer,{onCreate:function(b){b.draggable=!0,b.drift=Ye(g._handlePointerDrag,g),b.ondragend=Ye(g._handlePointerDragend,g),dB(b,g._progressLine,p,u,f,!0)},onUpdate:function(b){dB(b,g._progressLine,p,u,f)}})},i.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},i.prototype._handlePointerDrag=function(r,s,u){this._clearTimer(),this._pointerChangeTimeline([u.offsetX,u.offsetY])},i.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},i.prototype._pointerChangeTimeline=function(r,s){var u=this._toAxisCoord(r)[0],d=io(this._axis.getExtent().slice());u>d[1]&&(u=d[1]),u=0&&(d[f]=+d[f].toFixed(b)),[d,y]}var tP={min:St(lb,"min"),max:St(lb,"max"),average:St(lb,"average"),median:St(lb,"median")};function ub(o,i){var r=o.getData(),s=o.coordinateSystem;if(i&&!function(o){return!isNaN(parseFloat(o.x))&&!isNaN(parseFloat(o.y))}(i)&&!we(i.coord)&&s){var u=s.dimensions,f=_B(i,r,s,o);if((i=rt(i)).type&&tP[i.type]&&f.baseAxis&&f.valueAxis){var d=Rt(u,f.baseAxis.dim),p=Rt(u,f.valueAxis.dim),v=tP[i.type](r,f.baseDataDim,f.valueDataDim,d,p);i.coord=v[0],i.value=v[1]}else{for(var g=[null!=i.xAxis?i.xAxis:i.radiusAxis,null!=i.yAxis?i.yAxis:i.angleAxis],m=0;m<2;m++)tP[g[m]]&&(g[m]=nP(r,r.mapDimension(u[m]),g[m]));i.coord=g}}return i}function _B(o,i,r,s){var u={};return null!=o.valueIndex||null!=o.valueDim?(u.valueDataDim=null!=o.valueIndex?i.getDimension(o.valueIndex):o.valueDim,u.valueAxis=r.getAxis(function(o,i){var r=o.getData().getDimensionInfo(i);return r&&r.coordDim}(s,u.valueDataDim)),u.baseAxis=r.getOtherAxis(u.valueAxis),u.baseDataDim=i.mapDimension(u.baseAxis.dim)):(u.baseAxis=s.getBaseAxis(),u.valueAxis=r.getOtherAxis(u.baseAxis),u.baseDataDim=i.mapDimension(u.baseAxis.dim),u.valueDataDim=i.mapDimension(u.valueAxis.dim)),u}function cb(o,i){return!(o&&o.containData&&i.coord&&!function(o){return!(isNaN(parseFloat(o.x))&&isNaN(parseFloat(o.y)))}(i))||o.containData(i.coord)}function fb(o,i,r,s){return s<2?o.coord&&o.coord[s]:o.value}function nP(o,i,r){if("average"===r){var s=0,u=0;return o.each(i,function(f,d){isNaN(f)||(s+=f,u++)}),s/u}return"median"===r?o.getMedian(i):o.getDataExtent(i)["max"===r?1:0]}var Ic=pn(),db=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(){this.markerGroupMap=et()},i.prototype.render=function(r,s,u){var f=this,d=this.markerGroupMap;d.each(function(p){Ic(p).keep=!1}),s.eachSeries(function(p){var v=Al.getMarkerModelFromSeries(p,f.type);v&&f.renderSeries(p,v,s,u)}),d.each(function(p){!Ic(p).keep&&f.group.remove(p.group)})},i.prototype.markKeep=function(r){Ic(r).keep=!0},i.prototype.blurSeries=function(r){var s=this;q(r,function(u){var f=Al.getMarkerModelFromSeries(u,s.type);f&&f.getData().eachItemGraphicEl(function(p){p&&Lm(p)})})},i.type="marker",i}(un);function CS(o,i,r){var s=i.coordinateSystem;o.each(function(u){var d,f=o.getItemModel(u),p=Fe(f.get("x"),r.getWidth()),v=Fe(f.get("y"),r.getHeight());if(isNaN(p)||isNaN(v)){if(i.getMarkerPosition)d=i.getMarkerPosition(o.getValues(o.dimensions,u));else if(s){var g=o.get(s.dimensions[0],u),m=o.get(s.dimensions[1],u);d=s.dataToPoint([g,m])}}else d=[p,v];isNaN(p)||(d[0]=p),isNaN(v)||(d[1]=v),o.setItemLayout(u,d)})}var u9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.updateTransform=function(r,s,u){s.eachSeries(function(f){var d=Al.getMarkerModelFromSeries(f,"markPoint");d&&(CS(d.getData(),f,u),this.markerGroupMap.get(f.id).updateLayout())},this)},i.prototype.renderSeries=function(r,s,u,f){var d=r.coordinateSystem,p=r.id,v=r.getData(),g=this.markerGroupMap,m=g.get(p)||g.set(p,new Y_),y=function(o,i,r){var s;s=o?Te(o&&o.dimensions,function(d){return Se(Se({},i.getData().getDimensionInfo(i.getData().mapDimension(d))||{}),{name:d,ordinalMeta:null})}):[{name:"value",type:"float"}];var u=new Ga(s,r),f=Te(r.get("data"),St(ub,i));return o&&(f=Yn(f,St(cb,o))),u.initData(f,null,o?fb:function(d){return d.value}),u}(d,r,s);s.setData(y),CS(s.getData(),r,f),y.each(function(b){var w=y.getItemModel(b),S=w.getShallow("symbol"),M=w.getShallow("symbolSize"),x=w.getShallow("symbolRotate"),T=w.getShallow("symbolOffset"),P=w.getShallow("symbolKeepAspect");if(An(S)||An(M)||An(x)||An(T)){var O=s.getRawValue(b),R=s.getDataParams(b);An(S)&&(S=S(O,R)),An(M)&&(M=M(O,R)),An(x)&&(x=x(O,R)),An(T)&&(T=T(O,R))}var V=w.getModel("itemStyle").getItemStyle(),B=kh(v,"color");V.fill||(V.fill=B),y.setItemVisual(b,{symbol:S,symbolSize:M,symbolRotate:x,symbolOffset:T,symbolKeepAspect:P,style:V})}),m.updateData(y),this.group.add(m.group),y.eachItemGraphicEl(function(b){b.traverse(function(w){ht(w).dataModel=s})}),this.markKeep(m),m.group.silent=s.get("silent")||r.get("silent")},i.type="markPoint",i}(db),yB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.createMarkerModelFromSeries=function(r,s,u){return new i(r,s,u)},i.type="markLine",i.defaultOption={zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},i}(Al),wS=pn(),SS=function(i,r,s,u){var d,f=i.getData();if(we(u))d=u;else{var p=u.type;if("min"===p||"max"===p||"average"===p||"median"===p||null!=u.xAxis||null!=u.yAxis){var v=void 0,g=void 0;if(null!=u.yAxis||null!=u.xAxis)v=r.getAxis(null!=u.yAxis?"y":"x"),g=ni(u.yAxis,u.xAxis);else{var m=_B(u,f,r,i);v=m.valueAxis,g=nP(f,MT(f,m.valueDataDim),p)}var b="x"===v.dim?0:1,w=1-b,S=rt(u),M={coord:[]};S.type=null,S.coord=[],S.coord[w]=-1/0,M.coord[w]=1/0;var x=s.get("precision");x>=0&&"number"==typeof g&&(g=+g.toFixed(Math.min(x,20))),S.coord[b]=M.coord[b]=g,d=[S,M,{type:p,valueIndex:u.valueIndex,value:g}]}else d=[]}var T=[ub(i,d[0]),ub(i,d[1]),Se({},d[2])];return T[2].type=T[2].type||null,He(T[2],T[0]),He(T[2],T[1]),T};function kS(o){return!isNaN(o)&&!isFinite(o)}function iP(o,i,r,s){var u=1-o,f=s.dimensions[o];return kS(i[u])&&kS(r[u])&&i[o]===r[o]&&s.getAxis(f).containData(i[o])}function d9(o,i){if("cartesian2d"===o.type){var r=i[0].coord,s=i[1].coord;if(r&&s&&(iP(1,r,s,o)||iP(0,r,s,o)))return!0}return cb(o,i[0])&&cb(o,i[1])}function MS(o,i,r,s,u){var p,f=s.coordinateSystem,d=o.getItemModel(i),v=Fe(d.get("x"),u.getWidth()),g=Fe(d.get("y"),u.getHeight());if(isNaN(v)||isNaN(g)){if(s.getMarkerPosition)p=s.getMarkerPosition(o.getValues(o.dimensions,i));else{var y=o.get((m=f.dimensions)[0],i),b=o.get(m[1],i);p=f.dataToPoint([y,b])}if(uc(f,"cartesian2d")){var m,w=f.getAxis("x"),S=f.getAxis("y");kS(o.get((m=f.dimensions)[0],i))?p[0]=w.toGlobalCoord(w.getExtent()[r?0:1]):kS(o.get(m[1],i))&&(p[1]=S.toGlobalCoord(S.getExtent()[r?0:1]))}isNaN(v)||(p[0]=v),isNaN(g)||(p[1]=g)}else p=[v,g];o.setItemLayout(i,p)}var aP=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.updateTransform=function(r,s,u){s.eachSeries(function(f){var d=Al.getMarkerModelFromSeries(f,"markLine");if(d){var p=d.getData(),v=wS(d).from,g=wS(d).to;v.each(function(m){MS(v,m,!0,f,u),MS(g,m,!1,f,u)}),p.each(function(m){p.setItemLayout(m,[v.getItemLayout(m),g.getItemLayout(m)])}),this.markerGroupMap.get(f.id).updateLayout()}},this)},i.prototype.renderSeries=function(r,s,u,f){var d=r.coordinateSystem,p=r.id,v=r.getData(),g=this.markerGroupMap,m=g.get(p)||g.set(p,new gN);this.group.add(m.group);var y=function(o,i,r){var s;s=o?Te(o&&o.dimensions,function(g){return Se(Se({},i.getData().getDimensionInfo(i.getData().mapDimension(g))||{}),{name:g,ordinalMeta:null})}):[{name:"value",type:"float"}];var u=new Ga(s,r),f=new Ga(s,r),d=new Ga([],r),p=Te(r.get("data"),St(SS,i,o,r));o&&(p=Yn(p,St(d9,o)));var v=o?fb:function(g){return g.value};return u.initData(Te(p,function(g){return g[0]}),null,v),f.initData(Te(p,function(g){return g[1]}),null,v),d.initData(Te(p,function(g){return g[2]})),d.hasItemOption=!0,{from:u,to:f,line:d}}(d,r,s),b=y.from,w=y.to,S=y.line;wS(s).from=b,wS(s).to=w,s.setData(S);var M=s.get("symbol"),x=s.get("symbolSize"),T=s.get("symbolRotate"),P=s.get("symbolOffset");function O(R,V,B){var U=R.getItemModel(V);MS(R,V,B,r,f);var j=U.getModel("itemStyle").getItemStyle();null==j.fill&&(j.fill=kh(v,"color")),R.setItemVisual(V,{symbolKeepAspect:U.get("symbolKeepAspect"),symbolOffset:ot(U.get("symbolOffset",!0),P[B?0:1]),symbolRotate:ot(U.get("symbolRotate",!0),T[B?0:1]),symbolSize:ot(U.get("symbolSize"),x[B?0:1]),symbol:ot(U.get("symbol",!0),M[B?0:1]),style:j})}we(M)||(M=[M,M]),we(x)||(x=[x,x]),we(T)||(T=[T,T]),we(P)||(P=[P,P]),y.from.each(function(R){O(b,R,!0),O(w,R,!1)}),S.each(function(R){var V=S.getItemModel(R).getModel("lineStyle").getLineStyle();S.setItemLayout(R,[b.getItemLayout(R),w.getItemLayout(R)]),null==V.stroke&&(V.stroke=b.getItemVisual(R,"style").fill),S.setItemVisual(R,{fromSymbolKeepAspect:b.getItemVisual(R,"symbolKeepAspect"),fromSymbolOffset:b.getItemVisual(R,"symbolOffset"),fromSymbolRotate:b.getItemVisual(R,"symbolRotate"),fromSymbolSize:b.getItemVisual(R,"symbolSize"),fromSymbol:b.getItemVisual(R,"symbol"),toSymbolKeepAspect:w.getItemVisual(R,"symbolKeepAspect"),toSymbolOffset:w.getItemVisual(R,"symbolOffset"),toSymbolRotate:w.getItemVisual(R,"symbolRotate"),toSymbolSize:w.getItemVisual(R,"symbolSize"),toSymbol:w.getItemVisual(R,"symbol"),style:V})}),m.updateData(S),y.line.eachItemGraphicEl(function(R,V){R.traverse(function(B){ht(B).dataModel=s})}),this.markKeep(m),m.group.silent=s.get("silent")||r.get("silent")},i.type="markLine",i}(db),v9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.createMarkerModelFromSeries=function(r,s,u){return new i(r,s,u)},i.type="markArea",i.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},i}(Al),xS=pn(),g9=function(i,r,s,u){var f=ub(i,u[0]),d=ub(i,u[1]),p=f.coord,v=d.coord;p[0]=ni(p[0],-1/0),p[1]=ni(p[1],-1/0),v[0]=ni(v[0],1/0),v[1]=ni(v[1],1/0);var g=Lb([{},f,d]);return g.coord=[f.coord,d.coord],g.x0=f.x,g.y0=f.y,g.x1=d.x,g.y1=d.y,g};function hb(o){return!isNaN(o)&&!isFinite(o)}function TS(o,i,r,s){var u=1-o;return hb(i[u])&&hb(r[u])}function bB(o,i){var r=i.coord[0],s=i.coord[1];return!!(uc(o,"cartesian2d")&&r&&s&&(TS(1,r,s)||TS(0,r,s)))||cb(o,{coord:r,x:i.x0,y:i.y0})||cb(o,{coord:s,x:i.x1,y:i.y1})}function CB(o,i,r,s,u){var p,f=s.coordinateSystem,d=o.getItemModel(i),v=Fe(d.get(r[0]),u.getWidth()),g=Fe(d.get(r[1]),u.getHeight());if(isNaN(v)||isNaN(g)){if(s.getMarkerPosition)p=s.getMarkerPosition(o.getValues(r,i));else{var b=[m=o.get(r[0],i),y=o.get(r[1],i)];f.clampData&&f.clampData(b,b),p=f.dataToPoint(b,!0)}if(uc(f,"cartesian2d")){var w=f.getAxis("x"),S=f.getAxis("y"),m=o.get(r[0],i),y=o.get(r[1],i);hb(m)?p[0]=w.toGlobalCoord(w.getExtent()["x0"===r[0]?0:1]):hb(y)&&(p[1]=S.toGlobalCoord(S.getExtent()["y0"===r[1]?0:1]))}isNaN(v)||(p[0]=v),isNaN(g)||(p[1]=g)}else p=[v,g];return p}var wB=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],y9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.updateTransform=function(r,s,u){s.eachSeries(function(f){var d=Al.getMarkerModelFromSeries(f,"markArea");if(d){var p=d.getData();p.each(function(v){var g=Te(wB,function(y){return CB(p,v,y,f,u)});p.setItemLayout(v,g),p.getItemGraphicEl(v).setShape("points",g)})}},this)},i.prototype.renderSeries=function(r,s,u,f){var d=r.coordinateSystem,p=r.id,v=r.getData(),g=this.markerGroupMap,m=g.get(p)||g.set(p,{group:new ct});this.group.add(m.group),this.markKeep(m);var y=function(o,i,r){var s,u;o?(s=Te(o&&o.dimensions,function(v){var g=i.getData();return Se(Se({},g.getDimensionInfo(g.mapDimension(v))||{}),{name:v,ordinalMeta:null})}),u=new Ga(Te(["x0","y0","x1","y1"],function(v,g){return{name:v,type:s[g%2].type}}),r)):u=new Ga(s=[{name:"value",type:"float"}],r);var d=Te(r.get("data"),St(g9,i,o,r));return o&&(d=Yn(d,St(bB,o))),u.initData(d,null,o?function(v,g,m,y){return v.coord[Math.floor(y/2)][y%2]}:function(v){return v.value}),u.hasItemOption=!0,u}(d,r,s);s.setData(y),y.each(function(b){var w=Te(wB,function(j){return CB(y,b,j,r,f)}),S=d.getAxis("x").scale,M=d.getAxis("y").scale,x=S.getExtent(),T=M.getExtent(),P=[S.parse(y.get("x0",b)),S.parse(y.get("x1",b))],O=[M.parse(y.get("y0",b)),M.parse(y.get("y1",b))];io(P),io(O),y.setItemLayout(b,{points:w,allClipped:!!(x[0]>P[1]||x[1]O[1]||T[1]=0},i.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},i.type="legend.plain",i.dependencies=["series"],i.defaultOption={zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",decal:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},i}(qt),Rg=St,oP=q,pb=ct;function sP(o,i,r,s){vb(o,i,r,s),r.dispatchAction({type:"legendToggleSelect",name:null!=o?o:i}),Co(o,i,r,s)}function kB(o){for(var r,i=o.getZr().storage.getDisplayList(),s=0,u=i.length;s0?2:0:g[b]=w}var S=i.getModel("lineStyle"),M=q0.concat([["inactiveColor"],["inactiveWidth"]]),x={};for(m=0;m0?2:0:x[b]=w}if("auto"===g.fill&&(g.fill=u.fill),"auto"===g.stroke&&(g.stroke=u.fill),"auto"===x.stroke&&(x.stroke=u.fill),!d){var T=i.get("inactiveBorderWidth"),P=g[o.indexOf("empty")>-1?"fill":"stroke"];g.lineWidth="auto"===T?u.lineWidth>0&&P?2:0:g.lineWidth,g.fill=i.get("inactiveColor"),g.stroke=i.get("inactiveBorderColor"),x.stroke=r.get("inactiveColor"),x.lineWidth=r.get("inactiveWidth")}return{itemStyle:g,lineStyle:x}}(m=T||m||"roundRect",f,d.getModel("lineStyle"),v,g,b,M),R=new pb,V=f.getModel("textStyle");if("function"!=typeof r.getLegendIcon||T&&"inherit"!==T){var B="inherit"===T&&r.getData().getVisual("symbol")?"inherit"===x?r.getData().getVisual("symbolRotate"):x:0;R.add(function(o){var i=o.icon||"roundRect",r=Ir(i,0,0,o.itemWidth,o.itemHeight,o.itemStyle.fill);return r.setStyle(o.itemStyle),r.rotation=(o.iconRotate||0)*Math.PI/180,r.setOrigin([o.itemWidth/2,o.itemHeight/2]),i.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}({itemWidth:w,itemHeight:S,icon:m,iconRotate:B,itemStyle:O.itemStyle,lineStyle:O.lineStyle}))}else R.add(r.getLegendIcon({itemWidth:w,itemHeight:S,icon:m,iconRotate:x,itemStyle:O.itemStyle,lineStyle:O.lineStyle}));var U="left"===p?w+5:-5,j=p,X=d.get("formatter"),Z=s;"string"==typeof X&&X?Z=X.replace("{name}",null!=s?s:""):"function"==typeof X&&(Z=X(s));var $=f.get("inactiveColor");R.add(new fn({style:Or(V,{text:Z,x:U,y:S/2,fill:M?V.getTextColor():$,align:j,verticalAlign:"middle"})}));var te=new sn({shape:R.getBoundingRect(),invisible:!0}),ee=f.getModel("tooltip");return ee.get("show")&&Av({el:te,componentModel:d,itemName:s,itemTooltipOption:ee.option}),R.add(te),R.eachChild(function(le){le.silent=!0}),te.silent=!y,this.getContentGroup().add(R),qn(R),R.__legendDataIndex=u,R},i.prototype.layoutInner=function(r,s,u,f,d,p){var v=this.getContentGroup(),g=this.getSelectorGroup();Sf(r.get("orient"),v,r.get("itemGap"),u.width,u.height);var m=v.getBoundingRect(),y=[-m.x,-m.y];if(g.markRedraw(),v.markRedraw(),d){Sf("horizontal",g,r.get("selectorItemGap",!0));var b=g.getBoundingRect(),w=[-b.x,-b.y],S=r.get("selectorButtonGap",!0),M=r.getOrient().index,x=0===M?"width":"height",T=0===M?"height":"width",P=0===M?"y":"x";"end"===p?w[M]+=m[x]+S:y[M]+=b[x]+S,w[1-M]+=m[T]/2-b[T]/2,g.x=w[0],g.y=w[1],v.x=y[0],v.y=y[1];var O={x:0,y:0};return O[x]=m[x]+S+b[x],O[T]=Math.max(m[T],b[T]),O[P]=Math.min(0,b[P]+w[1-M]),O}return v.x=y[0],v.y=y[1],this.group.getBoundingRect()},i.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},i.type="legend.plain",i}(un);function lP(o){var i=o.findComponents({mainType:"legend"});i&&i.length&&o.filterSeries(function(r){for(var s=0;su[d],x=[-w.x,-w.y];s||(x[f]=m[g]);var T=[0,0],P=[-S.x,-S.y],O=ot(r.get("pageButtonGap",!0),r.get("itemGap",!0));M&&("end"===r.get("pageButtonPosition",!0)?P[f]+=u[d]-S[d]:T[f]+=S[d]+O),P[1-f]+=w[p]/2-S[p]/2,m.setPosition(x),y.setPosition(T),b.setPosition(P);var V={x:0,y:0};if(V[d]=M?u[d]:w[d],V[p]=Math.max(w[p],S[p]),V[v]=Math.min(0,S[v]+P[1-f]),y.__rectSize=u[d],M){var B={x:0,y:0};B[d]=Math.max(u[d]-S[d]-O,0),B[p]=V[p],y.setClipPath(new sn({shape:B})),y.__rectSize=B[d]}else b.eachChild(function(j){j.attr({invisible:!0,silent:!0})});var U=this._getPageInfo(r);return null!=U.pageIndex&&ln(m,{x:U.contentPosition[0],y:U.contentPosition[1]},M?r:null),this._updatePageInfoView(r,U),V},i.prototype._pageGo=function(r,s,u){var f=this._getPageInfo(s)[r];null!=f&&u.dispatchAction({type:"legendScroll",scrollDataIndex:f,legendId:s.id})},i.prototype._updatePageInfoView=function(r,s){var u=this._controllerGroup;q(["pagePrev","pageNext"],function(m){var b=null!=s[m+"DataIndex"],w=u.childOfName(m);w&&(w.setStyle("fill",r.get(b?"pageIconColor":"pageIconInactiveColor",!0)),w.cursor=b?"pointer":"default")});var f=u.childOfName("pageText"),d=r.get("pageFormatter"),p=s.pageIndex,v=null!=p?p+1:0,g=s.pageCount;f&&d&&f.setStyle("text",yt(d)?d.replace("{current}",null==v?"":v+"").replace("{total}",null==g?"":g+""):d({current:v,total:g}))},i.prototype._getPageInfo=function(r){var s=r.get("scrollDataIndex",!0),u=this.getContentGroup(),f=this._containerGroup.__rectSize,d=r.getOrient().index,p=PS[d],v=OS[d],g=this._findTargetItemIndex(s),m=u.children(),y=m[g],b=m.length,w=b?1:0,S={contentPosition:[u.x,u.y],pageCount:w,pageIndex:w-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!y)return S;var M=R(y);S.contentPosition[d]=-M.s;for(var x=g+1,T=M,P=M,O=null;x<=b;++x)(!(O=R(m[x]))&&P.e>T.s+f||O&&!V(O,T.s))&&(T=P.i>T.i?P:O)&&(null==S.pageNextDataIndex&&(S.pageNextDataIndex=T.i),++S.pageCount),P=O;for(x=g-1,T=M,P=M,O=null;x>=-1;--x)(!(O=R(m[x]))||!V(P,O.s))&&T.i=U&&B.s<=U+f}},i.prototype._findTargetItemIndex=function(r){return this._showController?(this.getContentGroup().eachChild(function(d,p){var v=d.__legendDataIndex;null==f&&null!=v&&(f=p),v===r&&(s=p)}),null!=s?s:f):0;var s,f},i.type="legend.scroll",i}(Lg);function Rs(o){Ot(AS),o.registerComponentModel(ES),o.registerComponentView(IS),function(o){o.registerAction("legendScroll","legendscroll",function(i,r){var s=i.scrollDataIndex;null!=s&&r.eachComponent({mainType:"legend",subType:"scroll",query:i},function(u){u.setScrollDataIndex(s)})})}(o)}var D9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="dataZoom.inside",i.defaultOption=rh(eS.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),i}(eS),RS=pn();function A9(o,i,r){RS(o).coordSysRecordMap.each(function(s){var u=s.dataZoomInfoMap.get(i.uid);u&&(u.getRange=r)})}function mb(o,i){if(i){o.removeKey(i.model.uid);var r=i.controller;r&&r.dispose()}}function E9(o,i){o.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:i})}function uP(o,i,r,s){return o.coordinateSystem.containPoint([r,s])}var EB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return he(i,o),i.prototype.render=function(r,s,u){o.prototype.render.apply(this,arguments),r.noTarget()?this._clear():(this.range=r.getPercentRange(),A9(u,r,{pan:Ye(LS.pan,this),zoom:Ye(LS.zoom,this),scrollMove:Ye(LS.scrollMove,this)}))},i.prototype.dispose=function(){this._clear(),o.prototype.dispose.apply(this,arguments)},i.prototype._clear=function(){(function(o,i){for(var r=RS(o).coordSysRecordMap,s=r.keys(),u=0;u0?v.pixelStart+v.pixelLength-v.pixel:v.pixel-v.pixelStart)/v.pixelLength*(d[1]-d[0])+d[0],m=Math.max(1/u.scale,0);d[0]=(d[0]-g)*m+g,d[1]=(d[1]-g)*m+g;var y=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(kl(0,d,[0,100],0,y.minSpan,y.maxSpan),this.range=d,f[0]!==d[0]||f[1]!==d[1])return d}},pan:PB(function(o,i,r,s,u,f){var d=cP[s]([f.oldX,f.oldY],[f.newX,f.newY],i,u,r);return d.signal*(o[1]-o[0])*d.pixel/d.pixelLength}),scrollMove:PB(function(o,i,r,s,u,f){return cP[s]([0,0],[f.scrollDelta,f.scrollDelta],i,u,r).signal*(o[1]-o[0])*f.scrollDelta})};function PB(o){return function(i,r,s,u){var f=this.range,d=f.slice(),p=i.axisModels[0];if(p&&(kl(o(d,p,i,r,s,u),d,[0,100],"all"),this.range=d,f[0]!==d[0]||f[1]!==d[1]))return d}}var cP={grid:function(i,r,s,u,f){var d=s.axis,p={},v=f.model.coordinateSystem.getRect();return i=i||[0,0],"x"===d.dim?(p.pixel=r[0]-i[0],p.pixelLength=v.width,p.pixelStart=v.x,p.signal=d.inverse?1:-1):(p.pixel=r[1]-i[1],p.pixelLength=v.height,p.pixelStart=v.y,p.signal=d.inverse?-1:1),p},polar:function(i,r,s,u,f){var d=s.axis,p={},v=f.model.coordinateSystem,g=v.getRadiusAxis().getExtent(),m=v.getAngleAxis().getExtent();return i=i?v.pointToCoord(i):[0,0],r=v.pointToCoord(r),"radiusAxis"===s.mainType?(p.pixel=r[0]-i[0],p.pixelLength=g[1]-g[0],p.pixelStart=g[0],p.signal=d.inverse?1:-1):(p.pixel=r[1]-i[1],p.pixelLength=m[1]-m[0],p.pixelStart=m[0],p.signal=d.inverse?-1:1),p},singleAxis:function(i,r,s,u,f){var d=s.axis,p=f.model.coordinateSystem.getRect(),v={};return i=i||[0,0],"horizontal"===d.orient?(v.pixel=r[0]-i[0],v.pixelLength=p.width,v.pixelStart=p.x,v.signal=d.inverse?1:-1):(v.pixel=r[1]-i[1],v.pixelLength=p.height,v.pixelStart=p.y,v.signal=d.inverse?-1:1),v}},OB=EB;function IB(o){vE(o),o.registerComponentModel(D9),o.registerComponentView(OB),function(o){o.registerProcessor(o.PRIORITY.PROCESSOR.FILTER,function(i,r){var s=RS(r),u=s.coordSysRecordMap||(s.coordSysRecordMap=et());u.each(function(f){f.dataZoomInfoMap=null}),i.eachComponent({mainType:"dataZoom",subType:"inside"},function(f){q(MV(f).infoList,function(p){var v=p.model.uid,g=u.get(v)||u.set(v,function(o,i){var r={model:i,containsPoint:St(uP,i),dispatchAction:St(E9,o),dataZoomInfoMap:null,controller:null},s=r.controller=new hy(o.getZr());return q(["pan","zoom","scrollMove"],function(u){s.on(u,function(f){var d=[];r.dataZoomInfoMap.each(function(p){if(f.isAvailableBehavior(p.model.option)){var v=(p.getRange||{})[u],g=v&&v(p.dzReferCoordSysInfo,r.model.mainType,r.controller,f);!p.model.get("disabled",!0)&&g&&d.push({dataZoomId:p.model.id,start:g[0],end:g[1]})}}),d.length&&r.dispatchAction(d)})}),r}(r,p.model));(g.dataZoomInfoMap||(g.dataZoomInfoMap=et())).set(f.uid,{dzReferCoordSysInfo:p,model:f,getRange:null})})}),u.each(function(f){var p,d=f.controller,v=f.dataZoomInfoMap;if(v){var g=v.keys()[0];null!=g&&(p=v.get(g))}if(p){var m=function(o){var i,r="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},u=!0;return o.each(function(f){var d=f.model,p=!d.get("disabled",!0)&&(!d.get("zoomLock",!0)||"move");s[r+p]>s[r+i]&&(i=p),u=u&&d.get("preventDefaultMouseMove",!0)}),{controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!u}}}(v);d.enable(m.controlType,m.opt),d.setPointerChecker(f.containsPoint),il(f,"dispatchAction",p.model.get("throttle",!0),"fixRate")}else mb(u,f)})})}(o)}var RB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="dataZoom.slider",i.layoutMode="box",i.defaultOption=rh(eS.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),i}(eS),vp=sn,yb="horizontal",LB="vertical",L9=["line","bar","candlestick","scatter"],F9={easing:"cubicOut",duration:100,delay:0};function BB(o){return"vertical"===o?"ns-resize":"ew-resize"}var N9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._displayables={},r}return he(i,o),i.prototype.init=function(r,s){this.api=s,this._onBrush=Ye(this._onBrush,this),this._onBrushEnd=Ye(this._onBrushEnd,this)},i.prototype.render=function(r,s,u,f){if(o.prototype.render.apply(this,arguments),il(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),!1!==r.get("show"))return r.noTarget()?(this._clear(),void this.group.removeAll()):((!f||"dataZoom"!==f.type||f.from!==this.uid)&&this._buildView(),void this._updateView());this.group.removeAll()},i.prototype.dispose=function(){this._clear(),o.prototype.dispose.apply(this,arguments)},i.prototype._clear=function(){!function(o,i){var r=o[i];r&&r[J]&&(o[i]=r[J])}(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},i.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var s=this._displayables.sliderGroup=new ct;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(s),this._positionGroup()},i.prototype._resetLocation=function(){var r=this.dataZoomModel,s=this.api,f=r.get("brushSelect")?7:0,d=this._findCoordRect(),p={width:s.getWidth(),height:s.getHeight()},v=this._orient===yb?{right:p.width-d.x-d.width,top:p.height-30-7-f,width:d.width,height:30}:{right:7,top:d.y,width:30,height:d.height},g=av(r.option);q(["right","top","width","height"],function(y){"ph"===g[y]&&(g[y]=v[y])});var m=li(g,p);this._location={x:m.x,y:m.y},this._size=[m.width,m.height],this._orient===LB&&this._size.reverse()},i.prototype._positionGroup=function(){var r=this.group,s=this._location,u=this._orient,f=this.dataZoomModel.getFirstTargetAxisModel(),d=f&&f.get("inverse"),p=this._displayables.sliderGroup,v=(this._dataShadowInfo||{}).otherAxisInverse;p.attr(u!==yb||d?u===yb&&d?{scaleY:v?1:-1,scaleX:-1}:u!==LB||d?{scaleY:v?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:v?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:v?1:-1,scaleX:1});var g=r.getBoundingRect([p]);r.x=s.x-g.x,r.y=s.y-g.y,r.markRedraw()},i.prototype._getViewExtent=function(){return[0,this._size[0]]},i.prototype._renderBackground=function(){var r=this.dataZoomModel,s=this._size,u=this._displayables.sliderGroup,f=r.get("brushSelect");u.add(new vp({silent:!0,shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var d=new vp({shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:"transparent"},z2:0,onclick:Ye(this._onClickPanel,this)}),p=this.api.getZr();f?(d.on("mousedown",this._onBrushStart,this),d.cursor="crosshair",p.on("mousemove",this._onBrush),p.on("mouseup",this._onBrushEnd)):(p.off("mousemove",this._onBrush),p.off("mouseup",this._onBrushEnd)),u.add(d)},i.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],r){var s=this._size,u=r.series,f=u.getRawData(),d=u.getShadowDim?u.getShadowDim():r.otherDim;if(null!=d){var p=f.getDataExtent(d),v=.3*(p[1]-p[0]);p=[p[0]-v,p[1]+v];var x,g=[0,s[1]],y=[[s[0],0],[0,0]],b=[],w=s[0]/(f.count()-1),S=0,M=Math.round(f.count()/s[0]);f.each([d],function(V,B){if(M>0&&B%M)S+=w;else{var U=null==V||isNaN(V)||""===V,j=U?0:bn(V,p,g,!0);U&&!x&&B?(y.push([y[y.length-1][0],0]),b.push([b[b.length-1][0],0])):!U&&x&&(y.push([S,0]),b.push([S,0])),y.push([S,j]),b.push([S,j]),S+=w,x=U}});for(var B,U,j,X,T=this.dataZoomModel,O=0;O<3;O++){var R=(B=void 0,U=void 0,void 0,void 0,B=T.getModel(1===O?"selectedDataBackground":"dataBackground"),U=new ct,j=new ya({shape:{points:y},segmentIgnoreThreshold:1,style:B.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),X=new br({shape:{points:b},segmentIgnoreThreshold:1,style:B.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),U.add(j),U.add(X),U);this._displayables.sliderGroup.add(R),this._displayables.dataShadowSegs.push(R)}}}},i.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,s=r.get("showDataShadow");if(!1!==s){var u,f=this.ecModel;return r.eachTargetAxis(function(d,p){q(r.getAxisProxy(d,p).getTargetSeriesModels(),function(g){if(!(u||!0!==s&&Rt(L9,g.get("type"))<0)){var b,m=f.getComponent(Dc(d),p).axis,y=function(o){return{x:"y",y:"x",radius:"angle",angle:"radius"}[o]}(d),w=g.coordinateSystem;null!=y&&w.getOtherAxis&&(b=w.getOtherAxis(m).inverse),y=g.getData().mapDimension(y),u={thisAxis:m,series:g,thisDim:d,otherDim:y,otherAxisInverse:b}}},this)},this),u}},i.prototype._renderHandle=function(){var r=this.group,s=this._displayables,u=s.handles=[null,null],f=s.handleLabels=[null,null],d=this._displayables.sliderGroup,p=this._size,v=this.dataZoomModel,g=this.api,m=v.get("borderRadius")||0,y=v.get("brushSelect"),b=s.filler=new vp({silent:y,style:{fill:v.get("fillerColor")},textConfig:{position:"inside"}});d.add(b),d.add(new vp({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:p[0],height:p[1],r:m},style:{stroke:v.get("dataBackgroundColor")||v.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),q([0,1],function(O){var R=v.get("handleIcon");!EC[R]&&R.indexOf("path://")<0&&R.indexOf("image://")<0&&(R="path://"+R);var V=Ir(R,-1,0,2,2,null,!0);V.attr({cursor:BB(this._orient),draggable:!0,drift:Ye(this._onDragMove,this,O),ondragend:Ye(this._onDragEnd,this),onmouseover:Ye(this._showDataInfo,this,!0),onmouseout:Ye(this._showDataInfo,this,!1),z2:5});var B=V.getBoundingRect(),U=v.get("handleSize");this._handleHeight=Fe(U,this._size[1]),this._handleWidth=B.width/B.height*this._handleHeight,V.setStyle(v.getModel("handleStyle").getItemStyle()),V.style.strokeNoScale=!0,V.rectHover=!0,V.ensureState("emphasis").style=v.getModel(["emphasis","handleStyle"]).getItemStyle(),qn(V);var j=v.get("handleColor");null!=j&&(V.style.fill=j),d.add(u[O]=V);var X=v.getModel("textStyle");r.add(f[O]=new fn({silent:!0,invisible:!0,style:Or(X,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:X.getTextColor(),font:X.getFont()}),z2:10}))},this);var w=b;if(y){var S=Fe(v.get("moveHandleSize"),p[1]),M=s.moveHandle=new sn({style:v.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:p[1]-.5,height:S}}),x=.8*S,T=s.moveHandleIcon=Ir(v.get("moveHandleIcon"),-x/2,-x/2,x,x,"#fff",!0);T.silent=!0,T.y=p[1]+S/2-.5,M.ensureState("emphasis").style=v.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var P=Math.min(p[1]/2,Math.max(S,10));(w=s.moveZone=new sn({invisible:!0,shape:{y:p[1]-P,height:S+P}})).on("mouseover",function(){g.enterEmphasis(M)}).on("mouseout",function(){g.leaveEmphasis(M)}),d.add(M),d.add(T),d.add(w)}w.attr({draggable:!0,cursor:BB(this._orient),drift:Ye(this._onDragMove,this,"all"),ondragstart:Ye(this._showDataInfo,this,!0),ondragend:Ye(this._onDragEnd,this),onmouseover:Ye(this._showDataInfo,this,!0),onmouseout:Ye(this._showDataInfo,this,!1)})},i.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),s=this._getViewExtent();this._handleEnds=[bn(r[0],[0,100],s,!0),bn(r[1],[0,100],s,!0)]},i.prototype._updateInterval=function(r,s){var u=this.dataZoomModel,f=this._handleEnds,d=this._getViewExtent(),p=u.findRepresentativeAxisProxy().getMinMaxSpan(),v=[0,100];kl(s,f,d,u.get("zoomLock")?"all":r,null!=p.minSpan?bn(p.minSpan,v,d,!0):null,null!=p.maxSpan?bn(p.maxSpan,v,d,!0):null);var g=this._range,m=this._range=io([bn(f[0],d,v,!0),bn(f[1],d,v,!0)]);return!g||g[0]!==m[0]||g[1]!==m[1]},i.prototype._updateView=function(r){var s=this._displayables,u=this._handleEnds,f=io(u.slice()),d=this._size;q([0,1],function(w){var M=this._handleHeight;s.handles[w].attr({scaleX:M/2,scaleY:M/2,x:u[w]+(w?-1:1),y:d[1]/2-M/2})},this),s.filler.setShape({x:f[0],y:0,width:f[1]-f[0],height:d[1]});var p={x:f[0],width:f[1]-f[0]};s.moveHandle&&(s.moveHandle.setShape(p),s.moveZone.setShape(p),s.moveZone.getBoundingRect(),s.moveHandleIcon&&s.moveHandleIcon.attr("x",p.x+p.width/2));for(var v=s.dataShadowSegs,g=[0,f[0],f[1],d[0]],m=0;ms[0]||u[1]<0||u[1]>s[1])){var f=this._handleEnds,p=this._updateInterval("all",u[0]-(f[0]+f[1])/2);this._updateView(),p&&this._dispatchZoomAction(!1)}},i.prototype._onBrushStart=function(r){this._brushStart=new Tt(r.offsetX,r.offsetY),this._brushing=!0,this._brushStartTime=+new Date},i.prototype._onBrushEnd=function(r){if(this._brushing){var s=this._displayables.brushRect;if(this._brushing=!1,s){s.attr("ignore",!0);var u=s.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(u.width)<5)){var d=this._getViewExtent(),p=[0,100];this._range=io([bn(u.x,d,p,!0),bn(u.x+u.width,d,p,!0)]),this._handleEnds=[u.x,u.x+u.width],this._updateView(),this._dispatchZoomAction(!1)}}}},i.prototype._onBrush=function(r){this._brushing&&(Vl(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},i.prototype._updateBrushRect=function(r,s){var u=this._displayables,d=u.brushRect;d||(d=u.brushRect=new vp({silent:!0,style:this.dataZoomModel.getModel("brushStyle").getItemStyle()}),u.sliderGroup.add(d)),d.attr("ignore",!1);var p=this._brushStart,v=this._displayables.sliderGroup,g=v.transformCoordToLocal(r,s),m=v.transformCoordToLocal(p.x,p.y),y=this._size;g[0]=Math.max(Math.min(y[0],g[0]),0),d.setShape({x:m[0],y:0,width:g[0]-m[0],height:y[1]})},i.prototype._dispatchZoomAction=function(r){var s=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?F9:null,start:s[0],end:s[1]})},i.prototype._findCoordRect=function(){var r,s=MV(this.dataZoomModel).infoList;if(!r&&s.length){var u=s[0].model.coordinateSystem;r=u.getRect&&u.getRect()}if(!r){var f=this.api.getWidth(),d=this.api.getHeight();r={x:.2*f,y:.2*d,width:.6*f,height:.6*d}}return r},i.type="dataZoom.slider",i}(Tu);function HB(o){o.registerComponentModel(RB),o.registerComponentView(N9),vE(o)}var MQ={get:function(i,r,s){var u=rt((UB[i]||{})[r]);return s&&we(u)?u[u.length-1]:u}},UB={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},GB=MQ,jB=Qi.mapVisual,WB=Qi.eachVisual,V9=we,YB=q,B9=io,qB=bn,bb=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return he(i,o),i.prototype.init=function(r,s,u){this.mergeDefaultAndTheme(r,u)},i.prototype.optionUpdated=function(r,s){var u=this.option;Ze.canvasSupported||(u.realtime=!1),!s&&jE(u,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},i.prototype.resetVisual=function(r){var s=this.stateList;r=Ye(r,this),this.controllerVisuals=Ka(this.option.controller,s,r),this.targetVisuals=Ka(this.option.target,s,r)},i.prototype.getItemSymbol=function(){return null},i.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,s=[];return null==r||"all"===r?this.ecModel.eachSeries(function(u,f){s.push(f)}):s=jn(r),s},i.prototype.eachTargetSeries=function(r,s){q(this.getTargetSeriesIndices(),function(u){var f=this.ecModel.getSeriesByIndex(u);f&&r.call(s,f)},this)},i.prototype.isTargetSeries=function(r){var s=!1;return this.eachTargetSeries(function(u){u===r&&(s=!0)}),s},i.prototype.formatValueText=function(r,s,u){var g,f=this.option,d=f.precision,p=this.dataBound,v=f.formatter;u=u||["<",">"],we(r)&&(r=r.slice(),g=!0);var m=s?r:g?[y(r[0]),y(r[1])]:y(r);return yt(v)?v.replace("{value}",g?m[0]:m).replace("{value2}",g?m[1]:m):An(v)?g?v(r[0],r[1]):v(r):g?r[0]===p[0]?u[0]+" "+m[1]:r[1]===p[1]?u[1]+" "+m[0]:m[0]+" - "+m[1]:m;function y(b){return b===p[0]?"min":b===p[1]?"max":(+b).toFixed(Math.min(d,20))}},i.prototype.resetExtent=function(){var r=this.option,s=B9([r.min,r.max]);this._dataExtent=s},i.prototype.getDataDimensionIndex=function(r){var s=this.option.dimension;if(null!=s)return r.getDimensionIndex(s);for(var u=r.dimensions,f=u.length-1;f>=0;f--){var p=r.getDimensionInfo(u[f]);if(!p.isCalculationCoord)return p.storeDimIndex}},i.prototype.getExtent=function(){return this._dataExtent.slice()},i.prototype.completeVisualOption=function(){var r=this.ecModel,s=this.option,u={inRange:s.inRange,outOfRange:s.outOfRange},f=s.target||(s.target={}),d=s.controller||(s.controller={});He(f,u),He(d,u);var p=this.isCategory();function v(y){V9(s.color)&&!y.inRange&&(y.inRange={color:s.color.slice().reverse()}),y.inRange=y.inRange||{color:r.get("gradientColor")}}v.call(this,f),v.call(this,d),function(y,b,w){var S=y[b],M=y[w];S&&!M&&(M=y[w]={},YB(S,function(x,T){if(Qi.isValidType(T)){var P=GB.get(T,"inactive",p);null!=P&&(M[T]=P,"color"===T&&!M.hasOwnProperty("opacity")&&!M.hasOwnProperty("colorAlpha")&&(M.opacity=[0,0]))}}))}.call(this,f,"inRange","outOfRange"),function(y){var b=(y.inRange||{}).symbol||(y.outOfRange||{}).symbol,w=(y.inRange||{}).symbolSize||(y.outOfRange||{}).symbolSize,S=this.get("inactiveColor"),x=this.getItemSymbol()||"roundRect";YB(this.stateList,function(T){var P=this.itemSize,O=y[T];O||(O=y[T]={color:p?S:[S]}),null==O.symbol&&(O.symbol=b&&rt(b)||(p?x:[x])),null==O.symbolSize&&(O.symbolSize=w&&rt(w)||(p?P[0]:[P[0],P[0]])),O.symbol=jB(O.symbol,function(B){return"none"===B?x:B});var R=O.symbolSize;if(null!=R){var V=-1/0;WB(R,function(B){B>V&&(V=B)}),O.symbolSize=jB(R,function(B){return qB(B,[0,V],[0,P[0]],!0)})}},this)}.call(this,d)},i.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},i.prototype.isCategory=function(){return!!this.option.categories},i.prototype.setSelected=function(r){},i.prototype.getSelected=function(){return null},i.prototype.getValueState=function(r){return null},i.prototype.getVisualMeta=function(r){return null},i.type="visualMap",i.dependencies=["series"],i.defaultOption={show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},i}(qt),XB=[20,140];function KB(o,i,r){if(r[0]===r[1])return r.slice();for(var u=(r[1]-r[0])/200,f=r[0],d=[],p=0;p<=200&&fs[1]&&s.reverse(),s[0]=Math.max(s[0],r[0]),s[1]=Math.min(s[1],r[1]))},i.prototype.completeVisualOption=function(){o.prototype.completeVisualOption.apply(this,arguments),q(this.stateList,function(r){var s=this.option.controller[r].symbolSize;s&&s[0]!==s[1]&&(s[0]=s[1]/3)},this)},i.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},i.prototype.getSelected=function(){var r=this.getExtent(),s=io((this.get("range")||[]).slice());return s[0]>r[1]&&(s[0]=r[1]),s[1]>r[1]&&(s[1]=r[1]),s[0]=u[1]||r<=s[1])?"inRange":"outOfRange"},i.prototype.findTargetDataIndices=function(r){var s=[];return this.eachTargetSeries(function(u){var f=[],d=u.getData();d.each(this.getDataDimensionIndex(d),function(p,v){r[0]<=p&&p<=r[1]&&f.push(v)},this),s.push({seriesId:u.id,dataIndex:f})},this),s},i.prototype.getVisualMeta=function(r){var s=KB(0,0,this.getExtent()),u=KB(0,0,this.option.range.slice()),f=[];function d(w,S){f.push({value:w,color:r(w,S)})}for(var p=0,v=0,g=u.length,m=s.length;vr[1])break;f.push({color:this.getControllerVisual(v,"color",s),offset:p/100})}return f.push({color:this.getControllerVisual(r[1],"color",s),offset:1}),f},i.prototype._createBarPoints=function(r,s){var u=this.visualMapModel.itemSize;return[[u[0]-s[0],r[0]],[u[0],r[0]],[u[0],r[1]],[u[0]-s[1],r[1]]]},i.prototype._createBarGroup=function(r){var s=this._orient,u=this.visualMapModel.get("inverse");return new ct("horizontal"!==s||u?"horizontal"===s&&u?{scaleX:"bottom"===r?-1:1,rotation:-Math.PI/2}:"vertical"!==s||u?{scaleX:"left"===r?1:-1}:{scaleX:"left"===r?1:-1,scaleY:-1}:{scaleX:"bottom"===r?1:-1,rotation:Math.PI/2})},i.prototype._updateHandle=function(r,s){if(this._useHandle){var u=this._shapes,f=this.visualMapModel,d=u.handleThumbs,p=u.handleLabels,v=f.itemSize,g=f.getExtent();e5([0,1],function(m){var y=d[m];y.setStyle("fill",s.handlesColor[m]),y.y=r[m];var b=Un(r[m],[0,v[1]],g,!0),w=this.getControllerVisual(b,"symbolSize");y.scaleX=y.scaleY=w/v[0],y.x=v[0]-w/2;var S=ul(u.handleLabelPoints[m],Lf(y,this.group));p[m].setStyle({x:S[0],y:S[1],text:f.formatValueText(this._dataInterval[m]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",u.mainGroup):"center"})},this)}},i.prototype._showIndicator=function(r,s,u,f){var d=this.visualMapModel,p=d.getExtent(),v=d.itemSize,g=[0,v[1]],m=this._shapes,y=m.indicator;if(y){y.attr("invisible",!1);var w=this.getControllerVisual(r,"color",{convertOpacityToAlpha:!0}),S=this.getControllerVisual(r,"symbolSize"),M=Un(r,p,g,!0),x=v[0]-S/2,T={x:y.x,y:y.y};y.y=M,y.x=x;var P=ul(m.indicatorLabelPoint,Lf(y,this.group)),O=m.indicatorLabel;O.attr("invisible",!1);var R=this._applyTransform("left",m.mainGroup),B="horizontal"===this._orient;O.setStyle({text:(u||"")+d.formatValueText(s),verticalAlign:B?R:"middle",align:B?"center":R});var U={x:x,y:M,style:{fill:w}},j={style:{x:P[0],y:P[1]}};if(d.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var X={duration:100,easing:"cubicInOut",additive:!0};y.x=T.x,y.y=T.y,y.animateTo(U,X),O.animateTo(j,X)}else y.attr(U),O.attr(j);this._firstShowIndicator=!1;var Z=this._shapes.handleLabels;if(Z)for(var $=0;$d[1]&&(y[1]=1/0),s&&(y[0]===-1/0?this._showIndicator(m,y[1],"< ",v):y[1]===1/0?this._showIndicator(m,y[0],"> ",v):this._showIndicator(m,m,"\u2248 ",v));var b=this._hoverLinkDataIndices,w=[];(s||n5(u))&&(w=this._hoverLinkDataIndices=u.findTargetDataIndices(y));var S=function(o,i){var r={},s={};return u(o||[],r),u(i||[],s,r),[f(r),f(s)];function u(d,p,v){for(var g=0,m=d.length;g=0&&(d.dimension=p,u.push(d))}}),i.getData().setVisual("visualMeta",u)}}];function q9(o,i,r,s){for(var u=i.targetVisuals[s],f=Qi.prepareVisualTypes(u),d={color:kh(o.getData(),"color")},p=0,v=f.length;p0:i.splitNumber>0)&&!i.calculable?"piecewise":"continuous"}),o.registerAction(W9,Y9),q(i5,function(i){o.registerVisual(o.PRIORITY.VISUAL.COMPONENT,i)}),o.registerPreprocessor($t))}function gp(o){o.registerComponentModel(H9),o.registerComponentView(TQ),El(o)}var HS=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._pieceList=[],r}return he(i,o),i.prototype.optionUpdated=function(r,s){o.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var u=this._mode=this._determineMode();this._pieceList=[],o5[this._mode].call(this,this._pieceList),this._resetSelected(r,s);var f=this.option.categories;this.resetVisual(function(d,p){"categories"===u?(d.mappingMethod="category",d.categories=rt(f)):(d.dataExtent=this.getExtent(),d.mappingMethod="piecewise",d.pieceList=Te(this._pieceList,function(v){return v=rt(v),"inRange"!==p&&(v.visual=null),v}))})},i.prototype.completeVisualOption=function(){var r=this.option,s={},u=Qi.listVisualTypes(),f=this.isCategory();function d(p,v,g){return p&&p[v]&&p[v].hasOwnProperty(g)}q(r.pieces,function(p){q(u,function(v){p.hasOwnProperty(v)&&(s[v]=1)})}),q(s,function(p,v){var g=!1;q(this.stateList,function(m){g=g||d(r,m,v)||d(r.target,m,v)},this),!g&&q(this.stateList,function(m){(r[m]||(r[m]={}))[v]=GB.get(v,"inRange"===m?"active":"inactive",f)})},this),o.prototype.completeVisualOption.apply(this,arguments)},i.prototype._resetSelected=function(r,s){var u=this.option,f=this._pieceList,d=(s?u:r).selected||{};if(u.selected=d,q(f,function(v,g){var m=this.getSelectedMapKey(v);d.hasOwnProperty(m)||(d[m]=!0)},this),"single"===u.selectedMode){var p=!1;q(f,function(v,g){var m=this.getSelectedMapKey(v);d[m]&&(p?d[m]=!1:p=!0)},this)}},i.prototype.getItemSymbol=function(){return this.get("itemSymbol")},i.prototype.getSelectedMapKey=function(r){return"categories"===this._mode?r.value+"":r.index+""},i.prototype.getPieceList=function(){return this._pieceList},i.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},i.prototype.setSelected=function(r){this.option.selected=rt(r)},i.prototype.getValueState=function(r){var s=Qi.findPieceIndex(r,this._pieceList);return null!=s&&this.option.selected[this.getSelectedMapKey(this._pieceList[s])]?"inRange":"outOfRange"},i.prototype.findTargetDataIndices=function(r){var s=[],u=this._pieceList;return this.eachTargetSeries(function(f){var d=[],p=f.getData();p.each(this.getDataDimensionIndex(p),function(v,g){Qi.findPieceIndex(v,u)===r&&d.push(g)},this),s.push({seriesId:f.id,dataIndex:d})},this),s},i.prototype.getRepresentValue=function(r){var s;if(this.isCategory())s=r.value;else if(null!=r.value)s=r.value;else{var u=r.interval||[];s=u[0]===-1/0&&u[1]===1/0?0:(u[0]+u[1])/2}return s},i.prototype.getVisualMeta=function(r){if(!this.isCategory()){var s=[],u=["",""],f=this,p=this._pieceList.slice();if(p.length){var v=p[0].interval[0];v!==-1/0&&p.unshift({interval:[-1/0,v]}),(v=p[p.length-1].interval[1])!==1/0&&p.push({interval:[v,1/0]})}else p.push({interval:[-1/0,1/0]});var g=-1/0;return q(p,function(m){var y=m.interval;y&&(y[0]>g&&d([g,y[0]],"outOfRange"),d(y.slice()),g=y[1])},this),{stops:s,outerColors:u}}function d(m,y){var b=f.getRepresentValue({interval:m});y||(y=f.getValueState(b));var w=r(b,y);m[0]===-1/0?u[0]=w:m[1]===1/0?u[1]=w:s.push({value:m[0],color:w},{value:m[1],color:w})}},i.type="visualMap.piecewise",i.defaultOption=rh(bb.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),i}(bb),o5={splitNumber:function(i){var r=this.option,s=Math.min(r.precision,20),u=this.getExtent(),f=r.splitNumber;f=Math.max(parseInt(f,10),1),r.splitNumber=f;for(var d=(u[1]-u[0])/f;+d.toFixed(s)!==d&&s<5;)s++;r.precision=s,d=+d.toFixed(s),r.minOpen&&i.push({interval:[-1/0,u[0]],close:[0,0]});for(var p=0,v=u[0];p","\u2265"][u[0]]])},this)}};function hP(o,i){var r=o.inverse;("vertical"===o.orient?!r:r)&&i.reverse()}var X9=HS,Pu=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.doRender=function(){var r=this.group;r.removeAll();var s=this.visualMapModel,u=s.get("textGap"),f=s.textStyleModel,d=f.getFont(),p=f.getTextColor(),v=this._getItemAlign(),g=s.itemSize,m=this._getViewData(),y=m.endsText,b=ni(s.get("showLabel",!0),!y);y&&this._renderEndsText(r,y[0],g,b,v),q(m.viewPieceList,function(w){var S=w.piece,M=new ct;M.onclick=Ye(this._onItemClick,this,S),this._enableHoverLink(M,w.indexInModelPieceList);var x=s.getRepresentValue(S);if(this._createItemSymbol(M,x,[0,0,g[0],g[1]]),b){var T=this.visualMapModel.getValueState(x);M.add(new fn({style:{x:"right"===v?-u:g[0]+u,y:g[1]/2,text:S.text,verticalAlign:"middle",align:v,font:d,fill:p,opacity:"outOfRange"===T?.5:1}}))}r.add(M)},this),y&&this._renderEndsText(r,y[1],g,b,v),Sf(s.get("orient"),r,s.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},i.prototype._enableHoverLink=function(r,s){var u=this;r.on("mouseover",function(){return f("highlight")}).on("mouseout",function(){return f("downplay")});var f=function(p){var v=u.visualMapModel;v.option.hoverLink&&u.api.dispatchAction({type:p,batch:VS(v.findTargetDataIndices(s),v)})}},i.prototype._getItemAlign=function(){var r=this.visualMapModel,s=r.option;if("vertical"===s.orient)return JB(r,this.api,r.itemSize);var u=s.align;return(!u||"auto"===u)&&(u="left"),u},i.prototype._renderEndsText=function(r,s,u,f,d){if(s){var p=new ct,v=this.visualMapModel.textStyleModel;p.add(new fn({style:{x:f?"right"===d?u[0]:0:u[0]/2,y:u[1]/2,verticalAlign:"middle",align:f?d:"center",text:s,font:v.getFont(),fill:v.getTextColor()}})),r.add(p)}},i.prototype._getViewData=function(){var r=this.visualMapModel,s=Te(r.getPieceList(),function(p,v){return{piece:p,indexInModelPieceList:v}}),u=r.get("text"),f=r.get("orient"),d=r.get("inverse");return("horizontal"===f?d:!d)?s.reverse():u&&(u=u.slice().reverse()),{viewPieceList:s,endsText:u}},i.prototype._createItemSymbol=function(r,s,u){r.add(Ir(this.getControllerVisual(s,"symbol"),u[0],u[1],u[2],u[3],this.getControllerVisual(s,"color")))},i.prototype._onItemClick=function(r){var s=this.visualMapModel,u=s.option,f=rt(u.selected),d=s.getSelectedMapKey(r);"single"===u.selectedMode?(f[d]=!0,q(f,function(p,v){f[v]=v===d})):f[d]=!f[d],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:f})},i.type="visualMap.piecewise",i}($B);function fd(o){o.registerComponentModel(X9),o.registerComponentView(Pu),El(o)}var K9={label:{enabled:!0},decal:{show:!1}},s5=pn(),$9={};function Q9(o,i){var r=o.getModel("aria");if(r.get("enabled")){var s=rt(K9);He(s.label,o.getLocaleModel().get("aria"),!1),He(r.option,s,!1),function(){if(r.getModel("decal").get("show")){var y=et();o.eachSeries(function(b){if(!b.isColorBySeries()){var w=y.get(b.type);w||y.set(b.type,w={}),s5(b).scope=w}}),o.eachRawSeries(function(b){if(!o.isSeriesFiltered(b))if("function"!=typeof b.enableAriaDecal){var w=b.getData();if(b.isColorBySeries()){var P=KM(b.ecModel,b.name,$9,o.getSeriesCount()),O=w.getVisual("decal");w.setVisual("decal",R(O,P))}else{var S=b.getRawData(),M={},x=s5(b).scope;w.each(function(V){var B=w.getRawIndex(V);M[B]=V});var T=S.count();S.each(function(V){var B=M[V],U=S.getName(V)||V+"",j=KM(b.ecModel,U,x,T),X=w.getItemVisual(B,"decal");w.setItemVisual(B,"decal",R(X,j))})}}else b.enableAriaDecal();function R(V,B){var U=V?Se(Se({},B),V):B;return U.dirty=!0,U}})}}(),function(){var g=o.getLocaleModel().get("aria"),m=r.getModel("label");if(m.option=tt(m.option,g),m.get("enabled")){var y=i.getZr().dom;if(m.get("description"))return void y.setAttribute("aria-label",m.get("description"));var x,b=o.getSeriesCount(),w=m.get(["data","maxCount"])||10,S=m.get(["series","maxCount"])||10,M=Math.min(b,S);if(!(b<1)){var T=function(){var g=o.get("title");return g&&g.length&&(g=g[0]),g&&g.text}();if(T)x=d(m.get(["general","withTitle"]),{title:T});else x=m.get(["general","withoutTitle"]);var O=[];x+=d(m.get(b>1?["series","multiple","prefix"]:["series","single","prefix"]),{seriesCount:b}),o.eachSeries(function(j,X){if(X1?["series","multiple",te]:["series","single",te]),{seriesId:j.seriesIndex,seriesName:j.get("name"),seriesType:v(j.subType)});var ee=j.getData();ee.count()>w?Z+=d(m.get(["data","partialData"]),{displayCnt:w}):Z+=m.get(["data","allData"]);for(var oe=[],de=0;de":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},eq=function(){function o(i){null==(this._condVal=yt(i)?new RegExp(i):SH(i)?i:null)&&Mn("")}return o.prototype.evaluate=function(i){var r=typeof i;return"string"===r?this._condVal.test(i):"number"===r&&this._condVal.test(i+"")},o}(),tq=function(){function o(){}return o.prototype.evaluate=function(){return this.value},o}(),nq=function(){function o(){}return o.prototype.evaluate=function(){for(var i=this.children,r=0;r2&&s.push(u),u=[ee,le]}function m(ee,le,oe,de){Vg(ee,oe)&&Vg(le,de)||u.push(ee,le,oe,de,oe,de)}for(var b,w,S,M,x=0;xj:$2&&s.push(u),s}function Bg(o,i,r,s,u,f,d,p,v,g){if(Vg(o,r)&&Vg(i,s)&&Vg(u,d)&&Vg(f,p))v.push(d,p);else{var m=2/g,y=m*m,b=d-o,w=p-i,S=Math.sqrt(b*b+w*w);b/=S,w/=S;var M=r-o,x=s-i,T=u-d,P=f-p,O=M*M+x*x,R=T*T+P*P;if(O=0&&R-B*B=0)v.push(d,p);else{var X=[],Z=[];Xu(o,r,u,d,.5,X),Xu(i,s,f,p,.5,Z),Bg(X[0],Z[0],X[1],Z[1],X[2],Z[2],X[3],Z[3],v,g),Bg(X[4],Z[4],X[5],Z[5],X[6],Z[6],X[7],Z[7],v,g)}}}}function f5(o,i,r){var f=Math.abs(o[i]/o[1-i]),d=Math.ceil(Math.sqrt(f*r)),p=Math.floor(r/d);0===p&&(p=1,d=r);for(var v=[],g=0;g0)for(g=0;gMath.abs(g),y=f5([v,g],m?0:1,i),b=(m?p:g)/y.length,w=0;w1?null:new Tt(M*v+o,M*g+i)}function d5(o,i,r){var s=new Tt;Tt.sub(s,r,i),s.normalize();var u=new Tt;return Tt.sub(u,o,i),u.dot(s)}function Hg(o,i){var r=o[o.length-1];r&&r[0]===i[0]&&r[1]===i[1]||o.push(i)}function jS(o){var i=o.points,r=[],s=[];wm(i,r,s);var u=new Ft(r[0],r[1],s[0]-r[0],s[1]-r[1]),f=u.width,d=u.height,p=u.x,v=u.y,g=new Tt,m=new Tt;return f>d?(g.x=m.x=p+f/2,g.y=v,m.y=v+d):(g.y=m.y=v+d/2,g.x=p,m.x=p+f),function(o,i,r){for(var s=o.length,u=[],f=0;f0;g/=2){var m=0,y=0;(o&g)>0&&(m=1),(i&g)>0&&(y=1),p+=g*g*(3*m^y),0===y&&(1===m&&(o=g-1-o,i=g-1-i),v=o,o=i,i=v)}return p}function Lr(o){var i=1/0,r=1/0,s=-1/0,u=-1/0,f=Te(o,function(p){var v=p.getBoundingRect(),g=p.getComputedTransform(),m=v.x+v.width/2+(g?g[4]:0),y=v.y+v.height/2+(g?g[5]:0);return i=Math.min(m,i),r=Math.min(y,r),s=Math.max(m,s),u=Math.max(y,u),[m,y]});return Te(f,function(p,v){return{cp:p,z:gq(p[0],p[1],i,r,s,u),path:o[v]}}).sort(function(p,v){return p.z-v.z}).map(function(p){return p.path})}function Wr(o){return function(o,i){var u,r=[],s=o.shape;switch(o.type){case"rect":(function(o,i,r){for(var s=o.width,u=o.height,f=s>u,d=f5([s,u],f?0:1,i),p=f?"width":"height",v=f?"height":"width",g=f?"x":"y",m=f?"y":"x",y=o[p]/d.length,b=0;b=0;u--)if(!r[u].many.length){var v=r[p].many;if(v.length<=1){if(!p)return r;p=0}f=v.length;var g=Math.ceil(f/2);r[u].many=v.slice(g,f),r[p].many=v.slice(0,g),p++}return r}var mq={clone:function(i){for(var r=[],s=1-Math.pow(1-i.path.style.opacity,1/i.count),u=0;u0){var g,m,p=s.getModel("universalTransition").get("delay"),v=Object.assign({setToFinal:!0},d);m5(o)&&(g=o,m=i),m5(i)&&(g=i,m=o);for(var b=g?g===o:o.length>i.length,w=g?_5(m,g):_5(b?i:o,[b?o:i]),S=0,M=0;M1e4))for(var u=s.getIndices(),f=function(o){for(var i=o.dimensions,r=0;r0&&R.group.traverse(function(B){B instanceof Nt&&!B.animators.length&&B.animateFrom({style:{opacity:0}},V)})})}function w5(o){return o.getModel("universalTransition").get("seriesKey")||o.id}function S5(o){return we(o)?o.sort().join(","):o}function Ou(o){if(o.hostModel)return o.hostModel.getModel("universalTransition").get("divideShape")}function Pl(o,i){for(var r=0;r=0&&u.push({data:i.oldData[p],divide:Ou(i.oldData[p]),dim:d.dimension})}),q(jn(o.to),function(d){var p=Pl(r.updatedSeries,d);if(p>=0){var v=r.updatedSeries[p].getData();f.push({data:v,divide:Ou(v),dim:d.dimension})}}),u.length>0&&f.length>0&&C5(u,f,s)}(b,u,s,r)});else{var d=function(o,i){var r=et(),s=et(),u=et();return q(o.oldSeries,function(d,p){var v=o.oldData[p],g=w5(d),m=S5(g);s.set(m,v),we(g)&&q(g,function(y){u.set(y,{data:v,key:m})})}),q(i.updatedSeries,function(d){if(d.isUniversalTransitionEnabled()&&d.isAnimationEnabled()){var p=d.getData(),v=w5(d),g=S5(v),m=s.get(g);if(m)r.set(g,{oldSeries:[{divide:Ou(m),data:m}],newSeries:[{divide:Ou(p),data:p}]});else if(we(v)){var y=[];q(v,function(S){var M=s.get(S);M&&y.push({divide:Ou(M),data:M})}),y.length&&r.set(g,{oldSeries:y,newSeries:[{data:p,divide:Ou(p)}]})}else{var b=u.get(v);if(b){var w=r.get(b.key);w||(w={oldSeries:[{data:b.data,divide:Ou(b.data)}],newSeries:[]},r.set(b.key,w)),w.newSeries.push({data:p,divide:Ou(p)})}}}}),r}(u,s);q(d.keys(),function(b){var w=d.get(b);C5(w.oldSeries,w.newSeries,r)})}q(s.updatedSeries,function(b){b[N]&&(b[N]=!1)})}for(var p=i.getSeries(),v=u.oldSeries=[],g=u.oldData=[],m=0;m=200&&_t.status<=299}function Ie(F){try{F.dispatchEvent(new MouseEvent("click"))}catch(ae){var _t=document.createEvent("MouseEvents");_t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),F.dispatchEvent(_t)}}var ko=sr.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),W=sr.saveAs||("object"!=typeof window||window!==sr?function(){}:"download"in HTMLAnchorElement.prototype&&!ko?function(_t,ae,xr){var Gn=sr.URL||sr.webkitURL,It=document.createElement("a");It.download=ae=ae||_t.name||"download",It.rel="noopener","string"==typeof _t?(It.href=_t,It.origin!==location.origin?Ui(It.href)?Oe(_t,ae,xr):Ie(It,It.target="_blank"):Ie(It)):(It.href=Gn.createObjectURL(_t),setTimeout(function(){Gn.revokeObjectURL(It.href)},4e4),setTimeout(function(){Ie(It)},0))}:"msSaveOrOpenBlob"in navigator?function(_t,ae,xr){if(ae=ae||_t.name||"download","string"==typeof _t)if(Ui(_t))Oe(_t,ae,xr);else{var Gn=document.createElement("a");Gn.href=_t,Gn.target="_blank",setTimeout(function(){Ie(Gn)})}else navigator.msSaveOrOpenBlob(function(F,_t){return void 0===_t?_t={autoBom:!1}:"object"!=typeof _t&&(console.warn("Deprecated: Expected third argument to be a object"),_t={autoBom:!_t}),_t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(F.type)?new Blob([String.fromCharCode(65279),F],{type:F.type}):F}(_t,xr),ae)}:function(_t,ae,xr,Gn){if((Gn=Gn||open("","_blank"))&&(Gn.document.title=Gn.document.body.innerText="downloading..."),"string"==typeof _t)return Oe(_t,ae,xr);var It="application/octet-stream"===_t.type,Vu=/constructor/i.test(sr.HTMLElement)||sr.safari,ue=/CriOS\/[\d]+/.test(navigator.userAgent);if((ue||It&&Vu||ko)&&"undefined"!=typeof FileReader){var he=new FileReader;he.onloadend=function(){var Ko=he.result;Ko=ue?Ko:Ko.replace(/^data:[^;]*;/,"data:attachment/file;"),Gn?Gn.location.href=Ko:location=Ko,Gn=null},he.readAsDataURL(_t)}else{var ei=sr.URL||sr.webkitURL,tn=ei.createObjectURL(_t);Gn?Gn.location=tn:location.href=tn,Gn=null,setTimeout(function(){ei.revokeObjectURL(tn)},4e4)}});sr.saveAs=W.saveAs=W,Zo.exports=W},45579:function(Zo){var sr=function(Dt){"use strict";var Ie,Oe=Object.prototype,Ui=Oe.hasOwnProperty,ko="function"==typeof Symbol?Symbol:{},W=ko.iterator||"@@iterator",F=ko.asyncIterator||"@@asyncIterator",_t=ko.toStringTag||"@@toStringTag";function ae(nt,Ge,Qe){return Object.defineProperty(nt,Ge,{value:Qe,enumerable:!0,configurable:!0,writable:!0}),nt[Ge]}try{ae({},"")}catch(nt){ae=function(Qe,Be,vn){return Qe[Be]=vn}}function xr(nt,Ge,Qe,Be){var cn=Object.create((Ge&&Ge.prototype instanceof tn?Ge:tn).prototype),tr=new Nl(Be||[]);return cn._invoke=function(nt,Ge,Qe){var Be=It;return function(cn,tr){if(Be===ue)throw new Error("Generator is already running");if(Be===he){if("throw"===cn)throw tr;return Xg()}for(Qe.method=cn,Qe.arg=tr;;){var ti=Qe.delegate;if(ti){var Oi=At(ti,Qe);if(Oi){if(Oi===ei)continue;return Oi}}if("next"===Qe.method)Qe.sent=Qe._sent=Qe.arg;else if("throw"===Qe.method){if(Be===It)throw Be=he,Qe.arg;Qe.dispatchException(Qe.arg)}else"return"===Qe.method&&Qe.abrupt("return",Qe.arg);Be=ue;var fr=Gn(nt,Ge,Qe);if("normal"===fr.type){if(Be=Qe.done?he:Vu,fr.arg===ei)continue;return{value:fr.arg,done:Qe.done}}"throw"===fr.type&&(Be=he,Qe.method="throw",Qe.arg=fr.arg)}}}(nt,Qe,tr),cn}function Gn(nt,Ge,Qe){try{return{type:"normal",arg:nt.call(Ge,Qe)}}catch(Be){return{type:"throw",arg:Be}}}Dt.wrap=xr;var It="suspendedStart",Vu="suspendedYield",ue="executing",he="completed",ei={};function tn(){}function Ko(){}function zc(){}var Yg={};ae(Yg,W,function(){return this});var cr=Object.getPrototypeOf,pd=cr&&cr(cr(Bu([])));pd&&pd!==Oe&&Ui.call(pd,W)&&(Yg=pd);var Fl=zc.prototype=tn.prototype=Object.create(Yg);function pk(nt){["next","throw","return"].forEach(function(Ge){ae(nt,Ge,function(Qe){return this._invoke(Ge,Qe)})})}function vd(nt,Ge){function Qe(cn,tr,ti,Oi){var fr=Gn(nt[cn],nt,tr);if("throw"!==fr.type){var gd=fr.arg,Ze=gd.value;return Ze&&"object"==typeof Ze&&Ui.call(Ze,"__await")?Ge.resolve(Ze.__await).then(function(Fs){Qe("next",Fs,ti,Oi)},function(Fs){Qe("throw",Fs,ti,Oi)}):Ge.resolve(Ze).then(function(Fs){gd.value=Fs,ti(gd)},function(Fs){return Qe("throw",Fs,ti,Oi)})}Oi(fr.arg)}var Be;this._invoke=function(cn,tr){function ti(){return new Ge(function(Oi,fr){Qe(cn,tr,Oi,fr)})}return Be=Be?Be.then(ti,ti):ti()}}function At(nt,Ge){var Qe=nt.iterator[Ge.method];if(Qe===Ie){if(Ge.delegate=null,"throw"===Ge.method){if(nt.iterator.return&&(Ge.method="return",Ge.arg=Ie,At(nt,Ge),"throw"===Ge.method))return ei;Ge.method="throw",Ge.arg=new TypeError("The iterator does not provide a 'throw' method")}return ei}var Be=Gn(Qe,nt.iterator,Ge.arg);if("throw"===Be.type)return Ge.method="throw",Ge.arg=Be.arg,Ge.delegate=null,ei;var vn=Be.arg;return vn?vn.done?(Ge[nt.resultName]=vn.value,Ge.next=nt.nextLoc,"return"!==Ge.method&&(Ge.method="next",Ge.arg=Ie),Ge.delegate=null,ei):vn:(Ge.method="throw",Ge.arg=new TypeError("iterator result is not an object"),Ge.delegate=null,ei)}function $o(nt){var Ge={tryLoc:nt[0]};1 in nt&&(Ge.catchLoc=nt[1]),2 in nt&&(Ge.finallyLoc=nt[2],Ge.afterLoc=nt[3]),this.tryEntries.push(Ge)}function qg(nt){var Ge=nt.completion||{};Ge.type="normal",delete Ge.arg,nt.completion=Ge}function Nl(nt){this.tryEntries=[{tryLoc:"root"}],nt.forEach($o,this),this.reset(!0)}function Bu(nt){if(nt){var Ge=nt[W];if(Ge)return Ge.call(nt);if("function"==typeof nt.next)return nt;if(!isNaN(nt.length)){var Qe=-1,Be=function vn(){for(;++Qe=0;--vn){var cn=this.tryEntries[vn],tr=cn.completion;if("root"===cn.tryLoc)return Be("end");if(cn.tryLoc<=this.prev){var ti=Ui.call(cn,"catchLoc"),Oi=Ui.call(cn,"finallyLoc");if(ti&&Oi){if(this.prev=0;--Be){var vn=this.tryEntries[Be];if(vn.tryLoc<=this.prev&&Ui.call(vn,"finallyLoc")&&this.prev=0;--Qe){var Be=this.tryEntries[Qe];if(Be.finallyLoc===Ge)return this.complete(Be.completion,Be.afterLoc),qg(Be),ei}},catch:function(Ge){for(var Qe=this.tryEntries.length-1;Qe>=0;--Qe){var Be=this.tryEntries[Qe];if(Be.tryLoc===Ge){var vn=Be.completion;if("throw"===vn.type){var cn=vn.arg;qg(Be)}return cn}}throw new Error("illegal catch attempt")},delegateYield:function(Ge,Qe,Be){return this.delegate={iterator:Bu(Ge),resultName:Qe,nextLoc:Be},"next"===this.method&&(this.arg=Ie),ei}},Dt}(Zo.exports);try{regeneratorRuntime=sr}catch(Dt){"object"==typeof globalThis?globalThis.regeneratorRuntime=sr:Function("r","regeneratorRuntime = r")(sr)}},33516:function(Zo,sr,Dt){"use strict";function Oe(e){return(Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function Ie(e,a,t){return(Ie="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(l,c,h){var _=function(e,a){for(;!Object.prototype.hasOwnProperty.call(e,a)&&null!==(e=Oe(e)););return e}(l,c);if(_){var C=Object.getOwnPropertyDescriptor(_,c);return C.get?C.get.call(h):C.value}})(e,a,t||e)}function ko(e,a){for(var t=0;te.length)&&(a=e.length);for(var t=0,n=new Array(a);t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(k){throw k},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var _,c=!0,h=!1;return{s:function(){t=t.call(e)},n:function(){var k=t.next();return c=k.done,k},e:function(k){h=!0,_=k},f:function(){try{!c&&null!=t.return&&t.return()}finally{if(h)throw _}}}}function cr(e,a){return function(e){if(Array.isArray(e))return e}(e)||function(e,a){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var h,_,n=[],l=!0,c=!1;try{for(t=t.call(e);!(l=(h=t.next()).done)&&(n.push(h.value),!a||n.length!==a);l=!0);}catch(C){c=!0,_=C}finally{try{!l&&null!=t.return&&t.return()}finally{if(c)throw _}}return n}}(e,a)||ei(e,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pd(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function At(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ei(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $o(e,a,t){return($o=xr()?Reflect.construct:function(l,c,h){var _=[null];_.push.apply(_,c);var k=new(Function.bind.apply(l,_));return h&&_t(k,h.prototype),k}).apply(null,arguments)}function Nl(e){var a="function"==typeof Map?new Map:void 0;return(Nl=function(n){if(null===n||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==a){if(a.has(n))return a.get(n);a.set(n,l)}function l(){return $o(n,arguments,Oe(this).constructor)}return l.prototype=Object.create(n.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),_t(l,n)})(e)}var Bu=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}();function Xg(e){return null!==e&&"object"==typeof e}function nt(e){return"function"==typeof e}var Qe=function(){function e(a){return Error.call(this),this.message=a?"".concat(a.length," errors occurred during unsubscription:\n").concat(a.map(function(t,n){return"".concat(n+1,") ").concat(t.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=a,this}return e.prototype=Object.create(Error.prototype),e}(),Be=function(){var a,e=function(){function a(t){F(this,a),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return W(a,[{key:"unsubscribe",value:function(){var n;if(!this.closed){var l=this._parentOrParents,c=this._ctorUnsubscribe,h=this._unsubscribe,_=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,l instanceof a)l.remove(this);else if(null!==l)for(var C=0;C2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof a?function(n){return n.pipe(Xr(function(l,c){return yt(e(l,c)).pipe(He(function(h,_){return a(l,h,c,_)}))},t))}:("number"==typeof a&&(t=a),function(n){return n.lift(new jP(e,t))})}var jP=function(){function e(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;F(this,e),this.project=a,this.concurrent=t}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new WP(t,this.project,this.concurrent))}}]),e}(),WP=function(e){ae(t,e);var a=ue(t);function t(n,l){var c,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return F(this,t),(c=a.call(this,n)).project=l,c.concurrent=h,c.hasCompleted=!1,c.buffer=[],c.active=0,c.index=0,c}return W(t,[{key:"_next",value:function(l){this.active0?this._next(l.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),t}(at);function Uu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Xr(Ob,e)}function ni(e,a){return a?_k(e,a):new gn(tt(e))}function ot(){for(var e=Number.POSITIVE_INFINITY,a=null,t=arguments.length,n=new Array(t),l=0;l1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof c&&(e=n.pop()),null===a&&1===n.length&&n[0]instanceof gn?n[0]:Uu(e)(ni(n,a))}function Qo(){return function(a){return a.lift(new Fb(a))}}var Fb=function(){function e(a){F(this,e),this.connectable=a}return W(e,[{key:"call",value:function(t,n){var l=this.connectable;l._refCount++;var c=new Nb(t,l),h=n.subscribe(c);return c.closed||(c.connection=l.connect()),h}}]),e}(),Nb=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).connectable=l,c}return W(t,[{key:"_unsubscribe",value:function(){var l=this.connectable;if(l){this.connectable=null;var c=l._refCount;if(c<=0)this.connection=null;else if(l._refCount=c-1,c>1)this.connection=null;else{var h=this.connection,_=l._connection;this.connection=null,_&&(!h||_===h)&&_.unsubscribe()}}else this.connection=null}}]),t}(Ze),Oa=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this)).source=n,c.subjectFactory=l,c._refCount=0,c._isComplete=!1,c}return W(t,[{key:"_subscribe",value:function(l){return this.getSubject().subscribe(l)}},{key:"getSubject",value:function(){var l=this._subject;return(!l||l.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var l=this._connection;return l||(this._isComplete=!1,(l=this._connection=new Be).add(this.source.subscribe(new YP(this.getSubject(),this))),l.closed&&(this._connection=null,l=Be.EMPTY)),l}},{key:"refCount",value:function(){return Qo()(this)}}]),t}(gn),jc=function(){var e=Oa.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),YP=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).connectable=l,c}return W(t,[{key:"_error",value:function(l){this._unsubscribe(),Ie(Oe(t.prototype),"_error",this).call(this,l)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),Ie(Oe(t.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var l=this.connectable;if(l){this.connectable=null;var c=l._connection;l._refCount=0,l._subject=null,l._connection=null,c&&c.unsubscribe()}}}]),t}(zP);function Bb(){return new qe}function Ae(e){for(var a in e)if(e[a]===Ae)return a;throw Error("Could not find renamed property on target object.")}function Mo(e,a){for(var t in a)a.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=a[t])}function hn(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(hn).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var a=e.toString();if(null==a)return""+a;var t=a.indexOf("\n");return-1===t?a:a.substring(0,t)}function Ln(e,a){return null==e||""===e?null===a?"":a:null==a||""===a?e:e+" "+a}var XP=Ae({__forward_ref__:Ae});function Sn(e){return e.__forward_ref__=Sn,e.toString=function(){return hn(this())},e}function Et(e){return kH(e)?e():e}function kH(e){return"function"==typeof e&&e.hasOwnProperty(XP)&&e.__forward_ref__===Sn}var xp=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,function(e,a){var t=e?"NG0".concat(e,": "):"";return"".concat(t).concat(a)}(n,l))).code=n,c}return t}(Nl(Error));function nn(e){return"string"==typeof e?e:null==e?"":String(e)}function sa(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():nn(e)}function bk(e,a){var t=a?" in ".concat(a):"";throw new xp("201","No provider for ".concat(sa(e)," found").concat(t))}function Ja(e,a){null==e&&function(e,a,t,n){throw new Error("ASSERTION ERROR: ".concat(e)+(null==n?"":" [Expected=> ".concat(t," ").concat(n," ").concat(a," <=Actual]")))}(a,e,null,"!=")}function We(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function pt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Yc(e){return KP(e,qc)||KP(e,wk)}function KP(e,a){return e.hasOwnProperty(a)?e[a]:null}function bd(e){return e&&(e.hasOwnProperty(Vs)||e.hasOwnProperty(Xc))?e[Vs]:null}var Cd,qc=Ae({"\u0275prov":Ae}),Vs=Ae({"\u0275inj":Ae}),wk=Ae({ngInjectableDef:Ae}),Xc=Ae({ngInjectorDef:Ae}),yn=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function _i(){return Cd}function Ia(e){var a=Cd;return Cd=e,a}function ju(e,a,t){var n=Yc(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:t&yn.Optional?null:void 0!==a?a:void bk(hn(e),"Injector")}function Zc(e){return{toString:e}.toString()}var $g=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Hs=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Sk="undefined"!=typeof globalThis&&globalThis,$P="undefined"!=typeof window&&window,QP="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,kk="undefined"!=typeof global&&global,Kn=Sk||kk||$P||QP,Tp={},nr=[],Dp=Ae({"\u0275cmp":Ae}),Mk=Ae({"\u0275dir":Ae}),Qg=Ae({"\u0275pipe":Ae}),Gb=Ae({"\u0275mod":Ae}),eO=Ae({"\u0275loc":Ae}),zs=Ae({"\u0275fac":Ae}),ca=Ae({__NG_ELEMENT_ID__:Ae}),TH=0;function ke(e){return Zc(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===$g.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||nr,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Hs.Emulated,id:"c",styles:e.styles||nr,_:null,setInput:null,schemas:e.schemas||null,tView:null},l=e.directives,c=e.features,h=e.pipes;return n.id+=TH++,n.inputs=rO(e.inputs,t),n.outputs=rO(e.outputs),c&&c.forEach(function(_){return _(n)}),n.directiveDefs=l?function(){return("function"==typeof l?l():l).map(Vl)}:null,n.pipeDefs=h?function(){return("function"==typeof h?h():h).map(xk)}:null,n})}function Vl(e){return Ra(e)||function(e){return e[Mk]||null}(e)}function xk(e){return function(e){return e[Qg]||null}(e)}var DH={};function bt(e){return Zc(function(){var a={type:e.type,bootstrap:e.bootstrap||nr,declarations:e.declarations||nr,imports:e.imports||nr,exports:e.exports||nr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(DH[e.id]=e.type),a})}function rO(e,a){if(null==e)return Tp;var t={};for(var n in e)if(e.hasOwnProperty(n)){var l=e[n],c=l;Array.isArray(l)&&(c=l[1],l=l[0]),t[l]=n,a&&(a[l]=c)}return t}var ve=ke;function Gi(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ra(e){return e[Dp]||null}function fa(e,a){var t=e[Gb]||null;if(!t&&!0===a)throw new Error("Type ".concat(hn(e)," does not have '\u0275mod' property."));return t}function Hl(e){return Array.isArray(e)&&"object"==typeof e[1]}function Gs(e){return Array.isArray(e)&&!0===e[1]}function Td(e){return 0!=(8&e.flags)}function rm(e){return 2==(2&e.flags)}function to(e){return 1==(1&e.flags)}function js(e){return null!==e.template}function im(e){return 0!=(512&e[2])}function Ad(e,a){return e.hasOwnProperty(zs)?e[zs]:null}var Xb=function(){function e(a,t,n){F(this,e),this.previousValue=a,this.currentValue=t,this.firstChange=n}return W(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function an(){return fO}function fO(e){return e.type.prototype.ngOnChanges&&(e.setInput=RH),dO}function dO(){var e=Ak(this),a=null==e?void 0:e.current;if(a){var t=e.previous;if(t===Tp)e.previous=a;else for(var n in a)t[n]=a[n];e.current=null,this.ngOnChanges(a)}}function RH(e,a,t,n){var l=Ak(e)||function(e,a){return e[om]=a}(e,{previous:Tp,current:null}),c=l.current||(l.current={}),h=l.previous,_=this.declaredInputs[t],C=h[_];c[_]=new Xb(C&&C.currentValue,a,h===Tp),e[n]=a}an.ngInherit=!0;var om="__ngSimpleChanges__";function Ak(e){return e[om]||null}var hO="http://www.w3.org/2000/svg",Ed=void 0;function Pd(){return void 0!==Ed?Ed:"undefined"!=typeof document?document:void 0}function Kr(e){return!!e.listen}var pO={createRenderer:function(a,t){return Pd()}};function di(e){for(;Array.isArray(e);)e=e[0];return e}function sm(e,a){return di(a[e])}function Ao(e,a){return di(a[e.index])}function Rk(e,a){return e.data[a]}function Jc(e,a){return e[a]}function Eo(e,a){var t=a[e];return Hl(t)?t:t[0]}function Lk(e){return 4==(4&e[2])}function Fk(e){return 128==(128&e[2])}function Ul(e,a){return null==a?null:e[a]}function gO(e){e[18]=0}function Nk(e,a){e[5]+=a;for(var t=e,n=e[3];null!==n&&(1===a&&1===t[5]||-1===a&&0===t[5]);)n[5]+=a,t=n,n=n[3]}var Lt={lFrame:nf(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Vk(){return Lt.bindingsEnabled}function Re(){return Lt.lFrame.lView}function En(){return Lt.lFrame.tView}function pe(e){return Lt.lFrame.contextLView=e,e[8]}function bi(){for(var e=no();null!==e&&64===e.type;)e=e.parent;return e}function no(){return Lt.lFrame.currentTNode}function Po(e,a){var t=Lt.lFrame;t.currentTNode=e,t.isParent=a}function Jo(){return Lt.lFrame.isParent}function Oo(){Lt.lFrame.isParent=!1}function Gl(){return Lt.isInCheckNoChangesMode}function lm(e){Lt.isInCheckNoChangesMode=e}function ha(){var e=Lt.lFrame,a=e.bindingRootIndex;return-1===a&&(a=e.bindingRootIndex=e.tView.bindingStartIndex),a}function qs(){return Lt.lFrame.bindingIndex}function es(){return Lt.lFrame.bindingIndex++}function ro(e){var a=Lt.lFrame,t=a.bindingIndex;return a.bindingIndex=a.bindingIndex+e,t}function HH(e,a){var t=Lt.lFrame;t.bindingIndex=t.bindingRootIndex=e,Xs(a)}function Xs(e){Lt.lFrame.currentDirectiveIndex=e}function Hk(e){var a=Lt.lFrame.currentDirectiveIndex;return-1===a?null:e[a]}function Tt(){return Lt.lFrame.currentQueryIndex}function Rp(e){Lt.lFrame.currentQueryIndex=e}function Jb(e){var a=e[1];return 2===a.type?a.declTNode:1===a.type?e[6]:null}function ef(e,a,t){if(t&yn.SkipSelf){for(var n=a,l=e;!(null!==(n=n.parent)||t&yn.Host||null===(n=Jb(l))||(l=l[15],10&n.type)););if(null===n)return!1;a=n,e=l}var c=Lt.lFrame=tf();return c.currentTNode=a,c.lView=e,!0}function jl(e){var a=tf(),t=e[1];Lt.lFrame=a,a.currentTNode=t.firstChild,a.lView=e,a.tView=t,a.contextLView=e,a.bindingIndex=t.bindingStartIndex,a.inI18n=!1}function tf(){var e=Lt.lFrame,a=null===e?null:e.child;return null===a?nf(e):a}function nf(e){var a={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:e,child:null,inI18n:!1};return null!==e&&(e.child=a),a}function Lp(){var e=Lt.lFrame;return Lt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Fp=Lp;function e0(){var e=Lp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ft(e){return(Lt.lFrame.contextLView=function(e,a){for(;e>0;)a=a[15],e--;return a}(e,Lt.lFrame.contextLView))[8]}function ri(){return Lt.lFrame.selectedIndex}function Zs(e){Lt.lFrame.selectedIndex=e}function zr(){var e=Lt.lFrame;return Rk(e.tView,e.selectedIndex)}function pa(){Lt.lFrame.currentNamespace=hO}function t0(){Lt.lFrame.currentNamespace=null}function rf(e,a){for(var t=a.directiveStart,n=a.directiveEnd;t=n)break}else a[C]<0&&(e[18]+=65536),(_>11>16&&(3&e[2])===a){e[2]+=2048;try{c.call(_)}finally{}}}else try{c.call(_)}finally{}}var Rd=function e(a,t,n){F(this,e),this.factory=a,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n};function dm(e,a,t){for(var n=Kr(e),l=0;la){h=c-1;break}}}for(;c>16}(e),n=a;t>0;)n=n[15],t--;return n}var Wk=!0;function Hp(e){var a=Wk;return Wk=e,a}var xO=0;function zp(e,a){var t=Yk(e,a);if(-1!==t)return t;var n=a[1];n.firstCreatePass&&(e.injectorIndex=a.length,a0(n.data,e),a0(a,null),a0(n.blueprint,null));var l=bn(e,a),c=e.injectorIndex;if(Vp(l))for(var h=ts(l),_=Bp(l,a),C=_[1].data,k=0;k<8;k++)a[c+k]=_[h+k]|C[h+k];return a[c+8]=l,c}function a0(e,a){e.push(0,0,0,0,0,0,0,0,a)}function Yk(e,a){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===a[e.injectorIndex+8]?-1:e.injectorIndex}function bn(e,a){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var t=0,n=null,l=a;null!==l;){var c=l[1],h=c.type;if(null===(n=2===h?c.declTNode:1===h?l[6]:null))return-1;if(t++,l=l[15],-1!==n.injectorIndex)return n.injectorIndex|t<<16}return-1}function Fe(e,a,t){!function(e,a,t){var n;"string"==typeof t?n=t.charCodeAt(0)||0:t.hasOwnProperty(ca)&&(n=t[ca]),null==n&&(n=t[ca]=xO++);var l=255&n;a.data[e+(l>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:yn.Default,l=arguments.length>4?arguments[4]:void 0;if(null!==e){var c=hm(t);if("function"==typeof c){if(!ef(a,e,n))return n&yn.Host?io(l,t,n):ns(a,t,n,l);try{var h=c(n);if(null!=h||n&yn.Optional)return h;bk(t)}finally{Fp()}}else if("number"==typeof c){var _=null,C=Yk(e,a),k=-1,D=n&yn.Host?a[16][6]:null;for((-1===C||n&yn.SkipSelf)&&(-1!==(k=-1===C?bn(e,a):a[C+8])&&ao(n,!1)?(_=a[1],C=ts(k),a=Bp(k,a)):C=-1);-1!==C;){var I=a[1];if(DO(c,C,I.data)){var L=WH(C,a,t,_,n,D);if(L!==o0)return L}-1!==(k=a[C+8])&&ao(n,a[1].data[C+8]===D)&&DO(c,C,a)?(_=I,C=ts(k),a=Bp(k,a)):C=-1}}}return ns(a,t,n,l)}var o0={};function TO(){return new Fd(bi(),Re())}function WH(e,a,t,n,l,c){var h=a[1],_=h.data[e+8],D=Up(_,h,t,null==n?rm(_)&&Wk:n!=h&&0!=(3&_.type),l&yn.Host&&c===_);return null!==D?Ld(a,h,D,_):o0}function Up(e,a,t,n,l){for(var c=e.providerIndexes,h=a.data,_=1048575&c,C=e.directiveStart,D=c>>20,L=l?_+D:e.directiveEnd,G=n?_:_+D;G=C&&Y.type===t)return G}if(l){var Q=h[C];if(Q&&js(Q)&&Q.type===t)return C}return null}function Ld(e,a,t,n){var l=e[t],c=a.data;if(function(e){return e instanceof Rd}(l)){var h=l;h.resolving&&function(e,a){throw new xp("200","Circular dependency in DI detected for ".concat(e).concat(""))}(sa(c[t]));var _=Hp(h.canSeeViewProviders);h.resolving=!0;var C=h.injectImpl?Ia(h.injectImpl):null;ef(e,n,yn.Default);try{l=e[t]=h.factory(void 0,c,e,n),a.firstCreatePass&&t>=n.directiveStart&&function(e,a,t){var n=a.type.prototype,c=n.ngOnInit,h=n.ngDoCheck;if(n.ngOnChanges){var _=fO(a);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,_),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,_)}c&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,c),h&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,h),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,h))}(t,c[t],a)}finally{null!==C&&Ia(C),Hp(_),h.resolving=!1,Fp()}}return l}function hm(e){if("string"==typeof e)return e.charCodeAt(0)||0;var a=e.hasOwnProperty(ca)?e[ca]:void 0;return"number"==typeof a?a>=0?255&a:TO:a}function DO(e,a,t){return!!(t[a+(e>>5)]&1<=e.length?e.push(t):e.splice(a,0,t)}function Vd(e,a){return a>=e.length-1?e.pop():e.splice(a,1)[0]}function is(e,a){for(var t=[],n=0;n=0?e[1|n]=t:function(e,a,t,n){var l=e.length;if(l==a)e.push(t,n);else if(1===l)e.push(n,e[0]),e[0]=t;else{for(l--,e.push(e[l-1],e[l]);l>a;)e[l]=e[l-2],l--;e[a]=t,e[a+1]=n}}(e,n=~n,a,t),n}function vm(e,a){var t=Bd(e,a);if(t>=0)return e[1|t]}function Bd(e,a){return function(e,a,t){for(var n=0,l=e.length>>t;l!==n;){var c=n+(l-n>>1),h=e[c<a?l=c:n=c+1}return~(l<1&&void 0!==arguments[1]?arguments[1]:yn.Default;if(void 0===zd)throw new Error("inject() must be called from an injection context");return null===zd?ju(e,void 0,a):zd.get(e,a&yn.Optional?null:void 0,a)}function ce(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yn.Default;return(_i()||g0)(Et(e),a)}var tM=ce;function uf(e){for(var a=[],t=0;t3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var l=hn(a);if(Array.isArray(a))l=a.map(hn).join(" -> ");else if("object"==typeof a){var c=[];for(var h in a)if(a.hasOwnProperty(h)){var _=a[h];c.push(h+":"+("string"==typeof _?JSON.stringify(_):hn(_)))}l="{".concat(c.join(", "),"}")}return"".concat(t).concat(n?"("+n+")":"","[").concat(l,"]: ").concat(e.replace(nz,"\n "))}("\n"+e.message,l,t,n),e.ngTokenPath=l,e[qu]=null,e}var jd,pr,jp=_m(sf("Inject",function(a){return{token:a}}),-1),oi=_m(sf("Optional"),8),Fo=_m(sf("SkipSelf"),4);function ji(e){var a;return(null===(a=function(){if(void 0===jd&&(jd=null,Kn.trustedTypes))try{jd=Kn.trustedTypes.createPolicy("angular",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(e){}return jd}())||void 0===a?void 0:a.createHTML(e))||e}function C0(e){var a;return(null===(a=function(){if(void 0===pr&&(pr=null,Kn.trustedTypes))try{pr=Kn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(e){}return pr}())||void 0===a?void 0:a.createHTML(e))||e}var ff=function(){function e(a){F(this,e),this.changingThisBreaksApplicationSecurity=a}return W(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),cz=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}(ff),Fi=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}(ff),oM=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}(ff),fz=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}(ff),LO=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}(ff);function Wi(e){return e instanceof ff?e.changingThisBreaksApplicationSecurity:e}function Ks(e,a){var t=FO(e);if(null!=t&&t!==a){if("ResourceURL"===t&&"URL"===a)return!0;throw new Error("Required a safe ".concat(a,", got a ").concat(t," (see https://g.co/ng/security#xss)"))}return t===a}function FO(e){return e instanceof ff&&e.getTypeName()||null}var w0=function(){function e(a){F(this,e),this.inertDocumentHelper=a}return W(e,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var n=(new window.DOMParser).parseFromString(ji(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(l){return null}}}]),e}(),S0=function(){function e(a){if(F(this,e),this.defaultDoc=a,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var n=this.inertDocument.createElement("body");t.appendChild(n)}}return W(e,[{key:"getInertBodyElement",value:function(t){var n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=ji(t),n;var l=this.inertDocument.createElement("body");return l.innerHTML=ji(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(l),l}},{key:"stripCustomNsAttrs",value:function(t){for(var n=t.attributes,l=n.length-1;0"),!0}},{key:"endElement",value:function(t){var n=t.nodeName.toLowerCase();Yd.hasOwnProperty(n)&&!df.hasOwnProperty(n)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(M0(t))}},{key:"checkClobberedElement",value:function(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return n}}]),e}(),cM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,km=/([^\#-~ |!])/g;function M0(e){return e.replace(/&/g,"&").replace(cM,function(a){return"&#"+(1024*(a.charCodeAt(0)-55296)+(a.charCodeAt(1)-56320)+65536)+";"}).replace(km,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(//g,">")}function HO(e,a){var t=null;try{Mm=Mm||function(e){var a=new S0(e);return function(){try{return!!(new window.DOMParser).parseFromString(ji(""),"text/html")}catch(e){return!1}}()?new w0(a):a}(e);var n=a?String(a):"";t=Mm.getInertBodyElement(n);var l=5,c=n;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,n=c,c=t.innerHTML,t=Mm.getInertBodyElement(n)}while(n!==c);return ji((new vf).sanitizeChildren(Qs(t)||t))}finally{if(t)for(var C=Qs(t)||t;C.firstChild;)C.removeChild(C.firstChild)}}function Qs(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ss=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Si(e){var a=ga();return a?C0(a.sanitize(ss.HTML,e)||""):Ks(e,"HTML")?C0(Wi(e)):HO(Pd(),nn(e))}function Gt(e){var a=ga();return a?a.sanitize(ss.URL,e)||"":Ks(e,"URL")?Wi(e):Sm(nn(e))}function ga(){var e=Re();return e&&e[12]}var GO="__ngContext__";function Yi(e,a){e[GO]=a}function dM(e){var a=function(e){return e[GO]||null}(e);return a?Array.isArray(a)?a:a.lView:null}function Dm(e){return e.ngOriginalError}function Cz(e){for(var a=arguments.length,t=new Array(a>1?a-1:0),n=1;n0&&(e[t-1][4]=n[4]);var c=Vd(e,10+a);!function(e,a){Jp(e,a,a[11],2,null,null),a[0]=null,a[6]=null}(n[1],n);var h=c[19];null!==h&&h.detachView(c[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}}function rI(e,a){if(!(256&a[2])){var t=a[11];Kr(t)&&t.destroyNode&&Jp(e,a,t,3,null,null),function(e){var a=e[13];if(!a)return yM(e[1],e);for(;a;){var t=null;if(Hl(a))t=a[13];else{var n=a[10];n&&(t=n)}if(!t){for(;a&&!a[4]&&a!==e;)Hl(a)&&yM(a[1],a),a=a[3];null===a&&(a=e),Hl(a)&&yM(a[1],a),t=a&&a[4]}a=t}}(a)}}function yM(e,a){if(!(256&a[2])){a[2]&=-129,a[2]|=256,function(e,a){var t;if(null!=e&&null!=(t=e.destroyHooks))for(var n=0;n=0?n[l=k]():n[l=-k].unsubscribe(),c+=2}else{var D=n[l=t[c+1]];t[c].call(D)}if(null!==n){for(var I=l+1;Ic?"":l[I+1].toLowerCase();var G=8&n?L:null;if(G&&-1!==th(G,k,0)||2&n&&k!==L){if(fs(n))return!1;h=!0}}}}else{if(!h&&!fs(n)&&!fs(C))return!1;if(h&&fs(C))continue;h=!1,n=C|1&n}}return fs(n)||h}function fs(e){return 0==(1&e)}function B0(e,a,t,n){if(null===a)return-1;var l=0;if(n||!t){for(var c=!1;l-1)for(t++;t2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+_+'"':"")+"]"}else 8&n?l+="."+h:4&n&&(l+=" "+h);else""!==l&&!fs(h)&&(a+=AM(c,l),l=""),n=h,c=c||!fs(n);t++}return""!==l&&(a+=AM(c,l)),a}var jt={};function H(e){z0(En(),Re(),ri()+e,Gl())}function z0(e,a,t,n){if(!n)if(3==(3&a[2])){var c=e.preOrderCheckHooks;null!==c&&Yu(a,c,t)}else{var h=e.preOrderHooks;null!==h&&Id(a,h,0,t)}Zs(t)}function Mi(e,a){return e<<17|a<<2}function lr(e){return e>>17&32767}function EM(e){return 2|e}function Qu(e){return(131068&e)>>2}function G0(e,a){return-131069&e|a<<2}function j0(e){return 1|e}function K0(e,a){var t=e.contentQueries;if(null!==t)for(var n=0;n20&&z0(e,a,20,Gl()),t(n,l)}finally{Zs(c)}}function ah(e,a,t){if(Td(a))for(var l=a.directiveEnd,c=a.directiveStart;c2&&void 0!==arguments[2]?arguments[2]:Ao,n=a.localNames;if(null!==n)for(var l=a.index+1,c=0;c0;){var t=e[--a];if("number"==typeof t&&t<0)return t}return 0})(_)!=C&&_.push(C),_.push(n,l,h)}}function wf(e,a){null!==e.hostBindings&&e.hostBindings(1,a)}function Ym(e,a){a.flags|=2,(e.components||(e.components=[])).push(a.index)}function uh(e,a,t){if(t){if(a.exportAs)for(var n=0;n0&&WM(t)}}function WM(e){for(var a=Jd(e);null!==a;a=Kp(a))for(var t=10;t0&&WM(n)}var h=e[1].components;if(null!==h)for(var _=0;_0&&WM(C)}}function ov(e,a){var t=Eo(a,e),n=t[1];(function(e,a){for(var t=a.length;t1&&void 0!==arguments[1]?arguments[1]:mm;if(n===mm){var l=new Error("NullInjectorError: No provider for ".concat(hn(t),"!"));throw l.name="NullInjectorError",l}return n}}]),e}(),qm=new Ee("Set Injector scope."),Xm={},DI={},ZM=void 0;function aC(){return void 0===ZM&&(ZM=new iC),ZM}function AI(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new EI(e,t,a||aC(),n)}var EI=function(){function e(a,t,n){var l=this,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;F(this,e),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var h=[];t&&va(t,function(C){return l.processProvider(C,a,t)}),va([a],function(C){return l.processInjectorType(C,[],h)}),this.records.set(uv,fh(void 0,this));var _=this.records.get(qm);this.scope=null!=_?_.value:null,this.source=c||("object"==typeof a?null:hn(a))}return W(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mm,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yn.Default;this.assertNotDestroyed();var c=v0(this),h=Ia(void 0);try{if(!(l&yn.SkipSelf)){var _=this.records.get(t);if(void 0===_){var C=qz(t)&&Yc(t);_=C&&this.injectableDefInScope(C)?fh($M(t),Xm):null,this.records.set(t,_)}if(null!=_)return this.hydrate(t,_)}var k=l&yn.Self?aC():this.parent;return k.get(t,n=l&yn.Optional&&n===mm?null:n)}catch(I){if("NullInjectorError"===I.name){var D=I[qu]=I[qu]||[];if(D.unshift(hn(t)),c)throw I;return az(I,t,"R3InjectorError",this.source)}throw I}finally{Ia(h),v0(c)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(n){return t.get(n)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(l,c){return t.push(hn(c))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,n,l){var c=this;if(!(t=Et(t)))return!1;var h=bd(t),_=null==h&&t.ngModule||void 0,C=void 0===_?t:_,I=-1!==l.indexOf(C);if(void 0!==_&&(h=bd(_)),null==h)return!1;if(null!=h.imports&&!I){var L;l.push(C);try{va(h.imports,function(se){c.processInjectorType(se,n,l)&&(void 0===L&&(L=[]),L.push(se))})}finally{}if(void 0!==L)for(var G=function(be){var Ce=L[be],je=Ce.ngModule,$e=Ce.providers;va($e,function(kt){return c.processProvider(kt,je,$e||nr)})},Y=0;Y0){var t=is(a,"?");throw new Error("Can't resolve all parameters for ".concat(hn(e),": (").concat(t.join(", "),")."))}var n=function(e){var a=e&&(e[qc]||e[wk]);if(a){var t=function(e){if(e.hasOwnProperty("name"))return e.name;var a=(""+e).match(/^function\s*([^\s(]+)/);return null===a?"":a[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(t,'" class.')),a}return null}(e);return null!==n?function(){return n.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function QM(e,a,t){var n=void 0;if(dh(e)){var l=Et(e);return Ad(l)||$M(l)}if(PI(e))n=function(){return Et(e.useValue)};else if(function(e){return!(!e||!e.useFactory)}(e))n=function(){return e.useFactory.apply(e,At(uf(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))n=function(){return ce(Et(e.useExisting))};else{var c=Et(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Ad(c)||$M(c);n=function(){return $o(c,At(uf(e.deps)))}}return n}function fh(e,a){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:a,multi:t?[]:void 0}}function PI(e){return null!==e&&"object"==typeof e&&Jk in e}function dh(e){return"function"==typeof e}function qz(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ee}var JM=function(e,a,t){return function(e){var l=AI(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return l._resolveInjectorDefTypes(),l}({name:t},a,e,t)},kn=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"create",value:function(n,l){return Array.isArray(n)?JM(n,l,""):JM(n.providers,n.parent,n.name||"")}}]),a}();return e.THROW_IF_NOT_FOUND=mm,e.NULL=new iC,e.\u0275prov=We({token:e,providedIn:"any",factory:function(){return ce(uv)}}),e.__NG_ELEMENT_ID__=-1,e}();function l4(e,a){rf(dM(e)[1],bi())}function Pe(e){for(var a=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0,n=[e];a;){var l=void 0;if(js(e))l=a.\u0275cmp||a.\u0275dir;else{if(a.\u0275cmp)throw new Error("Directives cannot inherit Components");l=a.\u0275dir}if(l){if(t){n.push(l);var c=e;c.inputs=cC(e.inputs),c.declaredInputs=cC(e.declaredInputs),c.outputs=cC(e.outputs);var h=l.hostBindings;h&&gh(e,h);var _=l.viewQuery,C=l.contentQueries;if(_&&GI(e,_),C&&vh(e,C),Mo(e.inputs,l.inputs),Mo(e.declaredInputs,l.declaredInputs),Mo(e.outputs,l.outputs),js(l)&&l.data.animation){var k=e.data;k.animation=(k.animation||[]).concat(l.data.animation)}}var D=l.features;if(D)for(var I=0;I=0;n--){var l=e[n];l.hostVars=a+=l.hostVars,l.hostAttrs=ct(l.hostAttrs,t=ct(t,l.hostAttrs))}}(n)}function cC(e){return e===Tp?{}:e===nr?[]:e}function GI(e,a){var t=e.viewQuery;e.viewQuery=t?function(n,l){a(n,l),t(n,l)}:a}function vh(e,a){var t=e.contentQueries;e.contentQueries=t?function(n,l,c){a(n,l,c),t(n,l,c)}:a}function gh(e,a){var t=e.hostBindings;e.hostBindings=t?function(n,l){a(n,l),t(n,l)}:a}var Qm=null;function _h(){if(!Qm){var e=Kn.Symbol;if(e&&e.iterator)Qm=e.iterator;else for(var a=Object.getOwnPropertyNames(Map.prototype),t=0;t1&&void 0!==arguments[1]?arguments[1]:yn.Default,t=Re();if(null===t)return ce(e,a);var n=bi();return qk(n,t,Et(e),a)}function z(e,a,t){var n=Re();return Vi(n,es(),a)&&Na(En(),zr(),n,e,a,n[11],t,!1),z}function vx(e,a,t,n,l){var h=l?"class":"style";TI(e,t,a.inputs[h],h,n)}function A(e,a,t,n){var l=Re(),c=En(),h=20+e,_=l[11],C=l[h]=O0(_,a,Lt.lFrame.currentNamespace),k=c.firstCreatePass?function(e,a,t,n,l,c,h){var _=a.consts,k=nv(a,e,2,l,Ul(_,c));return Wm(a,t,k,Ul(_,h)),null!==k.attrs&&lv(k,k.attrs,!1),null!==k.mergedAttrs&&lv(k,k.mergedAttrs,!0),null!==a.queries&&a.queries.elementStart(a,k),k}(h,c,l,0,a,t,n):c.data[h];Po(k,!0);var D=k.mergedAttrs;null!==D&&dm(_,C,D);var I=k.classes;null!==I&&ki(_,C,I);var L=k.styles;null!==L&&sI(_,C,L),64!=(64&k.flags)&&Qp(c,l,C,k),0===Lt.lFrame.elementDepthCount&&Yi(C,l),Lt.lFrame.elementDepthCount++,to(k)&&(rv(c,l,k),ah(c,k,l)),null!==n&&oh(l,k)}function E(){var e=bi();Jo()?Oo():Po(e=e.parent,!1);var a=e;Lt.lFrame.elementDepthCount--;var t=En();t.firstCreatePass&&(rf(t,e),Td(e)&&t.queries.elementEnd(e)),null!=a.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(a)&&vx(t,a,Re(),a.classesWithoutHost,!0),null!=a.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(a)&&vx(t,a,Re(),a.stylesWithoutHost,!1)}function me(e,a,t,n){A(e,a,t,n),E()}function vt(e,a,t){var n=Re(),l=En(),c=e+20,h=l.firstCreatePass?function(e,a,t,n,l){var c=a.consts,h=Ul(c,n),_=nv(a,e,8,"ng-container",h);return null!==h&&lv(_,h,!0),Wm(a,t,_,Ul(c,l)),null!==a.queries&&a.queries.elementStart(a,_),_}(c,l,n,a,t):l.data[c];Po(h,!0);var _=n[c]=n[11].createComment("");Qp(l,n,_,h),Yi(_,n),to(h)&&(rv(l,n,h),ah(l,h,n)),null!=t&&oh(n,h)}function xn(){var e=bi(),a=En();Jo()?Oo():Po(e=e.parent,!1),a.firstCreatePass&&(rf(a,e),Td(e)&&a.queries.elementEnd(e))}function un(e,a,t){vt(e,a,t),xn()}function De(){return Re()}function vv(e){return!!e&&"function"==typeof e.then}function dR(e){return!!e&&"function"==typeof e.subscribe}var gv=dR;function ne(e,a,t,n){var l=Re(),c=En(),h=bi();return hR(c,l,l[11],h,e,a,!!t,n),ne}function mv(e,a){var t=bi(),n=Re(),l=En();return hR(l,n,Ni(Hk(l.data),t,n),t,e,a,!1),mv}function hR(e,a,t,n,l,c,h,_){var C=to(n),D=e.firstCreatePass&&ch(e),I=a[8],L=tl(a),G=!0;if(3&n.type||_){var Y=Ao(n,a),Q=_?_(Y):Y,ie=L.length,fe=_?function(Nu){return _(di(Nu[n.index]))}:n.index;if(Kr(t)){var se=null;if(!_&&C&&(se=function(e,a,t,n){var l=e.cleanup;if(null!=l)for(var c=0;cC?_[C]:null}"string"==typeof h&&(c+=2)}return null}(e,a,l,n.index)),null!==se)(se.__ngLastListenerFn__||se).__ngNextListenerFn__=c,se.__ngLastListenerFn__=c,G=!1;else{c=Vn(n,a,I,c,!1);var Ce=t.listen(Q,l,c);L.push(c,Ce),D&&D.push(l,fe,ie,ie+1)}}else c=Vn(n,a,I,c,!0),Q.addEventListener(l,c,h),L.push(c),D&&D.push(l,fe,ie,h)}else c=Vn(n,a,I,c,!1);var $e,je=n.outputs;if(G&&null!==je&&($e=je[l])){var kt=$e.length;if(kt)for(var Dn=0;Dn0&&void 0!==arguments[0]?arguments[0]:1;return Ft(e)}function vR(e,a){for(var t=null,n=function(e){var a=e.attrs;if(null!=a){var t=a.indexOf(5);if(0==(1&t))return a[t+1]}return null}(e),l=0;l1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,n=Re(),l=En(),c=nv(l,20+e,16,null,t||null);null===c.projection&&(c.projection=a),Oo(),64!=(64&c.flags)&&Ez(l,n,c)}function il(e,a,t){return mx(e,"",a,"",t),il}function mx(e,a,t,n,l){var c=Re(),h=su(c,a,t,n);return h!==jt&&Na(En(),zr(),c,e,h,c[11],l,!1),mx}function i_(e,a,t,n,l){for(var c=e[t+1],h=null===a,_=n?lr(c):Qu(c),C=!1;0!==_&&(!1===C||h);){var D=e[_+1];vC(e[_],a)&&(C=!0,e[_+1]=n?j0(D):EM(D)),_=n?lr(D):Qu(D)}C&&(e[t+1]=n?EM(c):j0(c))}function vC(e,a){return null===e||null==a||(Array.isArray(e)?e[1]:e)===a||!(!Array.isArray(e)||"string"!=typeof a)&&Bd(e,a)>=0}var xi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function bR(e){return e.substring(xi.key,xi.keyEnd)}function CR(e,a){var t=xi.textEnd;return t===a?-1:(a=xi.keyEnd=function(e,a,t){for(;a32;)a++;return a}(e,xi.key=a,t),yv(e,a,t))}function yv(e,a,t){for(;a=0;t=CR(a,t))Lo(e,bR(a),!0)}function uo(e,a,t,n){var l=Re(),c=En(),h=ro(2);c.firstUpdatePass&&xR(c,e,h,n),a!==jt&&Vi(l,h,a)&&xh(c,c.data[ri()],l,l[11],e,l[h+1]=function(e,a){return null==e||("string"==typeof a?e+=a:"object"==typeof e&&(e=hn(Wi(e)))),e}(a,t),n,h)}function Mx(e,a){return a>=e.expandoStartIndex}function xR(e,a,t,n){var l=e.data;if(null===l[t+1]){var c=l[ri()],h=Mx(e,t);Tx(c,n)&&null===a&&!h&&(a=!1),a=function(e,a,t,n){var l=Hk(e),c=n?a.residualClasses:a.residualStyles;if(null===l)0===(n?a.classBindings:a.styleBindings)&&(t=bv(t=kh(null,e,a,t,n),a.attrs,n),c=null);else{var _=a.directiveStylingLast;if(-1===_||e[_]!==l)if(t=kh(l,e,a,t,n),null===c){var k=function(e,a,t){var n=t?a.classBindings:a.styleBindings;if(0!==Qu(n))return e[lr(n)]}(e,a,n);void 0!==k&&Array.isArray(k)&&function(e,a,t,n){e[lr(t?a.classBindings:a.styleBindings)]=n}(e,a,n,k=bv(k=kh(null,e,a,k[1],n),a.attrs,n))}else c=function(e,a,t){for(var n=void 0,l=a.directiveEnd,c=1+a.directiveStylingLast;c0)&&(k=!0):D=t,l)if(0!==C){var G=lr(e[_+1]);e[n+1]=Mi(G,_),0!==G&&(e[G+1]=G0(e[G+1],n)),e[_+1]=function(e,a){return 131071&e|a<<17}(e[_+1],n)}else e[n+1]=Mi(_,0),0!==_&&(e[_+1]=G0(e[_+1],n)),_=n;else e[n+1]=Mi(C,0),0===_?_=n:e[C+1]=G0(e[C+1],n),C=n;k&&(e[n+1]=EM(e[n+1])),i_(e,D,n,!0),i_(e,D,n,!1),function(e,a,t,n,l){var c=l?e.residualClasses:e.residualStyles;null!=c&&"string"==typeof a&&Bd(c,a)>=0&&(t[n+1]=j0(t[n+1]))}(a,D,e,n,c),h=Mi(_,C),c?a.classBindings=h:a.styleBindings=h}(l,c,a,t,h,n)}}function kh(e,a,t,n,l){var c=null,h=t.directiveEnd,_=t.directiveStylingLast;for(-1===_?_=t.directiveStart:_++;_0;){var C=e[l],k=Array.isArray(C),D=k?C[1]:C,I=null===D,L=t[l+1];L===jt&&(L=I?nr:void 0);var G=I?vm(L,n):D===n?L:void 0;if(k&&!gC(G)&&(G=vm(C,n)),gC(G)&&(_=G,h))return _;var Y=e[l+1];l=h?lr(Y):Qu(Y)}if(null!==a){var Q=c?a.residualClasses:a.residualStyles;null!=Q&&(_=vm(Q,n))}return _}function gC(e){return void 0!==e}function Tx(e,a){return 0!=(e.flags&(a?16:32))}function K(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Re(),n=En(),l=e+20,c=n.firstCreatePass?nv(n,l,1,a,null):n.data[l],h=t[l]=P0(t[11],a);Qp(n,t,h,c),Po(c,!1)}function On(e){return Ve("",e,""),On}function Ve(e,a,t){var n=Re(),l=su(n,e,a,t);return l!==jt&&au(n,ri(),l),Ve}function Cv(e,a,t,n,l){var c=Re(),h=function(e,a,t,n,l,c){var _=zo(e,qs(),t,l);return ro(2),_?a+nn(t)+n+nn(l)+c:jt}(c,e,a,t,n,l);return h!==jt&&au(c,ri(),h),Cv}function Ex(e,a,t){!function(e,a,t,n){var l=En(),c=ro(2);l.firstUpdatePass&&xR(l,null,c,n);var h=Re();if(t!==jt&&Vi(h,c,t)){var _=l.data[ri()];if(Tx(_,n)&&!Mx(l,c)){var k=n?_.classesWithoutHost:_.stylesWithoutHost;null!==k&&(t=Ln(k,t||"")),vx(l,_,h,t,n)}else!function(e,a,t,n,l,c,h,_){l===jt&&(l=nr);for(var C=0,k=0,D=0>20;if(dh(e)||!e.multi){var Y=new Rd(k,l,N),Q=Qx(C,a,l?I:I+G,L);-1===Q?(Fe(zp(D,_),h,C),IC(h,e,a.length),a.push(C),D.directiveStart++,D.directiveEnd++,l&&(D.providerIndexes+=1048576),t.push(Y),_.push(Y)):(t[Q]=Y,_[Q]=Y)}else{var ie=Qx(C,a,I+G,L),fe=Qx(C,a,I,I+G),be=fe>=0&&t[fe];if(l&&!be||!l&&!(ie>=0&&t[ie])){Fe(zp(D,_),h,C);var Ce=function(e,a,t,n,l){var c=new Rd(e,t,N);return c.multi=[],c.index=a,c.componentProviders=0,$x(c,l,n&&!t),c}(l?g8:n2,t.length,l,n,k);!l&&be&&(t[fe].providerFactory=Ce),IC(h,e,a.length,0),a.push(C),D.directiveStart++,D.directiveEnd++,l&&(D.providerIndexes+=1048576),t.push(Ce),_.push(Ce)}else IC(h,e,ie>-1?ie:fe,$x(t[l?fe:ie],k,!l&&n));!l&&n&&be&&t[fe].componentProviders++}}}function IC(e,a,t,n){var l=dh(a);if(l||function(e){return!!e.useClass}(a)){var h=(a.useClass||a).prototype.ngOnDestroy;if(h){var _=e.destroyHooks||(e.destroyHooks=[]);if(!l&&a.multi){var C=_.indexOf(t);-1===C?_.push(t,[n,h]):_[C+1].push(n,h)}else _.push(t,h)}}}function $x(e,a,t){return t&&e.componentProviders++,e.multi.push(a)-1}function Qx(e,a,t,n){for(var l=t;l1&&void 0!==arguments[1]?arguments[1]:[];return function(t){t.providersResolver=function(n,l){return t2(n,l?l(e):e,a)}}}var a2=function e(){F(this,e)},eT=function e(){F(this,e)},tT=function(){function e(){F(this,e)}return W(e,[{key:"resolveComponentFactory",value:function(t){throw function(e){var a=Error("No component factory found for ".concat(hn(e),". Did you add it to @NgModule.entryComponents?"));return a.ngComponent=e,a}(t)}}]),e}(),Ki=function(){var e=function a(){F(this,a)};return e.NULL=new tT,e}();function __(){}function lu(e,a){return new Ue(Ao(e,a))}var y8=function(){return lu(bi(),Re())},Ue=function(){var e=function a(t){F(this,a),this.nativeElement=t};return e.__NG_ELEMENT_ID__=y8,e}();function rT(e){return e instanceof Ue?e.nativeElement:e}var Ff=function e(){F(this,e)},fl=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=function(){return FC()},e}(),FC=function(){var e=Re(),t=Eo(bi().index,e);return function(e){return e[11]}(Hl(t)?t:e)},NC=function(){var e=function a(){F(this,a)};return e.\u0275prov=We({token:e,providedIn:"root",factory:function(){return null}}),e}(),nc=function e(a){F(this,e),this.full=a,this.major=a.split(".")[0],this.minor=a.split(".")[1],this.patch=a.split(".").slice(2).join(".")},u2=new nc("12.2.4"),Uo=function(){function e(){F(this,e)}return W(e,[{key:"supports",value:function(t){return fv(t)}},{key:"create",value:function(t){return new w8(t)}}]),e}(),c2=function(a,t){return t},w8=function(){function e(a){F(this,e),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=a||c2}return W(e,[{key:"forEachItem",value:function(t){var n;for(n=this._itHead;null!==n;n=n._next)t(n)}},{key:"forEachOperation",value:function(t){for(var n=this._itHead,l=this._removalsHead,c=0,h=null;n||l;){var _=!l||n&&n.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==t;){var c=a[t.index];if(null!==c&&n.push(di(c)),Gs(c))for(var h=10;h-1&&(nI(t,l),Vd(n,l))}this._attachedToViewContainer=!1}rI(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){HM(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){nC(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){rC(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,a,t){lm(!0);try{rC(e,a,t)}finally{lm(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function(e,a){Jp(e,a,a[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),e}(),m2=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this,n))._view=n,l}return W(t,[{key:"detectChanges",value:function(){Ho(this._view)}},{key:"checkNoChanges",value:function(){!function(e){lm(!0);try{Ho(e)}finally{lm(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),t}(b_),_2=function(e){return function(e,a,t){if(rm(e)&&!t){var n=Eo(e.index,a);return new b_(n,n)}return 47&e.type?new b_(a[16],a):null}(bi(),Re(),16==(16&e))},Vt=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=_2,e}(),T8=[new y_],A8=new ys([new Uo]),E8=new Eh(T8),aT=function(){return BC(bi(),Re())},Xn=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=aT,e}(),Ih=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this))._declarationLView=n,h._declarationTContainer=l,h.elementRef=c,h}return W(t,[{key:"createEmbeddedView",value:function(l){var c=this._declarationTContainer.tViews,h=ru(this._declarationLView,c,l,16,null,c.declTNode,null,null,null,null);h[17]=this._declarationLView[this._declarationTContainer.index];var C=this._declarationLView[19];return null!==C&&(h[19]=C.createEmbeddedView(c)),Um(c,h,l),new b_(h)}}]),t}(Xn);function BC(e,a){return 4&e.type?new Ih(a,e,lu(e,a)):null}var rc=function e(){F(this,e)},C2=function e(){F(this,e)},O8=function(){return uu(bi(),Re())},$n=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=O8,e}(),w2=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this))._lContainer=n,h._hostTNode=l,h._hostLView=c,h}return W(t,[{key:"element",get:function(){return lu(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Fd(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var l=bn(this._hostTNode,this._hostLView);if(Vp(l)){var c=Bp(l,this._hostLView),h=ts(l);return new Fd(c[1].data[h+8],c)}return new Fd(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(l){var c=S2(this._lContainer);return null!==c&&c[l]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(l,c,h){var _=l.createEmbeddedView(c||{});return this.insert(_,h),_}},{key:"createComponent",value:function(l,c,h,_,C){var k=h||this.parentInjector;if(!C&&null==l.ngModule&&k){var D=k.get(rc,null);D&&(C=D)}var I=l.create(k,_,void 0,C);return this.insert(I.hostView,c),I}},{key:"insert",value:function(l,c){var h=l._lView,_=h[1];if(function(e){return Gs(e[3])}(h)){var C=this.indexOf(l);if(-1!==C)this.detach(C);else{var k=h[3],D=new w2(k,k[6],k[3]);D.detach(D.indexOf(l))}}var I=this._adjustIndex(c),L=this._lContainer;!function(e,a,t,n){var l=10+n,c=t.length;n>0&&(t[l-1][4]=a),n1&&void 0!==arguments[1]?arguments[1]:0;return null==l?this.length+c:l}}]),t}($n);function S2(e){return e[8]}function Rh(e){return e[8]||(e[8]=[])}function uu(e,a){var t,n=a[e.index];if(Gs(n))t=n;else{var l;if(8&e.type)l=di(n);else{var c=a[11];l=c.createComment("");var h=Ao(e,a);bf(c,Lm(c,h),l,function(e,a){return Kr(e)?e.nextSibling(a):a.nextSibling}(c,h),!1)}a[e.index]=t=iv(n,a,l,e),qt(a,t)}return new w2(t,e,a)}var Vh={},wT=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this)).ngModule=n,l}return W(t,[{key:"resolveComponentFactory",value:function(l){var c=Ra(l);return new Rv(c,this.ngModule)}}]),t}(Ki);function X2(e){var a=[];for(var t in e)e.hasOwnProperty(t)&&a.push({propName:e[t],templateName:t});return a}var Z2=new Ee("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return gM}}),Rv=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this)).componentDef=n,c.ngModule=l,c.componentType=n.type,c.selector=function(e){return e.map(Fm).join(",")}(n.selectors),c.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],c.isBoundToModule=!!l,c}return W(t,[{key:"inputs",get:function(){return X2(this.componentDef.inputs)}},{key:"outputs",get:function(){return X2(this.componentDef.outputs)}},{key:"create",value:function(l,c,h,_){var se,be,C=(_=_||this.ngModule)?function(e,a){return{get:function(n,l,c){var h=e.get(n,Vh,c);return h!==Vh||l===Vh?h:a.get(n,l,c)}}}(l,_.injector):l,k=C.get(Ff,pO),D=C.get(NC,null),I=k.createRenderer(null,this.componentDef),L=this.componentDef.selectors[0][0]||"div",G=h?function(e,a,t){if(Kr(e))return e.selectRootElement(a,t===Hs.ShadowDom);var l="string"==typeof a?e.querySelector(a):a;return l.textContent="",l}(I,h,this.componentDef.encapsulation):O0(k.createRenderer(null,this.componentDef),L,function(e){var a=e.toLowerCase();return"svg"===a?hO:"math"===a?"http://www.w3.org/1998/MathML/":null}(L)),Y=this.componentDef.onPush?576:528,Q=function(e,a){return{components:[],scheduler:e||gM,clean:xI,playerHandler:a||null,flags:0}}(),ie=sh(0,null,null,1,0,null,null,null,null,null),fe=ru(null,ie,Q,Y,null,null,k,I,D,C);jl(fe);try{var Ce=function(e,a,t,n,l,c){var h=t[1];t[20]=e;var C=nv(h,20,2,"#host",null),k=C.mergedAttrs=a.hostAttrs;null!==k&&(lv(C,k,!0),null!==e&&(dm(l,e,k),null!==C.classes&&ki(l,e,C.classes),null!==C.styles&&sI(l,e,C.styles)));var D=n.createRenderer(e,a),I=ru(t,Gm(a),null,a.onPush?64:16,t[20],C,n,D,c||null,null);return h.firstCreatePass&&(Fe(zp(C,t),h,a.type),Ym(h,C),eC(C,t.length,1)),qt(t,I),t[20]=I}(G,this.componentDef,fe,k,I);if(G)if(h)dm(I,G,["ng-version",u2.full]);else{var je=function(e){for(var a=[],t=[],n=1,l=2;n0&&ki(I,G,kt.join(" "))}if(be=Rk(ie,20),void 0!==c)for(var Dn=be.projection=[],Zn=0;Zn1&&void 0!==arguments[1]?arguments[1]:kn.THROW_IF_NOT_FOUND,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yn.Default;return l===kn||l===rc||l===uv?this:this._r3Injector.get(l,c,h)}},{key:"destroy",value:function(){var l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(function(c){return c()}),this.destroyCbs=null}},{key:"onDestroy",value:function(l){this.destroyCbs.push(l)}}]),t}(rc),kT=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this)).moduleType=n,null!==fa(n)&&function(e){var a=new Set;!function t(n){var l=fa(n,!0),c=l.id;null!==c&&(function(e,a,t){if(a&&a!==t)throw new Error("Duplicate module registered for ".concat(e," - ").concat(hn(a)," vs ").concat(hn(a.name)))}(c,Lv.get(c),n),Lv.set(c,n));var k,C=tn(cs(l.imports));try{for(C.s();!(k=C.n()).done;){var D=k.value;a.has(D)||(a.add(D),t(D))}}catch(I){C.e(I)}finally{C.f()}}(e)}(n),l}return W(t,[{key:"create",value:function(l){return new eU(this.moduleType,l)}}]),t}(C2);function rw(e,a,t){var n=ha()+e,l=Re();return l[n]===jt?ou(l,n,t?a.call(t):a()):function(e,a){return e[a]}(l,n)}function vl(e,a,t,n){return eL(Re(),ha(),e,a,t,n)}function zf(e,a,t,n,l){return gl(Re(),ha(),e,a,t,n,l)}function O_(e,a){var t=e[a];return t===jt?void 0:t}function eL(e,a,t,n,l,c){var h=a+t;return Vi(e,h,l)?ou(e,h+1,c?n.call(c,l):n(l)):O_(e,h+1)}function gl(e,a,t,n,l,c,h){var _=a+t;return zo(e,_,l,c)?ou(e,_+2,h?n.call(h,l,c):n(l,c)):O_(e,_+2)}function Uf(e,a){var n,t=En(),l=e+20;t.firstCreatePass?(n=function(e,a){if(a)for(var t=a.length-1;t>=0;t--){var n=a[t];if(e===n.name)return n}throw new xp("302","The pipe '".concat(e,"' could not be found!"))}(a,t.pipeRegistry),t.data[l]=n,n.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(l,n.onDestroy)):n=t.data[l];var c=n.factory||(n.factory=Ad(n.type)),h=Ia(N);try{var _=Hp(!1),C=c();return Hp(_),function(e,a,t,n){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),a[t]=n}(t,Re(),l,C),C}finally{Ia(h)}}function Gf(e,a,t){var n=e+20,l=Re(),c=Jc(l,n);return jf(l,I_(l,n)?eL(l,ha(),a,c.transform,t,c):c.transform(t))}function iw(e,a,t,n){var l=e+20,c=Re(),h=Jc(c,l);return jf(c,I_(c,l)?gl(c,ha(),a,h.transform,t,n,h):h.transform(t,n))}function I_(e,a){return e[1].data[a].pure}function jf(e,a){return xf.isWrapped(a)&&(a=xf.unwrap(a),e[qs()]=jt),a}function Nv(e){return function(a){setTimeout(e,void 0,a)}}var ye=function(e){ae(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return F(this,t),(n=a.call(this)).__isAsync=l,n}return W(t,[{key:"emit",value:function(l){Ie(Oe(t.prototype),"next",this).call(this,l)}},{key:"subscribe",value:function(l,c,h){var _,C,k,D=l,I=c||function(){return null},L=h;if(l&&"object"==typeof l){var G=l;D=null===(_=G.next)||void 0===_?void 0:_.bind(G),I=null===(C=G.error)||void 0===C?void 0:C.bind(G),L=null===(k=G.complete)||void 0===k?void 0:k.bind(G)}this.__isAsync&&(I=Nv(I),D&&(D=Nv(D)),L&&(L=Nv(L)));var Y=Ie(Oe(t.prototype),"subscribe",this).call(this,{next:D,error:I,complete:L});return l instanceof Be&&l.add(Y),Y}}]),t}(qe);function TT(){return this._results[_h()]()}var Wo=function(){function e(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];F(this,e),this._emitDistinctChangesOnly=a,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var t=_h(),n=e.prototype;n[t]||(n[t]=TT)}return W(e,[{key:"changes",get:function(){return this._changes||(this._changes=new ye)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,n){return this._results.reduce(t,n)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,n){var l=this;l.dirty=!1;var c=rs(t);(this._changesDetected=!function(e,a,t){if(e.length!==a.length)return!1;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];F(this,e),this.queries=a}return W(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var l=null!==t.contentQueries?t.contentQueries[0]:n.length,c=[],h=0;h2&&void 0!==arguments[2]?arguments[2]:null;F(this,e),this.predicate=a,this.flags=t,this.read=n},AT=function(){function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];F(this,e),this.queries=a}return W(e,[{key:"elementStart",value:function(t,n){for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:-1;F(this,e),this.metadata=a,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}return W(e,[{key:"elementStart",value:function(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,n){this.elementStart(t,n)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var n=this._declarationNodeIndex,l=t.parent;null!==l&&8&l.type&&l.index!==n;)l=l.parent;return n===(null!==l?l.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,n){var l=this.metadata.predicate;if(Array.isArray(l))for(var c=0;c0)n.push(h[_/2]);else{for(var k=c[_+1],D=a[-C],I=10;I0&&(_=setTimeout(function(){h._callbacks=h._callbacks.filter(function(C){return C.timeoutId!==_}),n(h._didWork,h.getPendingTasks())},l)),this._callbacks.push({doneCb:n,timeoutId:_,updateCb:c})}},{key:"whenStable",value:function(n,l,c){if(c&&!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(n,l,c),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(n,l,c){return[]}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(ft))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),U_=function(){var e=function(){function a(){F(this,a),this._applications=new Map,_w.addToWindow(this)}return W(a,[{key:"registerApplication",value:function(n,l){this._applications.set(n,l)}},{key:"unregisterApplication",value:function(n){this._applications.delete(n)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(n){return this._applications.get(n)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(n){var l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return _w.findTestabilityInTree(this,n,l)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),_w=new(function(){function e(){F(this,e)}return W(e,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,n,l){return null}}]),e}()),XT=!0,oc=!1;function yw(){return oc=!0,XT}var ho,sc=function(e,a,t){var n=new kT(t);return Promise.resolve(n)},LL=new Ee("AllowMultipleToken"),Yv=function e(a,t){F(this,e),this.name=a,this.token=t};function FL(e){if(ho&&!ho.destroyed&&!ho.injector.get(LL,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ho=e.get(QT);var a=e.get(HT,null);return a&&a.forEach(function(t){return t()}),ho}function NL(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(a),l=new Ee(n);return function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],h=$T();if(!h||h.injector.get(LL,!1))if(e)e(t.concat(c).concat({provide:l,useValue:!0}));else{var _=t.concat(c).concat({provide:l,useValue:!0},{provide:qm,useValue:"platform"});FL(kn.create({providers:_,name:n}))}return qU(l)}}function qU(e){var a=$T();if(!a)throw new Error("No platform exists!");if(!a.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return a}function $T(){return ho&&!ho.destroyed?ho:null}var QT=function(){var e=function(){function a(t){F(this,a),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return W(a,[{key:"bootstrapModuleFactory",value:function(n,l){var c=this,k=function(e,a){return"noop"===e?new GU:("zone.js"===e?void 0:e)||new ft({enableLongStackTrace:yw(),shouldCoalesceEventChangeDetection:!!(null==a?void 0:a.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==a?void 0:a.ngZoneRunCoalescing)})}(l?l.ngZone:void 0,{ngZoneEventCoalescing:l&&l.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:l&&l.ngZoneRunCoalescing||!1}),D=[{provide:ft,useValue:k}];return k.run(function(){var I=kn.create({providers:D,parent:c.injector,name:n.moduleType.name}),L=n.create(I),G=L.injector.get($d,null);if(!G)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return k.runOutsideAngular(function(){var Y=k.onError.subscribe({next:function(ie){G.handleError(ie)}});L.onDestroy(function(){Cw(c._modules,L),Y.unsubscribe()})}),function(e,a,t){try{var n=((Y=L.injector.get(zh)).runInitializers(),Y.donePromise.then(function(){return SC(L.injector.get(vu,l_)||l_),c._moduleDoBootstrap(L),L}));return vv(n)?n.catch(function(l){throw a.runOutsideAngular(function(){return e.handleError(l)}),l}):n}catch(l){throw a.runOutsideAngular(function(){return e.handleError(l)}),l}var Y}(G,k)})}},{key:"bootstrapModule",value:function(n){var l=this,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],h=JT({},c);return sc(0,0,n).then(function(_){return l.bootstrapModuleFactory(_,h)})}},{key:"_moduleDoBootstrap",value:function(n){var l=n.injector.get(lc);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(function(c){return l.bootstrap(c)});else{if(!n.instance.ngDoBootstrap)throw new Error("The module ".concat(hn(n.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");n.instance.ngDoBootstrap(l)}this._modules.push(n)}},{key:"onDestroy",value:function(n){this._destroyListeners.push(n)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(n){return n.destroy()}),this._destroyListeners.forEach(function(n){return n()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(kn))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function JT(e,a){return Array.isArray(a)?a.reduce(JT,e):Object.assign(Object.assign({},e),a)}var lc=function(){var e=function(){function a(t,n,l,c,h){var _=this;F(this,a),this._zone=t,this._injector=n,this._exceptionHandler=l,this._componentFactoryResolver=c,this._initStatus=h,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){_._zone.run(function(){_.tick()})}});var C=new gn(function(D){_._stable=_._zone.isStable&&!_._zone.hasPendingMacrotasks&&!_._zone.hasPendingMicrotasks,_._zone.runOutsideAngular(function(){D.next(_._stable),D.complete()})}),k=new gn(function(D){var I;_._zone.runOutsideAngular(function(){I=_._zone.onStable.subscribe(function(){ft.assertNotInAngularZone(),WT(function(){!_._stable&&!_._zone.hasPendingMacrotasks&&!_._zone.hasPendingMicrotasks&&(_._stable=!0,D.next(!0))})})});var L=_._zone.onUnstable.subscribe(function(){ft.assertInAngularZone(),_._stable&&(_._stable=!1,_._zone.runOutsideAngular(function(){D.next(!1)}))});return function(){I.unsubscribe(),L.unsubscribe()}});this.isStable=ot(C,k.pipe(function(e){return Qo()(function(e,a){return function(n){var l;l="function"==typeof e?e:function(){return e};var c=Object.create(n,jc);return c.source=n,c.subjectFactory=l,c}}(Bb)(e))}))}return W(a,[{key:"bootstrap",value:function(n,l){var h,c=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");h=n instanceof eT?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(h.componentType);var _=function(e){return e.isBoundToModule}(h)?void 0:this._injector.get(rc),k=h.create(kn.NULL,[],l||h.selector,_),D=k.location.nativeElement,I=k.injector.get(qT,null),L=I&&k.injector.get(U_);return I&&L&&L.registerApplication(D,I),k.onDestroy(function(){c.detachView(k.hostView),Cw(c.components,k),L&&L.unregisterApplication(D)}),this._loadComponent(k),k}},{key:"tick",value:function(){var n=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var c,l=tn(this._views);try{for(l.s();!(c=l.n()).done;)c.value.detectChanges()}catch(D){l.e(D)}finally{l.f()}}catch(D){this._zone.runOutsideAngular(function(){return n._exceptionHandler.handleError(D)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(n){var l=n;this._views.push(l),l.attachToAppRef(this)}},{key:"detachView",value:function(n){var l=n;Cw(this._views,l),l.detachFromAppRef()}},{key:"_loadComponent",value:function(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(dw,[]).concat(this._bootstrapListeners).forEach(function(c){return c(n)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(n){return n.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(ft),ce(kn),ce($d),ce(Ki),ce(zh))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function Cw(e,a){var t=e.indexOf(a);t>-1&&e.splice(t,1)}var qf=function e(){F(this,e)},QU=function e(){F(this,e)},JU={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},eG=function(){var e=function(){function a(t,n){F(this,a),this._compiler=t,this._config=n||JU}return W(a,[{key:"load",value:function(n){return this.loadAndCompile(n)}},{key:"loadAndCompile",value:function(n){var l=this,h=cr(n.split("#"),2),_=h[0],C=h[1];return void 0===C&&(C="default"),Dt(98255)(_).then(function(k){return k[C]}).then(function(k){return HL(k,_,C)}).then(function(k){return l._compiler.compileModuleAsync(k)})}},{key:"loadFactory",value:function(n){var c=cr(n.split("#"),2),h=c[0],_=c[1],C="NgFactory";return void 0===_&&(_="default",C=""),Dt(98255)(this._config.factoryPathPrefix+h+this._config.factoryPathSuffix).then(function(k){return k[_+C]}).then(function(k){return HL(k,h,_)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(gu),ce(QU,8))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function HL(e,a,t){if(!e)throw new Error("Cannot find '".concat(t,"' in '").concat(a,"'"));return e}var dG=NL(null,"core",[{provide:jv,useValue:"unknown"},{provide:QT,deps:[kn]},{provide:U_,deps:[]},{provide:hw,deps:[]}]),hG=[{provide:lc,useClass:lc,deps:[ft,kn,$d,Ki,zh]},{provide:Z2,deps:[ft],useFactory:function(e){var a=[];return e.onStable.subscribe(function(){for(;a.length;)a.pop()()}),function(t){a.push(t)}}},{provide:zh,useClass:zh,deps:[[new oi,fo]]},{provide:gu,useClass:gu,deps:[]},xL,{provide:ys,useFactory:function(){return A8},deps:[]},{provide:Eh,useFactory:function(){return E8},deps:[]},{provide:vu,useFactory:function(e){return SC(e=e||"undefined"!=typeof $localize&&$localize.locale||l_),e},deps:[[new jp(vu),new oi,new Fo]]},{provide:DL,useValue:"USD"}],WL=function(){var e=function a(t){F(this,a)};return e.\u0275fac=function(t){return new(t||e)(ce(lc))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:hG}),e}(),Nw=null;function _u(){return Nw}var pF=function e(){F(this,e)},lt=new Ee("DocumentToken"),fc=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:vF,token:e,providedIn:"platform"}),e}();function vF(){return ce(mF)}var gF=new Ee("Location Initialized"),mF=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this))._doc=l,c._init(),c}return W(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return _u().getBaseHref(this._doc)}},{key:"onPopState",value:function(c){var h=_u().getGlobalEventTarget(this._doc,"window");return h.addEventListener("popstate",c,!1),function(){return h.removeEventListener("popstate",c)}}},{key:"onHashChange",value:function(c){var h=_u().getGlobalEventTarget(this._doc,"window");return h.addEventListener("hashchange",c,!1),function(){return h.removeEventListener("hashchange",c)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(c){this.location.pathname=c}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(c,h,_){_F()?this._history.pushState(c,h,_):this.location.hash=_}},{key:"replaceState",value:function(c,h,_){_F()?this._history.replaceState(c,h,_):this.location.hash=_}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(c)}},{key:"getState",value:function(){return this._history.state}}]),n}(fc);return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:Qf,token:e,providedIn:"platform"}),e}();function _F(){return!!window.history.pushState}function Qf(){return new mF(ce(lt))}function dc(e,a){if(0==e.length)return a;if(0==a.length)return e;var t=0;return e.endsWith("/")&&t++,a.startsWith("/")&&t++,2==t?e+a.substring(1):1==t?e+a:e+"/"+a}function gD(e){var a=e.match(/#|\?|$/),t=a&&a.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function hc(e){return e&&"?"!==e[0]?"?"+e:e}var Qv=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:Ms,token:e,providedIn:"root"}),e}();function Ms(e){var a=ce(lt).location;return new mD(ce(fc),a&&a.origin||"")}var Vw=new Ee("appBaseHref"),mD=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;if(F(this,n),(h=t.call(this))._platformLocation=l,h._removeListenerFns=[],null==c&&(c=h._platformLocation.getBaseHrefFromDOM()),null==c)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.");return h._baseHref=c,h}return W(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(c){this._removeListenerFns.push(this._platformLocation.onPopState(c),this._platformLocation.onHashChange(c))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(c){return dc(this._baseHref,c)}},{key:"path",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0],h=this._platformLocation.pathname+hc(this._platformLocation.search),_=this._platformLocation.hash;return _&&c?"".concat(h).concat(_):h}},{key:"pushState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+hc(C));this._platformLocation.pushState(c,h,k)}},{key:"replaceState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+hc(C));this._platformLocation.replaceState(c,h,k)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var h,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(h=this._platformLocation).historyGo)||void 0===_||_.call(h,c)}}]),n}(Qv);return e.\u0275fac=function(t){return new(t||e)(ce(fc),ce(Vw,8))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),yF=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this))._platformLocation=l,h._baseHref="",h._removeListenerFns=[],null!=c&&(h._baseHref=c),h}return W(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(c){this._removeListenerFns.push(this._platformLocation.onPopState(c),this._platformLocation.onHashChange(c))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var h=this._platformLocation.hash;return null==h&&(h="#"),h.length>0?h.substring(1):h}},{key:"prepareExternalUrl",value:function(c){var h=dc(this._baseHref,c);return h.length>0?"#"+h:h}},{key:"pushState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+hc(C));0==k.length&&(k=this._platformLocation.pathname),this._platformLocation.pushState(c,h,k)}},{key:"replaceState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+hc(C));0==k.length&&(k=this._platformLocation.pathname),this._platformLocation.replaceState(c,h,k)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var h,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(h=this._platformLocation).historyGo)||void 0===_||_.call(h,c)}}]),n}(Qv);return e.\u0275fac=function(t){return new(t||e)(ce(fc),ce(Vw,8))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Jv=function(){var e=function(){function a(t,n){var l=this;F(this,a),this._subject=new ye,this._urlChangeListeners=[],this._platformStrategy=t;var c=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=gD(yu(c)),this._platformStrategy.onPopState(function(h){l._subject.emit({url:l.path(!0),pop:!0,state:h.state,type:h.type})})}return W(a,[{key:"path",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(n))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(n+hc(l))}},{key:"normalize",value:function(n){return a.stripTrailingSlash(function(e,a){return e&&a.startsWith(e)?a.substring(e.length):a}(this._baseHref,yu(n)))}},{key:"prepareExternalUrl",value:function(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}},{key:"go",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(c,"",n,l),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hc(l)),c)}},{key:"replaceState",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(c,"",n,l),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hc(l)),c)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var l,c,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(c=(l=this._platformStrategy).historyGo)||void 0===c||c.call(l,n)}},{key:"onUrlChange",value:function(n){var l=this;this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(c){l._notifyUrlChangeListeners(c.url,c.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",l=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(c){return c(n,l)})}},{key:"subscribe",value:function(n,l,c){return this._subject.subscribe({next:n,error:l,complete:c})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Qv),ce(fc))},e.normalizeQueryParams=hc,e.joinWithSlash=dc,e.stripTrailingSlash=gD,e.\u0275prov=We({factory:KG,token:e,providedIn:"root"}),e}();function KG(){return new Jv(ce(Qv),ce(fc))}function yu(e){return e.replace(/\/index.html$/,"")}var iy=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),t6=function(e){return function(e){var a=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),t=Mv(a);if(t)return t;var n=a.split("-")[0];if(t=Mv(n))return t;if("en"===n)return Z4;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Tr.PluralCase]},vy=function e(){F(this,e)},IF=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this)).locale=l,c}return W(n,[{key:"getPluralCategory",value:function(c,h){switch(t6(h||this.locale)(c)){case iy.Zero:return"zero";case iy.One:return"one";case iy.Two:return"two";case iy.Few:return"few";case iy.Many:return"many";default:return"other"}}}]),n}(vy);return e.\u0275fac=function(t){return new(t||e)(ce(vu))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function RF(e,a){a=encodeURIComponent(a);var n,t=tn(e.split(";"));try{for(t.s();!(n=t.n()).done;){var l=n.value,c=l.indexOf("="),_=cr(-1==c?[l,""]:[l.slice(0,c),l.slice(c+1)],2),k=_[1];if(_[0].trim()===a)return decodeURIComponent(k)}}catch(D){t.e(D)}finally{t.f()}return null}var Ts=function(){var e=function(){function a(t,n,l,c){F(this,a),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=l,this._renderer=c,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return W(a,[{key:"klass",set:function(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(fv(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){var l=this._keyValueDiffer.diff(this._rawClass);l&&this._applyKeyValueChanges(l)}}},{key:"_applyKeyValueChanges",value:function(n){var l=this;n.forEachAddedItem(function(c){return l._toggleClass(c.key,c.currentValue)}),n.forEachChangedItem(function(c){return l._toggleClass(c.key,c.currentValue)}),n.forEachRemovedItem(function(c){c.previousValue&&l._toggleClass(c.key,!1)})}},{key:"_applyIterableChanges",value:function(n){var l=this;n.forEachAddedItem(function(c){if("string"!=typeof c.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(hn(c.item)));l._toggleClass(c.item,!0)}),n.forEachRemovedItem(function(c){return l._toggleClass(c.item,!1)})}},{key:"_applyClasses",value:function(n){var l=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(c){return l._toggleClass(c,!0)}):Object.keys(n).forEach(function(c){return l._toggleClass(c,!!n[c])}))}},{key:"_removeClasses",value:function(n){var l=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(c){return l._toggleClass(c,!1)}):Object.keys(n).forEach(function(c){return l._toggleClass(c,!1)}))}},{key:"_toggleClass",value:function(n,l){var c=this;(n=n.trim())&&n.split(/\s+/g).forEach(function(h){l?c._renderer.addClass(c._ngEl.nativeElement,h):c._renderer.removeClass(c._ngEl.nativeElement,h)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(ys),N(Eh),N(Ue),N(fl))},e.\u0275dir=ve({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),FF=function(){function e(a,t,n,l){F(this,e),this.$implicit=a,this.ngForOf=t,this.index=n,this.count=l}return W(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),er=function(){var e=function(){function a(t,n,l){F(this,a),this._viewContainer=t,this._template=n,this._differs=l,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return W(a,[{key:"ngForOf",set:function(n){this._ngForOf=n,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"ngForTemplate",set:function(n){n&&(this._template=n)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(c){throw new Error("Cannot find a differ supporting object '".concat(n,"' of type '").concat(function(e){return e.name||typeof e}(n),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var l=this._differ.diff(this._ngForOf);l&&this._applyChanges(l)}}},{key:"_applyChanges",value:function(n){var l=this,c=[];n.forEachOperation(function(D,I,L){if(null==D.previousIndex){var G=l._viewContainer.createEmbeddedView(l._template,new FF(null,l._ngForOf,-1,-1),null===L?void 0:L),Y=new TD(D,G);c.push(Y)}else if(null==L)l._viewContainer.remove(null===I?void 0:I);else if(null!==I){var Q=l._viewContainer.get(I);l._viewContainer.move(Q,L);var ie=new TD(D,Q);c.push(ie)}});for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:RD;if(!n||!(n instanceof Map)&&"object"!=typeof n)return null;this.differ||(this.differ=this.differs.find(n).create());var h=this.differ.diff(n),_=c!==this.compareFn;return h&&(this.keyValues=[],h.forEachItem(function(C){l.keyValues.push(O6(C.key,C.currentValue))})),(h||_)&&(this.keyValues.sort(c),this.compareFn=c),this.keyValues}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Eh,16))},e.\u0275pipe=Gi({name:"keyvalue",type:e,pure:!1}),e}();function RD(e,a){var t=e.key,n=a.key;if(t===n)return 0;if(void 0===t)return 1;if(void 0===n)return-1;if(null===t)return 1;if(null===n)return-1;if("string"==typeof t&&"string"==typeof n)return t1&&void 0!==arguments[1])||arguments[1],h=t.findTestabilityInTree(l,c);if(null==h)throw new Error("Could not find testability for element.");return h},Kn.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Kn.getAllAngularRootElements=function(){return t.getAllRootElements()},Kn.frameworkStabilizers||(Kn.frameworkStabilizers=[]),Kn.frameworkStabilizers.push(function(c){var h=Kn.getAllAngularTestabilities(),_=h.length,C=!1,k=function(I){C=C||I,0==--_&&c(C)};h.forEach(function(D){D.whenStable(k)})})}},{key:"findTestabilityInTree",value:function(t,n,l){if(null==n)return null;var c=t.getTestability(n);return null!=c?c:l?_u().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}],[{key:"init",value:function(){!function(e){_w=e}(new e)}}]),e}(),j6=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"build",value:function(){return new XMLHttpRequest}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),ng=new Ee("EventManagerPlugins"),yy=function(){var e=function(){function a(t,n){var l=this;F(this,a),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(c){return c.manager=l}),this._plugins=t.slice().reverse()}return W(a,[{key:"addEventListener",value:function(n,l,c){return this._findPluginFor(l).addEventListener(n,l,c)}},{key:"addGlobalEventListener",value:function(n,l,c){return this._findPluginFor(l).addGlobalEventListener(n,l,c)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(n){var l=this._eventNameToPlugin.get(n);if(l)return l;for(var c=this._plugins,h=0;h-1&&(h.splice(L,1),k+=I+".")}),k+=C,0!=h.length||0===C.length)return null;var D={};return D.domEventName=_,D.fullKey=k,D}},{key:"getEventFullKey",value:function(c){var h="",_=function(e){var a=e.key;if(null==a){if(null==(a=e.keyIdentifier))return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===e.location&&QF.hasOwnProperty(a)&&(a=QF[a]))}return $F[a]||a}(c);return" "===(_=_.toLowerCase())?_="space":"."===_&&(_="dot"),ZD.forEach(function(C){C!=_&&(0,$D[C])(c)&&(h+=C+".")}),h+=_}},{key:"eventCallback",value:function(c,h,_){return function(C){n.getEventFullKey(C)===c&&_.runGuarded(function(){return h(C)})}}},{key:"_normalizeKey",value:function(c){switch(c){case"esc":return"escape";default:return c}}}]),n}(Jw);return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),ed=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return ce(Ty)},token:e,providedIn:"root"}),e}(),Ty=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this))._doc=l,c}return W(n,[{key:"sanitize",value:function(c,h){if(null==h)return null;switch(c){case ss.NONE:return h;case ss.HTML:return Ks(h,"HTML")?Wi(h):HO(this._doc,String(h)).toString();case ss.STYLE:return Ks(h,"Style")?Wi(h):h;case ss.SCRIPT:if(Ks(h,"Script"))return Wi(h);throw new Error("unsafe value used in a script context");case ss.URL:return FO(h),Ks(h,"URL")?Wi(h):Sm(String(h));case ss.RESOURCE_URL:if(Ks(h,"ResourceURL"))return Wi(h);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(c," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(c){return function(e){return new cz(e)}(c)}},{key:"bypassSecurityTrustStyle",value:function(c){return function(e){return new Fi(e)}(c)}},{key:"bypassSecurityTrustScript",value:function(c){return function(e){return new oM(e)}(c)}},{key:"bypassSecurityTrustUrl",value:function(c){return function(e){return new fz(e)}(c)}},{key:"bypassSecurityTrustResourceUrl",value:function(c){return function(e){return new LO(e)}(c)}}]),n}(ed);return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:function(){return function(e){return new Ty(e.get(lt))}(ce(uv))},token:e,providedIn:"root"}),e}(),vj=NL(dG,"browser",[{provide:jv,useValue:"browser"},{provide:HT,useValue:function(){B6.makeCurrent(),jF.init()},multi:!0},{provide:lt,useFactory:function(){return e=document,Ed=e,document;var e},deps:[]}]),gj=[[],{provide:qm,useValue:"root"},{provide:$d,useFactory:function(){return new $d},deps:[]},{provide:ng,useClass:ky,multi:!0,deps:[lt,ft,jv]},{provide:ng,useClass:sj,multi:!0,deps:[lt]},[],{provide:qh,useClass:qh,deps:[yy,by,Yf]},{provide:Ff,useExisting:qh},{provide:jD,useExisting:by},{provide:by,useClass:by,deps:[lt]},{provide:qT,useClass:qT,deps:[ft]},{provide:yy,useClass:yy,deps:[ng,ft]},{provide:zD,useClass:j6,deps:[]},[]],QD=function(){var e=function(){function a(t){if(F(this,a),t)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.")}return W(a,null,[{key:"withServerTransition",value:function(n){return{ngModule:a,providers:[{provide:Yf,useValue:n.appId},{provide:GF,useExisting:Yf},G6]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(e,12))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:gj,imports:[Wa,WL]}),e}();function ut(){for(var e=arguments.length,a=new Array(e),t=0;t0){var c=n.slice(0,l),h=c.toLowerCase(),_=n.slice(l+1).trim();t.maybeSetNormalizedName(c,h),t.headers.has(h)?t.headers.get(h).push(_):t.headers.set(h,[_])}})}:function(){t.headers=new Map,Object.keys(a).forEach(function(n){var l=a[n],c=n.toLowerCase();"string"==typeof l&&(l=[l]),l.length>0&&(t.headers.set(c,l),t.maybeSetNormalizedName(n,c))})}:this.headers=new Map}return W(e,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,n){return this.clone({name:t,value:n,op:"a"})}},{key:"set",value:function(t,n){return this.clone({name:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({name:t,value:n,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(n){return t.applyUpdate(n)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var n=this;t.init(),Array.from(t.headers.keys()).forEach(function(l){n.headers.set(l,t.headers.get(l)),n.normalizedNames.set(l,t.normalizedNames.get(l))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(t){var n=t.name.toLowerCase();switch(t.op){case"a":case"s":var l=t.value;if("string"==typeof l&&(l=[l]),0===l.length)return;this.maybeSetNormalizedName(t.name,n);var c=("a"===t.op?this.headers.get(n):void 0)||[];c.push.apply(c,At(l)),this.headers.set(n,c);break;case"d":var h=t.value;if(h){var _=this.headers.get(n);if(!_)return;0===(_=_.filter(function(C){return-1===h.indexOf(C)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,_)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(t){var n=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(l){return t(n.normalizedNames.get(l),n.headers.get(l))})}}]),e}(),kj=function(){function e(){F(this,e)}return W(e,[{key:"encodeKey",value:function(t){return sN(t)}},{key:"encodeValue",value:function(t){return sN(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),e}();function Mj(e,a){var t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(l){var c=l.indexOf("="),_=cr(-1==c?[a.decodeKey(l),""]:[a.decodeKey(l.slice(0,c)),a.decodeValue(l.slice(c+1))],2),C=_[0],k=_[1],D=t.get(C)||[];D.push(k),t.set(C,D)}),t}var ig=/%(\d[a-f0-9])/gi,xj={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function sN(e){return encodeURIComponent(e).replace(ig,function(a,t){var n;return null!==(n=xj[t])&&void 0!==n?n:a})}function lN(e){return"".concat(e)}var ag=function(){function e(){var a=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(F(this,e),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new kj,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Mj(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(n){var l=t.fromObject[n];a.map.set(n,Array.isArray(l)?l:[l])})):this.map=null}return W(e,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var n=this.map.get(t);return n?n[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,n){return this.clone({param:t,value:n,op:"a"})}},{key:"appendAll",value:function(t){var n=[];return Object.keys(t).forEach(function(l){var c=t[l];Array.isArray(c)?c.forEach(function(h){n.push({param:l,value:h,op:"a"})}):n.push({param:l,value:c,op:"a"})}),this.clone(n)}},{key:"set",value:function(t,n){return this.clone({param:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({param:t,value:n,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(n){var l=t.encoder.encodeKey(n);return t.map.get(n).map(function(c){return l+"="+t.encoder.encodeValue(c)}).join("&")}).filter(function(n){return""!==n}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(n){return t.map.set(n,t.cloneFrom.map.get(n))}),this.updates.forEach(function(n){switch(n.op){case"a":case"s":var l=("a"===n.op?t.map.get(n.param):void 0)||[];l.push(lN(n.value)),t.map.set(n.param,l);break;case"d":if(void 0===n.value){t.map.delete(n.param);break}var c=t.map.get(n.param)||[],h=c.indexOf(lN(n.value));-1!==h&&c.splice(h,1),c.length>0?t.map.set(n.param,c):t.map.delete(n.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),rA=function(){function e(){F(this,e),this.map=new Map}return W(e,[{key:"set",value:function(t,n){return this.map.set(t,n),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function Dj(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function a1(e){return"undefined"!=typeof Blob&&e instanceof Blob}function cN(e){return"undefined"!=typeof FormData&&e instanceof FormData}var Py=function(){function e(a,t,n,l){var c;if(F(this,e),this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=a.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||l?(this.body=void 0!==n?n:null,c=l):c=n,c&&(this.reportProgress=!!c.reportProgress,this.withCredentials=!!c.withCredentials,c.responseType&&(this.responseType=c.responseType),c.headers&&(this.headers=c.headers),c.context&&(this.context=c.context),c.params&&(this.params=c.params)),this.headers||(this.headers=new Zh),this.context||(this.context=new rA),this.params){var h=this.params.toString();if(0===h.length)this.urlWithParams=t;else{var _=t.indexOf("?");this.urlWithParams=t+(-1===_?"?":_0&&void 0!==arguments[0]?arguments[0]:{},l=t.method||this.method,c=t.url||this.url,h=t.responseType||this.responseType,_=void 0!==t.body?t.body:this.body,C=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,k=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,D=t.headers||this.headers,I=t.params||this.params,L=null!==(n=t.context)&&void 0!==n?n:this.context;return void 0!==t.setHeaders&&(D=Object.keys(t.setHeaders).reduce(function(G,Y){return G.set(Y,t.setHeaders[Y])},D)),t.setParams&&(I=Object.keys(t.setParams).reduce(function(G,Y){return G.set(Y,t.setParams[Y])},I)),new e(l,c,_,{params:I,headers:D,context:L,reportProgress:k,responseType:h,withCredentials:C})}}]),e}(),og=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),o1=function e(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";F(this,e),this.headers=a.headers||new Zh,this.status=void 0!==a.status?a.status:t,this.statusText=a.statusText||n,this.url=a.url||null,this.ok=this.status>=200&&this.status<300},Ej=function(e){ae(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return F(this,t),(n=a.call(this,l)).type=og.ResponseHeader,n}return W(t,[{key:"clone",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({headers:l.headers||this.headers,status:void 0!==l.status?l.status:this.status,statusText:l.statusText||this.statusText,url:l.url||this.url||void 0})}}]),t}(o1),s1=function(e){ae(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return F(this,t),(n=a.call(this,l)).type=og.Response,n.body=void 0!==l.body?l.body:null,n}return W(t,[{key:"clone",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==l.body?l.body:this.body,headers:l.headers||this.headers,status:void 0!==l.status?l.status:this.status,statusText:l.statusText||this.statusText,url:l.url||this.url||void 0})}}]),t}(o1),fN=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this,n,0,"Unknown Error")).name="HttpErrorResponse",l.ok=!1,l.message=l.status>=200&&l.status<300?"Http failure during parsing for ".concat(n.url||"(unknown url)"):"Http failure response for ".concat(n.url||"(unknown url)",": ").concat(n.status," ").concat(n.statusText),l.error=n.error||null,l}return t}(o1);function Oy(e,a){return{body:a,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var dN=function(){var e=function(){function a(t){F(this,a),this.handler=t}return W(a,[{key:"request",value:function(n,l){var _,c=this,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n instanceof Py)_=n;else{var C=void 0;C=h.headers instanceof Zh?h.headers:new Zh(h.headers);var k=void 0;h.params&&(k=h.params instanceof ag?h.params:new ag({fromObject:h.params})),_=new Py(n,l,void 0!==h.body?h.body:null,{headers:C,context:h.context,params:k,reportProgress:h.reportProgress,responseType:h.responseType||"json",withCredentials:h.withCredentials})}var D=ut(_).pipe(Xh(function(L){return c.handler.handle(L)}));if(n instanceof Py||"events"===h.observe)return D;var I=D.pipe(vr(function(L){return L instanceof s1}));switch(h.observe||"body"){case"body":switch(_.responseType){case"arraybuffer":return I.pipe(He(function(L){if(null!==L.body&&!(L.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return L.body}));case"blob":return I.pipe(He(function(L){if(null!==L.body&&!(L.body instanceof Blob))throw new Error("Response is not a Blob.");return L.body}));case"text":return I.pipe(He(function(L){if(null!==L.body&&"string"!=typeof L.body)throw new Error("Response is not a string.");return L.body}));case"json":default:return I.pipe(He(function(L){return L.body}))}case"response":return I;default:throw new Error("Unreachable: unhandled observe type ".concat(h.observe,"}"))}}},{key:"delete",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",n,l)}},{key:"get",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",n,l)}},{key:"head",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",n,l)}},{key:"jsonp",value:function(n,l){return this.request("JSONP",n,{params:(new ag).append(l,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",n,l)}},{key:"patch",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",n,Oy(c,l))}},{key:"post",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",n,Oy(c,l))}},{key:"put",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",n,Oy(c,l))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(nA))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),hN=function(){function e(a,t){F(this,e),this.next=a,this.interceptor=t}return W(e,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),e}(),iA=new Ee("HTTP_INTERCEPTORS"),pN=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"intercept",value:function(n,l){return l.handle(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),CN=/^\)\]\}',?\n/,l1=function(){var e=function(){function a(t){F(this,a),this.xhrFactory=t}return W(a,[{key:"handle",value:function(n){var l=this;if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new gn(function(c){var h=l.xhrFactory.build();if(h.open(n.method,n.urlWithParams),n.withCredentials&&(h.withCredentials=!0),n.headers.forEach(function(fe,se){return h.setRequestHeader(fe,se.join(","))}),n.headers.has("Accept")||h.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){var _=n.detectContentTypeHeader();null!==_&&h.setRequestHeader("Content-Type",_)}if(n.responseType){var C=n.responseType.toLowerCase();h.responseType="json"!==C?C:"text"}var k=n.serializeBody(),D=null,I=function(){if(null!==D)return D;var se=1223===h.status?204:h.status,be=h.statusText||"OK",Ce=new Zh(h.getAllResponseHeaders()),je=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(h)||n.url;return D=new Ej({headers:Ce,status:se,statusText:be,url:je})},L=function(){var se=I(),be=se.headers,Ce=se.status,je=se.statusText,$e=se.url,kt=null;204!==Ce&&(kt=void 0===h.response?h.responseText:h.response),0===Ce&&(Ce=kt?200:0);var Dn=Ce>=200&&Ce<300;if("json"===n.responseType&&"string"==typeof kt){var Zn=kt;kt=kt.replace(CN,"");try{kt=""!==kt?JSON.parse(kt):null}catch(Hr){kt=Zn,Dn&&(Dn=!1,kt={error:Hr,text:kt})}}Dn?(c.next(new s1({body:kt,headers:be,status:Ce,statusText:je,url:$e||void 0})),c.complete()):c.error(new fN({error:kt,headers:be,status:Ce,statusText:je,url:$e||void 0}))},G=function(se){var be=I(),je=new fN({error:se,status:h.status||0,statusText:h.statusText||"Unknown Error",url:be.url||void 0});c.error(je)},Y=!1,Q=function(se){Y||(c.next(I()),Y=!0);var be={type:og.DownloadProgress,loaded:se.loaded};se.lengthComputable&&(be.total=se.total),"text"===n.responseType&&!!h.responseText&&(be.partialText=h.responseText),c.next(be)},ie=function(se){var be={type:og.UploadProgress,loaded:se.loaded};se.lengthComputable&&(be.total=se.total),c.next(be)};return h.addEventListener("load",L),h.addEventListener("error",G),h.addEventListener("timeout",G),h.addEventListener("abort",G),n.reportProgress&&(h.addEventListener("progress",Q),null!==k&&h.upload&&h.upload.addEventListener("progress",ie)),h.send(k),c.next({type:og.Sent}),function(){h.removeEventListener("error",G),h.removeEventListener("abort",G),h.removeEventListener("load",L),h.removeEventListener("timeout",G),n.reportProgress&&(h.removeEventListener("progress",Q),null!==k&&h.upload&&h.upload.removeEventListener("progress",ie)),h.readyState!==h.DONE&&h.abort()}})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(zD))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),u1=new Ee("XSRF_COOKIE_NAME"),aA=new Ee("XSRF_HEADER_NAME"),SN=function e(){F(this,e)},sg=function(){var e=function(){function a(t,n,l){F(this,a),this.doc=t,this.platform=n,this.cookieName=l,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return W(a,[{key:"getToken",value:function(){if("server"===this.platform)return null;var n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=RF(n,this.cookieName),this.lastCookieString=n),this.lastToken}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(lt),ce(jv),ce(u1))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),oA=function(){var e=function(){function a(t,n){F(this,a),this.tokenService=t,this.headerName=n}return W(a,[{key:"intercept",value:function(n,l){var c=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||c.startsWith("http://")||c.startsWith("https://"))return l.handle(n);var h=this.tokenService.getToken();return null!==h&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,h)})),l.handle(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(SN),ce(aA))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Kh=function(){var e=function(){function a(t,n){F(this,a),this.backend=t,this.injector=n,this.chain=null}return W(a,[{key:"handle",value:function(n){if(null===this.chain){var l=this.injector.get(iA,[]);this.chain=l.reduceRight(function(c,h){return new hN(c,h)},this.backend)}return this.chain.handle(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(i1),ce(kn))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Ij=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"disable",value:function(){return{ngModule:a,providers:[{provide:oA,useClass:pN}]}}},{key:"withOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:a,providers:[n.cookieName?{provide:u1,useValue:n.cookieName}:[],n.headerName?{provide:aA,useValue:n.headerName}:[]]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[oA,{provide:iA,useExisting:oA,multi:!0},{provide:SN,useClass:sg},{provide:u1,useValue:"XSRF-TOKEN"},{provide:aA,useValue:"X-XSRF-TOKEN"}]}),e}(),kN=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[dN,{provide:nA,useClass:Kh},l1,{provide:i1,useExisting:l1}],imports:[[Ij.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),Ma=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this))._value=n,l}return W(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(l){var c=Ie(Oe(t.prototype),"_subscribe",this).call(this,l);return c&&!c.closed&&l.next(this._value),c}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Hu;return this._value}},{key:"next",value:function(l){Ie(Oe(t.prototype),"next",this).call(this,this._value=l)}}]),t}(qe),Rj=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"notifyNext",value:function(l,c,h,_,C){this.destination.next(c)}},{key:"notifyError",value:function(l,c){this.destination.error(l)}},{key:"notifyComplete",value:function(l){this.destination.complete()}}]),t}(Ze),Lj=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this)).parent=n,h.outerValue=l,h.outerIndex=c,h.index=0,h}return W(t,[{key:"_next",value:function(l){this.parent.notifyNext(this.outerValue,l,this.outerIndex,this.index++,this)}},{key:"_error",value:function(l){this.parent.notifyError(l,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),t}(Ze);function Fj(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Lj(e,t,n);if(!l.closed)return a instanceof gn?a.subscribe(l):Yn(a)(l)}var MN={};function Ry(){for(var e=arguments.length,a=new Array(e),t=0;t=2&&(t=!0),function(l){return l.lift(new Wj(e,a,t))}}var Wj=function(){function e(a,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];F(this,e),this.accumulator=a,this.seed=t,this.hasSeed=n}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new DN(t,this.accumulator,this.seed,this.hasSeed))}}]),e}(),DN=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n)).accumulator=l,_._seed=c,_.hasSeed=h,_.index=0,_}return W(t,[{key:"seed",get:function(){return this._seed},set:function(l){this.hasSeed=!0,this._seed=l}},{key:"_next",value:function(l){if(this.hasSeed)return this._tryNext(l);this.seed=l,this.destination.next(l)}},{key:"_tryNext",value:function(l){var h,c=this.index++;try{h=this.accumulator(this.seed,l,c)}catch(_){this.destination.error(_)}this.seed=h,this.destination.next(h)}}]),t}(Ze);function _o(e){return function(t){var n=new AN(e),l=t.lift(n);return n.caught=l}}var AN=function(){function e(a){F(this,e),this.selector=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new lA(t,this.selector,this.caught))}}]),e}(),lA=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).selector=l,h.caught=c,h}return W(t,[{key:"error",value:function(l){if(!this.isStopped){var c;try{c=this.selector(l,this.caught)}catch(C){return void Ie(Oe(t.prototype),"error",this).call(this,C)}this._unsubscribeAndRecycle();var h=new Gc(this);this.add(h);var _=Ii(c,h);_!==h&&this.add(_)}}}]),t}(at);function uA(e){return function(t){return 0===e?h1():t.lift(new Yj(e))}}var Yj=function(){function e(a){if(F(this,e),this.total=a,this.total<0)throw new xN}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new qj(t,this.total))}}]),e}(),qj=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).total=l,c.ring=new Array,c.count=0,c}return W(t,[{key:"_next",value:function(l){var c=this.ring,h=this.total,_=this.count++;c.length0)for(var h=this.count>=this.total?this.total:this.count,_=this.ring,C=0;C0&&void 0!==arguments[0]?arguments[0]:Kj;return function(a){return a.lift(new Xj(e))}}var Xj=function(){function e(a){F(this,e),this.errorFactory=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new Zj(t,this.errorFactory))}}]),e}(),Zj=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).errorFactory=l,c.hasValue=!1,c}return W(t,[{key:"_next",value:function(l){this.hasValue=!0,this.destination.next(l)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var l;try{l=this.errorFactory()}catch(c){l=c}this.destination.error(l)}}]),t}(Ze);function Kj(){return new f1}function PN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(a){return a.lift(new $j(e))}}var $j=function(){function e(a){F(this,e),this.defaultValue=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new Qj(t,this.defaultValue))}}]),e}(),Qj=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).defaultValue=l,c.isEmpty=!0,c}return W(t,[{key:"_next",value:function(l){this.isEmpty=!1,this.destination.next(l)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),t}(Ze);function lg(e,a){var t=arguments.length>=2;return function(n){return n.pipe(e?vr(function(l,c){return e(l,c,n)}):Ob,or(1),t?PN(a):EN(function(){return new f1}))}}function td(){}function Ya(e,a,t){return function(l){return l.lift(new e7(e,a,t))}}var e7=function(){function e(a,t,n){F(this,e),this.nextOrObserver=a,this.error=t,this.complete=n}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new cA(t,this.nextOrObserver,this.error,this.complete))}}]),e}(),cA=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n))._tapNext=td,_._tapError=td,_._tapComplete=td,_._tapError=c||td,_._tapComplete=h||td,nt(l)?(_._context=It(_),_._tapNext=l):l&&(_._context=l,_._tapNext=l.next||td,_._tapError=l.error||td,_._tapComplete=l.complete||td),_}return W(t,[{key:"_next",value:function(l){try{this._tapNext.call(this._context,l)}catch(c){return void this.destination.error(c)}this.destination.next(l)}},{key:"_error",value:function(l){try{this._tapError.call(this._context,l)}catch(c){return void this.destination.error(c)}this.destination.error(l)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(l){return void this.destination.error(l)}return this.destination.complete()}}]),t}(Ze),n7=function(){function e(a){F(this,e),this.callback=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new r7(t,this.callback))}}]),e}(),r7=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).add(new Be(l)),c}return t}(Ze),_c=function e(a,t){F(this,e),this.id=a,this.url=t},fA=function(e){ae(t,e);var a=ue(t);function t(n,l){var c,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",_=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return F(this,t),(c=a.call(this,n,l)).navigationTrigger=h,c.restoredState=_,c}return W(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(_c),kl=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n,l)).urlAfterRedirects=c,h}return W(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(_c),p1=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n,l)).reason=c,h}return W(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(_c),ug=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n,l)).error=c,h}return W(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(_c),dA=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return W(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(_c),ON=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return W(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(_c),IN=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h,_){var C;return F(this,t),(C=a.call(this,n,l)).urlAfterRedirects=c,C.state=h,C.shouldActivate=_,C}return W(t,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),t}(_c),RN=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return W(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(_c),i7=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return W(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(_c),hA=function(){function e(a){F(this,e),this.route=a}return W(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),LN=function(){function e(a){F(this,e),this.route=a}return W(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),a7=function(){function e(a){F(this,e),this.snapshot=a}return W(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),v1=function(){function e(a){F(this,e),this.snapshot=a}return W(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),o7=function(){function e(a){F(this,e),this.snapshot=a}return W(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),s7=function(){function e(a){F(this,e),this.snapshot=a}return W(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),FN=function(){function e(a,t,n){F(this,e),this.routerEvent=a,this.position=t,this.anchor=n}return W(e,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),e}(),Cn="primary",l7=function(){function e(a){F(this,e),this.params=a||{}}return W(e,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n[0]:n}return null}},{key:"getAll",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n:[n]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function cg(e){return new l7(e)}var pA="ngNavigationCancelingError";function g1(e){var a=Error("NavigationCancelingError: "+e);return a[pA]=!0,a}function Fy(e,a,t){var n=t.path.split("/");if(n.length>e.length||"full"===t.pathMatch&&(a.hasChildren()||n.length0?e[e.length-1]:null}function Ji(e,a){for(var t in e)e.hasOwnProperty(t)&&a(e[t],t)}function Su(e){return gv(e)?e:vv(e)?yt(Promise.resolve(e)):ut(e)}var c7={exact:function gA(e,a,t){if(!rd(e.segments,a.segments)||!dg(e.segments,a.segments,t)||e.numberOfChildren!==a.numberOfChildren)return!1;for(var n in a.children)if(!e.children[n]||!gA(e.children[n],a.children[n],t))return!1;return!0},subset:m1},zN={exact:function(e,a){return wu(e,a)},subset:function(e,a){return Object.keys(a).length<=Object.keys(e).length&&Object.keys(a).every(function(t){return NN(e[t],a[t])})},ignored:function(){return!0}};function vA(e,a,t){return c7[t.paths](e.root,a.root,t.matrixParams)&&zN[t.queryParams](e.queryParams,a.queryParams)&&!("exact"===t.fragment&&e.fragment!==a.fragment)}function m1(e,a,t){return _1(e,a,a.segments,t)}function _1(e,a,t,n){if(e.segments.length>t.length){var l=e.segments.slice(0,t.length);return!(!rd(l,t)||a.hasChildren()||!dg(l,t,n))}if(e.segments.length===t.length){if(!rd(e.segments,t)||!dg(e.segments,t,n))return!1;for(var c in a.children)if(!e.children[c]||!m1(e.children[c],a.children[c],n))return!1;return!0}var h=t.slice(0,e.segments.length),_=t.slice(e.segments.length);return!!(rd(e.segments,h)&&dg(e.segments,h,n)&&e.children[Cn])&&_1(e.children[Cn],a,_,n)}function dg(e,a,t){return a.every(function(n,l){return zN[t](e[l].parameters,n.parameters)})}var nd=function(){function e(a,t,n){F(this,e),this.root=a,this.queryParams=t,this.fragment=n}return W(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=cg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return yc.serialize(this)}}]),e}(),wn=function(){function e(a,t){var n=this;F(this,e),this.segments=a,this.children=t,this.parent=null,Ji(t,function(l,c){return l.parent=n})}return W(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return hg(this)}}]),e}(),Ml=function(){function e(a,t){F(this,e),this.path=a,this.parameters=t}return W(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=cg(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return S1(this)}}]),e}();function rd(e,a){return e.length===a.length&&e.every(function(t,n){return t.path===a[n].path})}var y1=function e(){F(this,e)},b1=function(){function e(){F(this,e)}return W(e,[{key:"parse",value:function(t){var n=new g7(t);return new nd(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}},{key:"serialize",value:function(t){var n="/".concat(pg(t.root,!0)),l=function(e){var a=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(l){return"".concat(vg(t),"=").concat(vg(l))}).join("&"):"".concat(vg(t),"=").concat(vg(n))}).filter(function(t){return!!t});return a.length?"?".concat(a.join("&")):""}(t.queryParams),c="string"==typeof t.fragment?"#".concat(function(e){return encodeURI(e)}(t.fragment)):"";return"".concat(n).concat(l).concat(c)}}]),e}(),yc=new b1;function hg(e){return e.segments.map(function(a){return S1(a)}).join("/")}function pg(e,a){if(!e.hasChildren())return hg(e);if(a){var t=e.children[Cn]?pg(e.children[Cn],!1):"",n=[];return Ji(e.children,function(c,h){h!==Cn&&n.push("".concat(h,":").concat(pg(c,!1)))}),n.length>0?"".concat(t,"(").concat(n.join("//"),")"):t}var l=function(e,a){var t=[];return Ji(e.children,function(n,l){l===Cn&&(t=t.concat(a(n,l)))}),Ji(e.children,function(n,l){l!==Cn&&(t=t.concat(a(n,l)))}),t}(e,function(c,h){return h===Cn?[pg(e.children[Cn],!1)]:["".concat(h,":").concat(pg(c,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[Cn]?"".concat(hg(e),"/").concat(l[0]):"".concat(hg(e),"/(").concat(l.join("//"),")")}function WN(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function vg(e){return WN(e).replace(/%3B/gi,";")}function C1(e){return WN(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function w1(e){return decodeURIComponent(e)}function mA(e){return w1(e.replace(/\+/g,"%20"))}function S1(e){return"".concat(C1(e.path)).concat(function(e){return Object.keys(e).map(function(a){return";".concat(C1(a),"=").concat(C1(e[a]))}).join("")}(e.parameters))}var _A=/^[^\/()?;=#]+/;function gg(e){var a=e.match(_A);return a?a[0]:""}var YN=/^[^=?&#]+/,v7=/^[^?&#]+/,g7=function(){function e(a){F(this,e),this.url=a,this.remaining=a}return W(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new wn([],{}):new wn([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));var l={};return this.peekStartsWith("(")&&(l=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(l[Cn]=new wn(t,n)),l}},{key:"parseSegment",value:function(){var t=gg(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Ml(w1(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var n=gg(this.remaining);if(n){this.capture(n);var l="";if(this.consumeOptional("=")){var c=gg(this.remaining);c&&this.capture(l=c)}t[w1(n)]=w1(l)}}},{key:"parseQueryParam",value:function(t){var n=function(e){var a=e.match(YN);return a?a[0]:""}(this.remaining);if(n){this.capture(n);var l="";if(this.consumeOptional("=")){var c=function(e){var a=e.match(v7);return a?a[0]:""}(this.remaining);c&&this.capture(l=c)}var h=mA(n),_=mA(l);if(t.hasOwnProperty(h)){var C=t[h];Array.isArray(C)||(t[h]=C=[C]),C.push(_)}else t[h]=_}}},{key:"parseParens",value:function(t){var n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var l=gg(this.remaining),c=this.remaining[l.length];if("/"!==c&&")"!==c&&";"!==c)throw new Error("Cannot parse url '".concat(this.url,"'"));var h=void 0;l.indexOf(":")>-1?(h=l.substr(0,l.indexOf(":")),this.capture(h),this.capture(":")):t&&(h=Cn);var _=this.parseChildren();n[h]=1===Object.keys(_).length?_[Cn]:new wn([],_),this.consumeOptional("//")}return n}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),e}(),Ny=function(){function e(a){F(this,e),this._root=a}return W(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}},{key:"children",value:function(t){var n=k1(t,this._root);return n?n.children.map(function(l){return l.value}):[]}},{key:"firstChild",value:function(t){var n=k1(t,this._root);return n&&n.children.length>0?n.children[0].value:null}},{key:"siblings",value:function(t){var n=Vy(t,this._root);return n.length<2?[]:n[n.length-2].children.map(function(c){return c.value}).filter(function(c){return c!==t})}},{key:"pathFromRoot",value:function(t){return Vy(t,this._root).map(function(n){return n.value})}}]),e}();function k1(e,a){if(e===a.value)return a;var n,t=tn(a.children);try{for(t.s();!(n=t.n()).done;){var c=k1(e,n.value);if(c)return c}}catch(h){t.e(h)}finally{t.f()}return null}function Vy(e,a){if(e===a.value)return[a];var n,t=tn(a.children);try{for(t.s();!(n=t.n()).done;){var c=Vy(e,n.value);if(c.length)return c.unshift(a),c}}catch(h){t.e(h)}finally{t.f()}return[]}var ku=function(){function e(a,t){F(this,e),this.value=a,this.children=t}return W(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function mg(e){var a={};return e&&e.children.forEach(function(t){return a[t.value.outlet]=t}),a}var yA=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).snapshot=l,bA(It(c),n),c}return W(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(Ny);function M1(e,a){var t=function(e,a){var h=new x1([],{},{},"",{},Cn,a,null,e.root,-1,{});return new KN("",new ku(h,[]))}(e,a),n=new Ma([new Ml("",{})]),l=new Ma({}),c=new Ma({}),h=new Ma({}),_=new Ma(""),C=new kr(n,l,h,_,c,Cn,a,t.root);return C.snapshot=t.root,new yA(new ku(C,[]),t)}var kr=function(){function e(a,t,n,l,c,h,_,C){F(this,e),this.url=a,this.params=t,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=h,this.component=_,this._futureSnapshot=C}return W(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(He(function(t){return cg(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(He(function(t){return cg(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function ZN(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=e.pathFromRoot,n=0;if("always"!==a)for(n=t.length-1;n>=1;){var l=t[n],c=t[n-1];if(l.routeConfig&&""===l.routeConfig.path)n--;else{if(c.component)break;n--}}return _7(t.slice(n))}function _7(e){return e.reduce(function(a,t){return{params:Object.assign(Object.assign({},a.params),t.params),data:Object.assign(Object.assign({},a.data),t.data),resolve:Object.assign(Object.assign({},a.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var x1=function(){function e(a,t,n,l,c,h,_,C,k,D,I){F(this,e),this.url=a,this.params=t,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=h,this.component=_,this.routeConfig=C,this._urlSegment=k,this._lastPathIndex=D,this._resolve=I}return W(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=cg(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=cg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(l){return l.toString()}).join("/"),n=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(n,"')")}}]),e}(),KN=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,l)).url=n,bA(It(c),l),c}return W(t,[{key:"toString",value:function(){return $N(this._root)}}]),t}(Ny);function bA(e,a){a.value._routerState=e,a.children.forEach(function(t){return bA(e,t)})}function $N(e){var a=e.children.length>0?" { ".concat(e.children.map($N).join(", ")," } "):"";return"".concat(e.value).concat(a)}function CA(e){if(e.snapshot){var a=e.snapshot,t=e._futureSnapshot;e.snapshot=t,wu(a.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),a.fragment!==t.fragment&&e.fragment.next(t.fragment),wu(a.params,t.params)||e.params.next(t.params),function(e,a){if(e.length!==a.length)return!1;for(var t=0;tl;){if(c-=l,!(n=n.parent))throw new Error("Invalid number of '../'");l=n.segments.length}return new SA(n,!1,l-c)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+c,e.numberOfDoubleDots)}(c,a,e),_=h.processChildren?E1(h.segmentGroup,h.index,c.commands):n3(h.segmentGroup,h.index,c.commands);return wA(h.segmentGroup,_,a,n,l)}function A1(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function By(e){return"object"==typeof e&&null!=e&&e.outlets}function wA(e,a,t,n,l){var c={};return n&&Ji(n,function(h,_){c[_]=Array.isArray(h)?h.map(function(C){return"".concat(C)}):"".concat(h)}),new nd(t.root===e?a:JN(t.root,e,a),c,l)}function JN(e,a,t){var n={};return Ji(e.children,function(l,c){n[c]=l===a?t:JN(l,a,t)}),new wn(e.segments,n)}var e3=function(){function e(a,t,n){if(F(this,e),this.isAbsolute=a,this.numberOfDoubleDots=t,this.commands=n,a&&n.length>0&&A1(n[0]))throw new Error("Root segment cannot have matrix parameters");var l=n.find(By);if(l&&l!==BN(n))throw new Error("{outlets:{}} has to be the last command")}return W(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),SA=function e(a,t,n){F(this,e),this.segmentGroup=a,this.processChildren=t,this.index=n};function n3(e,a,t){if(e||(e=new wn([],{})),0===e.segments.length&&e.hasChildren())return E1(e,a,t);var n=function(e,a,t){for(var n=0,l=a,c={match:!1,pathIndex:0,commandIndex:0};l=t.length)return c;var h=e.segments[l],_=t[n];if(By(_))break;var C="".concat(_),k=n0&&void 0===C)break;if(C&&k&&"object"==typeof k&&void 0===k.outlets){if(!i3(C,k,h))return c;n+=2}else{if(!i3(C,{},h))return c;n++}l++}return{match:!0,pathIndex:l,commandIndex:n}}(e,a,t),l=t.slice(n.commandIndex);if(n.match&&n.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",t=0;t0)?Object.assign({},yg):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var c=(a.matcher||Fy)(t,e,a);if(!c)return Object.assign({},yg);var h={};Ji(c.posParams,function(C,k){h[k]=C.path});var _=c.consumed.length>0?Object.assign(Object.assign({},h),c.consumed[c.consumed.length-1].parameters):h;return{matched:!0,consumedSegments:c.consumed,lastChild:c.consumed.length,parameters:_,positionalParamSegments:null!==(n=c.posParams)&&void 0!==n?n:{}}}function O1(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&R7(e,t,n)){var c=new wn(a,I7(e,a,n,new wn(t,e.children)));return c._sourceSegment=e,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:[]}}if(0===t.length&&L7(e,t,n)){var h=new wn(e.segments,O7(e,a,t,n,e.children,l));return h._sourceSegment=e,h._segmentIndexShift=a.length,{segmentGroup:h,slicedSegments:t}}var _=new wn(e.segments,e.children);return _._sourceSegment=e,_._segmentIndexShift=a.length,{segmentGroup:_,slicedSegments:t}}function O7(e,a,t,n,l,c){var C,h={},_=tn(n);try{for(_.s();!(C=_.n()).done;){var k=C.value;if(I1(e,t,k)&&!l[As(k)]){var D=new wn([],{});D._sourceSegment=e,D._segmentIndexShift="legacy"===c?e.segments.length:a.length,h[As(k)]=D}}}catch(I){_.e(I)}finally{_.f()}return Object.assign(Object.assign({},l),h)}function I7(e,a,t,n){var l={};l[Cn]=n,n._sourceSegment=e,n._segmentIndexShift=a.length;var h,c=tn(t);try{for(c.s();!(h=c.n()).done;){var _=h.value;if(""===_.path&&As(_)!==Cn){var C=new wn([],{});C._sourceSegment=e,C._segmentIndexShift=a.length,l[As(_)]=C}}}catch(k){c.e(k)}finally{c.f()}return l}function R7(e,a,t){return t.some(function(n){return I1(e,a,n)&&As(n)!==Cn})}function L7(e,a,t){return t.some(function(n){return I1(e,a,n)})}function I1(e,a,t){return(!(e.hasChildren()||a.length>0)||"full"!==t.pathMatch)&&""===t.path}function h3(e,a,t,n){return!!(As(e)===n||n!==Cn&&I1(a,t,e))&&("**"===e.path||P1(a,e,t).matched)}function p3(e,a,t){return 0===a.length&&!e.children[t]}var Uy=function e(a){F(this,e),this.segmentGroup=a||null},v3=function e(a){F(this,e),this.urlTree=a};function bg(e){return new gn(function(a){return a.error(new Uy(e))})}function TA(e){return new gn(function(a){return a.error(new v3(e))})}function DA(e){return new gn(function(a){return a.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var g3=function(){function e(a,t,n,l,c){F(this,e),this.configLoader=t,this.urlSerializer=n,this.urlTree=l,this.config=c,this.allowRedirects=!0,this.ngModule=a.get(rc)}return W(e,[{key:"apply",value:function(){var t=this,n=O1(this.urlTree.root,[],[],this.config).segmentGroup,l=new wn(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,l,Cn).pipe(He(function(_){return t.createUrlTree(R1(_),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(_o(function(_){if(_ instanceof v3)return t.allowRedirects=!1,t.match(_.urlTree);throw _ instanceof Uy?t.noMatchError(_):_}))}},{key:"match",value:function(t){var n=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Cn).pipe(He(function(h){return n.createUrlTree(R1(h),t.queryParams,t.fragment)})).pipe(_o(function(h){throw h instanceof Uy?n.noMatchError(h):h}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,n,l){var c=t.segments.length>0?new wn([],pd({},Cn,t)):t;return new nd(c,n,l)}},{key:"expandSegmentGroup",value:function(t,n,l,c){return 0===l.segments.length&&l.hasChildren()?this.expandChildren(t,n,l).pipe(He(function(h){return new wn([],h)})):this.expandSegment(t,l,n,l.segments,c,!0)}},{key:"expandChildren",value:function(t,n,l){for(var c=this,h=[],_=0,C=Object.keys(l.children);_=2;return function(n){return n.pipe(e?vr(function(l,c){return e(l,c,n)}):Ob,uA(1),t?PN(a):EN(function(){return new f1}))}}())}},{key:"expandSegment",value:function(t,n,l,c,h,_){var C=this;return yt(l).pipe(Xh(function(k){return C.expandSegmentAgainstRoute(t,n,l,k,c,h,_).pipe(_o(function(I){if(I instanceof Uy)return ut(null);throw I}))}),lg(function(k){return!!k}),_o(function(k,D){if(k instanceof f1||"EmptyError"===k.name){if(p3(n,c,h))return ut(new wn([],{}));throw new Uy(n)}throw k}))}},{key:"expandSegmentAgainstRoute",value:function(t,n,l,c,h,_,C){return h3(c,n,h,_)?void 0===c.redirectTo?this.matchSegmentAgainstRoute(t,n,c,h,_):C&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,l,c,h,_):bg(n):bg(n)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,n,l,c,h,_){return"**"===c.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,l,c,_):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,l,c,h,_)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,n,l,c){var h=this,_=this.applyRedirectCommands([],l.redirectTo,{});return l.redirectTo.startsWith("/")?TA(_):this.lineralizeSegments(l,_).pipe(Xr(function(C){var k=new wn(C,{});return h.expandSegment(t,k,n,C,c,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,n,l,c,h,_){var C=this,k=P1(n,c,h),I=k.consumedSegments,L=k.lastChild,G=k.positionalParamSegments;if(!k.matched)return bg(n);var Y=this.applyRedirectCommands(I,c.redirectTo,G);return c.redirectTo.startsWith("/")?TA(Y):this.lineralizeSegments(c,Y).pipe(Xr(function(Q){return C.expandSegment(t,n,l,Q.concat(h.slice(L)),_,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,n,l,c,h){var _=this;if("**"===l.path)return l.loadChildren?(l._loadedConfig?ut(l._loadedConfig):this.configLoader.load(t.injector,l)).pipe(He(function(Q){return l._loadedConfig=Q,new wn(c,{})})):ut(new wn(c,{}));var k=P1(n,l,c),I=k.consumedSegments,L=k.lastChild;if(!k.matched)return bg(n);var G=c.slice(L);return this.getChildConfig(t,l,c).pipe(Xr(function(Q){var ie=Q.module,fe=Q.routes,se=O1(n,I,G,fe),be=se.segmentGroup,Ce=se.slicedSegments,je=new wn(be.segments,be.children);if(0===Ce.length&&je.hasChildren())return _.expandChildren(ie,fe,je).pipe(He(function(Zn){return new wn(I,Zn)}));if(0===fe.length&&0===Ce.length)return ut(new wn(I,{}));var kt=As(l)===h;return _.expandSegment(ie,je,fe,Ce,kt?Cn:h,!0).pipe(He(function(Zn){return new wn(I.concat(Zn.segments),Zn.children)}))}))}},{key:"getChildConfig",value:function(t,n,l){var c=this;return n.children?ut(new _g(n.children,t)):n.loadChildren?void 0!==n._loadedConfig?ut(n._loadedConfig):this.runCanLoadGuards(t.injector,n,l).pipe(Xr(function(h){return h?c.configLoader.load(t.injector,n).pipe(He(function(_){return n._loadedConfig=_,_})):function(e){return new gn(function(a){return a.error(g1("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(n)})):ut(new _g([],t))}},{key:"runCanLoadGuards",value:function(t,n,l){var c=this,h=n.canLoad;return h&&0!==h.length?ut(h.map(function(C){var D,k=t.get(C);if(function(e){return e&&qa(e.canLoad)}(k))D=k.canLoad(n,l);else{if(!qa(k))throw new Error("Invalid CanLoad guard");D=k(n,l)}return Su(D)})).pipe(zy(),Ya(function(C){if(Qh(C)){var k=g1('Redirecting to "'.concat(c.urlSerializer.serialize(C),'"'));throw k.url=C,k}}),He(function(C){return!0===C})):ut(!0)}},{key:"lineralizeSegments",value:function(t,n){for(var l=[],c=n.root;;){if(l=l.concat(c.segments),0===c.numberOfChildren)return ut(l);if(c.numberOfChildren>1||!c.children[Cn])return DA(t.redirectTo);c=c.children[Cn]}}},{key:"applyRedirectCommands",value:function(t,n,l){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),t,l)}},{key:"applyRedirectCreatreUrlTree",value:function(t,n,l,c){var h=this.createSegmentGroup(t,n.root,l,c);return new nd(h,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}},{key:"createQueryParams",value:function(t,n){var l={};return Ji(t,function(c,h){if("string"==typeof c&&c.startsWith(":")){var C=c.substring(1);l[h]=n[C]}else l[h]=c}),l}},{key:"createSegmentGroup",value:function(t,n,l,c){var h=this,_=this.createSegments(t,n.segments,l,c),C={};return Ji(n.children,function(k,D){C[D]=h.createSegmentGroup(t,k,l,c)}),new wn(_,C)}},{key:"createSegments",value:function(t,n,l,c){var h=this;return n.map(function(_){return _.path.startsWith(":")?h.findPosParam(t,_,c):h.findOrReturn(_,l)})}},{key:"findPosParam",value:function(t,n,l){var c=l[n.path.substring(1)];if(!c)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(n.path,"'."));return c}},{key:"findOrReturn",value:function(t,n){var h,l=0,c=tn(n);try{for(c.s();!(h=c.n()).done;){var _=h.value;if(_.path===t.path)return n.splice(l),_;l++}}catch(C){c.e(C)}finally{c.f()}return t}}]),e}();function R1(e){for(var a={},t=0,n=Object.keys(e.children);t0||h.hasChildren())&&(a[l]=h)}return function(e){if(1===e.numberOfChildren&&e.children[Cn]){var a=e.children[Cn];return new wn(e.segments.concat(a.segments),a.children)}return e}(new wn(e.segments,a))}var AA=function e(a){F(this,e),this.path=a,this.route=this.path[this.path.length-1]},L1=function e(a,t){F(this,e),this.component=a,this.route=t};function B7(e,a,t){var n=e._root;return Gy(n,a?a._root:null,t,[n.value])}function F1(e,a,t){var n=function(e){if(!e)return null;for(var a=e.parent;a;a=a.parent){var t=a.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(a);return(n?n.module.injector:t).get(e)}function Gy(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},c=mg(a);return e.children.forEach(function(h){U7(h,c[h.value.outlet],t,n.concat([h.value]),l),delete c[h.value.outlet]}),Ji(c,function(h,_){return jy(h,t.getContext(_),l)}),l}function U7(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},c=e.value,h=a?a.value:null,_=t?t.getContext(e.value.outlet):null;if(h&&c.routeConfig===h.routeConfig){var C=G7(h,c,c.routeConfig.runGuardsAndResolvers);C?l.canActivateChecks.push(new AA(n)):(c.data=h.data,c._resolvedData=h._resolvedData),Gy(e,a,c.component?_?_.children:null:t,n,l),C&&_&&_.outlet&&_.outlet.isActivated&&l.canDeactivateChecks.push(new L1(_.outlet.component,h))}else h&&jy(a,_,l),l.canActivateChecks.push(new AA(n)),Gy(e,null,c.component?_?_.children:null:t,n,l);return l}function G7(e,a,t){if("function"==typeof t)return t(e,a);switch(t){case"pathParamsChange":return!rd(e.url,a.url);case"pathParamsOrQueryParamsChange":return!rd(e.url,a.url)||!wu(e.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!T1(e,a)||!wu(e.queryParams,a.queryParams);case"paramsChange":default:return!T1(e,a)}}function jy(e,a,t){var n=mg(e),l=e.value;Ji(n,function(c,h){jy(c,l.component?a?a.children.getContext(h):null:a,t)}),t.canDeactivateChecks.push(new L1(l.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,l))}var K7=function e(){F(this,e)};function b3(e){return new gn(function(a){return a.error(e)})}var Q7=function(){function e(a,t,n,l,c,h){F(this,e),this.rootComponentType=a,this.config=t,this.urlTree=n,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=h}return W(e,[{key:"recognize",value:function(){var t=O1(this.urlTree.root,[],[],this.config.filter(function(_){return void 0===_.redirectTo}),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,Cn);if(null===n)return null;var l=new x1([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Cn,this.rootComponentType,null,this.urlTree.root,-1,{}),c=new ku(l,n),h=new KN(this.url,c);return this.inheritParamsAndData(h._root),h}},{key:"inheritParamsAndData",value:function(t){var n=this,l=t.value,c=ZN(l,this.paramsInheritanceStrategy);l.params=Object.freeze(c.params),l.data=Object.freeze(c.data),t.children.forEach(function(h){return n.inheritParamsAndData(h)})}},{key:"processSegmentGroup",value:function(t,n,l){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,n):this.processSegment(t,n,n.segments,l)}},{key:"processChildren",value:function(t,n){for(var l=[],c=0,h=Object.keys(n.children);c0?BN(l).parameters:{};h=new x1(l,k,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,M3(t),As(t),t.component,t,S3(n),k3(n)+l.length,EA(t))}else{var D=P1(n,t,l);if(!D.matched)return null;_=D.consumedSegments,C=l.slice(D.lastChild),h=new x1(_,D.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,M3(t),As(t),t.component,t,S3(n),k3(n)+_.length,EA(t))}var I=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(t),L=O1(n,_,C,I.filter(function(se){return void 0===se.redirectTo}),this.relativeLinkResolution),G=L.segmentGroup,Y=L.slicedSegments;if(0===Y.length&&G.hasChildren()){var Q=this.processChildren(I,G);return null===Q?null:[new ku(h,Q)]}if(0===I.length&&0===Y.length)return[new ku(h,[])];var ie=As(t)===c,fe=this.processSegment(I,G,Y,ie?Cn:c);return null===fe?null:[new ku(h,fe)]}}]),e}();function w3(e){var l,a=[],t=new Set,n=tn(e);try{var c=function(){var L=l.value;if(!function(e){var a=e.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}(L))return a.push(L),"continue";var Y,G=a.find(function(Q){return L.value.routeConfig===Q.value.routeConfig});void 0!==G?((Y=G.children).push.apply(Y,At(L.children)),t.add(G)):a.push(L)};for(n.s();!(l=n.n()).done;)c()}catch(I){n.e(I)}finally{n.f()}var C,_=tn(t);try{for(_.s();!(C=_.n()).done;){var k=C.value,D=w3(k.children);a.push(new ku(k.value,D))}}catch(I){_.e(I)}finally{_.f()}return a.filter(function(I){return!t.has(I)})}function S3(e){for(var a=e;a._sourceSegment;)a=a._sourceSegment;return a}function k3(e){for(var a=e,t=a._segmentIndexShift?a._segmentIndexShift:0;a._sourceSegment;)t+=(a=a._sourceSegment)._segmentIndexShift?a._segmentIndexShift:0;return t-1}function M3(e){return e.data||{}}function EA(e){return e.resolve||{}}function PA(e){return xa(function(a){var t=e(a);return t?yt(t).pipe(He(function(){return a})):ut(a)})}var T3=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return t}(function(){function e(){F(this,e)}return W(e,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,n){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,n){return t.routeConfig===n.routeConfig}}]),e}()),OA=new Ee("ROUTES"),D3=function(){function e(a,t,n,l){F(this,e),this.loader=a,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=l}return W(e,[{key:"load",value:function(t,n){var l=this;if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);var h=this.loadModuleFactory(n.loadChildren).pipe(He(function(_){l.onLoadEndListener&&l.onLoadEndListener(n);var C=_.create(t);return new _g(VN(C.injector.get(OA,void 0,yn.Self|yn.Optional)).map(xA),C)}),_o(function(_){throw n._loader$=void 0,_}));return n._loader$=new Oa(h,function(){return new qe}).pipe(Qo()),n._loader$}},{key:"loadModuleFactory",value:function(t){var n=this;return"string"==typeof t?yt(this.loader.load(t)):Su(t()).pipe(Xr(function(l){return l instanceof C2?ut(l):yt(n.compiler.compileModuleAsync(l))}))}}]),e}(),N1=function e(){F(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new Cg,this.attachRef=null},Cg=function(){function e(){F(this,e),this.contexts=new Map}return W(e,[{key:"onChildOutletCreated",value:function(t,n){var l=this.getOrCreateContext(t);l.outlet=n,this.contexts.set(t,l)}},{key:"onChildOutletDestroyed",value:function(t){var n=this.getContext(t);n&&(n.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var n=this.getContext(t);return n||(n=new N1,this.contexts.set(t,n)),n}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),e}(),uW=function(){function e(){F(this,e)}return W(e,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,n){return t}}]),e}();function cW(e){throw e}function fW(e,a,t){return a.parse("/")}function A3(e,a){return ut(null)}var dW={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hW={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ta=function(){var e=function(){function a(t,n,l,c,h,_,C,k){var D=this;F(this,a),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=l,this.location=c,this.config=k,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new qe,this.errorHandler=cW,this.malformedUriErrorHandler=fW,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:A3,afterPreactivation:A3},this.urlHandlingStrategy=new uW,this.routeReuseStrategy=new T3,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=h.get(rc),this.console=h.get(hw);var G=h.get(ft);this.isNgZoneEnabled=G instanceof ft&&ft.isInAngularZone(),this.resetConfig(k),this.currentUrlTree=new nd(new wn([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new D3(_,C,function(Q){return D.triggerEvent(new hA(Q))},function(Q){return D.triggerEvent(new LN(Q))}),this.routerState=M1(this.currentUrlTree,this.rootComponentType),this.transitions=new Ma({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return W(a,[{key:"browserPageId",get:function(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}},{key:"setupNavigations",value:function(n){var l=this,c=this.events;return n.pipe(vr(function(h){return 0!==h.id}),He(function(h){return Object.assign(Object.assign({},h),{extractedUrl:l.urlHandlingStrategy.extract(h.rawUrl)})}),xa(function(h){var _=!1,C=!1;return ut(h).pipe(Ya(function(k){l.currentNavigation={id:k.id,initialUrl:k.currentRawUrl,extractedUrl:k.extractedUrl,trigger:k.source,extras:k.extras,previousNavigation:l.lastSuccessfulNavigation?Object.assign(Object.assign({},l.lastSuccessfulNavigation),{previousNavigation:null}):null}}),xa(function(k){var D=!l.navigated||k.extractedUrl.toString()!==l.browserUrlTree.toString(),I=("reload"===l.onSameUrlNavigation||D)&&l.urlHandlingStrategy.shouldProcessUrl(k.rawUrl);if(V1(k.source)&&(l.browserUrlTree=k.rawUrl),I)return ut(k).pipe(xa(function(Ce){var je=l.transitions.getValue();return c.next(new fA(Ce.id,l.serializeUrl(Ce.extractedUrl),Ce.source,Ce.restoredState)),je!==l.transitions.getValue()?Ar:Promise.resolve(Ce)}),function(e,a,t,n){return xa(function(l){return function(e,a,t,n,l){return new g3(e,a,t,n,l).apply()}(e,a,t,l.extractedUrl,n).pipe(He(function(c){return Object.assign(Object.assign({},l),{urlAfterRedirects:c})}))})}(l.ngModule.injector,l.configLoader,l.urlSerializer,l.config),Ya(function(Ce){l.currentNavigation=Object.assign(Object.assign({},l.currentNavigation),{finalUrl:Ce.urlAfterRedirects})}),function(e,a,t,n,l){return Xr(function(c){return function(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var h=new Q7(e,a,t,n,l,c).recognize();return null===h?b3(new K7):ut(h)}catch(_){return b3(_)}}(e,a,c.urlAfterRedirects,t(c.urlAfterRedirects),n,l).pipe(He(function(h){return Object.assign(Object.assign({},c),{targetSnapshot:h})}))})}(l.rootComponentType,l.config,function(Ce){return l.serializeUrl(Ce)},l.paramsInheritanceStrategy,l.relativeLinkResolution),Ya(function(Ce){"eager"===l.urlUpdateStrategy&&(Ce.extras.skipLocationChange||l.setBrowserUrl(Ce.urlAfterRedirects,Ce),l.browserUrlTree=Ce.urlAfterRedirects);var je=new dA(Ce.id,l.serializeUrl(Ce.extractedUrl),l.serializeUrl(Ce.urlAfterRedirects),Ce.targetSnapshot);c.next(je)}));if(D&&l.rawUrlTree&&l.urlHandlingStrategy.shouldProcessUrl(l.rawUrlTree)){var Y=k.extractedUrl,Q=k.source,ie=k.restoredState,fe=k.extras,se=new fA(k.id,l.serializeUrl(Y),Q,ie);c.next(se);var be=M1(Y,l.rootComponentType).snapshot;return ut(Object.assign(Object.assign({},k),{targetSnapshot:be,urlAfterRedirects:Y,extras:Object.assign(Object.assign({},fe),{skipLocationChange:!1,replaceUrl:!1})}))}return l.rawUrlTree=k.rawUrl,l.browserUrlTree=k.urlAfterRedirects,k.resolve(null),Ar}),PA(function(k){var Y=k.extras;return l.hooks.beforePreactivation(k.targetSnapshot,{navigationId:k.id,appliedUrlTree:k.extractedUrl,rawUrlTree:k.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),Ya(function(k){var D=new ON(k.id,l.serializeUrl(k.extractedUrl),l.serializeUrl(k.urlAfterRedirects),k.targetSnapshot);l.triggerEvent(D)}),He(function(k){return Object.assign(Object.assign({},k),{guards:B7(k.targetSnapshot,k.currentSnapshot,l.rootContexts)})}),function(e,a){return Xr(function(t){var n=t.targetSnapshot,l=t.currentSnapshot,c=t.guards,h=c.canActivateChecks,_=c.canDeactivateChecks;return 0===_.length&&0===h.length?ut(Object.assign(Object.assign({},t),{guardsResult:!0})):function(e,a,t,n){return yt(e).pipe(Xr(function(l){return function(e,a,t,n,l){var c=a&&a.routeConfig?a.routeConfig.canDeactivate:null;return c&&0!==c.length?ut(c.map(function(_){var k,C=F1(_,a,l);if(function(e){return e&&qa(e.canDeactivate)}(C))k=Su(C.canDeactivate(e,a,t,n));else{if(!qa(C))throw new Error("Invalid CanDeactivate guard");k=Su(C(e,a,t,n))}return k.pipe(lg())})).pipe(zy()):ut(!0)}(l.component,l.route,t,a,n)}),lg(function(l){return!0!==l},!0))}(_,n,l,e).pipe(Xr(function(C){return C&&function(e){return"boolean"==typeof e}(C)?function(e,a,t,n){return yt(a).pipe(Xh(function(l){return d1(function(e,a){return null!==e&&a&&a(new a7(e)),ut(!0)}(l.route.parent,n),function(e,a){return null!==e&&a&&a(new o7(e)),ut(!0)}(l.route,n),function(e,a,t){var n=a[a.length-1],c=a.slice(0,a.length-1).reverse().map(function(h){return function(e){var a=e.routeConfig?e.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:e,guards:a}:null}(h)}).filter(function(h){return null!==h}).map(function(h){return Ly(function(){return ut(h.guards.map(function(C){var D,k=F1(C,h.node,t);if(function(e){return e&&qa(e.canActivateChild)}(k))D=Su(k.canActivateChild(n,e));else{if(!qa(k))throw new Error("Invalid CanActivateChild guard");D=Su(k(n,e))}return D.pipe(lg())})).pipe(zy())})});return ut(c).pipe(zy())}(e,l.path,t),function(e,a,t){var n=a.routeConfig?a.routeConfig.canActivate:null;return n&&0!==n.length?ut(n.map(function(c){return Ly(function(){var _,h=F1(c,a,t);if(function(e){return e&&qa(e.canActivate)}(h))_=Su(h.canActivate(a,e));else{if(!qa(h))throw new Error("Invalid CanActivate guard");_=Su(h(a,e))}return _.pipe(lg())})})).pipe(zy()):ut(!0)}(e,l.route,t))}),lg(function(l){return!0!==l},!0))}(n,h,e,a):ut(C)}),He(function(C){return Object.assign(Object.assign({},t),{guardsResult:C})}))})}(l.ngModule.injector,function(k){return l.triggerEvent(k)}),Ya(function(k){if(Qh(k.guardsResult)){var D=g1('Redirecting to "'.concat(l.serializeUrl(k.guardsResult),'"'));throw D.url=k.guardsResult,D}var I=new IN(k.id,l.serializeUrl(k.extractedUrl),l.serializeUrl(k.urlAfterRedirects),k.targetSnapshot,!!k.guardsResult);l.triggerEvent(I)}),vr(function(k){return!!k.guardsResult||(l.restoreHistory(k),l.cancelNavigationTransition(k,""),!1)}),PA(function(k){if(k.guards.canActivateChecks.length)return ut(k).pipe(Ya(function(D){var I=new RN(D.id,l.serializeUrl(D.extractedUrl),l.serializeUrl(D.urlAfterRedirects),D.targetSnapshot);l.triggerEvent(I)}),xa(function(D){var I=!1;return ut(D).pipe(function(e,a){return Xr(function(t){var n=t.targetSnapshot,l=t.guards.canActivateChecks;if(!l.length)return ut(t);var c=0;return yt(l).pipe(Xh(function(h){return function(e,a,t,n){return function(e,a,t,n){var l=Object.keys(e);if(0===l.length)return ut({});var c={};return yt(l).pipe(Xr(function(h){return function(e,a,t,n){var l=F1(e,a,n);return Su(l.resolve?l.resolve(a,t):l(a,t))}(e[h],a,t,n).pipe(Ya(function(_){c[h]=_}))}),uA(1),Xr(function(){return Object.keys(c).length===l.length?ut(c):Ar}))}(e._resolve,e,a,n).pipe(He(function(c){return e._resolvedData=c,e.data=Object.assign(Object.assign({},e.data),ZN(e,t).resolve),null}))}(h.route,n,e,a)}),Ya(function(){return c++}),uA(1),Xr(function(h){return c===l.length?ut(t):Ar}))})}(l.paramsInheritanceStrategy,l.ngModule.injector),Ya({next:function(){return I=!0},complete:function(){I||(l.restoreHistory(D),l.cancelNavigationTransition(D,"At least one route resolver didn't emit any value."))}}))}),Ya(function(D){var I=new i7(D.id,l.serializeUrl(D.extractedUrl),l.serializeUrl(D.urlAfterRedirects),D.targetSnapshot);l.triggerEvent(I)}))}),PA(function(k){var Y=k.extras;return l.hooks.afterPreactivation(k.targetSnapshot,{navigationId:k.id,appliedUrlTree:k.extractedUrl,rawUrlTree:k.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),He(function(k){var D=function(e,a,t){var n=D1(e,a._root,t?t._root:void 0);return new yA(n,a)}(l.routeReuseStrategy,k.targetSnapshot,k.currentRouterState);return Object.assign(Object.assign({},k),{targetRouterState:D})}),Ya(function(k){l.currentUrlTree=k.urlAfterRedirects,l.rawUrlTree=l.urlHandlingStrategy.merge(l.currentUrlTree,k.rawUrl),l.routerState=k.targetRouterState,"deferred"===l.urlUpdateStrategy&&(k.extras.skipLocationChange||l.setBrowserUrl(l.rawUrlTree,k),l.browserUrlTree=k.urlAfterRedirects)}),function(a,t,n){return He(function(l){return new D7(t,l.targetRouterState,l.currentRouterState,n).activate(a),l})}(l.rootContexts,l.routeReuseStrategy,function(k){return l.triggerEvent(k)}),Ya({next:function(){_=!0},complete:function(){_=!0}}),function(e){return function(a){return a.lift(new n7(e))}}(function(){if(!_&&!C){var k="Navigation ID ".concat(h.id," is not equal to the current navigation id ").concat(l.navigationId);"replace"===l.canceledNavigationResolution&&l.restoreHistory(h),l.cancelNavigationTransition(h,k)}l.currentNavigation=null}),_o(function(k){if(C=!0,function(e){return e&&e[pA]}(k)){var D=Qh(k.url);D||(l.navigated=!0,l.restoreHistory(h,!0));var I=new p1(h.id,l.serializeUrl(h.extractedUrl),k.message);c.next(I),D?setTimeout(function(){var G=l.urlHandlingStrategy.merge(k.url,l.rawUrlTree),Y={skipLocationChange:h.extras.skipLocationChange,replaceUrl:"eager"===l.urlUpdateStrategy||V1(h.source)};l.scheduleNavigation(G,"imperative",null,Y,{resolve:h.resolve,reject:h.reject,promise:h.promise})},0):h.resolve(!1)}else{l.restoreHistory(h,!0);var L=new ug(h.id,l.serializeUrl(h.extractedUrl),k);c.next(L);try{h.resolve(l.errorHandler(k))}catch(G){h.reject(G)}}return Ar}))}))}},{key:"resetRootComponentType",value:function(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var n=this.transitions.value;return n.urlAfterRedirects=this.browserUrlTree,n}},{key:"setTransition",value:function(n){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),n))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var n=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(l){var c=n.extractLocationChangeInfoFromEvent(l);n.shouldScheduleNavigation(n.lastLocationChangeInfo,c)&&setTimeout(function(){var h=c.source,_=c.state,C=c.urlTree,k={replaceUrl:!0};if(_){var D=Object.assign({},_);delete D.navigationId,delete D.\u0275routerPageId,0!==Object.keys(D).length&&(k.state=D)}n.scheduleNavigation(C,h,_,k)},0),n.lastLocationChangeInfo=c}))}},{key:"extractLocationChangeInfoFromEvent",value:function(n){var l;return{source:"popstate"===n.type?"popstate":"hashchange",urlTree:this.parseUrl(n.url),state:(null===(l=n.state)||void 0===l?void 0:l.navigationId)?n.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(n,l){if(!n)return!0;var c=l.urlTree.toString()===n.urlTree.toString();return!(l.transitionId===n.transitionId&&c&&("hashchange"===l.source&&"popstate"===n.source||"popstate"===l.source&&"hashchange"===n.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(n){this.events.next(n)}},{key:"resetConfig",value:function(n){u3(n),this.config=n.map(xA),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=l.relativeTo,h=l.queryParams,_=l.fragment,C=l.queryParamsHandling,k=l.preserveFragment,D=c||this.routerState.root,I=k?this.currentUrlTree.fragment:_,L=null;switch(C){case"merge":L=Object.assign(Object.assign({},this.currentUrlTree.queryParams),h);break;case"preserve":L=this.currentUrlTree.queryParams;break;default:L=h||null}return null!==L&&(L=this.removeEmptyProps(L)),w7(D,this.currentUrlTree,n,L,null!=I?I:null)}},{key:"navigateByUrl",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},c=Qh(n)?n:this.parseUrl(n),h=this.urlHandlingStrategy.merge(c,this.rawUrlTree);return this.scheduleNavigation(h,"imperative",null,l)}},{key:"navigate",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return pW(n),this.navigateByUrl(this.createUrlTree(n,l),l)}},{key:"serializeUrl",value:function(n){return this.urlSerializer.serialize(n)}},{key:"parseUrl",value:function(n){var l;try{l=this.urlSerializer.parse(n)}catch(c){l=this.malformedUriErrorHandler(c,this.urlSerializer,n)}return l}},{key:"isActive",value:function(n,l){var c;if(c=!0===l?Object.assign({},dW):!1===l?Object.assign({},hW):l,Qh(n))return vA(this.currentUrlTree,n,c);var h=this.parseUrl(n);return vA(this.currentUrlTree,h,c)}},{key:"removeEmptyProps",value:function(n){return Object.keys(n).reduce(function(l,c){var h=n[c];return null!=h&&(l[c]=h),l},{})}},{key:"processNavigations",value:function(){var n=this;this.navigations.subscribe(function(l){n.navigated=!0,n.lastSuccessfulId=l.id,n.currentPageId=l.targetPageId,n.events.next(new kl(l.id,n.serializeUrl(l.extractedUrl),n.serializeUrl(n.currentUrlTree))),n.lastSuccessfulNavigation=n.currentNavigation,l.resolve(!0)},function(l){n.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(n,l,c,h,_){var C,k;if(this.disposed)return Promise.resolve(!1);var Q,ie,fe,D=this.getTransition(),I=V1(l)&&D&&!V1(D.source),Y=(this.lastSuccessfulId===D.id||this.currentNavigation?D.rawUrl:D.urlAfterRedirects).toString()===n.toString();if(I&&Y)return Promise.resolve(!0);_?(Q=_.resolve,ie=_.reject,fe=_.promise):fe=new Promise(function(je,$e){Q=je,ie=$e});var be,se=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(c=this.location.getState()),be=c&&c.\u0275routerPageId?c.\u0275routerPageId:h.replaceUrl||h.skipLocationChange?null!==(C=this.browserPageId)&&void 0!==C?C:0:(null!==(k=this.browserPageId)&&void 0!==k?k:0)+1):be=0,this.setTransition({id:se,targetPageId:be,source:l,restoredState:c,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:h,resolve:Q,reject:ie,promise:fe,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),fe.catch(function(je){return Promise.reject(je)})}},{key:"setBrowserUrl",value:function(n,l){var c=this.urlSerializer.serialize(n),h=Object.assign(Object.assign({},l.extras.state),this.generateNgRouterState(l.id,l.targetPageId));this.location.isCurrentPathEqualTo(c)||l.extras.replaceUrl?this.location.replaceState(c,"",h):this.location.go(c,"",h)}},{key:"restoreHistory",value:function(n){var c,h,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var _=this.currentPageId-n.targetPageId,C="popstate"===n.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(c=this.currentNavigation)||void 0===c?void 0:c.finalUrl);C&&0!==_?this.location.historyGo(_):this.currentUrlTree===(null===(h=this.currentNavigation)||void 0===h?void 0:h.finalUrl)&&0===_&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(l&&this.resetState(n),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(n,l){var c=new p1(n.id,this.serializeUrl(n.extractedUrl),l);this.triggerEvent(c),n.resolve(!1)}},{key:"generateNgRouterState",value:function(n,l){return"computed"===this.canceledNavigationResolution?{navigationId:n,"\u0275routerPageId":l}:{navigationId:n}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Yl),ce(y1),ce(Cg),ce(Jv),ce(kn),ce(qf),ce(gu),ce(void 0))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function pW(e){for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:{};F(this,a),this.router=t,this.viewportScroller=n,this.options=l,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},l.scrollPositionRestoration=l.scrollPositionRestoration||"disabled",l.anchorScrolling=l.anchorScrolling||"disabled"}return W(a,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(l){l instanceof fA?(n.store[n.lastId]=n.viewportScroller.getScrollPosition(),n.lastSource=l.navigationTrigger,n.restoredId=l.restoredState?l.restoredState.navigationId:0):l instanceof kl&&(n.lastId=l.id,n.scheduleScrollEvent(l,n.router.parseUrl(l.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(l){l instanceof FN&&(l.position?"top"===n.options.scrollPositionRestoration?n.viewportScroller.scrollToPosition([0,0]):"enabled"===n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition(l.position):l.anchor&&"enabled"===n.options.anchorScrolling?n.viewportScroller.scrollToAnchor(l.anchor):"disabled"!==n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(n,l){this.router.triggerEvent(new FN(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,l))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Ta),ce(Kw),ce(void 0))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),ad=new Ee("ROUTER_CONFIGURATION"),LA=new Ee("ROUTER_FORROOT_GUARD"),I3=[Jv,{provide:y1,useClass:b1},{provide:Ta,useFactory:function(e,a,t,n,l,c,h){var _=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},C=arguments.length>8?arguments[8]:void 0,k=arguments.length>9?arguments[9]:void 0,D=new Ta(null,e,a,t,n,l,c,VN(h));return C&&(D.urlHandlingStrategy=C),k&&(D.routeReuseStrategy=k),V3(_,D),_.enableTracing&&D.events.subscribe(function(I){var L,G;null===(L=console.group)||void 0===L||L.call(console,"Router Event: ".concat(I.constructor.name)),console.log(I.toString()),console.log(I),null===(G=console.groupEnd)||void 0===G||G.call(console)}),D},deps:[y1,Cg,Jv,kn,qf,gu,OA,ad,[function e(){F(this,e)},new oi],[function e(){F(this,e)},new oi]]},Cg,{provide:kr,useFactory:function(e){return e.routerState.root},deps:[Ta]},{provide:qf,useClass:eG},P3,H1,mW,{provide:ad,useValue:{enableTracing:!1}}];function R3(){return new Yv("Router",Ta)}var FA=function(){var e=function(){function a(t,n){F(this,a)}return W(a,null,[{key:"forRoot",value:function(n,l){return{ngModule:a,providers:[I3,F3(n),{provide:LA,useFactory:L3,deps:[[Ta,new oi,new Fo]]},{provide:ad,useValue:l||{}},{provide:Qv,useFactory:yW,deps:[fc,[new jp(Vw),new oi],ad]},{provide:RA,useFactory:_W,deps:[Ta,Kw,ad]},{provide:IA,useExisting:l&&l.preloadingStrategy?l.preloadingStrategy:H1},{provide:Yv,multi:!0,useFactory:R3},[od,{provide:fo,multi:!0,useFactory:B3,deps:[od]},{provide:z3,useFactory:H3,deps:[od]},{provide:dw,multi:!0,useExisting:z3}]]}}},{key:"forChild",value:function(n){return{ngModule:a,providers:[F3(n)]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(LA,8),ce(Ta,8))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}();function _W(e,a,t){return t.scrollOffset&&a.setOffset(t.scrollOffset),new RA(e,a,t)}function yW(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new yF(e,a):new mD(e,a)}function L3(e){return"guarded"}function F3(e){return[{provide:XH,multi:!0,useValue:e},{provide:OA,multi:!0,useValue:e}]}function V3(e,a){e.errorHandler&&(a.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(a.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(a.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(a.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(a.urlUpdateStrategy=e.urlUpdateStrategy)}var od=function(){var e=function(){function a(t){F(this,a),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new qe}return W(a,[{key:"appInitializer",value:function(){var n=this;return this.injector.get(gF,Promise.resolve(null)).then(function(){if(n.destroyed)return Promise.resolve(!0);var c=null,h=new Promise(function(k){return c=k}),_=n.injector.get(Ta),C=n.injector.get(ad);return"disabled"===C.initialNavigation?(_.setUpLocationChangeListener(),c(!0)):"enabled"===C.initialNavigation||"enabledBlocking"===C.initialNavigation?(_.hooks.afterPreactivation=function(){return n.initNavigation?ut(null):(n.initNavigation=!0,c(!0),n.resultOfPreactivationDone)},_.initialNavigation()):c(!0),h})}},{key:"bootstrapListener",value:function(n){var l=this.injector.get(ad),c=this.injector.get(P3),h=this.injector.get(RA),_=this.injector.get(Ta),C=this.injector.get(lc);n===C.components[0]&&(("enabledNonBlocking"===l.initialNavigation||void 0===l.initialNavigation)&&_.initialNavigation(),c.setUpPreloading(),h.init(),_.resetRootComponentType(C.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(kn))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function B3(e){return e.appInitializer.bind(e)}function H3(e){return e.bootstrapListener.bind(e)}var z3=new Ee("Router Initializer"),CW=function(){function e(a){this.user=a.user,this.role=a.role,this.admin=a.admin}return Object.defineProperty(e.prototype,"isStaff",{get:function(){return"staff"===this.role||"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAdmin",{get:function(){return"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLogged",{get:function(){return null!=this.user},enumerable:!1,configurable:!0}),e}();function it(e){return null!=e&&"false"!=="".concat(e)}function Di(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return U3(e)?Number(e):a}function U3(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function Sg(e){return Array.isArray(e)?e:[e]}function mi(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function bc(e){return e instanceof Ue?e.nativeElement:e}function G3(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,t=[];if(null!=e){var c,n=Array.isArray(e)?e:"".concat(e).split(a),l=tn(n);try{for(l.s();!(c=l.n()).done;){var h=c.value,_="".concat(h).trim();_&&t.push(_)}}catch(C){l.e(C)}finally{l.f()}}return t}function Tl(e,a,t,n){return nt(t)&&(n=t,t=void 0),n?Tl(e,a,t).pipe(He(function(l){return Bu(l)?n.apply(void 0,At(l)):n(l)})):new gn(function(l){j3(e,a,function(h){l.next(arguments.length>1?Array.prototype.slice.call(arguments):h)},l,t)})}function j3(e,a,t,n,l){var c;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var h=e;e.addEventListener(a,t,l),c=function(){return h.removeEventListener(a,t,l)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var _=e;e.on(a,t),c=function(){return _.off(a,t)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var C=e;e.addListener(a,t),c=function(){return C.removeListener(a,t)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var k=0,D=e.length;k1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=l;var h=this.id,_=this.scheduler;return null!=h&&(this.id=this.recycleAsyncId(_,h,c)),this.pending=!0,this.delay=c,this.id=this.id||this.requestAsyncId(_,this.id,c),this}},{key:"requestAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(l.flush.bind(l,this),h)}},{key:"recycleAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==h&&this.delay===h&&!1===this.pending)return c;clearInterval(c)}},{key:"execute",value:function(l,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var h=this._execute(l,c);if(h)return h;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(l,c){var h=!1,_=void 0;try{this.work(l)}catch(C){h=!0,_=!!C&&C||new Error(C)}if(h)return this.unsubscribe(),_}},{key:"_unsubscribe",value:function(){var l=this.id,c=this.scheduler,h=c.actions,_=h.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==_&&h.splice(_,1),null!=l&&(this.id=this.recycleAsyncId(c,l,null)),this.delay=null}}]),t}(function(e){ae(t,e);var a=ue(t);function t(n,l){return F(this,t),a.call(this)}return W(t,[{key:"schedule",value:function(l){return this}}]),t}(Be)),q3=function(){var e=function(){function a(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.now;F(this,a),this.SchedulerAction=t,this.now=n}return W(a,[{key:"schedule",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,n).schedule(c,l)}}]),a}();return e.now=function(){return Date.now()},e}(),z1=function(e){ae(t,e);var a=ue(t);function t(n){var l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q3.now;return F(this,t),(l=a.call(this,n,function(){return t.delegate&&t.delegate!==It(l)?t.delegate.now():c()})).actions=[],l.active=!1,l.scheduled=void 0,l}return W(t,[{key:"schedule",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,h=arguments.length>2?arguments[2]:void 0;return t.delegate&&t.delegate!==this?t.delegate.schedule(l,c,h):Ie(Oe(t.prototype),"schedule",this).call(this,l,c,h)}},{key:"flush",value:function(l){var c=this.actions;if(this.active)c.push(l);else{var h;this.active=!0;do{if(h=l.execute(l.state,l.delay))break}while(l=c.shift());if(this.active=!1,h){for(;l=c.shift();)l.unsubscribe();throw h}}}}]),t}(q3),X3=1,DW=function(){return Promise.resolve()}(),Yy={};function Z3(e){return e in Yy&&(delete Yy[e],!0)}var VA_setImmediate=function(a){var t=X3++;return Yy[t]=!0,DW.then(function(){return Z3(t)&&a()}),t},VA_clearImmediate=function(a){Z3(a)},AW=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n,l)).scheduler=n,c.work=l,c}return W(t,[{key:"requestAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==h&&h>0?Ie(Oe(t.prototype),"requestAsyncId",this).call(this,l,c,h):(l.actions.push(this),l.scheduled||(l.scheduled=VA_setImmediate(l.flush.bind(l,null))))}},{key:"recycleAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==h&&h>0||null===h&&this.delay>0)return Ie(Oe(t.prototype),"recycleAsyncId",this).call(this,l,c,h);0===l.actions.length&&(VA_clearImmediate(c),l.scheduled=void 0)}}]),t}(kg),BA=new(function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"flush",value:function(l){this.active=!0,this.scheduled=void 0;var h,c=this.actions,_=-1,C=c.length;l=l||c.shift();do{if(h=l.execute(l.state,l.delay))break}while(++_=0}function K3(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=-1;return zA(a)?n=Number(a)<1?1:Number(a):rt(a)&&(t=a),rt(t)||(t=Mg),new gn(function(l){var c=zA(e)?e:+e-t.now();return t.schedule(VW,c,{index:0,period:n,subscriber:l})})}function VW(e){var a=e.index,t=e.period,n=e.subscriber;if(n.next(a),!n.closed){if(-1===t)return n.complete();e.index=a+1,this.schedule(e,t)}}function U1(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg;return LW(function(){return K3(e,a)})}function Ht(e){return function(a){return a.lift(new $3(e))}}var $3=function(){function e(a){F(this,e),this.notifier=a}return W(e,[{key:"call",value:function(t,n){var l=new Q3(t),c=Ii(this.notifier,new Gc(l));return c&&!l.seenValue?(l.add(c),n.subscribe(l)):l}}]),e}(),Q3=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this,n)).seenValue=!1,l}return W(t,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),t}(at);function GA(e,a){return new gn(a?function(t){return a.schedule(nV,0,{error:e,subscriber:t})}:function(t){return t.error(e)})}function nV(e){e.subscriber.error(e.error)}var Mu,qy=function(){var e=function(){function a(t,n,l){F(this,a),this.kind=t,this.value=n,this.error=l,this.hasValue="N"===t}return W(a,[{key:"observe",value:function(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}},{key:"do",value:function(n,l,c){switch(this.kind){case"N":return n&&n(this.value);case"E":return l&&l(this.error);case"C":return c&&c()}}},{key:"accept",value:function(n,l,c){return n&&"function"==typeof n.next?this.observe(n):this.do(n,l,c)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return ut(this.value);case"E":return GA(this.error);case"C":return h1()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(n){return void 0!==n?new a("N",n):a.undefinedValueNotification}},{key:"createError",value:function(n){return new a("E",void 0,n)}},{key:"createComplete",value:function(){return a.completeNotification}}]),a}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();try{Mu="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(e){Mu=!1}var qo,Xy,wc,WA,en=function(){var e=function a(t){F(this,a),this._platformId=t,this.isBrowser=this._platformId?function(e){return"browser"===e}(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&&!Mu)&&"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 e.\u0275fac=function(t){return new(t||e)(ce(jv))},e.\u0275prov=We({factory:function(){return new e(ce(jv))},token:e,providedIn:"root"}),e}(),ep=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),G1=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function j1(){if(qo)return qo;if("object"!=typeof document||!document)return qo=new Set(G1);var e=document.createElement("input");return qo=new Set(G1.filter(function(a){return e.setAttribute("type",a),e.type===a}))}function tp(e){return function(){if(null==Xy&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Xy=!0}}))}finally{Xy=Xy||!1}return Xy}()?e:!!e.capture}function rV(){if(null==wc){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return wc=!1;if("scrollBehavior"in document.documentElement.style)wc=!0;else{var e=Element.prototype.scrollTo;wc=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return wc}function W1(e){if(function(){if(null==WA){var e="undefined"!=typeof document?document.head:null;WA=!(!e||!e.createShadowRoot&&!e.attachShadow)}return WA}()){var a=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Ky(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var a=e.shadowRoot.activeElement;if(a===e)break;e=a}return e}function rp(e){return e.composedPath?e.composedPath()[0]:e.target}var iV=new Ee("cdk-dir-doc",{providedIn:"root",factory:function(){return tM(lt)}}),Mr=function(){var e=function(){function a(t){if(F(this,a),this.value="ltr",this.change=new ye,t){var c=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===c||"rtl"===c?c:"ltr"}}return W(a,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(iV,8))},e.\u0275prov=We({factory:function(){return new e(ce(iV,8))},token:e,providedIn:"root"}),e}(),$y=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),qA=function e(){F(this,e)};function Y1(e){return e&&"function"==typeof e.connect}var XA=function(){function e(){F(this,e)}return W(e,[{key:"applyChanges",value:function(t,n,l,c,h){t.forEachOperation(function(_,C,k){var D,I;if(null==_.previousIndex){var L=l(_,C,k);D=n.createEmbeddedView(L.templateRef,L.context,L.index),I=1}else null==k?(n.remove(C),I=3):(D=n.get(C),n.move(D,k),I=2);h&&h({context:null==D?void 0:D.context,operation:I,record:_})})}},{key:"detach",value:function(){}}]),e}(),ip=function(){function e(){var a=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];F(this,e),this._multiple=t,this._emitChanges=l,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new qe,n&&n.length&&(t?n.forEach(function(c){return a._markSelected(c)}):this._markSelected(n[0]),this._selectedToEmit.length=0)}return W(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var t=this,n=arguments.length,l=new Array(n),c=0;c0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new gn(function(c){n._globalSubscription||n._addGlobalListener();var h=l>0?n._scrolled.pipe(U1(l)).subscribe(c):n._scrolled.subscribe(c);return n._scrolledCount++,function(){h.unsubscribe(),n._scrolledCount--,n._scrolledCount||n._removeGlobalListener()}}):ut()}},{key:"ngOnDestroy",value:function(){var n=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(l,c){return n.deregister(c)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(n,l){var c=this.getAncestorScrollContainers(n);return this.scrolled(l).pipe(vr(function(h){return!h||c.indexOf(h)>-1}))}},{key:"getAncestorScrollContainers",value:function(n){var l=this,c=[];return this.scrollContainers.forEach(function(h,_){l._scrollableContainsElement(_,n)&&c.push(_)}),c}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(n,l){var c=bc(l),h=n.getElementRef().nativeElement;do{if(c==h)return!0}while(c=c.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var n=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Tl(n._getWindow().document,"scroll").subscribe(function(){return n._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(ft),ce(en),ce(lt,8))},e.\u0275prov=We({factory:function(){return new e(ce(ft),ce(en),ce(lt,8))},token:e,providedIn:"root"}),e}(),yo=function(){var e=function(){function a(t,n,l){var c=this;F(this,a),this._platform=t,this._change=new qe,this._changeListener=function(h){c._change.next(h)},this._document=l,n.runOutsideAngular(function(){if(t.isBrowser){var h=c._getWindow();h.addEventListener("resize",c._changeListener),h.addEventListener("orientationchange",c._changeListener)}c.change().subscribe(function(){return c._viewportSize=null})})}return W(a,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}},{key:"getViewportRect",value:function(){var n=this.getViewportScrollPosition(),l=this.getViewportSize(),c=l.width,h=l.height;return{top:n.top,left:n.left,bottom:n.top+h,right:n.left+c,height:h,width:c}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var n=this._document,l=this._getWindow(),c=n.documentElement,h=c.getBoundingClientRect();return{top:-h.top||n.body.scrollTop||l.scrollY||c.scrollTop||0,left:-h.left||n.body.scrollLeft||l.scrollX||c.scrollLeft||0}}},{key:"change",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return n>0?this._change.pipe(U1(n)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en),ce(ft),ce(lt,8))},e.\u0275prov=We({factory:function(){return new e(ce(en),ce(ft),ce(lt,8))},token:e,providedIn:"root"}),e}(),lp=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),q1=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$y,ep,lp],$y,lp]}),e}(),X1=function(){function e(){F(this,e)}return W(e,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),e}(),sd=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this)).component=n,_.viewContainerRef=l,_.injector=c,_.componentFactoryResolver=h,_}return t}(X1),Ps=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this)).templateRef=n,h.viewContainerRef=l,h.context=c,h}return W(t,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=c,Ie(Oe(t.prototype),"attach",this).call(this,l)}},{key:"detach",value:function(){return this.context=void 0,Ie(Oe(t.prototype),"detach",this).call(this)}}]),t}(X1),eE=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this)).element=n instanceof Ue?n.nativeElement:n,l}return t}(X1),Jy=function(){function e(){F(this,e),this._isDisposed=!1,this.attachDomPortal=null}return W(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof sd?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ps?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof eE?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),tE=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h,_){var C,k;return F(this,t),(k=a.call(this)).outletElement=n,k._componentFactoryResolver=l,k._appRef=c,k._defaultInjector=h,k.attachDomPortal=function(D){var I=D.element,L=k._document.createComment("dom-portal");I.parentNode.insertBefore(L,I),k.outletElement.appendChild(I),k._attachedPortal=D,Ie((C=It(k),Oe(t.prototype)),"setDisposeFn",C).call(C,function(){L.parentNode&&L.parentNode.replaceChild(I,L)})},k._document=_,k}return W(t,[{key:"attachComponentPortal",value:function(l){var C,c=this,_=(l.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(l.component);return l.viewContainerRef?(C=l.viewContainerRef.createComponent(_,l.viewContainerRef.length,l.injector||l.viewContainerRef.injector),this.setDisposeFn(function(){return C.destroy()})):(C=_.create(l.injector||this._defaultInjector),this._appRef.attachView(C.hostView),this.setDisposeFn(function(){c._appRef.detachView(C.hostView),C.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(C)),this._attachedPortal=l,C}},{key:"attachTemplatePortal",value:function(l){var c=this,h=l.viewContainerRef,_=h.createEmbeddedView(l.templateRef,l.context);return _.rootNodes.forEach(function(C){return c.outletElement.appendChild(C)}),_.detectChanges(),this.setDisposeFn(function(){var C=h.indexOf(_);-1!==C&&h.remove(C)}),this._attachedPortal=l,_}},{key:"dispose",value:function(){Ie(Oe(t.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(l){return l.hostView.rootNodes[0]}}]),t}(Jy),nE=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){return F(this,n),t.call(this,l,c)}return n}(Ps);return e.\u0275fac=function(t){return new(t||e)(N(Xn),N($n))},e.\u0275dir=ve({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Pe]}),e}(),Os=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _,C;return F(this,n),(C=t.call(this))._componentFactoryResolver=l,C._viewContainerRef=c,C._isInitialized=!1,C.attached=new ye,C.attachDomPortal=function(k){var D=k.element,I=C._document.createComment("dom-portal");k.setAttachedHost(It(C)),D.parentNode.insertBefore(I,D),C._getRootNode().appendChild(D),C._attachedPortal=k,Ie((_=It(C),Oe(n.prototype)),"setDisposeFn",_).call(_,function(){I.parentNode&&I.parentNode.replaceChild(D,I)})},C._document=h,C}return W(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(c){this.hasAttached()&&!c&&!this._isInitialized||(this.hasAttached()&&Ie(Oe(n.prototype),"detach",this).call(this),c&&Ie(Oe(n.prototype),"attach",this).call(this,c),this._attachedPortal=c)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){Ie(Oe(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(c){c.setAttachedHost(this);var h=null!=c.viewContainerRef?c.viewContainerRef:this._viewContainerRef,C=(c.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(c.component),k=h.createComponent(C,h.length,c.injector||h.injector);return h!==this._viewContainerRef&&this._getRootNode().appendChild(k.hostView.rootNodes[0]),Ie(Oe(n.prototype),"setDisposeFn",this).call(this,function(){return k.destroy()}),this._attachedPortal=c,this._attachedRef=k,this.attached.emit(k),k}},{key:"attachTemplatePortal",value:function(c){var h=this;c.setAttachedHost(this);var _=this._viewContainerRef.createEmbeddedView(c.templateRef,c.context);return Ie(Oe(n.prototype),"setDisposeFn",this).call(this,function(){return h._viewContainerRef.clear()}),this._attachedPortal=c,this._attachedRef=_,this.attached.emit(_),_}},{key:"_getRootNode",value:function(){var c=this._viewContainerRef.element.nativeElement;return c.nodeType===c.ELEMENT_NODE?c:c.parentNode}}]),n}(Jy);return e.\u0275fac=function(t){return new(t||e)(N(Ki),N($n),N(lt))},e.\u0275dir=ve({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Pe]}),e}(),xg=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),Sc=function(){function e(a,t){F(this,e),this.predicate=a,this.inclusive=t}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new tY(t,this.predicate,this.inclusive))}}]),e}(),tY=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).predicate=l,h.inclusive=c,h.index=0,h}return W(t,[{key:"_next",value:function(l){var h,c=this.destination;try{h=this.predicate(l,this.index++)}catch(_){return void c.error(_)}this.nextOrComplete(l,h)}},{key:"nextOrComplete",value:function(l,c){var h=this.destination;Boolean(c)?h.next(l):(this.inclusive&&h.next(l),h.complete())}}]),t}(Ze);function Bi(e){for(var a=arguments.length,t=new Array(a>1?a-1:0),n=1;nl.height||n.scrollWidth>l.width}}]),e}(),SV=function(){function e(a,t,n,l){var c=this;F(this,e),this._scrollDispatcher=a,this._ngZone=t,this._viewportRuler=n,this._config=l,this._scrollSubscription=null,this._detach=function(){c.disable(),c._overlayRef.hasAttached()&&c._ngZone.run(function(){return c._overlayRef.detach()})}}return W(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(function(){var l=t._viewportRuler.getViewportScrollPosition().top;Math.abs(l-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),kV=function(){function e(){F(this,e)}return W(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function fE(e,a){return a.some(function(t){return e.bottomt.bottom||e.rightt.right})}function Dc(e,a){return a.some(function(t){return e.topt.bottom||e.leftt.right})}var lQ=function(){function e(a,t,n,l){F(this,e),this._scrollDispatcher=a,this._viewportRuler=t,this._ngZone=n,this._config=l,this._scrollSubscription=null}return W(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var l=t._overlayRef.overlayElement.getBoundingClientRect(),c=t._viewportRuler.getViewportSize(),h=c.width,_=c.height;fE(l,[{width:h,height:_,bottom:_,right:h,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),uQ=function(){var e=function a(t,n,l,c){var h=this;F(this,a),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=l,this.noop=function(){return new kV},this.close=function(_){return new SV(h._scrollDispatcher,h._ngZone,h._viewportRuler,_)},this.block=function(){return new kY(h._viewportRuler,h._document)},this.reposition=function(_){return new lQ(h._scrollDispatcher,h._viewportRuler,h._ngZone,_)},this._document=c};return e.\u0275fac=function(t){return new(t||e)(ce(op),ce(yo),ce(ft),ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(op),ce(yo),ce(ft),ce(lt))},token:e,providedIn:"root"}),e}(),up=function e(a){if(F(this,e),this.scrollStrategy=new kV,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a)for(var n=0,l=Object.keys(a);n-1&&this._attachedOverlays.splice(l,1),0===this._attachedOverlays.length&&this.detach()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(lt))},token:e,providedIn:"root"}),e}(),TY=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this,l))._keydownListener=function(h){for(var _=c._attachedOverlays,C=_.length-1;C>-1;C--)if(_[C]._keydownEvents.observers.length>0){_[C]._keydownEvents.next(h);break}},c}return W(n,[{key:"add",value:function(c){Ie(Oe(n.prototype),"add",this).call(this,c),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(TV);return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(lt))},token:e,providedIn:"root"}),e}(),DY=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this,l))._platform=c,h._cursorStyleIsSet=!1,h._clickListener=function(_){for(var C=rp(_),k=h._attachedOverlays.slice(),D=k.length-1;D>-1;D--){var I=k[D];if(!(I._outsidePointerEvents.observers.length<1)&&I.hasAttached()){if(I.overlayElement.contains(C))break;I._outsidePointerEvents.next(_)}}},h}return W(n,[{key:"add",value:function(c){if(Ie(Oe(n.prototype),"add",this).call(this,c),!this._isAttached){var h=this._document.body;h.addEventListener("click",this._clickListener,!0),h.addEventListener("auxclick",this._clickListener,!0),h.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=h.style.cursor,h.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var c=this._document.body;c.removeEventListener("click",this._clickListener,!0),c.removeEventListener("auxclick",this._clickListener,!0),c.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(c.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(TV);return e.\u0275fac=function(t){return new(t||e)(ce(lt),ce(en))},e.\u0275prov=We({factory:function(){return new e(ce(lt),ce(en))},token:e,providedIn:"root"}),e}(),Tu="undefined"!=typeof window?window:{},DV=void 0!==Tu.__karma__&&!!Tu.__karma__||void 0!==Tu.jasmine&&!!Tu.jasmine||void 0!==Tu.jest&&!!Tu.jest||void 0!==Tu.Mocha&&!!Tu.Mocha,tb=function(){var e=function(){function a(t,n){F(this,a),this._platform=n,this._document=t}return W(a,[{key:"ngOnDestroy",value:function(){var n=this._containerElement;n&&n.parentNode&&n.parentNode.removeChild(n)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var n="cdk-overlay-container";if(this._platform.isBrowser||DV)for(var l=this._document.querySelectorAll(".".concat(n,'[platform="server"], ')+".".concat(n,'[platform="test"]')),c=0;cY&&(Y=se,G=fe)}}catch(be){Q.e(be)}finally{Q.f()}return this._isPushed=!1,void this._applyPosition(G.position,G.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(h.position,h.originPoint);this._applyPosition(h.position,h.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&cp(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(dE),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],n=this._getOriginPoint(this._originRect,t);this._applyPosition(t,n)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,n){var l;if("center"==n.originX)l=t.left+t.width/2;else{var c=this._isRtl()?t.right:t.left,h=this._isRtl()?t.left:t.right;l="start"==n.originX?c:h}return{x:l,y:"center"==n.originY?t.top+t.height/2:"top"==n.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,n,l){var c;return c="center"==l.overlayX?-n.width/2:"start"===l.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,{x:t.x+c,y:t.y+("center"==l.overlayY?-n.height/2:"top"==l.overlayY?0:-n.height)}}},{key:"_getOverlayFit",value:function(t,n,l,c){var h=EV(n),_=t.x,C=t.y,k=this._getOffset(c,"x"),D=this._getOffset(c,"y");k&&(_+=k),D&&(C+=D);var G=0-C,Y=C+h.height-l.height,Q=this._subtractOverflows(h.width,0-_,_+h.width-l.width),ie=this._subtractOverflows(h.height,G,Y),fe=Q*ie;return{visibleArea:fe,isCompletelyWithinViewport:h.width*h.height===fe,fitsInViewportVertically:ie===h.height,fitsInViewportHorizontally:Q==h.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,n,l){if(this._hasFlexibleDimensions){var c=l.bottom-n.y,h=l.right-n.x,_=AV(this._overlayRef.getConfig().minHeight),C=AV(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=_&&_<=c)&&(t.fitsInViewportHorizontally||null!=C&&C<=h)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,n,l){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var I,L,c=EV(n),h=this._viewportRect,_=Math.max(t.x+c.width-h.width,0),C=Math.max(t.y+c.height-h.height,0),k=Math.max(h.top-l.top-t.y,0),D=Math.max(h.left-l.left-t.x,0);return this._previousPushAmount={x:I=c.width<=h.width?D||-_:t.xD&&!this._isInitialRender&&!this._growAfterOpen&&(_=t.y-D/2)}if("end"===n.overlayX&&!c||"start"===n.overlayX&&c)Q=l.width-t.x+this._viewportMargin,G=t.x-this._viewportMargin;else if("start"===n.overlayX&&!c||"end"===n.overlayX&&c)Y=t.x,G=l.right-t.x;else{var ie=Math.min(l.right-t.x+l.left,t.x),fe=this._lastBoundingBoxSize.width;Y=t.x-ie,(G=2*ie)>fe&&!this._isInitialRender&&!this._growAfterOpen&&(Y=t.x-fe/2)}return{top:_,left:Y,bottom:C,right:Q,width:G,height:h}}},{key:"_setBoundingBoxStyles",value:function(t,n){var l=this._calculateBoundingBoxRect(t,n);!this._isInitialRender&&!this._growAfterOpen&&(l.height=Math.min(l.height,this._lastBoundingBoxSize.height),l.width=Math.min(l.width,this._lastBoundingBoxSize.width));var c={};if(this._hasExactPosition())c.top=c.left="0",c.bottom=c.right=c.maxHeight=c.maxWidth="",c.width=c.height="100%";else{var h=this._overlayRef.getConfig().maxHeight,_=this._overlayRef.getConfig().maxWidth;c.height=mi(l.height),c.top=mi(l.top),c.bottom=mi(l.bottom),c.width=mi(l.width),c.left=mi(l.left),c.right=mi(l.right),c.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",c.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",h&&(c.maxHeight=mi(h)),_&&(c.maxWidth=mi(_))}this._lastBoundingBoxSize=l,cp(this._boundingBox.style,c)}},{key:"_resetBoundingBoxStyles",value:function(){cp(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){cp(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,n){var l={},c=this._hasExactPosition(),h=this._hasFlexibleDimensions,_=this._overlayRef.getConfig();if(c){var C=this._viewportRuler.getViewportScrollPosition();cp(l,this._getExactOverlayY(n,t,C)),cp(l,this._getExactOverlayX(n,t,C))}else l.position="static";var k="",D=this._getOffset(n,"x"),I=this._getOffset(n,"y");D&&(k+="translateX(".concat(D,"px) ")),I&&(k+="translateY(".concat(I,"px)")),l.transform=k.trim(),_.maxHeight&&(c?l.maxHeight=mi(_.maxHeight):h&&(l.maxHeight="")),_.maxWidth&&(c?l.maxWidth=mi(_.maxWidth):h&&(l.maxWidth="")),cp(this._pane.style,l)}},{key:"_getExactOverlayY",value:function(t,n,l){var c={top:"",bottom:""},h=this._getOverlayPoint(n,this._overlayRect,t);this._isPushed&&(h=this._pushOverlayOnScreen(h,this._overlayRect,l));var _=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return h.y-=_,"bottom"===t.overlayY?c.bottom="".concat(this._document.documentElement.clientHeight-(h.y+this._overlayRect.height),"px"):c.top=mi(h.y),c}},{key:"_getExactOverlayX",value:function(t,n,l){var c={left:"",right:""},h=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(h=this._pushOverlayOnScreen(h,this._overlayRect,l)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?c.right="".concat(this._document.documentElement.clientWidth-(h.x+this._overlayRect.width),"px"):c.left=mi(h.x),c}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),n=this._pane.getBoundingClientRect(),l=this._scrollables.map(function(c){return c.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Dc(t,l),isOriginOutsideView:fE(t,l),isOverlayClipped:Dc(n,l),isOverlayOutsideView:fE(n,l)}}},{key:"_subtractOverflows",value:function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,l=this._overlayRef.getConfig(),c=l.width,h=l.height,_=l.maxWidth,C=l.maxHeight,k=!("100%"!==c&&"100vw"!==c||_&&"100%"!==_&&"100vw"!==_),D=!("100%"!==h&&"100vh"!==h||C&&"100%"!==C&&"100vh"!==C);t.position=this._cssPosition,t.marginLeft=k?"0":this._leftOffset,t.marginTop=D?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,k?n.justifyContent="flex-start":"center"===this._justifyContent?n.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?n.justifyContent="flex-end":"flex-end"===this._justifyContent&&(n.justifyContent="flex-start"):n.justifyContent=this._justifyContent,n.alignItems=D?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,l=n.style;n.classList.remove(pE),l.justifyContent=l.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),PY=function(){var e=function(){function a(t,n,l,c){F(this,a),this._viewportRuler=t,this._document=n,this._platform=l,this._overlayContainer=c}return W(a,[{key:"global",value:function(){return new vE}},{key:"connectedTo",value:function(n,l,c){return new EY(l,c,n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(n){return new hE(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(yo),ce(lt),ce(en),ce(tb))},e.\u0275prov=We({factory:function(){return new e(ce(yo),ce(lt),ce(en),ce(tb))},token:e,providedIn:"root"}),e}(),Is=0,Ai=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,I,L){F(this,a),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=l,this._positionBuilder=c,this._keyboardDispatcher=h,this._injector=_,this._ngZone=C,this._document=k,this._directionality=D,this._location=I,this._outsideClickDispatcher=L}return W(a,[{key:"create",value:function(n){var l=this._createHostElement(),c=this._createPaneElement(l),h=this._createPortalOutlet(c),_=new up(n);return _.direction=_.direction||this._directionality.value,new Ag(h,l,c,_,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(n){var l=this._document.createElement("div");return l.id="cdk-overlay-".concat(Is++),l.classList.add("cdk-overlay-pane"),n.appendChild(l),l}},{key:"_createHostElement",value:function(){var n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalOutlet",value:function(n){return this._appRef||(this._appRef=this._injector.get(lc)),new tE(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(uQ),ce(tb),ce(Ki),ce(PY),ce(TY),ce(kn),ce(ft),ce(lt),ce(Mr),ce(Jv),ce(DY))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Eg=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],gE=new Ee("cdk-connected-overlay-scroll-strategy"),OY=function(){var e=function a(t){F(this,a),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),PV=function(){var e=function(){function a(t,n,l,c,h){F(this,a),this._overlay=t,this._dir=h,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Be.EMPTY,this._attachSubscription=Be.EMPTY,this._detachSubscription=Be.EMPTY,this._positionSubscription=Be.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ye,this.positionChange=new ye,this.attach=new ye,this.detach=new ye,this.overlayKeydown=new ye,this.overlayOutsideClick=new ye,this._templatePortal=new Ps(n,l),this._scrollStrategyFactory=c,this.scrollStrategy=this._scrollStrategyFactory()}return W(a,[{key:"offsetX",get:function(){return this._offsetX},set:function(n){this._offsetX=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(n){this._offsetY=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(n){this._hasBackdrop=it(n)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(n){this._lockPosition=it(n)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(n){this._flexibleDimensions=it(n)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(n){this._growAfterOpen=it(n)}},{key:"push",get:function(){return this._push},set:function(n){this._push=it(n)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(n){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),n.origin&&this.open&&this._position.apply()),n.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var n=this;(!this.positions||!this.positions.length)&&(this.positions=Eg);var l=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=l.attachments().subscribe(function(){return n.attach.emit()}),this._detachSubscription=l.detachments().subscribe(function(){return n.detach.emit()}),l.keydownEvents().subscribe(function(c){n.overlayKeydown.next(c),27===c.keyCode&&!n.disableClose&&!Bi(c)&&(c.preventDefault(),n._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(c){n.overlayOutsideClick.next(c)})}},{key:"_buildConfig",value:function(){var n=this._position=this.positionStrategy||this._createPositionStrategy(),l=new up({direction:this._dir,positionStrategy:n,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(l.width=this.width),(this.height||0===this.height)&&(l.height=this.height),(this.minWidth||0===this.minWidth)&&(l.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(l.minHeight=this.minHeight),this.backdropClass&&(l.backdropClass=this.backdropClass),this.panelClass&&(l.panelClass=this.panelClass),l}},{key:"_updatePositionStrategy",value:function(n){var l=this,c=this.positions.map(function(h){return{originX:h.originX,originY:h.originY,overlayX:h.overlayX,overlayY:h.overlayY,offsetX:h.offsetX||l.offsetX,offsetY:h.offsetY||l.offsetY,panelClass:h.panelClass||void 0}});return n.setOrigin(this.origin.elementRef).withPositions(c).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var n=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(n),n}},{key:"_attachOverlay",value:function(){var n=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(l){n.backdropClick.emit(l)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(t){return t.lift(new Sc(e,a))}}(function(){return n.positionChange.observers.length>0})).subscribe(function(l){n.positionChange.emit(l),0===n.positionChange.observers.length&&n._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(Xn),N($n),N(gE),N(Mr,8))},e.\u0275dir=ve({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[an]}),e}(),OV={provide:gE,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},fp=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Ai,OV],imports:[[$y,xg,q1],q1]}),e}();function mE(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg;return function(t){return t.lift(new IV(e,a))}}var IV=function(){function e(a,t){F(this,e),this.dueTime=a,this.scheduler=t}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new RY(t,this.dueTime,this.scheduler))}}]),e}(),RY=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).dueTime=l,h.scheduler=c,h.debouncedSubscription=null,h.lastValue=null,h.hasValue=!1,h}return W(t,[{key:"_next",value:function(l){this.clearDebounce(),this.lastValue=l,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(RV,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var l=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(l)}}},{key:"clearDebounce",value:function(){var l=this.debouncedSubscription;null!==l&&(this.remove(l),l.unsubscribe(),this.debouncedSubscription=null)}}]),t}(Ze);function RV(e){e.debouncedNext()}function LY(e){return function(a){return a.lift(new fQ(e))}}var fQ=function(){function e(a){F(this,e),this.total=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new FY(t,this.total))}}]),e}(),FY=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).total=l,c.count=0,c}return W(t,[{key:"_next",value:function(l){++this.count>this.total&&this.destination.next(l)}}]),t}(Ze),_E=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"create",value:function(n){return"undefined"==typeof MutationObserver?null:new MutationObserver(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),yE=function(){var e=function(){function a(t){F(this,a),this._mutationObserverFactory=t,this._observedElements=new Map}return W(a,[{key:"ngOnDestroy",value:function(){var n=this;this._observedElements.forEach(function(l,c){return n._cleanupObserver(c)})}},{key:"observe",value:function(n){var l=this,c=bc(n);return new gn(function(h){var C=l._observeElement(c).subscribe(h);return function(){C.unsubscribe(),l._unobserveElement(c)}})}},{key:"_observeElement",value:function(n){if(this._observedElements.has(n))this._observedElements.get(n).count++;else{var l=new qe,c=this._mutationObserverFactory.create(function(h){return l.next(h)});c&&c.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:c,stream:l,count:1})}return this._observedElements.get(n).stream}},{key:"_unobserveElement",value:function(n){this._observedElements.has(n)&&(this._observedElements.get(n).count--,this._observedElements.get(n).count||this._cleanupObserver(n))}},{key:"_cleanupObserver",value:function(n){if(this._observedElements.has(n)){var l=this._observedElements.get(n),c=l.observer,h=l.stream;c&&c.disconnect(),h.complete(),this._observedElements.delete(n)}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(_E))},e.\u0275prov=We({factory:function(){return new e(ce(_E))},token:e,providedIn:"root"}),e}(),nb=function(){var e=function(){function a(t,n,l){F(this,a),this._contentObserver=t,this._elementRef=n,this._ngZone=l,this.event=new ye,this._disabled=!1,this._currentSubscription=null}return W(a,[{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=it(n),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(n){this._debounce=Di(n),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var n=this;this._unsubscribe();var l=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){n._currentSubscription=(n.debounce?l.pipe(mE(n.debounce)):l).subscribe(n.event)})}},{key:"_unsubscribe",value:function(){var n;null===(n=this._currentSubscription)||void 0===n||n.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(yE),N(Ue),N(ft))},e.\u0275dir=ve({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),ld=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[_E]}),e}();function tS(e,a){return(e.getAttribute(a)||"").match(/\S+/g)||[]}var LV="cdk-describedby-message-container",rb="cdk-describedby-message",nS="cdk-describedby-host",bE=0,Du=new Map,na=null,FV=function(){var e=function(){function a(t){F(this,a),this._document=t}return W(a,[{key:"describe",value:function(n,l,c){if(this._canBeDescribed(n,l)){var h=CE(l,c);"string"!=typeof l?(NV(l),Du.set(h,{messageElement:l,referenceCount:0})):Du.has(h)||this._createMessageElement(l,c),this._isElementDescribedByMessage(n,h)||this._addMessageReference(n,h)}}},{key:"removeDescription",value:function(n,l,c){if(l&&this._isElementNode(n)){var h=CE(l,c);if(this._isElementDescribedByMessage(n,h)&&this._removeMessageReference(n,h),"string"==typeof l){var _=Du.get(h);_&&0===_.referenceCount&&this._deleteMessageElement(h)}na&&0===na.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var n=this._document.querySelectorAll("[".concat(nS,"]")),l=0;l-1&&c!==t._activeItemIndex&&(t._activeItemIndex=c)}})}return W(e,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ya(function(l){return t._pressedLetters.push(l)}),mE(n),vr(function(){return t._pressedLetters.length>0}),He(function(){return t._pressedLetters.join("")})).subscribe(function(l){for(var c=t._getItemsArray(),h=1;h0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var n=this._activeItem;this.updateActiveItem(t),this._activeItem!==n&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var n=this,l=t.keyCode,h=["altKey","ctrlKey","metaKey","shiftKey"].every(function(_){return!t[_]||n._allowedModifierKeys.indexOf(_)>-1});switch(l){case 9:return void this.tabOut.next();case 40:if(this._vertical&&h){this.setNextItemActive();break}return;case 38:if(this._vertical&&h){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&h){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&h){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&h){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&h){this.setLastItemActive();break}return;default:return void((h||Bi(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(l>=65&&l<=90||l>=48&&l<=57)&&this._letterKeyStream.next(String.fromCharCode(l))))}this._pressedLetters=[],t.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var n=this._getItemsArray(),l="number"==typeof t?t:n.indexOf(t),c=n[l];this._activeItem=null==c?null:c,this._activeItemIndex=l}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var n=this._getItemsArray(),l=1;l<=n.length;l++){var c=(this._activeItemIndex+t*l+n.length)%n.length;if(!this._skipPredicateFn(n[c]))return void this.setActiveItem(c)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,n){var l=this._getItemsArray();if(l[t]){for(;this._skipPredicateFn(l[t]);)if(!l[t+=n])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Wo?this._items.toArray():this._items}}]),e}(),wE=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"setActiveItem",value:function(l){this.activeItem&&this.activeItem.setInactiveStyles(),Ie(Oe(t.prototype),"setActiveItem",this).call(this,l),this.activeItem&&this.activeItem.setActiveStyles()}}]),t}(VV),ib=function(e){ae(t,e);var a=ue(t);function t(){var n;return F(this,t),(n=a.apply(this,arguments))._origin="program",n}return W(t,[{key:"setFocusOrigin",value:function(l){return this._origin=l,this}},{key:"setActiveItem",value:function(l){Ie(Oe(t.prototype),"setActiveItem",this).call(this,l),this.activeItem&&this.activeItem.focus(this._origin)}}]),t}(VV),BV=function(){var e=function(){function a(t){F(this,a),this._platform=t}return W(a,[{key:"isDisabled",value:function(n){return n.hasAttribute("disabled")}},{key:"isVisible",value:function(n){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(n)&&"visible"===getComputedStyle(n).visibility}},{key:"isTabbable",value:function(n){if(!this._platform.isBrowser)return!1;var l=function(e){try{return e.frameElement}catch(a){return null}}(function(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(n));if(l&&(-1===kE(l)||!this.isVisible(l)))return!1;var c=n.nodeName.toLowerCase(),h=kE(n);return n.hasAttribute("contenteditable")?-1!==h:!("iframe"===c||"object"===c||this._platform.WEBKIT&&this._platform.IOS&&!function(e){var a=e.nodeName.toLowerCase(),t="input"===a&&e.type;return"text"===t||"password"===t||"select"===a||"textarea"===a}(n))&&("audio"===c?!!n.hasAttribute("controls")&&-1!==h:"video"===c?-1!==h&&(null!==h||this._platform.FIREFOX||n.hasAttribute("controls")):n.tabIndex>=0)}},{key:"isFocusable",value:function(n,l){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var a=e.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||rS(e))}(n)&&!this.isDisabled(n)&&((null==l?void 0:l.ignoreVisibility)||this.isVisible(n))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en))},e.\u0275prov=We({factory:function(){return new e(ce(en))},token:e,providedIn:"root"}),e}();function rS(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var a=e.getAttribute("tabindex");return"-32768"!=a&&!(!a||isNaN(parseInt(a,10)))}function kE(e){if(!rS(e))return null;var a=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}var ME=function(){function e(a,t,n,l){var c=this,h=arguments.length>4&&void 0!==arguments[4]&&arguments[4];F(this,e),this._element=a,this._checker=t,this._ngZone=n,this._document=l,this._hasAttached=!1,this.startAnchorListener=function(){return c.focusLastTabbableElement()},this.endAnchorListener=function(){return c.focusFirstTabbableElement()},this._enabled=!0,h||this.attachAnchors()}return W(e,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,n=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),n&&(n.removeEventListener("focus",this.endAnchorListener),n.parentNode&&n.parentNode.removeChild(n)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(t){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){for(var n=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]")),l=0;l=0;l--){var c=n[l].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[l]):null;if(c)return c}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,n){t?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(or(1)).subscribe(t)}}]),e}(),xE=function(){var e=function(){function a(t,n,l){F(this,a),this._checker=t,this._ngZone=n,this._document=l}return W(a,[{key:"create",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new ME(n,this._checker,this._ngZone,this._document,l)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(BV),ce(ft),ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(BV),ce(ft),ce(lt))},token:e,providedIn:"root"}),e}(),UV=function(){var e=function(){function a(t,n,l){F(this,a),this._elementRef=t,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return W(a,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(n){this.focusTrap.enabled=it(n)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(n){this._autoCapture=it(n)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(n){var l=n.autoCapture;l&&!l.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=Ky(),this.focusTrap.focusInitialElementWhenReady()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(xE),N(lt))},e.\u0275dir=ve({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[an]}),e}();function ab(e){return 0===e.offsetX&&0===e.offsetY}function AE(e){var a=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}"undefined"!=typeof Element&∈var GV=new Ee("cdk-input-modality-detector-options"),ZY={ignoreKeys:[18,17,224,91,16]},Pg=tp({passive:!0,capture:!0}),WV=function(){var e=function(){function a(t,n,l,c){var h=this;F(this,a),this._platform=t,this._mostRecentTarget=null,this._modality=new Ma(null),this._lastTouchMs=0,this._onKeydown=function(_){var C,k;(null===(k=null===(C=h._options)||void 0===C?void 0:C.ignoreKeys)||void 0===k?void 0:k.some(function(D){return D===_.keyCode}))||(h._modality.next("keyboard"),h._mostRecentTarget=rp(_))},this._onMousedown=function(_){Date.now()-h._lastTouchMs<650||(h._modality.next(ab(_)?"keyboard":"mouse"),h._mostRecentTarget=rp(_))},this._onTouchstart=function(_){AE(_)?h._modality.next("keyboard"):(h._lastTouchMs=Date.now(),h._modality.next("touch"),h._mostRecentTarget=rp(_))},this._options=Object.assign(Object.assign({},ZY),c),this.modalityDetected=this._modality.pipe(LY(1)),this.modalityChanged=this.modalityDetected.pipe(Xa()),t.isBrowser&&n.runOutsideAngular(function(){l.addEventListener("keydown",h._onKeydown,Pg),l.addEventListener("mousedown",h._onMousedown,Pg),l.addEventListener("touchstart",h._onTouchstart,Pg)})}return W(a,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,Pg),document.removeEventListener("mousedown",this._onMousedown,Pg),document.removeEventListener("touchstart",this._onTouchstart,Pg))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en),ce(ft),ce(lt),ce(GV,8))},e.\u0275prov=We({factory:function(){return new e(ce(en),ce(ft),ce(lt),ce(GV,8))},token:e,providedIn:"root"}),e}(),EE=new Ee("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),PE=new Ee("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),iS=function(){var e=function(){function a(t,n,l,c){F(this,a),this._ngZone=n,this._defaultOptions=c,this._document=l,this._liveElement=t||this._createLiveElement()}return W(a,[{key:"announce",value:function(n){for(var h,_,l=this,c=this._defaultOptions,C=arguments.length,k=new Array(C>1?C-1:0),D=1;D1&&void 0!==arguments[1]&&arguments[1],c=bc(n);if(!this._platform.isBrowser||1!==c.nodeType)return ut(null);var h=W1(c)||this._getDocument(),_=this._elementInfo.get(c);if(_)return l&&(_.checkChildren=!0),_.subject;var C={checkChildren:l,subject:new qe,rootNode:h};return this._elementInfo.set(c,C),this._registerGlobalListeners(C),C.subject}},{key:"stopMonitoring",value:function(n){var l=bc(n),c=this._elementInfo.get(l);c&&(c.subject.complete(),this._setClasses(l),this._elementInfo.delete(l),this._removeGlobalListeners(c))}},{key:"focusVia",value:function(n,l,c){var h=this,_=bc(n);_===this._getDocument().activeElement?this._getClosestElementsInfo(_).forEach(function(k){var D=cr(k,2);return h._originChanged(D[0],l,D[1])}):(this._setOrigin(l),"function"==typeof _.focus&&_.focus(c))}},{key:"ngOnDestroy",value:function(){var n=this;this._elementInfo.forEach(function(l,c){return n.stopMonitoring(c)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(n,l,c){c?n.classList.add(l):n.classList.remove(l)}},{key:"_getFocusOrigin",value:function(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(n){return 1===this._detectionMode||!!(null==n?void 0:n.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(n,l){this._toggleClass(n,"cdk-focused",!!l),this._toggleClass(n,"cdk-touch-focused","touch"===l),this._toggleClass(n,"cdk-keyboard-focused","keyboard"===l),this._toggleClass(n,"cdk-mouse-focused","mouse"===l),this._toggleClass(n,"cdk-program-focused","program"===l)}},{key:"_setOrigin",value:function(n){var l=this,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){l._origin=n,l._originFromTouchInteraction="touch"===n&&c,0===l._detectionMode&&(clearTimeout(l._originTimeoutId),l._originTimeoutId=setTimeout(function(){return l._origin=null},l._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(n,l){var c=this._elementInfo.get(l),h=rp(n);!c||!c.checkChildren&&l!==h||this._originChanged(l,this._getFocusOrigin(h),c)}},{key:"_onBlur",value:function(n,l){var c=this._elementInfo.get(l);!c||c.checkChildren&&n.relatedTarget instanceof Node&&l.contains(n.relatedTarget)||(this._setClasses(l),this._emitOrigin(c.subject,null))}},{key:"_emitOrigin",value:function(n,l){this._ngZone.run(function(){return n.next(l)})}},{key:"_registerGlobalListeners",value:function(n){var l=this;if(this._platform.isBrowser){var c=n.rootNode,h=this._rootNodeFocusListenerCount.get(c)||0;h||this._ngZone.runOutsideAngular(function(){c.addEventListener("focus",l._rootNodeFocusAndBlurListener,aS),c.addEventListener("blur",l._rootNodeFocusAndBlurListener,aS)}),this._rootNodeFocusListenerCount.set(c,h+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){l._getWindow().addEventListener("focus",l._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ht(this._stopInputModalityDetector)).subscribe(function(_){l._setOrigin(_,!0)}))}}},{key:"_removeGlobalListeners",value:function(n){var l=n.rootNode;if(this._rootNodeFocusListenerCount.has(l)){var c=this._rootNodeFocusListenerCount.get(l);c>1?this._rootNodeFocusListenerCount.set(l,c-1):(l.removeEventListener("focus",this._rootNodeFocusAndBlurListener,aS),l.removeEventListener("blur",this._rootNodeFocusAndBlurListener,aS),this._rootNodeFocusListenerCount.delete(l))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(n,l,c){this._setClasses(n,l),this._emitOrigin(c.subject,l),this._lastFocusOrigin=l}},{key:"_getClosestElementsInfo",value:function(n){var l=[];return this._elementInfo.forEach(function(c,h){(h===n||c.checkChildren&&h.contains(n))&&l.push([h,c])}),l}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(ft),ce(en),ce(WV),ce(lt,8),ce(XV,8))},e.\u0275prov=We({factory:function(){return new e(ce(ft),ce(en),ce(WV),ce(lt,8),ce(XV,8))},token:e,providedIn:"root"}),e}(),OE=function(){var e=function(){function a(t,n){F(this,a),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new ye}return W(a,[{key:"ngAfterViewInit",value:function(){var n=this,l=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(l,1===l.nodeType&&l.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(c){return n.cdkFocusChange.emit(c)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ra))},e.\u0275dir=ve({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),e}(),ZV="cdk-high-contrast-black-on-white",KV="cdk-high-contrast-white-on-black",IE="cdk-high-contrast-active",RE=function(){var e=function(){function a(t,n){F(this,a),this._platform=t,this._document=n}return W(a,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);var l=this._document.defaultView||window,c=l&&l.getComputedStyle?l.getComputedStyle(n):null,h=(c&&c.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(n),h){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var n=this._document.body.classList;n.remove(IE),n.remove(ZV),n.remove(KV),this._hasCheckedHighContrastMode=!0;var l=this.getHighContrastMode();1===l?(n.add(IE),n.add(ZV)):2===l&&(n.add(IE),n.add(KV))}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en),ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(en),ce(lt))},token:e,providedIn:"root"}),e}(),LE=function(){var e=function a(t){F(this,a),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(ce(RE))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[ep,ld]]}),e}(),$V=new nc("12.2.4"),FE=function e(){F(this,e)},KY=function e(){F(this,e)},Ac="*";function Ei(e,a){return{type:7,name:e,definitions:a,options:{}}}function Tn(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:a,timings:e}}function NE(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:a}}function gt(e){return{type:6,styles:e,offset:null}}function Bn(e,a,t){return{type:0,name:e,styles:a,options:t}}function Dl(e){return{type:5,steps:e}}function zn(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:a,options:t}}function QV(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function BE(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:a,options:t}}function JV(e){Promise.resolve(null).then(e)}var Og=function(){function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;F(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+t}return W(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;JV(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),e}(),HE=function(){function e(a){var t=this;F(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;var n=0,l=0,c=0,h=this.players.length;0==h?JV(function(){return t._onFinish()}):this.players.forEach(function(_){_.onDone(function(){++n==h&&t._onFinish()}),_.onDestroy(function(){++l==h&&t._onDestroy()}),_.onStart(function(){++c==h&&t._onStart()})}),this.totalTime=this.players.reduce(function(_,C){return Math.max(_,C.totalTime)},0)}return W(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var n=t*this.totalTime;this.players.forEach(function(l){var c=l.totalTime?Math.min(1,n/l.totalTime):1;l.setPosition(c)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(n,l){return null===n||l.totalTime>n.totalTime?l:n},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),e}();function eB(){return"undefined"!=typeof window&&void 0!==window.document}function UE(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ud(e){switch(e.length){case 0:return new Og;case 1:return e[0];default:return new HE(e)}}function tB(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=[],_=[],C=-1,k=null;if(n.forEach(function(I){var L=I.offset,G=L==C,Y=G&&k||{};Object.keys(I).forEach(function(Q){var ie=Q,fe=I[Q];if("offset"!==Q)switch(ie=a.normalizePropertyName(ie,h),fe){case"!":fe=l[Q];break;case Ac:fe=c[Q];break;default:fe=a.normalizeStyleValue(Q,ie,fe,h)}Y[ie]=fe}),G||_.push(Y),k=Y,C=L}),h.length){var D="\n - ";throw new Error("Unable to animate due to the following errors:".concat(D).concat(h.join(D)))}return _}function GE(e,a,t,n){switch(a){case"start":e.onStart(function(){return n(t&&oS(t,"start",e))});break;case"done":e.onDone(function(){return n(t&&oS(t,"done",e))});break;case"destroy":e.onDestroy(function(){return n(t&&oS(t,"destroy",e))})}}function oS(e,a,t){var n=t.totalTime,c=sS(e.element,e.triggerName,e.fromState,e.toState,a||e.phaseName,null==n?e.totalTime:n,!!t.disabled),h=e._data;return null!=h&&(c._data=h),c}function sS(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,h=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:a,fromState:t,toState:n,phaseName:l,totalTime:c,disabled:!!h}}function Ka(e,a,t){var n;return e instanceof Map?(n=e.get(a))||e.set(a,n=t):(n=e[a])||(n=e[a]=t),n}function jE(e){var a=e.indexOf(":");return[e.substring(1,a),e.substr(a+1)]}var WE=function(a,t){return!1},YE=function(a,t){return!1},qE=function(a,t,n){return[]},JY=UE();(JY||"undefined"!=typeof Element)&&(WE=eB()?function(a,t){for(;t&&t!==document.documentElement;){if(t===a)return!0;t=t.parentNode||t.host}return!1}:function(a,t){return a.contains(t)},YE=function(){if(JY||Element.prototype.matches)return function(t,n){return t.matches(n)};var e=Element.prototype,a=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return a?function(t,n){return a.apply(t,[n])}:YE}(),qE=function(a,t,n){var l=[];if(n)for(var c=a.querySelectorAll(t),h=0;h1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(t){a[t]=e[t]}),a}function cd(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(a)for(var n in e)t[n]=e[n];else pp(e,t);return t}function uB(e,a,t){return t?a+":"+t+";":""}function cB(e){for(var a="",t=0;t *";case":leave":return"* => void";case":increment":return function(t,n){return parseFloat(n)>parseFloat(t)};case":decrement":return function(t,n){return parseFloat(n) *"}}(e,t);if("function"==typeof n)return void a.push(n);e=n}var l=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==l||l.length<4)return t.push('The provided transition expression "'.concat(e,'" is not supported')),a;var c=l[1],h=l[2],_=l[3];a.push(vB(c,_)),"<"==h[0]&&!("*"==c&&"*"==_)&&a.push(vB(_,c))}(n,t,a)}):t.push(e),t}var sb=new Set(["true","1"]),Al=new Set(["false","0"]);function vB(e,a){var t=sb.has(e)||Al.has(e),n=sb.has(a)||Al.has(a);return function(l,c){var h="*"==e||e==l,_="*"==a||a==c;return!h&&t&&"boolean"==typeof l&&(h=l?sb.has(e):Al.has(e)),!_&&n&&"boolean"==typeof c&&(_=c?sb.has(a):Al.has(a)),h&&_}}var a9=new RegExp("s*".concat(":self","s*,?"),"g");function mB(e,a,t){return new tP(e).build(a,t)}var tP=function(){function e(a){F(this,e),this._driver=a}return W(e,[{key:"build",value:function(t,n){var l=new o9(n);return this._resetContextStyleTimingState(l),bo(this,Ig(t),l)}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,n){var l=this,c=n.queryCount=0,h=n.depCount=0,_=[],C=[];return"@"==t.name.charAt(0)&&n.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(function(k){if(l._resetContextStyleTimingState(n),0==k.type){var D=k,I=D.name;I.toString().split(/\s*,\s*/).forEach(function(G){D.name=G,_.push(l.visitState(D,n))}),D.name=I}else if(1==k.type){var L=l.visitTransition(k,n);c+=L.queryCount,h+=L.depCount,C.push(L)}else n.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:_,transitions:C,queryCount:c,depCount:h,options:null}}},{key:"visitState",value:function(t,n){var l=this.visitStyle(t.styles,n),c=t.options&&t.options.params||null;if(l.containsDynamicStyles){var h=new Set,_=c||{};if(l.styles.forEach(function(k){if(fb(k)){var D=k;Object.keys(D).forEach(function(I){fB(D[I]).forEach(function(L){_.hasOwnProperty(L)||h.add(L)})})}}),h.size){var C=ob(h.values());n.errors.push('state("'.concat(t.name,'", ...) must define default values for all the following style substitutions: ').concat(C.join(", ")))}}return{type:0,name:t.name,style:l,options:c?{params:c}:null}}},{key:"visitTransition",value:function(t,n){n.queryCount=0,n.depCount=0;var l=bo(this,Ig(t.animation),n);return{type:1,matchers:eP(t.expr,n.errors),animation:l,queryCount:n.queryCount,depCount:n.depCount,options:Ic(t.options)}}},{key:"visitSequence",value:function(t,n){var l=this;return{type:2,steps:t.steps.map(function(c){return bo(l,c,n)}),options:Ic(t.options)}}},{key:"visitGroup",value:function(t,n){var l=this,c=n.currentTime,h=0,_=t.steps.map(function(C){n.currentTime=c;var k=bo(l,C,n);return h=Math.max(h,n.currentTime),k});return n.currentTime=h,{type:3,steps:_,options:Ic(t.options)}}},{key:"visitAnimate",value:function(t,n){var l=function(e,a){var t=null;if(e.hasOwnProperty("duration"))t=e;else if("number"==typeof e)return rP(gS(e,a).duration,0,"");var l=e;if(l.split(/\s+/).some(function(_){return"{"==_.charAt(0)&&"{"==_.charAt(1)})){var h=rP(0,0,"");return h.dynamic=!0,h.strValue=l,h}return rP((t=t||gS(l,a)).duration,t.delay,t.easing)}(t.timings,n.errors);n.currentAnimateTimings=l;var c,h=t.styles?t.styles:gt({});if(5==h.type)c=this.visitKeyframes(h,n);else{var _=t.styles,C=!1;if(!_){C=!0;var k={};l.easing&&(k.easing=l.easing),_=gt(k)}n.currentTime+=l.duration+l.delay;var D=this.visitStyle(_,n);D.isEmptyStep=C,c=D}return n.currentAnimateTimings=null,{type:4,timings:l,style:c,options:null}}},{key:"visitStyle",value:function(t,n){var l=this._makeStyleAst(t,n);return this._validateStyleAst(l,n),l}},{key:"_makeStyleAst",value:function(t,n){var l=[];Array.isArray(t.styles)?t.styles.forEach(function(_){"string"==typeof _?_==Ac?l.push(_):n.errors.push("The provided style string value ".concat(_," is not allowed.")):l.push(_)}):l.push(t.styles);var c=!1,h=null;return l.forEach(function(_){if(fb(_)){var C=_,k=C.easing;if(k&&(h=k,delete C.easing),!c)for(var D in C)if(C[D].toString().indexOf("{{")>=0){c=!0;break}}}),{type:6,styles:l,easing:h,offset:t.offset,containsDynamicStyles:c,options:null}}},{key:"_validateStyleAst",value:function(t,n){var l=this,c=n.currentAnimateTimings,h=n.currentTime,_=n.currentTime;c&&_>0&&(_-=c.duration+c.delay),t.styles.forEach(function(C){"string"!=typeof C&&Object.keys(C).forEach(function(k){if(l._driver.validateStyleProperty(k)){var D=n.collectedStyles[n.currentQuerySelector],I=D[k],L=!0;I&&(_!=h&&_>=I.startTime&&h<=I.endTime&&(n.errors.push('The CSS property "'.concat(k,'" that exists between the times of "').concat(I.startTime,'ms" and "').concat(I.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(_,'ms" and "').concat(h,'ms"')),L=!1),_=I.startTime),L&&(D[k]={startTime:_,endTime:h}),n.options&&function(e,a,t){var n=a.params||{},l=fB(e);l.length&&l.forEach(function(c){n.hasOwnProperty(c)||t.push("Unable to resolve the local animation param ".concat(c," in the given list of values"))})}(C[k],n.options,n.errors)}else n.errors.push('The provided animation property "'.concat(k,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(t,n){var l=this,c={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push("keyframes() must be placed inside of a call to animate()"),c;var _=0,C=[],k=!1,D=!1,I=0,L=t.steps.map(function(be){var Ce=l._makeStyleAst(be,n),je=null!=Ce.offset?Ce.offset:function(e){if("string"==typeof e)return null;var a=null;if(Array.isArray(e))e.forEach(function(n){if(fb(n)&&n.hasOwnProperty("offset")){var l=n;a=parseFloat(l.offset),delete l.offset}});else if(fb(e)&&e.hasOwnProperty("offset")){var t=e;a=parseFloat(t.offset),delete t.offset}return a}(Ce.styles),$e=0;return null!=je&&(_++,$e=Ce.offset=je),D=D||$e<0||$e>1,k=k||$e0&&_0?Ce==Q?1:Y*Ce:C[Ce],$e=je*se;n.currentTime=ie+fe.delay+$e,fe.duration=$e,l._validateStyleAst(be,n),be.offset=je,c.styles.push(be)}),c}},{key:"visitReference",value:function(t,n){return{type:8,animation:bo(this,Ig(t.animation),n),options:Ic(t.options)}}},{key:"visitAnimateChild",value:function(t,n){return n.depCount++,{type:9,options:Ic(t.options)}}},{key:"visitAnimateRef",value:function(t,n){return{type:10,animation:this.visitReference(t.animation,n),options:Ic(t.options)}}},{key:"visitQuery",value:function(t,n){var l=n.currentQuerySelector,c=t.options||{};n.queryCount++,n.currentQuery=t;var _=cr(function(e){var a=!!e.split(/\s*,\s*/).find(function(t){return":self"==t});return a&&(e=e.replace(a9,"")),[e=e.replace(/@\*/g,vS).replace(/@\w+/g,function(t){return vS+"-"+t.substr(1)}).replace(/:animating/g,KE),a]}(t.selector),2),C=_[0],k=_[1];n.currentQuerySelector=l.length?l+" "+C:C,Ka(n.collectedStyles,n.currentQuerySelector,{});var D=bo(this,Ig(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=l,{type:11,selector:C,limit:c.limit||0,optional:!!c.optional,includeSelf:k,animation:D,originalSelector:t.selector,options:Ic(t.options)}}},{key:"visitStagger",value:function(t,n){n.currentQuery||n.errors.push("stagger() can only be used inside of query()");var l="full"===t.timings?{duration:0,delay:0,easing:"full"}:gS(t.timings,n.errors,!0);return{type:12,animation:bo(this,Ig(t.animation),n),timings:l,options:null}}}]),e}(),o9=function e(a){F(this,e),this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function fb(e){return!Array.isArray(e)&&"object"==typeof e}function Ic(e){return e?(e=pp(e)).params&&(e.params=function(e){return e?pp(e):null}(e.params)):e={},e}function rP(e,a,t){return{duration:e,delay:a,easing:t}}function db(e,a,t,n,l,c){var h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,_=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:a,preStyleProps:t,postStyleProps:n,duration:l,delay:c,totalTime:l+c,easing:h,subTimeline:_}}var CS=function(){function e(){F(this,e),this._map=new Map}return W(e,[{key:"consume",value:function(t){var n=this._map.get(t);return n?this._map.delete(t):n=[],n}},{key:"append",value:function(t,n){var l,c=this._map.get(t);c||this._map.set(t,c=[]),(l=c).push.apply(l,At(n))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),u9=new RegExp(":enter","g"),f9=new RegExp(":leave","g");function yB(e,a,t,n,l){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},_=arguments.length>7?arguments[7]:void 0,C=arguments.length>8?arguments[8]:void 0,k=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new wS).buildKeyframes(e,a,t,n,l,c,h,_,C,k)}var wS=function(){function e(){F(this,e)}return W(e,[{key:"buildKeyframes",value:function(t,n,l,c,h,_,C,k,D){var I=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];D=D||new CS;var L=new kS(t,n,D,c,h,I,[]);L.options=k,L.currentTimeline.setStyles([_],null,L.errors,k),bo(this,l,L);var G=L.timelines.filter(function(Q){return Q.containsAnimation()});if(G.length&&Object.keys(C).length){var Y=G[G.length-1];Y.allowOnlyTimelineStyles()||Y.setStyles([C],null,L.errors,k)}return G.length?G.map(function(Q){return Q.buildKeyframes()}):[db(n,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,n){}},{key:"visitState",value:function(t,n){}},{key:"visitTransition",value:function(t,n){}},{key:"visitAnimateChild",value:function(t,n){var l=n.subInstructions.consume(n.element);if(l){var c=n.createSubContext(t.options),h=n.currentTimeline.currentTime,_=this._visitSubInstructions(l,c,c.options);h!=_&&n.transformIntoNewTimeline(_)}n.previousNode=t}},{key:"visitAnimateRef",value:function(t,n){var l=n.createSubContext(t.options);l.transformIntoNewTimeline(),this.visitReference(t.animation,l),n.transformIntoNewTimeline(l.currentTimeline.currentTime),n.previousNode=t}},{key:"_visitSubInstructions",value:function(t,n,l){var h=n.currentTimeline.currentTime,_=null!=l.duration?hp(l.duration):null,C=null!=l.delay?hp(l.delay):null;return 0!==_&&t.forEach(function(k){var D=n.appendInstructionToTimeline(k,_,C);h=Math.max(h,D.duration+D.delay)}),h}},{key:"visitReference",value:function(t,n){n.updateOptions(t.options,!0),bo(this,t.animation,n),n.previousNode=t}},{key:"visitSequence",value:function(t,n){var l=this,c=n.subContextCount,h=n,_=t.options;if(_&&(_.params||_.delay)&&((h=n.createSubContext(_)).transformIntoNewTimeline(),null!=_.delay)){6==h.previousNode.type&&(h.currentTimeline.snapshotCurrentStyles(),h.previousNode=SS);var C=hp(_.delay);h.delayNextStep(C)}t.steps.length&&(t.steps.forEach(function(k){return bo(l,k,h)}),h.currentTimeline.applyStylesToKeyframe(),h.subContextCount>c&&h.transformIntoNewTimeline()),n.previousNode=t}},{key:"visitGroup",value:function(t,n){var l=this,c=[],h=n.currentTimeline.currentTime,_=t.options&&t.options.delay?hp(t.options.delay):0;t.steps.forEach(function(C){var k=n.createSubContext(t.options);_&&k.delayNextStep(_),bo(l,C,k),h=Math.max(h,k.currentTimeline.currentTime),c.push(k.currentTimeline)}),c.forEach(function(C){return n.currentTimeline.mergeTimelineCollectedStyles(C)}),n.transformIntoNewTimeline(h),n.previousNode=t}},{key:"_visitTiming",value:function(t,n){if(t.dynamic){var l=t.strValue;return gS(n.params?mS(l,n.params,n.errors):l,n.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,n){var l=n.currentAnimateTimings=this._visitTiming(t.timings,n),c=n.currentTimeline;l.delay&&(n.incrementTime(l.delay),c.snapshotCurrentStyles());var h=t.style;5==h.type?this.visitKeyframes(h,n):(n.incrementTime(l.duration),this.visitStyle(h,n),c.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}},{key:"visitStyle",value:function(t,n){var l=n.currentTimeline,c=n.currentAnimateTimings;!c&&l.getCurrentStyleProperties().length&&l.forwardFrame();var h=c&&c.easing||t.easing;t.isEmptyStep?l.applyEmptyStep(h):l.setStyles(t.styles,h,n.errors,n.options),n.previousNode=t}},{key:"visitKeyframes",value:function(t,n){var l=n.currentAnimateTimings,c=n.currentTimeline.duration,h=l.duration,C=n.createSubContext().currentTimeline;C.easing=l.easing,t.styles.forEach(function(k){C.forwardTime((k.offset||0)*h),C.setStyles(k.styles,k.easing,n.errors,n.options),C.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(C),n.transformIntoNewTimeline(c+h),n.previousNode=t}},{key:"visitQuery",value:function(t,n){var l=this,c=n.currentTimeline.currentTime,h=t.options||{},_=h.delay?hp(h.delay):0;_&&(6===n.previousNode.type||0==c&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=SS);var C=c,k=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!h.optional,n.errors);n.currentQueryTotal=k.length;var D=null;k.forEach(function(I,L){n.currentQueryIndex=L;var G=n.createSubContext(t.options,I);_&&G.delayNextStep(_),I===n.element&&(D=G.currentTimeline),bo(l,t.animation,G),G.currentTimeline.applyStylesToKeyframe(),C=Math.max(C,G.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(C),D&&(n.currentTimeline.mergeTimelineCollectedStyles(D),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}},{key:"visitStagger",value:function(t,n){var l=n.parentContext,c=n.currentTimeline,h=t.timings,_=Math.abs(h.duration),C=_*(n.currentQueryTotal-1),k=_*n.currentQueryIndex;switch(h.duration<0?"reverse":h.easing){case"reverse":k=C-k;break;case"full":k=l.currentStaggerTime}var I=n.currentTimeline;k&&I.delayNextStep(k);var L=I.currentTime;bo(this,t.animation,n),n.previousNode=t,l.currentStaggerTime=c.currentTime-L+(c.startTime-l.currentTimeline.startTime)}}]),e}(),SS={},kS=function(){function e(a,t,n,l,c,h,_,C){F(this,e),this._driver=a,this.element=t,this.subInstructions=n,this._enterClassName=l,this._leaveClassName=c,this.errors=h,this.timelines=_,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=SS,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=C||new iP(this._driver,t,0),_.push(this.currentTimeline)}return W(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,n){var l=this;if(t){var c=t,h=this.options;null!=c.duration&&(h.duration=hp(c.duration)),null!=c.delay&&(h.delay=hp(c.delay));var _=c.params;if(_){var C=h.params;C||(C=this.options.params={}),Object.keys(_).forEach(function(k){(!n||!C.hasOwnProperty(k))&&(C[k]=mS(_[k],C,l.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var n=this.options.params;if(n){var l=t.params={};Object.keys(n).forEach(function(c){l[c]=n[c]})}}return t}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0,c=n||this.element,h=new e(this._driver,c,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(c,l||0));return h.previousNode=this.previousNode,h.currentAnimateTimings=this.currentAnimateTimings,h.options=this._copyOptions(),h.updateOptions(t),h.currentQueryIndex=this.currentQueryIndex,h.currentQueryTotal=this.currentQueryTotal,h.parentContext=this,this.subContextCount++,h}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=SS,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,n,l){var c={duration:null!=n?n:t.duration,delay:this.currentTimeline.currentTime+(null!=l?l:0)+t.delay,easing:""},h=new d9(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,c,t.stretchStartingKeyframe);return this.timelines.push(h),c}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,n,l,c,h,_){var C=[];if(c&&C.push(this.element),t.length>0){t=(t=t.replace(u9,"."+this._enterClassName)).replace(f9,"."+this._leaveClassName);var D=this._driver.query(this.element,t,1!=l);0!==l&&(D=l<0?D.slice(D.length+l,D.length):D.slice(0,l)),C.push.apply(C,At(D))}return!h&&0==C.length&&_.push('`query("'.concat(n,'")` returned zero elements. (Use `query("').concat(n,'", { optional: true })` if you wish to allow this.)')),C}}]),e}(),iP=function(){function e(a,t,n,l){F(this,e),this._driver=a,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=l,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return W(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,n){this._localTimelineStyles[t]=n,this._globalTimelineStyles[t]=n,this._styleSummary[t]={time:this.currentTime,value:n}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var n=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(l){n._backFill[l]=n._globalTimelineStyles[l]||Ac,n._currentKeyframe[l]=Ac}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,n,l,c){var h=this;n&&(this._previousKeyframe.easing=n);var _=c&&c.params||{},C=function(e,a){var n,t={};return e.forEach(function(l){"*"===l?(n=n||Object.keys(a)).forEach(function(c){t[c]=Ac}):cd(l,!1,t)}),t}(t,this._globalTimelineStyles);Object.keys(C).forEach(function(k){var D=mS(C[k],_,l);h._pendingStyles[k]=D,h._localTimelineStyles.hasOwnProperty(k)||(h._backFill[k]=h._globalTimelineStyles.hasOwnProperty(k)?h._globalTimelineStyles[k]:Ac),h._updateStyle(k,D)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,n=this._pendingStyles,l=Object.keys(n);0!=l.length&&(this._pendingStyles={},l.forEach(function(c){t._currentKeyframe[c]=n[c]}),Object.keys(this._localTimelineStyles).forEach(function(c){t._currentKeyframe.hasOwnProperty(c)||(t._currentKeyframe[c]=t._localTimelineStyles[c])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(n){var l=t._localTimelineStyles[n];t._pendingStyles[n]=l,t._updateStyle(n,l)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var n in this._currentKeyframe)t.push(n);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var n=this;Object.keys(t._styleSummary).forEach(function(l){var c=n._styleSummary[l],h=t._styleSummary[l];(!c||h.time>c.time)&&n._updateStyle(l,h.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var n=new Set,l=new Set,c=1===this._keyframes.size&&0===this.duration,h=[];this._keyframes.forEach(function(I,L){var G=cd(I,!0);Object.keys(G).forEach(function(Y){var Q=G[Y];"!"==Q?n.add(Y):Q==Ac&&l.add(Y)}),c||(G.offset=L/t.duration),h.push(G)});var _=n.size?ob(n.values()):[],C=l.size?ob(l.values()):[];if(c){var k=h[0],D=pp(k);k.offset=0,D.offset=1,h=[k,D]}return db(this.element,h,_,C,this.duration,this.startTime,this.easing,!1)}}]),e}(),d9=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h,_,C){var k,D=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return F(this,t),(k=a.call(this,n,l,C.delay)).keyframes=c,k.preStyleProps=h,k.postStyleProps=_,k._stretchStartingKeyframe=D,k.timings={duration:C.duration,delay:C.delay,easing:C.easing},k}return W(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var l=this.keyframes,c=this.timings,h=c.delay,_=c.duration,C=c.easing;if(this._stretchStartingKeyframe&&h){var k=[],D=_+h,I=h/D,L=cd(l[0],!1);L.offset=0,k.push(L);var G=cd(l[0],!1);G.offset=MS(I),k.push(G);for(var Y=l.length-1,Q=1;Q<=Y;Q++){var ie=cd(l[Q],!1);ie.offset=MS((h+ie.offset*_)/D),k.push(ie)}_=D,h=0,C="",l=k}return db(this.element,l,this.preStyleProps,this.postStyleProps,_,h,C,!0)}}]),t}(iP);function MS(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=Math.pow(10,a-1);return Math.round(e*t)/t}var aP=function e(){F(this,e)},p9=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"normalizePropertyName",value:function(l,c){return JE(l)}},{key:"normalizeStyleValue",value:function(l,c,h,_){var C="",k=h.toString().trim();if(xS[c]&&0!==h&&"0"!==h)if("number"==typeof h)C="px";else{var D=h.match(/^[+-]?[\d\.]+([a-z]*)$/);D&&0==D[1].length&&_.push("Please provide a CSS unit value for ".concat(l,":").concat(h))}return k+C}}]),t}(aP),xS=function(){return e="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),a={},e.forEach(function(t){return a[t]=!0}),a;var e,a}();function hb(e,a,t,n,l,c,h,_,C,k,D,I,L){return{type:0,element:e,triggerName:a,isRemovalTransition:l,fromState:t,fromStyles:c,toState:n,toStyles:h,timelines:_,queriedElements:C,preStyleProps:k,postStyleProps:D,totalTime:I,errors:L}}var TS={},bB=function(){function e(a,t,n){F(this,e),this._triggerName=a,this.ast=t,this._stateStyles=n}return W(e,[{key:"match",value:function(t,n,l,c){return function(e,a,t,n,l){return e.some(function(c){return c(a,t,n,l)})}(this.ast.matchers,t,n,l,c)}},{key:"buildStyles",value:function(t,n,l){var c=this._stateStyles["*"],h=this._stateStyles[t],_=c?c.buildStyles(n,l):{};return h?h.buildStyles(n,l):_}},{key:"build",value:function(t,n,l,c,h,_,C,k,D,I){var L=[],G=this.ast.options&&this.ast.options.params||TS,Q=this.buildStyles(l,C&&C.params||TS,L),ie=k&&k.params||TS,fe=this.buildStyles(c,ie,L),se=new Set,be=new Map,Ce=new Map,je="void"===c,$e={params:Object.assign(Object.assign({},G),ie)},kt=I?[]:yB(t,n,this.ast.animation,h,_,Q,fe,$e,D,L),Dn=0;if(kt.forEach(function(Hr){Dn=Math.max(Hr.duration+Hr.delay,Dn)}),L.length)return hb(n,this._triggerName,l,c,je,Q,fe,[],[],be,Ce,Dn,L);kt.forEach(function(Hr){var zi=Hr.element,Ll=Ka(be,zi,{});Hr.preStyleProps.forEach(function(Qa){return Ll[Qa]=!0});var Fu=Ka(Ce,zi,{});Hr.postStyleProps.forEach(function(Qa){return Fu[Qa]=!0}),zi!==n&&se.add(zi)});var Zn=ob(se.values());return hb(n,this._triggerName,l,c,je,Q,fe,kt,Zn,be,Ce,Dn)}}]),e}(),wB=function(){function e(a,t,n){F(this,e),this.styles=a,this.defaultParams=t,this.normalizer=n}return W(e,[{key:"buildStyles",value:function(t,n){var l=this,c={},h=pp(this.defaultParams);return Object.keys(t).forEach(function(_){var C=t[_];null!=C&&(h[_]=C)}),this.styles.styles.forEach(function(_){if("string"!=typeof _){var C=_;Object.keys(C).forEach(function(k){var D=C[k];D.length>1&&(D=mS(D,h,n));var I=l.normalizer.normalizePropertyName(k,n);D=l.normalizer.normalizeStyleValue(k,I,D,n),c[I]=D})}}),c}}]),e}(),_9=function(){function e(a,t,n){var l=this;F(this,e),this.name=a,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states={},t.states.forEach(function(c){l.states[c.name]=new wB(c.style,c.options&&c.options.params||{},n)}),SB(this.states,"true","1"),SB(this.states,"false","0"),t.transitions.forEach(function(c){l.transitionFactories.push(new bB(a,c,l.states))}),this.fallbackTransition=function(e,a,t){return new bB(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(h,_){return!0}],options:null,queryCount:0,depCount:0},a)}(a,this.states)}return W(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,n,l,c){return this.transitionFactories.find(function(_){return _.match(t,n,l,c)})||null}},{key:"matchStyles",value:function(t,n,l){return this.fallbackTransition.buildStyles(t,n,l)}}]),e}();function SB(e,a,t){e.hasOwnProperty(a)?e.hasOwnProperty(t)||(e[t]=e[a]):e.hasOwnProperty(t)&&(e[a]=e[t])}var b9=new CS,C9=function(){function e(a,t,n){F(this,e),this.bodyNode=a,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return W(e,[{key:"register",value:function(t,n){var l=[],c=mB(this._driver,n,l);if(l.length)throw new Error("Unable to build the animation due to the following errors: ".concat(l.join("\n")));this._animations[t]=c}},{key:"_buildPlayer",value:function(t,n,l){var c=t.element,h=tB(this._driver,this._normalizer,c,t.keyframes,n,l);return this._driver.animate(c,h,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,n){var C,l=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h=[],_=this._animations[t],k=new Map;if(_?(C=yB(this._driver,n,_,oB,hS,{},{},c,b9,h)).forEach(function(L){var G=Ka(k,L.element,{});L.postStyleProps.forEach(function(Y){return G[Y]=null})}):(h.push("The requested animation doesn't exist or has already been destroyed"),C=[]),h.length)throw new Error("Unable to create the animation due to the following errors: ".concat(h.join("\n")));k.forEach(function(L,G){Object.keys(L).forEach(function(Y){L[Y]=l._driver.computeStyle(G,Y,Ac)})});var D=C.map(function(L){var G=k.get(L.element);return l._buildPlayer(L,{},G)}),I=ud(D);return this._playersById[t]=I,I.onDestroy(function(){return l.destroy(t)}),this.players.push(I),I}},{key:"destroy",value:function(t){var n=this._getPlayer(t);n.destroy(),delete this._playersById[t];var l=this.players.indexOf(n);l>=0&&this.players.splice(l,1)}},{key:"_getPlayer",value:function(t){var n=this._playersById[t];if(!n)throw new Error("Unable to find the timeline player referenced by ".concat(t));return n}},{key:"listen",value:function(t,n,l,c){var h=sS(n,"","","");return GE(this._getPlayer(t),l,h,c),function(){}}},{key:"command",value:function(t,n,l,c){if("register"!=l)if("create"!=l){var _=this._getPlayer(t);switch(l){case"play":_.play();break;case"pause":_.pause();break;case"reset":_.reset();break;case"restart":_.restart();break;case"finish":_.finish();break;case"init":_.init();break;case"setPosition":_.setPosition(parseFloat(c[0]));break;case"destroy":this.destroy(t)}}else this.create(t,n,c[0]||{});else this.register(t,c[0])}}]),e}(),DS="ng-animate-queued",oP="ng-animate-disabled",pb=".ng-animate-disabled",w9="ng-star-inserted",k9=[],sP={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},kB={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Co="__ng_removed",vb=function(){function e(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";F(this,e),this.namespaceId=t;var n=a&&a.hasOwnProperty("value"),l=n?a.value:a;if(this.value=MB(l),n){var c=pp(a);delete c.value,this.options=c}else this.options={};this.options.params||(this.options.params={})}return W(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var n=t.params;if(n){var l=this.options.params;Object.keys(n).forEach(function(c){null==l[c]&&(l[c]=n[c])})}}}]),e}(),Lg="void",lP=new vb(Lg),gb=function(){function e(a,t,n){F(this,e),this.id=a,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,Rs(t,this._hostClassName)}return W(e,[{key:"listen",value:function(t,n,l,c){var h=this;if(!this._triggers.hasOwnProperty(n))throw new Error('Unable to listen on the animation trigger event "'.concat(l,'" because the animation trigger "').concat(n,"\" doesn't exist!"));if(null==l||0==l.length)throw new Error('Unable to listen on the animation trigger "'.concat(n,'" because the provided event is undefined!'));if(!function(e){return"start"==e||"done"==e}(l))throw new Error('The provided animation trigger event "'.concat(l,'" for the animation trigger "').concat(n,'" is not supported!'));var _=Ka(this._elementListeners,t,[]),C={name:n,phase:l,callback:c};_.push(C);var k=Ka(this._engine.statesByElement,t,{});return k.hasOwnProperty(n)||(Rs(t,pS),Rs(t,pS+"-"+n),k[n]=lP),function(){h._engine.afterFlush(function(){var D=_.indexOf(C);D>=0&&_.splice(D,1),h._triggers[n]||delete k[n]})}}},{key:"register",value:function(t,n){return!this._triggers[t]&&(this._triggers[t]=n,!0)}},{key:"_getTrigger",value:function(t){var n=this._triggers[t];if(!n)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return n}},{key:"trigger",value:function(t,n,l){var c=this,h=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],_=this._getTrigger(n),C=new AS(this.id,n,t),k=this._engine.statesByElement.get(t);k||(Rs(t,pS),Rs(t,pS+"-"+n),this._engine.statesByElement.set(t,k={}));var D=k[n],I=new vb(l,this.id),L=l&&l.hasOwnProperty("value");!L&&D&&I.absorbOptions(D.options),k[n]=I,D||(D=lP);var G=I.value===Lg;if(G||D.value!==I.value){var fe=Ka(this._engine.playersByElement,t,[]);fe.forEach(function(Ce){Ce.namespaceId==c.id&&Ce.triggerName==n&&Ce.queued&&Ce.destroy()});var se=_.matchTransition(D.value,I.value,t,I.params),be=!1;if(!se){if(!h)return;se=_.fallbackTransition,be=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:se,fromState:D,toState:I,player:C,isFallbackTransition:be}),be||(Rs(t,DS),C.onStart(function(){Fg(t,DS)})),C.onDone(function(){var Ce=c.players.indexOf(C);Ce>=0&&c.players.splice(Ce,1);var je=c._engine.playersByElement.get(t);if(je){var $e=je.indexOf(C);$e>=0&&je.splice($e,1)}}),this.players.push(C),fe.push(C),C}if(!A9(D.params,I.params)){var Y=[],Q=_.matchStyles(D.value,D.params,Y),ie=_.matchStyles(I.value,I.params,Y);Y.length?this._engine.reportError(Y):this._engine.afterFlush(function(){Pc(t,Q),Au(t,ie)})}}},{key:"deregister",value:function(t){var n=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(l,c){delete l[t]}),this._elementListeners.forEach(function(l,c){n._elementListeners.set(c,l.filter(function(h){return h.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var n=this._engine.playersByElement.get(t);n&&(n.forEach(function(l){return l.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,n){var l=this,c=this._engine.driver.query(t,vS,!0);c.forEach(function(h){if(!h[Co]){var _=l._engine.fetchNamespacesByElement(h);_.size?_.forEach(function(C){return C.triggerLeaveAnimation(h,n,!1,!0)}):l.clearElementCache(h)}}),this._engine.afterFlushAnimationsDone(function(){return c.forEach(function(h){return l.clearElementCache(h)})})}},{key:"triggerLeaveAnimation",value:function(t,n,l,c){var h=this,_=this._engine.statesByElement.get(t);if(_){var C=[];if(Object.keys(_).forEach(function(k){if(h._triggers[k]){var D=h.trigger(t,k,Lg,c);D&&C.push(D)}}),C.length)return this._engine.markElementAsRemoved(this.id,t,!0,n),l&&ud(C).onDone(function(){return h._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var n=this,l=this._elementListeners.get(t),c=this._engine.statesByElement.get(t);if(l&&c){var h=new Set;l.forEach(function(_){var C=_.name;if(!h.has(C)){h.add(C);var D=n._triggers[C].fallbackTransition,I=c[C]||lP,L=new vb(Lg),G=new AS(n.id,C,t);n._engine.totalQueuedPlayers++,n._queue.push({element:t,triggerName:C,transition:D,fromState:I,toState:L,player:G,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,n){var l=this,c=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),!this.triggerLeaveAnimation(t,n,!0)){var h=!1;if(c.totalAnimations){var _=c.players.length?c.playersByQueriedElement.get(t):[];if(_&&_.length)h=!0;else for(var C=t;C=C.parentNode;)if(c.statesByElement.get(C)){h=!0;break}}if(this.prepareLeaveAnimationListeners(t),h)c.markElementAsRemoved(this.id,t,!1,n);else{var D=t[Co];(!D||D===sP)&&(c.afterFlush(function(){return l.clearElementCache(t)}),c.destroyInnerAnimations(t),c._onRemovalComplete(t,n))}}}},{key:"insertNode",value:function(t,n){Rs(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var n=this,l=[];return this._queue.forEach(function(c){var h=c.player;if(!h.destroyed){var _=c.element,C=n._elementListeners.get(_);C&&C.forEach(function(k){if(k.name==c.triggerName){var D=sS(_,c.triggerName,c.fromState.value,c.toState.value);D._data=t,GE(c.player,k.phase,D,k.callback)}}),h.markedForDestroy?n._engine.afterFlush(function(){h.destroy()}):l.push(c)}}),this._queue=[],l.sort(function(c,h){var _=c.transition.ast.depCount,C=h.transition.ast.depCount;return 0==_||0==C?_-C:n._engine.driver.containsElement(c.element,h.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(n){return n.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var n=!1;return this._elementListeners.has(t)&&(n=!0),!!this._queue.find(function(l){return l.element===t})||n}}]),e}(),M9=function(){function e(a,t,n){F(this,e),this.bodyNode=a,this.driver=t,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=function(l,c){}}return W(e,[{key:"_onRemovalComplete",value:function(t,n){this.onRemovalComplete(t,n)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(n){n.players.forEach(function(l){l.queued&&t.push(l)})}),t}},{key:"createNamespace",value:function(t,n){var l=new gb(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(l,n):(this.newHostElements.set(n,l),this.collectEnterElement(n)),this._namespaceLookup[t]=l}},{key:"_balanceNamespaceList",value:function(t,n){var l=this._namespaceList.length-1;if(l>=0){for(var c=!1,h=l;h>=0;h--)if(this.driver.containsElement(this._namespaceList[h].hostElement,n)){this._namespaceList.splice(h+1,0,t),c=!0;break}c||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(n,t),t}},{key:"register",value:function(t,n){var l=this._namespaceLookup[t];return l||(l=this.createNamespace(t,n)),l}},{key:"registerTrigger",value:function(t,n,l){var c=this._namespaceLookup[t];c&&c.register(n,l)&&this.totalAnimations++}},{key:"destroy",value:function(t,n){var l=this;if(t){var c=this._fetchNamespace(t);this.afterFlush(function(){l.namespacesByHostElement.delete(c.hostElement),delete l._namespaceLookup[t];var h=l._namespaceList.indexOf(c);h>=0&&l._namespaceList.splice(h,1)}),this.afterFlushAnimationsDone(function(){return c.destroy(n)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var n=new Set,l=this.statesByElement.get(t);if(l)for(var c=Object.keys(l),h=0;h=0&&this.collectedLeaveElements.splice(_,1)}if(t){var C=this._fetchNamespace(t);C&&C.insertNode(n,l)}c&&this.collectEnterElement(n)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Rs(t,oP)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Fg(t,oP))}},{key:"removeNode",value:function(t,n,l,c){if(ES(n)){var h=t?this._fetchNamespace(t):null;if(h?h.removeNode(n,c):this.markElementAsRemoved(t,n,!1,c),l){var _=this.namespacesByHostElement.get(n);_&&_.id!==t&&_.removeNode(n,c)}}else this._onRemovalComplete(n,c)}},{key:"markElementAsRemoved",value:function(t,n,l,c){this.collectedLeaveElements.push(n),n[Co]={namespaceId:t,setForRemoval:c,hasAnimation:l,removedBeforeQueried:!1}}},{key:"listen",value:function(t,n,l,c,h){return ES(n)?this._fetchNamespace(t).listen(n,l,c,h):function(){}}},{key:"_buildInstruction",value:function(t,n,l,c,h){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,l,c,t.fromState.options,t.toState.options,n,h)}},{key:"destroyInnerAnimations",value:function(t){var n=this,l=this.driver.query(t,vS,!0);l.forEach(function(c){return n.destroyActiveAnimationsForElement(c)}),0!=this.playersByQueriedElement.size&&(l=this.driver.query(t,KE,!0)).forEach(function(c){return n.finishActiveQueriedAnimationOnElement(c)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var n=this.playersByElement.get(t);n&&n.forEach(function(l){l.queued?l.markedForDestroy=!0:l.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var n=this.playersByQueriedElement.get(t);n&&n.forEach(function(l){return l.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(n){if(t.players.length)return ud(t.players).onDone(function(){return n()});n()})}},{key:"processLeaveNode",value:function(t){var n=this,l=t[Co];if(l&&l.setForRemoval){if(t[Co]=sP,l.namespaceId){this.destroyInnerAnimations(t);var c=this._fetchNamespace(l.namespaceId);c&&c.clearElementCache(t)}this._onRemovalComplete(t,l.setForRemoval)}this.driver.matchesElement(t,pb)&&this.markElementAsDisabled(t,!1),this.driver.query(t,pb,!0).forEach(function(h){n.markElementAsDisabled(h,!1)})}},{key:"flush",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,l=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(L,G){return t._balanceNamespaceList(L,G)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var c=0;c=0;Ll--)this._namespaceList[Ll].drainQueuedTransitions(n).forEach(function(Ct){var Jt=Ct.player,dn=Ct.element;if(Hr.push(Jt),l.collectedEnterElements.length){var oa=dn[Co];if(oa&&oa.setForMove)return void Jt.destroy()}var Ab=!G||!l.driver.containsElement(G,dn),hk=Dn.get(dn),CH=ie.get(dn),So=l._buildInstruction(Ct,c,CH,hk,Ab);if(So.errors&&So.errors.length)zi.push(So);else{if(Ab)return Jt.onStart(function(){return Pc(dn,So.fromStyles)}),Jt.onDestroy(function(){return Au(dn,So.toStyles)}),void h.push(Jt);if(Ct.isFallbackTransition)return Jt.onStart(function(){return Pc(dn,So.fromStyles)}),Jt.onDestroy(function(){return Au(dn,So.toStyles)}),void h.push(Jt);So.timelines.forEach(function(Hc){return Hc.stretchStartingKeyframe=!0}),c.append(dn,So.timelines),C.push({instruction:So,player:Jt,element:dn}),So.queriedElements.forEach(function(Hc){return Ka(k,Hc,[]).push(Jt)}),So.preStyleProps.forEach(function(Hc,Eb){var wH=Object.keys(Hc);if(wH.length){var Pb=D.get(Eb);Pb||D.set(Eb,Pb=new Set),wH.forEach(function(DX){return Pb.add(DX)})}}),So.postStyleProps.forEach(function(Hc,Eb){var wH=Object.keys(Hc),Pb=I.get(Eb);Pb||I.set(Eb,Pb=new Set),wH.forEach(function(DX){return Pb.add(DX)})})}});if(zi.length){var Qa=[];zi.forEach(function(Ct){Qa.push("@".concat(Ct.triggerName," has failed due to:\n")),Ct.errors.forEach(function(Jt){return Qa.push("- ".concat(Jt,"\n"))})}),Hr.forEach(function(Ct){return Ct.destroy()}),this.reportError(Qa)}var Nu=new Map,Bc=new Map;C.forEach(function(Ct){var Jt=Ct.element;c.has(Jt)&&(Bc.set(Jt,Jt),l._beforeAnimationBuild(Ct.player.namespaceId,Ct.instruction,Nu))}),h.forEach(function(Ct){var Jt=Ct.element;l._getPreviousPlayers(Jt,!1,Ct.namespaceId,Ct.triggerName,null).forEach(function(oa){Ka(Nu,Jt,[]).push(oa),oa.destroy()})});var Tb=se.filter(function(Ct){return DB(Ct,D,I)}),Db=new Map;OS(Db,this.driver,Ce,I,Ac).forEach(function(Ct){DB(Ct,D,I)&&Tb.push(Ct)});var LP=new Map;Q.forEach(function(Ct,Jt){OS(LP,l.driver,new Set(Ct),D,"!")}),Tb.forEach(function(Ct){var Jt=Db.get(Ct),dn=LP.get(Ct);Db.set(Ct,Object.assign(Object.assign({},Jt),dn))});var FP=[],_H=[],NP={};C.forEach(function(Ct){var Jt=Ct.element,dn=Ct.player,oa=Ct.instruction;if(c.has(Jt)){if(L.has(Jt))return dn.onDestroy(function(){return Au(Jt,oa.toStyles)}),dn.disabled=!0,dn.overrideTotalTime(oa.totalTime),void h.push(dn);var Ab=NP;if(Bc.size>1){for(var hk=Jt,CH=[];hk=hk.parentNode;){var So=Bc.get(hk);if(So){Ab=So;break}CH.push(hk)}CH.forEach(function(Eb){return Bc.set(Eb,Ab)})}var TX=l._buildAnimation(dn.namespaceId,oa,Nu,_,LP,Db);if(dn.setRealPlayer(TX),Ab===NP)FP.push(dn);else{var Hc=l.playersByElement.get(Ab);Hc&&Hc.length&&(dn.parentPlayer=ud(Hc)),h.push(dn)}}else Pc(Jt,oa.fromStyles),dn.onDestroy(function(){return Au(Jt,oa.toStyles)}),_H.push(dn),L.has(Jt)&&h.push(dn)}),_H.forEach(function(Ct){var Jt=_.get(Ct.element);if(Jt&&Jt.length){var dn=ud(Jt);Ct.setRealPlayer(dn)}}),h.forEach(function(Ct){Ct.parentPlayer?Ct.syncPlayerEvents(Ct.parentPlayer):Ct.destroy()});for(var VP=0;VP0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,l):new Og(t.duration,t.delay)}}]),e}(),AS=function(){function e(a,t,n){F(this,e),this.namespaceId=a,this.triggerName=t,this.element=n,this._player=new Og,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return W(e,[{key:"setRealPlayer",value:function(t){var n=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(l){n._queuedCallbacks[l].forEach(function(c){return GE(t,l,void 0,c)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var n=this,l=this._player;l.triggerCallback&&t.onStart(function(){return l.triggerCallback("start")}),t.onDone(function(){return n.finish()}),t.onDestroy(function(){return n.destroy()})}},{key:"_queueEvent",value:function(t,n){Ka(this._queuedCallbacks,t,[]).push(n)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var n=this._player;n.triggerCallback&&n.triggerCallback(t)}}]),e}();function MB(e){return null!=e?e:null}function ES(e){return e&&1===e.nodeType}function PS(e,a){var t=e.style.display;return e.style.display=null!=a?a:"none",t}function OS(e,a,t,n,l){var c=[];t.forEach(function(C){return c.push(PS(C))});var h=[];n.forEach(function(C,k){var D={};C.forEach(function(I){var L=D[I]=a.computeStyle(k,I,l);(!L||0==L.length)&&(k[Co]=kB,h.push(k))}),e.set(k,D)});var _=0;return t.forEach(function(C){return PS(C,c[_++])}),h}function TB(e,a){var t=new Map;if(e.forEach(function(_){return t.set(_,[])}),0==a.length)return t;var l=new Set(a),c=new Map;function h(_){if(!_)return 1;var C=c.get(_);if(C)return C;var k=_.parentNode;return C=t.has(k)?k:l.has(k)?1:h(k),c.set(_,C),C}return a.forEach(function(_){var C=h(_);1!==C&&t.get(C).push(_)}),t}var IS="$$classes";function Rs(e,a){if(e.classList)e.classList.add(a);else{var t=e[IS];t||(t=e[IS]={}),t[a]=!0}}function Fg(e,a){if(e.classList)e.classList.remove(a);else{var t=e[IS];t&&delete t[a]}}function T9(e,a,t){ud(t).onDone(function(){return e.processLeaveNode(a)})}function RS(e,a){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function AB(e,a){var t=null,n=null;return Array.isArray(a)&&a.length?(t=uP(a[0]),a.length>1&&(n=uP(a[a.length-1]))):a&&(t=uP(a)),t||n?new E9(e,t,n):null}var E9=function(){var e=function(){function a(t,n,l){F(this,a),this._element=t,this._startStyles=n,this._endStyles=l,this._state=0;var c=a.initialStylesByElement.get(t);c||a.initialStylesByElement.set(t,c={}),this._initialStyles=c}return W(a,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Au(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Au(this._element,this._initialStyles),this._endStyles&&(Au(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(a.initialStylesByElement.delete(this._element),this._startStyles&&(Pc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Pc(this._element,this._endStyles),this._endStyles=null),Au(this._element,this._initialStyles),this._state=3)}}]),a}();return e.initialStylesByElement=new WeakMap,e}();function uP(e){for(var a=null,t=Object.keys(e),n=0;n=this._delay&&l>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),fP(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,a){var n=_b(e,"").split(","),l=vp(n,a);l>=0&&(n.splice(l,1),FS(e,"",n.join(",")))}(this._element,this._name))}}]),e}();function OB(e,a,t){FS(e,"PlayState",t,RB(e,a))}function RB(e,a){var t=_b(e,"");return t.indexOf(",")>0?vp(t.split(","),a):vp([t],a)}function vp(e,a){for(var t=0;t=0)return t;return-1}function fP(e,a,t){t?e.removeEventListener(LS,a):e.addEventListener(LS,a)}function FS(e,a,t,n){var l=EB+a;if(null!=n){var c=e.style[l];if(c.length){var h=c.split(",");h[n]=t,t=h.join(",")}}e.style[l]=t}function _b(e,a){return e.style[EB+a]||""}var FB=function(){function e(a,t,n,l,c,h,_,C){F(this,e),this.element=a,this.keyframes=t,this.animationName=n,this._duration=l,this._delay=c,this._finalStyles=_,this._specialStyles=C,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=h||"linear",this.totalTime=l+c,this._buildStyler()}return W(e,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new cP(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var n={};if(this.hasStarted()){var l=this._state>=3;Object.keys(this._finalStyles).forEach(function(c){"offset"!=c&&(n[c]=l?t._finalStyles[c]:Oc(t.element,c))})}this.currentSnapshot=n}}]),e}(),L9=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this)).element=n,c._startingStyles={},c.__initialized=!1,c._styles=rB(l),c}return W(t,[{key:"init",value:function(){var l=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(c){l._startingStyles[c]=l.element.style[c]}),Ie(Oe(t.prototype),"init",this).call(this))}},{key:"play",value:function(){var l=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(c){return l.element.style.setProperty(c,l._styles[c])}),Ie(Oe(t.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var l=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(c){var h=l._startingStyles[c];h?l.element.style.setProperty(c,h):l.element.style.removeProperty(c)}),this._startingStyles=null,Ie(Oe(t.prototype),"destroy",this).call(this))}}]),t}(Og),F9="gen_css_kf_",VB=function(){function e(){F(this,e),this._count=0}return W(e,[{key:"validateStyleProperty",value:function(t){return cS(t)}},{key:"matchesElement",value:function(t,n){return XE(t,n)}},{key:"containsElement",value:function(t,n){return ZE(t,n)}},{key:"query",value:function(t,n,l){return fS(t,n,l)}},{key:"computeStyle",value:function(t,n,l){return window.getComputedStyle(t)[n]}},{key:"buildKeyframeElement",value:function(t,n,l){l=l.map(function(C){return rB(C)});var c="@keyframes ".concat(n," {\n"),h="";l.forEach(function(C){h=" ";var k=parseFloat(C.offset);c+="".concat(h).concat(100*k,"% {\n"),h+=" ",Object.keys(C).forEach(function(D){var I=C[D];switch(D){case"offset":return;case"easing":return void(I&&(c+="".concat(h,"animation-timing-function: ").concat(I,";\n")));default:return void(c+="".concat(h).concat(D,": ").concat(I,";\n"))}}),c+="".concat(h,"}\n")}),c+="}\n";var _=document.createElement("style");return _.textContent=c,_}},{key:"animate",value:function(t,n,l,c,h){var _=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],k=_.filter(function(fe){return fe instanceof FB}),D={};hB(l,c)&&k.forEach(function(fe){var se=fe.currentSnapshot;Object.keys(se).forEach(function(be){return D[be]=se[be]})});var I=N9(n=pB(t,n,D));if(0==l)return new L9(t,I);var L="".concat(F9).concat(this._count++),G=this.buildKeyframeElement(t,L,n),Y=BB(t);Y.appendChild(G);var Q=AB(t,n),ie=new FB(t,n,L,l,c,h,I,Q);return ie.onDestroy(function(){return HB(G)}),ie}}]),e}();function BB(e){var a,t=null===(a=e.getRootNode)||void 0===a?void 0:a.call(e);return"undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot?t:document.head}function N9(e){var a={};return e&&(Array.isArray(e)?e:[e]).forEach(function(n){Object.keys(n).forEach(function(l){"offset"==l||"easing"==l||(a[l]=n[l])})}),a}function HB(e){e.parentNode.removeChild(e)}var UB=function(){function e(a,t,n,l){F(this,e),this.element=a,this.keyframes=t,this.options=n,this._specialStyles=l,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}return W(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,n,l){return t.animate(n,l)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var t=this,n={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(l){"offset"!=l&&(n[l]=t._finished?t._finalKeyframe[l]:Oc(t.element,l))}),this.currentSnapshot=n}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),e}(),GB=function(){function e(){F(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(WB().toString()),this._cssKeyframesDriver=new VB}return W(e,[{key:"validateStyleProperty",value:function(t){return cS(t)}},{key:"matchesElement",value:function(t,n){return XE(t,n)}},{key:"containsElement",value:function(t,n){return ZE(t,n)}},{key:"query",value:function(t,n,l){return fS(t,n,l)}},{key:"computeStyle",value:function(t,n,l){return window.getComputedStyle(t)[n]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,n,l,c,h){var _=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],C=arguments.length>6?arguments[6]:void 0,k=!C&&!this._isNativeImpl;if(k)return this._cssKeyframesDriver.animate(t,n,l,c,h,_);var D=0==c?"both":"forwards",I={duration:l,delay:c,fill:D};h&&(I.easing=h);var L={},G=_.filter(function(Q){return Q instanceof UB});hB(l,c)&&G.forEach(function(Q){var ie=Q.currentSnapshot;Object.keys(ie).forEach(function(fe){return L[fe]=ie[fe]})});var Y=AB(t,n=pB(t,n=n.map(function(Q){return cd(Q,!1)}),L));return new UB(t,n,I,Y)}}]),e}();function WB(){return eB()&&Element.prototype.animate||{}}var V9=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this))._nextAnimationId=0,h._renderer=l.createRenderer(c.body,{id:"0",encapsulation:Hs.None,styles:[],data:{animation:[]}}),h}return W(n,[{key:"build",value:function(c){var h=this._nextAnimationId.toString();this._nextAnimationId++;var _=Array.isArray(c)?NE(c):c;return qB(this._renderer,null,h,"register",[_]),new YB(h,this._renderer)}}]),n}(FE);return e.\u0275fac=function(t){return new(t||e)(ce(Ff),ce(lt))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),YB=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this))._id=n,c._renderer=l,c}return W(t,[{key:"create",value:function(l,c){return new B9(this._id,l,c||{},this._renderer)}}]),t}(KY),B9=function(){function e(a,t,n,l){F(this,e),this.id=a,this.element=t,this._renderer=l,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return W(e,[{key:"_listen",value:function(t,n){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),n)}},{key:"_command",value:function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c=0&&n3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,n,l),this.engine.onInsert(this.namespaceId,n,t,c)}},{key:"removeChild",value:function(t,n,l){this.engine.onRemove(this.namespaceId,n,this.delegate,l)}},{key:"selectRootElement",value:function(t,n){return this.delegate.selectRootElement(t,n)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,n,l,c){this.delegate.setAttribute(t,n,l,c)}},{key:"removeAttribute",value:function(t,n,l){this.delegate.removeAttribute(t,n,l)}},{key:"addClass",value:function(t,n){this.delegate.addClass(t,n)}},{key:"removeClass",value:function(t,n){this.delegate.removeClass(t,n)}},{key:"setStyle",value:function(t,n,l,c){this.delegate.setStyle(t,n,l,c)}},{key:"removeStyle",value:function(t,n,l){this.delegate.removeStyle(t,n,l)}},{key:"setProperty",value:function(t,n,l){"@"==n.charAt(0)&&n==bb?this.disableAnimations(t,!!l):this.delegate.setProperty(t,n,l)}},{key:"setValue",value:function(t,n){this.delegate.setValue(t,n)}},{key:"listen",value:function(t,n,l){return this.delegate.listen(t,n,l)}},{key:"disableAnimations",value:function(t,n){this.engine.disableAnimations(t,n)}}]),e}(),KB=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,l,c,h)).factory=n,_.namespaceId=l,_}return W(t,[{key:"setProperty",value:function(l,c,h){"@"==c.charAt(0)?"."==c.charAt(1)&&c==bb?this.disableAnimations(l,h=void 0===h||!!h):this.engine.process(this.namespaceId,l,c.substr(1),h):this.delegate.setProperty(l,c,h)}},{key:"listen",value:function(l,c,h){var _=this;if("@"==c.charAt(0)){var C=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(l),k=c.substr(1),D="";if("@"!=k.charAt(0)){var L=cr(function(e){var a=e.indexOf(".");return[e.substring(0,a),e.substr(a+1)]}(k),2);k=L[0],D=L[1]}return this.engine.listen(this.namespaceId,C,k,D,function(G){_.factory.scheduleListenerCallback(G._data||-1,h,G)})}return this.delegate.listen(l,c,h)}}]),t}(ZB),$B=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){return F(this,n),t.call(this,l.body,c,h)}return W(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(mb);return e.\u0275fac=function(t){return new(t||e)(ce(lt),ce(dS),ce(aP))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Un=new Ee("AnimationModuleType"),e5=[{provide:FE,useClass:V9},{provide:aP,useFactory:function(){return new p9}},{provide:mb,useClass:$B},{provide:Ff,useFactory:function(e,a,t){return new XB(e,a,t)},deps:[qh,mb,ft]}],dP=[{provide:dS,useFactory:function(){return"function"==typeof WB()?new GB:new VB}},{provide:Un,useValue:"BrowserAnimations"}].concat(e5),BS=[{provide:dS,useClass:iB},{provide:Un,useValue:"NoopAnimations"}].concat(e5),U9=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"withConfig",value:function(n){return{ngModule:a,providers:n.disableAnimations?BS:dP}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:dP,imports:[QD]}),e}();function j9(e,a){if(1&e&&me(0,"mat-pseudo-checkbox",4),2&e){var t=J();z("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function n5(e,a){if(1&e&&(A(0,"span",5),K(1),E()),2&e){var t=J();H(1),Ve("(",t.group.label,")")}}var r5=["*"],W9=function(){var e=function a(){F(this,a)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),Y9=function(){var e=function a(){F(this,a)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),i5=new nc("12.2.4"),a5=new Ee("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),$t=function(){var e=function(){function a(t,n,l){F(this,a),this._hasDoneGlobalChecks=!1,this._document=l,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return W(a,[{key:"_getWindow",value:function(){var n=this._document.defaultView||window;return"object"==typeof n&&n?n:null}},{key:"_checkIsEnabled",value:function(n){return!(!yw()||this._isTestEnv())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[n])}},{key:"_isTestEnv",value:function(){var n=this._getWindow();return n&&(n.__karma__||n.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checkIsEnabled("theme")&&this._document.body&&"function"==typeof getComputedStyle){var n=this._document.createElement("div");n.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(n);var l=getComputedStyle(n);l&&"none"!==l.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(n)}}},{key:"_checkCdkVersionMatch",value:function(){this._checkIsEnabled("version")&&i5.full!==$V.full&&console.warn("The Angular Material version ("+i5.full+") does not match the Angular CDK version ("+$V.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(RE),ce(a5,8),ce(lt))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$y],$y]}),e}();function ia(e){return function(a){ae(n,a);var t=ue(n);function n(){var l;F(this,n);for(var c=arguments.length,h=new Array(c),_=0;_1&&void 0!==arguments[1]?arguments[1]:0;return function(t){ae(l,t);var n=ue(l);function l(){var c;F(this,l);for(var h=arguments.length,_=new Array(h),C=0;C0?l:t}}]),e}(),Pu=new Ee("mat-date-formats");try{fd="undefined"!=typeof Intl}catch(e){fd=!1}var Z9={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},s5=zS(31,function(a){return String(a+1)}),$9={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Q9=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function zS(e,a){for(var t=Array(e),n=0;n9999)&&(c=this.clone(c)).setFullYear(Math.max(1,Math.min(9999,c.getFullYear()))),h=Object.assign(Object.assign({},h),{timeZone:"utc"});var _=new Intl.DateTimeFormat(this.locale,h);return this._stripDirectionalityCharacters(this._format(_,c))}return this._stripDirectionalityCharacters(c.toDateString())}},{key:"addCalendarYears",value:function(c,h){return this.addCalendarMonths(c,12*h)}},{key:"addCalendarMonths",value:function(c,h){var _=this._createDateWithOverflow(this.getYear(c),this.getMonth(c)+h,this.getDate(c));return this.getMonth(_)!=((this.getMonth(c)+h)%12+12)%12&&(_=this._createDateWithOverflow(this.getYear(_),this.getMonth(_),0)),_}},{key:"addCalendarDays",value:function(c,h){return this._createDateWithOverflow(this.getYear(c),this.getMonth(c),this.getDate(c)+h)}},{key:"toIso8601",value:function(c){return[c.getUTCFullYear(),this._2digit(c.getUTCMonth()+1),this._2digit(c.getUTCDate())].join("-")}},{key:"deserialize",value:function(c){if("string"==typeof c){if(!c)return null;if(Q9.test(c)){var h=new Date(c);if(this.isValid(h))return h}}return Ie(Oe(n.prototype),"deserialize",this).call(this,c)}},{key:"isDateInstance",value:function(c){return c instanceof Date}},{key:"isValid",value:function(c){return!isNaN(c.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(c,h,_){var C=new Date;return C.setFullYear(c,h,_),C.setHours(0,0,0,0),C}},{key:"_2digit",value:function(c){return("00"+c).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(c){return c.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(c,h){var _=new Date;return _.setUTCFullYear(h.getFullYear(),h.getMonth(),h.getDate()),_.setUTCHours(h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()),c.format(_)}}]),n}(Gr);return e.\u0275fac=function(t){return new(t||e)(ce(hP,8),ce(en))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),eq=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[{provide:Gr,useClass:J9}],imports:[[ep]]}),e}(),tq={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},nq=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[{provide:Pu,useValue:tq}],imports:[[eq]]}),e}(),dd=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"isErrorState",value:function(n,l){return!!(n&&n.invalid&&(n.touched||l&&l.submitted))}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),rq=function(){function e(a,t,n){F(this,e),this._renderer=a,this.element=t,this.config=n,this.state=3}return W(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),pP={enterDuration:225,exitDuration:150},vP=tp({passive:!0}),c5=["mousedown","touchstart"],aq=["mouseup","mouseleave","touchend","touchcancel"],gP=function(){function e(a,t,n,l){F(this,e),this._target=a,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,l.isBrowser&&(this._containerElement=bc(n))}return W(e,[{key:"fadeInRipple",value:function(t,n){var l=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),_=Object.assign(Object.assign({},pP),c.animation);c.centered&&(t=h.left+h.width/2,n=h.top+h.height/2);var C=c.radius||sq(t,n,h),k=t-h.left,D=n-h.top,I=_.enterDuration,L=document.createElement("div");L.classList.add("mat-ripple-element"),L.style.left="".concat(k-C,"px"),L.style.top="".concat(D-C,"px"),L.style.height="".concat(2*C,"px"),L.style.width="".concat(2*C,"px"),null!=c.color&&(L.style.backgroundColor=c.color),L.style.transitionDuration="".concat(I,"ms"),this._containerElement.appendChild(L),oq(L),L.style.transform="scale(1)";var G=new rq(this,L,c);return G.state=0,this._activeRipples.add(G),c.persistent||(this._mostRecentTransientRipple=G),this._runTimeoutOutsideZone(function(){var Y=G===l._mostRecentTransientRipple;G.state=1,!c.persistent&&(!Y||!l._isPointerDown)&&G.fadeOut()},I),G}},{key:"fadeOutRipple",value:function(t){var n=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),n){var l=t.element,c=Object.assign(Object.assign({},pP),t.config.animation);l.style.transitionDuration="".concat(c.exitDuration,"ms"),l.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,l.parentNode.removeChild(l)},c.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var n=bc(t);!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,this._registerEvents(c5))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(aq),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var n=ab(t),l=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,n)})}},{key:"_registerEvents",value:function(t){var n=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(l){n._triggerElement.addEventListener(l,n,vP)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(c5.forEach(function(n){t._triggerElement.removeEventListener(n,t,vP)}),this._pointerUpEventsRegistered&&aq.forEach(function(n){t._triggerElement.removeEventListener(n,t,vP)}))}}]),e}();function oq(e){window.getComputedStyle(e).getPropertyValue("opacity")}function sq(e,a,t){var n=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),l=Math.max(Math.abs(a-t.top),Math.abs(a-t.bottom));return Math.sqrt(n*n+l*l)}var US=new Ee("mat-ripple-global-options"),Ls=function(){var e=function(){function a(t,n,l,c,h){F(this,a),this._elementRef=t,this._animationMode=h,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=c||{},this._rippleRenderer=new gP(this,n,t,l)}return W(a,[{key:"disabled",get:function(){return this._disabled},set:function(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=arguments.length>2?arguments[2]:void 0;return"number"==typeof n?this._rippleRenderer.fadeInRipple(n,l,Object.assign(Object.assign({},this.rippleConfig),c)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),n))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(en),N(US,8),N(Un,8))},e.\u0275dir=ve({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){2&t&&dt("mat-ripple-unbounded",n.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),Da=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t,ep],$t]}),e}(),Vg=function(){var e=function a(t){F(this,a),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(N(Un,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,n){2&t&&dt("mat-pseudo-checkbox-indeterminate","indeterminate"===n.state)("mat-pseudo-checkbox-checked","checked"===n.state)("mat-pseudo-checkbox-disabled",n.disabled)("_mat-animation-noopable","NoopAnimations"===n._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,n){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),mP=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t]]}),e}(),Bg=new Ee("MAT_OPTION_PARENT_COMPONENT"),lq=ia(function(){return function e(){F(this,e)}}()),f5=0,_P=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c,h;return F(this,n),(c=t.call(this))._labelId="mat-optgroup-label-".concat(f5++),c._inert=null!==(h=null==l?void 0:l.inertGroups)&&void 0!==h&&h,c}return n}(lq);return e.\u0275fac=function(t){return new(t||e)(N(Bg,8))},e.\u0275dir=ve({type:e,inputs:{label:"label"},features:[Pe]}),e}(),GS=new Ee("MatOptgroup"),cq=0,d5=function e(a){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];F(this,e),this.source=a,this.isUserInput=t},Hg=function(){var e=function(){function a(t,n,l,c){F(this,a),this._element=t,this._changeDetectorRef=n,this._parent=l,this.group=c,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(cq++),this.onSelectionChange=new ye,this._stateChanges=new qe}return W(a,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(n){this._disabled=it(n)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(n,l){var c=this._getHostElement();"function"==typeof c.focus&&c.focus(l)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(n){(13===n.keyCode||32===n.keyCode)&&!Bi(n)&&(this._selectViaInteraction(),n.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var n=this.viewValue;n!==this._mostRecentViewValue&&(this._mostRecentViewValue=n,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new d5(this,n))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(void 0),N(_P))},e.\u0275dir=ve({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),Pi=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){return F(this,n),t.call(this,l,c,h,_)}return n}(Hg);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(Bg,8),N(GS,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,n){1&t&&ne("click",function(){return n._selectViaInteraction()})("keydown",function(c){return n._handleKeydown(c)}),2&t&&(Zi("id",n.id),Ke("tabindex",n._getTabIndex())("aria-selected",n._getAriaSelected())("aria-disabled",n.disabled.toString()),dt("mat-selected",n.selected)("mat-option-multiple",n.multiple)("mat-active",n.active)("mat-option-disabled",n.disabled))},exportAs:["matOption"],features:[Pe],ngContentSelectors:r5,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,n){1&t&&(rr(),re(0,j9,1,2,"mat-pseudo-checkbox",0),A(1,"span",1),Wt(2),E(),re(3,n5,2,1,"span",2),me(4,"div",3)),2&t&&(z("ngIf",n.multiple),H(3),z("ngIf",n.group&&n.group._inert),H(1),z("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},directives:[Kt,Ls,Vg],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function jS(e,a,t){if(t.length){for(var n=a.toArray(),l=t.toArray(),c=0,h=0;ht+n?Math.max(0,e-n+a):t}var WS=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Da,Wa,$t,mP]]}),e}();function fq(e,a){}var yP=function e(){F(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},dq={dialogContainer:Ei("dialogContainer",[Bn("void, exit",gt({opacity:0,transform:"scale(0.7)"})),Bn("enter",gt({transform:"none"})),zn("* => enter",Tn("150ms cubic-bezier(0, 0, 0.2, 1)",gt({transform:"none",opacity:1}))),zn("* => void, * => exit",Tn("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",gt({opacity:0})))])},h5=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this))._elementRef=l,D._focusTrapFactory=c,D._changeDetectorRef=h,D._config=C,D._focusMonitor=k,D._animationStateChanged=new ye,D._elementFocusedBeforeDialogWasOpened=null,D._closeInteractionType=null,D.attachDomPortal=function(I){return D._portalOutlet.hasAttached(),D._portalOutlet.attachDomPortal(I)},D._ariaLabelledBy=C.ariaLabelledBy||null,D._document=_,D}return W(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(c){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(c)}},{key:"attachTemplatePortal",value:function(c){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(c)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var c=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&c&&"function"==typeof c.focus){var h=Ky(),_=this._elementRef.nativeElement;(!h||h===this._document.body||h===_||_.contains(h))&&(this._focusMonitor?(this._focusMonitor.focusVia(c,this._closeInteractionType),this._closeInteractionType=null):c.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Ky())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var c=this._elementRef.nativeElement,h=Ky();return c===h||c.contains(h)}}]),n}(Jy);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(xE),N(Vt),N(lt,8),N(yP),N(ra))},e.\u0275dir=ve({type:e,viewQuery:function(t,n){var l;1&t&&wt(Os,7),2&t&&Ne(l=Le())&&(n._portalOutlet=l.first)},features:[Pe]}),e}(),hq=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._state="enter",l}return W(n,[{key:"_onAnimationDone",value:function(c){var h=c.toState,_=c.totalTime;"enter"===h?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:_})):"exit"===h&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:_}))}},{key:"_onAnimationStart",value:function(c){var h=c.toState,_=c.totalTime;"enter"===h?this._animationStateChanged.next({state:"opening",totalTime:_}):("exit"===h||"void"===h)&&this._animationStateChanged.next({state:"closing",totalTime:_})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(h5);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275cmp=ke({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,n){1&t&&mv("@dialogContainer.start",function(c){return n._onAnimationStart(c)})("@dialogContainer.done",function(c){return n._onAnimationDone(c)}),2&t&&(Zi("id",n._id),Ke("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Ba("@dialogContainer",n._state))},features:[Pe],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){1&t&&re(0,fq,0,0,"ng-template",0)},directives:[Os],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[dq.dialogContainer]}}),e}(),p5=0,Er=function(){function e(a,t){var n=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(p5++);F(this,e),this._overlayRef=a,this._containerInstance=t,this.id=l,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new qe,this._afterClosed=new qe,this._beforeClosed=new qe,this._state=0,t._id=l,t._animationStateChanged.pipe(vr(function(c){return"opened"===c.state}),or(1)).subscribe(function(){n._afterOpened.next(),n._afterOpened.complete()}),t._animationStateChanged.pipe(vr(function(c){return"closed"===c.state}),or(1)).subscribe(function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()}),a.detachments().subscribe(function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()}),a.keydownEvents().pipe(vr(function(c){return 27===c.keyCode&&!n.disableClose&&!Bi(c)})).subscribe(function(c){c.preventDefault(),bP(n,"keyboard")}),a.backdropClick().subscribe(function(){n.disableClose?n._containerInstance._recaptureFocus():bP(n,"mouse")})}return W(e,[{key:"close",value:function(t){var n=this;this._result=t,this._containerInstance._animationStateChanged.pipe(vr(function(l){return"closing"===l.state}),or(1)).subscribe(function(l){n._beforeClosed.next(t),n._beforeClosed.complete(),n._overlayRef.detachBackdrop(),n._closeFallbackTimeout=setTimeout(function(){return n._finishDialogClose()},l.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var n=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?n.left(t.left):n.right(t.right):n.centerHorizontally(),t&&(t.top||t.bottom)?t.top?n.top(t.top):n.bottom(t.bottom):n.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:n}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function bP(e,a,t){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=a),e.close(t)}var jr=new Ee("MatDialogData"),YS=new Ee("mat-dialog-default-options"),pq=new Ee("mat-dialog-scroll-strategy"),wb={provide:pq,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},v5=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D){var I=this;F(this,a),this._overlay=t,this._injector=n,this._defaultOptions=l,this._parentDialog=c,this._overlayContainer=h,this._dialogRefConstructor=C,this._dialogContainerType=k,this._dialogDataToken=D,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new qe,this._afterOpenedAtThisLevel=new qe,this._ariaHiddenElements=new Map,this.afterAllClosed=Ly(function(){return I.openDialogs.length?I._getAfterAllClosed():I._getAfterAllClosed().pipe($r(void 0))}),this._scrollStrategy=_}return W(a,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(n,l){var c=this;(l=function(e,a){return Object.assign(Object.assign({},a),e)}(l,this._defaultOptions||new yP)).id&&this.getDialogById(l.id);var h=this._createOverlay(l),_=this._attachDialogContainer(h,l),C=this._attachDialogContent(n,_,h,l);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(C),C.afterClosed().subscribe(function(){return c._removeOpenDialog(C)}),this.afterOpened.next(C),_._initializeWithAttachedContent(),C}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(n){return this.openDialogs.find(function(l){return l.id===n})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(n){var l=this._getOverlayConfig(n);return this._overlay.create(l)}},{key:"_getOverlayConfig",value:function(n){var l=new up({positionStrategy:this._overlay.position().global(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,disposeOnNavigation:n.closeOnNavigation});return n.backdropClass&&(l.backdropClass=n.backdropClass),l}},{key:"_attachDialogContainer",value:function(n,l){var h=kn.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:yP,useValue:l}]}),_=new sd(this._dialogContainerType,l.viewContainerRef,h,l.componentFactoryResolver);return n.attach(_).instance}},{key:"_attachDialogContent",value:function(n,l,c,h){var _=new this._dialogRefConstructor(c,l,h.id);if(n instanceof Xn)l.attachTemplatePortal(new Ps(n,null,{$implicit:h.data,dialogRef:_}));else{var C=this._createInjector(h,_,l),k=l.attachComponentPortal(new sd(n,h.viewContainerRef,C));_.componentInstance=k.instance}return _.updateSize(h.width,h.height).updatePosition(h.position),_}},{key:"_createInjector",value:function(n,l,c){var h=n&&n.viewContainerRef&&n.viewContainerRef.injector,_=[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:l}];return n.direction&&(!h||!h.get(Mr,null,yn.Optional))&&_.push({provide:Mr,useValue:{value:n.direction,change:ut()}}),kn.create({parent:h||this._injector,providers:_})}},{key:"_removeOpenDialog",value:function(n){var l=this.openDialogs.indexOf(n);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(c,h){c?h.setAttribute("aria-hidden",c):h.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var n=this._overlayContainer.getContainerElement();if(n.parentElement)for(var l=n.parentElement.children,c=l.length-1;c>-1;c--){var h=l[c];h!==n&&"SCRIPT"!==h.nodeName&&"STYLE"!==h.nodeName&&!h.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(h,h.getAttribute("aria-hidden")),h.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(n){for(var l=n.length;l--;)n[l].close()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(kn),N(void 0),N(void 0),N(tb),N(void 0),N(Yl),N(Yl),N(Ee))},e.\u0275dir=ve({type:e}),e}(),Sb=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){return F(this,n),t.call(this,l,c,_,k,D,C,Er,hq,jr)}return n}(v5);return e.\u0275fac=function(t){return new(t||e)(ce(Ai),ce(kn),ce(Jv,8),ce(YS,8),ce(pq),ce(e,12),ce(tb))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),gq=0,Lr=function(){var e=function(){function a(t,n,l){F(this,a),this.dialogRef=t,this._elementRef=n,this._dialog=l,this.type="button"}return W(a,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=g5(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(n){var l=n._matDialogClose||n._matDialogCloseResult;l&&(this.dialogResult=l.currentValue)}},{key:"_onButtonClick",value:function(n){bP(this.dialogRef,0===n.screenX&&0===n.screenY?"keyboard":"mouse",this.dialogResult)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Er,8),N(Ue),N(Sb))},e.\u0275dir=ve({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,n){1&t&&ne("click",function(c){return n._onButtonClick(c)}),2&t&&Ke("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[an]}),e}(),Wr=function(){var e=function(){function a(t,n,l){F(this,a),this._dialogRef=t,this._elementRef=n,this._dialog=l,this.id="mat-dialog-title-".concat(gq++)}return W(a,[{key:"ngOnInit",value:function(){var n=this;this._dialogRef||(this._dialogRef=g5(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var l=n._dialogRef._containerInstance;l&&!l._ariaLabelledBy&&(l._ariaLabelledBy=n.id)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Er,8),N(Ue),N(Sb))},e.\u0275dir=ve({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,n){2&t&&Zi("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),Fr=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),Qr=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function g5(e,a){for(var t=e.nativeElement.parentElement;t&&!t.classList.contains("mat-dialog-container");)t=t.parentElement;return t?a.find(function(n){return n.id===t.id}):null}var m5=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Sb,wb],imports:[[fp,xg,$t],$t]}),e}();function mq(e){var a=e.subscriber,t=e.counter,n=e.period;a.next(t),this.schedule({subscriber:a,counter:t+1,period:n},n)}var XS=["mat-button",""],hd=["*"],wP=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",yq=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],y5=Eu(ia(El(function(){return function e(a){F(this,e),this._elementRef=a}}()))),Rn=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _;F(this,n),(_=t.call(this,l))._focusMonitor=c,_._animationMode=h,_.isRoundButton=_._hasHostAttributes("mat-fab","mat-mini-fab"),_.isIconButton=_._hasHostAttributes("mat-icon-button");var k,C=tn(yq);try{for(C.s();!(k=C.n()).done;){var D=k.value;_._hasHostAttributes(D)&&_._getHostElement().classList.add(D)}}catch(I){C.e(I)}finally{C.f()}return l.nativeElement.classList.add("mat-button-base"),_.isRoundButton&&(_.color="accent"),_}return W(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(c,h){c?this._focusMonitor.focusVia(this._getHostElement(),c,h):this._getHostElement().focus(h)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var c=this,h=arguments.length,_=new Array(h),C=0;C0&&(this.dialogRef.afterClosed().subscribe(function(t){a.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg;return(!zA(e)||e<0)&&(e=0),(!a||"function"!=typeof a.schedule)&&(a=Mg),new gn(function(t){return t.add(a.schedule(mq,e,{subscriber:t,counter:0,period:e})),t})}(1e3).subscribe(function(t){var n=a.data.autoclose-1e3*(t+1);a.setExtra(n),n<=0&&a.close()}))},e.prototype.initYesNo=function(){},e.prototype.ngOnInit=function(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Ou.yesno?this.initYesNo():this.initAlert()},e.\u0275fac=function(t){return new(t||e)(N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"color","click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"color","click"]],template:function(t,n){1&t&&(me(0,"h4",0),Uf(1,"safeHtml"),me(2,"mat-dialog-content",1),Uf(3,"safeHtml"),A(4,"mat-dialog-actions"),re(5,C5,4,1,"button",2),re(6,w5,3,1,"button",3),re(7,S5,3,1,"button",3),E()),2&t&&(z("innerHtml",Gf(1,5,n.data.title),Si),H(2),z("innerHTML",Gf(3,7,n.data.body),Si),H(3),z("ngIf",0==n.data.type),H(1),z("ngIf",1==n.data.type),H(1),z("ngIf",1==n.data.type))},directives:[Wr,Fr,Qr,Kt,Rn,Lr,Hn],pipes:[b5],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}(),Pl=function(e){return e.TEXT="text",e.TEXT_AUTOCOMPLETE="text-autocomplete",e.TEXTBOX="textbox",e.NUMERIC="numeric",e.PASSWORD="password",e.HIDDEN="hidden",e.CHOICE="choice",e.MULTI_CHOICE="multichoice",e.EDITLIST="editlist",e.CHECKBOX="checkbox",e.IMAGECHOICE="imgchoice",e.DATE="date",e.DATETIME="datetime",e.TAGLIST="taglist",e}({}),M5=function(){function e(){}return e.locateChoice=function(a,t){var n=t.gui.values.find(function(l){return l.id===a});if(void 0===n)try{n=t.gui.values[0]}catch(l){n={id:"",img:"",text:""}}return n},e}();function o(e,a){return new gn(function(t){var n=e.length;if(0!==n)for(var l=new Array(n),c=0,h=0,_=function(D){var I=yt(e[D]),L=!1;t.add(I.subscribe({next:function(Y){L||(L=!0,h++),l[D]=Y},error:function(Y){return t.error(Y)},complete:function(){(++c===n||!L)&&(h===n&&t.next(a?a.reduce(function(Y,Q,ie){return Y[Q]=l[ie],Y},{}):l),t.complete())}}))},C=0;Ce?{max:{max:e,actual:a.value}}:null}}(t)}},{key:"required",value:function(t){return P(t)}},{key:"requiredTrue",value:function(t){return O(t)}},{key:"email",value:function(t){return function(e){return m(e.value)||S.test(e.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return function(e){return function(a){return m(a.value)||!y(a.value)?null:a.value.lengthe?{maxlength:{requiredLength:e,actualLength:a.value.length}}:null}}function j(e){return null}function X(e){return null!=e}function Z(e){var a=vv(e)?yt(e):e;return gv(a),a}function $(e){var a={};return e.forEach(function(t){a=null!=t?Object.assign(Object.assign({},a),t):a}),0===Object.keys(a).length?null:a}function te(e,a){return a.map(function(t){return t(e)})}function le(e){return e.map(function(a){return function(e){return!e.validate}(a)?a:function(t){return a.validate(t)}})}function oe(e){if(!e)return null;var a=e.filter(X);return 0==a.length?null:function(t){return $(te(t,a))}}function de(e){return null!=e?oe(le(e)):null}function ge(e){if(!e)return null;var a=e.filter(X);return 0==a.length?null:function(t){return function(){for(var e=arguments.length,a=new Array(e),t=0;t0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(n)}},{key:"hasError",value:function(n,l){return!!this.control&&this.control.hasError(n,l)}},{key:"getError",value:function(n,l){return this.control?this.control.getError(n,l):null}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e}),e}(),Yt=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return W(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(xt);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,features:[Pe]}),e}(),Ut=function(e){ae(t,e);var a=ue(t);function t(){var n;return F(this,t),(n=a.apply(this,arguments))._parent=null,n.name=null,n.valueAccessor=null,n}return t}(xt),Wn=function(){function e(a){F(this,e),this._cd=a}return W(e,[{key:"is",value:function(t){var n,l,c;return"submitted"===t?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(c=null===(l=this._cd)||void 0===l?void 0:l.control)||void 0===c?void 0:c[t])}}]),e}(),Mt=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){return F(this,n),t.call(this,l)}return n}(Wn);return e.\u0275fac=function(t){return new(t||e)(N(Ut,2))},e.\u0275dir=ve({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){2&t&&dt("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:[Pe]}),e}(),Nr=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){return F(this,n),t.call(this,l)}return n}(Wn);return e.\u0275fac=function(t){return new(t||e)(N(Yt,10))},e.\u0275dir=ve({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,n){2&t&&dt("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:[Pe]}),e}();function SP(e,a){wq(e,a),a.valueAccessor.writeValue(e.value),function(e,a){a.valueAccessor.registerOnChange(function(t){e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&OQ(e,a)})}(e,a),function(e,a){var t=function(l,c){a.valueAccessor.writeValue(l),c&&a.viewToModelUpdate(l)};e.registerOnChange(t),a._registerOnDestroy(function(){e._unregisterOnChange(t)})}(e,a),function(e,a){a.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&OQ(e,a),"submit"!==e.updateOn&&e.markAsTouched()})}(e,a),function(e,a){if(a.valueAccessor.setDisabledState){var t=function(l){a.valueAccessor.setDisabledState(l)};e.registerOnDisabledChange(t),a._registerOnDestroy(function(){e._unregisterOnDisabledChange(t)})}}(e,a)}function D5(e,a){var n=function(){};a.valueAccessor&&(a.valueAccessor.registerOnChange(n),a.valueAccessor.registerOnTouched(n)),E5(e,a),e&&(a._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function A5(e,a){e.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(a)})}function wq(e,a){var t=Me(e);null!==a.validator?e.setValidators(xe(t,a.validator)):"function"==typeof t&&e.setValidators([t]);var n=ze(e);null!==a.asyncValidator?e.setAsyncValidators(xe(n,a.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);var l=function(){return e.updateValueAndValidity()};A5(a._rawValidators,l),A5(a._rawAsyncValidators,l)}function E5(e,a){var t=!1;if(null!==e){if(null!==a.validator){var n=Me(e);if(Array.isArray(n)&&n.length>0){var l=n.filter(function(C){return C!==a.validator});l.length!==n.length&&(t=!0,e.setValidators(l))}}if(null!==a.asyncValidator){var c=ze(e);if(Array.isArray(c)&&c.length>0){var h=c.filter(function(C){return C!==a.asyncValidator});h.length!==c.length&&(t=!0,e.setAsyncValidators(h))}}}var _=function(){};return A5(a._rawValidators,_),A5(a._rawAsyncValidators,_),t}function OQ(e,a){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function IQ(e,a){wq(e,a)}function RQ(e,a){e._syncPendingControls(),a.forEach(function(t){var n=t.control;"submit"===n.updateOn&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function P5(e,a){var t=e.indexOf(a);t>-1&&e.splice(t,1)}var kP="VALID",O5="INVALID",KS="PENDING",MP="DISABLED";function Mq(e){return(Tq(e)?e.validators:e)||null}function LQ(e){return Array.isArray(e)?de(e):e||null}function xq(e,a){return(Tq(a)?a.asyncValidators:e)||null}function FQ(e){return Array.isArray(e)?_e(e):e||null}function Tq(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Dq=function(){function e(a,t){F(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=t,this._composedValidatorFn=LQ(this._rawValidators),this._composedAsyncValidatorFn=FQ(this._rawAsyncValidators)}return W(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===kP}},{key:"invalid",get:function(){return this.status===O5}},{key:"pending",get:function(){return this.status==KS}},{key:"disabled",get:function(){return this.status===MP}},{key:"enabled",get:function(){return this.status!==MP}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=LQ(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=FQ(t)}},{key:"addValidators",value:function(t){this.setValidators(Qt(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators(Qt(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(zt(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(zt(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return mt(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return mt(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(n){n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(n){n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=KS,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=MP,this.errors=null,this._forEachChild(function(l){l.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(l){return l(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=kP,this._forEachChild(function(l){l.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(l){return l(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kP||this.status===KS)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(n){return n._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?MP:kP}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var n=this;if(this.asyncValidator){this.status=KS,this._hasOwnPendingAsyncValidator=!0;var l=Z(this.asyncValidator(this));this._asyncValidationSubscription=l.subscribe(function(c){n._hasOwnPendingAsyncValidator=!1,n.setErrors(c,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}},{key:"get",value:function(t){return function(e,a,t){if(null==a||(Array.isArray(a)||(a=a.split(".")),Array.isArray(a)&&0===a.length))return null;var n=e;return a.forEach(function(l){n=n instanceof Aq?n.controls.hasOwnProperty(l)?n.controls[l]:null:n instanceof kne&&n.at(l)||null}),n}(this,t)}},{key:"getError",value:function(t,n){var l=n?this.get(n):this;return l&&l.errors?l.errors[t]:null}},{key:"hasError",value:function(t,n){return!!this.getError(t,n)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new ye,this.statusChanges=new ye}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?MP:this.errors?O5:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(KS)?KS:this._anyControlsHaveStatus(O5)?O5:kP}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(n){return n.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){Tq(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),I5=function(e){ae(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=arguments.length>1?arguments[1]:void 0,h=arguments.length>2?arguments[2]:void 0;return F(this,t),(n=a.call(this,Mq(c),xq(h,c)))._onChange=[],n._applyFormState(l),n._setUpdateStrategy(c),n._initObservables(),n.updateValueAndValidity({onlySelf:!0,emitEvent:!!n.asyncValidator}),n}return W(t,[{key:"setValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=l,this._onChange.length&&!1!==h.emitModelToViewChange&&this._onChange.forEach(function(_){return _(c.value,!1!==h.emitViewToModelChange)}),this.updateValueAndValidity(h)}},{key:"patchValue",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(l,c)}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(l),this.markAsPristine(c),this.markAsUntouched(c),this.setValue(this.value,c),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(l){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(l){this._onChange.push(l)}},{key:"_unregisterOnChange",value:function(l){P5(this._onChange,l)}},{key:"registerOnDisabledChange",value:function(l){this._onDisabledChange.push(l)}},{key:"_unregisterOnDisabledChange",value:function(l){P5(this._onDisabledChange,l)}},{key:"_forEachChild",value:function(l){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(l){this._isBoxedValue(l)?(this.value=this._pendingValue=l.value,l.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=l}}]),t}(Dq),Aq=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,Mq(l),xq(c,l))).controls=n,h._initObservables(),h._setUpdateStrategy(l),h._setUpControls(),h.updateValueAndValidity({onlySelf:!0,emitEvent:!!h.asyncValidator}),h}return W(t,[{key:"registerControl",value:function(l,c){return this.controls[l]?this.controls[l]:(this.controls[l]=c,c.setParent(this),c._registerOnCollectionChange(this._onCollectionChange),c)}},{key:"addControl",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(l,c),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),delete this.controls[l],this.updateValueAndValidity({emitEvent:c.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),delete this.controls[l],c&&this.registerControl(l,c),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(l){return this.controls.hasOwnProperty(l)&&this.controls[l].enabled}},{key:"setValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(l),Object.keys(l).forEach(function(_){c._throwIfControlMissing(_),c.controls[_].setValue(l[_],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}},{key:"patchValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=l&&(Object.keys(l).forEach(function(_){c.controls[_]&&c.controls[_].patchValue(l[_],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(h,_){h.reset(l[_],{onlySelf:!0,emitEvent:c.emitEvent})}),this._updatePristine(c),this._updateTouched(c),this.updateValueAndValidity(c)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(l,c,h){return l[h]=c instanceof I5?c.value:c.getRawValue(),l})}},{key:"_syncPendingControls",value:function(){var l=this._reduceChildren(!1,function(c,h){return!!h._syncPendingControls()||c});return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_throwIfControlMissing",value:function(l){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[l])throw new Error("Cannot find form control with name: ".concat(l,"."))}},{key:"_forEachChild",value:function(l){var c=this;Object.keys(this.controls).forEach(function(h){var _=c.controls[h];_&&l(_,h)})}},{key:"_setUpControls",value:function(){var l=this;this._forEachChild(function(c){c.setParent(l),c._registerOnCollectionChange(l._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(l){for(var c=0,h=Object.keys(this.controls);c0||this.disabled}},{key:"_checkAllValuesPresent",value:function(l){this._forEachChild(function(c,h){if(void 0===l[h])throw new Error("Must supply a value for form control with name: '".concat(h,"'."))})}}]),t}(Dq),kne=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,Mq(l),xq(c,l))).controls=n,h._initObservables(),h._setUpdateStrategy(l),h._setUpControls(),h.updateValueAndValidity({onlySelf:!0,emitEvent:!!h.asyncValidator}),h}return W(t,[{key:"at",value:function(l){return this.controls[l]}},{key:"push",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(l),this._registerControl(l),this.updateValueAndValidity({emitEvent:c.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(l,0,c),this._registerControl(c),this.updateValueAndValidity({emitEvent:h.emitEvent})}},{key:"removeAt",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),this.controls.splice(l,1),this.updateValueAndValidity({emitEvent:c.emitEvent})}},{key:"setControl",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),this.controls.splice(l,1),c&&(this.controls.splice(l,0,c),this._registerControl(c)),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(l),l.forEach(function(_,C){c._throwIfControlMissing(C),c.at(C).setValue(_,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}},{key:"patchValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=l&&(l.forEach(function(_,C){c.at(C)&&c.at(C).patchValue(_,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(h,_){h.reset(l[_],{onlySelf:!0,emitEvent:c.emitEvent})}),this._updatePristine(c),this._updateTouched(c),this.updateValueAndValidity(c)}},{key:"getRawValue",value:function(){return this.controls.map(function(l){return l instanceof I5?l.value:l.getRawValue()})}},{key:"clear",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(c){return c._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:l.emitEvent}))}},{key:"_syncPendingControls",value:function(){var l=this.controls.reduce(function(c,h){return!!h._syncPendingControls()||c},!1);return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_throwIfControlMissing",value:function(l){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(l))throw new Error("Cannot find form control at index ".concat(l))}},{key:"_forEachChild",value:function(l){this.controls.forEach(function(c,h){l(c,h)})}},{key:"_updateValue",value:function(){var l=this;this.value=this.controls.filter(function(c){return c.enabled||l.disabled}).map(function(c){return c.value})}},{key:"_anyControls",value:function(l){return this.controls.some(function(c){return c.enabled&&l(c)})}},{key:"_setUpControls",value:function(){var l=this;this._forEachChild(function(c){return l._registerControl(c)})}},{key:"_checkAllValuesPresent",value:function(l){this._forEachChild(function(c,h){if(void 0===l[h])throw new Error("Must supply a value for form control at index: ".concat(h,"."))})}},{key:"_allControlsDisabled",value:function(){var c,l=tn(this.controls);try{for(l.s();!(c=l.n()).done;)if(c.value.enabled)return!1}catch(_){l.e(_)}finally{l.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(l){l.setParent(this),l._registerOnCollectionChange(this._onCollectionChange)}}]),t}(Dq),Mne={provide:Yt,useExisting:Sn(function(){return Lc})},xP=function(){return Promise.resolve(null)}(),Lc=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this)).submitted=!1,h._directives=[],h.ngSubmit=new ye,h.form=new Aq({},de(l),_e(c)),h}return W(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(c){var h=this;xP.then(function(){var _=h._findContainer(c.path);c.control=_.registerControl(c.name,c.control),SP(c.control,c),c.control.updateValueAndValidity({emitEvent:!1}),h._directives.push(c)})}},{key:"getControl",value:function(c){return this.form.get(c.path)}},{key:"removeControl",value:function(c){var h=this;xP.then(function(){var _=h._findContainer(c.path);_&&_.removeControl(c.name),P5(h._directives,c)})}},{key:"addFormGroup",value:function(c){var h=this;xP.then(function(){var _=h._findContainer(c.path),C=new Aq({});IQ(C,c),_.registerControl(c.name,C),C.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(c){var h=this;xP.then(function(){var _=h._findContainer(c.path);_&&_.removeControl(c.name)})}},{key:"getFormGroup",value:function(c){return this.form.get(c.path)}},{key:"updateModel",value:function(c,h){var _=this;xP.then(function(){_.form.get(c.path).setValue(h)})}},{key:"setValue",value:function(c){this.control.setValue(c)}},{key:"onSubmit",value:function(c){return this.submitted=!0,RQ(this.form,this._directives),this.ngSubmit.emit(c),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(c),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(c){return c.pop(),c.length?this.form.get(c):this.form}}]),n}(Yt);return e.\u0275fac=function(t){return new(t||e)(N(b,10),N(w,10))},e.\u0275dir=ve({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){1&t&&ne("submit",function(c){return n.onSubmit(c)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Xe([Mne]),Pe]}),e}(),Dne={provide:Ut,useExisting:Sn(function(){return mr})},BQ=function(){return Promise.resolve(null)}(),mr=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){var C;return F(this,n),(C=t.call(this)).control=new I5,C._registered=!1,C.update=new ye,C._parent=l,C._setValidators(c),C._setAsyncValidators(h),C.valueAccessor=function(e,a){if(!a)return null;Array.isArray(a);var t=void 0,n=void 0,l=void 0;return a.forEach(function(c){c.constructor===g?t=c:function(e){return Object.getPrototypeOf(e.constructor)===r}(c)?n=c:l=c}),l||n||t||null}(It(C),_),C}return W(n,[{key:"ngOnChanges",value:function(c){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in c&&this._updateDisabled(c),function(e,a){if(!e.hasOwnProperty("model"))return!1;var t=e.model;return!!t.isFirstChange()||!Object.is(a,t.currentValue)}(c,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?function(e,a){return[].concat(At(a.path),[e])}(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(c){this.viewModel=c,this.update.emit(c)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){SP(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(c){var h=this;BQ.then(function(){h.control.setValue(c,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(c){var h=this,_=c.isDisabled.currentValue,C=""===_||_&&"false"!==_;BQ.then(function(){C&&!h.control.disabled?h.control.disable():!C&&h.control.disabled&&h.control.enable()})}}]),n}(Ut);return e.\u0275fac=function(t){return new(t||e)(N(Yt,9),N(b,10),N(w,10),N(s,10))},e.\u0275dir=ve({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Xe([Dne]),Pe,an]}),e}(),Eq=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),Ene={provide:s,useExisting:Sn(function(){return zg}),multi:!0},zg=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return W(n,[{key:"writeValue",value:function(c){this.setProperty("value",null==c?"":c)}},{key:"registerOnChange",value:function(c){this.onChange=function(h){c(""==h?null:parseFloat(h))}}}]),n}(r);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,n){1&t&&ne("input",function(c){return n.onChange(c.target.value)})("blur",function(){return n.onTouched()})},features:[Xe([Ene]),Pe]}),e}(),HQ=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),Pq=new Ee("NgModelWithFormControlWarning"),Lne={provide:Yt,useExisting:Sn(function(){return yp})},yp=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this)).validators=l,h.asyncValidators=c,h.submitted=!1,h._onCollectionChange=function(){return h._updateDomValue()},h.directives=[],h.form=null,h.ngSubmit=new ye,h._setValidators(l),h._setAsyncValidators(c),h}return W(n,[{key:"ngOnChanges",value:function(c){this._checkFormPresent(),c.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(E5(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(c){var h=this.form.get(c.path);return SP(h,c),h.updateValueAndValidity({emitEvent:!1}),this.directives.push(c),h}},{key:"getControl",value:function(c){return this.form.get(c.path)}},{key:"removeControl",value:function(c){D5(c.control||null,c),P5(this.directives,c)}},{key:"addFormGroup",value:function(c){this._setUpFormContainer(c)}},{key:"removeFormGroup",value:function(c){this._cleanUpFormContainer(c)}},{key:"getFormGroup",value:function(c){return this.form.get(c.path)}},{key:"addFormArray",value:function(c){this._setUpFormContainer(c)}},{key:"removeFormArray",value:function(c){this._cleanUpFormContainer(c)}},{key:"getFormArray",value:function(c){return this.form.get(c.path)}},{key:"updateModel",value:function(c,h){this.form.get(c.path).setValue(h)}},{key:"onSubmit",value:function(c){return this.submitted=!0,RQ(this.form,this.directives),this.ngSubmit.emit(c),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(c),this.submitted=!1}},{key:"_updateDomValue",value:function(){var c=this;this.directives.forEach(function(h){var _=h.control,C=c.form.get(h.path);_!==C&&(D5(_||null,h),C instanceof I5&&(SP(C,h),h.control=C))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(c){var h=this.form.get(c.path);IQ(h,c),h.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(c){if(this.form){var h=this.form.get(c.path);h&&function(e,a){return E5(e,a)}(h,c)&&h.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){wq(this.form,this),this._oldForm&&E5(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(Yt);return e.\u0275fac=function(t){return new(t||e)(N(b,10),N(w,10))},e.\u0275dir=ve({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,n){1&t&&ne("submit",function(c){return n.onSubmit(c)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Xe([Lne]),Pe,an]}),e}();var qne={provide:b,useExisting:Sn(function(){return Iu}),multi:!0},Xne={provide:b,useExisting:Sn(function(){return R5}),multi:!0},Iu=function(){var e=function(){function a(){F(this,a),this._required=!1}return W(a,[{key:"required",get:function(){return this._required},set:function(n){this._required=null!=n&&!1!==n&&"false"!=="".concat(n),this._onChange&&this._onChange()}},{key:"validate",value:function(n){return this.required?P(n):null}},{key:"registerOnValidatorChange",value:function(n){this._onChange=n}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,n){2&t&&Ke("required",n.required?"":null)},inputs:{required:"required"},features:[Xe([qne])]}),e}(),R5=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return W(n,[{key:"validate",value:function(c){return this.required?O(c):null}}]),n}(Iu);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&Ke("required",n.required?"":null)},features:[Xe([Xne]),Pe]}),e}(),$ne={provide:b,useExisting:Sn(function(){return L5}),multi:!0},L5=function(){var e=function(){function a(){F(this,a),this._validator=j}return W(a,[{key:"ngOnChanges",value:function(n){"maxlength"in n&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(n){return this.enabled()?this._validator(n):null}},{key:"registerOnValidatorChange",value:function(n){this._onChange=n}},{key:"_createValidator",value:function(){this._validator=this.enabled()?B(function(e){return"number"==typeof e?e:parseInt(e,10)}(this.maxlength)):j}},{key:"enabled",value:function(){return null!=this.maxlength}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&Ke("maxlength",n.enabled()?n.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Xe([$ne]),an]}),e}(),tJ=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[HQ]]}),e}(),Jne=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[tJ]}),e}(),ere=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"withConfig",value:function(n){return{ngModule:a,providers:[{provide:Pq,useValue:n.warnOnNgModelWithFormControl}]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[tJ]}),e}();function tre(e,a){1&e&&Wt(0)}var Fq=["*"];function nre(e,a){}var rre=function(a){return{animationDuration:a}},ire=function(a,t){return{value:a,params:t}},are=["tabBodyWrapper"],ore=["tabHeader"];function sre(e,a){}function lre(e,a){1&e&&re(0,sre,0,0,"ng-template",9),2&e&&z("cdkPortalOutlet",J().$implicit.templateLabel)}function ure(e,a){1&e&&K(0),2&e&&On(J().$implicit.textLabel)}function cre(e,a){if(1&e){var t=De();A(0,"div",6),ne("click",function(){var _=pe(t),C=_.$implicit,k=_.index,D=J(),I=Pn(1);return D._handleClick(C,I,k)})("cdkFocusChange",function(_){var k=pe(t).index;return J()._tabFocusChanged(_,k)}),A(1,"div",7),re(2,lre,1,1,"ng-template",8),re(3,ure,1,1,"ng-template",8),E(),E()}if(2&e){var n=a.$implicit,l=a.index,c=J();dt("mat-tab-label-active",c.selectedIndex==l),z("id",c._getTabLabelId(l))("disabled",n.disabled)("matRippleDisabled",n.disabled||c.disableRipple),Ke("tabIndex",c._getTabIndex(n,l))("aria-posinset",l+1)("aria-setsize",c._tabs.length)("aria-controls",c._getTabContentId(l))("aria-selected",c.selectedIndex==l)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),H(2),z("ngIf",n.templateLabel),H(1),z("ngIf",!n.templateLabel)}}function fre(e,a){if(1&e){var t=De();A(0,"mat-tab-body",10),ne("_onCentered",function(){return pe(t),J()._removeTabBodyWrapperHeight()})("_onCentering",function(_){return pe(t),J()._setTabBodyWrapperHeight(_)}),E()}if(2&e){var n=a.$implicit,l=a.index,c=J();dt("mat-tab-body-active",c.selectedIndex===l),z("id",c._getTabContentId(l))("content",n.content)("position",n.position)("origin",n.origin)("animationDuration",c.animationDuration),Ke("tabindex",null!=c.contentTabIndex&&c.selectedIndex===l?c.contentTabIndex:null)("aria-labelledby",c._getTabLabelId(l))}}var nJ=["tabListContainer"],rJ=["tabList"],iJ=["nextPaginator"],aJ=["previousPaginator"],hre=new Ee("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),F5=function(){var e=function(){function a(t,n,l,c){F(this,a),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=l,this._animationMode=c}return W(a,[{key:"alignToElement",value:function(n){var l=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return l._setStyles(n)})}):this._setStyles(n)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(n){var l=this._inkBarPositioner(n),c=this._elementRef.nativeElement;c.style.left=l.left,c.style.width=l.width}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(hre),N(Un,8))},e.\u0275dir=ve({type:e,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,n){2&t&&dt("_mat-animation-noopable","NoopAnimations"===n._animationMode)}}),e}(),oJ=new Ee("MatTabContent"),sJ=new Ee("MatTabLabel"),Fc=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return n}(nE);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Xe([{provide:sJ,useExisting:e}]),Pe]}),e}(),vre=ia(function(){return function e(){F(this,e)}}()),lJ=new Ee("MAT_TAB_GROUP"),Ru=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this))._viewContainerRef=l,h._closestTabGroup=c,h.textLabel="",h._contentPortal=null,h._stateChanges=new qe,h.position=null,h.origin=null,h.isActive=!1,h}return W(n,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(c){this._setTemplateLabelInput(c)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(c){(c.hasOwnProperty("textLabel")||c.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new Ps(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(c){c&&(this._templateLabel=c)}}]),n}(vre);return e.\u0275fac=function(t){return new(t||e)(N($n),N(lJ,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-tab"]],contentQueries:function(t,n,l){var c;1&t&&(Zt(l,sJ,5),Zt(l,oJ,7,Xn)),2&t&&(Ne(c=Le())&&(n.templateLabel=c.first),Ne(c=Le())&&(n._explicitContent=c.first))},viewQuery:function(t,n){var l;1&t&&wt(Xn,7),2&t&&Ne(l=Le())&&(n._implicitContent=l.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Pe,an],ngContentSelectors:Fq,decls:1,vars:0,template:function(t,n){1&t&&(rr(),re(0,tre,1,0,"ng-template"))},encapsulation:2}),e}(),gre={translateTab:Ei("translateTab",[Bn("center, void, left-origin-center, right-origin-center",gt({transform:"none"})),Bn("left",gt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Bn("right",gt({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),zn("* => left, * => right, left => center, right => center",Tn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),zn("void => left-origin-center",[gt({transform:"translate3d(-100%, 0, 0)"}),Tn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),zn("void => right-origin-center",[gt({transform:"translate3d(100%, 0, 0)"}),Tn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},mre=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){var C;return F(this,n),(C=t.call(this,l,c,_))._host=h,C._centeringSub=Be.EMPTY,C._leavingSub=Be.EMPTY,C}return W(n,[{key:"ngOnInit",value:function(){var c=this;Ie(Oe(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe($r(this._host._isCenterPosition(this._host._position))).subscribe(function(h){h&&!c.hasAttached()&&c.attach(c._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){c.detach()})}},{key:"ngOnDestroy",value:function(){Ie(Oe(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(Os);return e.\u0275fac=function(t){return new(t||e)(N(Ki),N($n),N(Sn(function(){return uJ})),N(lt))},e.\u0275dir=ve({type:e,selectors:[["","matTabBodyHost",""]],features:[Pe]}),e}(),_re=function(){var e=function(){function a(t,n,l){var c=this;F(this,a),this._elementRef=t,this._dir=n,this._dirChangeSubscription=Be.EMPTY,this._translateTabComplete=new qe,this._onCentering=new ye,this._beforeCentering=new ye,this._afterLeavingCenter=new ye,this._onCentered=new ye(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(h){c._computePositionAnimationState(h),l.markForCheck()})),this._translateTabComplete.pipe(Xa(function(h,_){return h.fromState===_.fromState&&h.toState===_.toState})).subscribe(function(h){c._isCenterPosition(h.toState)&&c._isCenterPosition(c._position)&&c._onCentered.emit(),c._isCenterPosition(h.fromState)&&!c._isCenterPosition(c._position)&&c._afterLeavingCenter.emit()})}return W(a,[{key:"position",set:function(n){this._positionIndex=n,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(n){var l=this._isCenterPosition(n.toState);this._beforeCentering.emit(l),l&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(n){return"center"==n||"left-origin-center"==n||"right-origin-center"==n}},{key:"_computePositionAnimationState",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==n?"left":"right":this._positionIndex>0?"ltr"==n?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(n){var l=this._getLayoutDirection();return"ltr"==l&&n<=0||"rtl"==l&&n>0?"left-origin-center":"right-origin-center"}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Mr,8),N(Vt))},e.\u0275dir=ve({type:e,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),e}(),uJ=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){return F(this,n),t.call(this,l,c,h)}return n}(_re);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Mr,8),N(Vt))},e.\u0275cmp=ke({type:e,selectors:[["mat-tab-body"]],viewQuery:function(t,n){var l;1&t&&wt(Os,5),2&t&&Ne(l=Le())&&(n._portalHost=l.first)},hostAttrs:[1,"mat-tab-body"],features:[Pe],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,n){1&t&&(A(0,"div",0,1),ne("@translateTab.start",function(c){return n._onTranslateTabStarted(c)})("@translateTab.done",function(c){return n._translateTabComplete.next(c)}),re(2,nre,0,0,"ng-template",2),E()),2&t&&z("@translateTab",zf(3,ire,n._position,vl(1,rre,n.animationDuration)))},directives:[mre],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[gre.translateTab]}}),e}(),cJ=new Ee("MAT_TABS_CONFIG"),yre=0,bre=function e(){F(this,e)},Cre=Eu(El(function(){return function e(a){F(this,e),this._elementRef=a}}()),"primary"),wre=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){var C,k;return F(this,n),(C=t.call(this,l))._changeDetectorRef=c,C._animationMode=_,C._tabs=new Wo,C._indexToSelect=0,C._tabBodyWrapperHeight=0,C._tabsSubscription=Be.EMPTY,C._tabLabelSubscription=Be.EMPTY,C._selectedIndex=null,C.headerPosition="above",C.selectedIndexChange=new ye,C.focusChange=new ye,C.animationDone=new ye,C.selectedTabChange=new ye(!0),C._groupId=yre++,C.animationDuration=h&&h.animationDuration?h.animationDuration:"500ms",C.disablePagination=!(!h||null==h.disablePagination)&&h.disablePagination,C.dynamicHeight=!(!h||null==h.dynamicHeight)&&h.dynamicHeight,C.contentTabIndex=null!==(k=null==h?void 0:h.contentTabIndex)&&void 0!==k?k:null,C}return W(n,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(c){this._dynamicHeight=it(c)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(c){this._indexToSelect=Di(c,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(c){this._animationDuration=/^\d+$/.test(c)?c+"ms":c}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(c){this._contentTabIndex=Di(c,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(c){var h=this._elementRef.nativeElement;h.classList.remove("mat-background-".concat(this.backgroundColor)),c&&h.classList.add("mat-background-".concat(c)),this._backgroundColor=c}},{key:"ngAfterContentChecked",value:function(){var c=this,h=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=h){var _=null==this._selectedIndex;if(!_){this.selectedTabChange.emit(this._createChangeEvent(h));var C=this._tabBodyWrapper.nativeElement;C.style.minHeight=C.clientHeight+"px"}Promise.resolve().then(function(){c._tabs.forEach(function(k,D){return k.isActive=D===h}),_||(c.selectedIndexChange.emit(h),c._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(k,D){k.position=D-h,null!=c._selectedIndex&&0==k.position&&!k.origin&&(k.origin=h-c._selectedIndex)}),this._selectedIndex!==h&&(this._selectedIndex=h,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var c=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(c._clampTabIndex(c._indexToSelect)===c._selectedIndex)for(var _=c._tabs.toArray(),C=0;C<_.length;C++)if(_[C].isActive){c._indexToSelect=c._selectedIndex=C;break}c._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var c=this;this._allTabs.changes.pipe($r(this._allTabs)).subscribe(function(h){c._tabs.reset(h.filter(function(_){return _._closestTabGroup===c||!_._closestTabGroup})),c._tabs.notifyOnChanges()})}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"focusTab",value:function(c){var h=this._tabHeader;h&&(h.focusIndex=c)}},{key:"_focusChanged",value:function(c){this.focusChange.emit(this._createChangeEvent(c))}},{key:"_createChangeEvent",value:function(c){var h=new bre;return h.index=c,this._tabs&&this._tabs.length&&(h.tab=this._tabs.toArray()[c]),h}},{key:"_subscribeToTabLabels",value:function(){var c=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=ot.apply(void 0,At(this._tabs.map(function(h){return h._stateChanges}))).subscribe(function(){return c._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(c){return Math.min(this._tabs.length-1,Math.max(c||0,0))}},{key:"_getTabLabelId",value:function(c){return"mat-tab-label-".concat(this._groupId,"-").concat(c)}},{key:"_getTabContentId",value:function(c){return"mat-tab-content-".concat(this._groupId,"-").concat(c)}},{key:"_setTabBodyWrapperHeight",value:function(c){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var h=this._tabBodyWrapper.nativeElement;h.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(h.style.height=c+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var c=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=c.clientHeight,c.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(c,h,_){c.disabled||(this.selectedIndex=h.focusIndex=_)}},{key:"_getTabIndex",value:function(c,h){return c.disabled?null:this.selectedIndex===h?0:-1}},{key:"_tabFocusChanged",value:function(c,h){c&&"mouse"!==c&&"touch"!==c&&(this._tabHeader.focusIndex=h)}}]),n}(Cre);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(cJ,8),N(Un,8))},e.\u0275dir=ve({type:e,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[Pe]}),e}(),Nc=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){return F(this,n),t.call(this,l,c,h,_)}return n}(wre);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(cJ,8),N(Un,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-tab-group"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,Ru,5),2&t&&Ne(c=Le())&&(n._allTabs=c)},viewQuery:function(t,n){var l;1&t&&(wt(are,5),wt(ore,5)),2&t&&(Ne(l=Le())&&(n._tabBodyWrapper=l.first),Ne(l=Le())&&(n._tabHeader=l.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,n){2&t&&dt("mat-tab-group-dynamic-height",n.dynamicHeight)("mat-tab-group-inverted-header","below"===n.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Xe([{provide:lJ,useExisting:e}]),Pe],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,n){1&t&&(A(0,"mat-tab-header",0,1),ne("indexFocused",function(c){return n._focusChanged(c)})("selectFocusedIndex",function(c){return n.selectedIndex=c}),re(2,cre,4,14,"div",2),E(),A(3,"div",3,4),re(5,fre,1,9,"mat-tab-body",5),E()),2&t&&(z("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),H(2),z("ngForOf",n._tabs),H(1),dt("_mat-animation-noopable","NoopAnimations"===n._animationMode),H(2),z("ngForOf",n._tabs))},directives:function(){return[Tre,er,fJ,Ls,OE,Kt,Os,uJ]},styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),e}(),Sre=ia(function(){return function e(){F(this,e)}}()),fJ=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this)).elementRef=l,c}return W(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(Sre);return e.\u0275fac=function(t){return new(t||e)(N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,n){2&t&&(Ke("aria-disabled",!!n.disabled),dt("mat-tab-disabled",n.disabled))},inputs:{disabled:"disabled"},features:[Pe]}),e}(),dJ=tp({passive:!0}),pJ=function(){var e=function(){function a(t,n,l,c,h,_,C){var k=this;F(this,a),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=l,this._dir=c,this._ngZone=h,this._platform=_,this._animationMode=C,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new qe,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new qe,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new ye,this.indexFocused=new ye,h.runOutsideAngular(function(){Tl(t.nativeElement,"mouseleave").pipe(Ht(k._destroyed)).subscribe(function(){k._stopInterval()})})}return W(a,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(n){n=Di(n),this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}},{key:"ngAfterViewInit",value:function(){var n=this;Tl(this._previousPaginator.nativeElement,"touchstart",dJ).pipe(Ht(this._destroyed)).subscribe(function(){n._handlePaginatorPress("before")}),Tl(this._nextPaginator.nativeElement,"touchstart",dJ).pipe(Ht(this._destroyed)).subscribe(function(){n._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var n=this,l=this._dir?this._dir.change:ut("ltr"),c=this._viewportRuler.change(150),h=function(){n.updatePagination(),n._alignInkBarToSelectedTab()};this._keyManager=new ib(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(h):h(),ot(l,c,this._items.changes).pipe(Ht(this._destroyed)).subscribe(function(){n._ngZone.run(function(){return Promise.resolve().then(h)}),n._keyManager.withHorizontalOrientation(n._getLayoutDirection())}),this._keyManager.change.pipe(Ht(this._destroyed)).subscribe(function(_){n.indexFocused.emit(_),n._setTabFocus(_)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(n){if(!Bi(n))switch(n.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(n));break;default:this._keyManager.onKeydown(n)}}},{key:"_onContentChanges",value:function(){var n=this,l=this._elementRef.nativeElement.textContent;l!==this._currentTextContent&&(this._currentTextContent=l||"",this._ngZone.run(function(){n.updatePagination(),n._alignInkBarToSelectedTab(),n._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(n){!this._isValidIndex(n)||this.focusIndex===n||!this._keyManager||this._keyManager.setActiveItem(n)}},{key:"_isValidIndex",value:function(n){if(!this._items)return!0;var l=this._items?this._items.toArray()[n]:null;return!!l&&!l.disabled}},{key:"_setTabFocus",value:function(n){if(this._showPaginationControls&&this._scrollToLabel(n),this._items&&this._items.length){this._items.toArray()[n].focus();var l=this._tabListContainer.nativeElement,c=this._getLayoutDirection();l.scrollLeft="ltr"==c?0:l.scrollWidth-l.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var n=this.scrollDistance,l="ltr"===this._getLayoutDirection()?-n:n;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(l),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(n){this._scrollTo(n)}},{key:"_scrollHeader",value:function(n){return this._scrollTo(this._scrollDistance+("before"==n?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(n){this._stopInterval(),this._scrollHeader(n)}},{key:"_scrollToLabel",value:function(n){if(!this.disablePagination){var l=this._items?this._items.toArray()[n]:null;if(l){var k,D,c=this._tabListContainer.nativeElement.offsetWidth,h=l.elementRef.nativeElement,_=h.offsetLeft,C=h.offsetWidth;"ltr"==this._getLayoutDirection()?D=(k=_)+C:k=(D=this._tabList.nativeElement.offsetWidth-_)-C;var I=this.scrollDistance,L=this.scrollDistance+c;kL&&(this.scrollDistance+=D-L+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var n=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;n||(this.scrollDistance=0),n!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=n}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var n=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,l=n?n.elementRef.nativeElement:null;l?this._inkBar.alignToElement(l):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(n,l){var c=this;l&&null!=l.button&&0!==l.button||(this._stopInterval(),K3(650,100).pipe(Ht(ot(this._stopScrolling,this._destroyed))).subscribe(function(){var h=c._scrollHeader(n),C=h.distance;(0===C||C>=h.maxScrollDistance)&&c._stopInterval()}))}},{key:"_scrollTo",value:function(n){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var l=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(l,n)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:l,distance:this._scrollDistance}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(yo),N(Mr,8),N(ft),N(en),N(Un,8))},e.\u0275dir=ve({type:e,inputs:{disablePagination:"disablePagination"}}),e}(),xre=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){var I;return F(this,n),(I=t.call(this,l,c,h,_,C,k,D))._disableRipple=!1,I}return W(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(c){this._disableRipple=it(c)}},{key:"_itemSelected",value:function(c){c.preventDefault()}}]),n}(pJ);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(yo),N(Mr,8),N(ft),N(en),N(Un,8))},e.\u0275dir=ve({type:e,inputs:{disableRipple:"disableRipple"},features:[Pe]}),e}(),Tre=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){return F(this,n),t.call(this,l,c,h,_,C,k,D)}return n}(xre);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(yo),N(Mr,8),N(ft),N(en),N(Un,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-tab-header"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,fJ,4),2&t&&Ne(c=Le())&&(n._items=c)},viewQuery:function(t,n){var l;1&t&&(wt(F5,7),wt(nJ,7),wt(rJ,7),wt(iJ,5),wt(aJ,5)),2&t&&(Ne(l=Le())&&(n._inkBar=l.first),Ne(l=Le())&&(n._tabListContainer=l.first),Ne(l=Le())&&(n._tabList=l.first),Ne(l=Le())&&(n._nextPaginator=l.first),Ne(l=Le())&&(n._previousPaginator=l.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,n){2&t&&dt("mat-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-tab-header-rtl","rtl"==n._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Pe],ngContentSelectors:Fq,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,n){1&t&&(rr(),A(0,"div",0,1),ne("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(c){return n._handlePaginatorPress("before",c)})("touchend",function(){return n._stopInterval()}),me(2,"div",2),E(),A(3,"div",3,4),ne("keydown",function(c){return n._handleKeydown(c)}),A(5,"div",5,6),ne("cdkObserveContent",function(){return n._onContentChanges()}),A(7,"div",7),Wt(8),E(),me(9,"mat-ink-bar"),E(),E(),A(10,"div",8,9),ne("mousedown",function(c){return n._handlePaginatorPress("after",c)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),me(12,"div",2),E()),2&t&&(dt("mat-tab-header-pagination-disabled",n._disableScrollBefore),z("matRippleDisabled",n._disableScrollBefore||n.disableRipple),H(5),dt("_mat-animation-noopable","NoopAnimations"===n._animationMode),H(5),dt("mat-tab-header-pagination-disabled",n._disableScrollAfter),z("matRippleDisabled",n._disableScrollAfter||n.disableRipple))},directives:[Ls,nb,F5],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),e}(),Ore=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Wa,$t,xg,Da,ld,LE],$t]}),e}();function Ire(e,a){if(1&e){var t=De();A(0,"uds-field-text",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Rre(e,a){if(1&e){var t=De();A(0,"uds-field-autocomplete",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Lre(e,a){if(1&e){var t=De();A(0,"uds-field-textbox",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Fre(e,a){if(1&e){var t=De();A(0,"uds-field-numeric",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Nre(e,a){if(1&e){var t=De();A(0,"uds-field-password",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Vre(e,a){if(1&e){var t=De();A(0,"uds-field-hidden",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Bre(e,a){if(1&e){var t=De();A(0,"uds-field-choice",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Hre(e,a){if(1&e){var t=De();A(0,"uds-field-multichoice",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function zre(e,a){if(1&e){var t=De();A(0,"uds-field-editlist",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Ure(e,a){if(1&e){var t=De();A(0,"uds-field-checkbox",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Gre(e,a){if(1&e){var t=De();A(0,"uds-field-imgchoice",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function jre(e,a){if(1&e){var t=De();A(0,"uds-field-date",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Wre(e,a){if(1&e){var t=De();A(0,"uds-field-tags",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}var gJ=function(){function e(){this.changed=new ye,this.udsGuiFieldType=Pl}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:14,vars:15,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"field","changed"]],template:function(t,n){1&t&&(A(0,"div",0),re(1,Ire,1,1,"uds-field-text",1),re(2,Rre,1,1,"uds-field-autocomplete",1),re(3,Lre,1,1,"uds-field-textbox",1),re(4,Fre,1,1,"uds-field-numeric",1),re(5,Nre,1,1,"uds-field-password",1),re(6,Vre,1,1,"uds-field-hidden",1),re(7,Bre,1,1,"uds-field-choice",1),re(8,Hre,1,1,"uds-field-multichoice",1),re(9,zre,1,1,"uds-field-editlist",1),re(10,Ure,1,1,"uds-field-checkbox",1),re(11,Gre,1,1,"uds-field-imgchoice",1),re(12,jre,1,1,"uds-field-date",1),re(13,Wre,1,1,"uds-field-tags",1),E()),2&t&&(z("ngSwitch",n.field.gui.type)("matTooltip",n.field.gui.tooltip),H(1),z("ngSwitchCase",n.udsGuiFieldType.TEXT),H(1),z("ngSwitchCase",n.udsGuiFieldType.TEXT_AUTOCOMPLETE),H(1),z("ngSwitchCase",n.udsGuiFieldType.TEXTBOX),H(1),z("ngSwitchCase",n.udsGuiFieldType.NUMERIC),H(1),z("ngSwitchCase",n.udsGuiFieldType.PASSWORD),H(1),z("ngSwitchCase",n.udsGuiFieldType.HIDDEN),H(1),z("ngSwitchCase",n.udsGuiFieldType.CHOICE),H(1),z("ngSwitchCase",n.udsGuiFieldType.MULTI_CHOICE),H(1),z("ngSwitchCase",n.udsGuiFieldType.EDITLIST),H(1),z("ngSwitchCase",n.udsGuiFieldType.CHECKBOX),H(1),z("ngSwitchCase",n.udsGuiFieldType.IMAGECHOICE),H(1),z("ngSwitchCase",n.udsGuiFieldType.DATE),H(1),z("ngSwitchCase",n.udsGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]}),e}();function Yre(e,a){1&e&&K(0),2&e&&Ve(" ",J().$implicit," ")}function qre(e,a){if(1&e){var t=De();A(0,"uds-field",7),ne("changed",function(c){return pe(t),J(3).changed.emit(c)}),E()}2&e&&z("field",a.$implicit)}function Xre(e,a){if(1&e&&(A(0,"mat-tab"),re(1,Yre,1,1,"ng-template",4),A(2,"div",5),re(3,qre,1,1,"uds-field",6),E(),E()),2&e){var t=a.$implicit,n=J(2);H(3),z("ngForOf",n.fieldsByTab[t])}}function Zre(e,a){if(1&e&&(A(0,"mat-tab-group",2),re(1,Xre,4,1,"mat-tab",3),E()),2&e){var t=J();z("disableRipple",!0)("@.disabled",!0),H(1),z("ngForOf",t.tabs)}}function Kre(e,a){if(1&e){var t=De();A(0,"div"),A(1,"uds-field",7),ne("changed",function(c){return pe(t),J(2).changed.emit(c)}),E(),E()}if(2&e){var n=a.$implicit;H(1),z("field",n)}}function $re(e,a){1&e&&re(0,Kre,2,1,"div",3),2&e&&z("ngForOf",J().fields)}var Qre=django.gettext("Main"),Jre=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){var a=this;this.tabs=new Array,this.fieldsByTab={},this.fields.forEach(function(t){var n=void 0===t.gui.tab?Qre:t.gui.tab;a.tabs.includes(n)||(a.tabs.push(n),a.fieldsByTab[n]=new Array),a.fieldsByTab[n].push(t)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[[3,"disableRipple",4,"ngIf","ngIfElse"],["onlyone",""],[3,"disableRipple"],[4,"ngFor","ngForOf"],["mat-tab-label",""],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"field","changed"]],template:function(t,n){if(1&t&&(re(0,Zre,2,3,"mat-tab-group",0),re(1,$re,1,1,"ng-template",null,1,ml)),2&t){var l=Pn(2);z("ngIf",n.tabs.length>1)("ngIfElse",l)}},directives:[Kt,Nc,er,Ru,Fc,gJ],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap} .mat-form-field-wrapper{padding-bottom:1em} .mat-tab-label{height:32px!important}"]}),e}();function eie(e,a){if(1&e){var t=De();A(0,"button",10),ne("click",function(){return pe(t),J().customButtonClicked()}),K(1),E()}if(2&e){var n=J();H(1),On(n.data.customButton)}}var $S,tie=function(){function e(a,t){this.dialogRef=a,this.data=t,this.onEvent=new ye(!0),this.saving=!1}return e.prototype.ngOnInit=function(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})},e.prototype.changed=function(a){this.onEvent.emit({type:"changed",data:a,dialog:this.dialogRef})},e.prototype.getFields=function(){var a={},t=[];return this.data.guiFields.forEach(function(n){var l=void 0!==n.values?n.values:n.value;if(n.gui.required&&0!==l&&(!l||l instanceof Array&&0===l.length)&&t.push(n.gui.label),"number"==typeof l){var c=parseInt((n.gui.minValue||987654321).toString(),10),h=parseInt((n.gui.maxValue||987654321).toString(),10);987654321!==c&&l= "+n.gui.minValue),987654321!==h&&l>h&&t.push(n.gui.label+" <= "+n.gui.maxValue),l=l.toString()}a[n.name]=l}),{data:a,errors:t}},e.prototype.save=function(){var a=this.getFields();a.errors.length>0?this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+a.errors.join(", ")):this.onEvent.emit({data:a.data,type:"save",dialog:this.dialogRef})},e.prototype.customButtonClicked=function(){var a=this.getFields();this.onEvent.emit({data:a.data,type:this.data.customButton,errors:a.errors,dialog:this.dialogRef})},e.\u0275fac=function(t){return new(t||e)(N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["mat-dialog-title","",3,"innerHtml"],["vc",""],["autocomplete","off"],[3,"fields","changed"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","","color","primary",3,"disabled","click"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(t,n){1&t&&(me(0,"h4",0),Uf(1,"safeHtml"),A(2,"mat-dialog-content",null,1),A(4,"form",2),A(5,"uds-form",3),ne("changed",function(c){return n.changed(c)}),E(),E(),E(),A(6,"mat-dialog-actions"),A(7,"div",4),A(8,"div",5),re(9,eie,2,1,"button",6),E(),A(10,"div",7),A(11,"button",8),ne("click",function(){return n.dialogRef.close()}),A(12,"uds-translate"),K(13,"Discard & close"),E(),E(),A(14,"button",9),ne("click",function(){return n.save()}),A(15,"uds-translate"),K(16,"Save"),E(),E(),E(),E(),E()),2&t&&(z("innerHtml",Gf(1,5,n.data.title),Si),H(5),z("fields",n.data.guiFields),H(4),z("ngIf",void 0!==n.data.customButton),H(2),z("disabled",n.saving),H(3),z("disabled",n.saving))},directives:[Wr,Fr,Eq,Nr,Lc,Jre,Qr,Kt,Rn,Hn,Ts],pipes:[b5],styles:["h4[_ngcontent-%COMP%]{margin-bottom:0}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%} uds-field{flex:1 100%}button.custom[_ngcontent-%COMP%]{background-color:#4682b4;color:#fff}"]}),e}(),nie=function(){function e(a){this.gui=a}return e.prototype.modalForm=function(a,t,n,l){void 0===n&&(n=null),t.sort(function(C,k){return C.gui.order>k.gui.order?1:-1});var c=null!=n;n=c?n:{},t.forEach(function(C){(!1===c||void 0===C.gui.rdonly)&&(C.gui.rdonly=!1),C.gui.type===Pl.TEXT&&C.gui.multiline&&(C.gui.type=Pl.TEXTBOX);var k=n[C.name];void 0!==k&&(k instanceof Array?(C.values=new Array,k.forEach(function(D){return C.values.push(D)})):C.value=k)});var h=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(tie,{position:{top:"64px"},width:h,data:{title:a,guiFields:t,customButton:l,gui:this.gui},disableClose:!0}).componentInstance.onEvent},e.prototype.typedForm=function(a,t,n,l,c,h,_){var C=this;_=_||{};var k=new ye,D=n?django.gettext("Test"):void 0,I={},L={},G=function(Y){L.hasOwnProperty(Y.name)&&""!==Y.value&&void 0!==Y.value&&C.executeCallback(a,Y,I)};return _.snack||(_.snack=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),a.table.rest.gui(h).subscribe(function(Y){_.snack.dismiss(),void 0!==l&&l.forEach(function(Q){Y.push(Q)}),Y.forEach(function(Q){I[Q.name]=Q,void 0!==Q.gui.fills&&(L[Q.name]=Q.gui.fills)}),C.modalForm(t,Y,c,D).subscribe(function(Q){switch(Q.data&&(Q.data.data_type=h),Q.type){case D:if(Q.errors.length>0)return void C.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+Q.errors.join(", "));C.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),a.table.rest.test(h,Q.data).subscribe(function(Ce){"ok"!==Ce?C.gui.snackbar.open(django.gettext("Test failed:")+" "+Ce,django.gettext("dismiss")):C.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(null===Q.data)for(var ie=0,fe=Y;ie"+l.join(", ")+"";this.gui.yesno(t,h,!0).subscribe(function(_){if(_){var C=c.length,k=function(){n.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()};c.forEach(function(D){a.table.rest.delete(D).subscribe(function(I){0==--C&&k()},function(I){0==--C&&k()})})}})},e.prototype.executeCallback=function(a,t,n,l){var c=this;void 0===l&&(l={});var h=new Array;t.gui.fills.parameters.forEach(function(_){h.push(_+"="+encodeURIComponent(n[_].value))}),a.table.rest.callback(t.gui.fills.callbackName,h.join("&")).subscribe(function(_){var C=new Array;_.forEach(function(k){var D=n[k.name];void 0!==D&&(void 0!==D.gui.fills&&C.push(D),D.gui.values.length=0,k.values.forEach(function(I){return D.gui.values.push(I)}),D.value||(D.value=k.values.length>0?k.values[0].id:""))}),C.forEach(function(k){void 0===l[k.name]&&(l[k.name]=!0,c.executeCallback(a,k,n,l))})})},e}(),iie=function(){function e(a,t){this.dialog=a,this.snackbar=t,this.forms=new nie(this)}return e.prototype.alert=function(a,t,n,l){void 0===n&&(n=0);var c=l||(window.innerWidth<800?"80%":"40%");return this.dialog.open(k5,{width:c,data:{title:a,body:t,autoclose:n,type:Ou.alert},disableClose:!0}).componentInstance.yesno},e.prototype.yesno=function(a,t,n){void 0===n&&(n=!1);var l=window.innerWidth<800?"80%":"40%";return this.dialog.open(k5,{width:l,data:{title:a,body:t,type:Ou.yesno,warnOnYes:n},disableClose:!0}).componentInstance.yesno},e.prototype.icon=function(a,t){return void 0===t&&(t="24px"),''},e}(),Aa=function(e){return e.NUMERIC="numeric",e.ALPHANUMERIC="alphanumeric",e.DATETIME="datetime",e.DATETIMESEC="datetimesec",e.DATE="date",e.TIME="time",e.ICON="iconType",e.CALLBACK="callback",e.DICTIONARY="dict",e.IMAGE="image",e}({}),Jr=function(e){return e[e.ALWAYS=0]="ALWAYS",e[e.SINGLE_SELECT=1]="SINGLE_SELECT",e[e.MULTI_SELECT=2]="MULTI_SELECT",e[e.ONLY_MENU=3]="ONLY_MENU",e[e.ACCELERATOR=4]="ACCELERATOR",e}({}),_J="provider",yJ="service",Nq="pool",Vq="user",CJ="transport",wJ="osmanager",Bq="calendar",SJ="poolgroup",oie={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),user:django.gettext("user"),group:django.gettext("group"),transport:django.gettext("transport"),osmanager:django.gettext("OS manager"),calendar:django.gettext("calendar"),poolgroup:django.gettext("pool group")},Il=function(){function e(a){this.router=a}return e.getGotoButton=function(a,t,n){return{id:a,html:'link'+django.gettext("Go to")+" "+oie[a]+"",type:Jr.ACCELERATOR,acceleratorProperties:[t,n]}},e.prototype.gotoProvider=function(a){this.router.navigate(void 0!==a?["providers",a]:["providers"])},e.prototype.gotoService=function(a,t){this.router.navigate(void 0!==t?["providers",a,"detail",t]:["providers",a,"detail"])},e.prototype.gotoServicePool=function(a){this.router.navigate(["pools","service-pools",a])},e.prototype.gotoServicePoolDetail=function(a){this.router.navigate(["pools","service-pools",a,"detail"])},e.prototype.gotoMetapool=function(a){this.router.navigate(["pools","meta-pools",a])},e.prototype.gotoMetapoolDetail=function(a){this.router.navigate(["pools","meta-pools",a,"detail"])},e.prototype.gotoCalendar=function(a){this.router.navigate(["pools","calendars",a])},e.prototype.gotoCalendarDetail=function(a){this.router.navigate(["pools","calendars",a,"detail"])},e.prototype.gotoAccount=function(a){this.router.navigate(["pools","accounts",a])},e.prototype.gotoAccountDetail=function(a){this.router.navigate(["pools","accounts",a,"detail"])},e.prototype.gotoPoolGroup=function(a){this.router.navigate(["pools","pool-groups",a=a||""])},e.prototype.gotoAuthenticator=function(a){this.router.navigate(["authenticators",a])},e.prototype.gotoAuthenticatorDetail=function(a){this.router.navigate(["authenticators",a,"detail"])},e.prototype.gotoUser=function(a,t){this.router.navigate(["authenticators",a,"detail","users",t])},e.prototype.gotoGroup=function(a,t){this.router.navigate(["authenticators",a,"detail","groups",t])},e.prototype.gotoTransport=function(a){this.router.navigate(["transports",a])},e.prototype.gotoOSManager=function(a){this.router.navigate(["osmanagers",a])},e.prototype.goto=function(a,t,n){var l=function(c){var h=t;if(n[c].split(".").forEach(function(_){return h=h[_]}),!h)throw new Error("not going :)");return h};try{switch(a){case _J:this.gotoProvider(l(0));break;case yJ:this.gotoService(l(0),l(1));break;case Nq:this.gotoServicePool(l(0));break;case"authenticator":this.gotoAuthenticator(l(0));break;case Vq:this.gotoUser(l(0),l(1));break;case"group":this.gotoGroup(l(0),l(1));break;case CJ:this.gotoTransport(l(0));break;case wJ:this.gotoOSManager(l(0));break;case Bq:this.gotoCalendar(l(0));break;case SJ:this.gotoPoolGroup(l(0))}}catch(c){}},e}(),kJ=new Set,MJ=function(){var e=function(){function a(t){F(this,a),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):lie}return W(a,[{key:"matchMedia",value:function(n){return this._platform.WEBKIT&&function(e){if(!kJ.has(e))try{$S||(($S=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild($S)),$S.sheet&&($S.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),kJ.add(e))}catch(a){console.error(a)}}(n),this._matchMedia(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en))},e.\u0275prov=We({factory:function(){return new e(ce(en))},token:e,providedIn:"root"}),e}();function lie(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var Hq=function(){var e=function(){function a(t,n){F(this,a),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new qe}return W(a,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(n){var l=this;return xJ(Sg(n)).some(function(h){return l._registerQuery(h).mql.matches})}},{key:"observe",value:function(n){var l=this,_=Ry(xJ(Sg(n)).map(function(C){return l._registerQuery(C).observable}));return(_=d1(_.pipe(or(1)),_.pipe(LY(1),mE(0)))).pipe(He(function(C){var k={matches:!1,breakpoints:{}};return C.forEach(function(D){var I=D.matches,L=D.query;k.matches=k.matches||I,k.breakpoints[L]=I}),k}))}},{key:"_registerQuery",value:function(n){var l=this;if(this._queries.has(n))return this._queries.get(n);var c=this._mediaMatcher.matchMedia(n),_={observable:new gn(function(C){var k=function(I){return l._zone.run(function(){return C.next(I)})};return c.addListener(k),function(){c.removeListener(k)}}).pipe($r(c),He(function(C){return{query:n,matches:C.matches}}),Ht(this._destroySubject)),mql:c};return this._queries.set(n,_),_}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(MJ),ce(ft))},e.\u0275prov=We({factory:function(){return new e(ce(MJ),ce(ft))},token:e,providedIn:"root"}),e}();function xJ(e){return e.map(function(a){return a.split(",")}).reduce(function(a,t){return a.concat(t)}).map(function(a){return a.trim()})}function uie(e,a){if(1&e){var t=De();A(0,"div",1),A(1,"button",2),ne("click",function(){return pe(t),J().action()}),K(2),E(),E()}if(2&e){var n=J();H(2),On(n.data.action)}}function cie(e,a){}var DJ=new Ee("MatSnackBarData"),N5=function e(){F(this,e),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},fie=Math.pow(2,31)-1,zq=function(){function e(a,t){var n=this;F(this,e),this._overlayRef=t,this._afterDismissed=new qe,this._afterOpened=new qe,this._onAction=new qe,this._dismissedByAction=!1,this.containerInstance=a,this.onAction().subscribe(function(){return n.dismiss()}),a._onExit.subscribe(function(){return n._finishDismiss()})}return W(e,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var n=this;this._durationTimeoutId=setTimeout(function(){return n.dismiss()},Math.min(t,fie))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),e}(),die=function(){var e=function(){function a(t,n){F(this,a),this.snackBarRef=t,this.data=n}return W(a,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(zq),N(DJ))},e.\u0275cmp=ke({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,n){1&t&&(A(0,"span"),K(1),E(),re(2,uie,3,1,"div",0)),2&t&&(H(1),On(n.data.message),H(1),z("ngIf",n.hasAction))},directives:[Kt,Rn],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),e}(),hie={snackBarState:Ei("state",[Bn("void, hidden",gt({transform:"scale(0.8)",opacity:0})),Bn("visible",gt({transform:"scale(1)",opacity:1})),zn("* => visible",Tn("150ms cubic-bezier(0, 0, 0.2, 1)")),zn("* => void, * => hidden",Tn("75ms cubic-bezier(0.4, 0.0, 1, 1)",gt({opacity:0})))])},pie=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C){var k;return F(this,n),(k=t.call(this))._ngZone=l,k._elementRef=c,k._changeDetectorRef=h,k._platform=_,k.snackBarConfig=C,k._announceDelay=150,k._destroyed=!1,k._onAnnounce=new qe,k._onExit=new qe,k._onEnter=new qe,k._animationState="void",k.attachDomPortal=function(D){return k._assertNotAttached(),k._applySnackBarClasses(),k._portalOutlet.attachDomPortal(D)},k._live="assertive"!==C.politeness||C.announcementMessage?"off"===C.politeness?"off":"polite":"assertive",k._platform.FIREFOX&&("polite"===k._live&&(k._role="status"),"assertive"===k._live&&(k._role="alert")),k}return W(n,[{key:"attachComponentPortal",value:function(c){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(c)}},{key:"attachTemplatePortal",value:function(c){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(c)}},{key:"onAnimationEnd",value:function(c){var _=c.toState;if(("void"===_&&"void"!==c.fromState||"hidden"===_)&&this._completeExit(),"visible"===_){var C=this._onEnter;this._ngZone.run(function(){C.next(),C.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var c=this;this._ngZone.onMicrotaskEmpty.pipe(or(1)).subscribe(function(){c._onExit.next(),c._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var c=this._elementRef.nativeElement,h=this.snackBarConfig.panelClass;h&&(Array.isArray(h)?h.forEach(function(_){return c.classList.add(_)}):c.classList.add(h)),"center"===this.snackBarConfig.horizontalPosition&&c.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&c.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var c=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){c._announceTimeoutId=setTimeout(function(){var h=c._elementRef.nativeElement.querySelector("[aria-hidden]"),_=c._elementRef.nativeElement.querySelector("[aria-live]");if(h&&_){var C=null;c._platform.isBrowser&&document.activeElement instanceof HTMLElement&&h.contains(document.activeElement)&&(C=document.activeElement),h.removeAttribute("aria-hidden"),_.appendChild(h),null==C||C.focus(),c._onAnnounce.next(),c._onAnnounce.complete()}},c._announceDelay)})}}]),n}(Jy);return e.\u0275fac=function(t){return new(t||e)(N(ft),N(Ue),N(Vt),N(en),N(N5))},e.\u0275cmp=ke({type:e,selectors:[["snack-bar-container"]],viewQuery:function(t,n){var l;1&t&&wt(Os,7),2&t&&Ne(l=Le())&&(n._portalOutlet=l.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,n){1&t&&mv("@state.done",function(c){return n.onAnimationEnd(c)}),2&t&&Ba("@state",n._animationState)},features:[Pe],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,n){1&t&&(A(0,"div",0),re(1,cie,0,0,"ng-template",1),E(),me(2,"div")),2&t&&(H(2),Ke("aria-live",n._live)("role",n._role))},directives:[Os],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[hie.snackBarState]}}),e}(),AJ=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[fp,xg,Wa,Rc,$t],$t]}),e}(),EJ=new Ee("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new N5}}),gie=function(){var e=function(){function a(t,n,l,c,h,_){F(this,a),this._overlay=t,this._live=n,this._injector=l,this._breakpointObserver=c,this._parentSnackBar=h,this._defaultConfig=_,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=die,this.snackBarContainerComponent=pie,this.handsetCssClass="mat-snack-bar-handset"}return W(a,[{key:"_openedSnackBarRef",get:function(){var n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}},{key:"openFromComponent",value:function(n,l){return this._attach(n,l)}},{key:"openFromTemplate",value:function(n,l){return this._attach(n,l)}},{key:"open",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2?arguments[2]:void 0,h=Object.assign(Object.assign({},this._defaultConfig),c);return h.data={message:n,action:l},h.announcementMessage===n&&(h.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,h)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(n,l){var h=kn.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:N5,useValue:l}]}),_=new sd(this.snackBarContainerComponent,l.viewContainerRef,h),C=n.attach(_);return C.instance.snackBarConfig=l,C.instance}},{key:"_attach",value:function(n,l){var c=this,h=Object.assign(Object.assign(Object.assign({},new N5),this._defaultConfig),l),_=this._createOverlay(h),C=this._attachSnackBarContainer(_,h),k=new zq(C,_);if(n instanceof Xn){var D=new Ps(n,null,{$implicit:h.data,snackBarRef:k});k.instance=C.attachTemplatePortal(D)}else{var I=this._createInjector(h,k),L=new sd(n,void 0,I),G=C.attachComponentPortal(L);k.instance=G.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Ht(_.detachments())).subscribe(function(Y){var Q=_.overlayElement.classList;Y.matches?Q.add(c.handsetCssClass):Q.remove(c.handsetCssClass)}),h.announcementMessage&&C._onAnnounce.subscribe(function(){c._live.announce(h.announcementMessage,h.politeness)}),this._animateSnackBar(k,h),this._openedSnackBarRef=k,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(n,l){var c=this;n.afterDismissed().subscribe(function(){c._openedSnackBarRef==n&&(c._openedSnackBarRef=null),l.announcementMessage&&c._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),l.duration&&l.duration>0&&n.afterOpened().subscribe(function(){return n._dismissAfter(l.duration)})}},{key:"_createOverlay",value:function(n){var l=new up;l.direction=n.direction;var c=this._overlay.position().global(),h="rtl"===n.direction,_="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!h||"end"===n.horizontalPosition&&h,C=!_&&"center"!==n.horizontalPosition;return _?c.left("0"):C?c.right("0"):c.centerHorizontally(),"top"===n.verticalPosition?c.top("0"):c.bottom("0"),l.positionStrategy=c,this._overlay.create(l)}},{key:"_createInjector",value:function(n,l){return kn.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:zq,useValue:l},{provide:DJ,useValue:n.data}]})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Ai),ce(iS),ce(kn),ce(Hq),ce(e,12),ce(EJ))},e.\u0275prov=We({factory:function(){return new e(ce(Ai),ce(iS),ce(uv),ce(Hq),ce(e,12),ce(EJ))},token:e,providedIn:AJ}),e}(),PJ="dark-theme",OJ="light-theme",Pt=function(){function e(a,t,n,l,c,h){this.http=a,this.router=t,this.dialog=n,this.snackbar=l,this.sanitizer=c,this.dateAdapter=h,this.user=new CW(udsData.profile),this.navigation=new Il(this.router),this.gui=new iie(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}return Object.defineProperty(e.prototype,"config",{get:function(){return udsData.config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"csrfField",{get:function(){return csrf.csrfField},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"csrfToken",{get:function(){return csrf.csrfToken},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notices",{get:function(){return udsData.errors},enumerable:!1,configurable:!0}),e.prototype.restPath=function(a){return this.config.urls.rest+a},e.prototype.staticURL=function(a){return this.config.urls.static+a},e.prototype.logout=function(){window.location.href=this.config.urls.logout},e.prototype.gotoUser=function(){window.location.href=this.config.urls.user},e.prototype.putOnStorage=function(a,t){void 0!==typeof Storage&&sessionStorage.setItem(a,t)},e.prototype.getFromStorage=function(a){return void 0!==typeof Storage?sessionStorage.getItem(a):null},e.prototype.safeString=function(a){return this.sanitizer.bypassSecurityTrustHtml(a)},e.prototype.yesno=function(a){return a?django.gettext("yes"):django.gettext("no")},e.prototype.switchTheme=function(a){var t=document.getElementsByTagName("html")[0];[PJ,OJ].forEach(function(n){t.classList.contains(n)&&t.classList.remove(n)}),t.classList.add(a?PJ:OJ)},e.\u0275prov=We({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ce(dN),ce(Ta),ce(Sb),ce(gie),ce(ed),ce(Gr))},providedIn:"root"}),e}(),mie=function(){function e(a){this.api=a}return e.prototype.canActivate=function(a,t){return!!this.api.user.isStaff||(window.location.href=this.api.config.urls.user,!1)},e.\u0275prov=We({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ce(Pt))},providedIn:"root"}),e}(),Uq=function(e,a){return(Uq=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])})(e,a)};function aa(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=e}Uq(e,a),e.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}function Gq(e,a,t,n){return new(t||(t=Promise))(function(c,h){function _(D){try{k(n.next(D))}catch(I){h(I)}}function C(D){try{k(n.throw(D))}catch(I){h(I)}}function k(D){D.done?c(D.value):function(c){return c instanceof t?c:new t(function(h){h(c)})}(D.value).then(_,C)}k((n=n.apply(e,a||[])).next())})}var QS=function(e){return e[e.NONE=0]="NONE",e[e.READ=32]="READ",e[e.MANAGEMENT=64]="MANAGEMENT",e[e.ALL=96]="ALL",e}({}),Ea=function(){function e(a,t,n){this.api=a,void 0===n&&(n={}),void 0===n.base&&(n.base=t);var l=function(c,h){return void 0===c?h:c};this.id=t,this.paths={base:n.base,get:l(n.get,n.base),log:l(n.log,n.base),put:l(n.put,n.base),test:l(n.test,n.base+"/test"),delete:l(n.delete,n.base),types:l(n.types,n.base+"/types"),gui:l(n.gui,n.base+"/gui"),tableInfo:l(n.tableInfo,n.base+"/tableinfo")},this.headers=(new Zh).set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}return e.prototype.get=function(a){return this.doGet(this.getPath(this.paths.get,a))},e.prototype.getLogs=function(a){return this.doGet(this.getPath(this.paths.log,a)+"/log")},e.prototype.overview=function(a){return this.get("overview"+(void 0!==a?"?filter="+a:""))},e.prototype.summary=function(a){return this.get("overview?summarize"+(void 0!==a?"&filter="+a:""))},e.prototype.put=function(a,t){var n=this;return this.api.http.put(this.getPath(this.paths.put,t),a,{headers:this.headers}).pipe(_o(function(l){return n.handleError(l,!0)}))},e.prototype.create=function(a){return this.put(a)},e.prototype.save=function(a,t){return this.put(a,t=void 0!==t?t:a.id)},e.prototype.test=function(a,t){var n=this;return this.api.http.post(this.getPath(this.paths.test,a),t,{headers:this.headers}).pipe(_o(function(l){return n.handleError(l)}))},e.prototype.delete=function(a){var t=this;return this.api.http.delete(this.getPath(this.paths.delete,a),{headers:this.headers}).pipe(_o(function(n){return t.handleError(n)}))},e.prototype.permision=function(){return this.api.user.isAdmin?QS.ALL:QS.NONE},e.prototype.getPermissions=function(a){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+a))},e.prototype.addPermission=function(a,t,n,l){var c=this,h=this.getPath("permissions/"+this.paths.base+"/"+a+"/"+t+"/add/"+n);return this.api.http.put(h,{perm:l},{headers:this.headers}).pipe(_o(function(C){return c.handleError(C)}))},e.prototype.revokePermission=function(a){var t=this,n=this.getPath("permissions/revoke");return this.api.http.put(n,{items:a},{headers:this.headers}).pipe(_o(function(c){return t.handleError(c)}))},e.prototype.types=function(){return this.doGet(this.getPath(this.paths.types))},e.prototype.gui=function(a){var t=this.getPath(this.paths.gui+(void 0!==a?"/"+a:""));return this.doGet(t)},e.prototype.callback=function(a,t){var n=this.getPath("gui/callback/"+a+"?"+t);return this.doGet(n)},e.prototype.tableInfo=function(){return this.doGet(this.getPath(this.paths.tableInfo))},e.prototype.detail=function(a,t){return new bie(this,a,t)},e.prototype.invoke=function(a,t){var n=a;return t&&(n=n+"?"+t),this.get(n)},e.prototype.getPath=function(a,t){return this.api.restPath(a+(void 0!==t?"/"+t:""))},e.prototype.doGet=function(a){var t=this;return this.api.http.get(a,{headers:this.headers}).pipe(_o(function(n){return t.handleError(n)}))},e.prototype.handleError=function(a,t){void 0===t&&(t=!1);var n;return n=a.error instanceof ErrorEvent?a.error.message:t?django.gettext("Error saving: ")+a.error:"Error "+a.status+": "+a.error,this.api.gui.alert(t?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),GA(n)},e}(),bie=function(e){function a(t,n,l,c){var h=e.call(this,t.api,[t.paths.base,n,l].join("/"))||this;return h.parentModel=t,h.parentId=n,h.model=l,h.perm=c,h}return aa(a,e),a.prototype.permision=function(){return this.perm||QS.ALL},a}(Ea),Cie=function(e){function a(t){var n=e.call(this,t,"providers")||this;return n.api=t,n}return aa(a,e),a.prototype.allServices=function(){return this.get("allservices")},a.prototype.service=function(t){return this.get("service/"+t)},a.prototype.maintenance=function(t){return this.get(t+"/maintenance")},a}(Ea),wie=function(e){function a(t){var n=e.call(this,t,"authenticators")||this;return n.api=t,n}return aa(a,e),a.prototype.search=function(t,n,l,c){return void 0===c&&(c=12),this.get(t+"/search?type="+encodeURIComponent(n)+"&term="+encodeURIComponent(l)+"&limit="+c)},a}(Ea),Sie=function(e){function a(t){var n=e.call(this,t,"osmanagers")||this;return n.api=t,n}return aa(a,e),a}(Ea),kie=function(e){function a(t){var n=e.call(this,t,"transports")||this;return n.api=t,n}return aa(a,e),a}(Ea),Mie=function(e){function a(t){var n=e.call(this,t,"networks")||this;return n.api=t,n}return aa(a,e),a}(Ea),xie=function(e){function a(t){var n=e.call(this,t,"servicespools")||this;return n.api=t,n}return aa(a,e),a.prototype.setFallbackAccess=function(t,n){return this.get(t+"/setFallbackAccess?fallbackAccess="+n)},a.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},a.prototype.actionsList=function(t){return this.get(t+"/actionsList")},a.prototype.listAssignables=function(t){return this.get(t+"/listAssignables")},a.prototype.createFromAssignable=function(t,n,l){return this.get(t+"/createFromAssignable?user_id="+encodeURIComponent(n)+"&assignable_id="+encodeURIComponent(l))},a}(Ea),Tie=function(e){function a(t){var n=e.call(this,t,"metapools")||this;return n.api=t,n}return aa(a,e),a.prototype.setFallbackAccess=function(t,n){return this.get(t+"/setFallbackAccess?fallbackAccess="+n)},a.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},a}(Ea),Die=function(e){function a(t){var n=e.call(this,t,"config")||this;return n.api=t,n}return aa(a,e),a}(Ea),Aie=function(e){function a(t){var n=e.call(this,t,"gallery/images")||this;return n.api=t,n}return aa(a,e),a}(Ea),Eie=function(e){function a(t){var n=e.call(this,t,"gallery/servicespoolgroups")||this;return n.api=t,n}return aa(a,e),a}(Ea),Pie=function(e){function a(t){var n=e.call(this,t,"system")||this;return n.api=t,n}return aa(a,e),a.prototype.information=function(){return this.get("overview")},a.prototype.stats=function(t,n){var l="stats/"+t;return n&&(l+="/"+n),this.get(l)},a.prototype.flushCache=function(){return this.doGet(this.getPath("cache","flush"))},a}(Ea),Oie=function(e){function a(t){var n=e.call(this,t,"reports")||this;return n.api=t,n}return aa(a,e),a.prototype.types=function(){return ut([])},a}(Ea),Iie=function(e){function a(t){var n=e.call(this,t,"calendars")||this;return n.api=t,n}return aa(a,e),a}(Ea),Rie=function(e){function a(t){var n=e.call(this,t,"accounts")||this;return n.api=t,n}return aa(a,e),a.prototype.timemark=function(t){return this.get(t+"/timemark")},a}(Ea),Lie=function(e){function a(t){var n=e.call(this,t,"proxies")||this;return n.api=t,n}return aa(a,e),a}(Ea),Fie=function(e){function a(t){var n=e.call(this,t,"actortokens")||this;return n.api=t,n}return aa(a,e),a}(Ea),Nie=function(e){function a(t){var n=e.call(this,t,"tunneltokens")||this;return n.api=t,n}return aa(a,e),a}(Ea),on=function(){function e(a){this.api=a,this.providers=new Cie(a),this.authenticators=new wie(a),this.osManagers=new Sie(a),this.transports=new kie(a),this.networks=new Mie(a),this.servicesPools=new xie(a),this.metaPools=new Tie(a),this.gallery=new Aie(a),this.servicesPoolGroups=new Eie(a),this.calendars=new Iie(a),this.accounts=new Rie(a),this.proxy=new Lie(a),this.system=new Pie(a),this.configuration=new Die(a),this.actorToken=new Fie(a),this.tunnelToken=new Nie(a),this.reports=new Oie(a)}return e.\u0275prov=We({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ce(Pt))},providedIn:"root"}),e}(),FJ=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],NJ=[django.gettext("January"),django.gettext("February"),django.gettext("March"),django.gettext("April"),django.gettext("May"),django.gettext("June"),django.gettext("July"),django.gettext("August"),django.gettext("September"),django.gettext("October"),django.gettext("November"),django.gettext("December")],VJ=function(e){var a=[];return e.forEach(function(t){a.push(t.substr(0,3))}),a},JS=function(e,a,t){return bp(e,a,t)},bp=function(e,a,t,n){n=n||{},a=a||new Date,(t=t||Uie).formats=t.formats||{};var l=a.getTime();return(n.utc||"number"==typeof n.timezone)&&(a=Vie(a)),"number"==typeof n.timezone&&(a=new Date(a.getTime()+6e4*n.timezone)),e.replace(/%([-_0]?.)/g,function(c,h){var _,C,k,D,I,L,G,Y;if(k=null,I=null,2===h.length){if("-"===(k=h[0]))I="";else if("_"===k)I=" ";else{if("0"!==k)return c;I="0"}h=h[1]}switch(h){case"A":return t.days[a.getDay()];case"a":return t.shortDays[a.getDay()];case"B":return t.months[a.getMonth()];case"b":return t.shortMonths[a.getMonth()];case"C":return Xo(Math.floor(a.getFullYear()/100),I);case"D":return bp(t.formats.D||"%m/%d/%y",a,t);case"d":return Xo(a.getDate(),I);case"e":return a.getDate();case"F":return bp(t.formats.F||"%Y-%m-%d",a,t);case"H":return Xo(a.getHours(),I);case"h":return t.shortMonths[a.getMonth()];case"I":return Xo(BJ(a),I);case"j":return G=new Date(a.getFullYear(),0,1),_=Math.ceil((a.getTime()-G.getTime())/864e5),Xo(_,3);case"k":return Xo(a.getHours(),void 0===I?" ":I);case"L":return Xo(Math.floor(l%1e3),3);case"l":return Xo(BJ(a),void 0===I?" ":I);case"M":return Xo(a.getMinutes(),I);case"m":return Xo(a.getMonth()+1,I);case"n":return"\n";case"o":return String(a.getDate())+Bie(a.getDate());case"P":case"p":return"";case"R":return bp(t.formats.R||"%H:%M",a,t);case"r":return bp(t.formats.r||"%I:%M:%S %p",a,t);case"S":return Xo(a.getSeconds(),I);case"s":return Math.floor(l/1e3);case"T":return bp(t.formats.T||"%H:%M:%S",a,t);case"t":return"\t";case"U":return Xo(HJ(a,"sunday"),I);case"u":return 0===(C=a.getDay())?7:C;case"v":return bp(t.formats.v||"%e-%b-%Y",a,t);case"W":return Xo(HJ(a,"monday"),I);case"w":return a.getDay();case"Y":return a.getFullYear();case"y":return(Y=String(a.getFullYear())).slice(Y.length-2);case"Z":return n.utc?"GMT":(L=a.toString().match(/\((\w+)\)/))&&L[1]||"";case"z":return n.utc?"+0000":((D="number"==typeof n.timezone?n.timezone:-a.getTimezoneOffset())<0?"-":"+")+Xo(Math.abs(D/60))+Xo(D%60);default:return h}})},Vie=function(e){var a=6e4*(e.getTimezoneOffset()||0);return new Date(e.getTime()+a)},Xo=function(e,a,t){"number"==typeof a&&(t=a,a="0"),a=null==a?"0":a,t=null==t?2:t;var n=String(e);if(a)for(;n.length12&&(a-=12),a},Bie=function(e){var a=e%10,t=e%100;if(t>=11&&t<=13||0===a||a>=4)return"th";switch(a){case 1:return"st";case 2:return"nd";case 3:return"rd"}},HJ=function(e,a){a=a||"sunday";var t=e.getDay();"monday"===a&&(0===t?t=6:t--);var n=new Date(e.getFullYear(),0,1),l=Math.floor((e.getTime()-n.getTime())/864e5);return Math.floor((l+7-t)/7)},zJ=function(e){return e.replace(/./g,function(a){switch(a){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+a;case"c":return"%FT%TZ";case"D":return"%a";case"e":return"%z";case"f":return"%I:%M";case"F":return"%F";case"h":case"g":return"%I";case"H":case"G":return"%H";case"i":return"%M";case"I":return"";case"j":return"%d";case"l":return"%A";case"L":return"";case"M":return"%b";case"n":return"%m";case"N":return"%b";case"o":return"%W";case"O":return"%z";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"S":case"t":return"";case"T":return"%Z";case"u":return"0";case"U":return"";case"z":return"%j";case"Z":return"z";default:return a}})},Lu=function(e,a,t){var n;if(void 0===t&&(t=null),"None"===a||null==a)a=7226578800,n=django.gettext("Never");else{var l=django.get_format(e);t&&(l+=t),n=JS(zJ(l),new Date(1e3*a))}return n},jq=function(e){return"yes"===e||!0===e||"true"===e||1===e},Uie={days:FJ,shortDays:VJ(FJ),months:NJ,shortMonths:VJ(NJ),AM:"AM",PM:"PM",am:"am",pm:"pm"},Gie=Dt(79052),ek=Dt.n(Gie),UJ=function(){if("undefined"!=typeof Map)return Map;function e(a,t){var n=-1;return a.some(function(l,c){return l[0]===t&&(n=c,!0)}),n}return function(){function a(){this.__entries__=[]}return Object.defineProperty(a.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),a.prototype.get=function(t){var n=e(this.__entries__,t),l=this.__entries__[n];return l&&l[1]},a.prototype.set=function(t,n){var l=e(this.__entries__,t);~l?this.__entries__[l][1]=n:this.__entries__.push([t,n])},a.prototype.delete=function(t){var n=this.__entries__,l=e(n,t);~l&&n.splice(l,1)},a.prototype.has=function(t){return!!~e(this.__entries__,t)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(t,n){void 0===n&&(n=null);for(var l=0,c=this.__entries__;l0},e.prototype.connect_=function(){!Wq||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Zie?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Wq||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(a){var t=a.propertyName,n=void 0===t?"":t;Xie.some(function(c){return!!~n.indexOf(c)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),GJ=function(a,t){for(var n=0,l=Object.keys(t);n0},e}(),YJ="undefined"!=typeof WeakMap?new WeakMap:new UJ,qJ=function e(a){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=Kie.getInstance(),n=new oae(a,t,this);YJ.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){qJ.prototype[e]=function(){var a;return(a=YJ.get(this))[e].apply(a,arguments)}});var lae=void 0!==B5.ResizeObserver?B5.ResizeObserver:qJ,uae=function(){function e(a){F(this,e),this.changes=a}return W(e,[{key:"notEmpty",value:function(t){if(this.changes[t]){var n=this.changes[t].currentValue;if(null!=n)return ut(n)}return Ar}},{key:"has",value:function(t){return this.changes[t]?ut(this.changes[t].currentValue):Ar}},{key:"notFirst",value:function(t){return this.changes[t]&&!this.changes[t].isFirstChange()?ut(this.changes[t].currentValue):Ar}},{key:"notFirstAndEmpty",value:function(t){if(this.changes[t]&&!this.changes[t].isFirstChange()){var n=this.changes[t].currentValue;if(null!=n)return ut(n)}return Ar}}],[{key:"of",value:function(t){return new e(t)}}]),e}(),XJ=new Ee("NGX_ECHARTS_CONFIG"),ZJ=function(){var e=function(){function a(t,n,l){F(this,a),this.el=n,this.ngZone=l,this.autoResize=!0,this.loadingType="default",this.chartInit=new ye,this.optionsError=new ye,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.echarts=t.echarts}return W(a,[{key:"ngOnChanges",value:function(n){var l=this,c=uae.of(n);c.notFirstAndEmpty("options").subscribe(function(h){return l.onOptionsChange(h)}),c.notFirstAndEmpty("merge").subscribe(function(h){return l.setOption(h)}),c.has("loading").subscribe(function(h){return l.toggleLoading(!!h)}),c.notFirst("theme").subscribe(function(){return l.refreshChart()})}},{key:"ngOnInit",value:function(){var n=this;this.autoResize&&(this.resizeSub=new lae(function(){n.animationFrameID=window.requestAnimationFrame(function(){return n.resize()})}),this.resizeSub.observe(this.el.nativeElement))}},{key:"ngOnDestroy",value:function(){this.resizeSub&&(this.resizeSub.unobserve(this.el.nativeElement),window.cancelAnimationFrame(this.animationFrameID)),this.dispose()}},{key:"ngAfterViewInit",value:function(){var n=this;setTimeout(function(){return n.initChart()})}},{key:"dispose",value:function(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}},{key:"resize",value:function(){this.chart&&this.chart.resize()}},{key:"toggleLoading",value:function(n){this.chart&&(n?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}},{key:"setOption",value:function(n,l){if(this.chart)try{this.chart.setOption(n,l)}catch(c){console.error(c),this.optionsError.emit(c)}}},{key:"refreshChart",value:function(){return Gq(this,void 0,void 0,ek().mark(function n(){return ek().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return this.dispose(),c.next=3,this.initChart();case 3:case"end":return c.stop()}},n,this)}))}},{key:"createChart",value:function(){var n=this,l=this.el.nativeElement;if(window&&window.getComputedStyle){var c=window.getComputedStyle(l,null).getPropertyValue("height");(!c||"0px"===c)&&(!l.style.height||"0px"===l.style.height)&&(l.style.height="400px")}return this.ngZone.runOutsideAngular(function(){return("function"==typeof n.echarts?n.echarts:function(){return Promise.resolve(n.echarts)})().then(function(_){return(0,_.init)(l,n.theme,n.initOpts)})})}},{key:"initChart",value:function(){return Gq(this,void 0,void 0,ek().mark(function n(){return ek().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.onOptionsChange(this.options);case 2:this.merge&&this.chart&&this.setOption(this.merge);case 3:case"end":return c.stop()}},n,this)}))}},{key:"onOptionsChange",value:function(n){return Gq(this,void 0,void 0,ek().mark(function l(){return ek().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(n){h.next=2;break}return h.abrupt("return");case 2:if(!this.chart){h.next=6;break}this.setOption(this.options,!0),h.next=11;break;case 6:return h.next=8,this.createChart();case 8:this.chart=h.sent,this.chartInit.emit(this.chart),this.setOption(this.options,!0);case 11:case"end":return h.stop()}},l,this)}))}},{key:"createLazyEvent",value:function(n){var l=this;return this.chartInit.pipe(xa(function(c){return new gn(function(h){return c.on(n,function(_){return l.ngZone.run(function(){return h.next(_)})}),function(){l.chart&&(l.chart.isDisposed()||c.off(n))}})}))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(XJ),N(Ue),N(ft))},e.\u0275dir=ve({type:e,selectors:[["echarts"],["","echarts",""]],inputs:{autoResize:"autoResize",loadingType:"loadingType",options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartPieSelectChanged:"chartPieSelectChanged",chartPieSelected:"chartPieSelected",chartPieUnselected:"chartPieUnselected",chartMapSelectChanged:"chartMapSelectChanged",chartMapSelected:"chartMapSelected",chartMapUnselected:"chartMapUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartFocusNodeAdjacency:"chartFocusNodeAdjacency",chartUnfocusNodeAdjacency:"chartUnfocusNodeAdjacency",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[an]}),e}(),cae=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"forRoot",value:function(n){return{ngModule:a,providers:[{provide:XJ,useValue:n}]}}},{key:"forChild",value:function(){return{ngModule:a}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[]]}),e}();function fae(e,a){if(1&e&&(A(0,"div",21),A(1,"div",11),me(2,"img",3),A(3,"div",12),K(4),E(),E(),A(5,"div",13),A(6,"a",15),A(7,"uds-translate"),K(8,"View service pools"),E(),E(),E(),E()),2&e){var t=J(2);H(2),z("src",t.api.staticURL("admin/img/icons/logs.png"),Gt),H(2),Ve(" ",t.data.restrained," ")}}function dae(e,a){if(1&e){var t=De();A(0,"div"),A(1,"div",8),A(2,"div",9),A(3,"div",10),A(4,"div",11),me(5,"img",3),A(6,"div",12),K(7),E(),E(),A(8,"div",13),A(9,"a",14),A(10,"uds-translate"),K(11,"View authenticators"),E(),E(),E(),E(),A(12,"div",10),A(13,"div",11),me(14,"img",3),A(15,"div",12),K(16),E(),E(),A(17,"div",13),A(18,"a",15),A(19,"uds-translate"),K(20,"View service pools"),E(),E(),E(),E(),A(21,"div",10),A(22,"div",11),me(23,"img",3),A(24,"div",12),K(25),E(),E(),A(26,"div",13),A(27,"a",15),A(28,"uds-translate"),K(29,"View service pools"),E(),E(),E(),E(),re(30,fae,9,2,"div",16),E(),A(31,"div",17),A(32,"div",18),A(33,"div",19),A(34,"uds-translate"),K(35,"Assigned services chart"),E(),E(),A(36,"div",20),ne("chartInit",function(c){return pe(t),J().chartInit("assigned",c)}),E(),E(),A(37,"div",18),A(38,"div",19),A(39,"uds-translate"),K(40,"In use services chart"),E(),E(),A(41,"div",20),ne("chartInit",function(c){return pe(t),J().chartInit("inuse",c)}),E(),E(),E(),E(),E()}if(2&e){var n=J();H(5),z("src",n.api.staticURL("admin/img/icons/authenticators.png"),Gt),H(2),Ve(" ",n.data.users," "),H(7),z("src",n.api.staticURL("admin/img/icons/pools.png"),Gt),H(2),Ve(" ",n.data.pools," "),H(7),z("src",n.api.staticURL("admin/img/icons/services.png"),Gt),H(2),Ve(" ",n.data.user_services," "),H(5),z("ngIf",n.data.restrained),H(6),z("options",n.assignedChartOpts),H(5),z("options",n.inuseChartOpts)}}function hae(e,a){1&e&&(A(0,"div",22),A(1,"div",23),A(2,"div",24),A(3,"uds-translate"),K(4,"UDS Administration"),E(),E(),A(5,"div",25),A(6,"p"),A(7,"uds-translate"),K(8,"You are accessing UDS Administration as staff member."),E(),E(),A(9,"p"),A(10,"uds-translate"),K(11,"This means that you have restricted access to elements."),E(),E(),A(12,"p"),A(13,"uds-translate"),K(14,"In order to increase your access privileges, please contact your local UDS administrator. "),E(),E(),me(15,"br"),A(16,"p"),A(17,"uds-translate"),K(18,"Thank you."),E(),E(),E(),E(),E())}var pae=function(){function e(a,t){this.api=a,this.rest=t,this.data={},this.assignedChartInstance=null,this.assignedChartOpts={},this.inuseChartOpts={},this.inuseChartInstance=null}return e.prototype.onResize=function(a){this.assignedChartInstance&&this.assignedChartInstance.resize(),this.inuseChartInstance&&this.inuseChartInstance.resize()},e.prototype.ngOnInit=function(){var a=this;if(this.api.user.isAdmin){this.rest.system.information().subscribe(function(_){a.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",_.users).replace("#GRP_NUMBER#",_.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",_.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",_.user_services)},_.restrained_services_pools>0&&(a.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",_.restrained_services_pools))});for(var t=function(_){n.rest.system.stats(_).subscribe(function(C){var k={tooltip:{trigger:"axis"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:C.map(function(D){return Lu("SHORT_DATE_FORMAT",new Date(D.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:"assigned"===_?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{},data:C.map(function(D){return D.value})}]};"assigned"===_?a.assignedChartOpts=k:a.inuseChartOpts=k})},n=this,l=0,c=["assigned","inuse"];l enter",[gt({opacity:0,transform:"translateY(-5px)"}),Tn("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},nk=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e}),e}(),$J=new Ee("MatHint"),Br=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["mat-label"]]}),e}(),Lae=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["mat-placeholder"]]}),e}(),QJ=new Ee("MatPrefix"),JJ=new Ee("MatSuffix"),rk=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","matSuffix",""]],features:[Xe([{provide:JJ,useExisting:e}])]}),e}(),eee=0,Nae=Eu(function(){return function e(a){F(this,e),this._elementRef=a}}(),"primary"),nee=new Ee("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ik=new Ee("MatFormField"),_r=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I){var L;return F(this,n),(L=t.call(this,l))._changeDetectorRef=c,L._dir=_,L._defaults=C,L._platform=k,L._ngZone=D,L._outlineGapCalculationNeededImmediately=!1,L._outlineGapCalculationNeededOnStable=!1,L._destroyed=new qe,L._showAlwaysAnimate=!1,L._subscriptAnimationState="",L._hintLabel="",L._hintLabelId="mat-hint-".concat(eee++),L._labelId="mat-form-field-label-".concat(eee++),L.floatLabel=L._getDefaultFloatLabelState(),L._animationsEnabled="NoopAnimations"!==I,L.appearance=C&&C.appearance?C.appearance:"legacy",L._hideRequiredMarker=!(!C||null==C.hideRequiredMarker)&&C.hideRequiredMarker,L}return W(n,[{key:"appearance",get:function(){return this._appearance},set:function(c){var h=this._appearance;this._appearance=c||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&h!==c&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(c){this._hideRequiredMarker=it(c)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(c){this._hintLabel=c,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(c){c!==this._floatLabel&&(this._floatLabel=c||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(c){this._explicitFormFieldControl=c}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var c=this;this._validateControlChild();var h=this._control;h.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(h.controlType)),h.stateChanges.pipe($r(null)).subscribe(function(){c._validatePlaceholders(),c._syncDescribedByIds(),c._changeDetectorRef.markForCheck()}),h.ngControl&&h.ngControl.valueChanges&&h.ngControl.valueChanges.pipe(Ht(this._destroyed)).subscribe(function(){return c._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){c._ngZone.onStable.pipe(Ht(c._destroyed)).subscribe(function(){c._outlineGapCalculationNeededOnStable&&c.updateOutlineGap()})}),ot(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){c._outlineGapCalculationNeededOnStable=!0,c._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe($r(null)).subscribe(function(){c._processHints(),c._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe($r(null)).subscribe(function(){c._syncDescribedByIds(),c._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ht(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?c._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return c.updateOutlineGap()})}):c.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(c){var h=this._control?this._control.ngControl:null;return h&&h[c]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var c=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Tl(this._label.nativeElement,"transitionend").pipe(or(1)).subscribe(function(){c._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var c=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&c.push.apply(c,At(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var h=this._hintChildren?this._hintChildren.find(function(C){return"start"===C.align}):null,_=this._hintChildren?this._hintChildren.find(function(C){return"end"===C.align}):null;h?c.push(h.id):this._hintLabel&&c.push(this._hintLabelId),_&&c.push(_.id)}else this._errorChildren&&c.push.apply(c,At(this._errorChildren.map(function(C){return C.id})));this._control.setDescribedByIds(c)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var c=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&c&&c.children.length&&c.textContent.trim()&&this._platform.isBrowser){if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);var h=0,_=0,C=this._connectionContainerRef.nativeElement,k=C.querySelectorAll(".mat-form-field-outline-start"),D=C.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var I=C.getBoundingClientRect();if(0===I.width&&0===I.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var L=this._getStartEnd(I),G=c.children,Y=this._getStartEnd(G[0].getBoundingClientRect()),Q=0,ie=0;ie0?.75*Q+10:0}for(var fe=0;fe void",BE("@transformPanel",[QV()],{optional:!0}))]),transformPanel:Ei("transformPanel",[Bn("void",gt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Bn("showing",gt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Bn("showing-multiple",gt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),zn("void => *",Tn("120ms cubic-bezier(0, 0, 0.2, 1)")),zn("* => void",Tn("100ms 25ms linear",gt({opacity:0})))])},iee=0,oee=new Ee("mat-select-scroll-strategy"),Kae=new Ee("MAT_SELECT_CONFIG"),$ae={provide:oee,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Qae=function e(a,t){F(this,e),this.source=a,this.value=t},Jae=El(gp(ia(HS(function(){return function e(a,t,n,l,c){F(this,e),this._elementRef=a,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=l,this.ngControl=c}}())))),see=new Ee("MatSelectTrigger"),eoe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["mat-select-trigger"]],features:[Xe([{provide:see,useExisting:e}])]}),e}(),toe=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I,L,G,Y,Q,ie,fe){var se,be,Ce,je;return F(this,n),(se=t.call(this,C,_,D,I,G))._viewportRuler=l,se._changeDetectorRef=c,se._ngZone=h,se._dir=k,se._parentFormField=L,se._liveAnnouncer=ie,se._defaultOptions=fe,se._panelOpen=!1,se._compareWith=function($e,kt){return $e===kt},se._uid="mat-select-".concat(iee++),se._triggerAriaLabelledBy=null,se._destroy=new qe,se._onChange=function(){},se._onTouched=function(){},se._valueId="mat-select-value-".concat(iee++),se._panelDoneAnimatingStream=new qe,se._overlayPanelClass=(null===(be=se._defaultOptions)||void 0===be?void 0:be.overlayPanelClass)||"",se._focused=!1,se.controlType="mat-select",se._required=!1,se._multiple=!1,se._disableOptionCentering=null!==(je=null===(Ce=se._defaultOptions)||void 0===Ce?void 0:Ce.disableOptionCentering)&&void 0!==je&&je,se.ariaLabel="",se.optionSelectionChanges=Ly(function(){var $e=se.options;return $e?$e.changes.pipe($r($e),xa(function(){return ot.apply(void 0,At($e.map(function(kt){return kt.onSelectionChange})))})):se._ngZone.onStable.pipe(or(1),xa(function(){return se.optionSelectionChanges}))}),se.openedChange=new ye,se._openedStream=se.openedChange.pipe(vr(function($e){return $e}),He(function(){})),se._closedStream=se.openedChange.pipe(vr(function($e){return!$e}),He(function(){})),se.selectionChange=new ye,se.valueChange=new ye,se.ngControl&&(se.ngControl.valueAccessor=It(se)),null!=(null==fe?void 0:fe.typeaheadDebounceInterval)&&(se._typeaheadDebounceInterval=fe.typeaheadDebounceInterval),se._scrollStrategyFactory=Q,se._scrollStrategy=se._scrollStrategyFactory(),se.tabIndex=parseInt(Y)||0,se.id=se.id,se}return W(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(c){this._placeholder=c,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(c){this._required=it(c),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(c){this._multiple=it(c)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(c){this._disableOptionCentering=it(c)}},{key:"compareWith",get:function(){return this._compareWith},set:function(c){this._compareWith=c,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(c){(c!==this._value||this._multiple&&Array.isArray(c))&&(this.options&&this._setSelectionByValue(c),this._value=c)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(c){this._typeaheadDebounceInterval=Di(c)}},{key:"id",get:function(){return this._id},set:function(c){this._id=c||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var c=this;this._selectionModel=new ip(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Xa(),Ht(this._destroy)).subscribe(function(){return c._panelDoneAnimating(c.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var c=this;this._initKeyManager(),this._selectionModel.changed.pipe(Ht(this._destroy)).subscribe(function(h){h.added.forEach(function(_){return _.select()}),h.removed.forEach(function(_){return _.deselect()})}),this.options.changes.pipe($r(null),Ht(this._destroy)).subscribe(function(){c._resetOptions(),c._initializeSelection()})}},{key:"ngDoCheck",value:function(){var c=this._getTriggerAriaLabelledby();if(c!==this._triggerAriaLabelledBy){var h=this._elementRef.nativeElement;this._triggerAriaLabelledBy=c,c?h.setAttribute("aria-labelledby",c):h.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(c){c.disabled&&this.stateChanges.next(),c.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(c){this.value=c}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var c=this._selectionModel.selected.map(function(h){return h.viewValue});return this._isRtl()&&c.reverse(),c.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(c){this.disabled||(this.panelOpen?this._handleOpenKeydown(c):this._handleClosedKeydown(c))}},{key:"_handleClosedKeydown",value:function(c){var h=c.keyCode,_=40===h||38===h||37===h||39===h,C=13===h||32===h,k=this._keyManager;if(!k.isTyping()&&C&&!Bi(c)||(this.multiple||c.altKey)&&_)c.preventDefault(),this.open();else if(!this.multiple){var D=this.selected;k.onKeydown(c);var I=this.selected;I&&D!==I&&this._liveAnnouncer.announce(I.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(c){var h=this._keyManager,_=c.keyCode,C=40===_||38===_,k=h.isTyping();if(C&&c.altKey)c.preventDefault(),this.close();else if(k||13!==_&&32!==_||!h.activeItem||Bi(c))if(!k&&this._multiple&&65===_&&c.ctrlKey){c.preventDefault();var D=this.options.some(function(L){return!L.disabled&&!L.selected});this.options.forEach(function(L){L.disabled||(D?L.select():L.deselect())})}else{var I=h.activeItemIndex;h.onKeydown(c),this._multiple&&C&&c.shiftKey&&h.activeItem&&h.activeItemIndex!==I&&h.activeItem._selectViaInteraction()}else c.preventDefault(),h.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var c=this;this._overlayDir.positionChange.pipe(or(1)).subscribe(function(){c._changeDetectorRef.detectChanges(),c._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var c=this;Promise.resolve().then(function(){c._setSelectionByValue(c.ngControl?c.ngControl.value:c._value),c.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(c){var h=this;if(this._selectionModel.selected.forEach(function(C){return C.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&c)Array.isArray(c),c.forEach(function(C){return h._selectValue(C)}),this._sortValues();else{var _=this._selectValue(c);_?this._keyManager.updateActiveItem(_):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(c){var h=this,_=this.options.find(function(C){if(h._selectionModel.isSelected(C))return!1;try{return null!=C.value&&h._compareWith(C.value,c)}catch(k){return!1}});return _&&this._selectionModel.select(_),_}},{key:"_initKeyManager",value:function(){var c=this;this._keyManager=new wE(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ht(this._destroy)).subscribe(function(){c.panelOpen&&(!c.multiple&&c._keyManager.activeItem&&c._keyManager.activeItem._selectViaInteraction(),c.focus(),c.close())}),this._keyManager.change.pipe(Ht(this._destroy)).subscribe(function(){c._panelOpen&&c.panel?c._scrollOptionIntoView(c._keyManager.activeItemIndex||0):!c._panelOpen&&!c.multiple&&c._keyManager.activeItem&&c._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var c=this,h=ot(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ht(h)).subscribe(function(_){c._onSelect(_.source,_.isUserInput),_.isUserInput&&!c.multiple&&c._panelOpen&&(c.close(),c.focus())}),ot.apply(void 0,At(this.options.map(function(_){return _._stateChanges}))).pipe(Ht(h)).subscribe(function(){c._changeDetectorRef.markForCheck(),c.stateChanges.next()})}},{key:"_onSelect",value:function(c,h){var _=this._selectionModel.isSelected(c);null!=c.value||this._multiple?(_!==c.selected&&(c.selected?this._selectionModel.select(c):this._selectionModel.deselect(c)),h&&this._keyManager.setActiveItem(c),this.multiple&&(this._sortValues(),h&&this.focus())):(c.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(c.value)),_!==this._selectionModel.isSelected(c)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var c=this;if(this.multiple){var h=this.options.toArray();this._selectionModel.sort(function(_,C){return c.sortComparator?c.sortComparator(_,C,h):h.indexOf(_)-h.indexOf(C)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(c){var h;h=this.multiple?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=h,this.valueChange.emit(h),this._onChange(h),this.selectionChange.emit(this._getChangeEvent(h)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var c;return!this._panelOpen&&!this.disabled&&(null===(c=this.options)||void 0===c?void 0:c.length)>0}},{key:"focus",value:function(c){this._elementRef.nativeElement.focus(c)}},{key:"_getPanelAriaLabelledby",value:function(){var c;if(this.ariaLabel)return null;var h=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId();return this.ariaLabelledby?(h?h+" ":"")+this.ariaLabelledby:h}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var c;if(this.ariaLabel)return null;var h=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId(),_=(h?h+" ":"")+this._valueId;return this.ariaLabelledby&&(_+=" "+this.ariaLabelledby),_}},{key:"_panelDoneAnimating",value:function(c){this.openedChange.emit(c)}},{key:"setDescribedByIds",value:function(c){this._ariaDescribedby=c.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(Jae);return e.\u0275fac=function(t){return new(t||e)(N(yo),N(Vt),N(ft),N(dd),N(Ue),N(Mr,8),N(Lc,8),N(yp,8),N(ik,8),N(Ut,10),Ci("tabindex"),N(oee),N(iS),N(Kae,8))},e.\u0275dir=ve({type:e,viewQuery:function(t,n){var l;1&t&&(wt(Vae,5),wt(Bae,5),wt(PV,5)),2&t&&(Ne(l=Le())&&(n.trigger=l.first),Ne(l=Le())&&(n.panel=l.first),Ne(l=Le())&&(n._overlayDir=l.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Pe,an]}),e}(),$a=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._scrollTop=0,l._triggerFontSize=0,l._transformOrigin="top",l._offsetY=0,l._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],l}return W(n,[{key:"_calculateOverlayScroll",value:function(c,h,_){var C=this._getItemHeight();return Math.min(Math.max(0,C*c-h+C/2),_)}},{key:"ngOnInit",value:function(){var c=this;Ie(Oe(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(Ht(this._destroy)).subscribe(function(){c.panelOpen&&(c._triggerRect=c.trigger.nativeElement.getBoundingClientRect(),c._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var c=this;Ie(Oe(n.prototype),"_canOpen",this).call(this)&&(Ie(Oe(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(or(1)).subscribe(function(){c._triggerFontSize&&c._overlayDir.overlayRef&&c._overlayDir.overlayRef.overlayElement&&(c._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(c._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(c){var h=jS(c,this.options,this.optionGroups),_=this._getItemHeight();this.panel.nativeElement.scrollTop=0===c&&1===h?0:Cb((c+h)*_,_,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(c){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),Ie(Oe(n.prototype),"_panelDoneAnimating",this).call(this,c)}},{key:"_getChangeEvent",value:function(c){return new Qae(this,c)}},{key:"_calculateOverlayOffsetX",value:function(){var k,c=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),h=this._viewportRuler.getViewportSize(),_=this._isRtl(),C=this.multiple?56:32;if(this.multiple)k=40;else if(this.disableOptionCentering)k=16;else{var D=this._selectionModel.selected[0]||this.options.first;k=D&&D.group?32:16}_||(k*=-1);var I=0-(c.left+k-(_?C:0)),L=c.right+k-h.width+(_?0:C);I>0?k+=I+8:L>0&&(k-=L+8),this._overlayDir.offsetX=Math.round(k),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(c,h,_){var I,C=this._getItemHeight(),k=(C-this._triggerRect.height)/2,D=Math.floor(256/C);return this.disableOptionCentering?0:(I=0===this._scrollTop?c*C:this._scrollTop===_?(c-(this._getItemCount()-D))*C+(C-(this._getItemCount()*C-256)%C):h-C/2,Math.round(-1*I-k))}},{key:"_checkOverlayWithinViewport",value:function(c){var h=this._getItemHeight(),_=this._viewportRuler.getViewportSize(),C=this._triggerRect.top-8,k=_.height-this._triggerRect.bottom-8,D=Math.abs(this._offsetY),L=Math.min(this._getItemCount()*h,256)-D-this._triggerRect.height;L>k?this._adjustPanelUp(L,k):D>C?this._adjustPanelDown(D,C,c):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(c,h){var _=Math.round(c-h);this._scrollTop-=_,this._offsetY-=_,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(c,h,_){var C=Math.round(c-h);if(this._scrollTop+=C,this._offsetY+=C,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=_)return this._scrollTop=_,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var D,c=this._getItemHeight(),h=this._getItemCount(),_=Math.min(h*c,256),k=h*c-_;D=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),D+=jS(D,this.options,this.optionGroups);var I=_/2;this._scrollTop=this._calculateOverlayScroll(D,I,k),this._offsetY=this._calculateOverlayOffsetY(D,I,k),this._checkOverlayWithinViewport(k)}},{key:"_getOriginBasedOnOption",value:function(){var c=this._getItemHeight(),h=(c-this._triggerRect.height)/2,_=Math.abs(this._offsetY)-h+c/2;return"50% ".concat(_,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(toe);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275cmp=ke({type:e,selectors:[["mat-select"]],contentQueries:function(t,n,l){var c;1&t&&(Zt(l,see,5),Zt(l,Pi,5),Zt(l,GS,5)),2&t&&(Ne(c=Le())&&(n.customTrigger=c.first),Ne(c=Le())&&(n.options=c),Ne(c=Le())&&(n.optionGroups=c))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,n){1&t&&ne("keydown",function(c){return n._handleKeydown(c)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&t&&(Ke("id",n.id)("tabindex",n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-describedby",n._ariaDescribedby||null)("aria-activedescendant",n._getAriaActiveDescendant()),dt("mat-select-disabled",n.disabled)("mat-select-invalid",n.errorState)("mat-select-required",n.required)("mat-select-empty",n.empty)("mat-select-multiple",n.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Xe([{provide:nk,useExisting:e},{provide:Bg,useExisting:e}]),Pe],ngContentSelectors:Yae,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,n){if(1&t&&(rr(Wae),A(0,"div",0,1),ne("click",function(){return n.toggle()}),A(3,"div",2),re(4,Hae,2,1,"span",3),re(5,Gae,3,2,"span",4),E(),A(6,"div",5),me(7,"div",6),E(),E(),re(8,jae,4,14,"ng-template",7),ne("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&t){var l=Pn(1);Ke("aria-owns",n.panelOpen?n.id+"-panel":null),H(3),z("ngSwitch",n.empty),Ke("id",n._valueId),H(1),z("ngSwitchCase",!0),H(1),z("ngSwitchCase",!1),H(3),z("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",l)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayMinWidth",null==n._triggerRect?null:n._triggerRect.width)("cdkConnectedOverlayOffsetY",n._offsetY)}},directives:[OY,bu,Cu,PV,ED,Ts],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[ree.transformPanelWrap,ree.transformPanel]},changeDetection:0}),e}(),lee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[$ae],imports:[[Wa,fp,WS,$t],lp,U5,WS,$t]}),e}(),noe={tooltipState:Ei("state",[Bn("initial, void, hidden",gt({opacity:0,transform:"scale(0)"})),Bn("visible",gt({transform:"scale(1)"})),zn("* => visible",Tn("200ms cubic-bezier(0, 0, 0.2, 1)",Dl([gt({opacity:0,transform:"scale(0)",offset:0}),gt({opacity:.5,transform:"scale(0.99)",offset:.5}),gt({opacity:1,transform:"scale(1)",offset:1})]))),zn("* => hidden",Tn("100ms cubic-bezier(0, 0, 0.2, 1)",gt({opacity:0})))])},uee="tooltip-panel",cee=tp({passive:!0}),fee=new Ee("mat-tooltip-scroll-strategy"),ooe={provide:fee,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},soe=new Ee("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),uoe=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,I,L,G){var Y=this;F(this,a),this._overlay=t,this._elementRef=n,this._scrollDispatcher=l,this._viewContainerRef=c,this._ngZone=h,this._platform=_,this._ariaDescriber=C,this._focusMonitor=k,this._dir=I,this._defaultOptions=L,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new qe,this._handleKeydown=function(Q){Y._isTooltipVisible()&&27===Q.keyCode&&!Bi(Q)&&(Q.preventDefault(),Q.stopPropagation(),Y._ngZone.run(function(){return Y.hide(0)}))},this._scrollStrategy=D,this._document=G,L&&(L.position&&(this.position=L.position),L.touchGestures&&(this.touchGestures=L.touchGestures)),I.change.pipe(Ht(this._destroyed)).subscribe(function(){Y._overlayRef&&Y._updatePosition(Y._overlayRef)}),h.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",Y._handleKeydown)})}return W(a,[{key:"position",get:function(){return this._position},set:function(n){var l;n!==this._position&&(this._position=n,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(l=this._tooltipInstance)||void 0===l||l.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=it(n),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(n){var l=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=n?String(n).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){l._ariaDescriber.describe(l._elementRef.nativeElement,l.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(n){this._tooltipClass=n,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var n=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ht(this._destroyed)).subscribe(function(l){l?"keyboard"===l&&n._ngZone.run(function(){return n.show()}):n._ngZone.run(function(){return n.hide(0)})})}},{key:"ngOnDestroy",value:function(){var n=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),n.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(l){var c=cr(l,2);n.removeEventListener(c[0],c[1],cee)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(n,this.message,"tooltip"),this._focusMonitor.stopMonitoring(n)}},{key:"show",value:function(){var n=this,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var c=this._createOverlay();this._detach(),this._portal=this._portal||new sd(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=c.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Ht(this._destroyed)).subscribe(function(){return n._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(l)}}},{key:"hide",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(n)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var n=this;if(this._overlayRef)return this._overlayRef;var l=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),c=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(l);return c.positionChanges.pipe(Ht(this._destroyed)).subscribe(function(h){n._updateCurrentPositionClass(h.connectionPair),n._tooltipInstance&&h.scrollableViewProperties.isOverlayClipped&&n._tooltipInstance.isVisible()&&n._ngZone.run(function(){return n.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:c,panelClass:"".concat(this._cssClassPrefix,"-").concat(uee),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ht(this._destroyed)).subscribe(function(){return n._detach()}),this._overlayRef.outsidePointerEvents().pipe(Ht(this._destroyed)).subscribe(function(){var h;return null===(h=n._tooltipInstance)||void 0===h?void 0:h._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(n){var l=n.getConfig().positionStrategy,c=this._getOrigin(),h=this._getOverlayPosition();l.withPositions([this._addOffset(Object.assign(Object.assign({},c.main),h.main)),this._addOffset(Object.assign(Object.assign({},c.fallback),h.fallback))])}},{key:"_addOffset",value:function(n){return n}},{key:"_getOrigin",value:function(){var c,n=!this._dir||"ltr"==this._dir.value,l=this.position;"above"==l||"below"==l?c={originX:"center",originY:"above"==l?"top":"bottom"}:"before"==l||"left"==l&&n||"right"==l&&!n?c={originX:"start",originY:"center"}:("after"==l||"right"==l&&n||"left"==l&&!n)&&(c={originX:"end",originY:"center"});var h=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:h.x,originY:h.y}}}},{key:"_getOverlayPosition",value:function(){var c,n=!this._dir||"ltr"==this._dir.value,l=this.position;"above"==l?c={overlayX:"center",overlayY:"bottom"}:"below"==l?c={overlayX:"center",overlayY:"top"}:"before"==l||"left"==l&&n||"right"==l&&!n?c={overlayX:"end",overlayY:"center"}:("after"==l||"right"==l&&n||"left"==l&&!n)&&(c={overlayX:"start",overlayY:"center"});var h=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:h.x,overlayY:h.y}}}},{key:"_updateTooltipMessage",value:function(){var n=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(or(1),Ht(this._destroyed)).subscribe(function(){n._tooltipInstance&&n._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(n){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=n,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(n,l){return"above"===this.position||"below"===this.position?"top"===l?l="bottom":"bottom"===l&&(l="top"):"end"===n?n="start":"start"===n&&(n="end"),{x:n,y:l}}},{key:"_updateCurrentPositionClass",value:function(n){var _,l=n.overlayY,c=n.originX;if((_="center"===l?this._dir&&"rtl"===this._dir.value?"end"===c?"left":"right":"start"===c?"left":"right":"bottom"===l&&"top"===n.originY?"above":"below")!==this._currentPosition){var C=this._overlayRef;if(C){var k="".concat(this._cssClassPrefix,"-").concat(uee,"-");C.removePanelClass(k+this._currentPosition),C.addPanelClass(k+_)}this._currentPosition=_}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var n=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){n._setupPointerExitEventsIfNeeded(),n.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){n._setupPointerExitEventsIfNeeded(),clearTimeout(n._touchstartTimeout),n._touchstartTimeout=setTimeout(function(){return n.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var l,n=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var c=[];if(this._platformSupportsMouseEvents())c.push(["mouseleave",function(){return n.hide()}],["wheel",function(_){return n._wheelListener(_)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var h=function(){clearTimeout(n._touchstartTimeout),n.hide(n._defaultOptions.touchendHideDelay)};c.push(["touchend",h],["touchcancel",h])}this._addListeners(c),(l=this._passiveListeners).push.apply(l,c)}}},{key:"_addListeners",value:function(n){var l=this;n.forEach(function(c){var h=cr(c,2);l._elementRef.nativeElement.addEventListener(h[0],h[1],cee)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(n){if(this._isTooltipVisible()){var l=this._document.elementFromPoint(n.clientX,n.clientY),c=this._elementRef.nativeElement;l!==c&&!c.contains(l)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var n=this.touchGestures;if("off"!==n){var l=this._elementRef.nativeElement,c=l.style;("on"===n||"INPUT"!==l.nodeName&&"TEXTAREA"!==l.nodeName)&&(c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none"),("on"===n||!l.draggable)&&(c.webkitUserDrag="none"),c.touchAction="none",c.webkitTapHighlightColor="transparent"}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(Ue),N(op),N($n),N(ft),N(en),N(FV),N(ra),N(void 0),N(Mr),N(void 0),N(lt))},e.\u0275dir=ve({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),dee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I,L,G,Y,Q){var ie;return F(this,n),(ie=t.call(this,l,c,h,_,C,k,D,I,L,G,Y,Q))._tooltipComponent=foe,ie}return n}(uoe);return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(Ue),N(op),N($n),N(ft),N(en),N(FV),N(ra),N(fee),N(Mr,8),N(soe,8),N(lt))},e.\u0275dir=ve({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Pe]}),e}(),coe=function(){var e=function(){function a(t){F(this,a),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new qe}return W(a,[{key:"show",value:function(n){var l=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){l._visibility="visible",l._showTimeoutId=void 0,l._onShow(),l._markForCheck()},n)}},{key:"hide",value:function(n){var l=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){l._visibility="hidden",l._hideTimeoutId=void 0,l._markForCheck()},n)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(n){var l=n.toState;"hidden"===l&&!this.isVisible()&&this._onHide.next(),("visible"===l||"hidden"===l)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Vt))},e.\u0275dir=ve({type:e}),e}(),foe=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this,l))._breakpointObserver=c,h._isHandset=h._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),h}return n}(coe);return e.\u0275fac=function(t){return new(t||e)(N(Vt),N(Hq))},e.\u0275cmp=ke({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,n){2&t&&Ur("zoom","visible"===n._visibility?1:null)},features:[Pe],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,n){var l;1&t&&(A(0,"div",0),ne("@state.start",function(){return n._animationStart()})("@state.done",function(h){return n._animationDone(h)}),Uf(1,"async"),K(2),E()),2&t&&(dt("mat-tooltip-handset",null==(l=Gf(1,5,n._isHandset))?null:l.matches),z("ngClass",n.tooltipClass)("@state",n._visibility),H(2),On(n.message))},directives:[Ts],pipes:[Zw],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[noe.tooltipState]},changeDetection:0}),e}(),hee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[ooe],imports:[[LE,Wa,fp,$t],$t,lp]}),e}();function doe(e,a){if(1&e&&(A(0,"mat-option",19),K(1),E()),2&e){var t=a.$implicit;z("value",t),H(1),Ve(" ",t," ")}}function hoe(e,a){if(1&e){var t=De();A(0,"mat-form-field",16),A(1,"mat-select",17),ne("selectionChange",function(c){return pe(t),J(2)._changePageSize(c.value)}),re(2,doe,2,2,"mat-option",18),E(),E()}if(2&e){var n=J(2);z("appearance",n._formFieldAppearance)("color",n.color),H(1),z("value",n.pageSize)("disabled",n.disabled)("aria-label",n._intl.itemsPerPageLabel),H(1),z("ngForOf",n._displayedPageSizeOptions)}}function poe(e,a){if(1&e&&(A(0,"div",20),K(1),E()),2&e){var t=J(2);H(1),On(t.pageSize)}}function voe(e,a){if(1&e&&(A(0,"div",12),A(1,"div",13),K(2),E(),re(3,hoe,3,6,"mat-form-field",14),re(4,poe,2,1,"div",15),E()),2&e){var t=J();H(2),Ve(" ",t._intl.itemsPerPageLabel," "),H(1),z("ngIf",t._displayedPageSizeOptions.length>1),H(1),z("ngIf",t._displayedPageSizeOptions.length<=1)}}function goe(e,a){if(1&e){var t=De();A(0,"button",21),ne("click",function(){return pe(t),J().firstPage()}),pa(),A(1,"svg",7),me(2,"path",22),E(),E()}if(2&e){var n=J();z("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),Ke("aria-label",n._intl.firstPageLabel)}}function moe(e,a){if(1&e){var t=De();pa(),t0(),A(0,"button",23),ne("click",function(){return pe(t),J().lastPage()}),pa(),A(1,"svg",7),me(2,"path",24),E(),E()}if(2&e){var n=J();z("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),Ke("aria-label",n._intl.lastPageLabel)}}var kb=function(){var e=function a(){F(this,a),this.changes=new qe,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,n,l){if(0==l||0==n)return"0 of ".concat(l);var c=t*n,h=c<(l=Math.max(l,0))?Math.min(c+n,l):c+n;return"".concat(c+1," \u2013 ").concat(h," of ").concat(l)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),yoe={provide:kb,deps:[[new oi,new Fo,kb]],useFactory:function(e){return e||new kb}},Coe=new Ee("MAT_PAGINATOR_DEFAULT_OPTIONS"),woe=ia(o5(function(){return function e(){F(this,e)}}())),Soe=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _;if(F(this,n),(_=t.call(this))._intl=l,_._changeDetectorRef=c,_._pageIndex=0,_._length=0,_._pageSizeOptions=[],_._hidePageSize=!1,_._showFirstLastButtons=!1,_.page=new ye,_._intlChanges=l.changes.subscribe(function(){return _._changeDetectorRef.markForCheck()}),h){var C=h.pageSize,k=h.pageSizeOptions,D=h.hidePageSize,I=h.showFirstLastButtons;null!=C&&(_._pageSize=C),null!=k&&(_._pageSizeOptions=k),null!=D&&(_._hidePageSize=D),null!=I&&(_._showFirstLastButtons=I)}return _}return W(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(c){this._pageIndex=Math.max(Di(c),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(c){this._length=Di(c),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(c){this._pageSize=Math.max(Di(c),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(c){this._pageSizeOptions=(c||[]).map(function(h){return Di(h)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(c){this._hidePageSize=it(c)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(c){this._showFirstLastButtons=it(c)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var c=this.pageIndex;this.pageIndex++,this._emitPageEvent(c)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var c=this.pageIndex;this.pageIndex--,this._emitPageEvent(c)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var c=this.pageIndex;this.pageIndex=0,this._emitPageEvent(c)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var c=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(c)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var c=this.getNumberOfPages()-1;return this.pageIndex=D.length&&(I=0),D[I]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(Aoe);return e.\u0275fac=function(t){return new(t||e)(N(Doe,8))},e.\u0275dir=ve({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Pe,an]}),e}(),Ug=Y9.ENTERING+" "+W9.STANDARD_CURVE,ok={indicator:Ei("indicator",[Bn("active-asc, asc",gt({transform:"translateY(0px)"})),Bn("active-desc, desc",gt({transform:"translateY(10px)"})),zn("active-asc <=> active-desc",Tn(Ug))]),leftPointer:Ei("leftPointer",[Bn("active-asc, asc",gt({transform:"rotate(-45deg)"})),Bn("active-desc, desc",gt({transform:"rotate(45deg)"})),zn("active-asc <=> active-desc",Tn(Ug))]),rightPointer:Ei("rightPointer",[Bn("active-asc, asc",gt({transform:"rotate(45deg)"})),Bn("active-desc, desc",gt({transform:"rotate(-45deg)"})),zn("active-asc <=> active-desc",Tn(Ug))]),arrowOpacity:Ei("arrowOpacity",[Bn("desc-to-active, asc-to-active, active",gt({opacity:1})),Bn("desc-to-hint, asc-to-hint, hint",gt({opacity:.54})),Bn("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",gt({opacity:0})),zn("* => asc, * => desc, * => active, * => hint, * => void",Tn("0ms")),zn("* <=> *",Tn(Ug))]),arrowPosition:Ei("arrowPosition",[zn("* => desc-to-hint, * => desc-to-active",Tn(Ug,Dl([gt({transform:"translateY(-25%)"}),gt({transform:"translateY(0)"})]))),zn("* => hint-to-desc, * => active-to-desc",Tn(Ug,Dl([gt({transform:"translateY(0)"}),gt({transform:"translateY(25%)"})]))),zn("* => asc-to-hint, * => asc-to-active",Tn(Ug,Dl([gt({transform:"translateY(25%)"}),gt({transform:"translateY(0)"})]))),zn("* => hint-to-asc, * => active-to-asc",Tn(Ug,Dl([gt({transform:"translateY(0)"}),gt({transform:"translateY(-25%)"})]))),Bn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",gt({transform:"translateY(0)"})),Bn("hint-to-desc, active-to-desc, desc",gt({transform:"translateY(-25%)"})),Bn("hint-to-asc, active-to-asc, asc",gt({transform:"translateY(25%)"}))]),allowChildren:Ei("allowChildren",[zn("* <=> *",[BE("@*",QV(),{optional:!0})])])},W5=function(){var e=function a(){F(this,a),this.changes=new qe};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Ooe={provide:W5,deps:[[new oi,new Fo,W5]],useFactory:function(e){return e||new W5}},Ioe=ia(function(){return function e(){F(this,e)}}()),pee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this))._intl=l,D._changeDetectorRef=c,D._sort=h,D._columnDef=_,D._focusMonitor=C,D._elementRef=k,D._showIndicatorHint=!1,D._viewState={},D._arrowDirection="",D._disableViewStateAnimation=!1,D.arrowPosition="after",D._handleStateChanges(),D}return W(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(c){this._disableClear=it(c)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var c=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(h){var _=!!h;_!==c._showIndicatorHint&&(c._setIndicatorHintVisible(_),c._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(c){this._isDisabled()&&c||(this._showIndicatorHint=c,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(c){this._viewState=c||{},this._disableViewStateAnimation&&(this._viewState={toState:c.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(c){!this._isDisabled()&&(32===c.keyCode||13===c.keyCode)&&(c.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var c=this._viewState.fromState;return(c?"".concat(c,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var c=this;this._rerenderSubscription=ot(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){c._isSorted()&&(c._updateArrowDirection(),("hint"===c._viewState.toState||"active"===c._viewState.toState)&&(c._disableViewStateAnimation=!0),c._setAnimationTransitionState({fromState:c._arrowDirection,toState:"active"}),c._showIndicatorHint=!1),!c._isSorted()&&c._viewState&&"active"===c._viewState.toState&&(c._disableViewStateAnimation=!1,c._setAnimationTransitionState({fromState:"active",toState:c._arrowDirection})),c._changeDetectorRef.markForCheck()})}}]),n}(Ioe);return e.\u0275fac=function(t){return new(t||e)(N(W5),N(Vt),N(DP,8),N("MAT_SORT_HEADER_COLUMN_DEF",8),N(ra),N(Ue))},e.\u0275cmp=ke({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,n){1&t&&ne("click",function(){return n._handleClick()})("keydown",function(c){return n._handleKeydown(c)})("mouseenter",function(){return n._setIndicatorHintVisible(!0)})("mouseleave",function(){return n._setIndicatorHintVisible(!1)}),2&t&&(Ke("aria-sort",n._getAriaSortAttribute()),dt("mat-sort-header-disabled",n._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Pe],attrs:Moe,ngContentSelectors:Toe,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,n){1&t&&(rr(),A(0,"div",0),A(1,"div",1),Wt(2),E(),re(3,xoe,6,6,"div",2),E()),2&t&&(dt("mat-sort-header-sorted",n._isSorted())("mat-sort-header-position-before","before"==n.arrowPosition),Ke("tabindex",n._isDisabled()?null:0),H(3),z("ngIf",n._renderArrow()))},directives:[Kt],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[ok.indicator,ok.leftPointer,ok.rightPointer,ok.arrowOpacity,ok.arrowPosition,ok.allowChildren]},changeDetection:0}),e}(),Roe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Ooe],imports:[[Wa,$t]]}),e}(),Loe=[[["caption"]],[["colgroup"],["col"]]],Foe=["caption","colgroup, col"];function Yq(e){return function(a){ae(n,a);var t=ue(n);function n(){var l;F(this,n);for(var c=arguments.length,h=new Array(c),_=0;_4&&void 0!==arguments[4])||arguments[4],h=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],_=arguments.length>6?arguments[6]:void 0;F(this,e),this._isNativeHtmlTable=a,this._stickCellCss=t,this.direction=n,this._coalescedStyleScheduler=l,this._isBrowser=c,this._needsPositionStickyOnElement=h,this._positionListener=_,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(t,"-border-elem-top"),bottom:"".concat(t,"-border-elem-bottom"),left:"".concat(t,"-border-elem-left"),right:"".concat(t,"-border-elem-right")}}return W(e,[{key:"clearStickyPositioning",value:function(t,n){var _,l=this,c=[],h=tn(t);try{for(h.s();!(_=h.n()).done;){var C=_.value;if(C.nodeType===C.ELEMENT_NODE){c.push(C);for(var k=0;k3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(n.some(function(Y){return Y})||l.some(function(Y){return Y}))){var _=t[0],C=_.children.length,k=this._getCellWidths(_,h),D=this._getStickyStartColumnPositions(k,n),I=this._getStickyEndColumnPositions(k,l),L=n.lastIndexOf(!0),G=l.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var se,Y="rtl"===c.direction,Q=Y?"right":"left",ie=Y?"left":"right",fe=tn(t);try{for(fe.s();!(se=fe.n()).done;)for(var be=se.value,Ce=0;Ce1&&void 0!==arguments[1])||arguments[1];if(!n&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var l=[],c=t.children,h=0;h0;h--)n[h]&&(l[h]=c,c+=t[h]);return l}}]),e}(),tX=new Ee("CDK_SPL"),Z5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N($n),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","rowOutlet",""]]}),e}(),K5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N($n),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),$5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N($n),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),Q5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N($n),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),J5=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,I,L){F(this,a),this._differs=t,this._changeDetectorRef=n,this._elementRef=l,this._dir=h,this._platform=C,this._viewRepeater=k,this._coalescedStyleScheduler=D,this._viewportRuler=I,this._stickyPositioningListener=L,this._onDestroy=new qe,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new ye,this.viewChange=new Ma({start:0,end:Number.MAX_VALUE}),c||this._elementRef.nativeElement.setAttribute("role","table"),this._document=_,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return W(a,[{key:"trackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"dataSource",get:function(){return this._dataSource},set:function(n){this._dataSource!==n&&this._switchDataSource(n)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(n){this._multiTemplateDataRows=it(n),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(n){this._fixedLayout=it(n),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var n=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(l,c){return n.trackBy?n.trackBy(c.dataIndex,c.data):c}),this._viewportRuler.change().pipe(Ht(this._onDestroy)).subscribe(function(){n._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var l=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||l,this._forceRecalculateCellWidths=l,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Y1(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var n=this;this._renderRows=this._getAllRenderRows();var l=this._dataDiffer.diff(this._renderRows);if(!l)return this._updateNoDataRow(),void this.contentChanged.next();var c=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(l,c,function(h,_,C){return n._getEmbeddedViewArgs(h.item,C)},function(h){return h.item.data},function(h){1===h.operation&&h.context&&n._renderCellTemplateForItem(h.record.item.rowDef,h.context)}),this._updateRowIndexContext(),l.forEachIdentityChange(function(h){c.get(h.currentIndex).context.$implicit=h.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(n){this._customColumnDefs.add(n)}},{key:"removeColumnDef",value:function(n){this._customColumnDefs.delete(n)}},{key:"addRowDef",value:function(n){this._customRowDefs.add(n)}},{key:"removeRowDef",value:function(n){this._customRowDefs.delete(n)}},{key:"addHeaderRowDef",value:function(n){this._customHeaderRowDefs.add(n),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(n){this._customHeaderRowDefs.delete(n),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(n){this._customFooterRowDefs.add(n),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(n){this._customFooterRowDefs.delete(n),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(n){this._customNoDataRow=n}},{key:"updateStickyHeaderRowStyles",value:function(){var n=this._getRenderedRows(this._headerRowOutlet),c=this._elementRef.nativeElement.querySelector("thead");c&&(c.style.display=n.length?"":"none");var h=this._headerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["top"]),this._stickyStyler.stickRows(n,h,"top"),this._headerRowDefs.forEach(function(_){return _.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var n=this._getRenderedRows(this._footerRowOutlet),c=this._elementRef.nativeElement.querySelector("tfoot");c&&(c.style.display=n.length?"":"none");var h=this._footerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["bottom"]),this._stickyStyler.stickRows(n,h,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,h),this._footerRowDefs.forEach(function(_){return _.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var n=this,l=this._getRenderedRows(this._headerRowOutlet),c=this._getRenderedRows(this._rowOutlet),h=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(At(l),At(c),At(h)),["left","right"]),this._stickyColumnStylesNeedReset=!1),l.forEach(function(_,C){n._addStickyColumnStyles([_],n._headerRowDefs[C])}),this._rowDefs.forEach(function(_){for(var C=[],k=0;k0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(l,c){return n._renderRow(n._headerRowOutlet,l,c)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var n=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(l,c){return n._renderRow(n._footerRowOutlet,l,c)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(n,l){var c=this,h=Array.from(l.columns||[]).map(function(k){return c._columnDefsByName.get(k)}),_=h.map(function(k){return k.sticky}),C=h.map(function(k){return k.stickyEnd});this._stickyStyler.updateStickyColumns(n,_,C,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(n){for(var l=[],c=0;c3&&void 0!==arguments[3]?arguments[3]:{},_=n.viewContainer.createEmbeddedView(l.template,h,c);return this._renderCellTemplateForItem(l,h),_}},{key:"_renderCellTemplateForItem",value:function(n,l){var h,c=tn(this._getCellTemplates(n));try{for(c.s();!(h=c.n()).done;)wp.mostRecentCellOutlet&&wp.mostRecentCellOutlet._viewContainer.createEmbeddedView(h.value,l)}catch(C){c.e(C)}finally{c.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var n=this._rowOutlet.viewContainer,l=0,c=n.length;l0&&void 0!==arguments[0]?arguments[0]:[];return F(this,t),(n=a.call(this))._renderData=new Ma([]),n._filter=new Ma(""),n._internalPageChanges=new qe,n._renderChangesSubscription=null,n.sortingDataAccessor=function(c,h){var _=c[h];if(U3(_)){var C=Number(_);return CL?Q=1:I0)){var _=Math.ceil(h.length/h.pageSize)-1||0,C=Math.min(h.pageIndex,_);C!==h.pageIndex&&(h.pageIndex=C,c._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var l;null===(l=this._renderChangesSubscription)||void 0===l||l.unsubscribe(),this._renderChangesSubscription=null}}]),t}(qA));function use(e){return e instanceof Date&&!isNaN(+e)}function oH(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg,t=use(e),n=t?+e-a.now():Math.abs(e);return function(l){return l.lift(new cse(n,a))}}var cse=function(){function e(a,t){F(this,e),this.delay=a,this.scheduler=t}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new fse(t,this.delay,this.scheduler))}}]),e}(),fse=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).delay=l,h.scheduler=c,h.queue=[],h.active=!1,h.errored=!1,h}return W(t,[{key:"_schedule",value:function(l){this.active=!0,this.destination.add(l.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:l}))}},{key:"scheduleNotification",value:function(l){if(!0!==this.errored){var c=this.scheduler,h=new dse(c.now()+this.delay,l);this.queue.push(h),!1===this.active&&this._schedule(c)}}},{key:"_next",value:function(l){this.scheduleNotification(qy.createNext(l))}},{key:"_error",value:function(l){this.errored=!0,this.queue=[],this.destination.error(l),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(qy.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(l){for(var c=l.source,h=c.queue,_=l.scheduler,C=l.destination;h.length>0&&h[0].time-_.now()<=0;)h.shift().notification.observe(C);if(h.length>0){var k=Math.max(0,h[0].time-_.now());this.schedule(l,k)}else this.unsubscribe(),c.active=!1}}]),t}(Ze),dse=function e(a,t){F(this,e),this.time=a,this.notification=t},Cee=tp({passive:!0}),wee=function(){var e=function(){function a(t,n){F(this,a),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return W(a,[{key:"monitor",value:function(n){var l=this;if(!this._platform.isBrowser)return Ar;var c=bc(n),h=this._monitoredElements.get(c);if(h)return h.subject;var _=new qe,C="cdk-text-field-autofilled",k=function(I){"cdk-text-field-autofill-start"!==I.animationName||c.classList.contains(C)?"cdk-text-field-autofill-end"===I.animationName&&c.classList.contains(C)&&(c.classList.remove(C),l._ngZone.run(function(){return _.next({target:I.target,isAutofilled:!1})})):(c.classList.add(C),l._ngZone.run(function(){return _.next({target:I.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){c.addEventListener("animationstart",k,Cee),c.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(c,{subject:_,unlisten:function(){c.removeEventListener("animationstart",k,Cee)}}),_}},{key:"stopMonitoring",value:function(n){var l=bc(n),c=this._monitoredElements.get(l);c&&(c.unlisten(),c.subject.complete(),l.classList.remove("cdk-text-field-autofill-monitored"),l.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(l))}},{key:"ngOnDestroy",value:function(){var n=this;this._monitoredElements.forEach(function(l,c){return n.stopMonitoring(c)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en),ce(ft))},e.\u0275prov=We({factory:function(){return new e(ce(en),ce(ft))},token:e,providedIn:"root"}),e}(),See=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[ep]]}),e}(),kee=new Ee("MAT_INPUT_VALUE_ACCESSOR"),pse=["button","checkbox","file","hidden","image","radio","range","reset","submit"],vse=0,gse=HS(function(){return function e(a,t,n,l){F(this,e),this._defaultErrorStateMatcher=a,this._parentForm=t,this._parentFormGroup=n,this.ngControl=l}}()),Hi=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I,L,G){var Y;F(this,n),(Y=t.call(this,k,_,C,h))._elementRef=l,Y._platform=c,Y._autofillMonitor=I,Y._formField=G,Y._uid="mat-input-".concat(vse++),Y.focused=!1,Y.stateChanges=new qe,Y.controlType="mat-input",Y.autofilled=!1,Y._disabled=!1,Y._required=!1,Y._type="text",Y._readonly=!1,Y._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(fe){return j1().has(fe)});var Q=Y._elementRef.nativeElement,ie=Q.nodeName.toLowerCase();return Y._inputValueAccessor=D||Q,Y._previousNativeValue=Y.value,Y.id=Y.id,c.IOS&&L.runOutsideAngular(function(){l.nativeElement.addEventListener("keyup",function(fe){var se=fe.target;!se.value&&0===se.selectionStart&&0===se.selectionEnd&&(se.setSelectionRange(1,1),se.setSelectionRange(0,0))})}),Y._isServer=!Y._platform.isBrowser,Y._isNativeSelect="select"===ie,Y._isTextarea="textarea"===ie,Y._isInFormField=!!G,Y._isNativeSelect&&(Y.controlType=Q.multiple?"mat-native-select-multiple":"mat-native-select"),Y}return W(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(c){this._disabled=it(c),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(c){this._id=c||this._uid}},{key:"required",get:function(){return this._required},set:function(c){this._required=it(c)}},{key:"type",get:function(){return this._type},set:function(c){this._type=c||"text",this._validateType(),!this._isTextarea&&j1().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(c){c!==this.value&&(this._inputValueAccessor.value=c,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(c){this._readonly=it(c)}},{key:"ngAfterViewInit",value:function(){var c=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(h){c.autofilled=h.isAutofilled,c.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(c){this._elementRef.nativeElement.focus(c)}},{key:"_focusChanged",value:function(c){c!==this.focused&&(this.focused=c,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var c,h,_=(null===(h=null===(c=this._formField)||void 0===c?void 0:c._hideControlPlaceholder)||void 0===h?void 0:h.call(c))?null:this.placeholder;if(_!==this._previousPlaceholder){var C=this._elementRef.nativeElement;this._previousPlaceholder=_,_?C.setAttribute("placeholder",_):C.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var c=this._elementRef.nativeElement.value;this._previousNativeValue!==c&&(this._previousNativeValue=c,this.stateChanges.next())}},{key:"_validateType",value:function(){pse.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var c=this._elementRef.nativeElement.validity;return c&&c.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var c=this._elementRef.nativeElement,h=c.options[0];return this.focused||c.multiple||!this.empty||!!(c.selectedIndex>-1&&h&&h.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(c){c.length?this._elementRef.nativeElement.setAttribute("aria-describedby",c.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(gse);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(en),N(Ut,10),N(Lc,8),N(yp,8),N(dd),N(kee,10),N(wee),N(ft),N(ik,8))},e.\u0275dir=ve({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,n){1&t&&ne("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&t&&(Zi("disabled",n.disabled)("required",n.required),Ke("id",n.id)("data-placeholder",n.placeholder)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required),dt("mat-input-server",n._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Xe([{provide:nk,useExisting:e}]),Pe,an]}),e}(),mse=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[dd],imports:[[See,U5,$t],See,U5]}),e}(),_se=["searchSelectInput"],yse=["innerSelectSearch"];function bse(e,a){if(1&e){var t=De();A(0,"button",6),ne("click",function(){return pe(t),J()._reset(!0)}),A(1,"i",7),K(2,"close"),E(),E()}}var Cse=function(e){return{"mat-select-search-inner-multiple":e}},Vc=function(){function e(a,t){this.matSelect=a,this.changeDetectorRef=t,this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.clearSearchInput=!0,this.disableInitialFocus=!1,this.changed=new ye,this.overlayClassSet=!1,this.change=new ye,this._onDestroy=new qe}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var a=this,t="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(t):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,t]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[t]=!0):this.matSelect.panelClass=t,this.matSelect.openedChange.pipe(oH(1),Ht(this._onDestroy)).subscribe(function(n){n?(a.getWidth(),a.disableInitialFocus||a._focus()):a.clearSearchInput&&a._reset()}),this.matSelect.openedChange.pipe(or(1)).pipe(Ht(this._onDestroy)).subscribe(function(){a._options=a.matSelect.options,a._options.changes.pipe(Ht(a._onDestroy)).subscribe(function(){var n=a.matSelect._keyManager;n&&a.matSelect.panelOpen&&setTimeout(function(){n.setFirstItemActive(),a.getWidth()},1)})}),this.change.pipe(Ht(this._onDestroy)).subscribe(function(){a.changeDetectorRef.detectChanges()}),this.initMultipleHandling()},e.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},e.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){a.setOverlayClass()}),this.matSelect.openedChange.pipe(or(1),Ht(this._onDestroy)).subscribe(function(){a.matSelect.options.changes.pipe(Ht(a._onDestroy)).subscribe(function(){a.changeDetectorRef.markForCheck()})})},e.prototype._handleKeydown=function(a){(a.key&&1===a.key.length||a.keyCode>=65&&a.keyCode<=90||a.keyCode>=48&&a.keyCode<=57||32===a.keyCode)&&a.stopPropagation()},e.prototype.writeValue=function(a){a!==this._value&&(this._value=a,this.change.emit(a))},e.prototype.onInputChange=function(a){a.value!==this._value&&(this.initMultiSelectedValues(),this._value=a.value,this.changed.emit(a.value),this.change.emit(a.value))},e.prototype.onBlur=function(a){this.writeValue(a.value)},e.prototype._focus=function(){if(this.searchSelectInput&&this.matSelect.panel){var a=this.matSelect.panel.nativeElement,t=a.scrollTop;this.searchSelectInput.nativeElement.focus(),a.scrollTop=t}},e.prototype._reset=function(a){!this.searchSelectInput||(this.searchSelectInput.nativeElement.value="",this.onInputChange(""),a&&this._focus())},e.prototype.initMultiSelectedValues=function(){this.matSelect.multiple&&!this._value&&(this.previousSelectedValues=this.matSelect.options.filter(function(a){return a.selected}).map(function(a){return a.value}))},e.prototype.setOverlayClass=function(){var a=this;this.overlayClassSet||(this.matSelect.openedChange.pipe(Ht(this._onDestroy)).subscribe(function(n){if(n){for(var l=a.searchSelectInput.nativeElement,c=void 0;l=l.parentElement;)if(l.classList.contains("cdk-overlay-pane")){c=l;break}c&&c.classList.add("cdk-overlay-pane-select-search")}}),this.overlayClassSet=!0)},e.prototype.initMultipleHandling=function(){var a=this;this.matSelect.valueChange.pipe(Ht(this._onDestroy)).subscribe(function(t){if(a.matSelect.multiple){var n=!1;if(a._value&&a._value.length&&a.previousSelectedValues&&Array.isArray(a.previousSelectedValues)){(!t||!Array.isArray(t))&&(t=[]);var l=a.matSelect.options.map(function(c){return c.value});a.previousSelectedValues.forEach(function(c){-1===t.indexOf(c)&&-1===l.indexOf(c)&&(t.push(c),n=!0)})}n&&a.matSelect._onChange(t),a.previousSelectedValues=t}})},e.prototype.getWidth=function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var t,a=this.innerSelectSearch.nativeElement;a=a.parentElement;)if(a.classList.contains("mat-select-panel")){t=a;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}},e.\u0275fac=function(t){return new(t||e)(N($a),N(Vt))},e.\u0275cmp=ke({type:e,selectors:[["uds-mat-select-search"]],viewQuery:function(t,n){if(1&t&&(wt(_se,7,Ue),wt(yse,7,Ue)),2&t){var l=void 0;Ne(l=Le())&&(n.searchSelectInput=l.first),Ne(l=Le())&&(n.innerSelectSearch=l.first)}},inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",disableInitialFocus:"disableInitialFocus"},outputs:{changed:"changed"},features:[Xe([{provide:s,useExisting:Sn(function(){return e}),multi:!0}])],decls:6,vars:5,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["matInput","","autocomplete","off",1,"mat-select-search-input",3,"placeholder","keydown","input","blur"],["searchSelectInput",""],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[1,"material-icons"]],template:function(t,n){1&t&&(me(0,"input",0),A(1,"div",1,2),A(3,"input",3,4),ne("keydown",function(c){return n._handleKeydown(c)})("input",function(c){return n.onInputChange(c.target)})("blur",function(c){return n.onBlur(c.target)}),E(),re(5,bse,3,0,"button",5),E()),2&t&&(H(1),z("ngClass",vl(3,Cse,n.matSelect.multiple)),H(2),z("placeholder",n.placeholderLabel),H(2),z("ngIf",n.value))},directives:[Hi,Ts,Kt,Rn],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:0}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 36px 16px 16px;box-sizing:border-box}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px} .cdk-overlay-pane-select-search{margin-top:-50px}"],changeDetection:0}),e}();function wse(e,a){1&e&&(A(0,"uds-translate"),K(1,"New user permission for"),E())}function Sse(e,a){1&e&&(A(0,"uds-translate"),K(1,"New group permission for"),E())}function kse(e,a){if(1&e&&(A(0,"mat-option",11),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),On(t.text)}}function Mse(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",12),ne("changed",function(l){return pe(t),J().filterUser=l}),E()}}function xse(e,a){if(1&e&&(A(0,"mat-option",11),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),On(t.text)}}function Tse(e,a){if(1&e&&(A(0,"mat-option",11),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),On(t.text)}}var Dse=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.data=l,this.filterUser="",this.authenticators=[],this.entities=[],this.permissions=[{id:"1",text:django.gettext("Read only")},{id:"2",text:django.gettext("Full Access")}],this.authenticator="",this.entity="",this.permission="1",this.onSave=new ye(!0)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"50%";return a.gui.dialog.open(e,{width:l,data:{type:t,item:n},disableClose:!0}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.summary().subscribe(function(t){t.forEach(function(n){a.authenticators.push({id:n.id,text:n.name})})})},e.prototype.changeAuth=function(a){var t=this;this.entities.length=0,this.entity="",this.rest.authenticators.detail(a,this.data.type+"s").summary().subscribe(function(n){n.forEach(function(l){t.entities.push({id:l.id,text:l.name})})})},e.prototype.save=function(){this.onSave.emit({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()},e.prototype.filteredEntities=function(){var a=this,t=new Array;return this.entities.forEach(function(n){(!a.filterUser||n.text.toLocaleLowerCase().includes(a.filterUser.toLocaleLowerCase()))&&t.push(n)}),t},e.prototype.getFieldLabel=function(a){return"user"===a?django.gettext("User"):"group"===a?django.gettext("Group"):"auth"===a?django.gettext("Authenticator"):django.gettext("Permission")},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["titleGroup",""],[1,"container"],[3,"placeholder","ngModel","valueChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,wse,2,0,"uds-translate",1),me(2,"b",2),re(3,Sse,2,0,"ng-template",null,3,ml),E(),A(5,"mat-dialog-content"),A(6,"div",4),A(7,"mat-form-field"),A(8,"mat-select",5),ne("valueChange",function(h){return n.changeAuth(h)})("ngModelChange",function(h){return n.authenticator=h}),re(9,kse,2,2,"mat-option",6),E(),E(),A(10,"mat-form-field"),A(11,"mat-select",7),ne("ngModelChange",function(h){return n.entity=h}),re(12,Mse,1,0,"uds-mat-select-search",8),re(13,xse,2,2,"mat-option",6),E(),E(),A(14,"mat-form-field"),A(15,"mat-select",7),ne("ngModelChange",function(h){return n.permission=h}),re(16,Tse,2,2,"mat-option",6),E(),E(),E(),E(),A(17,"mat-dialog-actions"),A(18,"button",9),A(19,"uds-translate"),K(20,"Cancel"),E(),E(),A(21,"button",10),ne("click",function(){return n.save()}),A(22,"uds-translate"),K(23,"Ok"),E(),E(),E()),2&t){var l=Pn(4);H(1),z("ngIf","user"===n.data.type)("ngIfElse",l),H(1),z("innerHTML",n.data.item.name,Si),H(6),z("placeholder",n.getFieldLabel("auth"))("ngModel",n.authenticator),H(1),z("ngForOf",n.authenticators),H(2),z("placeholder",n.getFieldLabel(n.data.type))("ngModel",n.entity),H(1),z("ngIf",n.entities.length>10),H(1),z("ngForOf",n.filteredEntities()),H(2),z("placeholder",n.getFieldLabel("perm"))("ngModel",n.permission),H(1),z("ngForOf",n.permissions)}},directives:[Wr,Kt,Fr,_r,$a,Mt,mr,er,Qr,Rn,Lr,Hn,Pi,Vc],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function Ase(e,a){if(1&e){var t=De();A(0,"div",11),A(1,"div",12),K(2),E(),A(3,"div",13),K(4),A(5,"a",14),ne("click",function(){var h=pe(t).$implicit;return J(2).revokePermission(h)}),A(6,"i",15),K(7,"close"),E(),E(),E(),E()}if(2&e){var n=a.$implicit;H(2),Cv(" ",n.entity_name,"@",n.auth_name," "),H(2),Ve(" ",n.perm_name," \xa0")}}function Ese(e,a){if(1&e){var t=De();A(0,"div",7),A(1,"div",8),A(2,"div",9),ne("click",function(c){var _=pe(t).$implicit;return J().newPermission(_),c.preventDefault()}),A(3,"uds-translate"),K(4,"New permission..."),E(),E(),re(5,Ase,8,3,"div",10),E(),E()}if(2&e){var n=a.$implicit;H(5),z("ngForOf",n)}}var Pse=function(e,a){return[e,a]},Ose=function(){function e(a,t,n){this.api=a,this.dialogRef=t,this.data=n,this.userPermissions=[],this.groupPermissions=[]}return e.launch=function(a,t,n){var l=window.innerWidth<800?"90%":"60%";a.gui.dialog.open(e,{width:l,data:{rest:t,item:n},disableClose:!1})},e.prototype.ngOnInit=function(){this.reload()},e.prototype.reload=function(){var a=this;this.data.rest.getPermissions(this.data.item.id).subscribe(function(t){a.updatePermissions(t)})},e.prototype.updatePermissions=function(a){var t=this;this.userPermissions.length=0,this.groupPermissions.length=0,a.forEach(function(n){"user"===n.type?t.userPermissions.push(n):t.groupPermissions.push(n)})},e.prototype.revokePermission=function(a){var t=this;this.api.gui.yesno(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+a.entity_name+"@"+a.auth_name+" "+a.perm_name+"").subscribe(function(n){n&&t.data.rest.revokePermission([a.id]).subscribe(function(l){t.reload()})})},e.prototype.newPermission=function(a){var t=this,n=a===this.userPermissions?"user":"group";Dse.launch(this.api,n,this.data.item).subscribe(function(l){t.data.rest.addPermission(t.data.item.id,n+"s",l.entity,l.permissision).subscribe(function(c){t.reload()})})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-permissions-form"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],["class","content",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"content"],[1,"perms"],[1,"perm","new",3,"click"],["class","perm",4,"ngFor","ngForOf"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Permissions for"),E(),K(3,"\xa0"),me(4,"b",1),E(),A(5,"mat-dialog-content"),A(6,"div",2),A(7,"uds-translate",3),K(8,"Users"),E(),A(9,"uds-translate",3),K(10,"Groups"),E(),E(),A(11,"div",4),re(12,Ese,6,1,"div",5),E(),E(),A(13,"mat-dialog-actions"),A(14,"button",6),A(15,"uds-translate"),K(16,"Ok"),E(),E(),E()),2&t&&(H(4),z("innerHTML",n.data.item.name,Si),H(8),z("ngForOf",zf(2,Pse,n.userPermissions,n.groupPermissions)))},directives:[Wr,Hn,Fr,er,Qr,Rn,Lr],styles:['.titles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-bottom:.4rem}.title[_ngcontent-%COMP%]{font-size:1.4rem}.permissions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.perms[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;margin-bottom:1rem;margin-right:1rem;padding:.5rem}.perm[_ngcontent-%COMP%]{font-family:"Courier New",Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.perm[_ngcontent-%COMP%]:hover:not(.new){background-color:#333;color:#fff;cursor:default}.owner[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.new[_ngcontent-%COMP%]{color:#00f;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:#00f;cursor:pointer}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}']}),e}(),sX=Dt(99595),Tee=function(e){return void 0!==e.changingThisBreaksApplicationSecurity&&(e=e.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(e=""+e).replace('"','""')+'"'},Dee=function(e){var a="";e.columns.forEach(function(n){a+=Tee(n.title)+","}),a=a.slice(0,-1)+"\r\n",e.dataSource.data.forEach(function(n){e.columns.forEach(function(l){var c=n[l.name];switch(l.type){case Aa.DATE:c=Lu("SHORT_DATE_FORMAT",c);break;case Aa.DATETIME:c=Lu("SHORT_DATETIME_FORMAT",c);break;case Aa.DATETIMESEC:c=Lu("SHORT_DATE_FORMAT",c," H:i:s");break;case Aa.TIME:c=Lu("TIME_FORMAT",c)}a+=Tee(c)+","}),a=a.slice(0,-1)+"\r\n"});var t=new Blob([a],{type:"text/csv"});setTimeout(function(){(0,sX.saveAs)(t,e.title+".csv")},100)},Rse=function(){function e(a,t){F(this,e),this._document=t;var n=this._textarea=this._document.createElement("textarea"),l=n.style;l.position="fixed",l.top=l.opacity="0",l.left="-999em",n.setAttribute("aria-hidden","true"),n.value=a,this._document.body.appendChild(n)}return W(e,[{key:"copy",value:function(){var t=this._textarea,n=!1;try{if(t){var l=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),n=this._document.execCommand("copy"),l&&l.focus()}}catch(c){}return n}},{key:"destroy",value:function(){var t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}]),e}(),Aee=function(){var e=function(){function a(t){F(this,a),this._document=t}return W(a,[{key:"copy",value:function(n){var l=this.beginCopy(n),c=l.copy();return l.destroy(),c}},{key:"beginCopy",value:function(n){return new Rse(n,this._document)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(lt))},token:e,providedIn:"root"}),e}(),Nse=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}();function Vse(e,a){if(1&e&&(pa(),me(0,"circle",3)),2&e){var t=J();Ur("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Ke("r",t._getCircleRadius())}}function Bse(e,a){if(1&e&&(pa(),me(0,"circle",3)),2&e){var t=J();Ur("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Ke("r",t._getCircleRadius())}}var Gse=Eu(function(){return function e(a){F(this,e),this._elementRef=a}}(),"primary"),Pee=new Ee("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),Oee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C){var k;F(this,n),(k=t.call(this,l))._document=h,k._diameter=100,k._value=0,k._fallbackAnimation=!1,k.mode="determinate";var D=n._diameters;return k._spinnerAnimationLabel=k._getSpinnerAnimationLabel(),D.has(h.head)||D.set(h.head,new Set([100])),k._fallbackAnimation=c.EDGE||c.TRIDENT,k._noopAnimations="NoopAnimations"===_&&!!C&&!C._forceAnimations,C&&(C.diameter&&(k.diameter=C.diameter),C.strokeWidth&&(k.strokeWidth=C.strokeWidth)),k}return W(n,[{key:"diameter",get:function(){return this._diameter},set:function(c){this._diameter=Di(c),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(c){this._strokeWidth=Di(c)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(c){this._value=Math.max(0,Math.min(100,Di(c)))}},{key:"ngOnInit",value:function(){var c=this._elementRef.nativeElement;this._styleRoot=W1(c)||this._document.head,this._attachStyleNode();var h="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");c.classList.add(h)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var c=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(c," ").concat(c)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var c=this._styleRoot,h=this._diameter,_=n._diameters,C=_.get(c);if(!C||!C.has(h)){var k=this._document.createElement("style");k.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),k.textContent=this._getAnimationText(),c.appendChild(k),C||(C=new Set,_.set(c,C)),C.add(h)}}},{key:"_getAnimationText",value:function(){var c=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*c)).replace(/END_VALUE/g,"".concat(.2*c)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),n}(Gse);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(en),N(lt,8),N(Un,8),N(Pee))},e.\u0275cmp=ke({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,n){2&t&&(Ke("aria-valuemin","determinate"===n.mode?0:null)("aria-valuemax","determinate"===n.mode?100:null)("aria-valuenow","determinate"===n.mode?n.value:null)("mode",n.mode),Ur("width",n.diameter,"px")("height",n.diameter,"px"),dt("_mat-animation-noopable",n._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[Pe],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,n){1&t&&(pa(),A(0,"svg",0),re(1,Vse,1,9,"circle",1),re(2,Bse,1,7,"circle",2),E()),2&t&&(Ur("width",n.diameter,"px")("height",n.diameter,"px"),z("ngSwitch","indeterminate"===n.mode),Ke("viewBox",n._getViewBox()),H(1),z("ngSwitchCase",!0),H(1),z("ngSwitchCase",!1))},directives:[bu,Cu],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),e._diameters=new WeakMap,e}(),Yse=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t,Wa],$t]}),e}(),qse=["mat-menu-item",""];function Xse(e,a){1&e&&(pa(),A(0,"svg",2),me(1,"polygon",3),E())}var Iee=["*"];function Zse(e,a){if(1&e){var t=De();A(0,"div",0),ne("keydown",function(c){return pe(t),J()._handleKeydown(c)})("click",function(){return pe(t),J().closed.emit("click")})("@transformMenu.start",function(c){return pe(t),J()._onAnimationStart(c)})("@transformMenu.done",function(c){return pe(t),J()._onAnimationDone(c)}),A(1,"div",1),Wt(2),E(),E()}if(2&e){var n=J();z("id",n.panelId)("ngClass",n._classList)("@transformMenu",n._panelAnimationState),Ke("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var sH={transformMenu:Ei("transformMenu",[Bn("void",gt({opacity:0,transform:"scale(0.8)"})),zn("void => enter",Tn("120ms cubic-bezier(0, 0, 0.2, 1)",gt({opacity:1,transform:"scale(1)"}))),zn("* => void",Tn("100ms 25ms linear",gt({opacity:0})))]),fadeInItems:Ei("fadeInItems",[Bn("showing",gt({opacity:1})),zn("void => *",[gt({opacity:0}),Tn("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ree=new Ee("MatMenuContent"),Kse=function(){var e=function(){function a(t,n,l,c,h,_,C){F(this,a),this._template=t,this._componentFactoryResolver=n,this._appRef=l,this._injector=c,this._viewContainerRef=h,this._document=_,this._changeDetectorRef=C,this._attached=new qe}return W(a,[{key:"attach",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new Ps(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new tE(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var l=this._template.elementRef.nativeElement;l.parentNode.insertBefore(this._outlet.outletElement,l),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,n),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Xn),N(Ki),N(lc),N(kn),N($n),N(lt),N(Vt))},e.\u0275dir=ve({type:e,selectors:[["ng-template","matMenuContent",""]],features:[Xe([{provide:Ree,useExisting:e}])]}),e}(),uX=new Ee("MAT_MENU_PANEL"),$se=El(ia(function(){return function e(){F(this,e)}}())),PP=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C){var k;return F(this,n),(k=t.call(this))._elementRef=l,k._focusMonitor=h,k._parentMenu=_,k._changeDetectorRef=C,k.role="menuitem",k._hovered=new qe,k._focused=new qe,k._highlighted=!1,k._triggersSubmenu=!1,_&&_.addItem&&_.addItem(It(k)),k}return W(n,[{key:"focus",value:function(c,h){this._focusMonitor&&c?this._focusMonitor.focusVia(this._getHostElement(),c,h):this._getHostElement().focus(h),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(c){this.disabled&&(c.preventDefault(),c.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var c,h,_=this._elementRef.nativeElement.cloneNode(!0),C=_.querySelectorAll("mat-icon, .material-icons"),k=0;k0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(or(1)).subscribe(function(){return n._focusFirstItem(l)}):this._focusFirstItem(l)}},{key:"_focusFirstItem",value:function(n){var l=this._keyManager;if(l.setFocusOrigin(n).setFirstItemActive(),!l.activeItem&&this._directDescendantItems.length)for(var c=this._directDescendantItems.first._getHostElement().parentElement;c;){if("menu"===c.getAttribute("role")){c.focus();break}c=c.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(n){var l=this,c=Math.min(this._baseElevation+n,24),h="".concat(this._elevationPrefix).concat(c),_=Object.keys(this._classList).find(function(C){return C.startsWith(l._elevationPrefix)});(!_||_===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[h]=!0,this._previousElevation=h)}},{key:"setPositionClasses",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,c=this._classList;c["mat-menu-before"]="before"===n,c["mat-menu-after"]="after"===n,c["mat-menu-above"]="above"===l,c["mat-menu-below"]="below"===l}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(n){this._animationDone.next(n),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(n){this._isAnimating=!0,"enter"===n.toState&&0===this._keyManager.activeItemIndex&&(n.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var n=this;this._allItems.changes.pipe($r(this._allItems)).subscribe(function(l){n._directDescendantItems.reset(l.filter(function(c){return c._parentMenu===n})),n._directDescendantItems.notifyOnChanges()})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(Lee))},e.\u0275dir=ve({type:e,contentQueries:function(t,n,l){var c;1&t&&(Zt(l,Ree,5),Zt(l,PP,5),Zt(l,PP,4)),2&t&&(Ne(c=Le())&&(n.lazyContent=c.first),Ne(c=Le())&&(n._allItems=c),Ne(c=Le())&&(n.items=c))},viewQuery:function(t,n){var l;1&t&&wt(Xn,5),2&t&&Ne(l=Le())&&(n.templateRef=l.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),Fee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _;return F(this,n),(_=t.call(this,l,c,h))._elevationPrefix="mat-elevation-z",_._baseElevation=4,_}return n}(OP);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(Lee))},e.\u0275cmp=ke({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,n){2&t&&Ke("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Xe([{provide:uX,useExisting:e}]),Pe],ngContentSelectors:Iee,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,n){1&t&&(rr(),re(0,Zse,3,6,"ng-template"))},directives:[Ts],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[sH.transformMenu,sH.fadeInItems]},changeDetection:0}),e}(),Nee=new Ee("mat-menu-scroll-strategy"),Vee={provide:Nee,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Hee=tp({passive:!0}),zee=function(){var e=function(){function a(t,n,l,c,h,_,C,k){var D=this;F(this,a),this._overlay=t,this._element=n,this._viewContainerRef=l,this._menuItemInstance=_,this._dir=C,this._focusMonitor=k,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Be.EMPTY,this._hoverSubscription=Be.EMPTY,this._menuCloseSubscription=Be.EMPTY,this._handleTouchStart=function(I){AE(I)||(D._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new ye,this.onMenuOpen=this.menuOpened,this.menuClosed=new ye,this.onMenuClose=this.menuClosed,this._scrollStrategy=c,this._parentMaterialMenu=h instanceof OP?h:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,Hee),_&&(_._triggersSubmenu=this.triggersSubmenu())}return W(a,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(n){this.menu=n}},{key:"menu",get:function(){return this._menu},set:function(n){var l=this;n!==this._menu&&(this._menu=n,this._menuCloseSubscription.unsubscribe(),n&&(this._menuCloseSubscription=n.close.subscribe(function(c){l._destroyMenu(c),("click"===c||"tab"===c)&&l._parentMaterialMenu&&l._parentMaterialMenu.closed.emit(c)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Hee),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var n=this;if(!this._menuOpen){this._checkMenu();var l=this._createOverlay(),c=l.getConfig();this._setPosition(c.positionStrategy),c.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,l.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return n.closeMenu()}),this._initMenu(),this.menu instanceof OP&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(n,l){this._focusMonitor&&n?this._focusMonitor.focusVia(this._element,n,l):this._element.nativeElement.focus(l)}},{key:"updatePosition",value:function(){var n;null===(n=this._overlayRef)||void 0===n||n.updatePosition()}},{key:"_destroyMenu",value:function(n){var l=this;if(this._overlayRef&&this.menuOpen){var c=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===n||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,c instanceof OP?(c._resetAnimation(),c.lazyContent?c._animationDone.pipe(vr(function(h){return"void"===h.toState}),or(1),Ht(c.lazyContent._attached)).subscribe({next:function(){return c.lazyContent.detach()},complete:function(){return l._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),c.lazyContent&&c.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var n=0,l=this.menu.parentMenu;l;)n++,l=l.parentMenu;this.menu.setElevation(n)}}},{key:"_setIsMenuOpen",value:function(n){this._menuOpen=n,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(n)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var n=this._getOverlayConfig();this._subscribeToPositions(n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new up({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(n){var l=this;this.menu.setPositionClasses&&n.positionChanges.subscribe(function(c){l.menu.setPositionClasses("start"===c.connectionPair.overlayX?"after":"before","top"===c.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(n){var c=cr("before"===this.menu.xPosition?["end","start"]:["start","end"],2),h=c[0],_=c[1],k=cr("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),D=k[0],I=k[1],L=D,G=I,Y=h,Q=_,ie=0;this.triggersSubmenu()?(Q=h="before"===this.menu.xPosition?"start":"end",_=Y="end"===h?"start":"end",ie="bottom"===D?8:-8):this.menu.overlapTrigger||(L="top"===D?"bottom":"top",G="top"===I?"bottom":"top"),n.withPositions([{originX:h,originY:L,overlayX:Y,overlayY:D,offsetY:ie},{originX:_,originY:L,overlayX:Q,overlayY:D,offsetY:ie},{originX:h,originY:G,overlayX:Y,overlayY:I,offsetY:-ie},{originX:_,originY:G,overlayX:Q,overlayY:I,offsetY:-ie}])}},{key:"_menuClosingActions",value:function(){var n=this,l=this._overlayRef.backdropClick(),c=this._overlayRef.detachments();return ot(l,this._parentMaterialMenu?this._parentMaterialMenu.closed:ut(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(vr(function(C){return C!==n._menuItemInstance}),vr(function(){return n._menuOpen})):ut(),c)}},{key:"_handleMousedown",value:function(n){ab(n)||(this._openedBy=0===n.button?"mouse":void 0,this.triggersSubmenu()&&n.preventDefault())}},{key:"_handleKeydown",value:function(n){var l=n.keyCode;(13===l||32===l)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===l&&"ltr"===this.dir||37===l&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(n){this.triggersSubmenu()?(n.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var n=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(vr(function(l){return l===n._menuItemInstance&&!l.disabled}),oH(0,BA)).subscribe(function(){n._openedBy="mouse",n.menu instanceof OP&&n.menu._isAnimating?n.menu._animationDone.pipe(or(1),oH(0,BA),Ht(n._parentMaterialMenu._hovered())).subscribe(function(){return n.openMenu()}):n.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Ps(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(Ue),N($n),N(Nee),N(uX,8),N(PP,10),N(Mr,8),N(ra))},e.\u0275dir=ve({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,n){1&t&&ne("mousedown",function(c){return n._handleMousedown(c)})("keydown",function(c){return n._handleKeydown(c)})("click",function(c){return n._handleClick(c)}),2&t&&Ke("aria-expanded",n.menuOpen||null)("aria-controls",n.menuOpen?n.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),Uee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Vee],imports:[$t]}),e}(),tle=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Vee],imports:[[Wa,$t,Da,fp,Uee],lp,$t,Uee]}),e}(),nle=function(){var e=function(){function a(){F(this,a),this._vertical=!1,this._inset=!1}return W(a,[{key:"vertical",get:function(){return this._vertical},set:function(n){this._vertical=it(n)}},{key:"inset",get:function(){return this._inset},set:function(n){this._inset=it(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,n){2&t&&(Ke("aria-orientation",n.vertical?"vertical":"horizontal"),dt("mat-divider-vertical",n.vertical)("mat-divider-horizontal",!n.vertical)("mat-divider-inset",n.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,n){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),e}(),rle=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t],$t]}),e}(),ile=function(){function e(){}return e.prototype.transform=function(a,t){return a.sort(void 0===t?function(l,c){return l>c?1:-1}:function(l,c){return l[t]>c[t]?1:-1})},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Gi({name:"sort",type:e,pure:!0}),e}(),ale=["trigger"];function ole(e,a){1&e&&me(0,"img",36),2&e&&z("src",J().icon,Gt)}function sle(e,a){if(1&e){var t=De();A(0,"button",46),ne("click",function(){var _=pe(t).$implicit,C=J(5);return C.newAction.emit({param:_,table:C})}),E()}if(2&e){var n=a.$implicit,l=J(5);z("innerHTML",l.api.safeString(l.api.gui.icon(n.icon)+n.name),Si)}}function lle(e,a){if(1&e&&(vt(0),A(1,"button",42),K(2),E(),A(3,"mat-menu",43,44),re(5,sle,1,1,"button",45),Uf(6,"sort"),E(),xn()),2&e){var t=a.$implicit,n=Pn(4);H(1),z("matMenuTriggerFor",n),H(1),On(t.key),H(1),z("overlapTrigger",!1),H(2),z("ngForOf",iw(6,4,t.value,"name"))}}function ule(e,a){if(1&e&&(vt(0),A(1,"mat-menu",37,38),re(3,lle,7,7,"ng-container",39),Uf(4,"keyvalue"),E(),A(5,"a",40),A(6,"i",17),K(7,"insert_drive_file"),E(),A(8,"span",41),A(9,"uds-translate"),K(10,"New"),E(),E(),A(11,"i",17),K(12,"arrow_drop_down"),E(),E(),xn()),2&e){var t=Pn(2),n=J(3);H(1),z("overlapTrigger",!1),H(2),z("ngForOf",Gf(4,3,n.grpTypes)),H(2),z("matMenuTriggerFor",t)}}function cle(e,a){if(1&e){var t=De();A(0,"button",46),ne("click",function(){var _=pe(t).$implicit,C=J(4);return C.newAction.emit({param:_,table:C})}),E()}if(2&e){var n=a.$implicit,l=J(4);z("innerHTML",l.api.safeString(l.api.gui.icon(n.icon)+n.name),Si)}}function fle(e,a){if(1&e&&(vt(0),A(1,"mat-menu",37,38),re(3,cle,1,1,"button",45),Uf(4,"sort"),E(),A(5,"a",40),A(6,"i",17),K(7,"insert_drive_file"),E(),A(8,"span",41),A(9,"uds-translate"),K(10,"New"),E(),E(),A(11,"i",17),K(12,"arrow_drop_down"),E(),E(),xn()),2&e){var t=Pn(2),n=J(3);H(1),z("overlapTrigger",!1),H(2),z("ngForOf",iw(4,3,n.oTypes,"name")),H(2),z("matMenuTriggerFor",t)}}function dle(e,a){if(1&e&&(vt(0),re(1,ule,13,5,"ng-container",8),re(2,fle,13,6,"ng-container",8),xn()),2&e){var t=J(2);H(1),z("ngIf",t.newGrouped),H(1),z("ngIf",!t.newGrouped)}}function hle(e,a){if(1&e){var t=De();vt(0),A(1,"a",47),ne("click",function(){pe(t);var l=J(2);return l.newAction.emit({param:void 0,table:l})}),A(2,"i",17),K(3,"insert_drive_file"),E(),A(4,"span",41),A(5,"uds-translate"),K(6,"New"),E(),E(),E(),xn()}}function ple(e,a){if(1&e&&(vt(0),re(1,dle,3,2,"ng-container",8),re(2,hle,7,0,"ng-container",8),xn()),2&e){var t=J();H(1),z("ngIf",void 0!==t.oTypes&&0!==t.oTypes.length),H(1),z("ngIf",void 0!==t.oTypes&&0===t.oTypes.length)}}function vle(e,a){if(1&e){var t=De();vt(0),A(1,"a",48),ne("click",function(){pe(t);var c=J();return c.emitIfSelection(c.editAction)}),A(2,"i",17),K(3,"edit"),E(),A(4,"span",41),A(5,"uds-translate"),K(6,"Edit"),E(),E(),E(),xn()}if(2&e){var n=J();H(1),z("disabled",1!==n.selection.selected.length)}}function gle(e,a){if(1&e){var t=De();vt(0),A(1,"a",48),ne("click",function(){return pe(t),J().permissions()}),A(2,"i",17),K(3,"perm_identity"),E(),A(4,"span",41),A(5,"uds-translate"),K(6,"Permissions"),E(),E(),E(),xn()}if(2&e){var n=J();H(1),z("disabled",1!==n.selection.selected.length)}}function mle(e,a){if(1&e){var t=De();A(0,"a",50),ne("click",function(){var _=pe(t).$implicit;return J(2).emitCustom(_)}),E()}if(2&e){var n=a.$implicit;z("disabled",J(2).isCustomDisabled(n))("innerHTML",n.html,Si)}}function _le(e,a){if(1&e&&(vt(0),re(1,mle,1,2,"a",49),xn()),2&e){var t=J();H(1),z("ngForOf",t.getcustomButtons())}}function yle(e,a){if(1&e){var t=De();vt(0),A(1,"a",51),ne("click",function(){return pe(t),J().export()}),A(2,"i",17),K(3,"import_export"),E(),A(4,"span",41),A(5,"uds-translate"),K(6,"Export"),E(),E(),E(),xn()}}function ble(e,a){if(1&e){var t=De();vt(0),A(1,"a",52),ne("click",function(){pe(t);var c=J();return c.emitIfSelection(c.deleteAction,!0)}),A(2,"i",17),K(3,"delete_forever"),E(),A(4,"span",41),A(5,"uds-translate"),K(6,"Delete"),E(),E(),E(),xn()}if(2&e){var n=J();H(1),z("disabled",n.selection.isEmpty())}}function Cle(e,a){if(1&e){var t=De();A(0,"button",53),ne("click",function(){pe(t);var l=J();return l.filterText="",l.applyFilter()}),A(1,"i",17),K(2,"close"),E(),E()}}function wle(e,a){1&e&&me(0,"mat-header-cell")}function Sle(e,a){1&e&&(A(0,"i",17),K(1,"check_box"),E())}function kle(e,a){1&e&&(A(0,"i",17),K(1,"check_box_outline_blank"),E())}function Mle(e,a){if(1&e){var t=De();A(0,"mat-cell",56),ne("click",function(_){var k=pe(t).$implicit;return J(2).clickRow(k,_)}),re(1,Sle,2,0,"i",57),re(2,kle,2,0,"ng-template",null,58,ml),E()}if(2&e){var n=a.$implicit,l=Pn(3),c=J(2);H(1),z("ngIf",c.selection.isSelected(n))("ngIfElse",l)}}function xle(e,a){1&e&&(vt(0,54),re(1,wle,1,0,"mat-header-cell",22),re(2,Mle,4,2,"mat-cell",55),xn())}function Tle(e,a){1&e&&me(0,"mat-header-cell")}function Dle(e,a){if(1&e){var t=De();A(0,"mat-cell"),A(1,"div",59),ne("click",function(l){var h=pe(t).$implicit,_=J();return _.detailAction.emit({param:h,table:_}),l.stopPropagation()}),A(2,"i",17),K(3,"subdirectory_arrow_right"),E(),E(),E()}}function Ale(e,a){if(1&e&&(A(0,"mat-header-cell",63),K(1),E()),2&e){var t=J().$implicit;H(1),On(t.title)}}function Ele(e,a){if(1&e){var t=De();A(0,"mat-cell",64),ne("click",function(_){var k=pe(t).$implicit;return J(2).clickRow(k,_)})("contextmenu",function(_){var k=pe(t).$implicit,D=J().$implicit;return J().onContextMenu(k,D,_)}),me(1,"div",65),E()}if(2&e){var n=a.$implicit,l=J().$implicit,c=J();H(1),z("innerHtml",c.getRowColumn(n,l),Si)}}function Ple(e,a){1&e&&(vt(0,60),re(1,Ale,2,1,"mat-header-cell",61),re(2,Ele,2,1,"mat-cell",62),xn()),2&e&&il("matColumnDef",a.$implicit.name)}function Ole(e,a){1&e&&me(0,"mat-header-row")}function Ile(e,a){if(1&e&&me(0,"mat-row",66),2&e){var t=a.$implicit;z("ngClass",J().rowClass(t))}}function Rle(e,a){if(1&e&&(A(0,"div",67),K(1),A(2,"uds-translate"),K(3,"Selected items"),E(),E()),2&e){var t=J();H(1),Ve(" ",t.selection.selected.length," ")}}function Lle(e,a){if(1&e){var t=De();A(0,"button",71),ne("click",function(){return pe(t),J(2).copyToClipboard()}),A(1,"i",72),K(2,"content_copy"),E(),A(3,"uds-translate"),K(4,"Copy"),E(),E()}}function Fle(e,a){if(1&e){var t=De();A(0,"button",71),ne("click",function(){pe(t);var l=J().item,c=J();return c.detailAction.emit({param:l,table:c})}),A(1,"i",72),K(2,"subdirectory_arrow_right"),E(),A(3,"uds-translate"),K(4,"Detail"),E(),E()}}function Nle(e,a){if(1&e){var t=De();A(0,"button",71),ne("click",function(){pe(t);var l=J(2);return l.emitIfSelection(l.editAction)}),A(1,"i",72),K(2,"edit"),E(),A(3,"uds-translate"),K(4,"Edit"),E(),E()}}function Vle(e,a){if(1&e){var t=De();A(0,"button",71),ne("click",function(){return pe(t),J(2).permissions()}),A(1,"i",72),K(2,"perm_identity"),E(),A(3,"uds-translate"),K(4,"Permissions"),E(),E()}}function Ble(e,a){if(1&e){var t=De();A(0,"button",73),ne("click",function(){var _=pe(t).$implicit;return J(2).emitCustom(_)}),E()}if(2&e){var n=a.$implicit;z("disabled",J(2).isCustomDisabled(n))("innerHTML",n.html,Si)}}function Hle(e,a){if(1&e){var t=De();A(0,"button",74),ne("click",function(){pe(t);var l=J(2);return l.emitIfSelection(l.deleteAction)}),A(1,"i",72),K(2,"delete_forever"),E(),A(3,"uds-translate"),K(4,"Delete"),E(),E()}}function zle(e,a){if(1&e){var t=De();A(0,"button",73),ne("click",function(){var _=pe(t).$implicit;return J(3).emitCustom(_)}),E()}if(2&e){var n=a.$implicit;z("disabled",J(3).isCustomDisabled(n))("innerHTML",n.html,Si)}}function Ule(e,a){if(1&e&&(vt(0),me(1,"mat-divider"),re(2,zle,1,2,"button",69),xn()),2&e){var t=J(2);H(2),z("ngForOf",t.getCustomAccelerators())}}function Gle(e,a){if(1&e&&(re(0,Lle,5,0,"button",68),re(1,Fle,5,0,"button",68),re(2,Nle,5,0,"button",68),re(3,Vle,5,0,"button",68),re(4,Ble,1,2,"button",69),re(5,Hle,5,0,"button",70),re(6,Ule,3,1,"ng-container",8)),2&e){var t=J();z("ngIf",!0===t.allowCopy),H(1),z("ngIf",t.detailAction.observers.length>0),H(1),z("ngIf",t.editAction.observers.length>0),H(1),z("ngIf",!0===t.hasPermissions),H(1),z("ngForOf",t.getCustomMenu()),H(1),z("ngIf",t.deleteAction.observers.length>0),H(1),z("ngIf",t.hasAccelerators)}}var jle=function(){return[5,10,25,100,1e3]},Yr=function(){function e(a,t){this.api=a,this.clipboard=t,this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.loaded=new ye,this.rowSelected=new ye,this.newAction=new ye,this.editAction=new ye,this.deleteAction=new ye,this.customButtonAction=new ye,this.detailAction=new ye,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.rowStyleInfo=null,this.dataSource=new bee([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.contextMenuPosition={x:"0px",y:"0px"},this.filterText=""}return e.prototype.ngOnInit=function(){var a=this;this.hasCustomButtons=void 0!==this.customButtons&&0!==this.customButtons.length&&0!==this.customButtonAction.observers.length&&this.getcustomButtons().length>0,this.hasAccelerators=this.getCustomAccelerators().length>0,this.hasButtons=this.hasCustomButtons||0!==this.detailAction.observers.length||0!==this.editAction.observers.length||this.hasPermissions||0!==this.deleteAction.observers.length,this.hasActions=this.hasButtons||void 0!==this.customButtons&&this.customButtons.length>0,this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=function(n,l){if(!(l in n))return"";var c=n[l];return"number"==typeof c?c:"string"==typeof c?c.toLocaleLowerCase():(null===c&&(c=7226578800),c.changingThisBreaksApplicationSecurity&&(c=c.changingThisBreaksApplicationSecurity),(""+c).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=function(n,l){try{a.columns.forEach(function(c){if((""+n[c.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(l))throw Error()})}catch(c){return!0}return!1},this.dataSource.sort.active=this.api.getFromStorage(this.tableId+"sort-column")||"name",this.dataSource.sort.direction=this.api.getFromStorage(this.tableId+"sort-direction")||"asc",this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.selection=new ip(!0===this.multiSelect,[]);var t=this.rest.permision();0==(t&QS.MANAGEMENT)&&(this.newAction.observers.length=0,this.editAction.observers.length=0,this.deleteAction.observers.length=0,this.customButtonAction.observers.length=0),t!==QS.ALL&&(this.hasPermissions=!1),void 0!==this.icon&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png")),this.rest.types().subscribe(function(n){a.rest.tableInfo().subscribe(function(l){a.initialize(l,n)})})},e.prototype.initialize=function(a,t){var n=this;this.oTypes=t,this.types=new Map,this.grpTypes=new Map,t.forEach(function(c){n.types.set(c.type,c),void 0!==c.group&&(n.grpTypes.has(c.group)||n.grpTypes.set(c.group,[]),n.grpTypes.get(c.group).push(c))}),this.rowStyleInfo=void 0!==a["row-style"]&&void 0!==a["row-style"].field?a["row-style"]:null,this.title=a.title,this.subtitle=a.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");var l=[];a.fields.forEach(function(c){for(var h in c)if(c.hasOwnProperty(h)){var _=c[h];l.push({name:h,title:_.title,type:void 0===_.type?Aa.ALPHANUMERIC:_.type,dict:_.dict}),(void 0===_.visible||_.visible)&&n.displayedColumns.push(h)}}),this.columns=l,this.detailAction.observers.length>0&&this.displayedColumns.push("detail-column"),this.overview()},e.prototype.overview=function(){var a=this;this.loading||(this.selection.clear(),this.dataSource.data=[],this.loading=!0,this.rest.overview().subscribe(function(t){a.loading=!1,void 0!==a.onItem&&t.forEach(function(n){a.onItem(n)}),a.dataSource.data=t,a.loaded.emit({param:a.firstLoad,table:a}),a.firstLoad=!1},function(t){a.loading=!1}))},e.prototype.getcustomButtons=function(){return this.customButtons?this.customButtons.filter(function(a){return a.type!==Jr.ONLY_MENU&&a.type!==Jr.ACCELERATOR}):[]},e.prototype.getCustomMenu=function(){return this.customButtons?this.customButtons.filter(function(a){return a.type!==Jr.ACCELERATOR}):[]},e.prototype.getCustomAccelerators=function(){return this.customButtons?this.customButtons.filter(function(a){return a.type===Jr.ACCELERATOR}):[]},e.prototype.getRowColumn=function(a,t){var n=a[t.name];switch(t.type){case Aa.IMAGE:return this.api.safeString(this.api.gui.icon(n,"48px"));case Aa.DATE:n=Lu("SHORT_DATE_FORMAT",n);break;case Aa.DATETIME:n=Lu("SHORT_DATETIME_FORMAT",n);break;case Aa.TIME:n=Lu("TIME_FORMAT",n);break;case Aa.DATETIMESEC:n=Lu("SHORT_DATE_FORMAT",n," H:i:s");break;case Aa.ICON:try{n=this.api.gui.icon(this.types.get(a.type).icon)+n}catch(l){}return this.api.safeString(n);case Aa.CALLBACK:break;case Aa.DICTIONARY:try{n=t.dict[n]}catch(l){n=""}}return n},e.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},e.prototype.sortChanged=function(a){this.api.putOnStorage(this.tableId+"sort-column",a.active),this.api.putOnStorage(this.tableId+"sort-direction",a.direction)},e.prototype.copyToClipboard=function(){this.clipboard.copy(this.clipValue||"")},e.prototype.rowClass=function(a){var t=[];return this.selection.isSelected(a)&&t.push("selected"),null!==this.rowStyleInfo&&t.push(this.rowStyleInfo.prefix+a[this.rowStyleInfo.field]),t},e.prototype.emitIfSelection=function(a,t){void 0===t&&(t=!1);var n=this.selection.selected.length;n>0&&(!0===t||1===n)&&a.emit({table:this,param:n})},e.prototype.isCustomDisabled=function(a){switch(a.type){case void 0:case Jr.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===a.disabled;case Jr.MULTI_SELECT:return this.selection.isEmpty()||!0===a.disabled;default:return!1}},e.prototype.emitCustom=function(a){!this.selection.selected.length&&a.type!==Jr.ALWAYS||(a.type===Jr.ACCELERATOR?this.api.navigation.goto(a.id,this.selection.selected[0],a.acceleratorProperties):this.customButtonAction.emit({param:a,table:this}))},e.prototype.clickRow=function(a,t){var n=(new Date).getTime();if((this.detailAction.observers.length||this.editAction.observers.length)&&Math.abs(this.lastClickInfo.x-t.x)<16&&Math.abs(this.lastClickInfo.y-t.y)<16&&n-this.lastClickInfo.time<250)return this.selection.clear(),this.selection.select(a),void(this.detailAction.observers.length?this.detailAction.emit({param:a,table:this}):this.emitIfSelection(this.editAction,!1));this.lastClickInfo={time:n,x:t.x,y:t.y},this.doSelect(a,t)},e.prototype.doSelect=function(a,t){if(t.ctrlKey)this.lastSel=a,this.selection.toggle(a);else if(t.shiftKey){if(this.selection.isEmpty())this.selection.toggle(a);else if(this.selection.clear(),this.lastSel!==a)for(var n=!1,c=0,h=this.dataSource.sortData(this.dataSource.data,this.dataSource.sort);c/,"")),this.clipValue=""+l,this.hasActions&&(this.selection.clear(),this.selection.select(a),this.contextMenuPosition.x=n.clientX+"px",this.contextMenuPosition.y=n.clientY+"px",this.contextMenu.menuData={item:a},this.contextMenu.openMenu())},e.prototype.selectElement=function(a,t){var n=this;this.dataSource.sortData(this.dataSource.data,this.dataSource.sort).forEach(function(c,h){if(c[a]===t){var _=Math.floor(h/n.paginator.pageSize);n.selection.select(c),n.paginator.pageIndex=_,n.paginator.page.next({pageIndex:_,pageSize:n.paginator.pageSize,length:n.paginator.length})}})},e.prototype.export=function(){Dee(this)},e.prototype.permissions=function(){!this.selection.selected.length||Ose.launch(this.api,this.rest,this.selection.selected[0])},e.prototype.keyDown=function(a){switch(a.keyCode){case 36:this.paginator.firstPage(),a.preventDefault();break;case 35:this.paginator.lastPage(),a.preventDefault();break;case 39:this.paginator.nextPage(),a.preventDefault();break;case 37:this.paginator.previousPage(),a.preventDefault()}},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(Aee))},e.\u0275cmp=ke({type:e,selectors:[["uds-table"]],viewQuery:function(t,n){if(1&t&&(wt(ale,7),wt(j5,7),wt(DP,7)),2&t){var l=void 0;Ne(l=Le())&&(n.contextMenu=l.first),Ne(l=Le())&&(n.paginator=l.first),Ne(l=Le())&&(n.sort=l.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},decls:50,vars:28,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src",4,"ngIf"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],[4,"ngIf"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],[1,"material-icons"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],["matColumnDef","selection-column",4,"ngIf"],["matColumnDef","detail-column"],[4,"matHeaderCellDef"],[4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],["class","selection",4,"ngIf"],[2,"position","fixed",3,"matMenuTriggerFor"],["trigger","matMenuTrigger"],["contextMenu","matMenu"],["matMenuContent",""],[3,"src"],[1,"wide-menu",3,"overlapTrigger"],["newMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"matMenuTriggerFor"],[1,"button-text"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["sub_menu","matMenu"],["mat-menu-item","",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"innerHTML","click"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-raised-button","",3,"disabled","innerHTML","click"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","warn",3,"disabled","click"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["matColumnDef","selection-column"],[3,"click",4,"matCellDef"],[3,"click"],["class","material-icons",4,"ngIf","ngIfElse"],["uncheck",""],[1,"detail-launcher",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"click","contextmenu",4,"matCellDef"],["mat-sort-header",""],[3,"click","contextmenu"],[3,"innerHtml"],[3,"ngClass"],[1,"selection"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","","class","menu-warn",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","spaced"],["mat-menu-item","",3,"disabled","innerHTML","click"],["mat-menu-item","",1,"menu-warn",3,"click"]],template:function(t,n){if(1&t&&(A(0,"div",0),A(1,"div",1),A(2,"div",2),re(3,ole,1,1,"img",3),K(4),E(),A(5,"div",4),K(6),E(),E(),A(7,"div",5),A(8,"div",6),A(9,"div",7),re(10,ple,3,2,"ng-container",8),re(11,vle,7,1,"ng-container",8),re(12,gle,7,1,"ng-container",8),re(13,_le,2,1,"ng-container",8),re(14,yle,7,0,"ng-container",8),re(15,ble,7,1,"ng-container",8),E(),A(16,"div",9),A(17,"div",10),A(18,"uds-translate"),K(19,"Filter"),E(),K(20,"\xa0 "),A(21,"mat-form-field"),A(22,"input",11),ne("keyup",function(){return n.applyFilter()})("ngModelChange",function(h){return n.filterText=h}),E(),re(23,Cle,3,0,"button",12),E(),E(),A(24,"div",13),me(25,"mat-paginator",14),E(),A(26,"div",15),A(27,"a",16),ne("click",function(){return n.overview()}),A(28,"i",17),K(29,"autorenew"),E(),E(),E(),E(),E(),A(30,"div",18),ne("keydown",function(h){return n.keyDown(h)}),A(31,"mat-table",19),ne("matSortChange",function(h){return n.sortChanged(h)}),re(32,xle,3,0,"ng-container",20),vt(33,21),re(34,Tle,1,0,"mat-header-cell",22),re(35,Dle,4,0,"mat-cell",23),xn(),re(36,Ple,3,1,"ng-container",24),re(37,Ole,1,0,"mat-header-row",25),re(38,Ile,1,1,"mat-row",26),E(),A(39,"div",27),A(40,"div",28),me(41,"mat-progress-spinner",29),E(),E(),E(),A(42,"div",30),K(43," \xa0 "),re(44,Rle,4,1,"div",31),E(),E(),me(45,"div",32,33),A(47,"mat-menu",null,34),re(49,Gle,7,7,"ng-template",35),E(),E()),2&t){var l=Pn(48);H(3),z("ngIf",void 0!==n.icon),H(1),Ve(" ",n.title," "),H(2),Ve(" ",n.subtitle," "),H(4),z("ngIf",n.newAction.observers.length>0),H(1),z("ngIf",n.editAction.observers.length>0),H(1),z("ngIf",!0===n.hasPermissions),H(1),z("ngIf",n.hasCustomButtons),H(1),z("ngIf",!0===n.allowExport),H(1),z("ngIf",n.deleteAction.observers.length>0),H(7),z("ngModel",n.filterText),H(1),z("ngIf",n.filterText),H(2),z("pageSize",n.pageSize)("hidePageSize",!0)("pageSizeOptions",rw(27,jle))("showFirstLastButtons",!0),H(6),z("dataSource",n.dataSource),H(1),z("ngIf",n.hasButtons),H(4),z("ngForOf",n.columns),H(1),z("matHeaderRowDef",n.displayedColumns),H(1),z("matRowDefColumns",n.displayedColumns),H(1),z("hidden",!n.loading),H(5),z("ngIf",n.hasButtons&&n.selection.selected.length>0),H(1),Ur("left",n.contextMenuPosition.x)("top",n.contextMenuPosition.y),z("matMenuTriggerFor",l)}},directives:[Kt,Hn,_r,Hi,g,Mt,mr,j5,mp,nX,DP,rH,nH,tH,er,rX,iX,Oee,zee,Fee,Kse,PP,Rn,rk,iH,aH,pee,aX,oX,Ts,nle],pipes:[ID,ile],styles:['.mat-badge-content[_ngcontent-%COMP%]{font-weight:600;font-size:12px;font-family:Roboto,"Helvetica Neue",sans-serif}.mat-badge-small[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:9px}.mat-badge-large[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:24px}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2[_ngcontent-%COMP%], .mat-title[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3[_ngcontent-%COMP%], .mat-subheading-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:400 16px / 28px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4[_ngcontent-%COMP%], .mat-subheading-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font:400 15px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 calc(14px * .83) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 calc(14px * .67) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-body-strong[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-small[_ngcontent-%COMP%], .mat-caption[_ngcontent-%COMP%]{font:400 12px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-display-4[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-4[_ngcontent-%COMP%]{font:300 112px / 112px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-3[_ngcontent-%COMP%]{font:400 56px / 56px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-2[_ngcontent-%COMP%]{font:400 45px / 48px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-1[_ngcontent-%COMP%]{font:400 34px / 40px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-mini-fab[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-button-toggle[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500}.mat-card-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{font-size:20px}.mat-card-subtitle[_ngcontent-%COMP%], .mat-card-content[_ngcontent-%COMP%]{font-size:14px}.mat-checkbox[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-checkbox-layout[_ngcontent-%COMP%] .mat-checkbox-label[_ngcontent-%COMP%]{line-height:24px}.mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-chip[_ngcontent-%COMP%] .mat-chip-trailing-icon.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-remove.mat-icon[_ngcontent-%COMP%]{font-size:18px}.mat-table[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-header-cell[_ngcontent-%COMP%]{font-size:12px;font-weight:500}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:14px}.mat-calendar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-calendar-body[_ngcontent-%COMP%]{font-size:13px}.mat-calendar-body-label[_ngcontent-%COMP%], .mat-calendar-period-button[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-calendar-table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:11px;font-weight:400}.mat-dialog-title[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-expansion-panel-header[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field[_ngcontent-%COMP%]{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.34375em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:150%;line-height:1.125}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{height:1.5em;width:1.5em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:1.125em;line-height:1.125}.mat-form-field-infix[_ngcontent-%COMP%]{padding:.5em 0;border-top:.84375em solid transparent}.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper[_ngcontent-%COMP%]{top:-.84375em;padding-top:.84375em}.mat-form-field-label[_ngcontent-%COMP%]{top:1.34375em}.mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.34375em}.mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.7916666667em)}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);-ms-transform:translateY(-1.28125em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);-ms-transform:translateY(-1.28124em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);-ms-transform:translateY(-1.28123em) scale(.75);width:133.3333533333%}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.28125em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{margin-top:.5416666667em;top:calc(100% - 1.6666666667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.25em 0 .75em}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:1em 0}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}input.mat-input-element[_ngcontent-%COMP%]{margin-top:-.0625em}.mat-menu-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:400}.mat-paginator[_ngcontent-%COMP%], .mat-paginator-page-size[_ngcontent-%COMP%] .mat-select-trigger[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px}.mat-radio-button[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select-trigger[_ngcontent-%COMP%]{height:1.125em}.mat-slide-toggle-content[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-step-label[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.mat-step-sub-label-error[_ngcontent-%COMP%]{font-weight:normal}.mat-step-label-error[_ngcontent-%COMP%]{font-size:14px}.mat-step-label-selected[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-tab-group[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-toolbar[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0}.mat-tooltip[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset[_ngcontent-%COMP%]{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:16px}.mat-optgroup-label[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-simple-snackbar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px}.mat-simple-snackbar-action[_ngcontent-%COMP%]{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tree-node[_ngcontent-%COMP%], .mat-nested-tree-node[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale(0)}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%], .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{-webkit-animation:cdk-text-field-autofill-start 0s 1ms;animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){-webkit-animation:cdk-text-field-autofill-end 0s 1ms;animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1em;margin-bottom:1em}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.4rem}.buttons[_ngcontent-%COMP%] .mat-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#fafafa;color:#000}button.mat-menu-item[_ngcontent-%COMP%]{height:32px;line-height:32px}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:flex-end}mat-cell[_ngcontent-%COMP%]:first-of-type, mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:.5rem}mat-row[_ngcontent-%COMP%]:hover{background-color:#a0b0d0;cursor:pointer}mat-table[_ngcontent-%COMP%]{width:100%;font-weight:300}.mat-column-detail-column[_ngcontent-%COMP%]{max-width:1.5rem;justify-content:center;color:#000!important;padding-right:.5rem}.detail-launcher[_ngcontent-%COMP%]{display:none}.mat-row[_ngcontent-%COMP%]:hover .detail-launcher[_ngcontent-%COMP%]{display:block}.mat-column-selection-column[_ngcontent-%COMP%]{max-width:2rem;justify-content:center;color:#000!important}.menu-warn[_ngcontent-%COMP%]{color:red}.menu-link[_ngcontent-%COMP%]{color:#00f}.loading[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center} .mat-menu-panel{min-height:48px} .mat-paginator-range-label{min-width:6em} .dark-theme .mat-paginator-container{background-color:#303030} .dark-theme .buttons .mat-raised-button:hover:not([disabled]){background-color:#303030;color:#fff} .dark-theme .mat-column-detail-column{color:#fff!important} .dark-theme .mat-column-selection-column{color:#fff!important} .dark-theme .menu-warn{color:red} .dark-theme .menu-link{color:#00f}']}),e}(),Gee='pause'+django.gettext("Maintenance")+"",Wle='pause'+django.gettext("Exit maintenance mode")+"",Yle='pause'+django.gettext("Enter maintenance mode")+"",jee=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.cButtons=[{id:"maintenance",html:Gee,type:Jr.SINGLE_SELECT}]}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New provider"),!0)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit provider"),!0)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete provider"))},e.prototype.onMaintenance=function(a){var t=this,n=a.table.selection.selected[0],l=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.yesno(django.gettext("Maintenance mode for")+" "+n.name,l).subscribe(function(c){c&&t.rest.providers.maintenance(n.id).subscribe(function(){a.table.overview()})})},e.prototype.onRowSelect=function(a){var t=a.table;this.customButtons[0].html=t.selection.selected.length>1||0===t.selection.selected.length?Gee:t.selection.selected[0].maintenance_mode?Wle:Yle},e.prototype.onDetail=function(a){this.api.navigation.gotoService(a.param.id)},e.prototype.processElement=function(a){a.maintenance_state=a.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-services"]],decls:1,vars:7,consts:[["tableId","service-providers","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("customButtonAction",function(c){return n.onMaintenance(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("rowSelected",function(c){return n.onRowSelect(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.providers)("onItem",n.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[".row-maintenance-true>mat-cell{color:orange!important} .mat-column-services_count, .mat-column-user_services_count, .mat-column-maintenance_state{max-width:7rem;justify-content:center}"]}),e}(),Mb=function(){function e(a,t,n,l){this.title=a,this.data=t,this.columns=n,this.id=l,this.columnsDefinition=Array.from(n,function(c){var h={};return h[c.field]={visible:!0,title:c.title,type:void 0===c.type?Aa.ALPHANUMERIC:c.type},h})}return e.prototype.get=function(a){return Ar},e.prototype.getLogs=function(a){return Ar},e.prototype.overview=function(a){return"function"==typeof this.data?this.data():ut([])},e.prototype.summary=function(a){return this.overview()},e.prototype.put=function(a,t){return Ar},e.prototype.create=function(a){return Ar},e.prototype.save=function(a,t){return Ar},e.prototype.test=function(a,t){return Ar},e.prototype.delete=function(a){return Ar},e.prototype.permision=function(){return QS.ALL},e.prototype.getPermissions=function(a){return Ar},e.prototype.addPermission=function(a,t,n,l){return Ar},e.prototype.revokePermission=function(a){return Ar},e.prototype.types=function(){return ut([])},e.prototype.gui=function(a){return Ar},e.prototype.callback=function(a,t){return Ar},e.prototype.tableInfo=function(){return ut({fields:this.columnsDefinition,title:this.title})},e.prototype.detail=function(a,t){return null},e.prototype.invoke=function(a,t){return Ar},e}();function qle(e,a){if(1&e){var t=De();A(0,"button",24),ne("click",function(){pe(t);var l=J();return l.filterText="",l.applyFilter()}),A(1,"i",8),K(2,"close"),E(),E()}}function Xle(e,a){if(1&e&&(A(0,"mat-header-cell",28),K(1),E()),2&e){var t=J().$implicit;H(1),On(t)}}function Zle(e,a){if(1&e&&(A(0,"mat-cell"),me(1,"div",29),E()),2&e){var t=a.$implicit,n=J().$implicit,l=J();H(1),z("innerHtml",l.getRowColumn(t,n),Si)}}function Kle(e,a){1&e&&(vt(0,25),re(1,Xle,2,1,"mat-header-cell",26),re(2,Zle,2,1,"mat-cell",27),xn()),2&e&&z("matColumnDef",a.$implicit)}function $le(e,a){1&e&&me(0,"mat-header-row")}function Qle(e,a){if(1&e&&me(0,"mat-row",30),2&e){var t=a.$implicit;z("ngClass",J().rowClass(t))}}var Jle=function(){return[5,10,25,100,1e3]},ck=function(){function e(a){this.api=a,this.pageSize=10,this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new bee([]),this.selection=new ip}return e.prototype.ngOnInit=function(){var a=this;this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sort.active=this.api.getFromStorage("logs-sort-column")||"date",this.dataSource.sort.direction=this.api.getFromStorage("logs-sort-direction")||"desc",this.displayedColumns.forEach(function(t){a.columns.push({name:t,title:t,type:"date"===t?Aa.DATETIMESEC:Aa.ALPHANUMERIC})}),this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()},e.prototype.overview=function(){var a=this;this.rest.getLogs(this.itemId).subscribe(function(t){a.dataSource.data=t})},e.prototype.selectElement=function(a,t){},e.prototype.getRowColumn=function(a,t){var n=a[t];return"date"===t?n=Lu("SHORT_DATE_FORMAT",n," H:i:s"):"level"===t&&(n=function(e){return{1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"}[e]||"OTHER"}(n)),n},e.prototype.rowClass=function(a){return["level-"+a.level]},e.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},e.prototype.sortChanged=function(a){this.api.putOnStorage("logs-sort-column",a.active),this.api.putOnStorage("logs-sort-direction",a.direction)},e.prototype.export=function(){Dee(this)},e.prototype.keyDown=function(a){switch(a.keyCode){case 36:this.paginator.firstPage(),a.preventDefault();break;case 35:this.paginator.lastPage(),a.preventDefault();break;case 39:this.paginator.nextPage(),a.preventDefault();break;case 37:this.paginator.previousPage(),a.preventDefault()}},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-logs-table"]],viewQuery:function(t,n){if(1&t&&(wt(j5,7),wt(DP,7)),2&t){var l=void 0;Ne(l=Le())&&(n.paginator=l.first),Ne(l=Le())&&(n.sort=l.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:36,vars:12,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"click"],[1,"material-icons"],[1,"button-text"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""],[3,"innerHtml"],[3,"ngClass"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"div",2),me(3,"img",3),K(4," \xa0"),A(5,"uds-translate"),K(6,"Logs"),E(),E(),E(),A(7,"div",4),A(8,"div",5),A(9,"div",6),A(10,"a",7),ne("click",function(){return n.export()}),A(11,"i",8),K(12,"import_export"),E(),A(13,"span",9),A(14,"uds-translate"),K(15,"Export"),E(),E(),E(),E(),A(16,"div",10),A(17,"div",11),A(18,"uds-translate"),K(19,"Filter"),E(),K(20,"\xa0 "),A(21,"mat-form-field"),A(22,"input",12),ne("keyup",function(){return n.applyFilter()})("ngModelChange",function(c){return n.filterText=c}),E(),re(23,qle,3,0,"button",13),E(),E(),A(24,"div",14),me(25,"mat-paginator",15),E(),A(26,"div",16),A(27,"a",17),ne("click",function(){return n.overview()}),A(28,"i",8),K(29,"autorenew"),E(),E(),E(),E(),E(),A(30,"div",18),ne("keydown",function(c){return n.keyDown(c)}),A(31,"mat-table",19),ne("matSortChange",function(c){return n.sortChanged(c)}),re(32,Kle,3,1,"ng-container",20),re(33,$le,1,0,"mat-header-row",21),re(34,Qle,1,1,"mat-row",22),E(),E(),me(35,"div",23),E(),E()),2&t&&(H(3),z("src",n.api.staticURL("admin/img/icons/logs.png"),Gt),H(19),z("ngModel",n.filterText),H(1),z("ngIf",n.filterText),H(2),z("pageSize",n.pageSize)("hidePageSize",!0)("pageSizeOptions",rw(11,Jle))("showFirstLastButtons",!0),H(6),z("dataSource",n.dataSource),H(1),z("ngForOf",n.displayedColumns),H(1),z("matHeaderRowDef",n.displayedColumns),H(1),z("matRowDefColumns",n.displayedColumns))},directives:[Hn,mp,_r,Hi,g,Mt,mr,Kt,j5,nX,DP,er,rX,iX,Rn,rk,rH,nH,tH,iH,pee,aH,aX,oX,Ts],styles:[".header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{max-width:160px}.mat-column-level[_ngcontent-%COMP%]{max-width:96px;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:128px} .level-60000>.mat-cell{color:#ff1e1e!important} .level-50000>.mat-cell{color:#ff1e1e!important} .level-40000>.mat-cell{color:#d65014!important}"]}),e}();function eue(e,a){1&e&&(A(0,"uds-translate"),K(1,"Services pools"),E())}function tue(e,a){1&e&&(A(0,"uds-translate"),K(1,"Logs"),E())}var nue=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],rue=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.customButtons=[Il.getGotoButton(Nq,"id")],this.services=l.services,this.service=l.service}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:n,services:t},disableClose:!1})},e.prototype.ngOnInit=function(){var a=this;this.servicePools=new Mb(django.gettext("Service pools"),function(){return a.services.invoke(a.service.id+"/servicesPools")},nue,this.service.id+"infopsls")},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-information"]],decls:17,vars:8,consts:[["mat-dialog-title",""],["mat-tab-label",""],[3,"rest","customButtons","pageSize"],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Information for"),E(),K(3),E(),A(4,"mat-dialog-content"),A(5,"mat-tab-group"),A(6,"mat-tab"),re(7,eue,2,0,"ng-template",1),me(8,"uds-table",2),E(),A(9,"mat-tab"),re(10,tue,2,0,"ng-template",1),A(11,"div",3),me(12,"uds-logs-table",4),E(),E(),E(),E(),A(13,"mat-dialog-actions"),A(14,"button",5),A(15,"uds-translate"),K(16,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.service.name,"\n"),H(5),z("rest",n.servicePools)("customButtons",n.customButtons)("pageSize",6),H(4),z("rest",n.services)("itemId",n.service.id)("tableId","serviceInfo-d-log"+n.service.id)("pageSize",5))},directives:[Wr,Hn,Fr,Nc,Ru,Fc,Yr,ck,Qr,Rn,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-column-count[_ngcontent-%COMP%], .mat-column-image[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{max-width:7rem;justify-content:center}.navigation[_ngcontent-%COMP%]{margin-top:1rem;display:flex;justify-content:flex-end;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}"]}),e}();function iue(e,a){if(1&e&&(A(0,"div",3),me(1,"div",4),me(2,"div",5),E()),2&e){var t=a.$implicit;H(1),z("innerHTML",t.gui.label,Si),H(1),z("innerHTML",t.value,Si)}}var lH=function(){function e(a){this.api=a,this.displayables=null}return e.prototype.ngOnInit=function(){this.processFields()},e.prototype.processFields=function(){var a=this;if(!this.gui||!this.value)return[];var t=this.gui.filter(function(n){return n.gui.type!==Pl.HIDDEN});t.forEach(function(n){var l=a.value[n.name];switch(n.gui.type){case Pl.CHECKBOX:n.value=l?django.gettext("Yes"):django.gettext("No");break;case Pl.PASSWORD:n.value=django.gettext("(hidden)");break;case Pl.CHOICE:var c=M5.locateChoice(l,n);n.value=c.text;break;case Pl.MULTI_CHOICE:n.value=django.gettext("Selected items :")+l.length;break;case Pl.IMAGECHOICE:c=M5.locateChoice(l,n),n.value=a.api.safeString(a.api.gui.icon(c.img)+" "+c.text);break;default:n.value=l}(""===n.value||null==n.value)&&(n.value="(empty)")}),this.displayables=t},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),re(2,iue,3,2,"div",2),E(),me(3,"div"),E()),2&t&&(H(2),z("ngForOf",n.displayables))},directives:[er],styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:bold;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]}),e}();function aue(e,a){1&e&&(A(0,"uds-translate"),K(1,"Summary"),E())}function oue(e,a){if(1&e&&me(0,"uds-information",15),2&e){var t=J(2);z("value",t.provider)("gui",t.gui)}}function sue(e,a){1&e&&(A(0,"uds-translate"),K(1,"Services"),E())}function lue(e,a){1&e&&(A(0,"uds-translate"),K(1,"Usage"),E())}function uue(e,a){1&e&&(A(0,"uds-translate"),K(1,"Logs"),E())}function cue(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return pe(t),J().selectedTab=c}),A(3,"mat-tab"),re(4,aue,2,0,"ng-template",9),A(5,"div",10),re(6,oue,1,2,"uds-information",11),E(),E(),A(7,"mat-tab"),re(8,sue,2,0,"ng-template",9),A(9,"div",10),A(10,"uds-table",12),ne("newAction",function(c){return pe(t),J().onNewService(c)})("editAction",function(c){return pe(t),J().onEditService(c)})("deleteAction",function(c){return pe(t),J().onDeleteService(c)})("customButtonAction",function(c){return pe(t),J().onInformation(c)})("loaded",function(c){return pe(t),J().onLoad(c)}),E(),E(),E(),A(11,"mat-tab"),re(12,lue,2,0,"ng-template",9),A(13,"div",10),A(14,"uds-table",13),ne("deleteAction",function(c){return pe(t),J().onDeleteUsage(c)}),E(),E(),E(),A(15,"mat-tab"),re(16,uue,2,0,"ng-template",9),A(17,"div",10),me(18,"uds-logs-table",14),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("selectedIndex",n.selectedTab)("@.disabled",!0),H(4),z("ngIf",n.provider&&n.gui),H(4),z("rest",n.services)("multiSelect",!0)("allowExport",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)("tableId","providers-d-services"+n.provider.id),H(4),z("rest",n.usage)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size)("tableId","providers-d-usage"+n.provider.id),H(4),z("rest",n.services.parentModel)("itemId",n.provider.id)("tableId","providers-d-log"+n.provider.id)}}var fue=function(e){return["/providers",e]},Wee=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Jr.ONLY_MENU}],this.provider=null,this.selectedTab=1}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("provider");this.services=this.rest.providers.detail(t,"services"),this.usage=this.rest.providers.detail(t,"usage"),this.services.parentModel.get(t).subscribe(function(n){a.provider=n,a.services.parentModel.gui(n.type).subscribe(function(l){a.gui=l})})},e.prototype.onInformation=function(a){rue.launch(this.api,this.services,a.table.selection.selected[0])},e.prototype.onNewService=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New service"),!1)},e.prototype.onEditService=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit service"),!1)},e.prototype.onDeleteService=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete service"))},e.prototype.onDeleteUsage=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete user service"))},e.prototype.onLoad=function(a){if(!0===a.param){var t=this.route.snapshot.paramMap.get("service");if(void 0!==t){this.selectedTab=1;var n=a.table;n.dataSource.data.forEach(function(l){l.id===t&&n.selection.select(l)})}}},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-services-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"rest","multiSelect","allowExport","customButtons","pageSize","tableId","newAction","editAction","deleteAction","customButtonAction","loaded"],["icon","usage",3,"rest","multiSelect","allowExport","pageSize","tableId","deleteAction"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,cue,19,17,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,fue,n.services.parentId)),H(4),z("src",n.api.staticURL("admin/img/icons/services.png"),Gt),H(1),Ve(" \xa0",null==n.provider?null:n.provider.name," "),H(1),z("ngIf",null!==n.provider))},directives:[xl,Kt,Nc,Ru,Fc,Yr,ck,Hn,lH],styles:[""]}),e}(),Yee=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("authenticator")},e.prototype.onDetail=function(a){this.api.navigation.gotoAuthenticatorDetail(a.param.id)},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Authenticator"),!0)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Authenticator"),!0)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Authenticator"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))},e.prototype.processElement=function(a){a.visible=this.api.yesno(a.visible)},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(kr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",n.processElement)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}(),due=["panel"];function hue(e,a){if(1&e&&(A(0,"div",0,1),Wt(2),E()),2&e){var t=a.id,n=J();z("id",n.id)("ngClass",n._classList),Ke("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(t))}}var pue=["*"],vue=0,gue=function e(a,t){F(this,e),this.source=a,this.option=t},mue=El(function(){return function e(){F(this,e)}}()),qee=new Ee("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),yue=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){var C;return F(this,n),(C=t.call(this))._changeDetectorRef=l,C._elementRef=c,C._activeOptionChanges=Be.EMPTY,C.showPanel=!1,C._isOpen=!1,C.displayWith=null,C.optionSelected=new ye,C.opened=new ye,C.closed=new ye,C.optionActivated=new ye,C._classList={},C.id="mat-autocomplete-".concat(vue++),C.inertGroups=(null==_?void 0:_.SAFARI)||!1,C._autoActiveFirstOption=!!h.autoActiveFirstOption,C}return W(n,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(c){this._autoActiveFirstOption=it(c)}},{key:"classList",set:function(c){this._classList=c&&c.length?G3(c).reduce(function(h,_){return h[_]=!0,h},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var c=this;this._keyManager=new wE(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(h){c.optionActivated.emit({source:c,option:c.options.toArray()[h]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(c){this.panel&&(this.panel.nativeElement.scrollTop=c)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(c){var h=new gue(this,c);this.optionSelected.emit(h)}},{key:"_getPanelAriaLabelledby",value:function(c){return this.ariaLabel?null:this.ariaLabelledby?(c?c+" ":"")+this.ariaLabelledby:c}},{key:"_setVisibilityClasses",value:function(c){c[this._visibleClass]=this.showPanel,c[this._hiddenClass]=!this.showPanel}}]),n}(mue);return e.\u0275fac=function(t){return new(t||e)(N(Vt),N(Ue),N(qee),N(en))},e.\u0275dir=ve({type:e,viewQuery:function(t,n){var l;1&t&&(wt(Xn,7),wt(due,5)),2&t&&(Ne(l=Le())&&(n.template=l.first),Ne(l=Le())&&(n.panel=l.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Pe]}),e}(),cX=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._visibleClass="mat-autocomplete-visible",l._hiddenClass="mat-autocomplete-hidden",l}return n}(yue);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275cmp=ke({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(t,n,l){var c;1&t&&(Zt(l,GS,5),Zt(l,Pi,5)),2&t&&(Ne(c=Le())&&(n.optionGroups=c),Ne(c=Le())&&(n.options=c))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[Xe([{provide:Bg,useExisting:e}]),Pe],ngContentSelectors:pue,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,n){1&t&&(rr(),re(0,hue,3,4,"ng-template"))},directives:[Ts],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),e}(),Xee=new Ee("mat-autocomplete-scroll-strategy"),wue={provide:Xee,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Sue={provide:s,useExisting:Sn(function(){return uH}),multi:!0},kue=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,I,L){var G=this;F(this,a),this._element=t,this._overlay=n,this._viewContainerRef=l,this._zone=c,this._changeDetectorRef=h,this._dir=C,this._formField=k,this._document=D,this._viewportRuler=I,this._defaults=L,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Be.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new qe,this._windowBlurHandler=function(){G._canOpenOnNextFocus=G._document.activeElement!==G._element.nativeElement||G.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Ly(function(){return G.autocomplete&&G.autocomplete.options?ot.apply(void 0,At(G.autocomplete.options.map(function(Y){return Y.onSelectionChange}))):G._zone.onStable.pipe(or(1),xa(function(){return G.optionSelections}))}),this._scrollStrategy=_}return W(a,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(n){this._autocompleteDisabled=it(n)}},{key:"ngAfterViewInit",value:function(){var n=this,l=this._getWindow();void 0!==l&&this._zone.runOutsideAngular(function(){return l.addEventListener("blur",n._windowBlurHandler)})}},{key:"ngOnChanges",value:function(n){n.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var n=this._getWindow();void 0!==n&&n.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var n=this;return ot(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(vr(function(){return n._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(vr(function(){return n._overlayAttached})):ut()).pipe(He(function(l){return l instanceof d5?l:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var n=this;return ot(Tl(this._document,"click"),Tl(this._document,"auxclick"),Tl(this._document,"touchend")).pipe(vr(function(l){var c=rp(l),h=n._formField?n._formField._elementRef.nativeElement:null,_=n.connectedTo?n.connectedTo.elementRef.nativeElement:null;return n._overlayAttached&&c!==n._element.nativeElement&&(!h||!h.contains(c))&&(!_||!_.contains(c))&&!!n._overlayRef&&!n._overlayRef.overlayElement.contains(c)}))}},{key:"writeValue",value:function(n){var l=this;Promise.resolve(null).then(function(){return l._setTriggerValue(n)})}},{key:"registerOnChange",value:function(n){this._onChange=n}},{key:"registerOnTouched",value:function(n){this._onTouched=n}},{key:"setDisabledState",value:function(n){this._element.nativeElement.disabled=n}},{key:"_handleKeydown",value:function(n){var l=n.keyCode;if(27===l&&!Bi(n)&&n.preventDefault(),this.activeOption&&13===l&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){var c=this.autocomplete._keyManager.activeItem,h=38===l||40===l;this.panelOpen||9===l?this.autocomplete._keyManager.onKeydown(n):h&&this._canOpen()&&this.openPanel(),(h||this.autocomplete._keyManager.activeItem!==c)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(n){var l=n.target,c=l.value;"number"===l.type&&(c=""==c?null:parseFloat(c)),this._previousValue!==c&&(this._previousValue=c,this._onChange(c),this._canOpen()&&this._document.activeElement===n.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(n?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var n=this;return ot(this._zone.onStable.pipe(or(1)),this.autocomplete.options.changes.pipe(Ya(function(){return n._positionStrategy.reapplyLastPosition()}),oH(0))).pipe(xa(function(){var h=n.panelOpen;return n._resetActiveItem(),n.autocomplete._setVisibility(),n.panelOpen&&(n._overlayRef.updatePosition(),h!==n.panelOpen&&n.autocomplete.opened.emit()),n.panelClosingActions}),or(1)).subscribe(function(h){return n._setValueAndClose(h)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(n){var l=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(n):n,c=null!=l?l:"";this._formField?this._formField._control.value=c:this._element.nativeElement.value=c,this._previousValue=c}},{key:"_setValueAndClose",value:function(n){n&&n.source&&(this._clearPreviousSelectedOption(n.source),this._setTriggerValue(n.source.value),this._onChange(n.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(n.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(n){this.autocomplete.options.forEach(function(l){l!==n&&l.selected&&l.deselect()})}},{key:"_attachOverlay",value:function(){var l,n=this,c=this._overlayRef;c?(this._positionStrategy.setOrigin(this._getConnectedElement()),c.updateSize({width:this._getPanelWidth()})):(this._portal=new Ps(this.autocomplete.template,this._viewContainerRef,{id:null===(l=this._formField)||void 0===l?void 0:l.getLabelId()}),c=this._overlay.create(this._getOverlayConfig()),this._overlayRef=c,c.keydownEvents().subscribe(function(_){(27===_.keyCode&&!Bi(_)||38===_.keyCode&&Bi(_,"altKey"))&&(n._resetActiveItem(),n._closeKeyEventStream.next(),_.stopPropagation(),_.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){n.panelOpen&&c&&c.updateSize({width:n._getPanelWidth()})})),c&&!c.hasAttached()&&(c.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var h=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&h!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var n;return new up({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(n=this._defaults)||void 0===n?void 0:n.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var n=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(n),this._positionStrategy=n,n}},{key:"_setStrategyPositions",value:function(n){var _,l=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],c=this._aboveClass,h=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:c},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:c}];_="above"===this.position?h:"below"===this.position?l:[].concat(l,h),n.withPositions(_)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var n=this.autocomplete;n.autoActiveFirstOption?n._keyManager.setFirstItemActive():n._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var n=this._element.nativeElement;return!n.readOnly&&!n.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var n;return(null===(n=this._document)||void 0===n?void 0:n.defaultView)||window}},{key:"_scrollToOption",value:function(n){var l=this.autocomplete,c=jS(n,l.options,l.optionGroups);if(0===n&&1===c)l._setScrollTop(0);else if(l.panel){var h=l.options.toArray()[n];if(h){var _=h._getHostElement(),C=Cb(_.offsetTop,_.offsetHeight,l._getScrollTop(),l.panel.nativeElement.offsetHeight);l._setScrollTop(C)}}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Ai),N($n),N(ft),N(Vt),N(Xee),N(Mr,8),N(ik,9),N(lt,8),N(yo),N(qee,8))},e.\u0275dir=ve({type:e,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[an]}),e}(),uH=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",l}return n}(kue);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,n){1&t&&ne("focusin",function(){return n._handleFocus()})("blur",function(){return n._onTouched()})("input",function(c){return n._handleInput(c)})("keydown",function(c){return n._handleKeydown(c)}),2&t&&Ke("autocomplete",n.autocompleteAttribute)("role",n.autocompleteDisabled?null:"combobox")("aria-autocomplete",n.autocompleteDisabled?null:"list")("aria-activedescendant",n.panelOpen&&n.activeOption?n.activeOption.id:null)("aria-expanded",n.autocompleteDisabled?null:n.panelOpen.toString())("aria-owns",n.autocompleteDisabled||!n.panelOpen||null==n.autocomplete?null:n.autocomplete.id)("aria-haspopup",!n.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[Xe([Sue]),Pe]}),e}(),Mue=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[wue],imports:[[fp,WS,$t,Wa],lp,WS,$t]}),e}();function xue(e,a){if(1&e&&(A(0,"div"),A(1,"uds-translate"),K(2,"Edit user"),E(),K(3),E()),2&e){var t=J();H(3),Ve(" ",t.user.name," ")}}function Tue(e,a){1&e&&(A(0,"uds-translate"),K(1,"New user"),E())}function Due(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"input",19),ne("ngModelChange",function(c){return pe(t),J().user.name=c}),E(),E()}if(2&e){var n=J();H(2),Ve(" ",n.authenticator.type_info.userNameLabel," "),H(1),z("ngModel",n.user.name)("disabled",n.user.id)}}function Aue(e,a){if(1&e&&(A(0,"mat-option",22),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Cv(" ",t.id," (",t.name,") ")}}function Eue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"input",20),ne("ngModelChange",function(h){return pe(t),J().user.name=h})("input",function(h){return pe(t),J().filterUser(h)}),E(),A(4,"mat-autocomplete",null,21),re(6,Aue,2,3,"mat-option",16),E(),E()}if(2&e){var n=Pn(5),l=J();H(2),Ve(" ",l.authenticator.type_info.userNameLabel," "),H(1),z("ngModel",l.user.name)("matAutocomplete",n),H(3),z("ngForOf",l.users)}}function Pue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"input",23),ne("ngModelChange",function(c){return pe(t),J().user.password=c}),E(),E()}if(2&e){var n=J();H(2),Ve(" ",n.authenticator.type_info.passwordLabel," "),H(1),z("ngModel",n.user.password)}}function Oue(e,a){if(1&e&&(A(0,"mat-option",22),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}var Zee=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.users=[],this.authenticator=l.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",groups:[]},void 0!==l.user&&(this.user.id=l.user.id,this.user.name=l.user.name)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:t,user:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.detail(this.authenticator.id,"groups").overview().subscribe(function(t){a.groups=t}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).subscribe(function(t){a.user=t,a.user.role=t.is_admin?"admin":t.staff_member?"staff":"user"},function(t){a.dialogRef.close()})},e.prototype.roleChanged=function(a){this.user.is_admin="admin"===a,this.user.staff_member="admin"===a||"staff"===a},e.prototype.filterUser=function(a){var t=this;this.rest.authenticators.search(this.authenticator.id,"user",a.target.value,100).subscribe(function(l){t.users.length=0,l.forEach(function(c){t.users.push(c)})})},e.prototype.save=function(){var a=this;this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).subscribe(function(t){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-new-user"]],decls:60,vars:11,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],[4,"ngIf"],["type","text","matInput","","autocomplete","new-real_name",3,"ngModel","ngModelChange"],["type","text","matInput","","autocomplete","new-comments",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["value","B"],[3,"ngModel","ngModelChange","valueChange"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","","autocomplete","new-username",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value"],["type","password","matInput","","autocomplete","new-password",3,"ngModel","ngModelChange"]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,xue,4,1,"div",1),re(2,Tue,2,0,"ng-template",null,2,ml),E(),A(4,"mat-dialog-content"),A(5,"div",3),re(6,Due,4,3,"mat-form-field",4),re(7,Eue,7,4,"mat-form-field",4),A(8,"mat-form-field"),A(9,"mat-label"),A(10,"uds-translate"),K(11,"Real name"),E(),E(),A(12,"input",5),ne("ngModelChange",function(h){return n.user.real_name=h}),E(),E(),A(13,"mat-form-field"),A(14,"mat-label"),A(15,"uds-translate"),K(16,"Comments"),E(),E(),A(17,"input",6),ne("ngModelChange",function(h){return n.user.comments=h}),E(),E(),A(18,"mat-form-field"),A(19,"mat-label"),A(20,"uds-translate"),K(21,"State"),E(),E(),A(22,"mat-select",7),ne("ngModelChange",function(h){return n.user.state=h}),A(23,"mat-option",8),A(24,"uds-translate"),K(25,"Enabled"),E(),E(),A(26,"mat-option",9),A(27,"uds-translate"),K(28,"Disabled"),E(),E(),A(29,"mat-option",10),A(30,"uds-translate"),K(31,"Blocked"),E(),E(),E(),E(),A(32,"mat-form-field"),A(33,"mat-label"),A(34,"uds-translate"),K(35,"Role"),E(),E(),A(36,"mat-select",11),ne("ngModelChange",function(h){return n.user.role=h})("valueChange",function(h){return n.roleChanged(h)}),A(37,"mat-option",12),A(38,"uds-translate"),K(39,"Admin"),E(),E(),A(40,"mat-option",13),A(41,"uds-translate"),K(42,"Staff member"),E(),E(),A(43,"mat-option",14),A(44,"uds-translate"),K(45,"User"),E(),E(),E(),E(),re(46,Pue,4,2,"mat-form-field",4),A(47,"mat-form-field"),A(48,"mat-label"),A(49,"uds-translate"),K(50,"Groups"),E(),E(),A(51,"mat-select",15),ne("ngModelChange",function(h){return n.user.groups=h}),re(52,Oue,2,2,"mat-option",16),E(),E(),E(),E(),A(53,"mat-dialog-actions"),A(54,"button",17),A(55,"uds-translate"),K(56,"Cancel"),E(),E(),A(57,"button",18),ne("click",function(){return n.save()}),A(58,"uds-translate"),K(59,"Ok"),E(),E(),E()),2&t){var l=Pn(3);H(1),z("ngIf",n.user.id)("ngIfElse",l),H(5),z("ngIf",!1===n.authenticator.type_info.canSearchUsers||n.user.id),H(1),z("ngIf",!0===n.authenticator.type_info.canSearchUsers&&!n.user.id),H(5),z("ngModel",n.user.real_name),H(5),z("ngModel",n.user.comments),H(5),z("ngModel",n.user.state),H(14),z("ngModel",n.user.role),H(10),z("ngIf",n.authenticator.type_info.needsPassword),H(5),z("ngModel",n.user.groups),H(1),z("ngForOf",n.groups)}},directives:[Wr,Kt,Fr,_r,Br,Hn,Hi,g,Mt,mr,$a,Pi,er,Qr,Rn,Lr,uH,cX],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),Iue=["thumbContainer"],Rue=["toggleBar"],Lue=["input"],Fue=function(a){return{enterDuration:a}},Nue=["*"],Vue=new Ee("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),Bue=0,Hue={provide:s,useExisting:Sn(function(){return fk}),multi:!0},zue=function e(a,t){F(this,e),this.source=a,this.checked=t},Uue=gp(Eu(El(ia(function(){return function e(a){F(this,e),this._elementRef=a}}())))),fk=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this,l))._focusMonitor=c,D._changeDetectorRef=h,D.defaults=C,D._onChange=function(I){},D._onTouched=function(){},D._uniqueId="mat-slide-toggle-".concat(++Bue),D._required=!1,D._checked=!1,D.name=null,D.id=D._uniqueId,D.labelPosition="after",D.ariaLabel=null,D.ariaLabelledby=null,D.change=new ye,D.toggleChange=new ye,D.tabIndex=parseInt(_)||0,D.color=D.defaultColor=C.color||"accent",D._noopAnimations="NoopAnimations"===k,D}return W(n,[{key:"required",get:function(){return this._required},set:function(c){this._required=it(c)}},{key:"checked",get:function(){return this._checked},set:function(c){this._checked=it(c),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var c=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(h){"keyboard"===h||"program"===h?c._inputElement.nativeElement.focus():h||Promise.resolve().then(function(){return c._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(c){c.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(c){c.stopPropagation()}},{key:"writeValue",value:function(c){this.checked=!!c}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(c,h){h?this._focusMonitor.focusVia(this._inputElement,h,c):this._inputElement.nativeElement.focus(c)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new zue(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),n}(Uue);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ra),N(Vt),Ci("tabindex"),N(Vue),N(Un,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(t,n){var l;1&t&&(wt(Iue,5),wt(Rue,5),wt(Lue,5)),2&t&&(Ne(l=Le())&&(n._thumbEl=l.first),Ne(l=Le())&&(n._thumbBarEl=l.first),Ne(l=Le())&&(n._inputElement=l.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,n){2&t&&(Zi("id",n.id),Ke("tabindex",n.disabled?null:-1)("aria-label",null)("aria-labelledby",null),dt("mat-checked",n.checked)("mat-disabled",n.disabled)("mat-slide-toggle-label-before","before"==n.labelPosition)("_mat-animation-noopable",n._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked",ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Xe([Hue]),Pe],ngContentSelectors:Nue,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,n){if(1&t&&(rr(),A(0,"label",0,1),A(2,"div",2,3),A(4,"input",4,5),ne("change",function(_){return n._onChangeEvent(_)})("click",function(_){return n._onInputClick(_)}),E(),A(6,"div",6,7),me(8,"div",8),A(9,"div",9),me(10,"div",10),E(),E(),E(),A(11,"span",11,12),ne("cdkObserveContent",function(){return n._onLabelTextChange()}),A(13,"span",13),K(14,"\xa0"),E(),Wt(15),E(),E()),2&t){var l=Pn(1),c=Pn(12);Ke("for",n.inputId),H(2),dt("mat-slide-toggle-bar-no-side-margin",!c.textContent||!c.textContent.trim()),H(2),z("id",n.inputId)("required",n.required)("tabIndex",n.tabIndex)("checked",n.checked)("disabled",n.disabled),Ke("name",n.name)("aria-checked",n.checked.toString())("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),H(5),z("matRippleTrigger",l)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",vl(18,Fue,n._noopAnimations?0:150))}},directives:[Ls,nb],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),e}(),Gue={provide:b,useExisting:Sn(function(){return Kee}),multi:!0},Kee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return n}(R5);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[Xe([Gue]),Pe]}),e}(),$ee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),jue=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$ee,Da,$t,ld],$ee,$t]}),e}();function Wue(e,a){if(1&e&&(A(0,"div"),A(1,"uds-translate"),K(2,"Edit group"),E(),K(3),E()),2&e){var t=J();H(3),Ve(" ",t.group.name," ")}}function Yue(e,a){1&e&&(A(0,"uds-translate"),K(1,"New group"),E())}function que(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"input",13),ne("ngModelChange",function(c){return pe(t),J(2).group.name=c}),E(),E()}if(2&e){var n=J(2);H(2),Ve(" ",n.authenticator.type_info.groupNameLabel," "),H(1),z("ngModel",n.group.name)("disabled",n.group.id)}}function Xue(e,a){if(1&e&&(A(0,"mat-option",17),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Cv(" ",t.id," (",t.name,") ")}}function Zue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"input",14),ne("ngModelChange",function(h){return pe(t),J(2).group.name=h})("input",function(h){return pe(t),J(2).filterGroup(h)}),E(),A(4,"mat-autocomplete",null,15),re(6,Xue,2,3,"mat-option",16),E(),E()}if(2&e){var n=Pn(5),l=J(2);H(2),Ve(" ",l.authenticator.type_info.groupNameLabel," "),H(1),z("ngModel",l.group.name)("matAutocomplete",n),H(3),z("ngForOf",l.fltrGroup)}}function Kue(e,a){if(1&e&&(vt(0),re(1,que,4,3,"mat-form-field",12),re(2,Zue,7,4,"mat-form-field",12),xn()),2&e){var t=J();H(1),z("ngIf",!1===t.authenticator.type_info.canSearchGroups||t.group.id),H(1),z("ngIf",!0===t.authenticator.type_info.canSearchGroups&&!t.group.id)}}function $ue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),A(2,"uds-translate"),K(3,"Meta group name"),E(),E(),A(4,"input",13),ne("ngModelChange",function(c){return pe(t),J().group.name=c}),E(),E()}if(2&e){var n=J();H(4),z("ngModel",n.group.name)("disabled",n.group.id)}}function Que(e,a){if(1&e&&(A(0,"mat-option",17),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function Jue(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),A(3,"uds-translate"),K(4,"Service Pools"),E(),E(),A(5,"mat-select",18),ne("ngModelChange",function(c){return pe(t),J().group.pools=c}),re(6,Que,2,2,"mat-option",16),E(),E(),xn()}if(2&e){var n=J();H(5),z("ngModel",n.group.pools),H(1),z("ngForOf",n.servicePools)}}function ece(e,a){if(1&e&&(A(0,"mat-option",17),K(1),E()),2&e){var t=J().$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function tce(e,a){if(1&e&&(vt(0),re(1,ece,2,2,"mat-option",22),xn()),2&e){var t=a.$implicit;H(1),z("ngIf","group"===t.type)}}function nce(e,a){if(1&e){var t=De();A(0,"div",19),A(1,"span",20),A(2,"uds-translate"),K(3,"Match mode"),E(),E(),A(4,"mat-slide-toggle",6),ne("ngModelChange",function(c){return pe(t),J().group.meta_if_any=c}),K(5),E(),E(),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),K(9,"Selected Groups"),E(),E(),A(10,"mat-select",18),ne("ngModelChange",function(c){return pe(t),J().group.groups=c}),re(11,tce,2,1,"ng-container",21),E(),E()}if(2&e){var n=J();H(4),z("ngModel",n.group.meta_if_any),H(1),Ve(" ",n.getMatchValue()," "),H(5),z("ngModel",n.group.groups),H(1),z("ngForOf",n.groups)}}var Qee=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.fltrGroup=[],this.authenticator=l.authenticator,this.group={id:void 0,type:l.groupType,name:"",comments:"",meta_if_any:!1,state:"A",groups:[],pools:[]},void 0!==l.group&&(this.group.id=l.group.id,this.group.type=l.group.type,this.group.name=l.group.name)}return e.launch=function(a,t,n,l){var c=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:t,groupType:n,group:l},disableClose:!0}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this,t=this.rest.authenticators.detail(this.authenticator.id,"groups");void 0!==this.group.id&&t.get(this.group.id).subscribe(function(n){a.group=n},function(n){a.dialogRef.close()}),"meta"===this.group.type?t.summary().subscribe(function(n){return a.groups=n}):this.rest.servicesPools.summary().subscribe(function(n){return a.servicePools=n})},e.prototype.filterGroup=function(a){var t=this;this.rest.authenticators.search(this.authenticator.id,"group",a.target.value,100).subscribe(function(l){t.fltrGroup.length=0,l.forEach(function(c){t.fltrGroup.push(c)})})},e.prototype.getMatchValue=function(){return this.group.meta_if_any?django.gettext("Any"):django.gettext("All")},e.prototype.save=function(){var a=this;this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).subscribe(function(t){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-new-group"]],decls:35,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],["metafirst",""],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["metasecond",""],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-match"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,Wue,4,1,"div",1),re(2,Yue,2,0,"ng-template",null,2,ml),E(),A(4,"mat-dialog-content"),A(5,"div",3),re(6,Kue,3,2,"ng-container",1),re(7,$ue,5,2,"ng-template",null,4,ml),A(9,"mat-form-field"),A(10,"mat-label"),A(11,"uds-translate"),K(12,"Comments"),E(),E(),A(13,"input",5),ne("ngModelChange",function(C){return n.group.comments=C}),E(),E(),A(14,"mat-form-field"),A(15,"mat-label"),A(16,"uds-translate"),K(17,"State"),E(),E(),A(18,"mat-select",6),ne("ngModelChange",function(C){return n.group.state=C}),A(19,"mat-option",7),A(20,"uds-translate"),K(21,"Enabled"),E(),E(),A(22,"mat-option",8),A(23,"uds-translate"),K(24,"Disabled"),E(),E(),E(),E(),re(25,Jue,7,2,"ng-container",1),re(26,nce,12,4,"ng-template",null,9,ml),E(),E(),A(28,"mat-dialog-actions"),A(29,"button",10),A(30,"uds-translate"),K(31,"Cancel"),E(),E(),A(32,"button",11),ne("click",function(){return n.save()}),A(33,"uds-translate"),K(34,"Ok"),E(),E(),E()),2&t){var l=Pn(3),c=Pn(8),h=Pn(27);H(1),z("ngIf",n.group.id)("ngIfElse",l),H(5),z("ngIf","group"===n.group.type)("ngIfElse",c),H(7),z("ngModel",n.group.comments),H(5),z("ngModel",n.group.state),H(7),z("ngIf","group"===n.group.type)("ngIfElse",h)}},directives:[Wr,Kt,Fr,_r,Br,Hn,Hi,g,Mt,mr,$a,Pi,Qr,Rn,Lr,uH,cX,er,fk],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}();function rce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Groups"),E())}function ice(e,a){if(1&e&&(A(0,"mat-tab"),re(1,rce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.group)("pageSize",6)}}function ace(e,a){1&e&&(A(0,"uds-translate"),K(1,"Services Pools"),E())}function oce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,ace,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.servicesPools)("pageSize",6)}}function sce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Assigned Services"),E())}function lce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,sce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.userServices)("pageSize",6)}}var uce=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],cce=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],fce=[{field:"unique_id",title:django.gettext("Unique ID")},{field:"friendly_name",title:django.gettext("Friendly Name")},{field:"in_use",title:django.gettext("In Use")},{field:"ip",title:django.gettext("IP")},{field:"pool",title:django.gettext("Services Pool")}],dce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.users=l.users,this.user=l.user}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:t,user:n},disableClose:!1})},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).subscribe(function(t){a.group=new Mb(django.gettext("Groups"),function(){return a.rest.authenticators.detail(a.users.parentId,"groups").overview().pipe(He(function(h){return h.filter(function(_){return t.groups.includes(_.id)})}))},uce,a.user.id+"infogrp"),a.servicesPools=new Mb(django.gettext("Services Pools"),function(){return a.users.invoke(a.user.id+"/servicesPools")},cce,a.user.id+"infopool"),a.userServices=new Mb(django.gettext("Assigned services"),function(){return a.users.invoke(a.user.id+"/userServices").pipe(He(function(h){return h.map(function(_){return _.in_use=a.api.yesno(_.in_use),_})}))},fce,a.user.id+"userservpool")})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-user-information"]],decls:13,vars:4,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Information for"),E(),K(3),E(),A(4,"mat-dialog-content"),A(5,"mat-tab-group"),re(6,ice,3,2,"mat-tab",1),re(7,oce,3,2,"mat-tab",1),re(8,lce,3,2,"mat-tab",1),E(),E(),A(9,"mat-dialog-actions"),A(10,"button",2),A(11,"uds-translate"),K(12,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.user.name,"\n"),H(3),z("ngIf",n.group),H(1),z("ngIf",n.servicesPools),H(1),z("ngIf",n.userServices))},directives:[Wr,Hn,Fr,Nc,Kt,Qr,Rn,Lr,Ru,Fc,Yr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function hce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Services Pools"),E())}function pce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,hce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.servicesPools)("pageSize",6)}}function vce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Users"),E())}function gce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,vce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.users)("pageSize",6)}}function mce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Groups"),E())}function _ce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,mce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.groups)("pageSize",6)}}var yce=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],bce=[{field:"name",title:django.gettext("Name")},{field:"real_name",title:django.gettext("Real Name")},{field:"state",title:django.gettext("state")},{field:"last_access",title:django.gettext("Last access"),type:Aa.DATETIME}],Cce=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],wce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.data=l}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:n,groups:t},disableClose:!1})},e.prototype.ngOnInit=function(){var a=this,t=this.rest.authenticators.detail(this.data.groups.parentId,"groups");this.servicesPools=new Mb(django.gettext("Service pools"),function(){return t.invoke(a.data.group.id+"/servicesPools")},yce,this.data.group.id+"infopls"),this.users=new Mb(django.gettext("Users"),function(){return t.invoke(a.data.group.id+"/users").pipe(He(function(h){return h.map(function(_){return _.state="A"===_.state?django.gettext("Enabled"):"I"===_.state?django.gettext("Disabled"):django.gettext("Blocked"),_})}))},bce,this.data.group.id+"infousr"),"meta"===this.data.group.type&&(this.groups=new Mb(django.gettext("Groups"),function(){return t.overview().pipe(He(function(h){return h.filter(function(_){return a.data.group.groups.includes(_.id)})}))},Cce,this.data.group.id+"infogrps"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-group-information"]],decls:12,vars:3,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Information for"),E(),E(),A(3,"mat-dialog-content"),A(4,"mat-tab-group"),re(5,pce,3,2,"mat-tab",1),re(6,gce,3,2,"mat-tab",1),re(7,_ce,3,2,"mat-tab",1),E(),E(),A(8,"mat-dialog-actions"),A(9,"button",2),A(10,"uds-translate"),K(11,"Ok"),E(),E(),E()),2&t&&(H(5),z("ngIf",n.servicesPools),H(1),z("ngIf",n.users),H(1),z("ngIf",n.groups))},directives:[Wr,Hn,Fr,Nc,Kt,Qr,Rn,Lr,Ru,Fc,Yr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function Sce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Summary"),E())}function kce(e,a){if(1&e&&me(0,"uds-information",16),2&e){var t=J(2);z("value",t.authenticator)("gui",t.gui)}}function Mce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Users"),E())}function xce(e,a){if(1&e){var t=De();A(0,"uds-table",17),ne("loaded",function(c){return pe(t),J(2).onLoad(c)})("newAction",function(c){return pe(t),J(2).onNewUser(c)})("editAction",function(c){return pe(t),J(2).onEditUser(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteUser(c)})("customButtonAction",function(c){return pe(t),J(2).onUserInformation(c)}),E()}if(2&e){var n=J(2);z("rest",n.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+n.authenticator.id)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)}}function Tce(e,a){if(1&e){var t=De();A(0,"uds-table",18),ne("loaded",function(c){return pe(t),J(2).onLoad(c)})("editAction",function(c){return pe(t),J(2).onEditUser(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteUser(c)})("customButtonAction",function(c){return pe(t),J(2).onUserInformation(c)}),E()}if(2&e){var n=J(2);z("rest",n.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+n.authenticator.id)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)}}function Dce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Groups"),E())}function Ace(e,a){1&e&&(A(0,"uds-translate"),K(1,"Logs"),E())}function Ece(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return pe(t),J().selectedTab=c}),A(3,"mat-tab"),re(4,Sce,2,0,"ng-template",9),A(5,"div",10),re(6,kce,1,2,"uds-information",11),E(),E(),A(7,"mat-tab"),re(8,Mce,2,0,"ng-template",9),A(9,"div",10),re(10,xce,1,6,"uds-table",12),re(11,Tce,1,6,"uds-table",13),E(),E(),A(12,"mat-tab"),re(13,Dce,2,0,"ng-template",9),A(14,"div",10),A(15,"uds-table",14),ne("loaded",function(c){return pe(t),J().onLoad(c)})("newAction",function(c){return pe(t),J().onNewGroup(c)})("editAction",function(c){return pe(t),J().onEditGroup(c)})("deleteAction",function(c){return pe(t),J().onDeleteGroup(c)})("customButtonAction",function(c){return pe(t),J().onGroupInformation(c)}),E(),E(),E(),A(16,"mat-tab"),re(17,Ace,2,0,"ng-template",9),A(18,"div",10),me(19,"uds-logs-table",15),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("selectedIndex",n.selectedTab)("@.disabled",!0),H(4),z("ngIf",n.authenticator&&n.gui),H(4),z("ngIf",n.authenticator.type_info.canCreateUsers),H(1),z("ngIf",!n.authenticator.type_info.canCreateUsers),H(4),z("rest",n.groups)("multiSelect",!0)("allowExport",!0)("customButtons",n.customButtons)("tableId","authenticators-d-groups"+n.authenticator.id)("pageSize",n.api.config.admin.page_size),H(4),z("rest",n.rest.authenticators)("itemId",n.authenticator.id)("tableId","authenticators-d-log"+n.authenticator.id)}}var Pce=function(e){return["/authenticators",e]},fX=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Jr.ONLY_MENU}],this.authenticator=null,this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("authenticator");this.users=this.rest.authenticators.detail(t,"users"),this.groups=this.rest.authenticators.detail(t,"groups"),this.rest.authenticators.get(t).subscribe(function(n){a.authenticator=n,a.rest.authenticators.gui(n.type).subscribe(function(l){a.gui=l})})},e.prototype.onLoad=function(a){if(!0===a.param){var t=this.route.snapshot.paramMap.get("user"),n=this.route.snapshot.paramMap.get("group");a.table.selectElement("id",t||n)}},e.prototype.processElement=function(a){a.maintenance_state=a.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},e.prototype.onNewUser=function(a){Zee.launch(this.api,this.authenticator).subscribe(function(t){return a.table.overview()})},e.prototype.onEditUser=function(a){Zee.launch(this.api,this.authenticator,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteUser=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete user"))},e.prototype.onNewGroup=function(a){Qee.launch(this.api,this.authenticator,a.param.type).subscribe(function(t){return a.table.overview()})},e.prototype.onEditGroup=function(a){Qee.launch(this.api,this.authenticator,a.param.type,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteGroup=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete group"))},e.prototype.onUserInformation=function(a){dce.launch(this.api,this.users,a.table.selection.selected[0])},e.prototype.onGroupInformation=function(a){wce.launch(this.api,this.groups,a.table.selection.selected[0])},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-authenticators-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,Ece,20,14,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,Pce,n.authenticator?n.authenticator.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/services.png"),Gt),H(1),Ve(" \xa0",null==n.authenticator?null:n.authenticator.name," "),H(1),z("ngIf",n.authenticator))},directives:[xl,Kt,Nc,Ru,Fc,Yr,ck,Hn,lH],styles:[""]}),e}(),Jee=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("osmanager")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New OS Manager"),!1)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit OS Manager"),!1)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete OS Manager"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(kr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}(),ete=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("transport")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Transport"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Transport"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Transport"))},e.prototype.processElement=function(a){try{a.allowed_oss=a.allowed_oss.map(function(t){return t.id}).join(", ")}catch(t){a.allowed_oss=""}},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(kr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",n.processElement)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),e}(),tte=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("network")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Network"),!1)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Network"),!1)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Network"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("network"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(kr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}(),nte=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("proxy")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Proxy"),!0)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Proxy"),!0)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Proxy"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("proxy"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(kr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-proxies"]],decls:2,vars:5,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.proxy)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}(),rte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[Il.getGotoButton(_J,"provider_id"),Il.getGotoButton(yJ,"provider_id","service_id"),Il.getGotoButton(wJ,"osmanager_id"),Il.getGotoButton(SJ,"pool_group_id")],this.editing=!1}return e.prototype.ngOnInit=function(){},e.prototype.onChange=function(a){var t=this,n=["initial_srvs","cache_l1_srvs","max_srvs"];if(null===a.on||"service_id"===a.on.field.name){if(""===a.all.service_id.value)return a.all.osmanager_id.gui.values.length=0,void n.forEach(function(l){return a.all[l].gui.rdonly=!0});this.rest.providers.service(a.all.service_id.value).subscribe(function(l){a.all.allow_users_reset.gui.rdonly=!l.info.can_reset,a.all.osmanager_id.gui.values.length=0,t.editing||(a.all.osmanager_id.gui.rdonly=!l.info.needs_manager),!0===l.info.needs_manager?t.rest.osManagers.overview().subscribe(function(c){c.forEach(function(h){h.servicesTypes.forEach(function(_){l.info.servicesTypeProvided.includes(_)&&a.all.osmanager_id.gui.values.push({id:h.id,text:h.name})})}),a.all.osmanager_id.value=a.all.osmanager_id.gui.values.length>0?a.all.osmanager_id.value||a.all.osmanager_id.gui.values[0].id:""}):(a.all.osmanager_id.gui.values.push({id:"",text:django.gettext("(This service does not requires an OS Manager)")}),a.all.osmanager_id.value=""),n.forEach(function(c){return a.all[c].gui.rdonly=!l.info.uses_cache}),a.all.cache_l2_srvs.gui.rdonly=!1===l.info.uses_cache||!1===l.info.uses_cache_l2,a.all.publish_on_save&&(a.all.publish_on_save.gui.rdonly=!l.info.needs_publication)}),n.forEach(function(l){a.all[l].gui.rdonly=!0})}},e.prototype.onNew=function(a){var t=this;this.editing=!1,this.api.gui.forms.typedNewForm(a,django.gettext("New service Pool"),!1,[{name:"publish_on_save",value:!0,gui:{label:django.gettext("Publish on creation"),tooltip:django.gettext("If selected, will initiate the publication inmediatly after creation"),type:Pl.CHECKBOX,order:150,defvalue:"true"}}]).subscribe(function(n){return t.onChange(n)})},e.prototype.onEdit=function(a){var t=this;this.editing=!0,this.api.gui.forms.typedEditForm(a,django.gettext("Edit Service Pool"),!1).subscribe(function(n){return t.onChange(n)})},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete service pool"))},e.prototype.processElement=function(a){a.visible=this.api.yesno(a.visible),a.show_transports=this.api.yesno(a.show_transports),a.restrained?(a.name='warning '+this.api.gui.icon(a.info.icon)+a.name,a.state="T"):(a.name=this.api.gui.icon(a.info.icon)+a.name,a.meta_member.length>0&&(a.state="V")),a.name=this.api.safeString(a.name),a.pool_group_name=this.api.safeString(this.api.gui.icon(a.pool_group_thumb)+a.pool_group_name)},e.prototype.onDetail=function(a){this.api.navigation.gotoServicePoolDetail(a.param.id)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools"]],decls:1,vars:7,consts:[["icon","pools",3,"rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",n.processElement)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-state, .mat-column-usage{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:10rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-cell{color:#d65014!important}"]}),e}();function Oce(e,a){if(1&e&&(A(0,"mat-option",8),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function Ice(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",9),ne("changed",function(l){return pe(t),J().userFilter=l}),E()}}function Rce(e,a){if(1&e&&(A(0,"mat-option",8),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}var ite=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.auths=[],this.users=[],this.userFilter="",this.userService=l.userService,this.userServices=l.userServices}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:t,userServices:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.rest.authenticators.summary().subscribe(function(t){a.auths=t,a.authChanged()})},e.prototype.changeAuth=function(a){this.userId="",this.authChanged()},e.prototype.filteredUsers=function(){var a=this;if(!this.userFilter)return this.users;var t=new Array;return this.users.forEach(function(n){(""===a.userFilter||n.name.toLocaleLowerCase().includes(a.userFilter.toLocaleLowerCase()))&&t.push(n)}),t},e.prototype.save=function(){var a=this;""!==this.userId&&""!==this.authId?this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},e.prototype.authChanged=function(){var a=this;this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(t){a.users=t})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Change owner of assigned service"),E(),E(),A(3,"mat-dialog-content"),A(4,"div",1),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),K(8,"Authenticator"),E(),E(),A(9,"mat-select",2),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),re(10,Oce,2,2,"mat-option",3),E(),E(),A(11,"mat-form-field"),A(12,"mat-label"),A(13,"uds-translate"),K(14,"User"),E(),E(),A(15,"mat-select",4),ne("ngModelChange",function(c){return n.userId=c}),re(16,Ice,1,0,"uds-mat-select-search",5),re(17,Rce,2,2,"mat-option",3),E(),E(),E(),E(),A(18,"mat-dialog-actions"),A(19,"button",6),A(20,"uds-translate"),K(21,"Cancel"),E(),E(),A(22,"button",7),ne("click",function(){return n.save()}),A(23,"uds-translate"),K(24,"Ok"),E(),E(),E()),2&t&&(H(9),z("ngModel",n.authId),H(1),z("ngForOf",n.auths),H(5),z("ngModel",n.userId),H(1),z("ngIf",n.users.length>10),H(1),z("ngForOf",n.filteredUsers()))},directives:[Wr,Hn,Fr,_r,Br,$a,Mt,mr,er,Kt,Qr,Rn,Lr,Pi,Vc],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function Lce(e,a){1&e&&(A(0,"uds-translate"),K(1,"New access rule for"),E())}function Fce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Edit access rule for"),E())}function Nce(e,a){1&e&&(A(0,"uds-translate"),K(1,"Default fallback access for"),E())}function Vce(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",11),ne("changed",function(l){return pe(t),J(2).calendarsFilter=l}),E()}}function Bce(e,a){if(1&e&&(A(0,"mat-option",12),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function Hce(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),A(3,"uds-translate"),K(4,"Priority"),E(),E(),A(5,"input",8),ne("ngModelChange",function(c){return pe(t),J().accessRule.priority=c}),E(),E(),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),K(9,"Calendar"),E(),E(),A(10,"mat-select",3),ne("ngModelChange",function(c){return pe(t),J().accessRule.calendarId=c}),re(11,Vce,1,0,"uds-mat-select-search",9),re(12,Bce,2,2,"mat-option",10),E(),E(),xn()}if(2&e){var n=J();H(5),z("ngModel",n.accessRule.priority),H(5),z("ngModel",n.accessRule.calendarId),H(1),z("ngIf",n.calendars.length>10),H(1),z("ngForOf",n.filtered(n.calendars,n.calendarsFilter))}}var cH=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.calendars=[],this.calendarsFilter="",this.pool=l.pool,this.model=l.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},l.accessRule&&(this.accessRule.id=l.accessRule.id)}return e.launch=function(a,t,n,l){var c=window.innerWidth<800?"80%":"60%";return a.gui.dialog.open(e,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:t,model:n,accessRule:l},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.calendars.summary().subscribe(function(t){a.calendars=t}),void 0!==this.accessRule.id&&-1!==this.accessRule.id?this.model.get(this.accessRule.id).subscribe(function(t){a.accessRule=t}):-1===this.accessRule.id&&this.model.parentModel.getFallbackAccess(this.pool.id).subscribe(function(t){return a.accessRule.access=t})},e.prototype.filtered=function(a,t){return t?a.filter(function(n){return n.name.toLocaleLowerCase().includes(t.toLocaleLowerCase())}):a},e.prototype.save=function(){var a=this,t=function(){a.dialogRef.close(),a.onSave.emit(!0)};-1!==this.accessRule.id?this.model.save(this.accessRule).subscribe(t):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).subscribe(t)},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModel","ngModelChange"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"h4",0),re(1,Lce,2,0,"uds-translate",1),re(2,Fce,2,0,"uds-translate",1),re(3,Nce,2,0,"uds-translate",1),K(4),E(),A(5,"mat-dialog-content"),A(6,"div",2),re(7,Hce,13,4,"ng-container",1),A(8,"mat-form-field"),A(9,"mat-label"),A(10,"uds-translate"),K(11,"Action"),E(),E(),A(12,"mat-select",3),ne("ngModelChange",function(c){return n.accessRule.access=c}),A(13,"mat-option",4),K(14," ALLOW "),E(),A(15,"mat-option",5),K(16," DENY "),E(),E(),E(),E(),E(),A(17,"mat-dialog-actions"),A(18,"button",6),A(19,"uds-translate"),K(20,"Cancel"),E(),E(),A(21,"button",7),ne("click",function(){return n.save()}),A(22,"uds-translate"),K(23,"Ok"),E(),E(),E()),2&t&&(H(1),z("ngIf",void 0===n.accessRule.id),H(1),z("ngIf",void 0!==n.accessRule.id&&-1!==n.accessRule.id),H(1),z("ngIf",-1===n.accessRule.id),H(1),Ve(" ",n.pool.name,"\n"),H(3),z("ngIf",-1!==n.accessRule.id),H(5),z("ngModel",n.accessRule.access))},directives:[Wr,Kt,Fr,_r,Br,Hn,$a,Mt,mr,Pi,Qr,Rn,Lr,Hi,zg,g,er,Vc],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function zce(e,a){if(1&e&&(A(0,"mat-option",8),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function Uce(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",9),ne("changed",function(l){return pe(t),J().groupFilter=l}),E()}}function Gce(e,a){if(1&e&&(vt(0),K(1),xn()),2&e){var t=J().$implicit;H(1),Ve(" (",t.comments,")")}}function jce(e,a){if(1&e&&(A(0,"mat-option",8),K(1),re(2,Gce,2,1,"ng-container",10),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name,""),H(1),z("ngIf",t.comments)}}var ate=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.model=null,this.auths=[],this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=l.pool,this.model=l.model}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:t,model:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.summary().subscribe(function(t){a.auths=t,a.authChanged()})},e.prototype.changeAuth=function(a){this.groupId="",this.authChanged()},e.prototype.filteredGroups=function(){var a=this;return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(function(t){return t.name.toLocaleLowerCase().includes(a.groupFilter.toLocaleLowerCase())})},e.prototype.save=function(){var a=this;""!==this.groupId&&""!==this.authId?this.model.create({id:this.groupId}).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"))},e.prototype.authChanged=function(){var a=this;""!==this.authId&&this.rest.authenticators.detail(this.authId,"groups").summary().subscribe(function(t){a.groups=t})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-add-group"]],decls:26,vars:6,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"],[4,"ngIf"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"New group for"),E(),K(3),E(),A(4,"mat-dialog-content"),A(5,"div",1),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),K(9,"Authenticator"),E(),E(),A(10,"mat-select",2),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),re(11,zce,2,2,"mat-option",3),E(),E(),A(12,"mat-form-field"),A(13,"mat-label"),A(14,"uds-translate"),K(15,"Group"),E(),E(),A(16,"mat-select",4),ne("ngModelChange",function(c){return n.groupId=c}),re(17,Uce,1,0,"uds-mat-select-search",5),re(18,jce,3,3,"mat-option",3),E(),E(),E(),E(),A(19,"mat-dialog-actions"),A(20,"button",6),A(21,"uds-translate"),K(22,"Cancel"),E(),E(),A(23,"button",7),ne("click",function(){return n.save()}),A(24,"uds-translate"),K(25,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.pool.name,"\n"),H(7),z("ngModel",n.authId),H(1),z("ngForOf",n.auths),H(5),z("ngModel",n.groupId),H(1),z("ngIf",n.groups.length>10),H(1),z("ngForOf",n.filteredGroups()))},directives:[Wr,Hn,Fr,_r,Br,$a,Mt,mr,er,Kt,Qr,Rn,Lr,Pi,Vc],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function Wce(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",7),ne("changed",function(l){return pe(t),J().transportsFilter=l}),E()}}function Yce(e,a){if(1&e&&(vt(0),K(1),xn()),2&e){var t=J().$implicit;H(1),Ve(" (",t.comments,")")}}function qce(e,a){if(1&e&&(A(0,"mat-option",8),K(1),re(2,Yce,2,1,"ng-container",9),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name,""),H(1),z("ngIf",t.comments)}}var Xce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.transports.summary().subscribe(function(t){a.transports=t.filter(function(n){return a.servicePool.info.allowedProtocols.includes(n.protocol)})})},e.prototype.filteredTransports=function(){var a=this;return this.transportsFilter?this.transports.filter(function(t){return t.name.toLocaleLowerCase().includes(a.transportsFilter.toLocaleLowerCase())}):this.transports},e.prototype.save=function(){var a=this;""!==this.transportId?this.rest.servicesPools.detail(this.servicePool.id,"transports").create({id:this.transportId}).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-add-transport"]],decls:20,vars:4,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[4,"ngIf"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"New transport for"),E(),K(3),E(),A(4,"mat-dialog-content"),A(5,"div",1),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),K(9,"Transport"),E(),E(),A(10,"mat-select",2),ne("ngModelChange",function(c){return n.transportId=c}),re(11,Wce,1,0,"uds-mat-select-search",3),re(12,qce,3,3,"mat-option",4),E(),E(),E(),E(),A(13,"mat-dialog-actions"),A(14,"button",5),A(15,"uds-translate"),K(16,"Cancel"),E(),E(),A(17,"button",6),ne("click",function(){return n.save()}),A(18,"uds-translate"),K(19,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.servicePool.name,"\n"),H(7),z("ngModel",n.transportId),H(1),z("ngIf",n.transports.length>10),H(1),z("ngForOf",n.filteredTransports()))},directives:[Wr,Hn,Fr,_r,Br,$a,Mt,mr,Kt,er,Qr,Rn,Lr,Vc,Pi],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),Zce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.reason="",this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){},e.prototype.save=function(){var a=this;this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-new-publication"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"New publication for"),E(),K(3),E(),A(4,"mat-dialog-content"),A(5,"div",1),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),K(9,"Comments"),E(),E(),A(10,"input",2),ne("ngModelChange",function(c){return n.reason=c}),E(),E(),E(),E(),A(11,"mat-dialog-actions"),A(12,"button",3),A(13,"uds-translate"),K(14,"Cancel"),E(),E(),A(15,"button",4),ne("click",function(){return n.save()}),A(16,"uds-translate"),K(17,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.servicePool.name,"\n"),H(7),z("ngModel",n.reason))},directives:[Wr,Hn,Fr,_r,Br,Hi,g,Mt,mr,Qr,Rn,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),Kce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1})},e.prototype.ngOnInit=function(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-publications-changelog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["icon","publications",3,"rest","allowExport","tableId"],["changeLog",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Changelog of"),E(),K(3),E(),A(4,"mat-dialog-content"),me(5,"uds-table",1,2),E(),A(7,"mat-dialog-actions"),A(8,"button",3),A(9,"uds-translate"),K(10,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.servicePool.name,"\n"),H(2),z("rest",n.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+n.servicePool.id))},directives:[Wr,Hn,Fr,Yr,Qr,Rn,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function $ce(e,a){1&e&&(vt(0),A(1,"uds-translate"),K(2,"Edit action for"),E(),xn())}function Qce(e,a){1&e&&(A(0,"uds-translate"),K(1,"New action for"),E())}function Jce(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",14),ne("changed",function(l){return pe(t),J().calendarsFilter=l}),E()}}function efe(e,a){if(1&e&&(A(0,"mat-option",15),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function tfe(e,a){if(1&e&&(A(0,"mat-option",15),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.description," ")}}function nfe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",14),ne("changed",function(l){return pe(t),J(2).transportsFilter=l}),E()}}function rfe(e,a){if(1&e&&(A(0,"mat-option",15),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function ife(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),A(3,"uds-translate"),K(4,"Transport"),E(),E(),A(5,"mat-select",4),ne("ngModelChange",function(c){return pe(t),J().paramValue=c}),re(6,nfe,1,0,"uds-mat-select-search",5),re(7,rfe,2,2,"mat-option",6),E(),E(),xn()}if(2&e){var n=J();H(5),z("ngModel",n.paramValue),H(1),z("ngIf",n.transports.length>10),H(1),z("ngForOf",n.filtered(n.transports,n.transportsFilter))}}function afe(e,a){if(1&e&&(A(0,"mat-option",15),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function ofe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",14),ne("changed",function(l){return pe(t),J(2).groupsFilter=l}),E()}}function sfe(e,a){if(1&e&&(A(0,"mat-option",15),K(1),E()),2&e){var t=a.$implicit;z("value",J(2).authenticator+"@"+t.id),H(1),Ve(" ",t.name," ")}}function lfe(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),A(3,"uds-translate"),K(4,"Authenticator"),E(),E(),A(5,"mat-select",10),ne("ngModelChange",function(c){return pe(t),J().authenticator=c})("valueChange",function(c){return pe(t),J().changedAuthenticator(c)}),re(6,afe,2,2,"mat-option",6),E(),E(),A(7,"mat-form-field"),A(8,"mat-label"),A(9,"uds-translate"),K(10,"Group"),E(),E(),A(11,"mat-select",4),ne("ngModelChange",function(c){return pe(t),J().paramValue=c}),re(12,ofe,1,0,"uds-mat-select-search",5),re(13,sfe,2,2,"mat-option",6),E(),E(),xn()}if(2&e){var n=J();H(5),z("ngModel",n.authenticator),H(1),z("ngForOf",n.authenticators),H(5),z("ngModel",n.paramValue),H(1),z("ngIf",n.groups.length>10),H(1),z("ngForOf",n.filtered(n.groups,n.groupsFilter))}}function ufe(e,a){if(1&e){var t=De();vt(0),A(1,"div",8),A(2,"span",16),K(3),E(),K(4,"\xa0 "),A(5,"mat-slide-toggle",4),ne("ngModelChange",function(c){return pe(t),J().paramValue=c}),E(),E(),xn()}if(2&e){var n=J();H(3),On(n.parameter.description),H(2),z("ngModel",n.paramValue)}}function cfe(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"input",17),ne("ngModelChange",function(c){return pe(t),J().paramValue=c}),E(),E(),xn()}if(2&e){var n=J();H(3),Ve(" ",n.parameter.description," "),H(1),z("type",n.parameter.type)("ngModel",n.paramValue)}}var ffe=function(){return["transport","group","bool"]},ote=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.calendars=[],this.actionList=[],this.authenticators=[],this.transports=[],this.groups=[],this.paramsDict={},this.calendarsFilter="",this.groupsFilter="",this.transportsFilter="",this.authenticator="",this.parameter={},this.paramValue="",this.servicePool=l.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendarId:"",atStart:!0,eventsOffset:0,params:{}},void 0!==l.scheduledAction&&(this.scheduledAction.id=l.scheduledAction.id)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t,scheduledAction:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.summary().subscribe(function(t){return a.authenticators=t}),this.rest.transports.summary().subscribe(function(t){return a.transports=t}),this.rest.calendars.summary().subscribe(function(t){return a.calendars=t}),this.rest.servicesPools.actionsList(this.servicePool.id).subscribe(function(t){a.actionList=t,a.actionList.forEach(function(n){a.paramsDict[n.id]=n.params[0]}),void 0!==a.scheduledAction.id&&a.rest.servicesPools.detail(a.servicePool.id,"actions").get(a.scheduledAction.id).subscribe(function(n){a.scheduledAction=n,a.changedAction(a.scheduledAction.action)})})},e.prototype.filtered=function(a,t){return t?a.filter(function(n){return n.name.toLocaleLowerCase().includes(t.toLocaleLowerCase())}):a},e.prototype.changedAction=function(a){if(this.parameter=this.paramsDict[a],void 0!==this.parameter&&(this.paramValue=this.scheduledAction.params[this.parameter.name],void 0===this.paramValue&&(this.paramValue=!1!==this.parameter.default&&(this.parameter.default||"")),"group"===this.parameter.type)){var t=this.paramValue.split("@");2!==t.length&&(t=["",""]),this.authenticator=t[0],this.changedAuthenticator(this.authenticator)}},e.prototype.changedAuthenticator=function(a){var t=this;!a||this.rest.authenticators.detail(a,"groups").summary().subscribe(function(n){return t.groups=n})},e.prototype.save=function(){var a=this;this.scheduledAction.params={},this.parameter&&(this.scheduledAction.params[this.parameter.name]=this.paramValue),this.rest.servicesPools.detail(this.servicePool.id,"actions").save(this.scheduledAction).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-scheduled-action"]],decls:42,vars:16,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["editTitle",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-atstart"],[3,"ngModel","ngModelChange","valueChange"],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[1,"label"],["matInput","",3,"type","ngModel","ngModelChange"]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,$ce,3,0,"ng-container",1),re(2,Qce,2,0,"ng-template",null,2,ml),K(4),E(),A(5,"mat-dialog-content"),A(6,"div",3),A(7,"mat-form-field"),A(8,"mat-label"),A(9,"uds-translate"),K(10,"Calendar"),E(),E(),A(11,"mat-select",4),ne("ngModelChange",function(h){return n.scheduledAction.calendarId=h}),re(12,Jce,1,0,"uds-mat-select-search",5),re(13,efe,2,2,"mat-option",6),E(),E(),A(14,"mat-form-field"),A(15,"mat-label"),A(16,"uds-translate"),K(17,"Events offset (minutes)"),E(),E(),A(18,"input",7),ne("ngModelChange",function(h){return n.scheduledAction.eventsOffset=h}),E(),E(),A(19,"div",8),A(20,"span",9),A(21,"uds-translate"),K(22,"At the beginning of the interval?"),E(),E(),A(23,"mat-slide-toggle",4),ne("ngModelChange",function(h){return n.scheduledAction.atStart=h}),K(24),E(),E(),A(25,"mat-form-field"),A(26,"mat-label"),A(27,"uds-translate"),K(28,"Action"),E(),E(),A(29,"mat-select",10),ne("ngModelChange",function(h){return n.scheduledAction.action=h})("valueChange",function(h){return n.changedAction(h)}),re(30,tfe,2,2,"mat-option",6),E(),E(),re(31,ife,8,3,"ng-container",11),re(32,lfe,14,5,"ng-container",11),re(33,ufe,6,2,"ng-container",11),re(34,cfe,5,3,"ng-container",11),E(),E(),A(35,"mat-dialog-actions"),A(36,"button",12),A(37,"uds-translate"),K(38,"Cancel"),E(),E(),A(39,"button",13),ne("click",function(){return n.save()}),A(40,"uds-translate"),K(41,"Ok"),E(),E(),E()),2&t){var l=Pn(3);H(1),z("ngIf",void 0!==n.scheduledAction.id)("ngIfElse",l),H(3),Ve(" ",n.servicePool.name,"\n"),H(7),z("ngModel",n.scheduledAction.calendarId),H(1),z("ngIf",n.calendars.length>10),H(1),z("ngForOf",n.filtered(n.calendars,n.calendarsFilter)),H(5),z("ngModel",n.scheduledAction.eventsOffset),H(5),z("ngModel",n.scheduledAction.atStart),H(1),Ve(" ",n.api.yesno(n.scheduledAction.atStart)," "),H(5),z("ngModel",n.scheduledAction.action),H(1),z("ngForOf",n.actionList),H(1),z("ngIf","transport"===(null==n.parameter?null:n.parameter.type)),H(1),z("ngIf","group"===(null==n.parameter?null:n.parameter.type)),H(1),z("ngIf","bool"===(null==n.parameter?null:n.parameter.type)),H(1),z("ngIf",(null==n.parameter?null:n.parameter.type)&&!rw(15,ffe).includes(n.parameter.type))}},directives:[Wr,Kt,Fr,_r,Br,Hn,$a,Mt,mr,er,Hi,zg,g,fk,Qr,Rn,Lr,Vc,Pi],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.label-atstart[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}(),dX=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.userService=l.userService,this.model=l.model}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:t,model:n},disableClose:!1})},e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-userservices-log"]],decls:10,vars:4,consts:[["mat-dialog-title",""],[3,"rest","itemId","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Logs of"),E(),K(3),E(),A(4,"mat-dialog-content"),me(5,"uds-logs-table",1),E(),A(6,"mat-dialog-actions"),A(7,"button",2),A(8,"uds-translate"),K(9,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.userService.name,"\n"),H(2),z("rest",n.model)("itemId",n.userService.id)("tableId","servicePools-d-uslog"+n.userService.id))},directives:[Wr,Hn,Fr,ck,Qr,Rn,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function dfe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",8),ne("changed",function(l){return pe(t),J().assignablesServicesFilter=l}),E()}}function hfe(e,a){if(1&e&&(A(0,"mat-option",9),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.text," ")}}function pfe(e,a){if(1&e&&(A(0,"mat-option",9),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function vfe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",8),ne("changed",function(l){return pe(t),J().userFilter=l}),E()}}function gfe(e,a){if(1&e&&(A(0,"mat-option",9),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}var mfe=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.authId="",this.userId="",this.rest.authenticators.summary().subscribe(function(t){a.auths=t,a.authChanged()}),this.rest.servicesPools.listAssignables(this.servicePool.id).subscribe(function(t){a.assignablesServices=t})},e.prototype.changeAuth=function(a){this.userId="",this.authChanged()},e.prototype.filteredUsers=function(){var a=this;if(!this.userFilter)return this.users;var t=new Array;return this.users.forEach(function(n){n.name.toLocaleLowerCase().includes(a.userFilter.toLocaleLowerCase())&&t.push(n)}),t},e.prototype.filteredAssignables=function(){var a=this;if(!this.assignablesServicesFilter)return this.assignablesServices;var t=new Array;return this.assignablesServices.forEach(function(n){n.text.toLocaleLowerCase().includes(a.assignablesServicesFilter.toLocaleLowerCase())&&t.push(n)}),t},e.prototype.save=function(){var a=this;""!==this.userId&&""!==this.authId?this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).subscribe(function(t){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},e.prototype.authChanged=function(){var a=this;this.authId&&this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(t){a.users=t})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange","selectionChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),K(2,"Assign service to user manually"),E(),E(),A(3,"mat-dialog-content"),A(4,"div",1),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),K(8,"Service"),E(),E(),A(9,"mat-select",2),ne("ngModelChange",function(c){return n.serviceId=c}),re(10,dfe,1,0,"uds-mat-select-search",3),re(11,hfe,2,2,"mat-option",4),E(),E(),A(12,"mat-form-field"),A(13,"mat-label"),A(14,"uds-translate"),K(15,"Authenticator"),E(),E(),A(16,"mat-select",5),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),re(17,pfe,2,2,"mat-option",4),E(),E(),A(18,"mat-form-field"),A(19,"mat-label"),A(20,"uds-translate"),K(21,"User"),E(),E(),A(22,"mat-select",2),ne("ngModelChange",function(c){return n.userId=c}),re(23,vfe,1,0,"uds-mat-select-search",3),re(24,gfe,2,2,"mat-option",4),E(),E(),E(),E(),A(25,"mat-dialog-actions"),A(26,"button",6),A(27,"uds-translate"),K(28,"Cancel"),E(),E(),A(29,"button",7),ne("click",function(){return n.save()}),A(30,"uds-translate"),K(31,"Ok"),E(),E(),E()),2&t&&(H(9),z("ngModel",n.serviceId),H(1),z("ngIf",n.assignablesServices.length>10),H(1),z("ngForOf",n.filteredAssignables()),H(5),z("ngModel",n.authId),H(1),z("ngForOf",n.auths),H(5),z("ngModel",n.userId),H(1),z("ngIf",n.users.length>10),H(1),z("ngForOf",n.filteredUsers()))},directives:[Wr,Hn,Fr,_r,Br,$a,Mt,mr,Kt,er,Qr,Rn,Lr,Vc,Pi],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),_fe=function(){function e(a){this.rest=a,this.chart=null}return e.prototype.onResize=function(a){this.chart&&this.chart.resize()},e.prototype.ngOnInit=function(){var a=this;this.rest.system.stats("complete",this.poolUuid).subscribe(function(t){a.options={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:t.assigned.map(function(n){return Lu("SHORT_DATETIME_FORMAT",new Date(n.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.assigned.map(function(n){return n.value})},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.cached.map(function(n){return n.value})},{name:django.gettext("In use"),type:"line",smooth:!0,data:t.inuse.map(function(n){return n.value})}]}})},e.prototype.chartInit=function(a){this.chart=a},e.\u0275fac=function(t){return new(t||e)(N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-charts"]],hostBindings:function(t,n){1&t&&ne("resize",function(c){return n.onResize(c)},!1,A0)},inputs:{poolUuid:"poolUuid"},decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","","theme","dark-digerati",3,"options","chartInit"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),ne("chartInit",function(c){return n.chartInit(c)}),E(),E()),2&t&&(H(1),z("options",n.options))},directives:[ZJ],styles:[""]}),e}();function yfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Summary"),E())}function bfe(e,a){if(1&e&&me(0,"uds-information",21),2&e){var t=J(2);z("value",t.servicePool)("gui",t.gui)}}function Cfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Assigned services"),E())}function wfe(e,a){if(1&e){var t=De();A(0,"uds-table",22),ne("customButtonAction",function(c){return pe(t),J(2).onCustomAssigned(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteAssigned(c)}),E()}if(2&e){var n=J(2);z("rest",n.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",n.processsAssignedElement)("tableId","servicePools-d-services"+n.servicePool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size)}}function Sfe(e,a){if(1&e){var t=De();A(0,"uds-table",23),ne("customButtonAction",function(c){return pe(t),J(2).onCustomAssigned(c)})("newAction",function(c){return pe(t),J(2).onNewAssigned(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteAssigned(c)}),E()}if(2&e){var n=J(2);z("rest",n.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",n.processsAssignedElement)("tableId","servicePools-d-services"+n.servicePool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size)}}function kfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Cache"),E())}function Mfe(e,a){if(1&e){var t=De();A(0,"mat-tab"),re(1,kfe,2,0,"ng-template",9),A(2,"div",10),A(3,"uds-table",24),ne("customButtonAction",function(c){return pe(t),J(2).onCustomCached(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteCache(c)}),E(),E(),E()}if(2&e){var n=J(2);H(3),z("rest",n.cache)("multiSelect",!0)("allowExport",!0)("onItem",n.processsCacheElement)("tableId","servicePools-d-cache"+n.servicePool.id)("customButtons",n.customButtonsCachedServices)("pageSize",n.api.config.admin.page_size)}}function xfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Groups"),E())}function Tfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Transports"),E())}function Dfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Publications"),E())}function Afe(e,a){if(1&e){var t=De();A(0,"mat-tab"),re(1,Dfe,2,0,"ng-template",9),A(2,"div",10),A(3,"uds-table",25),ne("customButtonAction",function(c){return pe(t),J(2).onCustomPublication(c)})("newAction",function(c){return pe(t),J(2).onNewPublication(c)})("rowSelected",function(c){return pe(t),J(2).onPublicationRowSelect(c)}),E(),E(),E()}if(2&e){var n=J(2);H(3),z("rest",n.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+n.servicePool.id)("customButtons",n.customButtonsPublication)("pageSize",n.api.config.admin.page_size)}}function Efe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Scheduled actions"),E())}function Pfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Access calendars"),E())}function Ofe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Charts"),E())}function Ife(e,a){1&e&&(A(0,"uds-translate"),K(1,"Logs"),E())}function Rfe(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),ne("selectedIndexChange",function(h){return pe(t),J().selectedTab=h}),A(3,"mat-tab"),re(4,yfe,2,0,"ng-template",9),A(5,"div",10),re(6,bfe,1,2,"uds-information",11),E(),E(),A(7,"mat-tab"),re(8,Cfe,2,0,"ng-template",9),A(9,"div",10),re(10,wfe,1,7,"uds-table",12),re(11,Sfe,1,7,"ng-template",null,13,ml),E(),E(),re(13,Mfe,4,7,"mat-tab",14),A(14,"mat-tab"),re(15,xfe,2,0,"ng-template",9),A(16,"div",10),A(17,"uds-table",15),ne("newAction",function(h){return pe(t),J().onNewGroup(h)})("deleteAction",function(h){return pe(t),J().onDeleteGroup(h)}),E(),E(),E(),A(18,"mat-tab"),re(19,Tfe,2,0,"ng-template",9),A(20,"div",10),A(21,"uds-table",16),ne("newAction",function(h){return pe(t),J().onNewTransport(h)})("deleteAction",function(h){return pe(t),J().onDeleteTransport(h)}),E(),E(),E(),re(22,Afe,4,6,"mat-tab",14),A(23,"mat-tab"),re(24,Efe,2,0,"ng-template",9),A(25,"div",10),A(26,"uds-table",17),ne("customButtonAction",function(h){return pe(t),J().onCustomScheduleAction(h)})("newAction",function(h){return pe(t),J().onNewScheduledAction(h)})("editAction",function(h){return pe(t),J().onEditScheduledAction(h)})("deleteAction",function(h){return pe(t),J().onDeleteScheduledAction(h)}),E(),E(),E(),A(27,"mat-tab"),re(28,Pfe,2,0,"ng-template",9),A(29,"div",10),A(30,"uds-table",18),ne("newAction",function(h){return pe(t),J().onNewAccessCalendar(h)})("editAction",function(h){return pe(t),J().onEditAccessCalendar(h)})("deleteAction",function(h){return pe(t),J().onDeleteAccessCalendar(h)})("loaded",function(h){return pe(t),J().onAccessCalendarLoad(h)}),E(),E(),E(),A(31,"mat-tab"),re(32,Ofe,2,0,"ng-template",9),A(33,"div",10),me(34,"uds-service-pools-charts",19),E(),E(),A(35,"mat-tab"),re(36,Ife,2,0,"ng-template",9),A(37,"div",10),me(38,"uds-logs-table",20),E(),E(),E(),E(),E()}if(2&e){var n=Pn(12),l=J();H(2),z("selectedIndex",l.selectedTab)("@.disabled",!0),H(4),z("ngIf",l.servicePool&&l.gui),H(4),z("ngIf",!1===l.servicePool.info.must_assign_manually)("ngIfElse",n),H(3),z("ngIf",l.cache),H(4),z("rest",l.groups)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonsGroups)("tableId","servicePools-d-groups"+l.servicePool.id)("pageSize",l.api.config.admin.page_size),H(4),z("rest",l.transports)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonsTransports)("tableId","servicePools-d-transports"+l.servicePool.id)("pageSize",l.api.config.admin.page_size),H(1),z("ngIf",l.publications),H(4),z("rest",l.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+l.servicePool.id)("customButtons",l.customButtonsScheduledAction)("onItem",l.processsCalendarOrScheduledElement)("pageSize",l.api.config.admin.page_size),H(4),z("rest",l.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonAccessCalendars)("tableId","servicePools-d-access"+l.servicePool.id)("onItem",l.processsCalendarOrScheduledElement)("pageSize",l.api.config.admin.page_size),H(4),z("poolUuid",l.servicePool.id),H(4),z("rest",l.rest.servicesPools)("itemId",l.servicePool.id)("tableId","servicePools-d-log"+l.servicePool.id)("pageSize",l.api.config.admin.page_size)}}var Lfe=function(e){return["/pools","service-pools",e]},hX='event'+django.gettext("Logs")+"",Ffe='computer'+django.gettext("VNC")+"",Nfe='schedule'+django.gettext("Launch now")+"",ste='perm_identity'+django.gettext("Change owner")+"",Vfe='perm_identity'+django.gettext("Assign service")+"",Bfe='cancel'+django.gettext("Cancel")+"",Hfe='event'+django.gettext("Changelog")+"",lte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtonsScheduledAction=[{id:"launch-action",html:Nfe,type:Jr.SINGLE_SELECT},Il.getGotoButton(Bq,"calendarId")],this.customButtonAccessCalendars=[Il.getGotoButton(Bq,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:ste,type:Jr.SINGLE_SELECT},{id:"log",html:hX,type:Jr.SINGLE_SELECT},Il.getGotoButton(Vq,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:hX,type:Jr.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:Bfe,type:Jr.SINGLE_SELECT},{id:"changelog",html:Hfe,type:Jr.ALWAYS}],this.customButtonsGroups=[Il.getGotoButton("group","auth_id","id")],this.customButtonsTransports=[Il.getGotoButton(CJ,"id")],this.servicePool=null,this.gui=null,this.selectedTab=1}return e.cleanInvalidSelections=function(a){return a.table.selection.selected.filter(function(t){return["E","R","M","S","C"].includes(t.state)}).forEach(function(t){return a.table.selection.deselect(t)}),a.table.selection.isEmpty()},e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("pool");this.assignedServices=this.rest.servicesPools.detail(t,"services"),this.groups=this.rest.servicesPools.detail(t,"groups"),this.transports=this.rest.servicesPools.detail(t,"transports"),this.scheduledActions=this.rest.servicesPools.detail(t,"actions"),this.accessCalendars=this.rest.servicesPools.detail(t,"access"),this.rest.servicesPools.get(t).subscribe(function(n){a.servicePool=n,a.cache=a.servicePool.info.uses_cache?a.rest.servicesPools.detail(t,"cache"):null,a.publications=a.servicePool.info.needs_publication?a.rest.servicesPools.detail(t,"publications"):null,a.api.config.admin.vnc_userservices&&a.customButtonsAssignedServices.push({id:"vnc",html:Ffe,type:Jr.ONLY_MENU}),a.servicePool.info.can_list_assignables&&a.customButtonsAssignedServices.push({id:"assign-service",html:Vfe,type:Jr.ALWAYS}),a.rest.servicesPools.gui().subscribe(function(l){a.gui=l.filter(function(c){return!(!1===a.servicePool.info.uses_cache&&["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"].includes(c.name)||!1===a.servicePool.info.uses_cache_l2&&"cache_l2_srvs"===c.name||!1===a.servicePool.info.needs_manager&&"osmanager_id"===c.name)})})})},e.prototype.onNewAssigned=function(a){},e.prototype.vnc=function(a){var n=new Blob(["[connection]\nhost="+a.ip+"\nport=5900\n"],{type:"application/extension-vnc"});setTimeout(function(){(0,sX.saveAs)(n,a.ip+".vnc")},100)},e.prototype.onCustomAssigned=function(a){var t=a.table.selection.selected[0];if("change-owner"===a.param.id){if(["E","R","M","S","C"].includes(t.state))return;ite.launch(this.api,t,this.assignedServices).subscribe(function(n){return a.table.overview()})}else"log"===a.param.id?dX.launch(this.api,t,this.assignedServices):"assign-service"===a.param.id?mfe.launch(this.api,this.servicePool).subscribe(function(n){return a.table.overview()}):"vnc"===a.param.id&&this.vnc(t)},e.prototype.onCustomCached=function(a){"log"===a.param.id&&dX.launch(this.api,a.table.selection.selected[0],this.cache)},e.prototype.processsAssignedElement=function(a){a.in_use=this.api.yesno(a.in_use),a.origState=a.state,"U"===a.state&&(a.state=""!==a.os_state&&"U"!==a.os_state?"Z":"U")},e.prototype.onDeleteAssigned=function(a){e.cleanInvalidSelections(a)||this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned service"))},e.prototype.onDeleteCache=function(a){e.cleanInvalidSelections(a)||this.api.gui.forms.deleteForm(a,django.gettext("Delete cached service"))},e.prototype.processsCacheElement=function(a){a.origState=a.state,"U"===a.state&&(a.state=""!==a.os_state&&"U"!==a.os_state?"Z":"U")},e.prototype.onNewGroup=function(a){ate.launch(this.api,this.servicePool,this.groups).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteGroup=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned group"))},e.prototype.onNewTransport=function(a){Xce.launch(this.api,this.servicePool).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteTransport=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned transport"))},e.prototype.onNewPublication=function(a){Zce.launch(this.api,this.servicePool).subscribe(function(t){a.table.overview()})},e.prototype.onPublicationRowSelect=function(a){1===a.table.selection.selected.length&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(a.table.selection.selected[0].state))},e.prototype.onCustomPublication=function(a){var t=this;"cancel-publication"===a.param.id?this.api.gui.yesno(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).subscribe(function(n){n&&t.publications.invoke(a.table.selection.selected[0].id+"/cancel").subscribe(function(l){t.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()})}):"changelog"===a.param.id&&Kce.launch(this.api,this.servicePool)},e.prototype.onNewScheduledAction=function(a){ote.launch(this.api,this.servicePool).subscribe(function(t){return a.table.overview()})},e.prototype.onEditScheduledAction=function(a){ote.launch(this.api,this.servicePool,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteScheduledAction=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete scheduled action"))},e.prototype.onCustomScheduleAction=function(a){var t=this;this.api.gui.yesno(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).subscribe(function(n){n&&t.scheduledActions.invoke(a.table.selection.selected[0].id+"/execute").subscribe(function(){t.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()})})},e.prototype.onNewAccessCalendar=function(a){cH.launch(this.api,this.servicePool,this.accessCalendars).subscribe(function(t){return a.table.overview()})},e.prototype.onEditAccessCalendar=function(a){cH.launch(this.api,this.servicePool,this.accessCalendars,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteAccessCalendar=function(a){-1!==a.table.selection.selected[0].id?this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(a)},e.prototype.onAccessCalendarLoad=function(a){var t=this;this.rest.servicesPools.getFallbackAccess(this.servicePool.id).subscribe(function(n){var l=a.table.dataSource.data.filter(function(c){return!0});l.push({id:-1,calendar:"-",priority:t.api.safeString('10000000FallBack'),access:n}),a.table.dataSource.data=l})},e.prototype.processsCalendarOrScheduledElement=function(a){a.name=a.calendar,a.atStart=this.api.yesno(a.atStart)},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-service-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction",4,"ngIf","ngIfElse"],["manually_assigned",""],[4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","transports",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","customButtonAction","newAction","editAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","newAction","editAction","deleteAction","loaded"],[3,"poolUuid"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","newAction","deleteAction"],["icon","cached",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","publications",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","newAction","rowSelected"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,Rfe,39,38,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,Lfe,n.servicePool?n.servicePool.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/pools.png"),Gt),H(1),Ve(" \xa0",null==n.servicePool?null:n.servicePool.name," "),H(1),z("ngIf",null!==n.servicePool))},directives:[xl,Kt,Nc,Ru,Fc,Yr,_fe,ck,Hn,lH],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-revision, .mat-column-cache_level, .mat-column-in_use, .mat-column-priority{max-width:7rem;justify-content:center} .mat-column-creation_date, .mat-column-state_date, .mat-column-publish_date, .mat-column-trans_type, .mat-column-access{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word} .row-state-S>.mat-cell{color:gray!important} .row-state-C>.mat-cell{color:gray!important} .row-state-E>.mat-cell{color:red!important} .row-state-R>.mat-cell{color:orange!important}"]}),e}(),ute=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New meta pool"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit meta pool"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete meta pool"))},e.prototype.onDetail=function(a){this.api.navigation.gotoMetapoolDetail(a.param.id)},e.prototype.processElement=function(a){a.visible=this.api.yesno(a.visible),a.name=this.api.safeString(this.api.gui.icon(a.thumb)+a.name),a.pool_group_name=this.api.safeString(this.api.gui.icon(a.pool_group_thumb)+a.pool_group_name)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(kr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-meta-pools"]],decls:2,vars:6,consts:[["icon","metas",3,"rest","multiSelect","allowExport","onItem","hasPermissions","pageSize","detailAction","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("detailAction",function(c){return n.onDetail(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-pool_group_name{max-width:7rem;justify-content:center}"]}),e}();function zfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"New member pool"),E())}function Ufe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Edit member pool"),E())}function Gfe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",11),ne("changed",function(l){return pe(t),J().servicePoolsFilter=l}),E()}}function jfe(e,a){if(1&e&&(A(0,"mat-option",12),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}var cte=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.servicePools=[],this.servicePoolsFilter="",this.model=l.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},l.memberPool&&(this.memberPool.id=l.memberPool.id)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:n,model:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.servicesPools.summary().subscribe(function(t){return a.servicePools=t}),this.memberPool.id&&this.model.get(this.memberPool.id).subscribe(function(t){return a.memberPool=t})},e.prototype.filtered=function(a,t){return t?a.filter(function(n){return n.name.toLocaleLowerCase().includes(t.toLocaleLowerCase())}):a},e.prototype.save=function(){var a=this;this.memberPool.pool_id?this.model.save(this.memberPool).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"h4",0),re(1,zfe,2,0,"uds-translate",1),re(2,Ufe,2,0,"uds-translate",1),E(),A(3,"mat-dialog-content"),A(4,"div",2),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),K(8,"Priority"),E(),E(),A(9,"input",3),ne("ngModelChange",function(c){return n.memberPool.priority=c}),E(),E(),A(10,"mat-form-field"),A(11,"mat-label"),A(12,"uds-translate"),K(13,"Service pool"),E(),E(),A(14,"mat-select",4),ne("ngModelChange",function(c){return n.memberPool.pool_id=c}),re(15,Gfe,1,0,"uds-mat-select-search",5),re(16,jfe,2,2,"mat-option",6),E(),E(),A(17,"div",7),A(18,"span",8),A(19,"uds-translate"),K(20,"Enabled?"),E(),E(),A(21,"mat-slide-toggle",4),ne("ngModelChange",function(c){return n.memberPool.enabled=c}),K(22),E(),E(),E(),E(),A(23,"mat-dialog-actions"),A(24,"button",9),A(25,"uds-translate"),K(26,"Cancel"),E(),E(),A(27,"button",10),ne("click",function(){return n.save()}),A(28,"uds-translate"),K(29,"Ok"),E(),E(),E()),2&t&&(H(1),z("ngIf",!(null!=n.memberPool&&n.memberPool.id)),H(1),z("ngIf",null==n.memberPool?null:n.memberPool.id),H(7),z("ngModel",n.memberPool.priority),H(5),z("ngModel",n.memberPool.pool_id),H(1),z("ngIf",n.servicePools.length>10),H(1),z("ngForOf",n.filtered(n.servicePools,n.servicePoolsFilter)),H(5),z("ngModel",n.memberPool.enabled),H(1),Ve(" ",n.api.yesno(n.memberPool.enabled)," "))},directives:[Wr,Kt,Fr,_r,Br,Hn,Hi,zg,g,Mt,mr,$a,er,fk,Qr,Rn,Lr,Vc,Pi],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}();function Wfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Summary"),E())}function Yfe(e,a){if(1&e&&me(0,"uds-information",17),2&e){var t=J(2);z("value",t.metaPool)("gui",t.gui)}}function qfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Service pools"),E())}function Xfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Assigned services"),E())}function Zfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Groups"),E())}function Kfe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Access calendars"),E())}function $fe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Logs"),E())}function Qfe(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return pe(t),J().selectedTab=c}),A(3,"mat-tab"),re(4,Wfe,2,0,"ng-template",9),A(5,"div",10),re(6,Yfe,1,2,"uds-information",11),E(),E(),A(7,"mat-tab"),re(8,qfe,2,0,"ng-template",9),A(9,"div",10),A(10,"uds-table",12),ne("newAction",function(c){return pe(t),J().onNewMemberPool(c)})("editAction",function(c){return pe(t),J().onEditMemberPool(c)})("deleteAction",function(c){return pe(t),J().onDeleteMemberPool(c)}),E(),E(),E(),A(11,"mat-tab"),re(12,Xfe,2,0,"ng-template",9),A(13,"div",10),A(14,"uds-table",13),ne("customButtonAction",function(c){return pe(t),J().onCustomAssigned(c)})("deleteAction",function(c){return pe(t),J().onDeleteAssigned(c)}),E(),E(),E(),A(15,"mat-tab"),re(16,Zfe,2,0,"ng-template",9),A(17,"div",10),A(18,"uds-table",14),ne("newAction",function(c){return pe(t),J().onNewGroup(c)})("deleteAction",function(c){return pe(t),J().onDeleteGroup(c)}),E(),E(),E(),A(19,"mat-tab"),re(20,Kfe,2,0,"ng-template",9),A(21,"div",10),A(22,"uds-table",15),ne("newAction",function(c){return pe(t),J().onNewAccessCalendar(c)})("editAction",function(c){return pe(t),J().onEditAccessCalendar(c)})("deleteAction",function(c){return pe(t),J().onDeleteAccessCalendar(c)})("loaded",function(c){return pe(t),J().onAccessCalendarLoad(c)}),E(),E(),E(),A(23,"mat-tab"),re(24,$fe,2,0,"ng-template",9),A(25,"div",10),me(26,"uds-logs-table",16),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("selectedIndex",n.selectedTab)("@.disabled",!0),H(4),z("ngIf",n.metaPool&&n.gui),H(4),z("rest",n.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("customButtons",n.customButtons)("tableId","metaPools-d-members"+n.metaPool.id)("pageSize",n.api.config.admin.page_size),H(4),z("rest",n.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+n.metaPool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size),H(4),z("rest",n.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+n.metaPool.id)("pageSize",n.api.config.admin.page_size),H(4),z("rest",n.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+n.metaPool.id)("pageSize",n.api.config.admin.page_size)("onItem",n.processsCalendarItem),H(4),z("rest",n.rest.metaPools)("itemId",n.metaPool.id)("tableId","metaPools-d-log"+n.metaPool.id)("pageSize",n.api.config.admin.page_size)}}var Jfe=function(e){return["/pools","meta-pools",e]},ede=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[Il.getGotoButton(Nq,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:ste,type:Jr.SINGLE_SELECT},{id:"log",html:hX,type:Jr.SINGLE_SELECT},Il.getGotoButton(Vq,"owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("metapool");this.rest.metaPools.get(t).subscribe(function(n){a.metaPool=n,a.rest.metaPools.gui().subscribe(function(l){a.gui=l}),a.memberPools=a.rest.metaPools.detail(t,"pools"),a.memberUserServices=a.rest.metaPools.detail(t,"services"),a.groups=a.rest.metaPools.detail(t,"groups"),a.accessCalendars=a.rest.metaPools.detail(t,"access")})},e.prototype.onNewMemberPool=function(a){cte.launch(this.api,this.memberPools).subscribe(function(){return a.table.overview()})},e.prototype.onEditMemberPool=function(a){cte.launch(this.api,this.memberPools,a.table.selection.selected[0]).subscribe(function(){return a.table.overview()})},e.prototype.onDeleteMemberPool=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Remove member pool"))},e.prototype.onCustomAssigned=function(a){var t=a.table.selection.selected[0];if("change-owner"===a.param.id){if(["E","R","M","S","C"].includes(t.state))return;ite.launch(this.api,t,this.memberUserServices).subscribe(function(n){return a.table.overview()})}else"log"===a.param.id&&dX.launch(this.api,t,this.memberUserServices)},e.prototype.onDeleteAssigned=function(a){lte.cleanInvalidSelections(a)||this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned service"))},e.prototype.onNewGroup=function(a){ate.launch(this.api,this.metaPool.id,this.groups).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteGroup=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned group"))},e.prototype.onNewAccessCalendar=function(a){cH.launch(this.api,this.metaPool,this.accessCalendars).subscribe(function(t){return a.table.overview()})},e.prototype.onEditAccessCalendar=function(a){cH.launch(this.api,this.metaPool,this.accessCalendars,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteAccessCalendar=function(a){console.log("ID",a.table.selection.selected[0].id),-1!==a.table.selection.selected[0].id?this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(a)},e.prototype.onAccessCalendarLoad=function(a){var t=this;this.rest.metaPools.getFallbackAccess(this.metaPool.id).subscribe(function(n){var l=a.table.dataSource.data.filter(function(c){return!0});l.push({id:-1,calendar:"-",priority:t.api.safeString('10000000FallBack'),access:n}),a.table.dataSource.data=l})},e.prototype.processElement=function(a){a.enabled=this.api.yesno(a.enabled)},e.prototype.processsCalendarItem=function(a){a.name=a.calendar,a.atStart=this.api.yesno(a.atStart)},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-meta-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","customButtons","tableId","pageSize","newAction","editAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","groups",3,"rest","multiSelect","allowExport","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","pageSize","onItem","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,Qfe,27,31,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,Jfe,n.metaPool?n.metaPool.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/metas.png"),Gt),H(1),Ve(" ",null==n.metaPool?null:n.metaPool.name," "),H(1),z("ngIf",n.metaPool))},directives:[xl,Kt,Nc,Ru,Fc,Yr,ck,Hn,lH],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),e}(),fte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New pool group"),!1).subscribe(function(t){return a.table.overview()})},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit pool group"),!1).subscribe(function(t){return a.table.overview()})},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete pool group"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),e}(),dte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New calendar"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit calendar"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar"))},e.prototype.onDetail=function(a){this.api.navigation.gotoCalendarDetail(a.param.id)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[""]}),e}(),tde=["mat-calendar-body",""];function nde(e,a){if(1&e&&(A(0,"tr",2),A(1,"td",3),K(2),E(),E()),2&e){var t=J();H(1),Ur("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Ke("colspan",t.numCols),H(1),Ve(" ",t.label," ")}}function rde(e,a){if(1&e&&(A(0,"td",3),K(1),E()),2&e){var t=J(2);Ur("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Ke("colspan",t._firstRowOffset),H(1),Ve(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function ide(e,a){if(1&e){var t=De();A(0,"td",7),ne("click",function(C){var D=pe(t).$implicit;return J(2)._cellClicked(D,C)}),A(1,"div",8),K(2),E(),me(3,"div",9),E()}if(2&e){var n=a.$implicit,l=a.index,c=J().index,h=J();Ur("width",h._cellWidth)("padding-top",h._cellPadding)("padding-bottom",h._cellPadding),dt("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",h._isActiveCell(c,l))("mat-calendar-body-range-start",h._isRangeStart(n.compareValue))("mat-calendar-body-range-end",h._isRangeEnd(n.compareValue))("mat-calendar-body-in-range",h._isInRange(n.compareValue))("mat-calendar-body-comparison-bridge-start",h._isComparisonBridgeStart(n.compareValue,c,l))("mat-calendar-body-comparison-bridge-end",h._isComparisonBridgeEnd(n.compareValue,c,l))("mat-calendar-body-comparison-start",h._isComparisonStart(n.compareValue))("mat-calendar-body-comparison-end",h._isComparisonEnd(n.compareValue))("mat-calendar-body-in-comparison-range",h._isInComparisonRange(n.compareValue))("mat-calendar-body-preview-start",h._isPreviewStart(n.compareValue))("mat-calendar-body-preview-end",h._isPreviewEnd(n.compareValue))("mat-calendar-body-in-preview",h._isInPreview(n.compareValue)),z("ngClass",n.cssClasses)("tabindex",h._isActiveCell(c,l)?0:-1),Ke("data-mat-row",c)("data-mat-col",l)("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-selected",h._isSelected(n.compareValue)),H(1),dt("mat-calendar-body-selected",h._isSelected(n.compareValue))("mat-calendar-body-comparison-identical",h._isComparisonIdentical(n.compareValue))("mat-calendar-body-today",h.todayValue===n.compareValue),H(1),Ve(" ",n.displayValue," ")}}function ade(e,a){if(1&e&&(A(0,"tr",4),re(1,rde,2,6,"td",5),re(2,ide,4,46,"td",6),E()),2&e){var t=a.$implicit,n=a.index,l=J();H(1),z("ngIf",0===n&&l._firstRowOffset),H(1),z("ngForOf",t)}}function ode(e,a){if(1&e&&(A(0,"th",5),A(1,"abbr",6),K(2),E(),E()),2&e){var t=a.$implicit;Ke("aria-label",t.long),H(1),Ke("title",t.long),H(1),On(t.narrow)}}var hte=["*"];function sde(e,a){}function lde(e,a){if(1&e){var t=De();A(0,"mat-month-view",5),ne("activeDateChange",function(c){return pe(t),J().activeDate=c})("_userSelection",function(c){return pe(t),J()._dateSelected(c)}),E()}if(2&e){var n=J();z("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)}}function ude(e,a){if(1&e){var t=De();A(0,"mat-year-view",6),ne("activeDateChange",function(c){return pe(t),J().activeDate=c})("monthSelected",function(c){return pe(t),J()._monthSelectedInYearView(c)})("selectedChange",function(c){return pe(t),J()._goToDateInView(c,"month")}),E()}if(2&e){var n=J();z("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function cde(e,a){if(1&e){var t=De();A(0,"mat-multi-year-view",7),ne("activeDateChange",function(c){return pe(t),J().activeDate=c})("yearSelected",function(c){return pe(t),J()._yearSelectedInMultiYearView(c)})("selectedChange",function(c){return pe(t),J()._goToDateInView(c,"year")}),E()}if(2&e){var n=J();z("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function fde(e,a){}var dde=["button"];function hde(e,a){1&e&&(pa(),A(0,"svg",3),me(1,"path",4),E())}var pde=[[["","matDatepickerToggleIcon",""]]],vde=["[matDatepickerToggleIcon]"],IP=function(){var e=function(){function a(){F(this,a),this.changes=new qe,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return W(a,[{key:"formatYearRange",value:function(n,l){return"".concat(n," \u2013 ").concat(l)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),pX=function e(a,t,n,l){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:a,_=arguments.length>6?arguments[6]:void 0;F(this,e),this.value=a,this.displayValue=t,this.ariaLabel=n,this.enabled=l,this.cssClasses=c,this.compareValue=h,this.rawValue=_},dk=function(){var e=function(){function a(t,n){var l=this;F(this,a),this._elementRef=t,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new ye,this.previewChange=new ye,this._enterHandler=function(c){if(l._skipNextFocus&&"focus"===c.type)l._skipNextFocus=!1;else if(c.target&&l.isRange){var h=l._getCellFromElement(c.target);h&&l._ngZone.run(function(){return l.previewChange.emit({value:h.enabled?h:null,event:c})})}},this._leaveHandler=function(c){null!==l.previewEnd&&l.isRange&&c.target&&vX(c.target)&&l._ngZone.run(function(){return l.previewChange.emit({value:null,event:c})})},n.runOutsideAngular(function(){var c=t.nativeElement;c.addEventListener("mouseenter",l._enterHandler,!0),c.addEventListener("focus",l._enterHandler,!0),c.addEventListener("mouseleave",l._leaveHandler,!0),c.addEventListener("blur",l._leaveHandler,!0)})}return W(a,[{key:"_cellClicked",value:function(n,l){n.enabled&&this.selectedValueChange.emit({value:n.value,event:l})}},{key:"_isSelected",value:function(n){return this.startValue===n||this.endValue===n}},{key:"ngOnChanges",value:function(n){var l=n.numCols,c=this.rows,h=this.numCols;(n.rows||l)&&(this._firstRowOffset=c&&c.length&&c[0].length?h-c[0].length:0),(n.cellAspectRatio||l||!this._cellPadding)&&(this._cellPadding="".concat(50*this.cellAspectRatio/h,"%")),(l||!this._cellWidth)&&(this._cellWidth="".concat(100/h,"%"))}},{key:"ngOnDestroy",value:function(){var n=this._elementRef.nativeElement;n.removeEventListener("mouseenter",this._enterHandler,!0),n.removeEventListener("focus",this._enterHandler,!0),n.removeEventListener("mouseleave",this._leaveHandler,!0),n.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(n,l){var c=n*this.numCols+l;return n&&(c-=this._firstRowOffset),c==this.activeCell}},{key:"_focusActiveCell",value:function(){var n=this,l=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){n._ngZone.onStable.pipe(or(1)).subscribe(function(){var c=n._elementRef.nativeElement.querySelector(".mat-calendar-body-active");c&&(l||(n._skipNextFocus=!0),c.focus())})})}},{key:"_isRangeStart",value:function(n){return gX(n,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(n){return mX(n,this.startValue,this.endValue)}},{key:"_isInRange",value:function(n){return _X(n,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(n){return gX(n,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(n,l,c){if(!this._isComparisonStart(n)||this._isRangeStart(n)||!this._isInRange(n))return!1;var h=this.rows[l][c-1];if(!h){var _=this.rows[l-1];h=_&&_[_.length-1]}return h&&!this._isRangeEnd(h.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(n,l,c){if(!this._isComparisonEnd(n)||this._isRangeEnd(n)||!this._isInRange(n))return!1;var h=this.rows[l][c+1];if(!h){var _=this.rows[l+1];h=_&&_[0]}return h&&!this._isRangeStart(h.compareValue)}},{key:"_isComparisonEnd",value:function(n){return mX(n,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(n){return _X(n,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(n){return this.comparisonStart===this.comparisonEnd&&n===this.comparisonStart}},{key:"_isPreviewStart",value:function(n){return gX(n,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(n){return mX(n,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(n){return _X(n,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(n){var l;if(vX(n)?l=n:vX(n.parentNode)&&(l=n.parentNode),l){var c=l.getAttribute("data-mat-row"),h=l.getAttribute("data-mat-col");if(c&&h)return this.rows[parseInt(c)][parseInt(h)]}return null}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft))},e.\u0275cmp=ke({type:e,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[an],attrs:tde,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,n){1&t&&(re(0,nde,3,6,"tr",0),re(1,ade,3,2,"tr",1)),2&t&&(z("ngIf",n._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),e}();function vX(e){return"TD"===e.nodeName}function gX(e,a,t){return null!==t&&a!==t&&e=a&&e===t}function _X(e,a,t,n){return n&&null!==a&&null!==t&&a!==t&&e>=a&&e<=t}var wo=function e(a,t){F(this,e),this.start=a,this.end=t},Gg=function(){var e=function(){function a(t,n){F(this,a),this.selection=t,this._adapter=n,this._selectionChanged=new qe,this.selectionChanged=this._selectionChanged,this.selection=t}return W(a,[{key:"updateSelection",value:function(n,l){var c=this.selection;this.selection=n,this._selectionChanged.next({selection:n,source:l,oldValue:c})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(n){return this._adapter.isDateInstance(n)&&this._adapter.isValid(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(void 0),ce(Gr))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),yde=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){return F(this,n),t.call(this,null,l)}return W(n,[{key:"add",value:function(c){Ie(Oe(n.prototype),"updateSelection",this).call(this,c,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}},{key:"clone",value:function(){var c=new n(this._adapter);return c.updateSelection(this.selection,this),c}}]),n}(Gg);return e.\u0275fac=function(t){return new(t||e)(ce(Gr))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),pte={provide:Gg,deps:[[new oi,new Fo,Gg],Gr],useFactory:function(e,a){return e||new yde(a)}},fH=new Ee("MAT_DATE_RANGE_SELECTION_STRATEGY"),vte=function(){var e=function(){function a(t,n,l,c,h){F(this,a),this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=l,this._dir=c,this._rangeStrategy=h,this._rerenderSubscription=Be.EMPTY,this.selectedChange=new ye,this._userSelection=new ye,this.activeDateChange=new ye,this._activeDate=this._dateAdapter.today()}return W(a,[{key:"activeDate",get:function(){return this._activeDate},set:function(n){var l=this._activeDate,c=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(c,this.minDate,this.maxDate),this._hasSameMonthAndYear(l,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n instanceof wo?n:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(n){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"maxDate",get:function(){return this._maxDate},set:function(n){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"ngAfterContentInit",value:function(){var n=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe($r(null)).subscribe(function(){return n._init()})}},{key:"ngOnChanges",value:function(n){var l=n.comparisonStart||n.comparisonEnd;l&&!l.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(n){var C,k,l=n.value,c=this._dateAdapter.getYear(this.activeDate),h=this._dateAdapter.getMonth(this.activeDate),_=this._dateAdapter.createDate(c,h,l);this._selected instanceof wo?(C=this._getDateInCurrentMonth(this._selected.start),k=this._getDateInCurrentMonth(this._selected.end)):C=k=this._getDateInCurrentMonth(this._selected),(C!==l||k!==l)&&this.selectedChange.emit(_),this._userSelection.emit({value:_,event:n.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}},{key:"_handleCalendarBodyKeydown",value:function(n){var l=this._activeDate,c=this._isRtl();switch(n.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=n.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=n.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&n.preventDefault());case 27:return void(null!=this._previewEnd&&!Bi(n)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:n}),n.preventDefault(),n.stopPropagation()));default:return}this._dateAdapter.compareDate(l,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),n.preventDefault()}},{key:"_handleCalendarBodyKeyup",value:function(n){(32===n.keyCode||13===n.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:n}),this._selectionKeyPressed=!1)}},{key:"_init",value:function(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(n)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(n){this._matCalendarBody._focusActiveCell(n)}},{key:"_previewChanged",value:function(n){var c=n.value;if(this._rangeStrategy){var _=this._rangeStrategy.createPreview(c?c.rawValue:null,this.selected,n.event);this._previewStart=this._getCellCompareValue(_.start),this._previewEnd=this._getCellCompareValue(_.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var n=this._dateAdapter.getFirstDayOfWeek(),l=this._dateAdapter.getDayOfWeekNames("narrow"),h=this._dateAdapter.getDayOfWeekNames("long").map(function(_,C){return{long:_,narrow:l[C]}});this._weekdays=h.slice(n).concat(h.slice(0,n))}},{key:"_createWeekCells",value:function(){var n=this._dateAdapter.getNumDaysInMonth(this.activeDate),l=this._dateAdapter.getDateNames();this._weeks=[[]];for(var c=0,h=this._firstWeekOffset;c=0)&&(!this.maxDate||this._dateAdapter.compareDate(n,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(n))}},{key:"_getDateInCurrentMonth",value:function(n){return n&&this._hasSameMonthAndYear(n,this.activeDate)?this._dateAdapter.getDate(n):null}},{key:"_hasSameMonthAndYear",value:function(n,l){return!(!n||!l||this._dateAdapter.getMonth(n)!=this._dateAdapter.getMonth(l)||this._dateAdapter.getYear(n)!=this._dateAdapter.getYear(l))}},{key:"_getCellCompareValue",value:function(n){if(n){var l=this._dateAdapter.getYear(n),c=this._dateAdapter.getMonth(n),h=this._dateAdapter.getDate(n);return new Date(l,c,h).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(n){n instanceof wo?(this._rangeStart=this._getCellCompareValue(n.start),this._rangeEnd=this._getCellCompareValue(n.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(n),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}},{key:"_canSelect",value:function(n){return!this.dateFilter||this.dateFilter(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Vt),N(Pu,8),N(Gr,8),N(Mr,8),N(fH,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-month-view"]],viewQuery:function(t,n){var l;1&t&&wt(dk,5),2&t&&Ne(l=Le())&&(n._matCalendarBody=l.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[an],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"mat-calendar-abbr"]],template:function(t,n){1&t&&(A(0,"table",0),A(1,"thead",1),A(2,"tr"),re(3,ode,3,3,"th",2),E(),A(4,"tr"),me(5,"th",3),E(),E(),A(6,"tbody",4),ne("selectedValueChange",function(c){return n._dateSelected(c)})("previewChange",function(c){return n._previewChanged(c)})("keyup",function(c){return n._handleCalendarBodyKeyup(c)})("keydown",function(c){return n._handleCalendarBodyKeydown(c)}),E(),E()),2&t&&(H(3),z("ngForOf",n._weekdays),H(3),z("label",n._monthLabel)("rows",n._weeks)("todayValue",n._todayDate)("startValue",n._rangeStart)("endValue",n._rangeEnd)("comparisonStart",n._comparisonRangeStart)("comparisonEnd",n._comparisonRangeEnd)("previewStart",n._previewStart)("previewEnd",n._previewEnd)("isRange",n._isRange)("labelMinRequiredCells",3)("activeCell",n._dateAdapter.getDate(n.activeDate)-1))},directives:[er,dk],encapsulation:2,changeDetection:0}),e}(),gte=function(){var e=function(){function a(t,n,l){F(this,a),this._changeDetectorRef=t,this._dateAdapter=n,this._dir=l,this._rerenderSubscription=Be.EMPTY,this.selectedChange=new ye,this.yearSelected=new ye,this.activeDateChange=new ye,this._activeDate=this._dateAdapter.today()}return W(a,[{key:"activeDate",get:function(){return this._activeDate},set:function(n){var l=this._activeDate,c=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(c,this.minDate,this.maxDate),mte(this._dateAdapter,l,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n instanceof wo?n:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n)),this._setSelectedYear(n)}},{key:"minDate",get:function(){return this._minDate},set:function(n){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"maxDate",get:function(){return this._maxDate},set:function(n){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"ngAfterContentInit",value:function(){var n=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe($r(null)).subscribe(function(){return n._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var n=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var c=this._dateAdapter.getYear(this._activeDate)-RP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var h=0,_=[];h<24;h++)_.push(c+h),4==_.length&&(this._years.push(_.map(function(C){return n._createCellForYear(C)})),_=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(n){var l=n.value;this.yearSelected.emit(this._dateAdapter.createDate(l,0,1));var c=this._dateAdapter.getMonth(this.activeDate),h=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(l,c,1));this.selectedChange.emit(this._dateAdapter.createDate(l,c,Math.min(this._dateAdapter.getDate(this.activeDate),h)))}},{key:"_handleCalendarBodyKeydown",value:function(n){var l=this._activeDate,c=this._isRtl();switch(n.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-RP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-RP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(l,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),n.preventDefault()}},{key:"_handleCalendarBodyKeyup",value:function(n){(32===n.keyCode||13===n.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:n}),this._selectionKeyPressed=!1)}},{key:"_getActiveCell",value:function(){return RP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(n){var l=this._dateAdapter.createDate(n,0,1),c=this._dateAdapter.getYearName(l),h=this.dateClass?this.dateClass(l,"multi-year"):void 0;return new pX(n,c,c,this._shouldEnableYear(n),h)}},{key:"_shouldEnableYear",value:function(n){if(null==n||this.maxDate&&n>this._dateAdapter.getYear(this.maxDate)||this.minDate&&nc||n===c&&l>h}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(n,l){if(this.minDate){var c=this._dateAdapter.getYear(this.minDate),h=this._dateAdapter.getMonth(this.minDate);return n enter-dropdown",Tn("120ms cubic-bezier(0, 0, 0.2, 1)",Dl([gt({opacity:0,transform:"scale(1, 0.8)"}),gt({opacity:1,transform:"scale(1, 1)"})]))),zn("void => enter-dialog",Tn("150ms cubic-bezier(0, 0, 0.2, 1)",Dl([gt({opacity:0,transform:"scale(0.7)"}),gt({transform:"none",opacity:1})]))),zn("* => void",Tn("100ms linear",gt({opacity:0})))]),fadeInCalendar:Ei("fadeInCalendar",[Bn("void",gt({opacity:0})),Bn("enter",gt({opacity:1})),zn("void => *",Tn("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},Ede=0,Cte=new Ee("mat-datepicker-scroll-strategy"),Ode={provide:Cte,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Ide=Eu(function(){return function e(a){F(this,e),this._elementRef=a}}()),Rde=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this,l))._changeDetectorRef=c,D._globalModel=h,D._dateAdapter=_,D._rangeSelectionStrategy=C,D._subscriptions=new Be,D._animationDone=new qe,D._actionsPortal=null,D._closeButtonText=k.closeCalendarLabel,D}return W(n,[{key:"ngOnInit",value:function(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}},{key:"ngAfterViewInit",value:function(){var c=this;this._subscriptions.add(this.datepicker.stateChanges.subscribe(function(){c._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(c){var h=this._model.selection,_=c.value,C=h instanceof wo;if(C&&this._rangeSelectionStrategy){var k=this._rangeSelectionStrategy.selectionFinished(_,h,c.event);this._model.updateSelection(k,this)}else _&&(C||!this._dateAdapter.sameDate(_,h))&&this._model.add(_);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model.selection}},{key:"_applyPendingSelection",value:function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}]),n}(Ide);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(Gg),N(Gr),N(fH,8),N(IP))},e.\u0275cmp=ke({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(t,n){var l;1&t&&wt(CX,5),2&t&&Ne(l=Le())&&(n._calendar=l.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,n){1&t&&mv("@transformPanel.done",function(){return n._animationDone.next()}),2&t&&(Ba("@transformPanel",n._animationState),dt("mat-datepicker-content-touch",n.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[Pe],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"mat-calendar",1),ne("yearSelected",function(c){return n.datepicker._selectYear(c)})("monthSelected",function(c){return n.datepicker._selectMonth(c)})("viewChanged",function(c){return n.datepicker._viewChanged(c)})("_userSelection",function(c){return n._handleUserSelection(c)}),E(),re(2,fde,0,0,"ng-template",2),A(3,"button",3),ne("focus",function(){return n._closeButtonFocused=!0})("blur",function(){return n._closeButtonFocused=!1})("click",function(){return n.datepicker.close()}),K(4),E(),E()),2&t&&(dt("mat-datepicker-content-container-with-actions",n._actionsPortal),H(1),z("id",n.datepicker.id)("ngClass",n.datepicker.panelClass)("startAt",n.datepicker.startAt)("startView",n.datepicker.startView)("minDate",n.datepicker._getMinDate())("maxDate",n.datepicker._getMaxDate())("dateFilter",n.datepicker._getDateFilter())("headerComponent",n.datepicker.calendarHeaderComponent)("selected",n._getSelected())("dateClass",n.datepicker.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)("@fadeInCalendar","enter"),H(1),z("cdkPortalOutlet",n._actionsPortal),H(1),dt("cdk-visually-hidden",!n._closeButtonFocused),z("color",n.color||"primary"),H(1),On(n._closeButtonText))},directives:[UV,CX,Ts,Os,Rn],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[bte.transformPanel,bte.fadeInCalendar]},changeDetection:0}),e}(),xb=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D){F(this,a),this._overlay=n,this._ngZone=l,this._viewContainerRef=c,this._dateAdapter=_,this._dir=C,this._model=D,this._inputStateChanges=Be.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new ye,this.monthSelected=new ye,this.viewChanged=new ye(!0),this.openedStream=new ye,this.closedStream=new ye,this._opened=!1,this.id="mat-datepicker-".concat(Ede++),this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this.stateChanges=new qe,this._scrollStrategy=h}return W(a,[{key:"startAt",get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)},set:function(n){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"color",get:function(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)},set:function(n){this._color=n}},{key:"touchUi",get:function(){return this._touchUi},set:function(n){this._touchUi=it(n)}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(n){var l=it(n);l!==this._disabled&&(this._disabled=l,this.stateChanges.next(void 0))}},{key:"restoreFocus",get:function(){return this._restoreFocus},set:function(n){this._restoreFocus=it(n)}},{key:"panelClass",get:function(){return this._panelClass},set:function(n){this._panelClass=G3(n)}},{key:"opened",get:function(){return this._opened},set:function(n){it(n)?this.open():this.close()}},{key:"_getMinDate",value:function(){return this.datepickerInput&&this.datepickerInput.min}},{key:"_getMaxDate",value:function(){return this.datepickerInput&&this.datepickerInput.max}},{key:"_getDateFilter",value:function(){return this.datepickerInput&&this.datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(n){var l=n.xPosition||n.yPosition;if(l&&!l.firstChange&&this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;c instanceof hE&&(this._setConnectedPositions(c),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}},{key:"select",value:function(n){this._model.add(n)}},{key:"_selectYear",value:function(n){this.yearSelected.emit(n)}},{key:"_selectMonth",value:function(n){this.monthSelected.emit(n)}},{key:"_viewChanged",value:function(n){this.viewChanged.emit(n)}},{key:"registerInput",value:function(n){var l=this;return this._inputStateChanges.unsubscribe(),this.datepickerInput=n,this._inputStateChanges=n.stateChanges.subscribe(function(){return l.stateChanges.next(void 0)}),this._model}},{key:"registerActions",value:function(n){this._actionsPortal=n}},{key:"removeActions",value:function(n){n===this._actionsPortal&&(this._actionsPortal=null)}},{key:"open",value:function(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Ky(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var n=this;if(this._opened){if(this._componentRef){var l=this._componentRef.instance;l._startExitAnimation(),l._animationDone.pipe(or(1)).subscribe(function(){return n._destroyOverlay()})}var c=function(){n._opened&&(n._opened=!1,n.closedStream.emit(),n._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(c)):c()}}},{key:"_applyPendingSelection",value:function(){var n,l;null===(l=null===(n=this._componentRef)||void 0===n?void 0:n.instance)||void 0===l||l._applyPendingSelection()}},{key:"_forwardContentValues",value:function(n){n.datepicker=this,n.color=this.color,n._actionsPortal=this._actionsPortal}},{key:"_openOverlay",value:function(){var n=this;this._destroyOverlay();var l=this.touchUi,c=this.datepickerInput.getOverlayLabelId(),h=new sd(Rde,this._viewContainerRef),_=this._overlayRef=this._overlay.create(new up({positionStrategy:l?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[l?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:l?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-".concat(l?"dialog":"popup")})),C=_.overlayElement;C.setAttribute("role","dialog"),c&&C.setAttribute("aria-labelledby",c),l&&C.setAttribute("aria-modal","true"),this._getCloseStream(_).subscribe(function(k){k&&k.preventDefault(),n.close()}),this._componentRef=_.attach(h),this._forwardContentValues(this._componentRef.instance),l||this._ngZone.onStable.pipe(or(1)).subscribe(function(){return _.updatePosition()})}},{key:"_destroyOverlay",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}},{key:"_getDialogStrategy",value:function(){return this._overlay.position().global().centerHorizontally().centerVertically()}},{key:"_getDropdownStrategy",value:function(){var n=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(n)}},{key:"_setConnectedPositions",value:function(n){var l="end"===this.xPosition?"end":"start",c="start"===l?"end":"start",h="above"===this.yPosition?"bottom":"top",_="top"===h?"bottom":"top";return n.withPositions([{originX:l,originY:_,overlayX:l,overlayY:h},{originX:l,originY:h,overlayX:l,overlayY:_},{originX:c,originY:_,overlayX:c,overlayY:h},{originX:c,originY:h,overlayX:c,overlayY:_}])}},{key:"_getCloseStream",value:function(n){var l=this;return ot(n.backdropClick(),n.detachments(),n.keydownEvents().pipe(vr(function(c){return 27===c.keyCode&&!Bi(c)||l.datepickerInput&&Bi(c,"altKey")&&38===c.keyCode})))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Ai),N(ft),N($n),N(Cte),N(Gr,8),N(Mr,8),N(lt,8),N(Gg))},e.\u0275dir=ve({type:e,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[an]}),e}(),wte=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return n}(xb);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275cmp=ke({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Xe([pte,{provide:xb,useExisting:e}]),Pe],decls:0,vars:0,template:function(t,n){},encapsulation:2,changeDetection:0}),e}(),dH=function e(a,t){F(this,e),this.target=a,this.targetElement=t,this.value=this.target.value},Ste=function(){var e=function(){function a(t,n,l){var c=this;F(this,a),this._elementRef=t,this._dateAdapter=n,this._dateFormats=l,this.dateChange=new ye,this.dateInput=new ye,this.stateChanges=new qe,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=Be.EMPTY,this._localeSubscription=Be.EMPTY,this._parseValidator=function(){return c._lastValueValid?null:{matDatepickerParse:{text:c._elementRef.nativeElement.value}}},this._filterValidator=function(h){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(h.value));return!_||c._matchesFilter(_)?null:{matDatepickerFilter:!0}},this._minValidator=function(h){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(h.value)),C=c._getMinDate();return!C||!_||c._dateAdapter.compareDate(C,_)<=0?null:{matDatepickerMin:{min:C,actual:_}}},this._maxValidator=function(h){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(h.value)),C=c._getMaxDate();return!C||!_||c._dateAdapter.compareDate(C,_)>=0?null:{matDatepickerMax:{max:C,actual:_}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(function(){c._assignValueProgrammatically(c.value)})}return W(a,[{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(n){this._assignValueProgrammatically(n)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(n){var l=it(n),c=this._elementRef.nativeElement;this._disabled!==l&&(this._disabled=l,this.stateChanges.next(void 0)),l&&this._isInitialized&&c.blur&&c.blur()}},{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(n){var l=this;this._model=n,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(c){if(l._shouldHandleChangeEvent(c)){var h=l._getValueFromModel(c.selection);l._lastValueValid=l._isValidValue(h),l._cvaOnChange(h),l._onTouched(),l._formatValue(h),l.dateInput.emit(new dH(l,l._elementRef.nativeElement)),l.dateChange.emit(new dH(l,l._elementRef.nativeElement))}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(n){(function(e,a){for(var n=0,l=Object.keys(e);n2&&void 0!==arguments[2]&&arguments[2],_=arguments.length>3&&void 0!==arguments[3]&&arguments[3];!this.multiple&&this.selected&&!n.checked&&(this.selected.checked=!1),this._selectionModel?l?this._selectionModel.select(n):this._selectionModel.deselect(n):_=!0,_?Promise.resolve().then(function(){return c._updateModelValue(h)}):this._updateModelValue(h)}},{key:"_isSelected",value:function(n){return this._selectionModel&&this._selectionModel.isSelected(n)}},{key:"_isPrechecked",value:function(n){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(function(l){return null!=n.value&&l===n.value}):n.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(n){var l=this;this._rawValue=n,this._buttonToggles&&(this.multiple&&n?(Array.isArray(n),this._clearSelection(),n.forEach(function(c){return l._selectValue(c)})):(this._clearSelection(),this._selectValue(n)))}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach(function(n){return n.checked=!1})}},{key:"_selectValue",value:function(n){var l=this._buttonToggles.find(function(c){return null!=c.value&&c.value===n});l&&(l.checked=!0,this._selectionModel.select(l))}},{key:"_updateModelValue",value:function(n){n&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Vt),N(Tte,8))},e.\u0275dir=ve({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,Ote,5),2&t&&Ne(c=Le())&&(n._buttonToggles=c)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,n){2&t&&(Ke("aria-disabled",n.disabled),dt("mat-button-toggle-vertical",n.vertical)("mat-button-toggle-group-appearance-standard","standard"===n.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Xe([Wde,{provide:Dte,useExisting:e}])]}),e}(),Yde=El(function(){return function e(){F(this,e)}}()),Ote=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;F(this,n),(D=t.call(this))._changeDetectorRef=c,D._elementRef=h,D._focusMonitor=_,D._isSingleSelector=!1,D._checked=!1,D.ariaLabelledby=null,D._disabled=!1,D.change=new ye;var I=Number(C);return D.tabIndex=I||0===I?I:null,D.buttonToggleGroup=l,D.appearance=k&&k.appearance?k.appearance:"standard",D}return W(n,[{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(c){this._appearance=c}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(c){var h=it(c);h!==this._checked&&(this._checked=h,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(c){this._disabled=it(c)}},{key:"ngOnInit",value:function(){var c=this.buttonToggleGroup;this._isSingleSelector=c&&!c.multiple,this.id=this.id||"mat-button-toggle-".concat(Ate++),this._isSingleSelector&&(this.name=c.name),c&&(c._isPrechecked(this)?this.checked=!0:c._isSelected(this)!==this._checked&&c._syncButtonToggle(this,this._checked))}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var c=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),c&&c._isSelected(this)&&c._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(c){this._buttonElement.nativeElement.focus(c)}},{key:"_onButtonClick",value:function(){var c=!!this._isSingleSelector||!this._checked;c!==this._checked&&(this._checked=c,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new Ete(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),n}(Yde);return e.\u0275fac=function(t){return new(t||e)(N(Dte,8),N(Vt),N(Ue),N(ra),Ci("tabindex"),N(Tte,8))},e.\u0275cmp=ke({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(t,n){var l;1&t&&wt(Gde,5),2&t&&Ne(l=Le())&&(n._buttonElement=l.first)},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(t,n){1&t&&ne("focus",function(){return n.focus()}),2&t&&(Ke("aria-label",null)("aria-labelledby",null)("id",n.id)("name",null),dt("mat-button-toggle-standalone",!n.buttonToggleGroup)("mat-button-toggle-checked",n.checked)("mat-button-toggle-disabled",n.disabled)("mat-button-toggle-appearance-standard","standard"===n.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[Pe],ngContentSelectors:jde,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,n){if(1&t&&(rr(),A(0,"button",0,1),ne("click",function(){return n._onButtonClick()}),A(2,"span",2),Wt(3),E(),E(),me(4,"span",3),me(5,"span",4)),2&t){var l=Pn(1);z("id",n.buttonId)("disabled",n.disabled||null),Ke("tabindex",n.disabled?-1:n.tabIndex)("aria-pressed",n.checked)("name",n.name||null)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby),H(5),z("matRippleTrigger",l)("matRippleDisabled",n.disableRipple||n.disabled)}},directives:[Ls],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),e}(),qde=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t,Da],$t]}),e}();function Xde(e,a){1&e&&(A(0,"uds-translate"),K(1,"Edit rule"),E())}function Zde(e,a){1&e&&(A(0,"uds-translate"),K(1,"New rule"),E())}function Kde(e,a){if(1&e&&(A(0,"mat-option",22),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.value," ")}}function $de(e,a){if(1&e&&(A(0,"mat-option",22),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.value," ")}}function Qde(e,a){if(1&e&&(A(0,"mat-button-toggle",22),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.value," ")}}function Jde(e,a){if(1&e){var t=De();A(0,"div",23),A(1,"span",24),A(2,"uds-translate"),K(3,"Weekdays"),E(),E(),A(4,"mat-button-toggle-group",25),ne("ngModelChange",function(c){return pe(t),J().wDays=c}),re(5,Qde,2,2,"mat-button-toggle",8),E(),E()}if(2&e){var n=J();H(4),z("ngModel",n.wDays),H(1),z("ngForOf",n.weekDays)}}function ehe(e,a){if(1&e){var t=De();A(0,"mat-form-field",9),A(1,"mat-label"),A(2,"uds-translate"),K(3,"Repeat every"),E(),E(),A(4,"input",6),ne("ngModelChange",function(c){return pe(t),J().rule.interval=c}),E(),A(5,"div",26),K(6),E(),E()}if(2&e){var n=J();H(4),z("ngModel",n.rule.interval),H(2),Ve("\xa0",n.frequency(),"")}}var vH={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")]},gH={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},Ite=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],Rte=function(e,a){void 0===a&&(a=!1);for(var t=new Array,n=0;n<7;n++)1&e&&t.push(Ite[n].substr(0,a?100:3)),e>>=1;return t.length?t.join(", "):django.gettext("(no days)")},Lte=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.dunits=Object.keys(gH).map(function(c){return{id:c,value:gH[c]}}),this.freqs=Object.keys(vH).map(function(c){return{id:c,value:vH[c][2]}}),this.weekDays=Ite.map(function(c,h){return{id:1<0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+gH[this.rule.duration_unit]:django.gettext("with no duration")}return a.replace("$FIELD",n)},e.prototype.save=function(){var a=this;this.rules.save(this.rule).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-calendar-rule"]],decls:73,vars:21,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"oneThird"],["matInput","","type","time",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","ngModelChange"],["matSuffix","",3,"for"],["startDatePicker",""],["matInput","",3,"matDatepicker","ngModel","placeholder","ngModelChange"],["endDatePicker",""],[1,"weekdays"],[3,"ngModel","ngModelChange","valueChange"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModel","ngModelChange"],["matSuffix",""]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,Xde,2,0,"uds-translate",1),re(2,Zde,2,0,"uds-translate",1),E(),A(3,"mat-dialog-content"),A(4,"div",2),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),K(8,"Name"),E(),E(),A(9,"input",3),ne("ngModelChange",function(_){return n.rule.name=_}),E(),E(),A(10,"mat-form-field"),A(11,"mat-label"),A(12,"uds-translate"),K(13,"Comments"),E(),E(),A(14,"input",3),ne("ngModelChange",function(_){return n.rule.comments=_}),E(),E(),A(15,"h3"),A(16,"uds-translate"),K(17,"Event"),E(),E(),A(18,"mat-form-field",4),A(19,"mat-label"),A(20,"uds-translate"),K(21,"Start time"),E(),E(),A(22,"input",5),ne("ngModelChange",function(_){return n.startTime=_}),E(),E(),A(23,"mat-form-field",4),A(24,"mat-label"),A(25,"uds-translate"),K(26,"Duration"),E(),E(),A(27,"input",6),ne("ngModelChange",function(_){return n.rule.duration=_}),E(),E(),A(28,"mat-form-field",4),A(29,"mat-label"),A(30,"uds-translate"),K(31,"Duration units"),E(),E(),A(32,"mat-select",7),ne("ngModelChange",function(_){return n.rule.duration_unit=_}),re(33,Kde,2,2,"mat-option",8),E(),E(),A(34,"h3"),K(35," Repetition "),E(),A(36,"mat-form-field",9),A(37,"mat-label"),A(38,"uds-translate"),K(39," Start date "),E(),E(),A(40,"input",10),ne("ngModelChange",function(_){return n.startDate=_}),E(),me(41,"mat-datepicker-toggle",11),me(42,"mat-datepicker",null,12),E(),A(44,"mat-form-field",9),A(45,"mat-label"),A(46,"uds-translate"),K(47," Repeat until date "),E(),E(),A(48,"input",13),ne("ngModelChange",function(_){return n.endDate=_}),E(),me(49,"mat-datepicker-toggle",11),me(50,"mat-datepicker",null,14),E(),A(52,"div",15),A(53,"mat-form-field",9),A(54,"mat-label"),A(55,"uds-translate"),K(56,"Frequency"),E(),E(),A(57,"mat-select",16),ne("ngModelChange",function(_){return n.rule.frequency=_})("valueChange",function(){return n.rule.interval=1}),re(58,$de,2,2,"mat-option",8),E(),E(),re(59,Jde,6,2,"div",17),re(60,ehe,7,2,"mat-form-field",18),E(),A(61,"h3"),A(62,"uds-translate"),K(63,"Summary"),E(),E(),A(64,"div",19),K(65),E(),E(),E(),A(66,"mat-dialog-actions"),A(67,"button",20),A(68,"uds-translate"),K(69,"Cancel"),E(),E(),A(70,"button",21),ne("click",function(){return n.save()}),A(71,"uds-translate"),K(72,"Ok"),E(),E(),E()),2&t){var l=Pn(43),c=Pn(51);H(1),z("ngIf",n.rule.id),H(1),z("ngIf",!n.rule.id),H(7),z("ngModel",n.rule.name),H(5),z("ngModel",n.rule.comments),H(8),z("ngModel",n.startTime),H(5),z("ngModel",n.rule.duration),H(5),z("ngModel",n.rule.duration_unit),H(1),z("ngForOf",n.dunits),H(7),z("matDatepicker",l)("ngModel",n.startDate),H(1),z("for",l),H(7),z("matDatepicker",c)("ngModel",n.endDate)("placeholder",n.FOREVER_STRING),H(1),z("for",c),H(8),z("ngModel",n.rule.frequency),H(1),z("ngForOf",n.freqs),H(1),z("ngIf","WEEKDAYS"===n.rule.frequency),H(1),z("ngIf","WEEKDAYS"!==n.rule.frequency),H(5),Ve(" ",n.summary()," "),H(5),z("disabled",null!==n.updateRuleData()||""===n.rule.name)}},directives:[Wr,Kt,Fr,_r,Br,Hn,Hi,g,Mt,mr,zg,$a,er,hH,Mte,rk,wte,Qr,Rn,Lr,Pi,Pte,Ote],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#23238580;color:#fff}"]}),e}();function nhe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Rules"),E())}function rhe(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),A(3,"mat-tab"),re(4,nhe,2,0,"ng-template",9),A(5,"div",10),A(6,"uds-table",11),ne("newAction",function(c){return pe(t),J().onNewRule(c)})("editAction",function(c){return pe(t),J().onEditRule(c)})("deleteAction",function(c){return pe(t),J().onDeleteRule(c)}),E(),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("@.disabled",!0),H(4),z("rest",n.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("tableId","calendars-d-rules"+n.calendar.id)("pageSize",n.api.config.admin.page_size)}}var ihe=function(e){return["/pools","calendars",e]},ahe=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("calendar");this.rest.calendars.get(t).subscribe(function(n){a.calendar=n,a.calendarRules=a.rest.calendars.detail(n.id,"rules")})},e.prototype.onNewRule=function(a){Lte.launch(this.api,this.calendarRules).subscribe(function(){return a.table.overview()})},e.prototype.onEditRule=function(a){Lte.launch(this.api,this.calendarRules,a.table.selection.selected[0]).subscribe(function(){return a.table.overview()})},e.prototype.onDeleteRule=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar rule"))},e.prototype.processElement=function(a){!function(e){e.interval="WEEKDAYS"===e.frequency?Rte(e.interval):e.interval+" "+vH[e.frequency][django.pluralidx(e.interval)],e.duration=e.duration+" "+gH[e.duration_unit]}(a)},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","pageSize","newAction","editAction","deleteAction"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,rhe,7,7,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,ihe,n.calendar?n.calendar.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/calendars.png"),Gt),H(1),Ve(" ",null==n.calendar?null:n.calendar.name," "),H(1),z("ngIf",n.calendar))},directives:[xl,Kt,Nc,Ru,Fc,Yr,Hn],styles:[".mat-column-start, .mat-column-end{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-interval, .mat-column-duration{max-width:11rem}"]}),e}(),ohe='event'+django.gettext("Set time mark")+"",Fte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.cButtons=[{id:"timemark",html:ohe,type:Jr.SINGLE_SELECT}]}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New account"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit account"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete account"))},e.prototype.onTimeMark=function(a){var t=this,n=a.table.selection.selected[0];this.api.gui.yesno(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).subscribe(function(l){l&&t.rest.accounts.timemark(n.id).subscribe(function(){t.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()})})},e.prototype.onDetail=function(a){this.api.navigation.gotoAccountDetail(a.param.id)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("account"))},e.prototype.processElement=function(a){a.time_mark=78793200===a.time_mark?django.gettext("No time mark"):Lu("SHORT_DATE_FORMAT",a.time_mark)},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem","customButtonAction","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("customButtonAction",function(c){return n.onTimeMark(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)("onItem",n.processElement)},directives:[Yr],styles:[""]}),e}();function she(e,a){1&e&&(A(0,"uds-translate"),K(1,"Account usage"),E())}function lhe(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),A(3,"mat-tab"),re(4,she,2,0,"ng-template",9),A(5,"div",10),A(6,"uds-table",11),ne("deleteAction",function(c){return pe(t),J().onDeleteUsage(c)}),E(),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("@.disabled",!0),H(4),z("rest",n.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("tableId","account-d-usage"+n.account.id)}}var uhe=function(e){return["/pools","accounts",e]},che=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("account");this.rest.accounts.get(t).subscribe(function(n){a.account=n,a.accountUsage=a.rest.accounts.detail(n.id,"usage")})},e.prototype.onDeleteUsage=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete account usage"))},e.prototype.processElement=function(a){a.running=this.api.yesno(a.running)},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"rest","multiSelect","allowExport","onItem","tableId","deleteAction"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),K(4,"arrow_back"),E(),E(),K(5," \xa0"),me(6,"img",4),K(7),E(),re(8,lhe,7,6,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,uhe,n.account?n.account.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/accounts.png"),Gt),H(1),Ve(" ",null==n.account?null:n.account.name," "),H(1),z("ngIf",n.account))},directives:[xl,Kt,Nc,Ru,Fc,Yr,Hn],styles:[""]}),e}();function fhe(e,a){1&e&&(A(0,"uds-translate"),K(1,"New image for"),E())}function dhe(e,a){1&e&&(A(0,"uds-translate"),K(1,"Edit for"),E())}var Nte=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.preview="",this.image={id:void 0,data:"",name:""},l.image&&(this.image.id=l.image.id)}return e.launch=function(a,t){void 0===t&&(t=null);var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:t},disableClose:!0}).componentInstance.onSave},e.prototype.onFileChanged=function(a){var t=this,n=a.target.files[0];if(n.size>262144)this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));else if(["image/jpeg","image/png","image/gif"].includes(n.type)){var l=new FileReader;l.onload=function(c){var h=l.result;t.preview=h,t.image.data=h.substr(h.indexOf("base64,")+7),t.image.name||(t.image.name=n.name)},l.readAsDataURL(n)}else this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"))},e.prototype.ngOnInit=function(){var a=this;this.image.id&&this.rest.gallery.get(this.image.id).subscribe(function(t){switch(a.image=t,a.image.data.substr(2)){case"iV":a.preview="data:image/png;base64,"+a.image.data;break;case"/9":a.preview="data:image/jpeg;base64,"+a.image.data;break;default:a.preview="data:image/gif;base64,"+a.image.data}})},e.prototype.background=function(){var a=this.api.config.image_size[0],t=this.api.config.image_size[1],n={"width.px":a,"height.px":t,"background-size":a+"px "+t+"px"};return this.preview&&(n["background-image"]="url("+this.preview+")"),n},e.prototype.save=function(){var a=this;this.image.name&&this.image.data?this.rest.gallery.save(this.image).subscribe(function(){a.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["fileInput",""],["matInput","","type","text",3,"hidden","click"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,n){if(1&t){var l=De();A(0,"h4",0),re(1,fhe,2,0,"uds-translate",1),re(2,dhe,2,0,"uds-translate",1),E(),A(3,"mat-dialog-content"),A(4,"div",2),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),K(8,"Image name"),E(),E(),A(9,"input",3),ne("ngModelChange",function(h){return n.image.name=h}),E(),E(),A(10,"input",4,5),ne("change",function(h){return n.onFileChanged(h)}),E(),A(12,"mat-form-field"),A(13,"mat-label"),A(14,"uds-translate"),K(15,"Image (click to change)"),E(),E(),A(16,"input",6),ne("click",function(){return pe(l),Pn(11).click()}),E(),A(17,"div",7),ne("click",function(){return pe(l),Pn(11).click()}),me(18,"div",8),E(),E(),A(19,"div",9),A(20,"uds-translate"),K(21,' For optimal results, use "squared" images. '),E(),A(22,"uds-translate"),K(23," The image will be resized on upload to "),E(),K(24),E(),E(),E(),A(25,"mat-dialog-actions"),A(26,"button",10),A(27,"uds-translate"),K(28,"Cancel"),E(),E(),A(29,"button",11),ne("click",function(){return n.save()}),A(30,"uds-translate"),K(31,"Ok"),E(),E(),E()}2&t&&(H(1),z("ngIf",!n.image.id),H(1),z("ngIf",n.image.id),H(7),z("ngModel",n.image.name),H(7),z("hidden",!0),H(2),z("ngStyle",n.background()),H(6),Cv(" ",n.api.config.image_size[0],"x",n.api.config.image_size[1]," "))},directives:[Wr,Kt,Fr,_r,Br,Hn,Hi,g,Mt,mr,NF,Qr,Rn,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;width:100%}.image-preview[_ngcontent-%COMP%]{background-color:#0000004d}"]}),e}(),Vte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){Nte.launch(this.api).subscribe(function(){return a.table.overview()})},e.prototype.onEdit=function(a){Nte.launch(this.api,a.table.selection.selected[0]).subscribe(function(){return a.table.overview()})},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete image"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("image"))},e.\u0275fac=function(t){return new(t||e)(N(kr),N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),e}(),hhe='assessment'+django.gettext("Generate report")+"",Bte=function(){function e(a,t){this.rest=a,this.api=t,this.customButtons=[{id:"genreport",html:hhe,type:Jr.SINGLE_SELECT}]}return e.prototype.ngOnInit=function(){},e.prototype.generateReport=function(a){var t=this,n=new ye;n.subscribe(function(l){t.api.gui.snackbar.open(django.gettext("Generating report...")),t.rest.reports.save(l,a.table.selection.selected[0].id).subscribe(function(c){for(var h=c.encoded?window.atob(c.data):c.data,_=h.length,C=new Uint8Array(_),k=0;k<_;k++)C[k]=h.charCodeAt(k);var D=new Blob([C],{type:c.mime_type});t.api.gui.snackbar.open(django.gettext("Report finished"),django.gettext("dismiss"),{duration:2e3}),setTimeout(function(){(0,sX.saveAs)(D,c.filename)},100)})}),this.api.gui.forms.typedForm(a,django.gettext("Generate report"),!1,[],void 0,a.table.selection.selected[0].id,{save:n})},e.\u0275fac=function(t){return new(t||e)(N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-reports"]],decls:1,vars:6,consts:[["icon","reports",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("customButtonAction",function(c){return n.generateReport(c)}),E()),2&t&&z("rest",n.rest.reports)("multiSelect",!1)("allowExport",!1)("hasPermissions",!1)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Yr],styles:[".mat-column-group{max-width:16rem} .mat-column-name{max-width:32rem}"]}),e}();function phe(e,a){1&e&&K(0),2&e&&Ve(" ",J().$implicit," ")}function vhe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"input",18),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("type",c.config[l][n].crypt?"password":"text")("ngModel",c.config[l][n].value)}}function ghe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"textarea",19),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("ngModel",c.config[l][n].value)}}function mhe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"input",20),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("ngModel",c.config[l][n].value)}}function _he(e,a){if(1&e){var t=De();A(0,"div"),A(1,"div",21),A(2,"span",22),K(3),E(),A(4,"mat-slide-toggle",23),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),K(5),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("ngModel",c.config[l][n].value),H(1),Ve(" ",c.api.yesno(c.config[l][n].value)," ")}}function yhe(e,a){if(1&e&&(A(0,"mat-option",25),K(1),E()),2&e){var t=a.$implicit;z("value",t),H(1),Ve(" ",t," ")}}function bhe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"mat-select",23),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),re(5,yhe,2,2,"mat-option",24),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),Ve(" ",n," "),H(1),z("ngModel",c.config[l][n].value),H(1),z("ngForOf",c.config[l][n].params)}}function Che(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"input",26),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("ngModel",c.config[l][n].value)}}function whe(e,a){1&e&&un(0)}function She(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),K(3),E(),A(4,"input",27),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("ngModel",c.config[l][n].value)}}function khe(e,a){if(1&e&&(vt(0,15),re(1,vhe,5,3,"div",16),re(2,ghe,5,2,"div",16),re(3,mhe,5,2,"div",16),re(4,_he,6,3,"div",16),re(5,bhe,6,3,"div",16),re(6,Che,5,2,"div",16),re(7,whe,1,0,"ng-container",16),re(8,She,5,2,"div",17),xn()),2&e){var t=J().$implicit,n=J().$implicit;z("ngSwitch",J(2).config[n][t].type),H(1),z("ngSwitchCase",0),H(1),z("ngSwitchCase",1),H(1),z("ngSwitchCase",2),H(1),z("ngSwitchCase",3),H(1),z("ngSwitchCase",4),H(1),z("ngSwitchCase",5),H(1),z("ngSwitchCase",6)}}function Mhe(e,a){if(1&e&&(A(0,"div",13),re(1,khe,9,8,"ng-container",14),E()),2&e){var t=a.$implicit,n=J().$implicit,l=J(2);H(1),z("ngIf",l.config[n][t])}}function xhe(e,a){if(1&e&&(A(0,"mat-tab"),re(1,phe,1,1,"ng-template",10),A(2,"div",11),re(3,Mhe,2,1,"div",12),E(),E()),2&e){var t=a.$implicit,n=J(2);H(3),z("ngForOf",n.configElements(t))}}function The(e,a){if(1&e){var t=De();A(0,"div",4),A(1,"div",5),A(2,"mat-tab-group",6),re(3,xhe,4,1,"mat-tab",7),E(),A(4,"div",8),A(5,"button",9),ne("click",function(){return pe(t),J().save()}),A(6,"uds-translate"),K(7,"Save"),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("@.disabled",!0),H(1),z("ngForOf",n.sections())}}var Hte=["UDS","Security"],zte=["UDS ID"],Phe=[{path:"",canActivate:[mie],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:pae},{path:"providers",component:jee},{path:"providers/:provider/detail",component:Wee},{path:"providers/:provider",component:jee},{path:"providers/:provider/detail/:service",component:Wee},{path:"authenticators",component:Yee},{path:"authenticators/:authenticator/detail",component:fX},{path:"authenticators/:authenticator",component:Yee},{path:"authenticators/:authenticator/detail/groups/:group",component:fX},{path:"authenticators/:authenticator/detail/users/:user",component:fX},{path:"osmanagers",component:Jee},{path:"osmanagers/:osmanager",component:Jee},{path:"transports",component:ete},{path:"transports/:transport",component:ete},{path:"networks",component:tte},{path:"networks/:network",component:tte},{path:"proxies",component:nte},{path:"proxies/:proxy",component:nte},{path:"pools/service-pools",component:rte},{path:"pools/service-pools/:pool",component:rte},{path:"pools/service-pools/:pool/detail",component:lte},{path:"pools/meta-pools",component:ute},{path:"pools/meta-pools/:metapool",component:ute},{path:"pools/meta-pools/:metapool/detail",component:ede},{path:"pools/pool-groups",component:fte},{path:"pools/pool-groups/:poolgroup",component:fte},{path:"pools/calendars",component:dte},{path:"pools/calendars/:calendar",component:dte},{path:"pools/calendars/:calendar/detail",component:ahe},{path:"pools/accounts",component:Fte},{path:"pools/accounts/:account",component:Fte},{path:"pools/accounts/:account/detail",component:che},{path:"tools/gallery",component:Vte},{path:"tools/gallery/:image",component:Vte},{path:"tools/reports",component:Bte},{path:"tools/reports/:report",component:Bte},{path:"tools/configuration",component:function(){function e(a,t){this.rest=a,this.api=t}return e.prototype.ngOnInit=function(){var a=this;this.rest.configuration.overview().subscribe(function(t){for(var n in a.config=t,a.config)if(a.config.hasOwnProperty(n))for(var l in a.config[n])if(a.config[n].hasOwnProperty(l)){var c=a.config[n][l];c.crypt?c.value='\u20acfa{}#42123~#||23|\xdf\xf0\u0111\xe6"':3===c.type&&(c.value=!!["1",1,!0].includes(c.value)),c.original_value=c.value}})},e.prototype.sections=function(){var a=[];for(var t in this.config)this.config.hasOwnProperty(t)&&!Hte.includes(t)&&a.push(t);return(a=a.sort(function(n,l){return n.localeCompare(l)})).unshift.apply(a,Hte),a},e.prototype.configElements=function(a){var t=[],n=this.config[a];if(n)for(var l in n)n.hasOwnProperty(l)&&("UDS"!==a||!zte.includes(l))&&t.push(l);return t=t.sort(function(c,h){return c.localeCompare(h)}),"UDS"===a&&t.unshift.apply(t,zte),t},e.prototype.save=function(){var a=this,t={};for(var n in this.config)if(this.config.hasOwnProperty(n))for(var l in this.config[n])if(this.config[n].hasOwnProperty(l)){var c=this.config[n][l];if(c.original_value!==c.value){c.original_value=c.value,t[n]||(t[n]={});var h=c.value;3===c.type&&(h=["1",1,!0].includes(c.value)?"1":"0"),t[n][l]={value:h}}}this.rest.configuration.save(t).subscribe(function(){a.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})},e.\u0275fac=function(t){return new(t||e)(N(on),N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-configuration"]],decls:7,vars:2,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[4,"ngFor","ngForOf"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],["class","field",4,"ngFor","ngForOf"],[1,"field"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["matInput","",3,"type","ngModel","ngModelChange"],["matInput","",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"slider-label"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","type","text","readonly","readonly",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),me(2,"img",2),K(3,"\xa0"),A(4,"uds-translate"),K(5,"UDS Configuration"),E(),E(),re(6,The,8,2,"div",3),E()),2&t&&(H(2),z("src",n.api.staticURL("admin/img/icons/configuration.png"),Gt),H(4),z("ngIf",n.config))},directives:[Hn,Kt,Nc,er,Rn,Ru,Fc,bu,Cu,ED,_r,Br,Hi,g,Mt,mr,zg,fk,$a,Pi],styles:[".content[_ngcontent-%COMP%]{margin-top:2rem}.field[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.field[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.mat-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]}),e}()},{path:"tools/tokens/actor",component:function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(kr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("deleteAction",function(c){return n.onDelete(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}()},{path:"tools/tokens/tunnel",component:function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete tunnel token - USE WITH EXTREME CAUTION!!!"))},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(kr),N(on))},e.\u0275cmp=ke({type:e,selectors:[["uds-tunnel-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("deleteAction",function(c){return n.onDelete(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.tunnelToken)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size))},directives:[Yr],styles:[""]}),e}()}]},{path:"**",redirectTo:"summary"}],Ohe=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[FA.forRoot(Phe,{relativeLinkResolution:"legacy"})],FA]}),e}(),jte=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),jhe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Da,$t,ld,jte],$t,jte]}),e}(),Whe=["*"],Wte=new Ee("MatChipRemove"),Yte=new Ee("MatChipAvatar"),qte=new Ee("MatChipTrailingIcon"),qhe=gp(Eu(El(function e(a){F(this,e),this._elementRef=a}),"primary"),-1),mH=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I){var L;return F(this,n),(L=t.call(this,l))._ngZone=c,L._changeDetectorRef=C,L._hasFocus=!1,L.chipListSelectable=!0,L._chipListMultiple=!1,L._chipListDisabled=!1,L._selected=!1,L._selectable=!0,L._disabled=!1,L._removable=!0,L._onFocus=new qe,L._onBlur=new qe,L.selectionChange=new ye,L.destroyed=new ye,L.removed=new ye,L._addHostClassName(),L._chipRippleTarget=k.createElement("div"),L._chipRippleTarget.classList.add("mat-chip-ripple"),L._elementRef.nativeElement.appendChild(L._chipRippleTarget),L._chipRipple=new gP(It(L),c,L._chipRippleTarget,h),L._chipRipple.setupTriggerEvents(l),L.rippleConfig=_||{},L._animationsDisabled="NoopAnimations"===D,L.tabIndex=null!=I&&parseInt(I)||-1,L}return W(n,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(c){var h=it(c);h!==this._selected&&(this._selected=h,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(c){this._value=c}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(c){this._selectable=it(c)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(c){this._disabled=it(c)}},{key:"removable",get:function(){return this._removable},set:function(c){this._removable=it(c)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var c="mat-basic-chip",h=this._elementRef.nativeElement;h.hasAttribute(c)||h.tagName.toLowerCase()===c?h.classList.add(c):h.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(c),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(c){this.disabled?c.preventDefault():c.stopPropagation()}},{key:"_handleKeydown",value:function(c){if(!this.disabled)switch(c.keyCode){case 46:case 8:this.remove(),c.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),c.preventDefault()}}},{key:"_blur",value:function(){var c=this;this._ngZone.onStable.pipe(or(1)).subscribe(function(){c._ngZone.run(function(){c._hasFocus=!1,c._onBlur.next({chip:c})})})}},{key:"_dispatchSelectionChange",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:c,selected:this._selected})}}]),n}(qhe);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(en),N(US,8),N(Vt),N(lt),N(Un,8),Ci("tabindex"))},e.\u0275dir=ve({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,n,l){var c;1&t&&(Zt(l,Yte,5),Zt(l,qte,5),Zt(l,Wte,5)),2&t&&(Ne(c=Le())&&(n.avatar=c.first),Ne(c=Le())&&(n.trailingIcon=c.first),Ne(c=Le())&&(n.removeIcon=c.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,n){1&t&&ne("click",function(c){return n._handleClick(c)})("keydown",function(c){return n._handleKeydown(c)})("focus",function(){return n.focus()})("blur",function(){return n._blur()}),2&t&&(Ke("tabindex",n.disabled?null:n.tabIndex)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString())("aria-selected",n.ariaSelected),dt("mat-chip-selected",n.selected)("mat-chip-with-avatar",n.avatar)("mat-chip-with-trailing-icon",n.trailingIcon||n.removeIcon)("mat-chip-disabled",n.disabled)("_mat-animation-noopable",n._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Pe]}),e}(),Xte=function(){var e=function(){function a(t,n){F(this,a),this._parentChip=t,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}return W(a,[{key:"_handleClick",value:function(n){var l=this._parentChip;l.removable&&!l.disabled&&l.remove(),n.stopPropagation()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(mH),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,n){1&t&&ne("click",function(c){return n._handleClick(c)})},features:[Xe([{provide:Wte,useExisting:e}])]}),e}(),Zte=new Ee("mat-chips-default-options"),Khe=HS(function(){return function e(a,t,n,l){F(this,e),this._defaultErrorStateMatcher=a,this._parentForm=t,this._parentFormGroup=n,this.ngControl=l}}()),$he=0,Qhe=function e(a,t){F(this,e),this.source=a,this.value=t},Kte=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){var I;return F(this,n),(I=t.call(this,k,_,C,D))._elementRef=l,I._changeDetectorRef=c,I._dir=h,I.controlType="mat-chip-list",I._lastDestroyedChipIndex=null,I._destroyed=new qe,I._uid="mat-chip-list-".concat($he++),I._tabIndex=0,I._userTabIndex=null,I._onTouched=function(){},I._onChange=function(){},I._multiple=!1,I._compareWith=function(L,G){return L===G},I._required=!1,I._disabled=!1,I.ariaOrientation="horizontal",I._selectable=!0,I.change=new ye,I.valueChange=new ye,I.ngControl&&(I.ngControl.valueAccessor=It(I)),I}return W(n,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(c){this._multiple=it(c),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(c){this._compareWith=c,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(c){this.writeValue(c),this._value=c}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(c){this._required=it(c),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(c){this._placeholder=c,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(c){this._disabled=it(c),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(c){var h=this;this._selectable=it(c),this.chips&&this.chips.forEach(function(_){return _.chipListSelectable=h._selectable})}},{key:"tabIndex",set:function(c){this._userTabIndex=c,this._tabIndex=c}},{key:"chipSelectionChanges",get:function(){return ot.apply(void 0,At(this.chips.map(function(c){return c.selectionChange})))}},{key:"chipFocusChanges",get:function(){return ot.apply(void 0,At(this.chips.map(function(c){return c._onFocus})))}},{key:"chipBlurChanges",get:function(){return ot.apply(void 0,At(this.chips.map(function(c){return c._onBlur})))}},{key:"chipRemoveChanges",get:function(){return ot.apply(void 0,At(this.chips.map(function(c){return c.destroyed})))}},{key:"ngAfterContentInit",value:function(){var c=this;this._keyManager=new ib(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Ht(this._destroyed)).subscribe(function(h){return c._keyManager.withHorizontalOrientation(h)}),this._keyManager.tabOut.pipe(Ht(this._destroyed)).subscribe(function(){c._allowFocusEscape()}),this.chips.changes.pipe($r(null),Ht(this._destroyed)).subscribe(function(){c.disabled&&Promise.resolve().then(function(){c._syncChipsState()}),c._resetChips(),c._initializeSelection(),c._updateTabIndex(),c._updateFocusForDestroyedChips(),c.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new ip(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(c){this._chipInput=c,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",c.id)}},{key:"setDescribedByIds",value:function(c){this._ariaDescribedby=c.join(" ")}},{key:"writeValue",value:function(c){this.chips&&this._setSelectionByValue(c,!1)}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this.stateChanges.next()}},{key:"onContainerClick",value:function(c){this._originatesFromChip(c)||this.focus()}},{key:"focus",value:function(c){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(c),this.stateChanges.next()))}},{key:"_focusInput",value:function(c){this._chipInput&&this._chipInput.focus(c)}},{key:"_keydown",value:function(c){var h=c.target;h&&h.classList.contains("mat-chip")&&(this._keyManager.onKeydown(c),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var c=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(c)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(c){return c>=0&&c1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(k){return k.deselect()}),Array.isArray(c))c.forEach(function(k){return h._selectValue(k,_)}),this._sortValues();else{var C=this._selectValue(c,_);C&&_&&this._keyManager.setActiveItem(C)}}},{key:"_selectValue",value:function(c){var h=this,_=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],C=this.chips.find(function(k){return null!=k.value&&h._compareWith(k.value,c)});return C&&(_?C.selectViaInteraction():C.select(),this._selectionModel.select(C)),C}},{key:"_initializeSelection",value:function(){var c=this;Promise.resolve().then(function(){(c.ngControl||c._value)&&(c._setSelectionByValue(c.ngControl?c.ngControl.value:c._value,!1),c.stateChanges.next())})}},{key:"_clearSelection",value:function(c){this._selectionModel.clear(),this.chips.forEach(function(h){h!==c&&h.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var c=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(h){h.selected&&c._selectionModel.select(h)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(c){var h;h=Array.isArray(this.selected)?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=h,this.change.emit(new Qhe(this,h)),this.valueChange.emit(h),this._onChange(h),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var c=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){c.focused||c._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var c=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){c._tabIndex=c._userTabIndex||0,c._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var c=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(h){h.source.selected?c._selectionModel.select(h.source):c._selectionModel.deselect(h.source),c.multiple||c.chips.forEach(function(_){!c._selectionModel.isSelected(_)&&_.selected&&_.deselect()}),h.isUserInput&&c._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var c=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(h){var _=c.chips.toArray().indexOf(h.chip);c._isValidIndex(_)&&c._keyManager.updateActiveItem(_),c.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){c._blur(),c.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var c=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(h){var _=h.chip,C=c.chips.toArray().indexOf(h.chip);c._isValidIndex(C)&&_._hasFocus&&(c._lastDestroyedChipIndex=C)})}},{key:"_originatesFromChip",value:function(c){for(var h=c.target;h&&h!==this._elementRef.nativeElement;){if(h.classList.contains("mat-chip"))return!0;h=h.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(c){return c._hasFocus})}},{key:"_syncChipsState",value:function(){var c=this;this.chips&&this.chips.forEach(function(h){h._chipListDisabled=c._disabled,h._chipListMultiple=c.multiple})}}]),n}(Khe);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Vt),N(Mr,8),N(Lc,8),N(yp,8),N(dd),N(Ut,10))},e.\u0275cmp=ke({type:e,selectors:[["mat-chip-list"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,mH,5),2&t&&Ne(c=Le())&&(n.chips=c)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,n){1&t&&ne("focus",function(){return n.focus()})("blur",function(){return n._blur()})("keydown",function(c){return n._keydown(c)}),2&t&&(Zi("id",n._uid),Ke("tabindex",n.disabled?null:n._tabIndex)("aria-describedby",n._ariaDescribedby||null)("aria-required",n.role?n.required:null)("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-multiselectable",n.multiple)("role",n.role)("aria-orientation",n.ariaOrientation),dt("mat-chip-list-disabled",n.disabled)("mat-chip-list-invalid",n.errorState)("mat-chip-list-required",n.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[Xe([{provide:nk,useExisting:e}]),Pe],ngContentSelectors:Whe,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,n){1&t&&(rr(),A(0,"div",0),Wt(1),E())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),e}(),Jhe=0,$te=function(){var e=function(){function a(t,n){F(this,a),this._elementRef=t,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new ye,this.placeholder="",this.id="mat-chip-list-input-".concat(Jhe++),this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return W(a,[{key:"chipList",set:function(n){n&&(this._chipList=n,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(n){this._addOnBlur=it(n)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(n){this._disabled=it(n)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(n){if(n){if(9===n.keyCode&&!Bi(n,"shiftKey")&&this._chipList._allowFocusEscape(),8===n.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void n.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(n)}},{key:"_keyup",value:function(n){!this._focusLastChipOnBackspace&&8===n.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,n.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(n){!this.inputElement.value&&!!n&&this._chipList._keydown(n),(!n||this._isSeparatorKey(n))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==n||n.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(n){this.inputElement.focus(n)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(n){return!Bi(n)&&new Set(this.separatorKeyCodes).has(n.keyCode)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Zte))},e.\u0275dir=ve({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,n){1&t&&ne("keydown",function(c){return n._keydown(c)})("keyup",function(c){return n._keyup(c)})("blur",function(){return n._blur()})("focus",function(){return n._focus()})("input",function(){return n._onInput()}),2&t&&(Zi("id",n.id),Ke("disabled",n.disabled||null)("placeholder",n.placeholder||null)("aria-invalid",n._chipList&&n._chipList.ngControl?n._chipList.ngControl.invalid:null)("aria-required",n._chipList&&n._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[an]}),e}(),epe={separatorKeyCodes:[13]},tpe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[dd,{provide:Zte,useValue:epe}],imports:[[$t]]}),e}(),spe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),wpe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Wa,$t,spe,xg]]}),e}(),Spe=["*",[["mat-toolbar-row"]]],kpe=["*","mat-toolbar-row"],Mpe=Eu(function(){return function e(a){F(this,e),this._elementRef=a}}()),xpe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),Tpe=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _;return F(this,n),(_=t.call(this,l))._platform=c,_._document=h,_}return W(n,[{key:"ngAfterViewInit",value:function(){var c=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return c._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(Mpe);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(en),N(lt))},e.\u0275cmp=ke({type:e,selectors:[["mat-toolbar"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,xpe,5),2&t&&Ne(c=Le())&&(n._toolbarRows=c)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,n){2&t&&dt("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Pe],ngContentSelectors:kpe,decls:2,vars:0,template:function(t,n){1&t&&(rr(Spe),Wt(0),Wt(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),Dpe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t],$t]}),e}(),Ape=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[{provide:nee,useValue:{floatLabel:"always"}},{provide:hP,useValue:udsData.language}],imports:[Wa,Jne,ere,Dpe,Rc,tle,hee,wpe,m5,U5,mse,lee,Ude,nq,ose,koe,Roe,Yse,jhe,Ore,tpe,qde,jue,Mue,AJ,rle,Nse]}),e}();function Epe(e,a){if(1&e){var t=De();A(0,"button",6),ne("click",function(){var h=pe(t).$implicit;return J().changeLang(h)}),K(1),E()}if(2&e){var n=a.$implicit;H(1),On(n.name)}}function Ppe(e,a){if(1&e&&(A(0,"button",12),A(1,"i",7),K(2,"face"),E(),K(3),E()),2&e){var t=J();z("matMenuTriggerFor",Pn(7)),H(3),On(t.api.user.user)}}function Ope(e,a){if(1&e&&(A(0,"button",18),K(1),A(2,"i",7),K(3,"arrow_drop_down"),E(),E()),2&e){var t=J();z("matMenuTriggerFor",Pn(7)),H(1),Ve("",t.api.user.user," ")}}var Ipe=function(){function e(a){this.api=a,this.isNavbarCollapsed=!0;var t=a.config.language;this.langs=[];for(var n=0,l=a.config.available_languages;n .mat-button[_ngcontent-%COMP%]{padding-left:1.5rem}.submenu2[_ngcontent-%COMP%] > .mat-button[_ngcontent-%COMP%]{padding-left:1.8rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em 0 0} .dark-theme .sidebar{box-shadow:0 16px 38px -12px #3030308f,0 4px 25px #3030301f,0 8px 10px -5px #30303033} .dark-theme .sidebar:hover .sidebar-link{color:#fff!important}']}),e}();function Vpe(e,a){1&e&&me(0,"div",1),2&e&&z("innerHTML",J().messages,Si)}var Bpe=function(){function e(a){this.api=a,this.messages="",this.visible=!1}return e.prototype.ngOnInit=function(){var a=this;if(this.api.notices.length>0){var n='
';this.messages='
'+n+this.api.notices.map(function(l){return l.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1")}).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").subscribe(function(){a.visible=!0})}},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(t,n){1&t&&re(0,Vpe,1,1,"div",0),2&t&&z("ngIf",n.visible)},directives:[Kt],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:steelblue;border-radius:3px;box-shadow:#00000024 0 4px 20px,#465d9c66 0 7px 10px -5px;box-sizing:border-box;color:#fff;margin:1rem 2rem 0;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]}),e}(),Hpe=function(){function e(){}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(t,n){1&t&&(A(0,"div"),K(1,"\xa9 2012-2022 "),A(2,"a",0),K(3,"Virtual Cable S.L.U."),E(),E())},styles:['.mat-badge-content[_ngcontent-%COMP%]{font-weight:600;font-size:12px;font-family:Roboto,"Helvetica Neue",sans-serif}.mat-badge-small[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:9px}.mat-badge-large[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:24px}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2[_ngcontent-%COMP%], .mat-title[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3[_ngcontent-%COMP%], .mat-subheading-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:400 16px / 28px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4[_ngcontent-%COMP%], .mat-subheading-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font:400 15px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 calc(14px * .83) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 calc(14px * .67) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-body-strong[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-small[_ngcontent-%COMP%], .mat-caption[_ngcontent-%COMP%]{font:400 12px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-display-4[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-4[_ngcontent-%COMP%]{font:300 112px / 112px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-3[_ngcontent-%COMP%]{font:400 56px / 56px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-2[_ngcontent-%COMP%]{font:400 45px / 48px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-1[_ngcontent-%COMP%]{font:400 34px / 40px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-mini-fab[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-button-toggle[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500}.mat-card-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{font-size:20px}.mat-card-subtitle[_ngcontent-%COMP%], .mat-card-content[_ngcontent-%COMP%]{font-size:14px}.mat-checkbox[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-checkbox-layout[_ngcontent-%COMP%] .mat-checkbox-label[_ngcontent-%COMP%]{line-height:24px}.mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-chip[_ngcontent-%COMP%] .mat-chip-trailing-icon.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-remove.mat-icon[_ngcontent-%COMP%]{font-size:18px}.mat-table[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-header-cell[_ngcontent-%COMP%]{font-size:12px;font-weight:500}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:14px}.mat-calendar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-calendar-body[_ngcontent-%COMP%]{font-size:13px}.mat-calendar-body-label[_ngcontent-%COMP%], .mat-calendar-period-button[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-calendar-table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:11px;font-weight:400}.mat-dialog-title[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-expansion-panel-header[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field[_ngcontent-%COMP%]{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.34375em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:150%;line-height:1.125}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{height:1.5em;width:1.5em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:1.125em;line-height:1.125}.mat-form-field-infix[_ngcontent-%COMP%]{padding:.5em 0;border-top:.84375em solid transparent}.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper[_ngcontent-%COMP%]{top:-.84375em;padding-top:.84375em}.mat-form-field-label[_ngcontent-%COMP%]{top:1.34375em}.mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.34375em}.mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.7916666667em)}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);-ms-transform:translateY(-1.28125em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);-ms-transform:translateY(-1.28124em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);-ms-transform:translateY(-1.28123em) scale(.75);width:133.3333533333%}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.28125em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{margin-top:.5416666667em;top:calc(100% - 1.6666666667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.25em 0 .75em}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:1em 0}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}input.mat-input-element[_ngcontent-%COMP%]{margin-top:-.0625em}.mat-menu-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:400}.mat-paginator[_ngcontent-%COMP%], .mat-paginator-page-size[_ngcontent-%COMP%] .mat-select-trigger[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px}.mat-radio-button[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select-trigger[_ngcontent-%COMP%]{height:1.125em}.mat-slide-toggle-content[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-step-label[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.mat-step-sub-label-error[_ngcontent-%COMP%]{font-weight:normal}.mat-step-label-error[_ngcontent-%COMP%]{font-size:14px}.mat-step-label-selected[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-tab-group[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-toolbar[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0}.mat-tooltip[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset[_ngcontent-%COMP%]{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:16px}.mat-optgroup-label[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-simple-snackbar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px}.mat-simple-snackbar-action[_ngcontent-%COMP%]{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tree-node[_ngcontent-%COMP%], .mat-nested-tree-node[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale(0)}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%], .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{-webkit-animation:cdk-text-field-autofill-start 0s 1ms;animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){-webkit-animation:cdk-text-field-autofill-end 0s 1ms;animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:#000} .dark-theme div, .dark-theme a{color:#fff}']}),e}(),zpe=function(){function e(a){this.api=a,this.title="UDS Admin",this.blackTheme=!1}return e.prototype.handleKeyboardEvent=function(a){a.altKey&&a.ctrlKey&&"b"===a.key&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))},e.prototype.ngOnInit=function(){this.api.switchTheme(this.blackTheme)},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-root"]],hostBindings:function(t,n){1&t&&ne("keydown",function(c){return n.handleKeyboardEvent(c)},!1,E0)},decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,n){1&t&&(me(0,"uds-navbar"),me(1,"uds-sidebar"),A(2,"div",0),A(3,"div",1),me(4,"uds-notices"),me(5,"router-outlet"),E(),A(6,"div",2),me(7,"uds-footer"),E(),E())},directives:[Ipe,Npe,Bpe,Wy,Hpe],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 56px - 8px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),e}(),Upe=function(e){function a(){var t=e.call(this)||this;return t.itemsPerPageLabel=django.gettext("Items per page"),t}return aa(a,e),a.\u0275prov=We({token:a,factory:a.\u0275fac=function(n){return new(n||a)}}),a}(kb),Gpe=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:7,consts:[["appearance","standard"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","autocomplete","ngModelChange","change"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("maxlength",n.field.gui.length||128)("autocomplete","new-"+n.field.name))},directives:[_r,Br,Hi,g,Mt,mr,Iu,L5],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),e}();function jpe(e,a){if(1&e&&(A(0,"mat-option",4),K(1),E()),2&e){var t=a.$implicit;z("value",t),H(1),Ve(" ",t," ")}}var Wpe=function(){function e(){this.changed=new ye,this.values=[]}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,this.values=this.field.gui.values.map(function(a){return a.text})},e.prototype._filter=function(){var a=this.field.value.toLowerCase();return this.values.filter(function(t){return t.toLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:9,consts:[["appearance","standard"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete","ngModelChange","change"],[3,"value"]],template:function(t,n){if(1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"mat-autocomplete",null,1),re(5,jpe,2,2,"mat-option",2),E(),A(6,"input",3),ne("ngModelChange",function(h){return n.field.value=h})("change",function(){return n.changed.emit(n)}),E(),E()),2&t){var l=Pn(4);H(2),Ve(" ",n.field.gui.label," "),H(3),z("ngForOf",n._filter()),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("maxlength",n.field.gui.length||128)("matAutocomplete",l)("autocomplete","new-"+n.field.name)}},directives:[_r,Br,cX,er,Hi,g,uH,Mt,mr,Iu,L5,Pi],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),e}(),Ype=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){!this.field.value&&0!==this.field.value&&(this.field.value=this.field.gui.defvalue)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","number",3,"ngModel","placeholder","required","disabled","ngModelChange","change"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly))},directives:[_r,Br,Hi,zg,g,Mt,mr,Iu],styles:[""]}),e}(),qpe=function(){function e(){this.changed=new ye,this.passwordType="password"}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[["appearance","standard","floatLabel","always"],["matInput","","autocomplete","new-password",3,"ngModel","placeholder","required","disabled","type","ngModelChange","change"],["mat-button","","matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),E(),A(4,"a",2),ne("click",function(){return n.passwordType="text"===n.passwordType?"password":"text"}),A(5,"i",3),K(6,"remove_red_eye"),E(),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("type",n.passwordType))},directives:[_r,Br,Hi,g,Mt,mr,Iu,mp,rk],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),e}(),Xpe=function(){function e(){}return e.prototype.ngOnInit=function(){(""===this.field.value||void 0===this.field.value)&&(this.field.value=this.field.gui.defvalue)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(t,n){},styles:[""]}),e}(),Zpe=function(){function e(){}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","auto"],["matInput","","type","text",3,"ngModel","placeholder","required","readonly","ngModelChange"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"textarea",1),ne("ngModelChange",function(c){return n.field.value=c}),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",n.field.gui.required)("readonly",n.field.gui.rdonly))},directives:[_r,Br,Hi,g,Mt,mr,Iu],styles:[""]}),e}();function Kpe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",3),ne("changed",function(l){return pe(t),J().filter=l}),E()}}function $pe(e,a){if(1&e&&(A(0,"mat-option",4),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.text," ")}}var Qpe=function(){function e(){this.changed=new ye,this.filter=""}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>0&&(this.field.value=this.field.gui.values[0].id),this.field.value=""+this.field.value},e.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var a=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(t){return t.text.toLocaleLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[[3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"mat-select",0),ne("ngModelChange",function(c){return n.field.value=c})("valueChange",function(){return n.changed.emit(n)}),re(4,Kpe,1,0,"uds-mat-select-search",1),re(5,$pe,2,2,"mat-option",2),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(1),z("ngIf",n.field.gui.values.length>10),H(1),z("ngForOf",n.filteredValues()))},directives:[_r,Br,$a,Mt,mr,Iu,Kt,er,Vc,Pi],styles:[""]}),e}();function Jpe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",3),ne("changed",function(l){return pe(t),J().filter=l}),E()}}function eve(e,a){if(1&e&&(A(0,"mat-option",4),K(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.text," ")}}var tve=function(){function e(){this.changed=new ye,this.filter=""}return e.prototype.ngOnInit=function(){this.field.value=void 0,void 0!==this.field.values?this.field.values.forEach(function(a,t,n){n[t]=""+a.id}):this.field.values=new Array},e.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var a=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(t){return t.text.toLocaleLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[["multiple","",3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"mat-select",0),ne("ngModelChange",function(c){return n.field.values=c})("valueChange",function(){return n.changed.emit(n)}),re(4,Jpe,1,0,"uds-mat-select-search",1),re(5,eve,2,2,"mat-option",2),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.values)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(1),z("ngIf",n.field.gui.values.length>10),H(1),z("ngForOf",n.filteredValues()))},directives:[_r,Br,$a,Mt,mr,Iu,Kt,er,Vc,Pi],styles:[""]}),e}();function nve(e,a){if(1&e){var t=De();A(0,"div",12),A(1,"div",13),K(2),E(),A(3,"div",14),K(4," \xa0"),A(5,"a",15),ne("click",function(){var h=pe(t).index;return J().removeElement(h)}),A(6,"i",16),K(7,"close"),E(),E(),E(),E()}if(2&e){var n=a.$implicit;H(2),Ve(" ",n," ")}}var rve=function(){function e(a,t,n,l){var c=this;this.api=a,this.rest=t,this.dialogRef=n,this.data=l,this.values=[],this.input="",this.onSave=new ye(!0),this.data.values.forEach(function(h){return c.values.push(h)})}return e.launch=function(a,t,n){var l=window.innerWidth<800?"50%":"30%";return a.gui.dialog.open(e,{width:l,data:{title:t,values:n},disableClose:!0}).componentInstance.onSave},e.prototype.addElements=function(){var a=this;this.input.split(",").forEach(function(t){a.values.push(t)}),this.input=""},e.prototype.checkKey=function(a){"Enter"===a.code&&this.addElements()},e.prototype.removeAll=function(){this.values.length=0},e.prototype.removeElement=function(a){this.values.splice(a,1)},e.prototype.save=function(){var a=this;this.data.values.length=0,this.values.forEach(function(t){return a.data.values.push(t)}),this.onSave.emit(this.values),this.dialogRef.close()},e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)(N(Pt),N(on),N(Er),N(jr))},e.\u0275cmp=ke({type:e,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","",1,"material-icons",3,"click"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(t,n){1&t&&(A(0,"h4",0),K(1),E(),A(2,"mat-dialog-content"),A(3,"div",1),A(4,"div",2),re(5,nve,8,1,"div",3),E(),A(6,"div",4),A(7,"button",5),ne("click",function(){return n.removeAll()}),A(8,"uds-translate"),K(9,"Remove all"),E(),E(),E(),A(10,"div",6),A(11,"mat-form-field",7),A(12,"input",8),ne("keyup",function(c){return n.checkKey(c)})("ngModelChange",function(c){return n.input=c}),E(),A(13,"button",9),ne("click",function(){return n.addElements()}),A(14,"uds-translate"),K(15,"Add"),E(),E(),E(),E(),E(),E(),A(16,"mat-dialog-actions"),A(17,"button",10),A(18,"uds-translate"),K(19,"Cancel"),E(),E(),A(20,"button",11),ne("click",function(){return n.save()}),A(21,"uds-translate"),K(22,"Ok"),E(),E(),E()),2&t&&(H(1),Ve(" ",n.data.title,"\n"),H(4),z("ngForOf",n.values),H(7),z("ngModel",n.input))},directives:[Wr,Fr,er,Rn,Hn,_r,Hi,g,Mt,mr,rk,Qr,Lr],styles:['.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between;justify-self:center}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem}.input[_ngcontent-%COMP%]{margin:0 1rem}.elem[_ngcontent-%COMP%]{font-family:"Courier New",Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.elem[_ngcontent-%COMP%]:hover{background-color:#333;color:#fff;cursor:default}.val[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}']}),e}(),ive=function(){function e(a){this.api=a,this.changed=new ye}return e.prototype.ngOnInit=function(){},e.prototype.launch=function(){var a=this;void 0===this.field.values&&(this.field.values=[]),rve.launch(this.api,this.field.gui.label,this.field.values).subscribe(function(t){a.changed.emit({field:a.field})})},e.prototype.getValue=function(){if(void 0===this.field.values)return"";var a=this.field.values.filter(function(t,n,l){return n<5}).join(", ");return this.field.values.length>5&&(a+=django.gettext(", (%i more items)").replace("%i",""+(this.field.values.length-5))),a},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled","click"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"input",1),ne("click",function(){return n.launch()}),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("readonly",!0)("value",n.getValue())("placeholder",n.field.gui.tooltip)("disabled",!0===n.field.gui.rdonly))},directives:[_r,Br,Hi],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),e}(),ave=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){this.field.value=function(e){return""===e||null==e}(this.field.value)?jq(this.field.gui.defvalue):jq(this.field.value)},e.prototype.getValue=function(){return jq(this.field.value)?django.gettext("Yes"):django.gettext("No")},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:5,vars:5,consts:[[1,"mat-form-field-infix"],[1,"label"],[3,"ngModel","required","disabled","ngModelChange","change"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"span",1),K(2),E(),A(3,"mat-slide-toggle",2),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),K(4),E(),E()),2&t&&(H(2),On(n.field.gui.label),H(1),z("ngModel",n.field.value)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(1),Ve(" ",n.getValue()," "))},directives:[fk,Kee,Mt,mr,Iu],styles:[".label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}();function ove(e,a){if(1&e&&me(0,"div",5),2&e){var t=J().$implicit;z("innerHTML",J().asIcon(t),Si)}}function sve(e,a){if(1&e&&(A(0,"div"),re(1,ove,1,1,"div",4),E()),2&e){var t=a.$implicit,n=J();H(1),z("ngIf",t.id==n.field.value)}}function lve(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",6),ne("changed",function(l){return pe(t),J().filter=l}),E()}}function uve(e,a){if(1&e&&(A(0,"mat-option",7),me(1,"div",5),E()),2&e){var t=a.$implicit,n=J();z("value",t.id),H(1),z("innerHTML",n.asIcon(t),Si)}}var cve=function(){function e(a){this.api=a,this.changed=new ye,this.filter=""}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>=0&&(this.field.value=this.field.gui.values[0].id)},e.prototype.asIcon=function(a){return this.api.safeString(this.api.gui.icon(a.img)+a.text)},e.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var a=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(t){return t.text.toLocaleLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)(N(Pt))},e.\u0275cmp=ke({type:e,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"placeholder","ngModel","required","disabled","valueChange","ngModelChange"],[4,"ngFor","ngForOf"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"mat-form-field"),A(1,"mat-label"),K(2),E(),A(3,"mat-select",0),ne("valueChange",function(){return n.changed.emit(n)})("ngModelChange",function(c){return n.field.value=c}),A(4,"mat-select-trigger"),re(5,sve,2,1,"div",1),E(),re(6,lve,1,0,"uds-mat-select-search",2),re(7,uve,2,2,"mat-option",3),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("placeholder",n.field.gui.tooltip)("ngModel",n.field.value)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(2),z("ngForOf",n.field.gui.values),H(1),z("ngIf",n.field.gui.values.length>10),H(1),z("ngForOf",n.filteredValues()))},directives:[_r,Br,$a,Mt,mr,Iu,eoe,er,Kt,Vc,Pi],styles:[""]}),e}(),fve=function(){function e(){this.changed=new ye,this.value=new Date}return Object.defineProperty(e.prototype,"date",{get:function(){return this.value},set:function(a){this.value!==a&&(this.value=a,this.field.value=JS("%Y-%m-%d",this.value))},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,"2000-01-01"===this.field.value?this.field.value=JS("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=JS("%Y-12-31"));var a=this.field.value.split("-");3===a.length&&(this.value=new Date(+a[0],+a[1]-1,+a[2]))},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","placeholder","disabled","ngModelChange"],["matSuffix","",3,"for"],["endDatePicker",""]],template:function(t,n){if(1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"input",1),ne("ngModelChange",function(h){return n.date=h}),E(),me(4,"mat-datepicker-toggle",2),me(5,"mat-datepicker",null,3),E()),2&t){var l=Pn(6);H(2),Ve(" ",n.field.gui.label," "),H(1),z("matDatepicker",l)("ngModel",n.date)("placeholder",n.field.gui.tooltip)("disabled",!0===n.field.gui.rdonly),H(1),z("for",l)}},directives:[_r,Br,Hi,hH,g,Mt,mr,Mte,rk,wte],styles:[""]}),e}();function dve(e,a){if(1&e){var t=De();A(0,"mat-chip",5),ne("removed",function(){var _=pe(t).$implicit;return J().remove(_)}),K(1),A(2,"i",6),K(3,"cancel"),E(),E()}if(2&e){var n=a.$implicit,l=J();z("selectable",!1)("removable",!0!==l.field.gui.rdonly),H(1),Ve(" ",n," ")}}var a,t,n,hve=function(){function e(){this.changed=new ye,this.separatorKeysCodes=[13,188]}return e.prototype.ngOnInit=function(){void 0===this.field.values&&(this.field.values=new Array,this.field.value=void 0),this.field.values.forEach(function(a,t,n){""===a.trim()&&n.splice(t,1)})},e.prototype.add=function(a){var t=a.input,n=a.value;(n||"").trim()&&this.field.values.push(n.trim()),t&&(t.value="")},e.prototype.remove=function(a){var t=this.field.values.indexOf(a);t>=0&&this.field.values.splice(t,1)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=ke({type:e,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:8,consts:[["appearance","standard","floatLabel","always"],[3,"selectable","disabled","change"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],[3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[3,"selectable","removable","removed"],["matChipRemove","",1,"material-icons"]],template:function(t,n){if(1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),K(2),E(),A(3,"mat-chip-list",1,2),ne("change",function(){return n.changed.emit(n)}),re(5,dve,4,3,"mat-chip",3),A(6,"input",4),ne("matChipInputTokenEnd",function(h){return n.add(h)}),E(),E(),E()),2&t){var l=Pn(4);H(2),Ve(" ",n.field.gui.label," "),H(1),z("selectable",!1)("disabled",!0===n.field.gui.rdonly),H(2),z("ngForOf",n.field.values),H(1),z("placeholder",n.field.gui.tooltip)("matChipInputFor",l)("matChipInputSeparatorKeyCodes",n.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},directives:[_r,Br,Kte,er,$te,mH,Xte],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),e}(),pve=(Dt(41419),function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e,bootstrap:[zpe]}),e.\u0275inj=pt({providers:[Pt,on,{provide:kb,useClass:Upe}],imports:[[QD,kN,Ohe,U9,Ape,cae.forRoot({echarts:function(){return Promise.resolve().then(Dt.bind(Dt,38175))}})]]}),e}());a=[bu,dee,Cu,Gpe,Wpe,Zpe,Ype,qpe,Xpe,Qpe,tve,ive,ave,cve,fve,hve],t=[],(n=gJ.\u0275cmp).directiveDefs=function(){return a.map(Vl)},n.pipeDefs=function(){return t.map(xk)},function(){if(oc)throw new Error("Cannot enable prod mode after platform setup.");XT=!1}(),vj().bootstrapModule(pve).catch(function(e){return console.log(e)})},79052:function(Zo,sr,Dt){Zo.exports=Dt(45579)}},function(Zo){Zo(Zo.s=33516)}]); \ No newline at end of file +(self.webpackChunkuds_admin=self.webpackChunkuds_admin||[]).push([[179],{98255:function(Zo){function sr(Dt){return Promise.resolve().then(function(){var Oe=new Error("Cannot find module '"+Dt+"'");throw Oe.code="MODULE_NOT_FOUND",Oe})}sr.keys=function(){return[]},sr.resolve=sr,sr.id=98255,Zo.exports=sr},38175:function(Zo,sr,Dt){"use strict";Dt.r(sr),Dt.d(sr,{Axis:function(){return _l},ChartView:function(){return Vn},ComponentModel:function(){return qt},ComponentView:function(){return un},List:function(){return Ga},Model:function(){return Nn},PRIORITY:function(){return lT},SeriesModel:function(){return vt},color:function(){return Ie},connect:function(){return G8},dataTool:function(){return q8},dependencies:function(){return F8},disConnect:function(){return O2},disconnect:function(){return AZ},dispose:function(){return j8},env:function(){return Ze},extendChartView:function(){return EU},extendComponentModel:function(){return VZ},extendComponentView:function(){return BZ},extendSeriesModel:function(){return AU},format:function(){return It},getCoordinateSystemDimensions:function(){return W8},getInstanceByDom:function(){return I2},getInstanceById:function(){return R2},getMap:function(){return Y8},graphic:function(){return Gn},helper:function(){return _t},init:function(){return DZ},innerDrawElementOnCanvas:function(){return tT},matrix:function(){return ko},number:function(){return ae},parseGeoJSON:function(){return b2},parseGeoJson:function(){return b2},registerAction:function(){return pl},registerCoordinateSystem:function(){return B2},registerLayout:function(){return H2},registerLoading:function(){return mT},registerLocale:function(){return LM},registerMap:function(){return _T},registerPostInit:function(){return N2},registerPostUpdate:function(){return V2},registerPreprocessor:function(){return L2},registerProcessor:function(){return F2},registerTheme:function(){return $C},registerTransform:function(){return U2},registerUpdateLifecycle:function(){return vT},registerVisual:function(){return Bf},setCanvasCreator:function(){return EZ},throttle:function(){return Wt},time:function(){return xr},use:function(){return Ot},util:function(){return Vu},vector:function(){return Gi},version:function(){return M2},zrUtil:function(){return Oe},zrender:function(){return W}});var Oe={};Dt.r(Oe),Dt.d(Oe,{$override:function(){return mk},HashMap:function(){return qP},assert:function(){return Oa},bind:function(){return Ye},clone:function(){return rt},concatArray:function(){return Bb},createCanvas:function(){return md},createHashMap:function(){return et},createObject:function(){return Mp},curry:function(){return St},defaults:function(){return tt},each:function(){return q},eqNaN:function(){return Uu},extend:function(){return ke},filter:function(){return Yn},find:function(){return UP},guid:function(){return qe},hasOwn:function(){return Ae},indexOf:function(){return Rt},inherits:function(){return kp},isArray:function(){return we},isArrayLike:function(){return Pa},isBuiltInObject:function(){return GP},isDom:function(){return Xr},isFunction:function(){return An},isGradientObject:function(){return jP},isImagePatternObject:function(){return WP},isNumber:function(){return yk},isObject:function(){return at},isPrimitive:function(){return Zg},isRegExp:function(){return SH},isString:function(){return yt},isStringSafe:function(){return Gc},isTypedArray:function(){return Ii},keys:function(){return _n},logError:function(){return Ns},map:function(){return Te},merge:function(){return He},mergeAll:function(){return Lb},mixin:function(){return qr},noop:function(){return Mo},normalizeCssArray:function(){return Nb},reduce:function(){return zu},retrieve:function(){return ni},retrieve2:function(){return ot},retrieve3:function(){return Qo},setAsPrimitive:function(){return Vb},slice:function(){return Fb},trim:function(){return jc}});var Gi={};Dt.r(Gi),Dt.d(Gi,{add:function(){return dr},applyTransform:function(){return _i},clone:function(){return Gu},copy:function(){return ca},create:function(){return _d},dist:function(){return Vs},distSquare:function(){return Xc},distance:function(){return qc},distanceSquare:function(){return wk},div:function(){return KP},dot:function(){return xH},len:function(){return zb},lenSquare:function(){return ZP},length:function(){return We},lengthSquare:function(){return pt},lerp:function(){return Cd},max:function(){return ju},min:function(){return Ia},mul:function(){return Yc},negate:function(){return yn},normalize:function(){return bd},scale:function(){return Ub},scaleAndAdd:function(){return Ck},set:function(){return Ja},sub:function(){return yd}});var Ie={};Dt.r(Ie),Dt.d(Ie,{fastLerp:function(){return Wb},fastMapToColor:function(){return FX},lerp:function(){return IH},lift:function(){return lO},lum:function(){return qb},mapToColor:function(){return cO},modifyAlpha:function(){return Yb},modifyHSL:function(){return Qc},parse:function(){return La},random:function(){return Ad},stringify:function(){return zl},toHex:function(){return uO}});var ko={};Dt.r(ko),Dt.d(ko,{clone:function(){return lm},copy:function(){return Po},create:function(){return no},identity:function(){return Wu},invert:function(){return Gl},mul:function(){return Jo},rotate:function(){return Od},scale:function(){return $b},translate:function(){return Oo}});var W={};Dt.r(W),Dt.d(W,{dispose:function(){return GH},disposeAll:function(){return kO},getInstance:function(){return MO},init:function(){return Hp},registerPainter:function(){return xO},version:function(){return jH}});var F={};Dt.r(F),Dt.d(F,{Arc:function(){return i_},BezierCurve:function(){return c_},BoundingRect:function(){return Nt},Circle:function(){return sl},CompoundPath:function(){return Nx},Ellipse:function(){return yC},Group:function(){return ct},Image:function(){return si},IncrementalDisplayable:function(){return Tv},Line:function(){return Ti},LinearGradient:function(){return xv},OrientedBoundingRect:function(){return TC},Path:function(){return Vt},Point:function(){return Tt},Polygon:function(){return ba},Polyline:function(){return Cr},RadialGradient:function(){return MC},Rect:function(){return sn},Ring:function(){return Mv},Sector:function(){return ir},Text:function(){return fn},applyTransform:function(){return ul},clipPointsByRect:function(){return Gx},clipRectByRect:function(){return YR},createIcon:function(){return cl},extendPath:function(){return UR},extendShape:function(){return Bx},getShapeClass:function(){return Hx},getTransform:function(){return Lf},groupTransition:function(){return Dv},initProps:function(){return br},isElementRemoved:function(){return ev},lineLineIntersect:function(){return jx},linePolygonIntersect:function(){return v_},makeImage:function(){return GR},makePath:function(){return DC},mergePath:function(){return Ca},registerShape:function(){return ll},removeElement:function(){return Cf},removeElementWithFadeOut:function(){return Fm},resizePath:function(){return Ux},setTooltipConfig:function(){return Av},subPixelOptimize:function(){return Rf},subPixelOptimizeLine:function(){return a8},subPixelOptimizeRect:function(){return jR},transformDirection:function(){return AC},updateProps:function(){return ln}});var _t={};Dt.r(_t),Dt.d(_t,{createDimensions:function(){return $2},createList:function(){return gU},createScale:function(){return mU},createSymbol:function(){return Ir},createTextStyle:function(){return bL},dataStack:function(){return _L},enableHoverEmphasis:function(){return qn},getECData:function(){return ht},getLayoutRect:function(){return li},mixinAxisModelCommonMethods:function(){return yL}});var ae={};Dt.r(ae),Dt.d(ae,{MAX_SAFE_INTEGER:function(){return Up},asc:function(){return io},getPercentWithPrecision:function(){return TO},getPixelPrecision:function(){return o0},getPrecision:function(){return ns},getPrecisionSafe:function(){return qk},isNumeric:function(){return of},isRadianAroundZero:function(){return hm},linearMap:function(){return bn},nice:function(){return pm},numericToNumber:function(){return Fa},parseDate:function(){return ao},quantile:function(){return Ci},quantity:function(){return Fd},quantityExponent:function(){return Xt},reformIntervals:function(){return af},remRadian:function(){return Ld},round:function(){return hi}});var xr={};Dt.r(xr),Dt.d(xr,{format:function(){return iu},parse:function(){return ao}});var Gn={};Dt.r(Gn),Dt.d(Gn,{Arc:function(){return i_},BezierCurve:function(){return c_},BoundingRect:function(){return Nt},Circle:function(){return sl},CompoundPath:function(){return Nx},Ellipse:function(){return yC},Group:function(){return ct},Image:function(){return si},IncrementalDisplayable:function(){return Tv},Line:function(){return Ti},LinearGradient:function(){return xv},Polygon:function(){return ba},Polyline:function(){return Cr},RadialGradient:function(){return MC},Rect:function(){return sn},Ring:function(){return Mv},Sector:function(){return ir},Text:function(){return fn},clipPointsByRect:function(){return Gx},clipRectByRect:function(){return YR},createIcon:function(){return cl},extendPath:function(){return UR},extendShape:function(){return Bx},getShapeClass:function(){return Hx},getTransform:function(){return Lf},initProps:function(){return br},makeImage:function(){return GR},makePath:function(){return DC},mergePath:function(){return Ca},registerShape:function(){return ll},resizePath:function(){return Ux},updateProps:function(){return ln}});var It={};Dt.r(It),Dt.d(It,{addCommas:function(){return UM},capitalFirst:function(){return zz},encodeHTML:function(){return Bo},formatTime:function(){return Hz},formatTpl:function(){return Wm},getTextRect:function(){return CL},getTooltipMarker:function(){return SI},normalizeCssArray:function(){return lh},toCamelCase:function(){return Na},truncateText:function(){return eM}});var Vu={};Dt.r(Vu),Dt.d(Vu,{bind:function(){return Ye},clone:function(){return rt},curry:function(){return St},defaults:function(){return tt},each:function(){return q},extend:function(){return ke},filter:function(){return Yn},indexOf:function(){return Rt},inherits:function(){return kp},isArray:function(){return we},isFunction:function(){return An},isObject:function(){return at},isString:function(){return yt},map:function(){return Te},merge:function(){return He},reduce:function(){return zu}});var ue=function(o,i){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(r[u]=s[u])})(o,i)};function he(o,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=o}ue(o,i),o.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}var ei=function(){return(ei=Object.assign||function(i){for(var r,s=1,u=arguments.length;s18),d&&(r.weChat=!0),i.canvasSupported=!!document.createElement("canvas").getContext,i.svgSupported="undefined"!=typeof SVGRect,i.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,i.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),i.domSupported="undefined"!=typeof document;var p=document.documentElement.style;i.transform3dSupported=(r.ie&&"transition"in p||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in p)&&!("OTransition"in p),i.transformSupported=i.transform3dSupported||r.ie&&+r.version>=9}(navigator.userAgent,fr);var Ze=fr,Fs={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},HP={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},Sp=Object.prototype.toString,Uc=Array.prototype,Ob=Uc.forEach,AX=Uc.filter,Ib=Uc.slice,gn=Uc.map,gk=function(){}.constructor,Rb=gk?gk.prototype:null,Hu={};function mk(o,i){Hu[o]=i}var zP=2311;function qe(){return zP++}function Ns(){for(var o=[],i=0;i>1)%2;d.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",s[v]+":0",u[g]+":0",s[1-v]+":auto",u[1-g]+":auto",""].join("!important;"),o.appendChild(d),r.push(d)}return r}(i,f),f,u);if(p)return p(o,r,s),!0}return!1}function nr(o){return"CANVAS"===o.nodeName.toUpperCase()}var Dp="undefined"!=typeof window&&!!window.addEventListener,Mk=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Qg=[];function Gb(o,i,r,s){return r=r||{},s||!Ze.canvasSupported?eO(o,i,r):Ze.browser.firefox&&null!=i.layerX&&i.layerX!==i.offsetX?(r.zrX=i.layerX,r.zrY=i.layerY):null!=i.offsetX?(r.zrX=i.offsetX,r.zrY=i.offsetY):eO(o,i,r),r}function eO(o,i,r){if(Ze.domSupported&&o.getBoundingClientRect){var s=i.clientX,u=i.clientY;if(nr(o)){var f=o.getBoundingClientRect();return r.zrX=s-f.left,void(r.zrY=u-f.top)}if(JP(Qg,o,s,u))return r.zrX=Qg[0],void(r.zrY=Qg[1])}r.zrX=r.zrY=0}function zs(o){return o||window.event}function fa(o,i,r){if(null!=(i=zs(i)).zrX)return i;var s=i.type;if(s&&s.indexOf("touch")>=0){var d="touchend"!==s?i.targetTouches[0]:i.changedTouches[0];d&&Gb(o,d,i,r)}else{Gb(o,i,i,r);var f=function(o){var i=o.wheelDelta;if(i)return i;var r=o.deltaX,s=o.deltaY;return null==r||null==s?i:3*Math.abs(0!==s?s:r)*(s>0?-1:s<0?1:r>0?-1:1)}(i);i.zrDelta=f?f/120:-(i.detail||0)/3}var p=i.button;return null==i.which&&void 0!==p&&Mk.test(i.type)&&(i.which=1&p?1:2&p?3:4&p?2:0),i}function Se(o,i,r,s){Dp?o.addEventListener(i,r,s):o.attachEvent("on"+i,r)}function tO(o,i,r,s){Dp?o.removeEventListener(i,r,s):o.detachEvent("on"+i,r)}var Vl=Dp?function(o){o.preventDefault(),o.stopPropagation(),o.cancelBubble=!0}:function(o){o.returnValue=!1,o.cancelBubble=!0};function xk(o){return 2===o.which||3===o.which}var bt=function(){function o(){this._track=[]}return o.prototype.recognize=function(i,r,s){return this._doTrack(i,r,s),this._recognize(i)},o.prototype.clear=function(){return this._track.length=0,this},o.prototype._doTrack=function(i,r,s){var u=i.touches;if(u){for(var f={points:[],touches:[],target:r,event:i},d=0,p=u.length;d1&&u&&u.length>1){var d=nO(u)/nO(f);!isFinite(d)&&(d=1),r.pinchScale=d;var p=[((o=u)[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2];return r.pinchX=p[0],r.pinchY=p[1],{type:"pinch",target:i[0].target,event:r}}}}};function Kc(){Vl(this.event)}var wd=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.handler=null,r}return Ln(i,o),i.prototype.dispose=function(){},i.prototype.setCursor=function(){},i}(Bs),da=function(i,r){this.x=i,this.y=r},AH=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],xo=function(o){function i(r,s,u,f){var d=o.call(this)||this;return d._hovered=new da(0,0),d.storage=r,d.painter=s,d.painterRoot=f,u=u||new wd,d.proxy=null,d.setHandlerProxy(u),d._draggingMgr=new $g(d),d}return Ln(i,o),i.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(q(AH,function(s){r.on&&r.on(s,this[s],this)},this),r.handler=this),this.proxy=r},i.prototype.mousemove=function(r){var s=r.zrX,u=r.zrY,f=mn(this,s,u),d=this._hovered,p=d.target;p&&!p.__zr&&(p=(d=this.findHover(d.x,d.y)).target);var v=this._hovered=f?new da(s,u):this.findHover(s,u),g=v.target,m=this.proxy;m.setCursor&&m.setCursor(g?g.cursor:"default"),p&&g!==p&&this.dispatchToElement(d,"mouseout",r),this.dispatchToElement(v,"mousemove",r),g&&g!==p&&this.dispatchToElement(v,"mouseover",r)},i.prototype.mouseout=function(r){var s=r.zrEventControl;"only_globalout"!==s&&this.dispatchToElement(this._hovered,"mouseout",r),"no_globalout"!==s&&this.trigger("globalout",{type:"globalout",event:r})},i.prototype.resize=function(){this._hovered=new da(0,0)},i.prototype.dispatch=function(r,s){var u=this[r];u&&u.call(this,s)},i.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},i.prototype.setCursorStyle=function(r){var s=this.proxy;s.setCursor&&s.setCursor(r)},i.prototype.dispatchToElement=function(r,s,u){var f=(r=r||{}).target;if(!f||!f.silent){for(var d="on"+s,p=function(o,i,r){return{type:o,event:r,target:i.target,topTarget:i.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Kc}}(s,r,u);f&&(f[d]&&(p.cancelBubble=!!f[d].call(f,p)),f.trigger(s,p),f=f.__hostTarget?f.__hostTarget:f.parent,!p.cancelBubble););p.cancelBubble||(this.trigger(s,p),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(v){"function"==typeof v[d]&&v[d].call(v,p),v.trigger&&v.trigger(s,p)}))}},i.prototype.findHover=function(r,s,u){for(var f=this.storage.getDisplayList(),d=new da(r,s),p=f.length-1;p>=0;p--){var v=void 0;if(f[p]!==u&&!f[p].ignore&&(v=st(f[p],r,s))&&(!d.topTarget&&(d.topTarget=f[p]),"silent"!==v)){d.target=f[p];break}}return d},i.prototype.processGesture=function(r,s){this._gestureMgr||(this._gestureMgr=new bt);var u=this._gestureMgr;"start"===s&&u.clear();var f=u.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if("end"===s&&u.clear(),f){var d=f.type;r.gestureEvent=d;var p=new da;p.target=f.target,this.dispatchToElement(p,d,f.event)}},i}(Bs);function st(o,i,r){if(o[o.rectHover?"rectContain":"contain"](i,r)){for(var s=o,u=void 0,f=!1;s;){if(s.ignoreClip&&(f=!0),!f){var d=s.getClipPath();if(d&&!d.contain(i,r))return!1;s.silent&&(u=!0)}s=s.__hostTarget||s.parent}return!u||"silent"}return!1}function mn(o,i,r){var s=o.painter;return i<0||i>s.getWidth()||r<0||r>s.getHeight()}q(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(o){xo.prototype[o]=function(i){var f,d,r=i.zrX,s=i.zrY,u=mn(this,r,s);if(("mouseup"!==o||!u)&&(d=(f=this.findHover(r,s)).target),"mousedown"===o)this._downEl=d,this._downPoint=[i.zrX,i.zrY],this._upEl=d;else if("mouseup"===o)this._upEl=d;else if("click"===o){if(this._downEl!==this._upEl||!this._downPoint||Vs(this._downPoint,[i.zrX,i.zrY])>4)return;this._downPoint=null}this.dispatchToElement(f,o,i)}});var Pr=xo;function Zr(o,i,r,s){var u=i+1;if(u===r)return 1;if(s(o[u++],o[i])<0){for(;u=0;)u++;return u-i}function kd(o,i,r,s,u){for(s===i&&s++;s>>1])<0?p=v:d=v+1;var g=s-d;switch(g){case 3:o[d+3]=o[d+2];case 2:o[d+2]=o[d+1];case 1:o[d+1]=o[d];break;default:for(;g>0;)o[d+g]=o[d+g-1],g--}o[d]=f}}function an(o,i,r,s,u,f){var d=0,p=0,v=1;if(f(o,i[r+u])>0){for(p=s-u;v0;)d=v,(v=1+(v<<1))<=0&&(v=p);v>p&&(v=p),d+=u,v+=u}else{for(p=u+1;vp&&(v=p);var g=d;d=u-v,v=u-g}for(d++;d>>1);f(o,i[r+m])>0?d=m+1:v=m}return v}function Ap(o,i,r,s,u,f){var d=0,p=0,v=1;if(f(o,i[r+u])<0){for(p=u+1;vp&&(v=p);var g=d;d=u-v,v=u-g}else{for(p=s-u;v=0;)d=v,(v=1+(v<<1))<=0&&(v=p);v>p&&(v=p),d+=u,v+=u}for(d++;d>>1);f(o,i[r+m])<0?v=m:d=m+1}return v}function em(o,i,r,s){r||(r=0),s||(s=o.length);var u=s-r;if(!(u<2)){var f=0;if(u<32)return void kd(o,r,s,r+(f=Zr(o,r,s,i)),i);var d=function(o,i){var d,p,r=7,v=0,g=[];function w(x){var T=d[x],P=p[x],O=d[x+1],R=p[x+1];p[x]=P+R,x===v-3&&(d[x+1]=d[x+2],p[x+1]=p[x+2]),v--;var V=Ap(o[O],o,T,P,0,i);T+=V,0!=(P-=V)&&0!==(R=an(o[T+P-1],o,O,R,R-1,i))&&(P<=R?function(x,T,P,O){var R=0;for(R=0;R=7||K>=7);if($)break;j<0&&(j=0),j+=2}if((r=j)<1&&(r=1),1===T){for(R=0;R=0;R--)o[X+R]=o[j+R];if(0===T){ee=!0;break}}if(o[U--]=g[B--],1==--O){ee=!0;break}if(0!=(te=O-an(o[V],g,0,O,O-1,i))){for(O-=te,X=1+(U-=te),j=1+(B-=te),R=0;R=7||te>=7);if(ee)break;K<0&&(K=0),K+=2}if((r=K)<1&&(r=1),1===O){for(X=1+(U-=T),j=1+(V-=T),R=T-1;R>=0;R--)o[X+R]=o[j+R];o[U]=g[B]}else{if(0===O)throw new Error;for(j=U-(O-1),R=0;R=0;R--)o[X+R]=o[j+R];o[U]=g[B]}else for(j=U-(O-1),R=0;R1;){var x=v-2;if(x>=1&&p[x-1]<=p[x]+p[x+1]||x>=2&&p[x-2]<=p[x]+p[x-1])p[x-1]p[x+1])break;w(x)}},forceMergeRuns:function(){for(;v>1;){var x=v-2;x>0&&p[x-1]=32;)i|=1&o,o>>=1;return o+i}(u);do{if((f=Zr(o,r,s,i))p&&(v=p),kd(o,r,r+v,r+f,i),f=v}d.pushRun(r,f),d.mergeRuns(),u-=f,r+=f}while(0!==u);d.forceMergeRuns()}}var Md=!1;function To(){Md||(Md=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hr(o,i){return o.zlevel===i.zlevel?o.z===i.z?o.z2-i.z2:o.z-i.z:o.zlevel-i.zlevel}var PH=function(){function o(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hr}return o.prototype.traverse=function(i,r){for(var s=0;s0&&(m.__clipPaths=[]),isNaN(m.z)&&(To(),m.z=0),isNaN(m.z2)&&(To(),m.z2=0),isNaN(m.zlevel)&&(To(),m.zlevel=0),this._displayList[this._displayListLen++]=m}var y=i.getDecalElement&&i.getDecalElement();y&&this._updateAndAddDisplayable(y,r,s);var b=i.getTextGuideLine();b&&this._updateAndAddDisplayable(b,r,s);var w=i.getTextContent();w&&this._updateAndAddDisplayable(w,r,s)}},o.prototype.addRoot=function(i){i.__zr&&i.__zr.storage===this||this._roots.push(i)},o.prototype.delRoot=function(i){if(i instanceof Array)for(var r=0,s=i.length;r=0&&this._roots.splice(u,1)}},o.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},o.prototype.getRoots=function(){return this._roots},o.prototype.dispose=function(){this._displayList=null,this._roots=null},o}(),nm="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(o){return setTimeout(o,16)},$c={linear:function(i){return i},quadraticIn:function(i){return i*i},quadraticOut:function(i){return i*(2-i)},quadraticInOut:function(i){return(i*=2)<1?.5*i*i:-.5*(--i*(i-2)-1)},cubicIn:function(i){return i*i*i},cubicOut:function(i){return--i*i*i+1},cubicInOut:function(i){return(i*=2)<1?.5*i*i*i:.5*((i-=2)*i*i+2)},quarticIn:function(i){return i*i*i*i},quarticOut:function(i){return 1- --i*i*i*i},quarticInOut:function(i){return(i*=2)<1?.5*i*i*i*i:-.5*((i-=2)*i*i*i-2)},quinticIn:function(i){return i*i*i*i*i},quinticOut:function(i){return--i*i*i*i*i+1},quinticInOut:function(i){return(i*=2)<1?.5*i*i*i*i*i:.5*((i-=2)*i*i*i*i+2)},sinusoidalIn:function(i){return 1-Math.cos(i*Math.PI/2)},sinusoidalOut:function(i){return Math.sin(i*Math.PI/2)},sinusoidalInOut:function(i){return.5*(1-Math.cos(Math.PI*i))},exponentialIn:function(i){return 0===i?0:Math.pow(1024,i-1)},exponentialOut:function(i){return 1===i?1:1-Math.pow(2,-10*i)},exponentialInOut:function(i){return 0===i?0:1===i?1:(i*=2)<1?.5*Math.pow(1024,i-1):.5*(2-Math.pow(2,-10*(i-1)))},circularIn:function(i){return 1-Math.sqrt(1-i*i)},circularOut:function(i){return Math.sqrt(1- --i*i)},circularInOut:function(i){return(i*=2)<1?-.5*(Math.sqrt(1-i*i)-1):.5*(Math.sqrt(1-(i-=2)*i)+1)},elasticIn:function(i){var r,s=.1;return 0===i?0:1===i?1:(!s||s<1?(s=1,r=.1):r=.4*Math.asin(1/s)/(2*Math.PI),-s*Math.pow(2,10*(i-=1))*Math.sin((i-r)*(2*Math.PI)/.4))},elasticOut:function(i){var r,s=.1;return 0===i?0:1===i?1:(!s||s<1?(s=1,r=.1):r=.4*Math.asin(1/s)/(2*Math.PI),s*Math.pow(2,-10*i)*Math.sin((i-r)*(2*Math.PI)/.4)+1)},elasticInOut:function(i){var r,s=.1;return 0===i?0:1===i?1:(!s||s<1?(s=1,r=.1):r=.4*Math.asin(1/s)/(2*Math.PI),(i*=2)<1?s*Math.pow(2,10*(i-=1))*Math.sin((i-r)*(2*Math.PI)/.4)*-.5:s*Math.pow(2,-10*(i-=1))*Math.sin((i-r)*(2*Math.PI)/.4)*.5+1)},backIn:function(i){var r=1.70158;return i*i*((r+1)*i-r)},backOut:function(i){var r=1.70158;return--i*i*((r+1)*i+r)+1},backInOut:function(i){var r=2.5949095;return(i*=2)<1?i*i*((r+1)*i-r)*.5:.5*((i-=2)*i*((r+1)*i+r)+2)},bounceIn:function(i){return 1-$c.bounceOut(1-i)},bounceOut:function(i){return i<1/2.75?7.5625*i*i:i<2/2.75?7.5625*(i-=1.5/2.75)*i+.75:i<2.5/2.75?7.5625*(i-=2.25/2.75)*i+.9375:7.5625*(i-=2.625/2.75)*i+.984375},bounceInOut:function(i){return i<.5?.5*$c.bounceIn(2*i):.5*$c.bounceOut(2*i-1)+.5}},jb=$c,ha=function(){function o(i){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=i.life||1e3,this._delay=i.delay||0,this.loop=null!=i.loop&&i.loop,this.gap=i.gap||0,this.easing=i.easing||"linear",this.onframe=i.onframe,this.ondestroy=i.ondestroy,this.onrestart=i.onrestart}return o.prototype.step=function(i,r){if(this._initialized||(this._startTime=i+this._delay,this._initialized=!0),!this._paused){var s=(i-this._startTime-this._pausedTime)/this._life;s<0&&(s=0),s=Math.min(s,1);var u=this.easing,f="string"==typeof u?jb[u]:u,d="function"==typeof f?f(s):s;if(this.onframe&&this.onframe(d),1===s){if(!this.loop)return!0;this._restart(i),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=r},o.prototype._restart=function(i){this._startTime=i-(i-this._startTime-this._pausedTime)%this._life+this.gap,this._pausedTime=0},o.prototype.pause=function(){this._paused=!0},o.prototype.resume=function(){this._paused=!1},o}(),iO=function(i){this.value=i},Hl=function(){function o(){this._len=0}return o.prototype.insert=function(i){var r=new iO(i);return this.insertEntry(r),r},o.prototype.insertEntry=function(i){this.head?(this.tail.next=i,i.prev=this.tail,i.next=null,this.tail=i):this.head=this.tail=i,this._len++},o.prototype.remove=function(i){var r=i.prev,s=i.next;r?r.next=s:this.head=s,s?s.prev=r:this.tail=r,i.next=i.prev=null,this._len--},o.prototype.len=function(){return this._len},o.prototype.clear=function(){this.head=this.tail=null,this._len=0},o}(),Td=function(){function o(i){this._list=new Hl,this._maxSize=10,this._map={},this._maxSize=i}return o.prototype.put=function(i,r){var s=this._list,u=this._map,f=null;if(null==u[i]){var d=s.len(),p=this._lastRemovedEntry;if(d>=this._maxSize&&d>0){var v=s.head;s.remove(v),delete u[v.key],f=v.value,this._lastRemovedEntry=v}p?p.value=r:p=new iO(r),p.key=i,s.insertEntry(p),u[i]=p}return f},o.prototype.get=function(i){var r=this._map[i],s=this._list;if(null!=r)return r!==s.tail&&(s.remove(r),s.insertEntry(r)),r.value},o.prototype.clear=function(){this._list.clear(),this._map={}},o.prototype.len=function(){return this._list.len()},o}(),rm={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function to(o){return(o=Math.round(o))<0?0:o>255?255:o}function im(o){return o<0?0:o>1?1:o}function aO(o){var i=o;return i.length&&"%"===i.charAt(i.length-1)?to(parseFloat(i)/100*255):to(parseInt(i,10))}function Pp(o){var i=o;return i.length&&"%"===i.charAt(i.length-1)?im(parseFloat(i)/100):im(parseFloat(i))}function Tk(o,i,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?o+(i-o)*r*6:2*r<1?i:3*r<2?o+(i-o)*(2/3-r)*6:o}function Dd(o,i,r){return o+(i-o)*r}function Ws(o,i,r,s,u){return o[0]=i,o[1]=r,o[2]=s,o[3]=u,o}function oO(o,i){return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o}var OH=new Td(20),Dk=null;function am(o,i){Dk&&oO(Dk,i),Dk=OH.put(o,Dk||i.slice())}function La(o,i){if(o){i=i||[];var r=OH.get(o);if(r)return oO(i,r);var s=(o+="").replace(/ /g,"").toLowerCase();if(s in rm)return oO(i,rm[s]),am(o,i),i;var f,u=s.length;if("#"===s.charAt(0))return 4===u||5===u?(f=parseInt(s.slice(1,4),16))>=0&&f<=4095?(Ws(i,(3840&f)>>4|(3840&f)>>8,240&f|(240&f)>>4,15&f|(15&f)<<4,5===u?parseInt(s.slice(4),16)/15:1),am(o,i),i):void Ws(i,0,0,0,1):7===u||9===u?(f=parseInt(s.slice(1,7),16))>=0&&f<=16777215?(Ws(i,(16711680&f)>>16,(65280&f)>>8,255&f,9===u?parseInt(s.slice(7),16)/255:1),am(o,i),i):void Ws(i,0,0,0,1):void 0;var d=s.indexOf("("),p=s.indexOf(")");if(-1!==d&&p+1===u){var v=s.substr(0,d),g=s.substr(d+1,p-(d+1)).split(","),m=1;switch(v){case"rgba":if(4!==g.length)return 3===g.length?Ws(i,+g[0],+g[1],+g[2],1):Ws(i,0,0,0,1);m=Pp(g.pop());case"rgb":return 3!==g.length?void Ws(i,0,0,0,1):(Ws(i,aO(g[0]),aO(g[1]),aO(g[2]),m),am(o,i),i);case"hsla":return 4!==g.length?void Ws(i,0,0,0,1):(g[3]=Pp(g[3]),sO(g,i),am(o,i),i);case"hsl":return 3!==g.length?void Ws(i,0,0,0,1):(sO(g,i),am(o,i),i);default:return}}Ws(i,0,0,0,1)}}function sO(o,i){var r=(parseFloat(o[0])%360+360)%360/360,s=Pp(o[1]),u=Pp(o[2]),f=u<=.5?u*(s+1):u+s-u*s,d=2*u-f;return Ws(i=i||[],to(255*Tk(d,f,r+1/3)),to(255*Tk(d,f,r)),to(255*Tk(d,f,r-1/3)),1),4===o.length&&(i[3]=o[3]),i}function lO(o,i){var r=La(o);if(r){for(var s=0;s<3;s++)r[s]=i<0?r[s]*(1-i)|0:(255-r[s])*i+r[s]|0,r[s]>255?r[s]=255:r[s]<0&&(r[s]=0);return zl(r,4===r.length?"rgba":"rgb")}}function uO(o){var i=La(o);if(i)return((1<<24)+(i[0]<<16)+(i[1]<<8)+ +i[2]).toString(16).slice(1)}function Wb(o,i,r){if(i&&i.length&&o>=0&&o<=1){r=r||[];var s=o*(i.length-1),u=Math.floor(s),f=Math.ceil(s),d=i[u],p=i[f],v=s-u;return r[0]=to(Dd(d[0],p[0],v)),r[1]=to(Dd(d[1],p[1],v)),r[2]=to(Dd(d[2],p[2],v)),r[3]=im(Dd(d[3],p[3],v)),r}}var FX=Wb;function IH(o,i,r){if(i&&i.length&&o>=0&&o<=1){var s=o*(i.length-1),u=Math.floor(s),f=Math.ceil(s),d=La(i[u]),p=La(i[f]),v=s-u,g=zl([to(Dd(d[0],p[0],v)),to(Dd(d[1],p[1],v)),to(Dd(d[2],p[2],v)),im(Dd(d[3],p[3],v))],"rgba");return r?{color:g,leftIndex:u,rightIndex:f,value:s}:g}}var cO=IH;function Qc(o,i,r,s){var u=La(o);if(o)return u=function(o){if(o){var v,g,i=o[0]/255,r=o[1]/255,s=o[2]/255,u=Math.min(i,r,s),f=Math.max(i,r,s),d=f-u,p=(f+u)/2;if(0===d)v=0,g=0;else{g=p<.5?d/(f+u):d/(2-f-u);var m=((f-i)/6+d/2)/d,y=((f-r)/6+d/2)/d,b=((f-s)/6+d/2)/d;i===f?v=b-y:r===f?v=1/3+m-b:s===f&&(v=2/3+y-m),v<0&&(v+=1),v>1&&(v-=1)}var w=[360*v,g,p];return null!=o[3]&&w.push(o[3]),w}}(u),null!=i&&(u[0]=function(o){return(o=Math.round(o))<0?0:o>360?360:o}(i)),null!=r&&(u[1]=Pp(r)),null!=s&&(u[2]=Pp(s)),zl(sO(u),"rgba")}function Yb(o,i){var r=La(o);if(r&&null!=i)return r[3]=im(i),zl(r,"rgba")}function zl(o,i){if(o&&o.length){var r=o[0]+","+o[1]+","+o[2];return("rgba"===i||"hsva"===i||"hsla"===i)&&(r+=","+o[3]),i+"("+r+")"}}function qb(o,i){var r=La(o);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*i:0}function Ad(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"}var Xb=Array.prototype.slice;function on(o,i,r){return(i-o)*r+o}function dO(o,i,r,s){for(var u=i.length,f=0;fd)s.length=d;else for(var v=f;v=2&&this.interpolable&&this.maxTime>0},o.prototype.getAdditiveTrack=function(){return this._additiveTrack},o.prototype.addKeyframe=function(i,r){i>=this.maxTime?this.maxTime=i:this._needsSort=!0;var s=this.keyframes,u=s.length;if(this.interpolable)if(Pa(r)){var f=function(o){return Pa(o&&o[0])?2:1}(r);if(u>0&&this.arrDim!==f)return void(this.interpolable=!1);if(1===f&&"number"!=typeof r[0]||2===f&&"number"!=typeof r[0][0])return void(this.interpolable=!1);if(u>0){var d=s[u-1];this._isAllValueEqual&&(1===f&&Zb(r,d.value)||(this._isAllValueEqual=!1))}this.arrDim=f}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"==typeof r){var p=La(r);p?(r=p,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof r||isNaN(r))return void(this.interpolable=!1);this._isAllValueEqual&&u>0&&(d=s[u-1],(this.isValueColor&&!Zb(d.value,r)||d.value!==r)&&(this._isAllValueEqual=!1))}var v={time:i,value:r,percent:0};return this.keyframes.push(v),v},o.prototype.prepare=function(i){var r=this.keyframes;this._needsSort&&r.sort(function(v,g){return v.time-g.time});for(var s=this.arrDim,u=r.length,f=r[u-1],d=0;d0&&d!==u-1&&LH(r[d].value,f.value,s);if(i&&this.needsAnimate()&&i.needsAnimate()&&s===i.arrDim&&this.isValueColor===i.isValueColor&&!i._finished){this._additiveTrack=i;var p=r[0].value;for(d=0;d=0&&!(f[m].percent<=r);m--);m=Math.min(m,d-2)}else{for(m=this._lastFrame;mr);m++);m=Math.min(m-1,d-2)}var b=f[m+1],w=f[m];if(w&&b){this._lastFrame=m,this._lastFramePercent=r;var S=b.percent-w.percent;if(0!==S){var M=(r-w.percent)/S,x=s?this._additiveValue:g?Pd:i[p];if((v>0||g)&&!x&&(x=this._additiveValue=[]),this.useSpline){var T=f[m][u],P=f[0===m?m:m-1][u],O=f[m>d-2?d-1:m+1][u],R=f[m>d-3?d-1:m+2][u];if(v>0)1===v?Do(x,P,T,O,R,M,M*M,M*M*M):function(o,i,r,s,u,f,d,p){for(var v=i.length,g=i[0].length,m=0;m0?1===v?dO(x,w[u],b[u],M):function(o,i,r,s){for(var u=i.length,f=u&&i[0].length,d=0;d.5?i:o}(w[u],b[u],M),s?this._additiveValue=V:i[p]=V);s&&this._addToTarget(i)}}}},o.prototype._addToTarget=function(i){var r=this.arrDim,s=this.propName,u=this._additiveValue;0===r?this.isValueColor?(La(i[s],Pd),om(Pd,Pd,u,1),i[s]=Ed(Pd)):i[s]=i[s]+u:1===r?om(i[s],i[s],u,1):2===r&&Ak(i[s],i[s],u,1)},o}(),Pk=function(){function o(i,r,s){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=i,this._loop=r,r&&s?Ns("Can' use additive animation on looped animation."):this._additiveAnimators=s}return o.prototype.getTarget=function(){return this._target},o.prototype.changeTarget=function(i){this._target=i},o.prototype.when=function(i,r){return this.whenWithKeys(i,r,_n(r))},o.prototype.whenWithKeys=function(i,r,s){for(var u=this._tracks,f=0;f0)){this._started=1;for(var s=this,u=[],f=0;f1){var p=d.pop();f.addKeyframe(p.time,i[u]),f.prepare(f.getAdditiveTrack())}}}},o}(),NH=function(o){function i(r){var s=o.call(this)||this;return s._running=!1,s._time=0,s._pausedTime=0,s._pauseStart=0,s._paused=!1,s.stage=(r=r||{}).stage||{},s.onframe=r.onframe||function(){},s}return Ln(i,o),i.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._clipsHead?(this._clipsTail.next=r,r.prev=this._clipsTail,r.next=null,this._clipsTail=r):this._clipsHead=this._clipsTail=r,r.animation=this},i.prototype.addAnimator=function(r){r.animation=this;var s=r.getClip();s&&this.addClip(s)},i.prototype.removeClip=function(r){if(r.animation){var s=r.prev,u=r.next;s?s.next=u:this._clipsHead=u,u?u.prev=s:this._clipsTail=s,r.next=r.prev=r.animation=null}},i.prototype.removeAnimator=function(r){var s=r.getClip();s&&this.removeClip(s),r.animation=null},i.prototype.update=function(r){for(var s=(new Date).getTime()-this._pausedTime,u=s-this._time,f=this._clipsHead;f;){var d=f.next;f.step(s,u)&&(f.ondestroy&&f.ondestroy(),this.removeClip(f)),f=d}this._time=s,r||(this.onframe(u),this.trigger("frame",u),this.stage.update&&this.stage.update())},i.prototype._startLoop=function(){var r=this;this._running=!0,nm(function s(){r._running&&(nm(s),!r._paused&&r.update())})},i.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},i.prototype.stop=function(){this._running=!1},i.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},i.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},i.prototype.clear=function(){for(var r=this._clipsHead;r;){var s=r.next;r.prev=r.next=r.animation=null,r=s}this._clipsHead=this._clipsTail=null},i.prototype.isFinished=function(){return null==this._clipsHead},i.prototype.animate=function(r,s){s=s||{},this.start();var u=new Pk(r,s.loop);return this.addAnimator(u),u},i}(Bs),Ok=Ze.domSupported,vO=(r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:o=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:Te(o,function(u){var f=u.replace("mouse","pointer");return r.hasOwnProperty(f)?f:u})}),sm_mouse=["mousemove","mouseup"],sm_pointer=["pointermove","pointerup"],Ao=!1;function Ik(o){var i=o.pointerType;return"pen"===i||"touch"===i}function Jc(o){o&&(o.zrByTouch=!0)}function Lk(o,i){for(var r=i,s=!1;r&&9!==r.nodeType&&!(s=r.domBelongToZr||r!==i&&r===o.painterRoot);)r=r.parentNode;return s}var Fk=function(i,r){this.stopPropagation=Mo,this.stopImmediatePropagation=Mo,this.preventDefault=Mo,this.type=r.type,this.target=this.currentTarget=i.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY},Ys={mousedown:function(i){i=fa(this.dom,i),this.__mayPointerCapture=[i.zrX,i.zrY],this.trigger("mousedown",i)},mousemove:function(i){i=fa(this.dom,i);var r=this.__mayPointerCapture;r&&(i.zrX!==r[0]||i.zrY!==r[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",i)},mouseup:function(i){i=fa(this.dom,i),this.__togglePointerCapture(!1),this.trigger("mouseup",i)},mouseout:function(i){Lk(this,(i=fa(this.dom,i)).toElement||i.relatedTarget)||(this.__pointerCapturing&&(i.zrEventControl="no_globalout"),this.trigger("mouseout",i))},wheel:function(i){Ao=!0,i=fa(this.dom,i),this.trigger("mousewheel",i)},mousewheel:function(i){Ao||(i=fa(this.dom,i),this.trigger("mousewheel",i))},touchstart:function(i){Jc(i=fa(this.dom,i)),this.__lastTouchMoment=new Date,this.handler.processGesture(i,"start"),Ys.mousemove.call(this,i),Ys.mousedown.call(this,i)},touchmove:function(i){Jc(i=fa(this.dom,i)),this.handler.processGesture(i,"change"),Ys.mousemove.call(this,i)},touchend:function(i){Jc(i=fa(this.dom,i)),this.handler.processGesture(i,"end"),Ys.mouseup.call(this,i),+new Date-+this.__lastTouchMoment<300&&Ys.click.call(this,i)},pointerdown:function(i){Ys.mousedown.call(this,i)},pointermove:function(i){Ik(i)||Ys.mousemove.call(this,i)},pointerup:function(i){Ys.mouseup.call(this,i)},pointerout:function(i){Ik(i)||Ys.mouseout.call(this,i)}};q(["click","dblclick","contextmenu"],function(o){Ys[o]=function(i){i=fa(this.dom,i),this.trigger(o,i)}});var Ul={pointermove:function(i){Ik(i)||Ul.mousemove.call(this,i)},pointerup:function(i){Ul.mouseup.call(this,i)},mousemove:function(i){this.trigger("mousemove",i)},mouseup:function(i){var r=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",i),r&&(i.zrEventControl="only_globalout",this.trigger("mouseout",i))}};function Ft(o,i,r,s){o.mounted[i]=r,o.listenerOpts[i]=s,Se(o.domTarget,i,r,s)}function mO(o){var i=o.mounted;for(var r in i)i.hasOwnProperty(r)&&tO(o.domTarget,r,i[r],o.listenerOpts[r]);o.mounted={}}var _O=function(i,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=i,this.domHandlers=r},BH=function(o){function i(r,s){var u=o.call(this)||this;return u.__pointerCapturing=!1,u.dom=r,u.painterRoot=s,u._localHandlerScope=new _O(r,Ys),Ok&&(u._globalHandlerScope=new _O(document,Ul)),function(o,i){var r=i.domHandlers;Ze.pointerEventsSupported?q(vO.pointer,function(s){Ft(i,s,function(u){r[s].call(o,u)})}):(Ze.touchEventsSupported&&q(vO.touch,function(s){Ft(i,s,function(u){r[s].call(o,u),function(o){o.touching=!0,null!=o.touchTimer&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout(function(){o.touching=!1,o.touchTimer=null},700)}(i)})}),q(vO.mouse,function(s){Ft(i,s,function(u){u=zs(u),i.touching||r[s].call(o,u)})}))}(u,u._localHandlerScope),u}return Ln(i,o),i.prototype.dispose=function(){mO(this._localHandlerScope),Ok&&mO(this._globalHandlerScope)},i.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},i.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Ok&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var s=this._globalHandlerScope;r?function(o,i){function r(s){Ft(i,s,function(f){f=zs(f),Lk(o,f.target)||(f=function(o,i){return fa(o.dom,new Fk(o,i),!0)}(o,f),i.domHandlers[s].call(o,f))},{capture:!0})}Ze.pointerEventsSupported?q(sm_pointer,r):Ze.touchEventsSupported||q(sm_mouse,r)}(this,s):mO(s)}},i}(Bs),Vk=1;"undefined"!=typeof window&&(Vk=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Kb=Vk,En="#333",pe="#ccc";function no(){return[1,0,0,1,0,0]}function Wu(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=1,o[4]=0,o[5]=0,o}function Po(o,i){return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o[4]=i[4],o[5]=i[5],o}function Jo(o,i,r){var u=i[1]*r[0]+i[3]*r[1],f=i[0]*r[2]+i[2]*r[3],d=i[1]*r[2]+i[3]*r[3],p=i[0]*r[4]+i[2]*r[5]+i[4],v=i[1]*r[4]+i[3]*r[5]+i[5];return o[0]=i[0]*r[0]+i[2]*r[1],o[1]=u,o[2]=f,o[3]=d,o[4]=p,o[5]=v,o}function Oo(o,i,r){return o[0]=i[0],o[1]=i[1],o[2]=i[2],o[3]=i[3],o[4]=i[4]+r[0],o[5]=i[5]+r[1],o}function Od(o,i,r){var s=i[0],u=i[2],f=i[4],d=i[1],p=i[3],v=i[5],g=Math.sin(r),m=Math.cos(r);return o[0]=s*m+d*g,o[1]=-s*g+d*m,o[2]=u*m+p*g,o[3]=-u*g+m*p,o[4]=m*f+g*v,o[5]=m*v-g*f,o}function $b(o,i,r){var s=r[0],u=r[1];return o[0]=i[0]*s,o[1]=i[1]*u,o[2]=i[2]*s,o[3]=i[3]*u,o[4]=i[4]*s,o[5]=i[5]*u,o}function Gl(o,i){var r=i[0],s=i[2],u=i[4],f=i[1],d=i[3],p=i[5],v=r*d-f*s;return v?(o[0]=d*(v=1/v),o[1]=-f*v,o[2]=-s*v,o[3]=r*v,o[4]=(s*p-d*u)*v,o[5]=(f*u-r*p)*v,o):null}function lm(o){var i=[1,0,0,1,0,0];return Po(i,o),i}var pa=Wu;function Ip(o){return o>5e-5||o<-5e-5}var Zs,Ur,es=[],ro=[],Bk=[1,0,0,1,0,0],Qb=Math.abs,HH=function(){function o(){}return o.prototype.getLocalTransform=function(i){return o.getLocalTransform(this,i)},o.prototype.setPosition=function(i){this.x=i[0],this.y=i[1]},o.prototype.setScale=function(i){this.scaleX=i[0],this.scaleY=i[1]},o.prototype.setSkew=function(i){this.skewX=i[0],this.skewY=i[1]},o.prototype.setOrigin=function(i){this.originX=i[0],this.originY=i[1]},o.prototype.needLocalTransform=function(){return Ip(this.rotation)||Ip(this.x)||Ip(this.y)||Ip(this.scaleX-1)||Ip(this.scaleY-1)},o.prototype.updateTransform=function(){var i=this.parent&&this.parent.transform,r=this.needLocalTransform(),s=this.transform;r||i?(s=s||[1,0,0,1,0,0],r?this.getLocalTransform(s):pa(s),i&&(r?Jo(s,i,s):Po(s,i)),this.transform=s,this._resolveGlobalScaleRatio(s)):s&&pa(s)},o.prototype._resolveGlobalScaleRatio=function(i){var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(es);var s=es[0]<0?-1:1,u=es[1]<0?-1:1,f=((es[0]-s)*r+s)/es[0]||0,d=((es[1]-u)*r+u)/es[1]||0;i[0]*=f,i[1]*=f,i[2]*=d,i[3]*=d}this.invTransform=this.invTransform||[1,0,0,1,0,0],Gl(this.invTransform,i)},o.prototype.getComputedTransform=function(){for(var i=this,r=[];i;)r.push(i),i=i.parent;for(;i=r.pop();)i.updateTransform();return this.transform},o.prototype.setLocalTransform=function(i){if(i){var r=i[0]*i[0]+i[1]*i[1],s=i[2]*i[2]+i[3]*i[3],u=Math.atan2(i[1],i[0]),f=Math.PI/2+u-Math.atan2(i[3],i[2]);s=Math.sqrt(s)*Math.cos(f),r=Math.sqrt(r),this.skewX=f,this.skewY=0,this.rotation=-u,this.x=+i[4],this.y=+i[5],this.scaleX=r,this.scaleY=s,this.originX=0,this.originY=0}},o.prototype.decomposeTransform=function(){if(this.transform){var i=this.parent,r=this.transform;i&&i.transform&&(Jo(ro,i.invTransform,r),r=ro);var s=this.originX,u=this.originY;(s||u)&&(Bk[4]=s,Bk[5]=u,Jo(ro,r,Bk),ro[4]-=s,ro[5]-=u,r=ro),this.setLocalTransform(r)}},o.prototype.getGlobalScale=function(i){var r=this.transform;return i=i||[],r?(i[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),i[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(i[0]=-i[0]),r[3]<0&&(i[1]=-i[1]),i):(i[0]=1,i[1]=1,i)},o.prototype.transformCoordToLocal=function(i,r){var s=[i,r],u=this.invTransform;return u&&_i(s,s,u),s},o.prototype.transformCoordToGlobal=function(i,r){var s=[i,r],u=this.transform;return u&&_i(s,s,u),s},o.prototype.getLineScale=function(){var i=this.transform;return i&&Qb(i[0]-1)>1e-10&&Qb(i[3]-1)>1e-10?Math.sqrt(Qb(i[0]*i[3]-i[2]*i[1])):1},o.prototype.copyTransform=function(i){for(var s=0;sS&&(S=O,Tt.set(Fp,MS&&(S=R,Tt.set(Fp,0,T=s.x&&i<=s.x+s.width&&r>=s.y&&r<=s.y+s.height},o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height)},o.prototype.copy=function(i){o.copy(this,i)},o.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},o.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},o.prototype.isZero=function(){return 0===this.width||0===this.height},o.create=function(i){return new o(i.x,i.y,i.width,i.height)},o.copy=function(i,r){i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height},o.applyTransform=function(i,r,s){if(s){if(s[1]<1e-5&&s[1]>-1e-5&&s[2]<1e-5&&s[2]>-1e-5){var u=s[0],f=s[3],p=s[5];return i.x=r.x*u+s[4],i.y=r.y*f+p,i.width=r.width*u,i.height=r.height*f,i.width<0&&(i.x+=i.width,i.width=-i.width),void(i.height<0&&(i.y+=i.height,i.height=-i.height))}ef.x=tf.x=r.x,ef.y=nf.y=r.y,jl.x=nf.x=r.x+r.width,jl.y=tf.y=r.y+r.height,ef.transform(s),nf.transform(s),jl.transform(s),tf.transform(s),i.x=Rp(ef.x,jl.x,tf.x,nf.x),i.y=Rp(ef.y,jl.y,tf.y,nf.y);var v=Jb(ef.x,jl.x,tf.x,nf.x),g=Jb(ef.y,jl.y,tf.y,nf.y);i.width=v-i.x,i.height=g-i.y}else i!==r&&o.copy(i,r)},o}(),bO={},ri="12px sans-serif",zk_measureText=function(o,i){return Zs||(Zs=md().getContext("2d")),Ur!==i&&(Ur=Zs.font=i||ri),Zs.measureText(o)};function Io(o,i){var r=bO[i=i||ri];r||(r=bO[i]=new Td(500));var s=r.get(o);return null==s&&(s=zk_measureText(o,i).width,r.put(o,s)),s}function CO(o,i,r,s){var u=Io(o,i),f=Id(i),d=rf(0,u,r),p=Yu(0,f,s);return new Nt(d,p,u,f)}function um(o,i,r,s){var u=((o||"")+"").split("\n");if(1===u.length)return CO(u[0],i,r,s);for(var d=new Nt(0,0,0,0),p=0;p=0?parseFloat(o)/100*i:parseFloat(o):o}function n0(o,i,r){var s=i.position||"inside",u=null!=i.distance?i.distance:5,f=r.height,d=r.width,p=f/2,v=r.x,g=r.y,m="left",y="top";if(s instanceof Array)v+=Ro(s[0],r.width),g+=Ro(s[1],r.height),m=null,y=null;else switch(s){case"left":v-=u,g+=p,m="right",y="middle";break;case"right":v+=u+d,g+=p,y="middle";break;case"top":v+=d/2,g-=u,m="center",y="bottom";break;case"bottom":v+=d/2,g+=f+u,m="center";break;case"inside":v+=d/2,g+=p,m="center",y="middle";break;case"insideLeft":v+=u,g+=p,y="middle";break;case"insideRight":v+=d-u,g+=p,m="right",y="middle";break;case"insideTop":v+=d/2,g+=u,m="center";break;case"insideBottom":v+=d/2,g+=f-u,m="center",y="bottom";break;case"insideTopLeft":v+=u,g+=u;break;case"insideTopRight":v+=d-u,g+=u,m="right";break;case"insideBottomLeft":v+=u,g+=f-u,y="bottom";break;case"insideBottomRight":v+=d-u,g+=f-u,m="right",y="bottom"}return(o=o||{}).x=v,o.y=g,o.align=m,o.verticalAlign=y,o}var Wl="__zr_normal__",Rd=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],zH={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},Np={},cm=new Nt(0,0,0,0),fm=function(){function o(i){this.id=qe(),this.animators=[],this.currentStates=[],this.states={},this._init(i)}return o.prototype._init=function(i){this.attr(i)},o.prototype.drift=function(i,r,s){switch(this.draggable){case"horizontal":r=0;break;case"vertical":i=0}var u=this.transform;u||(u=this.transform=[1,0,0,1,0,0]),u[4]+=i,u[5]+=r,this.decomposeTransform(),this.markRedraw()},o.prototype.beforeUpdate=function(){},o.prototype.afterUpdate=function(){},o.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},o.prototype.updateInnerText=function(i){var r=this._textContent;if(r&&(!r.ignore||i)){this.textConfig||(this.textConfig={});var s=this.textConfig,u=s.local,f=r.innerTransformable,d=void 0,p=void 0,v=!1;f.parent=u?this:null;var g=!1;if(f.copyTransform(r),null!=s.position){var m=cm;m.copy(s.layoutRect?s.layoutRect:this.getBoundingRect()),u||m.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Np,s,m):n0(Np,s,m),f.x=Np.x,f.y=Np.y,d=Np.align,p=Np.verticalAlign;var y=s.origin;if(y&&null!=s.rotation){var b=void 0,w=void 0;"center"===y?(b=.5*m.width,w=.5*m.height):(b=Ro(y[0],m.width),w=Ro(y[1],m.height)),g=!0,f.originX=-f.x+b+(u?0:m.x),f.originY=-f.y+w+(u?0:m.y)}}null!=s.rotation&&(f.rotation=s.rotation);var S=s.offset;S&&(f.x+=S[0],f.y+=S[1],g||(f.originX=-S[0],f.originY=-S[1]));var M=null==s.inside?"string"==typeof s.position&&s.position.indexOf("inside")>=0:s.inside,x=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),T=void 0,P=void 0,O=void 0;M&&this.canBeInsideText()?(P=s.insideStroke,(null==(T=s.insideFill)||"auto"===T)&&(T=this.getInsideTextFill()),(null==P||"auto"===P)&&(P=this.getInsideTextStroke(T),O=!0)):(P=s.outsideStroke,(null==(T=s.outsideFill)||"auto"===T)&&(T=this.getOutsideFill()),(null==P||"auto"===P)&&(P=this.getOutsideStroke(T),O=!0)),((T=T||"#000")!==x.fill||P!==x.stroke||O!==x.autoStroke||d!==x.align||p!==x.verticalAlign)&&(v=!0,x.fill=T,x.stroke=P,x.autoStroke=O,x.align=d,x.verticalAlign=p,r.setDefaultTextStyle(x)),r.__dirty|=1,v&&r.dirtyStyle(!0)}},o.prototype.canBeInsideText=function(){return!0},o.prototype.getInsideTextFill=function(){return"#fff"},o.prototype.getInsideTextStroke=function(i){return"#000"},o.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?pe:En},o.prototype.getOutsideStroke=function(i){var r=this.__zr&&this.__zr.getBackgroundColor(),s="string"==typeof r&&La(r);s||(s=[255,255,255,1]);for(var u=s[3],f=this.__zr.isDarkMode(),d=0;d<3;d++)s[d]=s[d]*u+(f?0:255)*(1-u);return s[3]=1,zl(s,"rgba")},o.prototype.traverse=function(i,r){},o.prototype.attrKV=function(i,r){"textConfig"===i?this.setTextConfig(r):"textContent"===i?this.setTextContent(r):"clipPath"===i?this.setClipPath(r):"extra"===i?(this.extra=this.extra||{},ke(this.extra,r)):this[i]=r},o.prototype.hide=function(){this.ignore=!0,this.markRedraw()},o.prototype.show=function(){this.ignore=!1,this.markRedraw()},o.prototype.attr=function(i,r){if("string"==typeof i)this.attrKV(i,r);else if(at(i))for(var u=_n(i),f=0;f0},o.prototype.getState=function(i){return this.states[i]},o.prototype.ensureState=function(i){var r=this.states;return r[i]||(r[i]={}),r[i]},o.prototype.clearStates=function(i){this.useState(Wl,!1,i)},o.prototype.useState=function(i,r,s,u){var f=i===Wl;if(this.hasState()||!f){var p=this.currentStates,v=this.stateTransition;if(!(Rt(p,i)>=0)||!r&&1!==p.length){var g;if(this.stateProxy&&!f&&(g=this.stateProxy(i)),g||(g=this.states&&this.states[i]),!g&&!f)return void Ns("State "+i+" not exists.");f||this.saveCurrentToNormalState(g);var m=!!(g&&g.hoverLayer||u);m&&this._toggleHoverLayerFlag(!0),this._applyStateObj(i,g,this._normalState,r,!s&&!this.__inHover&&v&&v.duration>0,v);var y=this._textContent,b=this._textGuide;return y&&y.useState(i,r,s,m),b&&b.useState(i,r,s,m),f?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(i):this.currentStates=[i],this._updateAnimationTargets(),this.markRedraw(),!m&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),g}}},o.prototype.useStates=function(i,r,s){if(i.length){var u=[],f=this.currentStates,d=i.length,p=d===f.length;if(p)for(var v=0;v0,S);var M=this._textContent,x=this._textGuide;M&&M.useStates(i,r,b),x&&x.useStates(i,r,b),this._updateAnimationTargets(),this.currentStates=i.slice(),this.markRedraw(),!b&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},o.prototype._updateAnimationTargets=function(){for(var i=0;i=0){var s=this.currentStates.slice();s.splice(r,1),this.useStates(s)}},o.prototype.replaceState=function(i,r,s){var u=this.currentStates.slice(),f=Rt(u,i),d=Rt(u,r)>=0;f>=0?d?u.splice(f,1):u[f]=r:s&&!d&&u.push(r),this.useStates(u)},o.prototype.toggleState=function(i,r){r?this.useState(i,!0):this.removeState(i)},o.prototype._mergeStates=function(i){for(var s,r={},u=0;u=0&&f.splice(d,1)}),this.animators.push(i),s&&s.animation.addAnimator(i),s&&s.wakeUp()},o.prototype.updateDuringAnimation=function(i){this.markRedraw()},o.prototype.stopAnimation=function(i,r){for(var s=this.animators,u=s.length,f=[],d=0;d8)&&(u("position","_legacyPos","x","y"),u("scale","_legacyScale","scaleX","scaleY"),u("origin","_legacyOrigin","originX","originY"))}(),o}();function Uk(o,i,r,s,u){var f=[];dm(o,"",o,i,r=r||{},s,f,u);var d=f.length,p=!1,v=r.done,g=r.aborted,m=function(){p=!0,--d<=0&&(p?v&&v():g&&g())},y=function(){--d<=0&&(p?v&&v():g&&g())};d||v&&v(),f.length>0&&r.during&&f[0].during(function(S,M){r.during(M)});for(var b=0;b0||u.force&&!d.length){for(var O=o.animators,R=[],V=0;V=0&&(u.splice(f,0,r),this._doAdd(r))}return this},i.prototype.replace=function(r,s){var u=Rt(this._children,r);return u>=0&&this.replaceAt(s,u),this},i.prototype.replaceAt=function(r,s){var u=this._children,f=u[s];if(r&&r!==this&&r.parent!==this&&r!==f){u[s]=r,f.parent=null;var d=this.__zr;d&&f.removeSelfFromZr(d),this._doAdd(r)}return this},i.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var s=this.__zr;s&&s!==r.__zr&&r.addSelfToZr(s),s&&s.refresh()},i.prototype.remove=function(r){var s=this.__zr,u=this._children,f=Rt(u,r);return f<0||(u.splice(f,1),r.parent=null,s&&r.removeSelfFromZr(s),s&&s.refresh()),this},i.prototype.removeAll=function(){for(var r=this._children,s=this.__zr,u=0;u0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},o.prototype.setSleepAfterStill=function(i){this._sleepAfterStill=i},o.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},o.prototype.addHover=function(i){},o.prototype.removeHover=function(i){},o.prototype.clearHover=function(){},o.prototype.refreshHover=function(){this._needsRefreshHover=!0},o.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},o.prototype.resize=function(i){this.painter.resize((i=i||{}).width,i.height),this.handler.resize()},o.prototype.clearAnimation=function(){this.animation.clear()},o.prototype.getWidth=function(){return this.painter.getWidth()},o.prototype.getHeight=function(){return this.painter.getHeight()},o.prototype.pathToImage=function(i,r){if(this.painter.pathToImage)return this.painter.pathToImage(i,r)},o.prototype.setCursorStyle=function(i){this.handler.setCursorStyle(i)},o.prototype.findHover=function(i,r){return this.handler.findHover(i,r)},o.prototype.on=function(i,r,s){return this.handler.on(i,r,s),this},o.prototype.off=function(i,r){this.handler.off(i,r)},o.prototype.trigger=function(i,r){this.handler.trigger(i,r)},o.prototype.clear=function(){for(var i=this.storage.getRoots(),r=0;r0){if(o<=u)return d;if(o>=f)return p}else{if(o>=u)return d;if(o<=f)return p}else{if(o===u)return d;if(o===f)return p}return(o-u)/v*g+d}function Fe(o,i){switch(o){case"center":case"middle":o="50%";break;case"left":case"top":o="0%";break;case"right":case"bottom":o="100%"}return"string"==typeof o?function(o){return o.replace(/^\s+|\s+$/g,"")}(o).match(/%$/)?parseFloat(o)/100*i:parseFloat(o):null==o?NaN:+o}function hi(o,i,r){return null==i&&(i=10),i=Math.min(Math.max(0,i),20),o=(+o).toFixed(i),r?o:+o}function io(o){return o.sort(function(i,r){return i-r}),o}function ns(o){if(o=+o,isNaN(o))return 0;if(o>1e-14)for(var i=1,r=0;r<15;r++,i*=10)if(Math.round(o*i)/i===o)return r;return qk(o)}function qk(o){var i=o.toString().toLowerCase(),r=i.indexOf("e"),s=r>0?+i.slice(r+1):0,u=r>0?r:i.length,f=i.indexOf(".");return Math.max(0,(f<0?0:u-1-f)-s)}function o0(o,i){var r=Math.log,s=Math.LN10,u=Math.floor(r(o[1]-o[0])/s),f=Math.round(r(Math.abs(i[1]-i[0]))/s),d=Math.min(Math.max(-u+f,0),20);return isFinite(d)?d:20}function TO(o,i,r){if(!o[i])return 0;var s=zu(o,function(S,M){return S+(isNaN(M)?0:M)},0);if(0===s)return 0;for(var u=Math.pow(10,r),f=Te(o,function(S){return(isNaN(S)?0:S)/s*u*100}),d=100*u,p=Te(f,function(S){return Math.floor(S)}),v=zu(p,function(S,M){return S+M},0),g=Te(f,function(S,M){return S-p[M]});vm&&(m=g[b],y=b);++p[y],g[y]=0,++v}return p[i]/u}function WH(o,i){var r=Math.max(ns(o),ns(i)),s=o+i;return r>20?s:hi(s,r)}var Up=9007199254740991;function Ld(o){var i=2*Math.PI;return(o%i+i)%i}function hm(o){return o>-1e-4&&o<1e-4}var DO=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ao(o){if(o instanceof Date)return o;if("string"==typeof o){var i=DO.exec(o);if(!i)return new Date(NaN);if(i[8]){var r=+i[4]||0;return"Z"!==i[8].toUpperCase()&&(r-=+i[8].slice(0,3)),new Date(Date.UTC(+i[1],+(i[2]||1)-1,+i[3]||1,r,+(i[5]||0),+i[6]||0,i[7]?+i[7].substring(0,3):0))}return new Date(+i[1],+(i[2]||1)-1,+i[3]||1,+i[4]||0,+(i[5]||0),+i[6]||0,i[7]?+i[7].substring(0,3):0)}return null==o?new Date(NaN):new Date(Math.round(o))}function Fd(o){return Math.pow(10,Xt(o))}function Xt(o){if(0===o)return 0;var i=Math.floor(Math.log(o)/Math.LN10);return o/Math.pow(10,i)>=10&&i++,i}function pm(o,i){var r=Xt(o),s=Math.pow(10,r),u=o/s;return o=(i?u<1.5?1:u<2.5?2:u<4?3:u<7?5:10:u<1?1:u<2?2:u<3?3:u<5?5:10)*s,r>=-20?+o.toFixed(r<0?-r:0):o}function Ci(o,i){var r=(o.length-1)*i+1,s=Math.floor(r),u=+o[s-1],f=r-s;return f?u+f*(o[s]-u):u}function af(o){o.sort(function(v,g){return p(v,g,0)?-1:1});for(var i=-1/0,r=1,s=0;s=0||f&&Rt(f,v)<0)){var g=s.getShallow(v,i);null!=g&&(d[o[p][0]]=g)}}return d}}var rz=Hd([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),$k=function(){function o(){}return o.prototype.getAreaStyle=function(i,r){return rz(this,i,r)},o}(),Qk=new Td(50);function Jk(o){if("string"==typeof o){var i=Qk.get(o);return i&&i.image}return o}function zd(o,i,r,s,u){if(o){if("string"==typeof o){if(i&&i.__zrImageSrc===o||!r)return i;var f=Qk.get(o),d={hostEl:r,cb:s,cbPayload:u};return f?!g0(i=f.image)&&f.pending.push(d):((i=new Image).onload=i.onerror=v0,Qk.put(o,i.__cachedImgObj={image:i,pending:[d]}),i.src=i.__zrImageSrc=o),i}return o}return i}function v0(){var o=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var i=0;i=d;v++)p-=d;var g=Io(r,i);return g>p&&(r="",g=0),p=o-g,u.ellipsis=r,u.ellipsisWidth=g,u.contentWidth=p,u.containerWidth=o,u}function uf(o,i){var r=i.containerWidth,s=i.font,u=i.contentWidth;if(!r)return"";var f=Io(o,s);if(f<=r)return o;for(var d=0;;d++){if(f<=u||d>=i.maxIterations){o+=i.ellipsis;break}var p=0===d?_m(o,u,i.ascCharWidth,i.cnCharWidth):f>0?Math.floor(o.length*u/f):0;f=Io(o=o.substr(0,p),s)}return""===o&&(o=i.placeholder),o}function _m(o,i,r,s){for(var u=0,f=0,d=o.length;f0&&S+s.accumWidth>s.width&&(m=i.split("\n"),g=!0),s.accumWidth=S}else{var M=rM(i,v,s.width,s.breakAll,s.accumWidth);s.accumWidth=M.accumWidth+w,y=M.linesWidths,m=M.lines}}else m=i.split("\n");for(var x=0;x=33&&i<=255}(o)||!!Fo[o]}function rM(o,i,r,s,u){for(var f=[],d=[],p="",v="",g=0,m=0,y=0;yr:u+m+w>r)?m?(p||v)&&(S?(p||(p=v,v="",m=g=0),f.push(p),d.push(m-g),v+=b,p="",m=g+=w):(v&&(p+=v,m+=g,v="",g=0),f.push(p),d.push(m),p=b,m=w)):S?(f.push(v),d.push(g),v=b,g=w):(f.push(b),d.push(w)):(m+=w,S?(v+=b,g+=w):(v&&(p+=v,v="",g=0),p+=b))}else v&&(p+=v,m+=g),f.push(p),d.push(m),p="",v="",g=0,m=0}return!f.length&&!p&&(p=o,v="",g=0),v&&(p+=v),p&&(f.push(p),d.push(m)),1===f.length&&(m+=u),{accumWidth:m,lines:f,linesWidths:d}}var ym="__zr_style_"+Math.round(10*Math.random()),Xl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},bm={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Xl[ym]=!0;var OO=["z","z2","invisible"],lz=["invisible"],Wp=function(o){function i(r){return o.call(this,r)||this}return Ln(i,o),i.prototype._init=function(r){for(var s=_n(r),u=0;u-1e-8&&o<1e-8}function uz(o){return o>1e-8||o<-1e-8}function pr(o,i,r,s,u){var f=1-u;return f*f*(f*o+3*u*i)+u*u*(u*s+3*f*r)}function b0(o,i,r,s,u){var f=1-u;return 3*(((i-o)*f+2*(r-i)*u)*f+(s-r)*u*u)}function C0(o,i,r,s,u,f){var d=s+3*(i-r)-o,p=3*(r-2*i+o),v=3*(i-o),g=o-u,m=p*p-3*d*v,y=p*v-9*d*g,b=v*v-3*p*g,w=0;if(cf(m)&&cf(y))cf(p)?f[0]=0:(S=-v/p)>=0&&S<=1&&(f[w++]=S);else{var M=y*y-4*m*b;if(cf(M)){var x=y/m,T=-x/2;(S=-p/d+x)>=0&&S<=1&&(f[w++]=S),T>=0&&T<=1&&(f[w++]=T)}else if(M>0){var P=Gd(M),O=m*p+1.5*d*(-y+P),R=m*p+1.5*d*(-y-P);(S=(-p-((O=O<0?-_0(-O,jd):_0(O,jd))+(R=R<0?-_0(-R,jd):_0(R,jd))))/(3*d))>=0&&S<=1&&(f[w++]=S)}else{var V=(2*m*p-3*d*y)/(2*Gd(m*m*m)),B=Math.acos(V)/3,U=Gd(m),j=Math.cos(B),S=(-p-2*U*j)/(3*d),X=(T=(-p+U*(j+RO*Math.sin(B)))/(3*d),(-p+U*(j-RO*Math.sin(B)))/(3*d));S>=0&&S<=1&&(f[w++]=S),T>=0&&T<=1&&(f[w++]=T),X>=0&&X<=1&&(f[w++]=X)}}return w}function aM(o,i,r,s,u){var f=6*r-12*i+6*o,d=9*i+3*s-3*o-9*r,p=3*i-3*o,v=0;if(cf(d))uz(f)&&(g=-p/f)>=0&&g<=1&&(u[v++]=g);else{var m=f*f-4*d*p;if(cf(m))u[0]=-f/(2*d);else if(m>0){var g,y=Gd(m),b=(-f-y)/(2*d);(g=(-f+y)/(2*d))>=0&&g<=1&&(u[v++]=g),b>=0&&b<=1&&(u[v++]=b)}}return v}function Xu(o,i,r,s,u,f){var d=(i-o)*u+o,p=(r-i)*u+i,v=(s-r)*u+r,g=(p-d)*u+d,m=(v-p)*u+p,y=(m-g)*u+g;f[0]=o,f[1]=d,f[2]=g,f[3]=y,f[4]=y,f[5]=m,f[6]=v,f[7]=s}function ff(o,i,r,s,u,f,d,p,v,g,m){var y,S,M,x,T,b=.005,w=1/0;os[0]=v,os[1]=g;for(var P=0;P<1;P+=.05)Wi[0]=pr(o,r,u,d,P),Wi[1]=pr(i,s,f,p,P),(x=Xc(os,Wi))=0&&x=0&&w1e-4)return p[0]=o-r,p[1]=i-s,v[0]=o+r,void(v[1]=i+s);if(Cm[0]=lM(u)*r+o,Cm[1]=sM(u)*s+i,w0[0]=lM(f)*r+o,w0[1]=sM(f)*s+i,g(p,Cm,w0),m(v,Cm,w0),(u%=Wd)<0&&(u+=Wd),(f%=Wd)<0&&(f+=Wd),u>f&&!d?f+=Wd:uu&&(S0[0]=lM(w)*r+o,S0[1]=sM(w)*s+i,g(p,S0,p),m(v,S0,v))}var Fn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},df=[],hf=[],$s=[],pf=[],Kl=[],$l=[],Yd=Math.min,qd=Math.max,Zu=Math.cos,Xd=Math.sin,k0=Math.sqrt,Ql=Math.abs,uM=Math.PI,vf=2*uM,cM="undefined"!=typeof Float32Array,km=[];function M0(o){return Math.round(o/uM*1e8)/1e8%2*uM}function Mm(o,i){var r=M0(o[0]);r<0&&(r+=vf);var u=o[1];u+=r-o[0],!i&&u-r>=vf?u=r+vf:i&&r-u>=vf?u=r-vf:!i&&r>u?u=r+(vf-M0(r-u)):i&&r0&&(this._ux=Ql(s/Kb/i)||0,this._uy=Ql(s/Kb/r)||0)},o.prototype.setDPR=function(i){this.dpr=i},o.prototype.setContext=function(i){this._ctx=i},o.prototype.getContext=function(){return this._ctx},o.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},o.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},o.prototype.moveTo=function(i,r){return this._drawPendingPt(),this.addData(Fn.M,i,r),this._ctx&&this._ctx.moveTo(i,r),this._x0=i,this._y0=r,this._xi=i,this._yi=r,this},o.prototype.lineTo=function(i,r){var s=Ql(i-this._xi),u=Ql(r-this._yi),f=s>this._ux||u>this._uy;if(this.addData(Fn.L,i,r),this._ctx&&f&&(this._needsDash?this._dashedLineTo(i,r):this._ctx.lineTo(i,r)),f)this._xi=i,this._yi=r,this._pendingPtDist=0;else{var d=s*s+u*u;d>this._pendingPtDist&&(this._pendingPtX=i,this._pendingPtY=r,this._pendingPtDist=d)}return this},o.prototype.bezierCurveTo=function(i,r,s,u,f,d){return this._drawPendingPt(),this.addData(Fn.C,i,r,s,u,f,d),this._ctx&&(this._needsDash?this._dashedBezierTo(i,r,s,u,f,d):this._ctx.bezierCurveTo(i,r,s,u,f,d)),this._xi=f,this._yi=d,this},o.prototype.quadraticCurveTo=function(i,r,s,u){return this._drawPendingPt(),this.addData(Fn.Q,i,r,s,u),this._ctx&&(this._needsDash?this._dashedQuadraticTo(i,r,s,u):this._ctx.quadraticCurveTo(i,r,s,u)),this._xi=s,this._yi=u,this},o.prototype.arc=function(i,r,s,u,f,d){return this._drawPendingPt(),km[0]=u,km[1]=f,Mm(km,d),this.addData(Fn.A,i,r,s,s,u=km[0],(f=km[1])-u,0,d?0:1),this._ctx&&this._ctx.arc(i,r,s,u,f,d),this._xi=Zu(f)*s+i,this._yi=Xd(f)*s+r,this},o.prototype.arcTo=function(i,r,s,u,f){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(i,r,s,u,f),this},o.prototype.rect=function(i,r,s,u){return this._drawPendingPt(),this._ctx&&this._ctx.rect(i,r,s,u),this.addData(Fn.R,i,r,s,u),this},o.prototype.closePath=function(){this._drawPendingPt(),this.addData(Fn.Z);var i=this._ctx,r=this._x0,s=this._y0;return i&&(this._needsDash&&this._dashedLineTo(r,s),i.closePath()),this._xi=r,this._yi=s,this},o.prototype.fill=function(i){i&&i.fill(),this.toStatic()},o.prototype.stroke=function(i){i&&i.stroke(),this.toStatic()},o.prototype.setLineDash=function(i){if(i instanceof Array){this._lineDash=i,this._dashIdx=0;for(var r=0,s=0;sm.length&&(this._expandData(),m=this.data);for(var y=0;y0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},o.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var i=[],r=0;r0&&b<=i||g<0&&b>=i||0===g&&(m>0&&w<=r||m<0&&w>=r);)b+=g*(M=u[x=this._dashIdx]),w+=m*M,this._dashIdx=(x+1)%S,!(g>0&&bp||m>0&&wv)&&f[x%2?"moveTo":"lineTo"](g>=0?Yd(b,i):qd(b,i),m>=0?Yd(w,r):qd(w,r));this._dashOffset=-k0((g=b-i)*g+(m=w-r)*m)},o.prototype._dashedBezierTo=function(i,r,s,u,f,d){var x,T,P,O,R,p=this._ctx,v=this._dashSum,g=this._dashOffset,m=this._lineDash,y=this._xi,b=this._yi,w=0,S=this._dashIdx,M=m.length,V=0;for(g<0&&(g=v+g),g%=v,x=0;x<1;x+=.1)T=pr(y,i,s,f,x+.1)-pr(y,i,s,f,x),P=pr(b,r,u,d,x+.1)-pr(b,r,u,d,x),w+=k0(T*T+P*P);for(;Sg);S++);for(x=(V-g)/w;x<=1;)O=pr(y,i,s,f,x),R=pr(b,r,u,d,x),S%2?p.moveTo(O,R):p.lineTo(O,R),x+=m[S]/w,S=(S+1)%M;S%2!=0&&p.lineTo(f,d),this._dashOffset=-k0((T=f-O)*T+(P=d-R)*P)},o.prototype._dashedQuadraticTo=function(i,r,s,u){var f=s,d=u;s=(s+2*i)/3,u=(u+2*r)/3,this._dashedBezierTo(i=(this._xi+2*i)/3,r=(this._yi+2*r)/3,s,u,f,d)},o.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var i=this.data;i instanceof Array&&(i.length=this._len,cM&&this._len>11&&(this.data=new Float32Array(i)))}},o.prototype.getBoundingRect=function(){$s[0]=$s[1]=Kl[0]=Kl[1]=Number.MAX_VALUE,pf[0]=pf[1]=$l[0]=$l[1]=-Number.MAX_VALUE;var d,i=this.data,r=0,s=0,u=0,f=0;for(d=0;ds||Ql(O)>u||b===r-1)&&(M=Math.sqrt(P*P+O*O),f=x,d=T);break;case Fn.C:var R=i[b++],V=i[b++],T=(x=i[b++],i[b++]),B=i[b++],U=i[b++];M=cz(f,d,R,V,x,T,B,U,10),f=B,d=U;break;case Fn.Q:M=FO(f,d,R=i[b++],V=i[b++],x=i[b++],T=i[b++],10),f=x,d=T;break;case Fn.A:var j=i[b++],X=i[b++],K=i[b++],$=i[b++],te=i[b++],ee=i[b++],le=ee+te;b+=1,b++,S&&(p=Zu(te)*K+j,v=Xd(te)*$+X),M=qd(K,$)*Yd(vf,Math.abs(ee)),f=Zu(le)*K+j,d=Xd(le)*$+X;break;case Fn.R:p=f=i[b++],v=d=i[b++],M=2*i[b++]+2*i[b++];break;case Fn.Z:var P=p-f;O=v-d,M=Math.sqrt(P*P+O*O),f=p,d=v}M>=0&&(g[y++]=M,m+=M)}return this._pathLen=m,m},o.prototype.rebuildPath=function(i,r){var p,v,g,m,y,b,S,P,R,V,s=this.data,u=this._ux,f=this._uy,d=this._len,w=r<1,x=0,T=0,O=0;if(!w||(this._pathSegLen||this._calculateLength(),S=this._pathSegLen,P=r*this._pathLen))e:for(var B=0;B0&&(i.lineTo(R,V),O=0),U){case Fn.M:p=g=s[B++],v=m=s[B++],i.moveTo(g,m);break;case Fn.L:y=s[B++],b=s[B++];var X=Ql(y-g),K=Ql(b-m);if(X>u||K>f){if(w){if(x+($=S[T++])>P){i.lineTo(g*(1-(te=(P-x)/$))+y*te,m*(1-te)+b*te);break e}x+=$}i.lineTo(y,b),g=y,m=b,O=0}else{var ee=X*X+K*K;ee>O&&(R=y,V=b,O=ee)}break;case Fn.C:var le=s[B++],oe=s[B++],de=s[B++],ge=s[B++],_e=s[B++],xe=s[B++];if(w){if(x+($=S[T++])>P){Xu(g,le,de,_e,te=(P-x)/$,df),Xu(m,oe,ge,xe,te,hf),i.bezierCurveTo(df[1],hf[1],df[2],hf[2],df[3],hf[3]);break e}x+=$}i.bezierCurveTo(le,oe,de,ge,_e,xe),g=_e,m=xe;break;case Fn.Q:if(le=s[B++],oe=s[B++],de=s[B++],ge=s[B++],w){if(x+($=S[T++])>P){Yi(g,le,de,te=(P-x)/$,df),Yi(m,oe,ge,te,hf),i.quadraticCurveTo(df[1],hf[1],df[2],hf[2]);break e}x+=$}i.quadraticCurveTo(le,oe,de,ge),g=de,m=ge;break;case Fn.A:var Me=s[B++],ze=s[B++],Je=s[B++],mt=s[B++],Qt=s[B++],Ut=s[B++],xt=s[B++],Yt=!s[B++],Gt=Je>mt?Je:mt,Wn=Ql(Je-mt)>.001,ur=Qt+Ut,fi=!1;if(w&&(x+($=S[T++])>P&&(ur=Qt+Ut*(P-x)/$,fi=!0),x+=$),Wn&&i.ellipse?i.ellipse(Me,ze,Je,mt,xt,Qt,ur,Yt):i.arc(Me,ze,Gt,Qt,ur,Yt),fi)break e;j&&(p=Zu(Qt)*Je+Me,v=Xd(Qt)*mt+ze),g=Zu(ur)*Je+Me,m=Xd(ur)*mt+ze;break;case Fn.R:p=g=s[B],v=m=s[B+1],y=s[B++],b=s[B++];var Mt=s[B++],Nr=s[B++];if(w){if(x+($=S[T++])>P){var mr=P-x;i.moveTo(y,b),i.lineTo(y+Yd(mr,Mt),b),(mr-=Mt)>0&&i.lineTo(y+Mt,b+Yd(mr,Nr)),(mr-=Nr)>0&&i.lineTo(y+qd(Mt-mr,0),b+Nr),(mr-=Mt)>0&&i.lineTo(y,b+qd(Nr-mr,0));break e}x+=$}i.rect(y,b,Mt,Nr);break;case Fn.Z:if(w){var $;if(x+($=S[T++])>P){var te;i.lineTo(g*(1-(te=(P-x)/$))+p*te,m*(1-te)+v*te);break e}x+=$}i.closePath(),g=p,m=v}}},o.prototype.clone=function(){var i=new o,r=this.data;return i.data=r.slice?r.slice():Array.prototype.slice.call(r),i._len=this._len,i},o.CMD=Fn,o.initDefaultProps=((i=o.prototype)._saveData=!0,i._needsDash=!1,i._dashOffset=0,i._dashIdx=0,i._dashSum=0,i._ux=0,i._uy=0,i._pendingPtDist=0,void(i._version=0)),o;var i}();function gf(o,i,r,s,u,f,d){if(0===u)return!1;var v,p=u;if(d>i+p&&d>s+p||do+p&&f>r+p||fi+y&&m>s+y&&m>f+y&&m>p+y||mo+y&&g>r+y&&g>u+y&&g>d+y||gi+g&&v>s+g&&v>f+g||vo+g&&p>r+g&&p>u+g||pr||m+gu&&(u+=qp);var b=Math.atan2(v,p);return b<0&&(b+=qp),b>=s&&b<=u||b+qp>=s&&b+qp<=u}function Ku(o,i,r,s,u,f){if(f>i&&f>s||fu?p:0}var mf=Qs.CMD,Zd=2*Math.PI,lo=[-1,-1,-1],ma=[-1,-1];function ls(){var o=ma[0];ma[0]=ma[1],ma[1]=o}function fM(o,i,r,s,u,f,d,p,v,g){if(g>i&&g>s&&g>f&&g>p||g1&&ls(),w=pr(i,s,f,p,ma[0]),b>1&&(S=pr(i,s,f,p,ma[1]))),y+=2===b?xi&&p>s&&p>f||p=0&&g<=1&&(u[v++]=g);else{var m=d*d-4*f*p;if(cf(m))(g=-d/(2*f))>=0&&g<=1&&(u[v++]=g);else if(m>0){var g,y=Gd(m),b=(-d-y)/(2*f);(g=(-d+y)/(2*f))>=0&&g<=1&&(u[v++]=g),b>=0&&b<=1&&(u[v++]=b)}}return v}(i,s,f,p,lo);if(0===v)return 0;var g=LO(i,s,f);if(g>=0&&g<=1){for(var m=0,y=Fi(i,s,f,g),b=0;br||p<-r)return 0;var v=Math.sqrt(r*r-p*p);lo[0]=-v,lo[1]=v;var g=Math.abs(s-u);if(g<1e-4)return 0;if(g>=Zd-1e-4){s=0,u=Zd;var m=f?1:-1;return d>=lo[0]+o&&d<=lo[1]+o?m:0}if(s>u){var y=s;s=u,u=y}s<0&&(s+=Zd,u+=Zd);for(var b=0,w=0;w<2;w++){var S=lo[w];if(S+o>d){var M=Math.atan2(p,S);m=f?1:-1,M<0&&(M=Zd+M),(M>=s&&M<=u||M+Zd>=s&&M+Zd<=u)&&(M>Math.PI/2&&M<1.5*Math.PI&&(m=-m),b+=m)}}return b}function qi(o,i,r,s,u){for(var b,w,f=o.data,d=o.len(),p=0,v=0,g=0,m=0,y=0,S=0;S1&&(r||(p+=Ku(v,g,m,y,s,u))),x&&(m=v=f[S],y=g=f[S+1]),M){case mf.M:v=m=f[S++],g=y=f[S++];break;case mf.L:if(r){if(gf(v,g,f[S],f[S+1],i,s,u))return!0}else p+=Ku(v,g,f[S],f[S+1],s,u)||0;v=f[S++],g=f[S++];break;case mf.C:if(r){if(ss(v,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],i,s,u))return!0}else p+=fM(v,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],s,u)||0;v=f[S++],g=f[S++];break;case mf.Q:if(r){if(Si(v,g,f[S++],f[S++],f[S],f[S+1],i,s,u))return!0}else p+=UO(v,g,f[S++],f[S++],f[S],f[S+1],s,u)||0;v=f[S++],g=f[S++];break;case mf.A:var T=f[S++],P=f[S++],O=f[S++],R=f[S++],V=f[S++],B=f[S++];S+=1;var U=!!(1-f[S++]);b=Math.cos(V)*O+T,w=Math.sin(V)*R+P,x?(m=b,y=w):p+=Ku(v,g,b,w,s,u);var j=(s-T)*R/O+T;if(r){if(hz(T,P,R,V,V+B,U,i,j,u))return!0}else p+=GO(T,P,R,V,V+B,U,j,u);v=Math.cos(V+B)*O+T,g=Math.sin(V+B)*R+P;break;case mf.R:if(m=v=f[S++],y=g=f[S++],b=m+f[S++],w=y+f[S++],r){if(gf(m,y,b,y,i,s,u)||gf(b,y,b,w,i,s,u)||gf(b,w,m,w,i,s,u)||gf(m,w,m,y,i,s,u))return!0}else p+=Ku(b,y,b,w,s,u),p+=Ku(m,w,m,y,s,u);break;case mf.Z:if(r){if(gf(v,g,m,y,i,s,u))return!0}else p+=Ku(v,g,m,y,s,u);v=m,g=y}}return!r&&!function(o,i){return Math.abs(o-i)<1e-4}(g,y)&&(p+=Ku(v,g,m,y,s,u)||0),0!==p}var jO=tt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xl),vz={style:tt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},bm.style)},x0=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],Vt=function(o){function i(r){return o.call(this,r)||this}return Ln(i,o),i.prototype.update=function(){var r=this;o.prototype.update.call(this);var s=this.style;if(s.decal){var u=this._decalEl=this._decalEl||new i;u.buildPath===i.prototype.buildPath&&(u.buildPath=function(v){r.buildPath(v,r.shape)}),u.silent=!0;var f=u.style;for(var d in s)f[d]!==s[d]&&(f[d]=s[d]);f.fill=s.fill?s.decal:null,f.decal=null,f.shadowColor=null,s.strokeFirst&&(f.stroke=null);for(var p=0;p.5?En:s>.2?"#eee":pe}if(r)return pe}return En},i.prototype.getInsideTextStroke=function(r){var s=this.style.fill;if(yt(s)){var u=this.__zr;if(!(!u||!u.isDarkMode())==qb(r,0)<.4)return s}},i.prototype.buildPath=function(r,s,u){},i.prototype.pathUpdated=function(){this.__dirty&=-5},i.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},i.prototype.createPathProxy=function(){this.path=new Qs(!1)},i.prototype.hasStroke=function(){var r=this.style,s=r.stroke;return!(null==s||"none"===s||!(r.lineWidth>0))},i.prototype.hasFill=function(){var s=this.style.fill;return null!=s&&"none"!==s},i.prototype.getBoundingRect=function(){var r=this._rect,s=this.style,u=!r;if(u){var f=!1;this.path||(f=!0,this.createPathProxy());var d=this.path;(f||4&this.__dirty)&&(d.beginPath(),this.buildPath(d,this.shape,!1),this.pathUpdated()),r=d.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var p=this._rectWithStroke||(this._rectWithStroke=r.clone());if(this.__dirty||u){p.copy(r);var v=s.strokeNoScale?this.getLineScale():1,g=s.lineWidth;if(!this.hasFill()){var m=this.strokeContainThreshold;g=Math.max(g,null==m?4:m)}v>1e-10&&(p.width+=g/v,p.height+=g/v,p.x-=g/v/2,p.y-=g/v/2)}return p}return r},i.prototype.contain=function(r,s){var u=this.transformCoordToLocal(r,s),f=this.getBoundingRect(),d=this.style;if(f.contain(r=u[0],s=u[1])){var p=this.path;if(this.hasStroke()){var v=d.lineWidth,g=d.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(this.hasFill()||(v=Math.max(v,this.strokeContainThreshold)),function(o,i,r,s){return qi(o,i,!0,r,s)}(p,v/g,r,s)))return!0}if(this.hasFill())return function(o,i,r){return qi(o,0,!1,i,r)}(p,r,s)}return!1},i.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},i.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},i.prototype.animateShape=function(r){return this.animate("shape",r)},i.prototype.updateDuringAnimation=function(r){"style"===r?this.dirtyStyle():"shape"===r?this.dirtyShape():this.markRedraw()},i.prototype.attrKV=function(r,s){"shape"===r?this.setShape(s):o.prototype.attrKV.call(this,r,s)},i.prototype.setShape=function(r,s){var u=this.shape;return u||(u=this.shape={}),"string"==typeof r?u[r]=s:ke(u,r),this.dirtyShape(),this},i.prototype.shapeChanged=function(){return!!(4&this.__dirty)},i.prototype.createStyle=function(r){return Mp(jO,r)},i.prototype._innerSaveToNormal=function(r){o.prototype._innerSaveToNormal.call(this,r);var s=this._normalState;r.shape&&!s.shape&&(s.shape=ke({},this.shape))},i.prototype._applyStateObj=function(r,s,u,f,d,p){o.prototype._applyStateObj.call(this,r,s,u,f,d,p);var g,v=!(s&&f);if(s&&s.shape?d?f?g=s.shape:(g=ke({},u.shape),ke(g,s.shape)):(g=ke({},f?this.shape:u.shape),ke(g,s.shape)):v&&(g=u.shape),g)if(d){this.shape=ke({},this.shape);for(var m={},y=_n(g),b=0;b0},i.prototype.hasFill=function(){var s=this.style.fill;return null!=s&&"none"!==s},i.prototype.createStyle=function(r){return Mp(mz,r)},i.prototype.setBoundingRect=function(r){this._rect=r},i.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var s=r.text;null!=s?s+="":s="";var u=um(s,r.font,r.textAlign,r.textBaseline);if(u.x+=r.x||0,u.y+=r.y||0,this.hasStroke()){var f=r.lineWidth;u.x-=f/2,u.y-=f/2,u.width+=f,u.height+=f}this._rect=u}return this._rect},i.initDefaultProps=void(i.prototype.dirtyRectTolerance=10),i}(as);hM.prototype.type="tspan";var Xp=hM,_z=tt({x:0,y:0},Xl),yz={style:tt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},bm.style)},T0=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return Ln(i,o),i.prototype.createStyle=function(r){return Mp(_z,r)},i.prototype._getSize=function(r){var s=this.style,u=s[r];if(null!=u)return u;var f=function(o){return!!(o&&"string"!=typeof o&&o.width&&o.height)}(s.image)?s.image:this.__image;if(!f)return 0;var d="width"===r?"height":"width",p=s[d];return null==p?f[r]:f[r]/f[d]*p},i.prototype.getWidth=function(){return this._getSize("width")},i.prototype.getHeight=function(){return this._getSize("height")},i.prototype.getAnimationStyleProps=function(){return yz},i.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Nt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},i}(as);T0.prototype.type="image";var si=T0,Tm=Math.round;function pM(o,i,r){if(i){var s=i.x1,u=i.x2,f=i.y1,d=i.y2;o.x1=s,o.x2=u,o.y1=f,o.y2=d;var p=r&&r.lineWidth;return p&&(Tm(2*s)===Tm(2*u)&&(o.x1=o.x2=Kd(s,p,!0)),Tm(2*f)===Tm(2*d)&&(o.y1=o.y2=Kd(f,p,!0))),o}}function Dm(o,i,r){if(i){var s=i.x,u=i.y,f=i.width,d=i.height;o.x=s,o.y=u,o.width=f,o.height=d;var p=r&&r.lineWidth;return p&&(o.x=Kd(s,p,!0),o.y=Kd(u,p,!0),o.width=Math.max(Kd(s+f,p,!1)-o.x,0===f?0:1),o.height=Math.max(Kd(u+d,p,!1)-o.y,0===d?0:1)),o}}function Kd(o,i,r){if(!i)return o;var s=Tm(2*o);return(s+Tm(i))%2==0?s/2:(s+(r?1:-1))/2}var Cz=function(){this.x=0,this.y=0,this.width=0,this.height=0},$d={},YO=function(o){function i(r){return o.call(this,r)||this}return Ln(i,o),i.prototype.getDefaultShape=function(){return new Cz},i.prototype.buildPath=function(r,s){var u,f,d,p;if(this.subPixelOptimize){var v=Dm($d,s,this.style);u=v.x,f=v.y,d=v.width,p=v.height,v.r=s.r,s=v}else u=s.x,f=s.y,d=s.width,p=s.height;s.r?function(o,i){var p,v,g,m,y,r=i.x,s=i.y,u=i.width,f=i.height,d=i.r;u<0&&(r+=u,u=-u),f<0&&(s+=f,f=-f),"number"==typeof d?p=v=g=m=d:d instanceof Array?1===d.length?p=v=g=m=d[0]:2===d.length?(p=g=d[0],v=m=d[1]):3===d.length?(p=d[0],v=m=d[1],g=d[2]):(p=d[0],v=d[1],g=d[2],m=d[3]):p=v=g=m=0,p+v>u&&(p*=u/(y=p+v),v*=u/y),g+m>u&&(g*=u/(y=g+m),m*=u/y),v+g>f&&(v*=f/(y=v+g),g*=f/y),p+m>f&&(p*=f/(y=p+m),m*=f/y),o.moveTo(r+p,s),o.lineTo(r+u-v,s),0!==v&&o.arc(r+u-v,s+v,v,-Math.PI/2,0),o.lineTo(r+u,s+f-g),0!==g&&o.arc(r+u-g,s+f-g,g,0,Math.PI/2),o.lineTo(r+m,s+f),0!==m&&o.arc(r+m,s+f-m,m,Math.PI/2,Math.PI),o.lineTo(r,s+p),0!==p&&o.arc(r+p,s+p,p,Math.PI,1.5*Math.PI)}(r,s):r.rect(u,f,d,p)},i.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},i}(Vt);YO.prototype.type="rect";var sn=YO,qO={fill:"#000"},wz={style:tt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},bm.style)},D0=function(o){function i(r){var s=o.call(this)||this;return s.type="text",s._children=[],s._defaultStyle=qO,s.attr(r),s}return Ln(i,o),i.prototype.childrenRef=function(){return this._children},i.prototype.update=function(){o.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;rb&&v){var w=Math.floor(b/p);m=m.slice(0,w)}var S=b,M=g;if(s&&(S+=s[0]+s[2],null!=M&&(M+=s[1]+s[3])),o&&f&&null!=M)for(var x=tM(g,u,i.ellipsis,{minChar:i.truncateMinChar,placeholder:i.placeholder}),T=0;T0,$=null!=r.width&&("truncate"===r.overflow||"break"===r.overflow||"breakAll"===r.overflow),te=d.calculatedLineHeight,ee=0;eep&&oi(r,o.substring(p,g),i,d),oi(r,v[2],i,d,v[1]),p=ce.lastIndex}pu){V>0?(P.tokens=P.tokens.slice(0,V),x(P,R,O),r.lines=r.lines.slice(0,T+1)):r.lines=r.lines.slice(0,T);break e}var te=U.width,ee=null==te||"auto"===te;if("string"==typeof te&&"%"===te.charAt(te.length-1))B.percentWidth=te,m.push(B),B.contentWidth=Io(B.text,K);else{if(ee){var le=U.backgroundColor,oe=le&&le.image;oe&&g0(oe=Jk(oe))&&(B.width=Math.max(B.width,oe.width*$/oe.height))}var de=S&&null!=s?s-R:null;null!=de&&de=0&&"right"===(le=B[ee]).align;)this._placeToken(le,r,j,T,te,"right",O),X-=le.width,te-=le.width,ee--;for($+=(f-($-x)-(P-te)-X)/2;K<=ee;)this._placeToken(le=B[K],r,j,T,$+le.width/2,"center",O),$+=le.width,K++;T+=j}},i.prototype._placeToken=function(r,s,u,f,d,p,v){var g=s.rich[r.styleName]||{};g.text=r.text;var m=r.verticalAlign,y=f+u/2;"top"===m?y=f+r.height/2:"bottom"===m&&(y=f+u-r.height/2),!r.isLineHolder&&E0(g)&&this._renderBackground(g,s,"right"===p?d-r.width:"center"===p?d-r.width/2:d,y-r.height/2,r.width,r.height);var w=!!g.backgroundColor,S=r.textPadding;S&&(d=gM(d,p,S),y-=r.height/2-S[0]-r.innerHeight/2);var M=this._getOrCreateChild(Xp),x=M.createStyle();M.useStyle(x);var T=this._defaultStyle,P=!1,O=0,R=$O("fill"in g?g.fill:"fill"in s?s.fill:(P=!0,T.fill)),V=vM("stroke"in g?g.stroke:"stroke"in s?s.stroke:w||v||T.autoStroke&&!P?null:(O=2,T.stroke)),B=g.textShadowBlur>0||s.textShadowBlur>0;x.text=r.text,x.x=d,x.y=y,B&&(x.shadowBlur=g.textShadowBlur||s.textShadowBlur||0,x.shadowColor=g.textShadowColor||s.textShadowColor||"transparent",x.shadowOffsetX=g.textShadowOffsetX||s.textShadowOffsetX||0,x.shadowOffsetY=g.textShadowOffsetY||s.textShadowOffsetY||0),x.textAlign=p,x.textBaseline="middle",x.font=r.font||ri,x.opacity=Qo(g.opacity,s.opacity,1),V&&(x.lineWidth=Qo(g.lineWidth,s.lineWidth,O),x.lineDash=ot(g.lineDash,s.lineDash),x.lineDashOffset=s.lineDashOffset||0,x.stroke=V),R&&(x.fill=R);var U=r.contentWidth,j=r.contentHeight;M.setBoundingRect(new Nt(rf(x.x,U,x.textAlign),Yu(x.y,j,x.textBaseline),U,j))},i.prototype._renderBackground=function(r,s,u,f,d,p){var M,x,P,v=r.backgroundColor,g=r.borderWidth,m=r.borderColor,y=v&&v.image,b=v&&!y,w=r.borderRadius,S=this;if(b||r.lineHeight||g&&m){(M=this._getOrCreateChild(sn)).useStyle(M.createStyle()),M.style.fill=null;var T=M.shape;T.x=u,T.y=f,T.width=d,T.height=p,T.r=w,M.dirtyShape()}if(b)(P=M.style).fill=v||null,P.fillOpacity=ot(r.fillOpacity,1);else if(y){(x=this._getOrCreateChild(si)).onload=function(){S.dirtyStyle()};var O=x.style;O.image=v.image,O.x=u,O.y=f,O.width=d,O.height=p}g&&m&&((P=M.style).lineWidth=g,P.stroke=m,P.strokeOpacity=ot(r.strokeOpacity,1),P.lineDash=r.borderDash,P.lineDashOffset=r.borderDashOffset||0,M.strokeContainThreshold=0,M.hasFill()&&M.hasStroke()&&(P.strokeFirst=!0,P.lineWidth*=2));var R=(M||x).style;R.shadowBlur=r.shadowBlur||0,R.shadowColor=r.shadowColor||"transparent",R.shadowOffsetX=r.shadowOffsetX||0,R.shadowOffsetY=r.shadowOffsetY||0,R.opacity=Qo(r.opacity,s.opacity,1)},i.makeFont=function(r){var s="";if(r.fontSize||r.fontFamily||r.fontWeight){var u="";u="string"!=typeof r.fontSize||-1===r.fontSize.indexOf("px")&&-1===r.fontSize.indexOf("rem")&&-1===r.fontSize.indexOf("em")?isNaN(+r.fontSize)?"12px":r.fontSize+"px":r.fontSize,s=[r.fontStyle,r.fontWeight,u,r.fontFamily||"sans-serif"].join(" ")}return s&&jc(s)||r.textFont||r.font},i}(as),us={left:!0,right:1,center:1},ZO={top:1,bottom:1,middle:1};function KO(o){if(o){o.font=D0.makeFont(o);var i=o.align;"middle"===i&&(i="center"),o.align=null==i||us[i]?i:"left";var r=o.verticalAlign;"center"===r&&(r="middle"),o.verticalAlign=null==r||ZO[r]?r:"top",o.padding&&(o.padding=Nb(o.padding))}}function vM(o,i){return null==o||i<=0||"transparent"===o||"none"===o?null:o.image||o.colorStops?"#000":o}function $O(o){return null==o||"none"===o?null:o.image||o.colorStops?"#000":o}function gM(o,i,r){return"right"===i?o-r[1]:"center"===i?o+r[3]/2-r[1]/2:o+r[3]}function A0(o){var i=o.text;return null!=i&&(i+=""),i}function E0(o){return!!(o.backgroundColor||o.lineHeight||o.borderWidth&&o.borderColor)}var fn=D0,ht=pn(),cs=function(i,r,s,u){if(u){var f=ht(u);f.dataIndex=s,f.dataType=r,f.seriesIndex=i,"group"===u.type&&u.traverse(function(d){var p=ht(d);p.seriesIndex=i,p.dataIndex=s,p.dataType=r})}},kz=1,Mz={},mM=pn(),Xi=["emphasis","blur","select"],Am=["normal","emphasis","blur","select"],_f="highlight",Pm="downplay",Jd="select",Kp="unselect",$p="toggleSelect";function Om(o){return null!=o&&"none"!==o}var eh=new Td(100);function P0(o){if("string"!=typeof o)return o;var i=eh.get(o);return i||(i=lO(o,-.1),eh.put(o,i)),i}function Im(o,i,r){o.onHoverStateChange&&(o.hoverState||0)!==r&&o.onHoverStateChange(i),o.hoverState=r}function JO(o){Im(o,"emphasis",2)}function O0(o){2===o.hoverState&&Im(o,"normal",0)}function _M(o){Im(o,"blur",1)}function eI(o){1===o.hoverState&&Im(o,"normal",0)}function xz(o){o.selected=!0}function Tz(o){o.selected=!1}function tI(o,i,r){i(o,r)}function $u(o,i,r){tI(o,i,r),o.isGroup&&o.traverse(function(s){tI(s,i,r)})}function Rm(o,i){switch(i){case"emphasis":o.hoverState=2;break;case"normal":o.hoverState=0;break;case"blur":o.hoverState=1;break;case"select":o.selected=!0}}function I0(o,i){var r=this.states[o];if(this.style){if("emphasis"===o)return function(o,i,r,s){var u=r&&Rt(r,"select")>=0,f=!1;if(o instanceof Vt){var d=mM(o),p=u&&d.selectFill||d.normalFill,v=u&&d.selectStroke||d.normalStroke;if(Om(p)||Om(v)){var g=(s=s||{}).style||{};"inherit"===g.fill?(f=!0,s=ke({},s),(g=ke({},g)).fill=p):!Om(g.fill)&&Om(p)?(f=!0,s=ke({},s),(g=ke({},g)).fill=P0(p)):!Om(g.stroke)&&Om(v)&&(f||(s=ke({},s),g=ke({},g)),g.stroke=P0(v)),s.style=g}}if(s&&null==s.z2){f||(s=ke({},s));var m=o.z2EmphasisLift;s.z2=o.z2+(null!=m?m:10)}return s}(this,0,i,r);if("blur"===o)return function(o,i,r){var s=Rt(o.currentStates,i)>=0,u=o.style.opacity,f=s?null:function(o,i,r,s){for(var u=o.style,f={},d=0;d0){var v={dataIndex:p,seriesIndex:r.seriesIndex};null!=d&&(v.dataType=d),i.push(v)}})}),i}function qn(o,i,r){th(o,!0),$u(o,yf),xM(o,i,r)}function xM(o,i,r){var s=ht(o);null!=i?(s.focus=i,s.blurScope=r):s.focus&&(s.focus=null)}var oI=["emphasis","blur","select"],sI={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ki(o,i,r,s){r=r||"itemStyle";for(var u=0;u0){var S={duration:m.duration,delay:m.delay||0,easing:m.easing,done:f,force:!!f||!!d,setToFinal:!g,scope:o,during:d};p?i.animateFrom(r,S):i.animateTo(r,S)}else i.stopAnimation(),!p&&i.attr(r),d&&d(1),f&&f()}function ln(o,i,r,s,u,f){H0("update",o,i,r,s,u,f)}function br(o,i,r,s,u,f){H0("init",o,i,r,s,u,f)}function ev(o){if(!o.__zr)return!0;for(var i=0;i-1?"ZH":"EN";function LM(o,i){o=o.toUpperCase(),nu[o]=new Nn(i),RM[o]=i}LM("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),LM("ZH",{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var ds=36e5,No=24*ds,vI=365*No,zm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},tv="{yyyy}-{MM}-{dd}",gI={year:"{yyyy}",month:"{yyyy}-{MM}",day:tv,hour:tv+" "+zm.hour,minute:tv+" "+zm.minute,second:tv+" "+zm.second,millisecond:zm.none},K0=["year","month","day","hour","minute","second","millisecond"],mI=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Vo(o,i){return"0000".substr(0,i-(o+="").length)+o}function ru(o){switch(o){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return o}}function nv(o){return o===ru(o)}function iu(o,i,r,s){var u=ao(o),f=u[$0(r)](),d=u[ah(r)]()+1,p=Math.floor((d-1)/4)+1,v=u[rv(r)](),g=u["get"+(r?"UTC":"")+"Day"](),m=u[oh(r)](),y=(m-1)%12+1,b=u[Gm(r)](),w=u[sh(r)](),S=u[Q0(r)](),x=(s instanceof Nn?s:function(o){return nu[o]}(s||Z0)||nu.EN).getModel("time"),T=x.get("month"),P=x.get("monthAbbr"),O=x.get("dayOfWeek"),R=x.get("dayOfWeekAbbr");return(i||"").replace(/{yyyy}/g,f+"").replace(/{yy}/g,f%100+"").replace(/{Q}/g,p+"").replace(/{MMMM}/g,T[d-1]).replace(/{MMM}/g,P[d-1]).replace(/{MM}/g,Vo(d,2)).replace(/{M}/g,d+"").replace(/{dd}/g,Vo(v,2)).replace(/{d}/g,v+"").replace(/{eeee}/g,O[g]).replace(/{ee}/g,R[g]).replace(/{e}/g,g+"").replace(/{HH}/g,Vo(m,2)).replace(/{H}/g,m+"").replace(/{hh}/g,Vo(y+"",2)).replace(/{h}/g,y+"").replace(/{mm}/g,Vo(b,2)).replace(/{m}/g,b+"").replace(/{ss}/g,Vo(w,2)).replace(/{s}/g,w+"").replace(/{SSS}/g,Vo(S,3)).replace(/{S}/g,S+"")}function ih(o,i){var r=ao(o),s=r[ah(i)]()+1,u=r[rv(i)](),f=r[oh(i)](),d=r[Gm(i)](),p=r[sh(i)](),g=0===r[Q0(i)](),m=g&&0===p,y=m&&0===d,b=y&&0===f,w=b&&1===u;return w&&1===s?"year":w?"month":b?"day":y?"hour":m?"minute":g?"second":"millisecond"}function _I(o,i,r){var s="number"==typeof o?ao(o):o;switch(i=i||ih(o,r)){case"year":return s[$0(r)]();case"half-year":return s[ah(r)]()>=6?1:0;case"quarter":return Math.floor((s[ah(r)]()+1)/4);case"month":return s[ah(r)]();case"day":return s[rv(r)]();case"half-day":return s[oh(r)]()/24;case"hour":return s[oh(r)]();case"minute":return s[Gm(r)]();case"second":return s[sh(r)]();case"millisecond":return s[Q0(r)]()}}function $0(o){return o?"getUTCFullYear":"getFullYear"}function ah(o){return o?"getUTCMonth":"getMonth"}function rv(o){return o?"getUTCDate":"getDate"}function oh(o){return o?"getUTCHours":"getHours"}function Gm(o){return o?"getUTCMinutes":"getMinutes"}function sh(o){return o?"getUTCSeconds":"getSeconds"}function Q0(o){return o?"getUTCMilliseconds":"getMilliseconds"}function yI(o){return o?"setUTCFullYear":"setFullYear"}function Nz(o){return o?"setUTCMonth":"setMonth"}function BM(o){return o?"setUTCDate":"setDate"}function HM(o){return o?"setUTCHours":"setHours"}function bI(o){return o?"setUTCMinutes":"setMinutes"}function zM(o){return o?"setUTCSeconds":"setSeconds"}function CI(o){return o?"setUTCMilliseconds":"setMilliseconds"}function UM(o){if(!of(o))return yt(o)?o:"-";var i=(o+"").split(".");return i[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(i.length>1?"."+i[1]:"")}function Na(o,i){return o=(o||"").toLowerCase().replace(/-(.)/g,function(r,s){return s.toUpperCase()}),i&&o&&(o=o.charAt(0).toUpperCase()+o.slice(1)),o}var lh=Nb,Vz=/([&<>"'])/g,iZ={"&":"&","<":"<",">":">",'"':""","'":"'"};function Bo(o){return null==o?"":(o+"").replace(Vz,function(i,r){return iZ[r]})}function jm(o,i,r){function u(m){return m&&jc(m)?m:"-"}function f(m){return!(null==m||isNaN(m)||!isFinite(m))}var d="time"===i,p=o instanceof Date;if(d||p){var v=d?ao(o):o;if(!isNaN(+v))return iu(v,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",r);if(p)return"-"}if("ordinal"===i)return Gc(o)?u(o):yk(o)&&f(o)?o+"":"-";var g=Fa(o);return f(g)?UM(g):Gc(o)?u(o):"-"}var Bz=["a","b","c","d","e","f","g"],GM=function(i,r){return"{"+i+(null==r?"":r)+"}"};function Wm(o,i,r){we(i)||(i=[i]);var s=i.length;if(!s)return"";for(var u=i[0].$vars||[],f=0;f':'':{renderMode:f,content:"{"+(r.markerId||"markerX")+"|} ",style:"subItem"===u?{width:4,height:4,borderRadius:2,backgroundColor:s}:{width:10,height:10,borderRadius:5,backgroundColor:s}}:""}function Hz(o,i,r){("week"===o||"month"===o||"quarter"===o||"half-year"===o||"year"===o)&&(o="MM-dd\nyyyy");var s=ao(i),u=r?"UTC":"",f=s["get"+u+"FullYear"](),d=s["get"+u+"Month"]()+1,p=s["get"+u+"Date"](),v=s["get"+u+"Hours"](),g=s["get"+u+"Minutes"](),m=s["get"+u+"Seconds"](),y=s["get"+u+"Milliseconds"]();return o.replace("MM",Vo(d,2)).replace("M",d).replace("yyyy",f).replace("yy",f%100+"").replace("dd",Vo(p,2)).replace("d",p).replace("hh",Vo(v,2)).replace("h",v).replace("mm",Vo(g,2)).replace("m",g).replace("ss",Vo(m,2)).replace("s",m).replace("SSS",Vo(y,3))}function zz(o){return o&&o.charAt(0).toUpperCase()+o.substr(1)}function wf(o,i){return i=i||"transparent",yt(o)?o:at(o)&&o.colorStops&&(o.colorStops[0]||{}).color||i}function J0(o,i){if("_blank"===i||"blank"===i){var r=window.open();r.opener=null,r.location.href=o}else window.open(o,i)}var Ym=q,kI=["left","right","top","bottom","width","height"],uh=[["width","left","right"],["height","top","bottom"]];function eC(o,i,r,s,u){var f=0,d=0;null==s&&(s=1/0),null==u&&(u=1/0);var p=0;i.eachChild(function(v,g){var w,S,m=v.getBoundingRect(),y=i.childAt(g+1),b=y&&y.getBoundingRect();if("horizontal"===o){var M=m.width+(b?-b.x+m.x:0);(w=f+M)>s||v.newline?(f=0,w=M,d+=p+r,p=m.height):p=Math.max(p,m.height)}else{var x=m.height+(b?-b.y+m.y:0);(S=d+x)>u||v.newline?(f+=p+r,d=0,S=x,p=m.width):p=Math.max(p,m.width)}v.newline||(v.x=f,v.y=d,v.markRedraw(),"horizontal"===o?f=w+r:d=S+r)})}var Sf=eC;function li(o,i,r){r=lh(r||0);var s=i.width,u=i.height,f=Fe(o.left,s),d=Fe(o.top,u),p=Fe(o.right,s),v=Fe(o.bottom,u),g=Fe(o.width,s),m=Fe(o.height,u),y=r[2]+r[0],b=r[1]+r[3],w=o.aspect;switch(isNaN(g)&&(g=s-p-b-f),isNaN(m)&&(m=u-v-y-d),null!=w&&(isNaN(g)&&isNaN(m)&&(w>s/u?g=.8*s:m=.8*u),isNaN(g)&&(g=w*m),isNaN(m)&&(m=g/w)),isNaN(f)&&(f=s-p-g-b),isNaN(d)&&(d=u-v-m-y),o.left||o.right){case"center":f=s/2-g/2-r[3];break;case"right":f=s-g-b}switch(o.top||o.bottom){case"middle":case"center":d=u/2-m/2-r[0];break;case"bottom":d=u-m-y}f=f||0,d=d||0,isNaN(g)&&(g=s-b-f-(p||0)),isNaN(m)&&(m=u-y-d-(v||0));var S=new Nt(f+r[3],d+r[0],g,m);return S.margin=r,S}function tC(o,i,r,s,u){var f=!u||!u.hv||u.hv[0],d=!u||!u.hv||u.hv[1],p=u&&u.boundingMode||"all";if(f||d){var v;if("raw"===p)v="group"===o.type?new Nt(0,0,+i.width||0,+i.height||0):o.getBoundingRect();else if(v=o.getBoundingRect(),o.needLocalTransform()){var g=o.getLocalTransform();(v=v.clone()).applyTransform(g)}var m=li(tt({width:v.width,height:v.height},i),r,s),y=f?m.x-v.x:0,b=d?m.y-v.y:0;"raw"===p?(o.x=y,o.y=b):(o.x+=y,o.y+=b),o.markRedraw()}}function iv(o){var i=o.layoutMode||o.constructor.layoutMode;return at(i)?i:i?{type:i}:null}function kf(o,i,r){var s=r&&r.ignoreSize;!we(s)&&(s=[s,s]);var u=d(uh[0],0),f=d(uh[1],1);function d(m,y){var b={},w=0,S={},M=0;if(Ym(m,function(O){S[O]=o[O]}),Ym(m,function(O){p(i,O)&&(b[O]=S[O]=i[O]),v(b,O)&&w++,v(S,O)&&M++}),s[y])return v(i,m[1])?S[m[2]]=null:v(i,m[2])&&(S[m[1]]=null),S;if(2===M||!w)return S;if(w>=2)return b;for(var T=0;T=0;v--)p=He(p,u[v],!0);s.defaultOption=p}return s.defaultOption},i.prototype.getReferringComponents=function(r,s){var f=r+"Id";return d0(this.ecModel,r,{index:this.get(r+"Index",!0),id:this.get(f,!0)},s)},i.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},i.protoInitialize=function(){var r=i.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),i}(Nn);h0(ov,Nn),qu(ov),function(o){var i={};o.registerSubTypeDefaulter=function(r,s){var u=ql(r);i[u.main]=s},o.determineSubType=function(r,s){var u=s.type;if(!u){var f=ql(r).main;o.hasSubTypes(r)&&i[f]&&(u=i[f](s))}return u}}(ov),function(o,i){function s(f,d){return f[d]||(f[d]={predecessor:[],successor:[]}),f[d]}o.topologicalTravel=function(f,d,p,v){if(f.length){var g=function(f){var d={},p=[];return q(f,function(v){var g=s(d,v),y=function(f,d){var p=[];return q(f,function(v){Rt(d,v)>=0&&p.push(v)}),p}(g.originalDeps=function(o){var i=[];return q(ov.getClassesByMainType(o),function(r){i=i.concat(r.dependencies||r.prototype.dependencies||[])}),i=Te(i,function(r){return ql(r).main}),"dataset"!==o&&Rt(i,"dataset")<=0&&i.unshift("dataset"),i}(v),f);g.entryCount=y.length,0===g.entryCount&&p.push(v),q(y,function(b){Rt(g.predecessor,b)<0&&g.predecessor.push(b);var w=s(d,b);Rt(w.successor,b)<0&&w.successor.push(v)})}),{graph:d,noEntryList:p}}(d),m=g.graph,y=g.noEntryList,b={};for(q(f,function(P){b[P]=!0});y.length;){var w=y.pop(),S=m[w],M=!!b[w];M&&(p.call(v,w,S.originalDeps.slice()),delete b[w]),q(S.successor,M?T:x)}q(b,function(){throw new Error("")})}function x(P){m[P].entryCount--,0===m[P].entryCount&&y.push(P)}function T(P){b[P]=!0,x(P)}}}(ov);var qt=ov,nC="";"undefined"!=typeof navigator&&(nC=navigator.platform||"");var sv="rgba(0, 0, 0, 0.2)",YM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:sv,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sv,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sv,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sv,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sv,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sv,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:nC.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},rC=et(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ho="original",_a="arrayRows",hs="objectRows",ps="keyedColumns",Mf="typedArray",xI="unknown",tl="column",ch="row",qM=pn();function au(o,i,r){var s={},u=XM(i);if(!u||!o)return s;var m,y,f=[],d=[],v=qM(i.ecModel).datasetMap,g=u.uid+"_"+r.seriesLayoutBy;q(o=o.slice(),function(M,x){var T=at(M)?M:o[x]={name:M};"ordinal"===T.type&&null==m&&(m=x,y=S(T)),s[T.name]=[]});var b=v.get(g)||v.set(g,{categoryWayDim:y,valueWayDim:0});function w(M,x,T){for(var P=0;Pi)return o[s];return o[r-1]}(s,d):r;if((m=m||r)&&m.length){var y=m[v];return u&&(g[u]=y),p.paletteIdx=(v+1)%m.length,y}}var oC,Zm,QM,fh="\0_ec_inner",OI=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.init=function(r,s,u,f,d,p){f=f||{},this.option=null,this._theme=new Nn(f),this._locale=new Nn(d),this._optionManager=p},i.prototype.setOption=function(r,s,u){var f=JM(s);this._optionManager.setOption(r,u,f),this._resetOption(null,f)},i.prototype.resetOption=function(r,s){return this._resetOption(r,JM(s))},i.prototype._resetOption=function(r,s){var u=!1,f=this._optionManager;if(!r||"recreate"===r){var d=f.mountOption("recreate"===r);this.option&&"recreate"!==r?(this.restoreData(),this._mergeOption(d,s)):QM(this,d),u=!0}if(("timeline"===r||"media"===r)&&this.restoreData(),!r||"recreate"===r||"timeline"===r){var p=f.getTimelineOption(this);p&&(u=!0,this._mergeOption(p,s))}if(!r||"recreate"===r||"media"===r){var v=f.getMediaOption(this);v.length&&q(v,function(g){u=!0,this._mergeOption(g,s)},this)}return u},i.prototype.mergeOption=function(r){this._mergeOption(r,null)},i.prototype._mergeOption=function(r,s){var u=this.option,f=this._componentsMap,d=this._componentsCount,p=[],v=et(),g=s&&s.replaceMergeMainTypeMap;(function(o){qM(o).datasetMap=et()})(this),q(r,function(y,b){null!=y&&(qt.hasClass(b)?b&&(p.push(b),v.set(b,!0)):u[b]=null==u[b]?rt(y):He(u[b],y,!0))}),g&&g.each(function(y,b){qt.hasClass(b)&&!v.get(b)&&(p.push(b),v.set(b,!0))}),qt.topologicalTravel(p,qt.getAllClassMainTypes(),function(y){var b=function(o,i,r){var s=iC.get(i);if(!s)return r;var u=s(o);return u?r.concat(u):r}(this,y,jn(r[y])),w=f.get(y),M=Xk(w,b,w?g&&g.get(y)?"replaceMerge":"normalMerge":"replaceAll");(function(o,i,r){q(o,function(s){var u=s.newOption;at(u)&&(s.keyInfo.mainType=i,s.keyInfo.subType=function(o,i,r,s){return i.type?i.type:r?r.subType:s.determineSubType(o,i)}(i,u,s.existing,r))})})(M,y,qt),u[y]=null,f.set(y,null),d.set(y,0);var x=[],T=[],P=0;q(M,function(O,R){var V=O.existing,B=O.newOption;if(B){var j=qt.getClass(y,O.keyInfo.subType,!("series"===y));if(!j)return;if(V&&V.constructor===j)V.name=O.keyInfo.name,V.mergeOption(B,this),V.optionUpdated(B,!1);else{var $=ke({componentIndex:R},O.keyInfo);ke(V=new j(B,this,this,$),$),O.brandNew&&(V.__requireNewView=!0),V.init(B,this,this),V.optionUpdated(null,!0)}}else V&&(V.mergeOption({},this),V.optionUpdated({},!1));V?(x.push(V.option),T.push(V),P++):(x.push(void 0),T.push(void 0))},this),u[y]=x,f.set(y,T),d.set(y,P),"series"===y&&oC(this)},this),this._seriesIndices||oC(this)},i.prototype.getOption=function(){var r=rt(this.option);return q(r,function(s,u){if(qt.hasClass(u)){for(var f=jn(s),d=f.length,p=!1,v=d-1;v>=0;v--)f[v]&&!Yl(f[v])?p=!0:(f[v]=null,!p&&d--);f.length=d,r[u]=f}}),delete r[fh],r},i.prototype.getTheme=function(){return this._theme},i.prototype.getLocaleModel=function(){return this._locale},i.prototype.setUpdatePayload=function(r){this._payload=r},i.prototype.getUpdatePayload=function(){return this._payload},i.prototype.getComponent=function(r,s){var u=this._componentsMap.get(r);if(u){var f=u[s||0];if(f)return f;if(null==s)for(var d=0;d=i:"max"===r?o<=i:o===i})(s[g],f,v)||(u=!1)}}),u}var t4=function(){function o(i){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=i}return o.prototype.setOption=function(i,r,s){i&&(q(jn(i.series),function(d){d&&d.data&&Ii(d.data)&&Vb(d.data)}),q(jn(i.dataset),function(d){d&&d.source&&Ii(d.source)&&Vb(d.source)})),i=rt(i);var u=this._optionBackup,f=function(o,i,r){var u,f,s=[],d=o.baseOption,p=o.timeline,v=o.options,g=o.media,m=!!o.media,y=!!(v||p||d&&d.timeline);function b(w){q(i,function(S){S(w,r)})}return d?(f=d).timeline||(f.timeline=p):((y||m)&&(o.options=o.media=null),f=o),m&&we(g)&&q(g,function(w){w&&w.option&&(w.query?s.push(w):u||(u=w))}),b(f),q(v,function(w){return b(w)}),q(s,function(w){return b(w.option)}),{baseOption:f,timelineOptions:v||[],mediaDefault:u,mediaList:s}}(i,r,!u);this._newBaseOption=f.baseOption,u?(f.timelineOptions.length&&(u.timelineOptions=f.timelineOptions),f.mediaList.length&&(u.mediaList=f.mediaList),f.mediaDefault&&(u.mediaDefault=f.mediaDefault)):this._optionBackup=f},o.prototype.mountOption=function(i){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],rt(i?r.baseOption:this._newBaseOption)},o.prototype.getTimelineOption=function(i){var r,s=this._timelineOptions;if(s.length){var u=i.getComponent("timeline");u&&(r=rt(s[u.getCurrentIndex()]))}return r},o.prototype.getMediaOption=function(i){var r=this._api.getWidth(),s=this._api.getHeight(),u=this._mediaList,f=this._mediaDefault,d=[],p=[];if(!u.length&&!f)return p;for(var v=0,g=u.length;v=0;M--){var x=o[M];if(p||(w=x.data.rawIndexOf(x.stackedByDimension,b)),w>=0){var T=x.data.getByRawIndex(x.stackResultDimension,w);if(y>=0&&T>0||y<=0&&T<0){y=WH(y,T),S=T;break}}}return s[0]=y,s[1]=S,s})})}var rx=function(i){this.data=i.data||(i.sourceFormat===ps?{}:[]),this.sourceFormat=i.sourceFormat||xI,this.seriesLayoutBy=i.seriesLayoutBy||tl,this.startIndex=i.startIndex||0,this.dimensionsDetectedCount=i.dimensionsDetectedCount,this.metaRawOption=i.metaRawOption;var r=this.dimensionsDefine=i.dimensionsDefine;if(r)for(var s=0;sx&&(x=R)}S[0]=M,S[1]=x}},u=function(){return this._data?this._data.length/this._dimSize:0};function f(d){for(var p=0;p=0&&(M=d.interpolatedValue[x])}return null!=M?M+"":""}):void 0},o.prototype.getRawValue=function(i,r){return zo(this.getData(r),i)},o.prototype.formatTooltip=function(i,r,s){},o}();function yh(o){var i,r;return at(o)?o.type&&(r=o):i=o,{markupText:i,markupFragment:r}}function su(o){return new hv(o)}var hv=function(){function o(i){this._reset=(i=i||{}).reset,this._plan=i.plan,this._count=i.count,this._onDirty=i.onDirty,this._dirty=!0}return o.prototype.perform=function(i){var f,r=this._upstream,s=i&&i.skip;if(this._dirty&&r){var u=this.context;u.data=u.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!s&&(f=this._plan(this.context));var y,d=m(this._modBy),p=this._modDataCount||0,v=m(i&&i.modBy),g=i&&i.modDataCount||0;function m(P){return!(P>=1)&&(P=1),P}(d!==v||p!==g)&&(f="reset"),(this._dirty||"reset"===f)&&(this._dirty=!1,y=this._doReset(s)),this._modBy=v,this._modDataCount=g;var b=i&&i.step;if(this._dueEnd=r?r._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var w=this._dueIndex,S=Math.min(null!=b?this._dueIndex+b:1/0,this._dueEnd);if(!s&&(y||w1&&s>0?p:d}};return f;function d(){return i=o?null:vr},gte:function(i,r){return i>=r}},re=function(){function o(i,r){"number"!=typeof r&&Mn(""),this._opFn=ZI[i],this._rvalFloat=Fa(r)}return o.prototype.evaluate=function(i){return this._opFn("number"==typeof i?i:Fa(i),this._rvalFloat)},o}(),KI=function(){function o(i,r){var s="desc"===i;this._resultLT=s?1:-1,null==r&&(r=s?"min":"max"),this._incomparable="min"===r?-1/0:1/0}return o.prototype.evaluate=function(i,r){var s=typeof i,u=typeof r,f="number"===s?i:Fa(i),d="number"===u?r:Fa(r),p=isNaN(f),v=isNaN(d);if(p&&(f=this._incomparable),v&&(d=this._incomparable),p&&v){var g="string"===s,m="string"===u;g&&(f=m?i:0),m&&(d=g?r:0)}return fd?-this._resultLT:0},o}(),Pn=function(){function o(i,r){this._rval=r,this._isEQ=i,this._rvalTypeof=typeof r,this._rvalFloat=Fa(r)}return o.prototype.evaluate=function(i){var r=i===this._rval;if(!r){var s=typeof i;s!==this._rvalTypeof&&("number"===s||"number"===this._rvalTypeof)&&(r=Fa(i)===this._rvalFloat)}return this._isEQ?r:!r},o}();function $I(o,i){return"eq"===o||"ne"===o?new Pn("eq"===o,i):Ae(ZI,o)?new re(o,i):null}var v4=function(){function o(){}return o.prototype.getRawData=function(){throw new Error("not supported")},o.prototype.getRawDataItem=function(i){throw new Error("not supported")},o.prototype.cloneRawData=function(){},o.prototype.getDimensionInfo=function(i){},o.prototype.cloneAllDimensionInfo=function(){},o.prototype.count=function(){},o.prototype.retrieveValue=function(i,r){},o.prototype.retrieveValueFromItem=function(i,r){},o.prototype.convertValue=function(i,r){return n_(i,r)},o}();function m4(o){return fC(o.sourceFormat)||Mn(""),o.data}function QI(o){var i=o.sourceFormat,r=o.data;if(fC(i)||Mn(""),i===_a){for(var u=[],f=0,d=r.length;f65535?hZ:pZ}function S4(o){var i=o.constructor;return i===Array?o.slice():new i(o)}function k4(o,i,r,s,u){var f=nR[r||"float"];if(u){var d=o[i],p=d&&d.length;if(p!==s){for(var v=new f(s),g=0;gx[1]&&(x[1]=M)}return this._rawCount=this._count=v,{start:p,end:v}},o.prototype._initDataFromProvider=function(i,r,s){for(var u=this._provider,f=this._chunks,d=this._dimensions,p=d.length,v=this._rawExtent,g=Te(d,function(P){return P.property}),m=0;mT[1]&&(T[1]=x)}}!u.persistent&&u.clean&&u.clean(),this._rawCount=this._count=r,this._extent=[]},o.prototype.count=function(){return this._count},o.prototype.get=function(i,r){if(!(r>=0&&r=0&&r=this._rawCount||i<0)return-1;if(!this._indices)return i;var r=this._indices,s=r[i];if(null!=s&&si))return d;f=d-1}}return-1},o.prototype.indicesOfNearest=function(i,r,s){var f=this._chunks[i],d=[];if(!f)return d;null==s&&(s=1/0);for(var p=1/0,v=-1,g=0,m=0,y=this.count();m=0&&v<0)&&(p=S,v=w,g=0),w===v&&(d[g++]=m))}return d.length=g,d},o.prototype.getIndices=function(){var i,r=this._indices;if(r){var u=this._count;if((s=r.constructor)===Array){i=new s(u);for(var f=0;f=y&&P<=b||isNaN(P))&&(v[g++]=M),M++;S=!0}else if(2===f){x=w[u[0]];var O=w[u[1]],R=i[u[1]][0],V=i[u[1]][1];for(T=0;T=y&&P<=b||isNaN(P))&&(B>=R&&B<=V||isNaN(B))&&(v[g++]=M),M++}S=!0}}if(!S)if(1===f)for(T=0;T=y&&P<=b||isNaN(P))&&(v[g++]=U)}else for(T=0;Ti[K][1])&&(j=!1)}j&&(v[g++]=r.getRawIndex(T))}return gT[1]&&(T[1]=x)}}},o.prototype.lttbDownSample=function(i,r){var m,y,b,s=this.clone([i],!0),f=s._chunks[i],d=this.count(),p=0,v=Math.floor(1/r),g=this.getRawIndex(0),w=new(Ch(this._rawCount))(Math.ceil(d/v)+2);w[p++]=g;for(var S=1;Sm&&(m=y,b=R)}w[p++]=b,g=b}return w[p++]=this.getRawIndex(d-1),s._count=p,s._indices=w,s.getRawIndex=this._getRawIdx,s},o.prototype.downSample=function(i,r,s,u){for(var f=this.clone([i],!0),d=f._chunks,p=[],v=Math.floor(1/r),g=d[i],m=this.count(),y=f._rawExtent[i]=[1/0,-1/0],b=new(Ch(this._rawCount))(Math.ceil(m/v)),w=0,S=0;Sm-S&&(p.length=v=m-S);for(var M=0;My[1]&&(y[1]=T),b[w++]=P}return f._count=w,f._indices=b,f._updateGetRawIdx(),f},o.prototype.each=function(i,r){if(this._count)for(var s=i.length,u=this._chunks,f=0,d=this.count();fv&&(v=y)}return this._extent[i]=d=[p,v],d},o.prototype.getRawDataItem=function(i){var r=this.getRawIndex(i);if(this._provider.persistent)return this._provider.getItem(r);for(var s=[],u=this._chunks,f=0;f=0?this._indices[i]:-1},o.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},o.internalField=function(){function i(r,s,u,f){return n_(r[f],this._dimensions[f])}sx={arrayRows:i,objectRows:function(s,u,f,d){return n_(s[u],this._dimensions[d])},keyedColumns:i,original:function(s,u,f,d){var p=s&&(null==s.value?s:s.value);return n_(p instanceof Array?p[d]:p,this._dimensions[d])},typedArray:function(s,u,f,d){return s[d]}}}(),o}(),iR=function(){function o(i){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=i}return o.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},o.prototype._setLocalSource=function(i,r){this._sourceList=i,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},o.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},o.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},o.prototype._createSource=function(){this._setLocalSource([],[]);var u,f,i=this._sourceHost,r=this._getUpstreamSourceManagers(),s=!!r.length;if(ux(i)){var d=i,p=void 0,v=void 0,g=void 0;if(s){var m=r[0];m.prepareSource(),p=(g=m.getSource()).data,v=g.sourceFormat,f=[m._getVersionSign()]}else v=Ii(p=d.get("data",!0))?Mf:Ho,f=[];var y=this._getSourceMetaRawOption()||{},b=g&&g.metaRawOption||{},w=ot(y.seriesLayoutBy,b.seriesLayoutBy)||null,S=ot(y.sourceHeader,b.sourceHeader)||null,M=ot(y.dimensions,b.dimensions);u=w!==b.seriesLayoutBy||!!S!=!!b.sourceHeader||M?[lC(p,{seriesLayoutBy:w,sourceHeader:S,dimensions:M},v)]:[]}else{var T=i;if(s){var P=this._applyTransform(r);u=P.sourceList,f=P.upstreamSignList}else u=[lC(T.get("source",!0),this._getSourceMetaRawOption(),null)],f=[]}this._setLocalSource(u,f)},o.prototype._applyTransform=function(i){var r=this._sourceHost,s=r.get("transform",!0),u=r.get("fromTransformResult",!0);null!=u&&1!==i.length&&aR("");var d,p=[],v=[];return q(i,function(g){g.prepareSource();var m=g.getSource(u||0);null!=u&&!m&&aR(""),p.push(m),v.push(g._getVersionSign())}),s?d=function(o,i,r){var s=jn(o),u=s.length;u||Mn("");for(var d=0,p=u;d1||r>0&&!i.noHeader,u=0;q(i.blocks,function(f){hC(f).planLayout(f);var d=f.__gapLevelBetweenSubBlocks;d>=u&&(u=d+(!s||d&&("section"!==f.type||f.noHeader)?0:1))}),i.__gapLevelBetweenSubBlocks=u},build:function(i,r,s,u){var f=r.noHeader,d=fR(r),p=function(o,i,r,s){var u=[],f=i.blocks||[];Oa(!f||we(f)),f=f||[];var d=o.orderMode;if(i.sortBlocks&&d){f=f.slice();var p={valueAsc:"asc",valueDesc:"desc"};if(Ae(p,d)){var v=new KI(p[d],null);f.sort(function(m,y){return v.evaluate(m.sortParam,y.sortParam)})}else"seriesDesc"===d&&f.reverse()}var g=fR(i);if(q(f,function(m,y){var b=hC(m).build(o,m,y>0?g.html:0,s);null!=b&&u.push(b)}),u.length)return"richText"===o.renderMode?u.join(g.richText):cx(u.join(""),r)}(i,r,f?s:d.html,u);if(f)return p;var v=jm(r.header,"ordinal",i.useUTC),g=oR(u,i.renderMode).nameStyle;return"richText"===i.renderMode?fx(i,v,g)+d.richText+p:cx('
'+Bo(v)+"
"+p,s)}},nameValue:{planLayout:function(i){i.__gapLevelBetweenSubBlocks=0},build:function(i,r,s,u){var f=i.renderMode,d=r.noName,p=r.noValue,v=!r.markerType,g=r.name,m=r.value,y=i.useUTC;if(!d||!p){var b=v?"":i.markupStyleCreator.makeTooltipMarker(r.markerType,r.markerColor||"#333",f),w=d?"":jm(g,"ordinal",y),S=r.valueType,M=p?[]:we(m)?Te(m,function(V,B){return jm(V,we(S)?S[B]:S,y)}):[jm(m,we(S)?S[0]:S,y)],x=!v||!d,T=!v&&d,P=oR(u,f),O=P.nameStyle,R=P.valueStyle;return"richText"===f?(v?"":b)+(d?"":fx(i,w,O))+(p?"":function(o,i,r,s,u){var f=[u];return r&&f.push({padding:[0,0,0,s?10:20],align:"right"}),o.markupStyleCreator.wrapRichTextStyle(i.join(" "),f)}(i,M,x,T,R)):cx((v?"":b)+(d?"":function(o,i,r){return''+Bo(o)+""}(w,!v,O))+(p?"":function(o,i,r,s){return''+Te(o,function(d){return Bo(d)}).join("  ")+""}(M,x,T,R)),s)}}}};function cR(o,i,r,s,u,f){if(o){var d=hC(o);return d.planLayout(o),d.build({useUTC:u,renderMode:r,orderMode:s,markupStyleCreator:i},o,0,f)}}function fR(o){var i=o.__gapLevelBetweenSubBlocks;return{html:sR[i],richText:M4[i]}}function cx(o,i){return'
'+o+'
'}function fx(o,i,r){return o.markupStyleCreator.wrapRichTextStyle(i,r)}function dx(o,i){return wf(o.getData().getItemVisual(i,"style")[o.visualDrawType])}function hx(o,i){var r=o.get("padding");return null!=r?r:"richText"===i?[8,10]:10}var r_=function(){function o(){this.richTextStyles={},this._nextStyleNameId=Gp()}return o.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},o.prototype.makeTooltipMarker=function(i,r,s){var u="richText"===s?this._generateStyleName():null,f=SI({color:r,type:i,renderMode:s,markerId:u});return yt(f)?f:(this.richTextStyles[u]=f.style,f.content)},o.prototype.wrapRichTextStyle=function(i,r){var s={};we(r)?q(r,function(f){return ke(s,f)}):ke(s,r);var u=this._generateStyleName();return this.richTextStyles[u]=s,"{"+u+"|"+i+"}"},o}();function D4(o){var m,y,b,w,i=o.series,r=o.dataIndex,s=o.multipleSeries,u=i.getData(),f=u.mapDimensionsAll("defaultedTooltip"),d=f.length,p=i.getRawValue(r),v=we(p),g=dx(i,r);if(d>1||v&&!d){var S=function(o,i,r,s,u){var f=i.getData(),d=zu(o,function(y,b,w){var S=f.getDimensionInfo(w);return y||S&&!1!==S.tooltip&&null!=S.displayName},!1),p=[],v=[],g=[];function m(y,b){var w=f.getDimensionInfo(b);!w||!1===w.otherDims.tooltip||(d?g.push(pi("nameValue",{markerType:"subItem",markerColor:u,name:w.displayName,value:y,valueType:w.type})):(p.push(y),v.push(w.type)))}return s.length?q(s,function(y){m(zo(f,r,y),y)}):q(o,m),{inlineValues:p,inlineValueTypes:v,blocks:g}}(p,i,r,f,g);m=S.inlineValues,y=S.inlineValueTypes,b=S.blocks,w=S.inlineValues[0]}else if(d){var M=u.getDimensionInfo(f[0]);w=m=zo(u,r,f[0]),y=M.type}else w=m=v?p[0]:p;var x=ii(i),T=x&&i.name||"",P=u.getName(r),O=s?T:P;return pi("section",{header:T,noHeader:s||!x,sortParam:w,blocks:[pi("nameValue",{markerType:"item",markerColor:g,name:O,noName:!jc(O),value:m,valueType:y})].concat(b||[])})}var Sh=pn();function px(o,i){return o.getName(i)||o.getId(i)}var N="__universalTransitionEnabled",pC=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return he(i,o),i.prototype.init=function(r,s,u){this.seriesIndex=this.componentIndex,this.dataTask=su({count:A4,reset:A}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,u),(Sh(this).sourceManager=new iR(this)).prepareSource();var d=this.getInitialData(r,u);me(d,this),this.dataTask.context.data=d,Sh(this).dataBeforeProcessed=d,z(this),this._initSelectedMapFromData(d)},i.prototype.mergeDefaultAndTheme=function(r,s){var u=iv(this),f=u?av(r):{},d=this.subType;qt.hasClass(d)&&(d+="Series"),He(r,s.getTheme().get(this.subType)),He(r,this.getDefaultOption()),Nd(r,"label",["show"]),this.fillDataTextStyle(r.data),u&&kf(r,f,u)},i.prototype.mergeOption=function(r,s){r=He(this.option,r,!0),this.fillDataTextStyle(r.data);var u=iv(this);u&&kf(this.option,r,u);var f=Sh(this).sourceManager;f.dirty(),f.prepareSource();var d=this.getInitialData(r,s);me(d,this),this.dataTask.dirty(),this.dataTask.context.data=d,Sh(this).dataBeforeProcessed=d,z(this),this._initSelectedMapFromData(d)},i.prototype.fillDataTextStyle=function(r){if(r&&!Ii(r))for(var s=["show"],u=0;uthis.getShallow("animationThreshold")&&(r=!1),!!r},i.prototype.restoreData=function(){this.dataTask.dirty()},i.prototype.getColorFromPalette=function(r,s,u){var f=this.ecModel,d=aC.prototype.getColorFromPalette.call(this,r,s,u);return d||(d=f.getColorFromPalette(r,s,u)),d},i.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},i.prototype.getProgressive=function(){return this.get("progressive")},i.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},i.prototype.select=function(r,s){this._innerSelect(this.getData(s),r)},i.prototype.unselect=function(r,s){var u=this.option.selectedMap;if(u)for(var f=this.getData(s),d=0;d=0&&u.push(d)}return u},i.prototype.isSelected=function(r,s){var u=this.option.selectedMap;return u&&u[px(this.getData(s),r)]||!1},i.prototype.isUniversalTransitionEnabled=function(){if(this[N])return!0;var r=this.option.universalTransition;return!!r&&(!0===r||r&&r.enabled)},i.prototype._innerSelect=function(r,s){var u,f,d=this.option.selectedMode,p=s.length;if(d&&p)if("multiple"===d)for(var v=this.option.selectedMap||(this.option.selectedMap={}),g=0;g0&&this._innerSelect(r,s)}},i.registerClass=function(r){return qt.registerClass(r)},i.protoInitialize=function(){var r=i.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),i}(qt);function z(o){var i=o.name;ii(o)||(o.name=function(o){var i=o.getRawData(),r=i.mapDimensionsAll("seriesName"),s=[];return q(r,function(u){var f=i.getDimensionInfo(u);f.displayName&&s.push(f.displayName)}),s.join(" ")}(o)||i)}function A4(o){return o.model.getRawData().count()}function A(o){var i=o.model;return i.setData(i.getRawData().cloneShallow()),E}function E(o,i){i.outputData&&o.end>i.outputData.count()&&i.model.getRawData().cloneShallow(i.outputData)}function me(o,i){q(Bb(o.CHANGABLE_METHODS,o.DOWNSAMPLE_METHODS),function(r){o.wrapMethod(r,St(_Z,i))})}function _Z(o,i){var r=gx(o);return r&&r.setOutputEnd((i||this).count()),i}function gx(o){var i=(o.ecModel||{}).scheduler,r=i&&i.getPipeline(o.uid);if(r){var s=r.currentTask;if(s){var u=s.agentStubMap;u&&(s=u.get(o.uid))}return s}}qr(pC,Ke),qr(pC,aC),h0(pC,qt);var vt=pC,xn=function(){function o(){this.group=new ct,this.uid=Bm("viewComponent")}return o.prototype.init=function(i,r){},o.prototype.render=function(i,r,s,u){},o.prototype.dispose=function(i,r){},o.prototype.updateView=function(i,r,s,u){},o.prototype.updateLayout=function(i,r,s,u){},o.prototype.updateVisual=function(i,r,s,u){},o.prototype.blurSeries=function(i,r){},o}();Zk(xn),qu(xn);var un=xn;function De(){var o=pn();return function(i){var r=o(i),s=i.pipelineContext,u=!!r.large,f=!!r.progressiveRender,d=r.large=!(!s||!s.large),p=r.progressiveRender=!(!s||!s.progressiveRender);return(u!==d||f!==p)&&"reset"}}var vv=pn(),dR=De(),gv=function(){function o(){this.group=new ct,this.uid=Bm("viewChart"),this.renderTask=su({plan:E4,reset:hR}),this.renderTask.context={view:this}}return o.prototype.init=function(i,r){},o.prototype.render=function(i,r,s,u){},o.prototype.highlight=function(i,r,s,u){mv(i.getData(),u,"emphasis")},o.prototype.downplay=function(i,r,s,u){mv(i.getData(),u,"normal")},o.prototype.remove=function(i,r){this.group.removeAll()},o.prototype.dispose=function(i,r){},o.prototype.updateView=function(i,r,s,u){this.render(i,r,s,u)},o.prototype.updateLayout=function(i,r,s,u){this.render(i,r,s,u)},o.prototype.updateVisual=function(i,r,s,u){this.render(i,r,s,u)},o.markUpdateMethod=function(i,r){vv(i).updateMethod=r},o.protoInitialize=void(o.prototype.type="chart"),o}();function ne(o,i,r){o&&("emphasis"===i?Js:eu)(o,r)}function mv(o,i,r){var s=ga(o,i),u=i&&null!=i.highlightKey?function(o){var i=Mz[o];return null==i&&kz<=32&&(i=Mz[o]=kz++),i}(i.highlightKey):null;null!=s?q(jn(s),function(f){ne(o.getItemGraphicEl(f),r,u)}):o.eachItemGraphicEl(function(f){ne(f,r,u)})}function E4(o){return dR(o.model)}function hR(o){var i=o.model,r=o.ecModel,s=o.api,u=o.payload,f=i.pipelineContext.progressiveRender,d=o.view,p=u&&vv(u).updateMethod,v=f?"incrementalPrepareRender":p&&d[p]?p:"render";return"render"!==v&&d[v](i,r,s,u),pR[v]}Zk(gv),qu(gv);var pR={incrementalPrepareRender:{progress:function(i,r){r.view.incrementalRender(i,r.model,r.ecModel,r.api,r.payload)}},render:{forceFirstProgress:!0,progress:function(i,r){r.view.render(r.model,r.ecModel,r.api,r.payload)}}},Vn=gv,J="\0__throttleOriginMethod",vR="\0__throttleRate",rr="\0__throttleType";function Wt(o,i,r){var s,p,v,g,m,u=0,f=0,d=null;function y(){f=(new Date).getTime(),d=null,o.apply(v,g||[])}i=i||0;var b=function(){for(var S=[],M=0;M=0?y():d=setTimeout(y,-p),u=s};return b.clear=function(){d&&(clearTimeout(d),d=null)},b.debounceNextCall=function(w){m=w},b}function il(o,i,r,s){var u=o[i];if(u){var f=u[J]||u;if(u[vR]!==r||u[rr]!==s){if(null==r||!s)return o[i]=f;(u=o[i]=Wt(f,r,"debounce"===s))[J]=f,u[rr]=s,u[vR]=r}return u}}var _x=pn(),yx={itemStyle:Hd(uI,!0),lineStyle:Hd(q0,!0)},gR={lineStyle:"stroke",itemStyle:"fill"};function bx(o,i){return o.visualStyleMapper||yx[i]||(console.warn("Unkown style type '"+i+"'."),yx.itemStyle)}function Cx(o,i){return o.visualDrawType||gR[i]||(console.warn("Unkown style type '"+i+"'."),"fill")}var mR={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){var s=i.getData(),u=i.visualStyleAccessPath||"itemStyle",f=i.getModel(u),p=bx(i,u)(f),v=f.getShallow("decal");v&&(s.setVisual("decal",v),v.dirty=!0);var g=Cx(i,u),m=p[g],y=An(m)?m:null;if(!p[g]||y||"auto"===p.fill||"auto"===p.stroke){var w=i.getColorFromPalette(i.name,null,r.getSeriesCount());p[g]||(p[g]=w,s.setVisual("colorFromPalette",!0)),p.fill="auto"===p.fill||"function"==typeof p.fill?w:p.fill,p.stroke="auto"===p.stroke||"function"==typeof p.stroke?w:p.stroke}if(s.setVisual("style",p),s.setVisual("drawType",g),!r.isSeriesFiltered(i)&&y)return s.setVisual("colorFromPalette",!1),{dataEach:function(M,x){var T=i.getDataParams(x),P=ke({},p);P[g]=y(T),M.setItemVisual(x,"style",P)}}}},_v=new Nn,_R={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){if(!i.ignoreStyleOnData&&!r.isSeriesFiltered(i)){var s=i.getData(),u=i.visualStyleAccessPath||"itemStyle",f=bx(i,u),d=s.getVisual("drawType");return{dataEach:s.hasItemOption?function(p,v){var g=p.getRawDataItem(v);if(g&&g[u]){_v.option=g[u];var m=f(_v);ke(p.ensureUniqueItemVisual(v,"style"),m),_v.option.decal&&(p.setItemVisual(v,"decal",_v.option.decal),_v.option.decal.dirty=!0),d in m&&p.setItemVisual(v,"colorFromPalette",!1)}}:null}}}},yZ={performRawSeries:!0,overallReset:function(i){var r=et();i.eachSeries(function(s){var u=s.getColorBy();if(!s.isColorBySeries()){var f=s.type+"-"+u,d=r.get(f);d||r.set(f,d={}),_x(s).scope=d}}),i.eachSeries(function(s){if(!s.isColorBySeries()&&!i.isSeriesFiltered(s)){var u=s.getRawData(),f={},d=s.getData(),p=_x(s).scope,g=Cx(s,s.visualStyleAccessPath||"itemStyle");d.each(function(m){var y=d.getRawIndex(m);f[y]=m}),u.each(function(m){var y=f[m];if(d.getItemVisual(y,"colorFromPalette")){var w=d.ensureUniqueItemVisual(y,"style"),S=u.getName(m)||m+"",M=u.count();w[g]=s.getColorFromPalette(S,p,M)}})}})}},P4=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},yR=function(o){function i(r){return o.call(this,r)||this}return Ln(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new P4},i.prototype.buildPath=function(r,s){var u=s.cx,f=s.cy,d=Math.max(s.r,0),p=s.startAngle,v=s.endAngle,g=s.clockwise,m=Math.cos(p),y=Math.sin(p);r.moveTo(m*d+u,y*d+f),r.arc(u,f,d,p,v,!g)},i}(Vt);yR.prototype.type="arc";var i_=yR,vC=Math.PI,bR=function(){function o(i,r,s,u){this._stageTaskMap=et(),this.ecInstance=i,this.api=r,s=this._dataProcessorHandlers=s.slice(),u=this._visualHandlers=u.slice(),this._allHandlers=s.concat(u)}return o.prototype.restoreData=function(i,r){i.restoreData(r),this._stageTaskMap.each(function(s){var u=s.overallTask;u&&u.dirty()})},o.prototype.getPerformArgs=function(i,r){if(i.__pipeline){var s=this._pipelineMap.get(i.__pipeline.id),u=s.context,d=!r&&s.progressiveEnabled&&(!u||u.progressiveRender)&&i.__idxInPipeline>s.blockIndex?s.step:null,p=u&&u.modDataCount;return{step:d,modBy:null!=p?Math.ceil(p/d):null,modDataCount:p}}},o.prototype.getPipeline=function(i){return this._pipelineMap.get(i)},o.prototype.updateStreamModes=function(i,r){var s=this._pipelineMap.get(i.uid),f=i.getData().count(),d=s.progressiveEnabled&&r.incrementalPrepareRender&&f>=s.threshold,p=i.get("large")&&f>=i.get("largeThreshold"),v="mod"===i.get("progressiveChunkMode")?f:null;i.pipelineContext=s.context={progressiveRender:d,modDataCount:v,large:p}},o.prototype.restorePipelines=function(i){var r=this,s=r._pipelineMap=et();i.eachSeries(function(u){var f=u.getProgressive(),d=u.uid;s.set(d,{id:d,head:null,tail:null,threshold:u.getProgressiveThreshold(),progressiveEnabled:f&&!(u.preventIncremental&&u.preventIncremental()),blockIndex:-1,step:Math.round(f||700),count:0}),r._pipe(u,u.dataTask)})},o.prototype.prepareStageTasks=function(){var i=this._stageTaskMap,r=this.api.getModel(),s=this.api;q(this._allHandlers,function(u){var f=i.get(u.uid)||i.set(u.uid,{});Oa(!(u.reset&&u.overallReset),""),u.reset&&this._createSeriesStageTask(u,f,r,s),u.overallReset&&this._createOverallStageTask(u,f,r,s)},this)},o.prototype.prepareView=function(i,r,s,u){var f=i.renderTask,d=f.context;d.model=r,d.ecModel=s,d.api=u,f.__block=!i.incrementalPrepareRender,this._pipe(r,f)},o.prototype.performDataProcessorTasks=function(i,r){this._performStageTasks(this._dataProcessorHandlers,i,r,{block:!0})},o.prototype.performVisualTasks=function(i,r,s){this._performStageTasks(this._visualHandlers,i,r,s)},o.prototype._performStageTasks=function(i,r,s,u){u=u||{};var f=!1,d=this;function p(v,g){return v.setDirty&&(!v.dirtyMap||v.dirtyMap.get(g.__pipeline.id))}q(i,function(v,g){if(!u.visualType||u.visualType===v.visualType){var m=d._stageTaskMap.get(v.uid),y=m.seriesTaskMap,b=m.overallTask;if(b){var w,S=b.agentStubMap;S.each(function(x){p(u,x)&&(x.dirty(),w=!0)}),w&&b.dirty(),d.updatePayload(b,s);var M=d.getPerformArgs(b,u.block);S.each(function(x){x.perform(M)}),b.perform(M)&&(f=!0)}else y&&y.each(function(x,T){p(u,x)&&x.dirty();var P=d.getPerformArgs(x,u.block);P.skip=!v.performRawSeries&&r.isSeriesFiltered(x.context.model),d.updatePayload(x,s),x.perform(P)&&(f=!0)})}}),this.unfinished=f||this.unfinished},o.prototype.performSeriesTasks=function(i){var r;i.eachSeries(function(s){r=s.dataTask.perform()||r}),this.unfinished=r||this.unfinished},o.prototype.plan=function(){this._pipelineMap.each(function(i){var r=i.tail;do{if(r.__block){i.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},o.prototype.updatePayload=function(i,r){"remain"!==r&&(i.context.payload=r)},o.prototype._createSeriesStageTask=function(i,r,s,u){var f=this,d=r.seriesTaskMap,p=r.seriesTaskMap=et(),v=i.seriesType,g=i.getTargetSeries;function m(y){var b=y.uid,w=p.set(b,d&&d.get(b)||su({plan:wR,reset:SR,count:L4}));w.context={model:y,ecModel:s,api:u,useClearVisual:i.isVisual&&!i.isLayout,plan:i.plan,reset:i.reset,scheduler:f},f._pipe(y,w)}i.createOnAllSeries?s.eachRawSeries(m):v?s.eachRawSeriesByType(v,m):g&&g(s,u).each(m)},o.prototype._createOverallStageTask=function(i,r,s,u){var f=this,d=r.overallTask=r.overallTask||su({reset:O4});d.context={ecModel:s,api:u,overallReset:i.overallReset,scheduler:f};var p=d.agentStubMap,v=d.agentStubMap=et(),g=i.seriesType,m=i.getTargetSeries,y=!0,b=!1;function S(M){var x=M.uid,T=v.set(x,p&&p.get(x)||(b=!0,su({reset:I4,onDirty:R4})));T.context={model:M,overallProgress:y},T.agent=d,T.__block=y,f._pipe(M,T)}Oa(!i.createOnAllSeries,""),g?s.eachRawSeriesByType(g,S):m?m(s,u).each(S):(y=!1,q(s.getSeries(),S)),b&&d.dirty()},o.prototype._pipe=function(i,r){var u=this._pipelineMap.get(i.uid);!u.head&&(u.head=r),u.tail&&u.tail.pipe(r),u.tail=r,r.__idxInPipeline=u.count++,r.__pipeline=u},o.wrapStageHandler=function(i,r){return An(i)&&(i={overallReset:i,seriesType:MR(i)}),i.uid=Bm("stageHandler"),r&&(i.visualType=r),i},o}();function O4(o){o.overallReset(o.ecModel,o.api,o.payload)}function I4(o){return o.overallProgress&&CR}function CR(){this.agent.dirty(),this.getDownstream().dirty()}function R4(){this.agent&&this.agent.dirty()}function wR(o){return o.plan?o.plan(o.model,o.ecModel,o.api,o.payload):null}function SR(o){o.useClearVisual&&o.data.clearAllVisual();var i=o.resetDefines=jn(o.reset(o.model,o.ecModel,o.api,o.payload));return i.length>1?Te(i,function(r,s){return kR(s)}):yv}var yv=kR(0);function kR(o){return function(i,r){var s=r.data,u=r.resetDefines[o];if(u&&u.dataEach)for(var f=i.start;f0&&w===g.length-b.length){var S=g.slice(0,w);"data"!==S&&(r.mainType=S,r[b.toLowerCase()]=v,m=!0)}}p.hasOwnProperty(g)&&(s[g]=v,m=!0),m||(u[g]=v)})}return{cptQuery:r,dataQuery:s,otherQuery:u}},o.prototype.filter=function(i,r){var s=this.eventInfo;if(!s)return!0;var u=s.targetEl,f=s.packedEvent,d=s.model,p=s.view;if(!d||!p)return!0;var v=r.cptQuery,g=r.dataQuery;return m(v,d,"mainType")&&m(v,d,"subType")&&m(v,d,"index","componentIndex")&&m(v,d,"name")&&m(v,d,"id")&&m(g,f,"name")&&m(g,f,"dataIndex")&&m(g,f,"dataType")&&(!p.filterForExposedEvent||p.filterForExposedEvent(i,r.otherQuery,u,f));function m(y,b,w,S){return null==y[w]||b[S||w]===y[w]}},o.prototype.afterTrigger=function(){this.eventInfo=null},o}(),V4={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){var s=i.getData();if(i.legendIcon&&s.setVisual("legendIcon",i.legendIcon),i.hasSymbolVisual){var u=i.get("symbol"),f=i.get("symbolSize"),d=i.get("symbolKeepAspect"),p=i.get("symbolRotate"),v=i.get("symbolOffset"),g=An(u),m=An(f),y=An(p),b=An(v),w=g||m||y||b,S=!g&&u?u:i.defaultSymbol;if(s.setVisual({legendIcon:i.legendIcon||S,symbol:S,symbolSize:m?null:f,symbolKeepAspect:d,symbolRotate:y?null:p,symbolOffset:b?null:v}),!r.isSeriesFiltered(i))return{dataEach:w?function(O,R){var V=i.getRawValue(R),B=i.getDataParams(R);g&&O.setItemVisual(R,"symbol",u(V,B)),m&&O.setItemVisual(R,"symbolSize",f(V,B)),y&&O.setItemVisual(R,"symbolRotate",p(V,B)),b&&O.setItemVisual(R,"symbolOffset",v(V,B))}:null}}}};function xx(o,i,r){switch(r){case"color":return o.getItemVisual(i,"style")[o.getVisual("drawType")];case"opacity":return o.getItemVisual(i,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return o.getItemVisual(i,r)}}function kh(o,i){switch(i){case"color":return o.getVisual("style")[o.getVisual("drawType")];case"opacity":return o.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return o.getVisual(i)}}function bv(o,i,r,s){switch(r){case"color":o.ensureUniqueItemVisual(i,"style")[o.getVisual("drawType")]=s,o.setItemVisual(i,"colorFromPalette",!1);break;case"opacity":o.ensureUniqueItemVisual(i,"style").opacity=s;break;case"symbol":case"symbolSize":case"liftZ":o.setItemVisual(i,r,s)}}function TR(o,i){function r(s,u){var f=[];return s.eachComponent({mainType:"series",subType:o,query:u},function(d){f.push(d.seriesIndex)}),f}q([[o+"ToggleSelect","toggleSelect"],[o+"Select","select"],[o+"UnSelect","unselect"]],function(s){i(s[0],function(u,f,d){u=ke({},u),d.dispatchAction(ke(u,{type:s[1],seriesIndex:r(f,u)}))})})}function Mh(o,i,r,s,u){var f=o+i;r.isSilent(f)||s.eachComponent({mainType:"series",subType:"pie"},function(d){for(var p=d.seriesIndex,v=u.selected,g=0;g1&&(d*=mC(S),p*=mC(S));var M=(u===f?-1:1)*mC((d*d*(p*p)-d*d*(w*w)-p*p*(b*b))/(d*d*(w*w)+p*p*(b*b)))||0,x=M*d*w/p,T=M*-p*b/d,P=(o+r)/2+s_(y)*x-o_(y)*T,O=(i+s)/2+o_(y)*x+s_(y)*T,R=Ex([1,0],[(b-x)/d,(w-T)/p]),V=[(b-x)/d,(w-T)/p],B=[(-1*b-x)/d,(-1*w-T)/p],U=Ex(V,B);if(_C(V,B)<=-1&&(U=wv),_C(V,B)>=1&&(U=0),U<0){var j=Math.round(U/wv*1e6)/1e6;U=2*wv+j%2*wv}m.addData(g,P,O,d,p,R,U,y,f)}var U4=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,G4=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,ER=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return Ln(i,o),i.prototype.applyTransform=function(r){},i}(Vt);function PR(o){return null!=o.setData}function OR(o,i){var r=function(o){var i=new Qs;if(!o)return i;var d,r=0,s=0,u=r,f=s,p=Qs.CMD,v=o.match(U4);if(!v)return i;for(var g=0;gle*le+oe*oe&&(j=K,X=$),{cx:j,cy:X,x01:-m,y01:-y,x11:j*(u/V-1),y11:X*(u/V-1)}}var kv=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0},K4=function(o){function i(r){return o.call(this,r)||this}return Ln(i,o),i.prototype.getDefaultShape=function(){return new kv},i.prototype.buildPath=function(r,s){!function(o,i){var r=bC(i.r,0),s=bC(i.r0||0,0),u=r>0;if(u||s>0){if(u||(r=s,s=0),s>r){var d=r;r=s,s=d}var m,p=!!i.clockwise,v=i.startAngle,g=i.endAngle;if(v===g)m=0;else{var y=[v,g];Mm(y,!p),m=Ix(y[0]-y[1])}var b=i.cx,w=i.cy,S=i.cornerRadius||0,M=i.innerCornerRadius||0;if(r>Ba)if(m>FR-Ba)o.moveTo(b+r*Th(v),w+r*Ef(v)),o.arc(b,w,r,v,g,!p),s>Ba&&(o.moveTo(b+s*Th(g),w+s*Ef(g)),o.arc(b,w,s,g,v,p));else{var x=Ix(r-s)/2,T=Ki(x,S),P=Ki(x,M),O=P,R=T,V=r*Th(v),B=r*Ef(v),U=s*Th(g),j=s*Ef(g),X=void 0,K=void 0,$=void 0,te=void 0;if((T>Ba||P>Ba)&&(X=r*Th(g),K=r*Ef(g),$=s*Th(v),te=s*Ef(v),mBa)if(R>Ba){var Me=CC($,te,V,B,r,R,p),ze=CC(X,K,U,j,r,R,p);o.moveTo(b+Me.cx+Me.x01,w+Me.cy+Me.y01),RBa&&m>Ba?O>Ba?(Me=CC(U,j,X,K,s,-O,p),ze=CC(V,B,$,te,s,-O,p),o.lineTo(b+Me.cx+Me.x01,w+Me.cy+Me.y01),O=2){if(s&&"spline"!==s){var f=function(o,i,r,s){var v,g,m,y,u=[],f=[],d=[],p=[];if(s){m=[1/0,1/0],y=[-1/0,-1/0];for(var b=0,w=o.length;br-2?r-1:v+1],w=o[v>r-3?r-1:v+2]);var S=g*g,M=g*S;s.push([$4(m[0],y[0],b[0],w[0],g,S,M),$4(m[1],y[1],b[1],w[1],g,S,M)])}return s}(u,r)),o.moveTo(u[0][0],u[0][1]),p=1;for(var y=u.length;pOf[1]){if(p=!1,f)return p;var m=Math.abs(Of[0]-Pf[1]),y=Math.abs(Pf[0]-Of[1]);Math.min(m,y)>u.len()&&Tt.scale(u,g,mMath.abs(f[1])?f[0]>0?"right":"left":f[1]>0?"bottom":"top"}function WR(o){return!o.isGroup}function Dv(o,i,r){if(o&&i){var p,f=(p={},o.traverse(function(v){WR(v)&&v.anid&&(p[v.anid]=v)}),p);i.traverse(function(d){if(WR(d)&&d.anid){var p=f[d.anid];if(p){var v=u(d);d.attr(u(p)),ln(d,v,r,ht(d).dataIndex)}}})}function u(d){var p={x:d.x,y:d.y,rotation:d.rotation};return function(o){return null!=o.shape}(d)&&(p.shape=ke({},d.shape)),p}}function Gx(o,i){return Te(o,function(r){var s=r[0];s=h_(s,i.x),s=p_(s,i.x+i.width);var u=r[1];return u=h_(u,i.y),[s,u=p_(u,i.y+i.height)]})}function YR(o,i){var r=h_(o.x,i.x),s=p_(o.x+o.width,i.x+i.width),u=h_(o.y,i.y),f=p_(o.y+o.height,i.y+i.height);if(s>=r&&f>=u)return{x:r,y:u,width:s-r,height:f-u}}function cl(o,i,r){var s=ke({rectHover:!0},i),u=s.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},o)return 0===o.indexOf("image://")?(u.image=o.slice(8),tt(u,r),new si(s)):DC(o.replace("path://",""),s,r,"center")}function v_(o,i,r,s,u){for(var f=0,d=u[u.length-1];f=-1e-6}(b))return!1;var w=o-u,S=i-f,M=Wx(w,S,v,g)/b;if(M<0||M>1)return!1;var x=Wx(w,S,m,y)/b;return!(x<0||x>1)}function Wx(o,i,r,s){return o*s-r*i}function Av(o){var i=o.itemTooltipOption,r=o.componentModel,s=o.itemName,u=yt(i)?{formatter:i}:i,f=r.mainType,d=r.componentIndex,p={componentType:f,name:s,$vars:["name"]};p[f+"Index"]=d;var v=o.formatterParamsExtra;v&&q(_n(v),function(m){Ae(p,m)||(p[m]=v[m],p.$vars.push(m))});var g=ht(o.el);g.componentMainType=f,g.componentIndex=d,g.tooltipConfig={name:s,option:tt({content:s,formatterParams:p},u)}}ll("circle",sl),ll("ellipse",yC),ll("sector",ir),ll("ring",Mv),ll("polygon",ba),ll("polyline",Cr),ll("rect",sn),ll("line",Ti),ll("bezierCurve",c_),ll("arc",i_);var XR=Vt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(i,r){var s=r.cx,u=r.cy,f=r.width/2,d=r.height/2;i.moveTo(s,u-d),i.lineTo(s+f,u+d),i.lineTo(s-f,u+d),i.closePath()}}),s8=Vt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(i,r){var s=r.cx,u=r.cy,f=r.width/2,d=r.height/2;i.moveTo(s,u-d),i.lineTo(s+f,u),i.lineTo(s,u+d),i.lineTo(s-f,u),i.closePath()}}),Yx=Vt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(i,r){var s=r.x,u=r.y,f=r.width/5*3,d=Math.max(f,r.height),p=f/2,v=p*p/(d-p),g=u-d+p+v,m=Math.asin(v/p),y=Math.cos(m)*p,b=Math.sin(m),w=Math.cos(m),S=.6*p,M=.7*p;i.moveTo(s-y,g+v),i.arc(s,g,p,Math.PI-m,2*Math.PI+m),i.bezierCurveTo(s+y-b*S,g+v+w*S,s,u-M,s,u),i.bezierCurveTo(s,u-M,s-y+b*S,g+v+w*S,s-y,g+v),i.closePath()}}),l8=Vt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(i,r){var s=r.height,f=r.x,d=r.y,p=r.width/3*2;i.moveTo(f,d),i.lineTo(f+p,d+s),i.lineTo(f,d+s/4*3),i.lineTo(f-p,d+s),i.lineTo(f,d),i.closePath()}}),KR={line:function(i,r,s,u,f){f.x1=i,f.y1=r+u/2,f.x2=i+s,f.y2=r+u/2},rect:function(i,r,s,u,f){f.x=i,f.y=r,f.width=s,f.height=u},roundRect:function(i,r,s,u,f){f.x=i,f.y=r,f.width=s,f.height=u,f.r=Math.min(s,u)/4},square:function(i,r,s,u,f){var d=Math.min(s,u);f.x=i,f.y=r,f.width=d,f.height=d},circle:function(i,r,s,u,f){f.cx=i+s/2,f.cy=r+u/2,f.r=Math.min(s,u)/2},diamond:function(i,r,s,u,f){f.cx=i+s/2,f.cy=r+u/2,f.width=s,f.height=u},pin:function(i,r,s,u,f){f.x=i+s/2,f.y=r+u/2,f.width=s,f.height=u},arrow:function(i,r,s,u,f){f.x=i+s/2,f.y=r+u/2,f.width=s,f.height=u},triangle:function(i,r,s,u,f){f.cx=i+s/2,f.cy=r+u/2,f.width=s,f.height=u}},EC={};q({line:Ti,rect:sn,roundRect:sn,square:sn,circle:sl,diamond:s8,pin:Yx,arrow:l8,triangle:XR},function(o,i){EC[i]=new o});var u8=Vt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(i,r,s){var u=n0(i,r,s),f=this.shape;return f&&"pin"===f.symbolType&&"inside"===r.position&&(u.y=s.y+.4*s.height),u},buildPath:function(i,r,s){var u=r.symbolType;if("none"!==u){var f=EC[u];f||(f=EC[u="rect"]),KR[u](r.x,r.y,r.width,r.height,f.shape),f.buildPath(i,f.shape,s)}}});function c8(o,i){if("image"!==this.type){var r=this.style;this.__isEmptyBrush?(r.stroke=o,r.fill=i||"#fff",r.lineWidth=2):"line"===this.shape.symbolType?r.stroke=o:r.fill=o,this.markRedraw()}}function Ir(o,i,r,s,u,f,d){var v,p=0===o.indexOf("empty");return p&&(o=o.substr(5,1).toLowerCase()+o.substr(6)),(v=0===o.indexOf("image://")?GR(o.slice(8),new Nt(i,r,s,u),d?"center":"cover"):0===o.indexOf("path://")?DC(o.slice(7),{},new Nt(i,r,s,u),d?"center":"cover"):new u8({shape:{symbolType:o,x:i,y:r,width:s,height:u}})).__isEmptyBrush=p,v.setColor=c8,f&&v.setColor(f),v}function g_(o){return we(o)||(o=[+o,+o]),[o[0]||0,o[1]||0]}function Ah(o,i){if(null!=o)return we(o)||(o=[o,o]),[Fe(o[0],i[0])||0,Fe(ot(o[1],o[0]),i[1])||0]}function qx(o,i,r){for(var s="radial"===i.type?function(o,i,r){var s=r.width,u=r.height,f=Math.min(s,u),d=null==i.x?.5:i.x,p=null==i.y?.5:i.y,v=null==i.r?.5:i.r;return i.global||(d=d*s+r.x,p=p*u+r.y,v*=f),o.createRadialGradient(d,p,0,d,p,v)}(o,i,r):function(o,i,r){var s=null==i.x?0:i.x,u=null==i.x2?1:i.x2,f=null==i.y?0:i.y,d=null==i.y2?0:i.y2;return i.global||(s=s*r.width+r.x,u=u*r.width+r.x,f=f*r.height+r.y,d=d*r.height+r.y),s=isNaN(s)?0:s,u=isNaN(u)?1:u,f=isNaN(f)?0:f,d=isNaN(d)?0:d,o.createLinearGradient(s,f,u,d)}(o,i,r),u=i.colorStops,f=0;f0?(i=i||1,"dashed"===o?[4*i,2*i]:"dotted"===o?[i]:yk(o)?[o]:we(o)?o:null):null}var h8=new Qs(!0);function PC(o){var i=o.stroke;return!(null==i||"none"===i||!(o.lineWidth>0))}function QR(o){return"string"==typeof o&&"none"!==o}function m_(o){var i=o.fill;return null!=i&&"none"!==i}function Zx(o,i){if(null!=i.fillOpacity&&1!==i.fillOpacity){var r=o.globalAlpha;o.globalAlpha=i.fillOpacity*i.opacity,o.fill(),o.globalAlpha=r}else o.fill()}function JR(o,i){if(null!=i.strokeOpacity&&1!==i.strokeOpacity){var r=o.globalAlpha;o.globalAlpha=i.strokeOpacity*i.opacity,o.stroke(),o.globalAlpha=r}else o.stroke()}function Kx(o,i,r){var s=zd(i.image,i.__image,r);if(g0(s)){var u=o.createPattern(s,i.repeat||"repeat");if("function"==typeof DOMMatrix&&u.setTransform){var f=new DOMMatrix;f.rotateSelf(0,0,(i.rotation||0)/Math.PI*180),f.scaleSelf(i.scaleX||1,i.scaleY||1),f.translateSelf(i.x||0,i.y||0),u.setTransform(f)}return u}}var t2=["shadowBlur","shadowOffsetX","shadowOffsetY"],OC=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function IC(o,i,r,s,u){var f=!1;if(!s&&i===(r=r||{}))return!1;if(s||i.opacity!==r.opacity){f||(za(o,u),f=!0);var d=Math.max(Math.min(i.opacity,1),0);o.globalAlpha=isNaN(d)?Xl.opacity:d}(s||i.blend!==r.blend)&&(f||(za(o,u),f=!0),o.globalCompositeOperation=i.blend||Xl.blend);for(var p=0;p0&&Xx(r.lineDash,r.lineWidth),B=r.lineDashOffset,U=!!o.setLineDash,j=i.getGlobalScale();if(g.setScale(j[0],j[1],i.segmentIgnoreThreshold),V){var X=r.strokeNoScale&&i.getLineScale?i.getLineScale():1;X&&1!==X&&(V=Te(V,function($){return $/X}),B/=X)}var K=!0;(v||4&i.__dirty||V&&!U&&u)&&(g.setDPR(o.dpr),p?g.setContext(null):(g.setContext(o),K=!1),g.reset(),V&&!U&&(g.setLineDash(V),g.setLineDashOffset(B)),i.buildPath(g,i.shape,s),g.toStatic(),i.pathUpdated()),K&&g.rebuildPath(o,p?d:1),V&&U&&(o.setLineDash(V),o.lineDashOffset=B),s||(r.strokeFirst?(u&&JR(o,r),f&&Zx(o,r)):(f&&Zx(o,r),u&&JR(o,r))),V&&U&&o.setLineDash([])}(o,i,y,m),m&&(r.batchFill=y.fill||"",r.batchStroke=y.stroke||"")):i instanceof Xp?(3!==r.lastDrawType&&(v=!0,r.lastDrawType=3),$x(o,i,g,v,r),function(o,i,r){var s=r.text;if(null!=s&&(s+=""),s){o.font=r.font||ri,o.textAlign=r.textAlign,o.textBaseline=r.textBaseline;var u=void 0;if(o.setLineDash){var f=r.lineDash&&r.lineWidth>0&&Xx(r.lineDash,r.lineWidth),d=r.lineDashOffset;if(f){var p=r.strokeNoScale&&i.getLineScale?i.getLineScale():1;p&&1!==p&&(f=Te(f,function(v){return v/p}),d/=p),o.setLineDash(f),o.lineDashOffset=d,u=!0}}r.strokeFirst?(PC(r)&&o.strokeText(s,r.x,r.y),m_(r)&&o.fillText(s,r.x,r.y)):(m_(r)&&o.fillText(s,r.x,r.y),PC(r)&&o.strokeText(s,r.x,r.y)),u&&o.setLineDash([])}}(o,i,y)):i instanceof si?(2!==r.lastDrawType&&(v=!0,r.lastDrawType=2),function(o,i,r,s,u){IC(o,RC(i,u.inHover),r&&RC(r,u.inHover),s,u)}(o,i,g,v,r),function(o,i,r){var s=i.__image=zd(r.image,i.__image,i,i.onload);if(s&&g0(s)){var u=r.x||0,f=r.y||0,d=i.getWidth(),p=i.getHeight(),v=s.width/s.height;if(null==d&&null!=p?d=p*v:null==p&&null!=d?p=d/v:null==d&&null==p&&(d=s.width,p=s.height),r.sWidth&&r.sHeight)o.drawImage(s,g=r.sx||0,m=r.sy||0,r.sWidth,r.sHeight,u,f,d,p);else if(r.sx&&r.sy){var g,m;o.drawImage(s,g=r.sx,m=r.sy,d-g,p-m,u,f,d,p)}else o.drawImage(s,u,f,d,p)}}(o,i,y)):i instanceof Tv&&(4!==r.lastDrawType&&(v=!0,r.lastDrawType=4),function(o,i,r){var s=i.getDisplayables(),u=i.getTemporalDisplayables();o.save();var d,p,f={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover};for(d=i.getCursor(),p=s.length;d=4&&(m={x:parseFloat(b[0]||0),y:parseFloat(b[1]||0),width:parseFloat(b[2]),height:parseFloat(b[3])})}if(m&&null!=p&&null!=v&&(y=Eh(m,{x:0,y:0,width:p,height:v}),!r.ignoreViewBox)){var w=u;(u=new ct).add(w),w.scaleX=w.scaleY=y.scale,w.x=y.x,w.y=y.y}return!r.ignoreRootClip&&null!=p&&null!=v&&u.setClipPath(new sn({shape:{x:0,y:0,width:p,height:v}})),{root:u,width:p,height:v,viewBoxRect:m,viewBoxTransform:y,named:f}},o.prototype._parseNode=function(i,r,s,u,f,d){var v,p=i.nodeName.toLowerCase(),g=u;if("defs"===p&&(f=!0),"text"===p&&(d=!0),"defs"===p||"switch"===p)v=r;else{if(!f){var m=fl[p];if(m&&Ae(fl,p)){v=m.call(this,i,r);var y=i.getAttribute("name");if(y){var b={name:y,namedFrom:null,svgNodeTagLower:p,el:v};s.push(b),"g"===p&&(g=b)}else u&&s.push({name:u.name,namedFrom:u,svgNodeTagLower:p,el:v});r.add(v)}}var w=NC[p];if(w&&Ae(NC,p)){var S=w.call(this,i),M=i.getAttribute("id");M&&(this._defs[M]=S)}}if(v&&v.isGroup)for(var x=i.firstChild;x;)1===x.nodeType?this._parseNode(x,v,s,g,f,d):3===x.nodeType&&d&&this._parseText(x,v),x=x.nextSibling},o.prototype._parseText=function(i,r){var s=new Xp({style:{text:i.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Uo(r,s),_s(i,s,this._defsUsePending,!1,!1),function(o,i){var r=i.__selfStyle;if(r){var s=r.textBaseline,u=s;s&&"auto"!==s&&"baseline"!==s?"before-edge"===s||"text-before-edge"===s?u="top":"after-edge"===s||"text-after-edge"===s?u="bottom":("central"===s||"mathematical"===s)&&(u="middle"):u="alphabetic",o.style.textBaseline=u}var f=i.__inheritedStyle;if(f){var d=f.textAlign,p=d;d&&("middle"===d&&(p="center"),o.style.textAlign=p)}}(s,r);var u=s.style,f=u.fontSize;f&&f<9&&(u.fontSize=9,s.scaleX*=f/9,s.scaleY*=f/9);var d=(u.fontSize||u.fontFamily)&&[u.fontStyle,u.fontWeight,(u.fontSize||12)+"px",u.fontFamily||"sans-serif"].join(" ");u.font=d;var p=s.getBoundingRect();return this._textX+=p.width,r.add(s),s},o.internalField=void(fl={g:function(r,s){var u=new ct;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u},rect:function(r,s){var u=new sn;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setShape({x:parseFloat(r.getAttribute("x")||"0"),y:parseFloat(r.getAttribute("y")||"0"),width:parseFloat(r.getAttribute("width")||"0"),height:parseFloat(r.getAttribute("height")||"0")}),u.silent=!0,u},circle:function(r,s){var u=new sl;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setShape({cx:parseFloat(r.getAttribute("cx")||"0"),cy:parseFloat(r.getAttribute("cy")||"0"),r:parseFloat(r.getAttribute("r")||"0")}),u.silent=!0,u},line:function(r,s){var u=new Ti;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setShape({x1:parseFloat(r.getAttribute("x1")||"0"),y1:parseFloat(r.getAttribute("y1")||"0"),x2:parseFloat(r.getAttribute("x2")||"0"),y2:parseFloat(r.getAttribute("y2")||"0")}),u.silent=!0,u},ellipse:function(r,s){var u=new yC;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setShape({cx:parseFloat(r.getAttribute("cx")||"0"),cy:parseFloat(r.getAttribute("cy")||"0"),rx:parseFloat(r.getAttribute("rx")||"0"),ry:parseFloat(r.getAttribute("ry")||"0")}),u.silent=!0,u},polygon:function(r,s){var f,u=r.getAttribute("points");u&&(f=c2(u));var d=new ba({shape:{points:f||[]},silent:!0});return Uo(s,d),_s(r,d,this._defsUsePending,!1,!1),d},polyline:function(r,s){var f,u=r.getAttribute("points");u&&(f=c2(u));var d=new Cr({shape:{points:f||[]},silent:!0});return Uo(s,d),_s(r,d,this._defsUsePending,!1,!1),d},image:function(r,s){var u=new si;return Uo(s,u),_s(r,u,this._defsUsePending,!1,!1),u.setStyle({image:r.getAttribute("xlink:href"),x:+r.getAttribute("x"),y:+r.getAttribute("y"),width:+r.getAttribute("width"),height:+r.getAttribute("height")}),u.silent=!0,u},text:function(r,s){var u=r.getAttribute("x")||"0",f=r.getAttribute("y")||"0",d=r.getAttribute("dx")||"0",p=r.getAttribute("dy")||"0";this._textX=parseFloat(u)+parseFloat(d),this._textY=parseFloat(f)+parseFloat(p);var v=new ct;return Uo(s,v),_s(r,v,this._defsUsePending,!1,!0),v},tspan:function(r,s){var u=r.getAttribute("x"),f=r.getAttribute("y");null!=u&&(this._textX=parseFloat(u)),null!=f&&(this._textY=parseFloat(f));var d=r.getAttribute("dx")||"0",p=r.getAttribute("dy")||"0",v=new ct;return Uo(s,v),_s(r,v,this._defsUsePending,!1,!0),this._textX+=parseFloat(d),this._textY+=parseFloat(p),v},path:function(r,s){var f=IR(r.getAttribute("d")||"");return Uo(s,f),_s(r,f,this._defsUsePending,!1,!1),f.silent=!0,f}}),o}(),NC={lineargradient:function(i){var r=parseInt(i.getAttribute("x1")||"0",10),s=parseInt(i.getAttribute("y1")||"0",10),u=parseInt(i.getAttribute("x2")||"10",10),f=parseInt(i.getAttribute("y2")||"0",10),d=new xv(r,s,u,f);return nc(i,d),u2(i,d),d},radialgradient:function(i){var r=parseInt(i.getAttribute("cx")||"0",10),s=parseInt(i.getAttribute("cy")||"0",10),u=parseInt(i.getAttribute("r")||"0",10),f=new MC(r,s,u);return nc(i,f),u2(i,f),f}};function nc(o,i){"userSpaceOnUse"===o.getAttribute("gradientUnits")&&(i.global=!0)}function u2(o,i){for(var r=o.firstChild;r;){if(1===r.nodeType&&"stop"===r.nodeName.toLocaleLowerCase()){var u,s=r.getAttribute("offset");u=s&&s.indexOf("%")>0?parseInt(s,10)/100:s?parseFloat(s):0;var f={};v2(r,f,f);var d=f.stopColor||r.getAttribute("stop-color")||"#000000";i.colorStops.push({offset:u,color:d})}r=r.nextSibling}}function Uo(o,i){o&&o.__inheritedStyle&&(i.__inheritedStyle||(i.__inheritedStyle={}),tt(i.__inheritedStyle,o.__inheritedStyle))}function c2(o){for(var i=y_(o),r=[],s=0;s0;f-=2){var p=s[f-1],v=y_(s[f]);switch(u=u||[1,0,0,1,0,0],p){case"translate":Oo(u,u,[parseFloat(v[0]),parseFloat(v[1]||"0")]);break;case"scale":$b(u,u,[parseFloat(v[0]),parseFloat(v[1]||v[0])]);break;case"rotate":Od(u,u,-parseFloat(v[0])*iT);break;case"skewX":Jo(u,[1,0,Math.tan(parseFloat(v[0])*iT),1,0,0],u);break;case"skewY":Jo(u,[1,Math.tan(parseFloat(v[0])*iT),0,1,0,0],u);break;case"matrix":u[0]=parseFloat(v[0]),u[1]=parseFloat(v[1]),u[2]=parseFloat(v[2]),u[3]=parseFloat(v[3]),u[4]=parseFloat(v[4]),u[5]=parseFloat(v[5])}}i.setLocalTransform(u)}}(o,i),v2(o,d,p),s||function(o,i,r){for(var s=0;s>1^-(1&p),v=v>>1^-(1&v),u=p+=u,f=v+=f,s.push([p/r,v/r])}return s}function b2(o,i){return Te(Yn((o=function(o){if(!o.UTF8Encoding)return o;var i=o,r=i.UTF8Scale;null==r&&(r=1024);for(var s=i.features,u=0;u0}),function(r){var d,s=r.properties,u=r.geometry,f=[];"Polygon"===u.type&&f.push({type:"polygon",exterior:(d=u.coordinates)[0],interiors:d.slice(1)}),"MultiPolygon"===u.type&&q(d=u.coordinates,function(g){g[0]&&f.push({type:"polygon",exterior:g[0],interiors:g.slice(1)})});var p=new Bt(s[i||"name"],f,s.cp);return p.properties=s,p})}for(var aT=[126,25],Oh=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Ih=0;Ih0&&r.unfinished);r.unfinished||this._zr.flush()}}},i.prototype.getDom=function(){return this._dom},i.prototype.getId=function(){return this.id},i.prototype.getZr=function(){return this._zr},i.prototype.setOption=function(r,s,u){if(!this._disposed){var f,d,p;if(at(s)&&(u=s.lazyUpdate,f=s.silent,d=s.replaceMerge,p=s.transition,s=s.notMerge),this[ic]=!0,!this._model||s){var v=new t4(this._api),g=this._theme,m=this._model=new kn;m.scheduler=this._scheduler,m.init(null,null,null,g,this._locale,v)}this._model.setOption(r,{replaceMerge:d},E2);var y={seriesTransition:p,optionChanged:!0};u?(this[bs]={silent:f,updateParams:y},this[ic]=!1,this.getZr().wakeUp()):(ws(this),cu.update.call(this,null,y),this._zr.flush(),this[bs]=null,this[ic]=!1,Vf.call(this,f),WC.call(this,f))}},i.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},i.prototype.getModel=function(){return this._model},i.prototype.getOption=function(){return this._model&&this._model.getOption()},i.prototype.getWidth=function(){return this._zr.getWidth()},i.prototype.getHeight=function(){return this._zr.getHeight()},i.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||L8&&window.devicePixelRatio||1},i.prototype.getRenderedCanvas=function(r){if(Ze.canvasSupported)return this._zr.painter.getRenderedCanvas({backgroundColor:(r=r||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},i.prototype.getSvgDataURL=function(){if(Ze.svgSupported){var r=this._zr;return q(r.storage.getDisplayList(),function(u){u.stopAnimation(null,!0)}),r.painter.toDataURL()}},i.prototype.getDataURL=function(r){if(!this._disposed){var u=this._model,f=[],d=this;q((r=r||{}).excludeComponents,function(v){u.eachComponent({mainType:v},function(g){var m=d._componentsMap[g.__viewId];m.group.ignore||(f.push(m),m.group.ignore=!0)})});var p="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return q(f,function(v){v.group.ignore=!1}),p}},i.prototype.getConnectedDataURL=function(r){if(!this._disposed&&Ze.canvasSupported){var s="svg"===r.type,u=this.group,f=Math.min,d=Math.max,p=1/0;if(Iv[u]){var v=p,g=p,m=-p,y=-p,b=[],w=r&&r.pixelRatio||this.getDevicePixelRatio();q(Nh,function(O,R){if(O.group===u){var V=s?O.getZr().painter.getSvgDom().innerHTML:O.getRenderedCanvas(rt(r)),B=O.getDom().getBoundingClientRect();v=f(B.left,v),g=f(B.top,g),m=d(B.right,m),y=d(B.bottom,y),b.push({dom:V,left:B.left,top:B.top})}});var S=(m*=w)-(v*=w),M=(y*=w)-(g*=w),x=md(),T=Hp(x,{renderer:s?"svg":"canvas"});if(T.resize({width:S,height:M}),s){var P="";return q(b,function(O){P+=''+O.dom+""}),T.painter.getSvgRoot().innerHTML=P,r.connectedBackgroundColor&&T.painter.setBackgroundColor(r.connectedBackgroundColor),T.refreshImmediately(),T.painter.toDataURL()}return r.connectedBackgroundColor&&T.add(new sn({shape:{x:0,y:0,width:S,height:M},style:{fill:r.connectedBackgroundColor}})),q(b,function(O){var R=new si({style:{x:O.left*w-v,y:O.top*w-g,image:O.dom}});T.add(R)}),T.refreshImmediately(),x.toDataURL("image/"+(r&&r.type||"png"))}return this.getDataURL(r)}},i.prototype.convertToPixel=function(r,s){return Fh(this,"convertToPixel",r,s)},i.prototype.convertFromPixel=function(r,s){return Fh(this,"convertFromPixel",r,s)},i.prototype.containPixel=function(r,s){var f;if(!this._disposed)return q(is(this._model,r),function(p,v){v.indexOf("Models")>=0&&q(p,function(g){var m=g.coordinateSystem;if(m&&m.containPoint)f=f||!!m.containPoint(s);else if("seriesModels"===v){var y=this._chartsMap[g.__viewId];y&&y.containPoint&&(f=f||y.containPoint(s,g))}},this)},this),!!f},i.prototype.getVisual=function(r,s){var f=is(this._model,r,{defaultMainType:"series"}),p=f.seriesModel.getData(),v=f.hasOwnProperty("dataIndexInside")?f.dataIndexInside:f.hasOwnProperty("dataIndex")?p.indexOfRawIndex(f.dataIndex):null;return null!=v?xx(p,v,s):kh(p,s)},i.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},i.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},i.prototype._initEvents=function(){var r=this;q(D_,function(s){var u=function(d){var g,p=r.getModel(),v=d.target;if("globalout"===s?g={}:v&&xh(v,function(M){var x=ht(M);if(x&&null!=x.dataIndex){var T=x.dataModel||p.getSeriesByIndex(x.seriesIndex);return g=T&&T.getDataParams(x.dataIndex,x.dataType)||{},!0}if(x.eventData)return g=ke({},x.eventData),!0},!0),g){var y=g.componentType,b=g.componentIndex;("markLine"===y||"markPoint"===y||"markArea"===y)&&(y="series",b=g.seriesIndex);var w=y&&null!=b&&p.getComponent(y,b),S=w&&r["series"===w.mainType?"_chartsMap":"_componentsMap"][w.__viewId];g.event=d,g.type=s,r._$eventProcessor.eventInfo={targetEl:v,packedEvent:g,model:w,view:S},r.trigger(s,g)}};u.zrEventfulCallAtLast=!0,r._zr.on(s,u,r)}),q(A_,function(s,u){r._messageCenter.on(u,function(f){this.trigger(u,f)},r)}),q(["selectchanged"],function(s){r._messageCenter.on(s,function(u){this.trigger(s,u)},r)}),function(o,i,r){o.on("selectchanged",function(s){var u=r.getModel();s.isFromClick?(Mh("map","selectchanged",i,u,s),Mh("pie","selectchanged",i,u,s)):"select"===s.fromAction?(Mh("map","selected",i,u,s),Mh("pie","selected",i,u,s)):"unselect"===s.fromAction&&(Mh("map","unselected",i,u,s),Mh("pie","unselected",i,u,s))})}(this._messageCenter,this,this._api)},i.prototype.isDisposed=function(){return this._disposed},i.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},i.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,QH(this.getDom(),P2,"");var r=this,s=r._api,u=r._model;q(r._componentsViews,function(f){f.dispose(u,s)}),q(r._chartsViews,function(f){f.dispose(u,s)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Nh[r.id]}},i.prototype.resize=function(r){if(!this._disposed){this._zr.resize(r);var s=this._model;if(this._loadingFX&&this._loadingFX.resize(),s){var u=s.resetOption("media"),f=r&&r.silent;this[bs]&&(null==f&&(f=this[bs].silent),u=!0,this[bs]=null),this[ic]=!0,u&&ws(this),cu.update.call(this,{type:"resize",animation:ke({duration:0},r&&r.animation)}),this[ic]=!1,Vf.call(this,f),WC.call(this,f)}}},i.prototype.showLoading=function(r,s){if(!this._disposed&&(at(r)&&(s=r,r=""),r=r||"default",this.hideLoading(),pT[r])){var u=pT[r](this._api,s),f=this._zr;this._loadingFX=u,f.add(u)}},i.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},i.prototype.makeActionFromEvent=function(r){var s=ke({},r);return s.type=A_[r.type],s},i.prototype.dispatchAction=function(r,s){if(!this._disposed&&(at(s)||(s={silent:!!s}),KC[r.type]&&this._model)){if(this[ic])return void this._pendingActions.push(r);var u=s.silent;jC.call(this,r,u);var f=s.flush;f?this._zr.flush():!1!==f&&Ze.browser.weChat&&this._throttledZrFlush(),Vf.call(this,u),WC.call(this,u)}},i.prototype.updateLabelLayout=function(){dl.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},i.prototype.appendData=function(r){if(!this._disposed){var s=r.seriesIndex;this.getModel().getSeriesByIndex(s).appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},i.internalField=function(){function r(g){for(var m=[],y=g.currentStates,b=0;b0?{duration:w,delay:y.get("delay"),easing:y.get("easing")}:null;m.group.traverse(function(M){if(M.states&&M.states.emphasis){if(ev(M))return;if(M instanceof Vt&&function(o){var i=mM(o);i.normalFill=o.style.fill,i.normalStroke=o.style.stroke;var r=o.states.select||{};i.selectFill=r.style&&r.style.fill||null,i.selectStroke=r.style&&r.style.stroke||null}(M),M.__dirty){var x=M.prevStates;x&&M.useStates(x)}if(b){M.stateTransition=S;var T=M.getTextContent(),P=M.getTextGuideLine();T&&(T.stateTransition=S),P&&(P.stateTransition=S)}M.__dirty&&r(M)}})}ws=function(m){var y=m._scheduler;y.restorePipelines(m._model),y.prepareStageTasks(),fT(m,!0),fT(m,!1),y.plan()},fT=function(m,y){for(var b=m._model,w=m._scheduler,S=y?m._componentsViews:m._chartsViews,M=y?m._componentsMap:m._chartsMap,x=m._zr,T=m._api,P=0;Pm.get("hoverLayerThreshold")&&!Ze.node&&!Ze.worker&&m.eachSeries(function(S){if(!S.preventUsingHoverLayer){var M=g._chartsMap[S.__viewId];M.__alive&&M.group.traverse(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}(m,y),dl.trigger("series:afterupdate",y,b,S)},hl=function(m){m[uT]=!0,m.getZr().wakeUp()},H8=function(m){!m[uT]||(m.getZr().storage.traverse(function(y){ev(y)||r(y)}),m[uT]=!1)},XC=function(m){return new(function(y){function b(){return null!==y&&y.apply(this,arguments)||this}return he(b,y),b.prototype.getCoordinateSystems=function(){return m._coordSysMgr.getCoordinateSystems()},b.prototype.getComponentByElement=function(w){for(;w;){var S=w.__ecComponentInfo;if(null!=S)return m._model.getComponent(S.mainType,S.index);w=w.parent}},b.prototype.enterEmphasis=function(w,S){Js(w,S),hl(m)},b.prototype.leaveEmphasis=function(w,S){eu(w,S),hl(m)},b.prototype.enterBlur=function(w){Lm(w),hl(m)},b.prototype.leaveBlur=function(w){iI(w),hl(m)},b.prototype.enterSelect=function(w){CM(w),hl(m)},b.prototype.leaveSelect=function(w){wM(w),hl(m)},b.prototype.getModel=function(){return m.getModel()},b.prototype.getViewOfComponentModel=function(w){return m.getViewOfComponentModel(w)},b.prototype.getViewOfSeriesModel=function(w){return m.getViewOfSeriesModel(w)},b}(hh))(m)},ZC=function(m){function y(b,w){for(var S=0;S=0)){z2.push(r);var f=dt.wrapStageHandler(r,u);f.__prio=i,f.__raw=r,o.push(f)}}function mT(o,i){pT[o]=i}function EZ(o){mk("createCanvas",o)}function _T(o,i,r){!function(i,r,s){if(r.svg){var u=new T8(i,r.svg);Rh.set(i,u)}else{var f=r.geoJson||r.geoJSON;f&&!r.features?s=r.specialAreas:f=r,u=new R8(i,f,s),Rh.set(i,u)}}(o,i,r)}function Y8(o){return function(i){var r=Rh.get(i);return r&&"geoJSON"===r.type&&r.getMapForUser()}(o)}var U2=function(o){var i=(o=rt(o)).type;i||Mn("");var s=i.split(":");2!==s.length&&Mn("");var u=!1;"echarts"===s[0]&&(i=s[1],u=!0),o.__isBuiltIn=u,eR.set(i,o)};Bf(2e3,mR),Bf(4500,_R),Bf(4500,yZ),Bf(2e3,V4),Bf(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(i,r){if(i.hasSymbolVisual&&!r.isSeriesFiltered(i))return{dataEach:i.getData().hasItemOption?function(f,d){var p=f.getItemModel(d),v=p.getShallow("symbol",!0),g=p.getShallow("symbolSize",!0),m=p.getShallow("symbolRotate",!0),y=p.getShallow("symbolOffset",!0),b=p.getShallow("symbolKeepAspect",!0);null!=v&&f.setItemVisual(d,"symbol",v),null!=g&&f.setItemVisual(d,"symbolSize",g),null!=m&&f.setItemVisual(d,"symbolRotate",m),null!=y&&f.setItemVisual(d,"symbolOffset",y),null!=b&&f.setItemVisual(d,"symbolKeepAspect",b)}:null}}}),Bf(7e3,function(o,i){o.eachRawSeries(function(r){if(!o.isSeriesFiltered(r)){var s=r.getData();s.hasItemVisual()&&s.each(function(d){var p=s.getItemVisual(d,"decal");p&&(s.ensureUniqueItemVisual(d,"style").decal=lu(p,i))});var u=s.getVisual("decal");u&&(s.getVisual("style").decal=lu(u,i))}})}),L2(vs),F2(900,function(o){var i=et();o.eachSeries(function(r){var s=r.get("stack");if(s){var u=i.get(s)||i.set(s,[]),f=r.getData(),d={stackResultDimension:f.getCalculationInfo("stackResultDimension"),stackedOverDimension:f.getCalculationInfo("stackedOverDimension"),stackedDimension:f.getCalculationInfo("stackedDimension"),stackedByDimension:f.getCalculationInfo("stackedByDimension"),isStackedByIndex:f.getCalculationInfo("isStackedByIndex"),data:f,seriesModel:r};if(!d.stackedDimension||!d.isStackedByIndex&&!d.stackedByDimension)return;u.length&&f.setCalculationInfo("stackedOnSeries",u[u.length-1].seriesModel),u.push(d)}}),i.each(dZ)}),mT("default",function(o,i){tt(i=i||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ct,s=new sn({style:{fill:i.maskColor},zlevel:i.zlevel,z:1e4});r.add(s);var d,u=new fn({style:{text:i.text,fill:i.textColor,fontSize:i.fontSize,fontWeight:i.fontWeight,fontStyle:i.fontStyle,fontFamily:i.fontFamily},zlevel:i.zlevel,z:10001}),f=new sn({style:{fill:"none"},textContent:u,textConfig:{position:"right",distance:10},zlevel:i.zlevel,z:10001});return r.add(f),i.showSpinner&&((d=new i_({shape:{startAngle:-vC/2,endAngle:-vC/2+.1,r:i.spinnerRadius},style:{stroke:i.color,lineCap:"round",lineWidth:i.lineWidth},zlevel:i.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*vC/2}).start("circularInOut"),d.animateShape(!0).when(1e3,{startAngle:3*vC/2}).delay(300).start("circularInOut"),r.add(d)),r.resize=function(){var p=u.getBoundingRect().width,v=i.showSpinner?i.spinnerRadius:0,g=(o.getWidth()-2*v-(i.showSpinner&&p?10:0)-p)/2-(i.showSpinner&&p?0:5+p/2)+(i.showSpinner?0:p/2)+(p?0:v),m=o.getHeight()/2;i.showSpinner&&d.setShape({cx:g,cy:m}),f.setShape({x:g-v,y:m-v,width:2*v,height:2*v}),s.setShape({x:0,y:0,width:o.getWidth(),height:o.getHeight()})},r.resize(),r}),pl({type:_f,event:_f,update:_f},Mo),pl({type:Pm,event:Pm,update:Pm},Mo),pl({type:Jd,event:Jd,update:Jd},Mo),pl({type:Kp,event:Kp,update:Kp},Mo),pl({type:$p,event:$p,update:$p},Mo),$C("light",F4),$C("dark",xR);var q8={},G2=[],X8={registerPreprocessor:L2,registerProcessor:F2,registerPostInit:N2,registerPostUpdate:V2,registerUpdateLifecycle:vT,registerAction:pl,registerCoordinateSystem:B2,registerLayout:H2,registerVisual:Bf,registerTransform:U2,registerLoading:mT,registerMap:_T,PRIORITY:lT,ComponentModel:qt,ComponentView:un,SeriesModel:vt,ChartView:Vn,registerComponentModel:function(i){qt.registerClass(i)},registerComponentView:function(i){un.registerClass(i)},registerSeriesModel:function(i){vt.registerClass(i)},registerChartView:function(i){Vn.registerClass(i)},registerSubTypeDefaulter:function(i,r){qt.registerSubTypeDefaulter(i,r)},registerPainter:function(i,r){xO(i,r)}};function Ot(o){we(o)?q(o,function(i){Ot(i)}):Rt(G2,o)>=0||(G2.push(o),An(o)&&(o={install:o}),o.install(X8))}function E_(o){return null==o?0:o.length||1}function j2(o){return o}var Hf=function(){function o(i,r,s,u,f,d){this._old=i,this._new=r,this._oldKeyGetter=s||j2,this._newKeyGetter=u||j2,this.context=f,this._diffModeMultiple="multiple"===d}return o.prototype.add=function(i){return this._add=i,this},o.prototype.update=function(i){return this._update=i,this},o.prototype.updateManyToOne=function(i){return this._updateManyToOne=i,this},o.prototype.updateOneToMany=function(i){return this._updateOneToMany=i,this},o.prototype.updateManyToMany=function(i){return this._updateManyToMany=i,this},o.prototype.remove=function(i){return this._remove=i,this},o.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},o.prototype._executeOneToOne=function(){var i=this._old,r=this._new,s={},u=new Array(i.length),f=new Array(r.length);this._initIndexMap(i,null,u,"_oldKeyGetter"),this._initIndexMap(r,s,f,"_newKeyGetter");for(var d=0;d1){var m=v.shift();1===v.length&&(s[p]=v[0]),this._update&&this._update(m,d)}else 1===g?(s[p]=null,this._update&&this._update(v,d)):this._remove&&this._remove(d)}this._performRestAdd(f,s)},o.prototype._executeMultiple=function(){var r=this._new,s={},u={},f=[],d=[];this._initIndexMap(this._old,s,f,"_oldKeyGetter"),this._initIndexMap(r,u,d,"_newKeyGetter");for(var p=0;p1&&1===b)this._updateManyToOne&&this._updateManyToOne(m,g),u[v]=null;else if(1===y&&b>1)this._updateOneToMany&&this._updateOneToMany(m,g),u[v]=null;else if(1===y&&1===b)this._update&&this._update(m,g),u[v]=null;else if(y>1&&b>1)this._updateManyToMany&&this._updateManyToMany(m,g),u[v]=null;else if(y>1)for(var w=0;w1)for(var p=0;p30}var Z2,tw,Rv,P_,K2,nw,ST,Ua=at,fu=Te,Q8="undefined"==typeof Int32Array?Array:Int32Array,X2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],J8=["_approximateExtent"],Ga=function(){function o(i,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var s,u=!1;Y2(i)?(s=i.dimensions,this._dimOmitted=i.isDimensionOmitted(),this._schema=i):(u=!0,s=i),s=s||["x","y"];for(var f={},d=[],p={},v=!1,g={},m=0;m=r)){var u=this._store.getProvider();this._updateOrdinalMeta();var f=this._nameList,d=this._idList;if(u.getSource().sourceFormat===Ho&&!u.pure)for(var g=[],m=i;m0},o.prototype.ensureUniqueItemVisual=function(i,r){var s=this._itemVisuals,u=s[i];u||(u=s[i]={});var f=u[r];return null==f&&(we(f=this.getVisual(r))?f=f.slice():Ua(f)&&(f=ke({},f)),u[r]=f),f},o.prototype.setItemVisual=function(i,r,s){var u=this._itemVisuals[i]||{};this._itemVisuals[i]=u,Ua(r)?ke(u,r):u[r]=s},o.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},o.prototype.setLayout=function(i,r){if(Ua(i))for(var s in i)i.hasOwnProperty(s)&&this.setLayout(s,i[s]);else this._layout[i]=r},o.prototype.getLayout=function(i){return this._layout[i]},o.prototype.getItemLayout=function(i){return this._itemLayouts[i]},o.prototype.setItemLayout=function(i,r,s){this._itemLayouts[i]=s?ke(this._itemLayouts[i]||{},r):r},o.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},o.prototype.setItemGraphicEl=function(i,r){cs(this.hostModel&&this.hostModel.seriesIndex,this.dataType,i,r),this._graphicEls[i]=r},o.prototype.getItemGraphicEl=function(i){return this._graphicEls[i]},o.prototype.eachItemGraphicEl=function(i,r){q(this._graphicEls,function(s,u){s&&i&&i.call(r,s,u)})},o.prototype.cloneShallow=function(i){return i||(i=new o(this._schema?this._schema:fu(this.dimensions,this._getDimInfo,this),this.hostModel)),K2(i,this),i._store=this._store,i},o.prototype.wrapMethod=function(i,r){var s=this[i];"function"==typeof s&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(i),this[i]=function(){var u=s.apply(this,arguments);return r.apply(this,[u].concat(Fb(arguments)))})},o.internalField=(Z2=function(r){var s=r._invertedIndicesMap;q(s,function(u,f){var d=r._dimInfos[f],p=d.ordinalMeta,v=r._store;if(p){u=s[f]=new Q8(p.categories.length);for(var g=0;g1&&(g+="__ec__"+y),f[s]=g}})),o}();function $2(o,i){return Fv(o,i).dimensions}function Fv(o,i){sC(o)||(o=uC(o));var r=(i=i||{}).coordDimensions||[],s=i.dimensionsDefine||o.dimensionsDefine||[],u=et(),f=[],d=function(o,i,r,s){var u=Math.max(o.dimensionsDetectedCount||1,i.length,r.length,s||0);return q(i,function(f){var d;at(f)&&(d=f.dimsDef)&&(u=Math.max(u,d.length))}),u}(o,r,s,i.dimensionsCount),p=i.canOmitUnusedDimensions&&CT(d),v=s===o.dimensionsDefine,g=v?Qi(o):Vh(s),m=i.encodeDefine;!m&&i.encodeDefaulter&&(m=i.encodeDefaulter(o,d));for(var y=et(m),b=new tR(d),w=0;w0&&(s.name=u+(f-1)),f++,i.set(u,f)}}(f),new ew({source:o,dimensions:f,fullDimensionCount:d,dimensionOmitted:p})}function eU(o,i,r){var s=i.data;if(r||s.hasOwnProperty(o)){for(var u=0;s.hasOwnProperty(o+u);)u++;o+=u}return i.set(o,!0),o}var kT=function(i){this.coordSysDims=[],this.axisMap=et(),this.categoryAxisMap=et(),this.coordSysName=i},vl={cartesian2d:function(i,r,s,u){var f=i.getReferringComponents("xAxis",ai).models[0],d=i.getReferringComponents("yAxis",ai).models[0];r.coordSysDims=["x","y"],s.set("x",f),s.set("y",d),zf(f)&&(u.set("x",f),r.firstCategoryDimIndex=0),zf(d)&&(u.set("y",d),null==r.firstCategoryDimIndex&&(r.firstCategoryDimIndex=1))},singleAxis:function(i,r,s,u){var f=i.getReferringComponents("singleAxis",ai).models[0];r.coordSysDims=["single"],s.set("single",f),zf(f)&&(u.set("single",f),r.firstCategoryDimIndex=0)},polar:function(i,r,s,u){var f=i.getReferringComponents("polar",ai).models[0],d=f.findAxisModel("radiusAxis"),p=f.findAxisModel("angleAxis");r.coordSysDims=["radius","angle"],s.set("radius",d),s.set("angle",p),zf(d)&&(u.set("radius",d),r.firstCategoryDimIndex=0),zf(p)&&(u.set("angle",p),null==r.firstCategoryDimIndex&&(r.firstCategoryDimIndex=1))},geo:function(i,r,s,u){r.coordSysDims=["lng","lat"]},parallel:function(i,r,s,u){var f=i.ecModel,d=f.getComponent("parallel",i.get("parallelIndex")),p=r.coordSysDims=d.dimensions.slice();q(d.parallelAxisIndex,function(v,g){var m=f.getComponent("parallelAxis",v),y=p[g];s.set(y,m),zf(m)&&(u.set(y,m),null==r.firstCategoryDimIndex&&(r.firstCategoryDimIndex=g))})}};function zf(o){return"category"===o.get("type")}function J2(o,i,r){var f,d,p,s=(r=r||{}).byIndex,u=r.stackedCoordDimension;!function(o){return!Y2(o.schema)}(i)?(f=(d=i.schema).dimensions,p=i.store):f=i;var g,m,y,b,v=!(!o||!o.get("stack"));if(q(f,function(P,O){yt(P)&&(f[O]=P={name:P}),v&&!P.isExtraCoord&&(!s&&!g&&P.ordinalMeta&&(g=P),!m&&"ordinal"!==P.type&&"time"!==P.type&&(!u||u===P.coordDim)&&(m=P))}),m&&!s&&!g&&(s=!0),m){y="__\0ecstackresult_"+o.id,b="__\0ecstackedover_"+o.id,g&&(g.createInvertedIndices=!0);var w=m.coordDim,S=m.type,M=0;q(f,function(P){P.coordDim===w&&M++});var x={name:y,coordDim:w,coordDimIndex:M,type:S,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:f.length},T={name:b,coordDim:b,coordDimIndex:M+1,type:S,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:f.length+1};d?(p&&(x.storeDimIndex=p.ensureCalculationDimension(b,S),T.storeDimIndex=p.ensureCalculationDimension(y,S)),d.appendCalculationDimension(x),d.appendCalculationDimension(T)):(f.push(x),f.push(T))}return{stackedDimension:m&&m.name,stackedByDimension:g&&g.name,isStackedByIndex:s,stackedOverDimension:b,stackResultDimension:y}}function ac(o,i){return!!i&&i===o.getCalculationInfo("stackedDimension")}function MT(o,i){return ac(o,i)?o.getCalculationInfo("stackResultDimension"):i}var gl=function(o,i,r){r=r||{};var u,s=i.getSourceManager(),f=!1;o?(f=!0,u=uC(o)):f=(u=s.getSource()).sourceFormat===Ho;var d=function(o){var i=o.get("coordinateSystem"),r=new kT(i),s=vl[i];if(s)return s(o,r,r.axisMap,r.categoryAxisMap),r}(i),p=function(o,i){var u,r=o.get("coordinateSystem"),s=$m.get(r);return i&&i.coordSysDims&&(u=Te(i.coordSysDims,function(f){var d={name:f},p=i.axisMap.get(f);if(p){var v=p.get("type");d.type=QC(v)}return d})),u||(u=s&&(s.getDimensionsInfo?s.getDimensionsInfo():s.dimensions.slice())||["x","y"]),u}(i,d),v=r.useEncodeDefaulter,g=An(v)?v:v?St(au,p,i):null,y=Fv(u,{coordDimensions:p,generateCoord:r.generateCoord,encodeDefine:i.getEncode(),encodeDefaulter:g,canOmitUnusedDimensions:!f}),b=function(o,i,r){var s,u;return r&&q(o,function(f,d){var v=r.categoryAxisMap.get(f.coordDim);v&&(null==s&&(s=d),f.ordinalMeta=v.getOrdinalMeta(),i&&(f.createInvertedIndices=!0)),null!=f.otherDims.itemName&&(u=!0)}),!u&&null!=s&&(o[s].otherDims.itemName=0),s}(y.dimensions,r.createInvertedIndices,d),w=f?null:s.getSharedDataStore(y),S=J2(i,{schema:y,store:w}),M=new Ga(y,i);M.setCalculationInfo(S);var x=null!=b&&function(o){if(o.sourceFormat===Ho){var i=function(o){for(var i=0;ir[1]&&(r[1]=i[1])},o.prototype.unionExtentFromData=function(i,r){this.unionExtent(i.getApproximateExtent(r))},o.prototype.getExtent=function(){return this._extent.slice()},o.prototype.setExtent=function(i,r){var s=this._extent;isNaN(i)||(s[0]=i),isNaN(r)||(s[1]=r)},o.prototype.isInExtentRange=function(i){return this._extent[0]<=i&&this._extent[1]>=i},o.prototype.isBlank=function(){return this._isBlank},o.prototype.setBlank=function(i){this._isBlank=i},o}();qu(xT);var du=xT,tL=0;function aU(o){return at(o)&&null!=o.value?o.value:o+""}var Gf=function(){function o(i){this.categories=i.categories||[],this._needCollect=i.needCollect,this._deduplication=i.deduplication,this.uid=++tL}return o.createByAxisModel=function(i){var r=i.option,s=r.data,u=s&&Te(s,aU);return new o({categories:u,needCollect:!u,deduplication:!1!==r.dedplication})},o.prototype.getOrdinal=function(i){return this._getOrCreateMap().get(i)},o.prototype.parseAndCollect=function(i){var r,s=this._needCollect;if("string"!=typeof i&&!s)return i;if(s&&!this._deduplication)return this.categories[r=this.categories.length]=i,r;var u=this._getOrCreateMap();return null==(r=u.get(i))&&(s?(this.categories[r=this.categories.length]=i,u.set(i,r)):r=NaN),r},o.prototype._getOrCreateMap=function(){return this._map||(this._map=et(this.categories))},o}(),iw=hi;function nL(o){return ns(o)+2}function rL(o,i,r){o[i]=Math.max(Math.min(o[i],r[1]),r[0])}function jf(o,i){return o>=i[0]&&o<=i[1]}function aw(o,i){return i[1]===i[0]?.5:(o-i[0])/(i[1]-i[0])}function Nv(o,i){return o*(i[1]-i[0])+i[0]}var ye=function(o){function i(r){var s=o.call(this,r)||this;s.type="ordinal";var u=s.getSetting("ordinalMeta");return u||(u=new Gf({})),we(u)&&(u=new Gf({categories:Te(u,function(f){return at(f)?f.value:f})})),s._ordinalMeta=u,s._extent=s.getSetting("extent")||[0,u.categories.length-1],s}return he(i,o),i.prototype.parse=function(r){return"string"==typeof r?this._ordinalMeta.getOrdinal(r):Math.round(r)},i.prototype.contain=function(r){return jf(r=this.parse(r),this._extent)&&null!=this._ordinalMeta.categories[r]},i.prototype.normalize=function(r){return aw(r=this._getTickNumber(this.parse(r)),this._extent)},i.prototype.scale=function(r){return r=Math.round(Nv(r,this._extent)),this.getRawOrdinalNumber(r)},i.prototype.getTicks=function(){for(var r=[],s=this._extent,u=s[0];u<=s[1];)r.push({value:u}),u++;return r},i.prototype.getMinorTicks=function(r){},i.prototype.setSortInfo=function(r){if(null!=r){for(var s=r.ordinalNumbers,u=this._ordinalNumbersByTick=[],f=this._ticksByOrdinalNumber=[],d=0,p=this._ordinalMeta.categories.length,v=Math.min(p,s.length);d=0&&r=0&&r=r},i.prototype.getOrdinalMeta=function(){return this._ordinalMeta},i.prototype.niceTicks=function(){},i.prototype.niceExtent=function(){},i.type="ordinal",i}(du);du.registerClass(ye);var TT=ye,Wo=hi,iL=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return he(i,o),i.prototype.parse=function(r){return r},i.prototype.contain=function(r){return jf(r,this._extent)},i.prototype.normalize=function(r){return aw(r,this._extent)},i.prototype.scale=function(r){return Nv(r,this._extent)},i.prototype.setExtent=function(r,s){var u=this._extent;isNaN(r)||(u[0]=parseFloat(r)),isNaN(s)||(u[1]=parseFloat(s))},i.prototype.unionExtent=function(r){var s=this._extent;r[0]s[1]&&(s[1]=r[1]),this.setExtent(s[0],s[1])},i.prototype.getInterval=function(){return this._interval},i.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=nL(r)},i.prototype.getTicks=function(r){var s=this._interval,u=this._extent,f=this._niceExtent,d=this._intervalPrecision,p=[];if(!s)return p;u[0]1e4)return[];var m=p.length?p[p.length-1].value:f[1];return u[1]>m&&p.push(r?{value:Wo(m+s,d)}:{value:u[1]}),p},i.prototype.getMinorTicks=function(r){for(var s=this.getTicks(!0),u=[],f=this.getExtent(),d=1;df[0]&&ws&&(d=u.interval=s);var p=u.intervalPrecision=nL(d);return function(o,i){!isFinite(o[0])&&(o[0]=i[0]),!isFinite(o[1])&&(o[1]=i[1]),rL(o,0,i),rL(o,1,i),o[0]>o[1]&&(o[0]=o[1])}(u.niceTickExtent=[iw(Math.ceil(o[0]/d)*d,p),iw(Math.floor(o[1]/d)*d,p)],o),u}(f,r,s,u);this._intervalPrecision=p.intervalPrecision,this._interval=p.interval,this._niceExtent=p.niceTickExtent}},i.prototype.niceExtent=function(r){var s=this._extent;if(s[0]===s[1])if(0!==s[0]){var u=s[0];r.fixMax||(s[1]+=u/2),s[0]-=u/2}else s[1]=1;isFinite(s[1]-s[0])||(s[0]=0,s[1]=1),this.niceTicks(r.splitNumber,r.minInterval,r.maxInterval);var d=this._interval;r.fixMin||(s[0]=Wo(Math.floor(s[0]/d)*d)),r.fixMax||(s[1]=Wo(Math.ceil(s[1]/d)*d))},i.type="interval",i}(du);du.registerClass(iL);var Vv=iL,aL="__ec_stack_",DT="undefined"!=typeof Float32Array?Float32Array:Array;function ow(o){return o.get("stack")||aL+o.seriesIndex}function AT(o){return o.dim+o.index}function sL(o,i){var r=[];return i.eachSeriesByType(o,function(s){wt(s)&&!Zt(s)&&r.push(s)}),r}function ET(o){var i=function(o){var i={};q(o,function(v){var m=v.coordinateSystem.getBaseAxis();if("time"===m.type||"value"===m.type)for(var y=v.getData(),b=m.dim+"_"+m.index,w=y.getDimensionIndex(y.mapDimension(m.dim)),S=y.getStore(),M=0,x=S.count();M0&&(f=null===f?p:Math.min(f,p))}r[s]=f}}return r}(o),r=[];return q(o,function(s){var p,f=s.coordinateSystem.getBaseAxis(),d=f.getExtent();if("category"===f.type)p=f.getBandWidth();else if("value"===f.type||"time"===f.type){var g=i[f.dim+"_"+f.index],m=Math.abs(d[1]-d[0]),y=f.scale.getExtent(),b=Math.abs(y[1]-y[0]);p=g?m/b*g:m}else{var w=s.getData();p=Math.abs(d[1]-d[0])/w.count()}var S=Fe(s.get("barWidth"),p),M=Fe(s.get("barMaxWidth"),p),x=Fe(s.get("barMinWidth")||1,p),T=s.get("barGap"),P=s.get("barCategoryGap");r.push({bandWidth:p,barWidth:S,barMaxWidth:M,barMinWidth:x,barGap:T,barCategoryGap:P,axisKey:AT(f),stackId:ow(s)})}),lL(r)}function lL(o){var i={};q(o,function(s,u){var f=s.axisKey,d=s.bandWidth,p=i[f]||{bandWidth:d,remainedWidth:d,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},v=p.stacks;i[f]=p;var g=s.stackId;v[g]||p.autoWidthCount++,v[g]=v[g]||{width:0,maxWidth:0};var m=s.barWidth;m&&!v[g].width&&(v[g].width=m,m=Math.min(p.remainedWidth,m),p.remainedWidth-=m);var y=s.barMaxWidth;y&&(v[g].maxWidth=y);var b=s.barMinWidth;b&&(v[g].minWidth=b);var w=s.barGap;null!=w&&(p.gap=w);var S=s.barCategoryGap;null!=S&&(p.categoryGap=S)});var r={};return q(i,function(s,u){r[u]={};var f=s.stacks,d=s.bandWidth,p=s.categoryGap;if(null==p){var v=_n(f).length;p=Math.max(35-4*v,15)+"%"}var g=Fe(p,d),m=Fe(s.gap,1),y=s.remainedWidth,b=s.autoWidthCount,w=(y-g)/(b+(b-1)*m);w=Math.max(w,0),q(f,function(T){var P=T.maxWidth,O=T.minWidth;if(T.width){var R=T.width;P&&(R=Math.min(R,P)),O&&(R=Math.max(R,O)),T.width=R,y-=R+m*R,b--}else R=w,P&&PR&&(R=O),R!==w&&(T.width=R,y-=R+m*R,b--)}),w=(y-g)/(b+(b-1)*m),w=Math.max(w,0);var M,S=0;q(f,function(T,P){T.width||(T.width=w),M=T,S+=T.width*(1+m)}),M&&(S-=M.width*m);var x=-S/2;q(f,function(T,P){r[u][P]=r[u][P]||{bandWidth:d,offset:x,width:T.width},x+=T.width*(1+m)})}),r}function PT(o,i,r){if(o&&i){var s=o[AT(i)];return null!=s&&null!=r?s[ow(r)]:s}}function sw(o,i){var r=sL(o,i),s=ET(r),u={};q(r,function(f){var d=f.getData(),p=f.coordinateSystem,v=p.getBaseAxis(),g=ow(f),m=s[AT(v)][g],y=m.offset,b=m.width,w=p.getOtherAxis(v),S=f.get("barMinHeight")||0;u[g]=u[g]||[],d.setLayout({bandWidth:m.bandWidth,offset:y,size:b});for(var M=d.mapDimension(w.dim),x=d.mapDimension(v.dim),T=ac(d,M),P=w.isHorizontal(),O=Le(0,w),R=d.getStore(),V=d.getDimensionIndex(M),B=d.getDimensionIndex(x),U=0,j=R.count();U=0?"p":"n",te=O;T&&(u[g][K]||(u[g][K]={p:O,n:O}),te=u[g][K][$]);var ge,ee=void 0,le=void 0,oe=void 0,de=void 0;P?(ee=te,le=(ge=p.dataToPoint([X,K]))[1]+y,oe=ge[0]-O,de=b,Math.abs(oe).5||(y=.5),{progress:function(w,S){for(var O,M=w.count,x=new DT(2*M),T=new DT(2*M),P=new DT(M),R=[],V=[],B=0,U=0,j=S.getStore();null!=(O=w.next());)V[m]=j.get(p,O),V[1-m]=j.get(v,O),R=s.dataToPoint(V,null),T[B]=g?u.x+u.width:R[0],x[B++]=R[0],T[B]=g?R[1]:u.y+u.height,x[B++]=R[1],P[U++]=O;S.setLayout({largePoints:x,largeDataIndices:P,largeBackgroundPoints:T,barWidth:y,valueAxisStart:Le(0,d),backgroundStart:g?u.x:u.y,valueAxisHorizontal:g})}}}}};function wt(o){return o.coordinateSystem&&"cartesian2d"===o.coordinateSystem.type}function Zt(o){return o.pipelineContext&&o.pipelineContext.large}function Le(o,i,r){return i.toGlobalCoord(i.dataToCoord("log"===i.type?1:0))}var OT=function(o){function i(r){var s=o.call(this,r)||this;return s.type="time",s}return he(i,o),i.prototype.getLabel=function(r){var s=this.getSetting("useUTC");return iu(r.value,gI[function(o){switch(o){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(ru(this._minLevelUnit))]||gI.second,s,this.getSetting("locale"))},i.prototype.getFormattedLabel=function(r,s,u){var f=this.getSetting("useUTC");return function(o,i,r,s,u){var f=null;if("string"==typeof r)f=r;else if("function"==typeof r)f=r(o.value,i,{level:o.level});else{var d=ke({},zm);if(o.level>0)for(var p=0;p=0;--p)if(v[g]){f=v[g];break}f=f||d.none}if(we(f)){var y=null==o.level?0:o.level>=0?o.level:f.length+o.level;f=f[y=Math.min(y,f.length-1)]}}return iu(new Date(o.value),f,u,s)}(r,s,u,this.getSetting("locale"),f)},i.prototype.getTicks=function(r){var u=this._extent,f=[];if(!this._interval)return f;f.push({value:u[0],level:0});var d=this.getSetting("useUTC"),p=function(o,i,r,s){var f=mI,d=0;function p(K,$,te,ee,le,oe,de){for(var ge=new Date($),_e=$,xe=ge[ee]();_e1&&0===oe&&te.unshift({value:te[0].value-_e})}}for(oe=0;oe=s[0]&&P<=s[1]&&y++)}var O=(s[1]-s[0])/i;if(y>1.5*O&&b>O/1.5||(g.push(x),y>O||o===f[w]))break}m=[]}}var R=Yn(Te(g,function(K){return Yn(K,function($){return $.value>=s[0]&&$.value<=s[1]&&!$.notAdd})}),function(K){return K.length>0}),V=[],B=R.length-1;for(w=0;wu&&(this._approxInterval=u);var p=R_.length,v=Math.min(function(i,r,s,u){for(;s>>1;i[f][1]16?16:o>7.5?7:o>3.5?4:o>1.5?2:1}function ml(o){return(o/=2592e6)>6?6:o>3?3:o>2?2:1}function fU(o){return(o/=ds)>12?12:o>6?6:o>3.5?4:o>2?2:1}function Sa(o,i){return(o/=i?6e4:1e3)>30?30:o>20?20:o>15?15:o>10?10:o>5?5:o>2?2:1}function Bv(o){return pm(o,!0)}function dU(o,i,r){var s=new Date(o);switch(ru(i)){case"year":case"month":s[Nz(r)](0);case"day":s[BM(r)](1);case"hour":s[HM(r)](0);case"minute":s[bI(r)](0);case"second":s[zM(r)](0),s[CI(r)](0)}return s.getTime()}du.registerClass(OT);var pU=OT,Hv=du.prototype,L_=Vv.prototype,IT=hi,vU=Math.floor,cL=Math.ceil,lw=Math.pow,Ss=Math.log,F_=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Vv,r._interval=0,r}return he(i,o),i.prototype.getTicks=function(r){var u=this._extent,f=this._originalScale.getExtent();return Te(L_.getTicks.call(this,r),function(p){var v=p.value,g=hi(lw(this.base,v));return g=v===u[0]&&this._fixMin?N_(g,f[0]):g,{value:g=v===u[1]&&this._fixMax?N_(g,f[1]):g}},this)},i.prototype.setExtent=function(r,s){var u=this.base;r=Ss(r)/Ss(u),s=Ss(s)/Ss(u),L_.setExtent.call(this,r,s)},i.prototype.getExtent=function(){var r=this.base,s=Hv.getExtent.call(this);s[0]=lw(r,s[0]),s[1]=lw(r,s[1]);var f=this._originalScale.getExtent();return this._fixMin&&(s[0]=N_(s[0],f[0])),this._fixMax&&(s[1]=N_(s[1],f[1])),s},i.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var s=this.base;r[0]=Ss(r[0])/Ss(s),r[1]=Ss(r[1])/Ss(s),Hv.unionExtent.call(this,r)},i.prototype.unionExtentFromData=function(r,s){this.unionExtent(r.getApproximateExtent(s))},i.prototype.niceTicks=function(r){r=r||10;var s=this._extent,u=s[1]-s[0];if(!(u===1/0||u<=0)){var f=Fd(u);for(r/u*f<=.5&&(f*=10);!isNaN(f)&&Math.abs(f)<1&&Math.abs(f)>0;)f*=10;var p=[hi(cL(s[0]/f)*f),hi(vU(s[1]/f)*f)];this._interval=f,this._niceExtent=p}},i.prototype.niceExtent=function(r){L_.niceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},i.prototype.parse=function(r){return r},i.prototype.contain=function(r){return jf(r=Ss(r)/Ss(this.base),this._extent)},i.prototype.normalize=function(r){return aw(r=Ss(r)/Ss(this.base),this._extent)},i.prototype.scale=function(r){return r=Nv(r,this._extent),lw(this.base,r)},i.type="log",i}(du),RT=F_.prototype;function N_(o,i){return IT(o,ns(i))}RT.getMinorTicks=L_.getMinorTicks,RT.getLabel=L_.getLabel,du.registerClass(F_);var uw=F_,LT=function(){function o(i,r,s){this._prepareParams(i,r,s)}return o.prototype._prepareParams=function(i,r,s){s[1]v&&(p=NaN,v=NaN);var y=Uu(p)||Uu(v)||i&&!u;this._needCrossZero&&(p>0&&v>0&&!g&&(p=0),p<0&&v<0&&!m&&(v=0));var b=this._determinedMin,w=this._determinedMax;return null!=b&&(p=b,g=!0),null!=w&&(v=w,m=!0),{min:p,max:v,minFixed:g,maxFixed:m,isBlank:y}},o.prototype.modifyDataMinMax=function(i,r){this[fL[i]]=r},o.prototype.setDeterminedMinMax=function(i,r){this[RZ[i]]=r},o.prototype.freeze=function(){this.frozen=!0},o}(),RZ={min:"_determinedMin",max:"_determinedMax"},fL={min:"_dataMin",max:"_dataMax"};function dL(o,i,r){var s=o.rawExtentInfo;return s||(s=new LT(o,i,r),o.rawExtentInfo=s,s)}function Bh(o,i){return null==i?null:Uu(i)?NaN:o.parse(i)}function V_(o,i){var r=o.type,s=dL(o,i,o.getExtent()).calculate();o.setBlank(s.isBlank);var u=s.min,f=s.max,d=i.ecModel;if(d&&"time"===r){var p=sL("bar",d),v=!1;if(q(p,function(y){v=v||y.getBaseAxis()===i.axis}),v){var g=ET(p),m=function(o,i,r,s){var u=r.axis.getExtent(),f=u[1]-u[0],d=PT(s,r.axis);if(void 0===d)return{min:o,max:i};var p=1/0;q(d,function(w){p=Math.min(w.offset,p)});var v=-1/0;q(d,function(w){v=Math.max(w.offset+w.width,v)}),p=Math.abs(p),v=Math.abs(v);var g=p+v,m=i-o,b=m/(1-(p+v)/f)-m;return{min:o-=b*(p/g),max:i+=b*(v/g)}}(u,f,i,g);u=m.min,f=m.max}}return{extent:[u,f],fixMin:s.minFixed,fixMax:s.maxFixed}}function Wf(o,i){var r=V_(o,i),s=r.extent,u=i.get("splitNumber");o instanceof uw&&(o.base=i.get("logBase"));var f=o.type;o.setExtent(s[0],s[1]),o.niceExtent({splitNumber:u,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:"interval"===f||"time"===f?i.get("minInterval"):null,maxInterval:"interval"===f||"time"===f?i.get("maxInterval"):null});var d=i.get("interval");null!=d&&o.setInterval&&o.setInterval(d)}function Hh(o,i){if(i=i||o.get("type"))switch(i){case"category":return new TT({ordinalMeta:o.getOrdinalMeta?o.getOrdinalMeta():o.getCategories(),extent:[1/0,-1/0]});case"time":return new pU({locale:o.ecModel.getLocaleModel(),useUTC:o.ecModel.get("useUTC")});default:return new(du.getClass(i)||Vv)}}function B_(o){var s,i=o.getLabelModel().get("formatter"),r="category"===o.type?o.scale.getExtent()[0]:null;return"time"===o.scale.type?(s=i,function(u,f){return o.scale.getFormattedLabel(u,f,s)}):"string"==typeof i?function(s){return function(u){var f=o.scale.getLabel(u);return s.replace("{value}",null!=f?f:"")}}(i):"function"==typeof i?function(s){return function(u,f){return null!=r&&(f=u.value-r),s(NT(o,u),f,null!=u.level?{level:u.level}:null)}}(i):function(s){return o.scale.getLabel(s)}}function NT(o,i){return"category"===o.type?o.scale.getLabel(i):i.value}function vL(o,i){var r=i*Math.PI/180,s=o.width,u=o.height,f=s*Math.abs(Math.cos(r))+Math.abs(u*Math.sin(r)),d=s*Math.abs(Math.sin(r))+Math.abs(u*Math.cos(r));return new Nt(o.x,o.y,f,d)}function cw(o){var i=o.get("interval");return null==i?"auto":i}function gL(o){return"category"===o.type&&0===cw(o.getLabelModel())}function H_(o,i){var r={};return q(o.mapDimensionsAll(i),function(s){r[MT(o,s)]=!0}),_n(r)}var zv=function(){function o(){}return o.prototype.getNeedCrossZero=function(){return!this.option.scale},o.prototype.getCoordSysModel=function(){},o}();function gU(o){return gl(null,o)}var _L={isDimensionStacked:ac,enableDataStack:J2,getStackedDimension:MT};function mU(o,i){var r=i;i instanceof Nn||(r=new Nn(i));var s=Hh(r);return s.setExtent(o[0],o[1]),Wf(s,r),s}function yL(o){qr(o,zv)}function bL(o,i){return Or(o,null,null,"normal"!==(i=i||{}).state)}function CL(o,i,r,s,u,f,d,p){return new fn({style:{text:o,font:i,align:r,verticalAlign:s,padding:u,rich:f,overflow:d?"truncate":null,lineHeight:p}}).getBoundingRect()}var Uv=pn();function VT(o,i){var f,d,r=wL(o,"labels"),s=cw(i);return SL(r,s)||(An(s)?f=xU(o,s):(d="auto"===s?function(o){var i=Uv(o).autoInterval;return null!=i?i:Uv(o).autoInterval=o.calculateCategoryInterval()}(o):s,f=MU(o,d)),kL(r,s,{labels:f,labelCategoryInterval:d}))}function wL(o,i){return Uv(o)[i]||(Uv(o)[i]=[])}function SL(o,i){for(var r=0;r1&&m/v>2&&(g=Math.round(Math.ceil(g/v)*v));var y=gL(o),b=d.get("showMinLabel")||y,w=d.get("showMaxLabel")||y;b&&g!==f[0]&&M(f[0]);for(var S=g;S<=f[1];S+=v)M(S);function M(x){var T={value:x};p.push(r?x:{formattedLabel:s(T),rawLabel:u.getLabel(T),tickValue:x})}return w&&S-v!==f[1]&&M(f[1]),p}function xU(o,i,r){var s=o.scale,u=B_(o),f=[];return q(s.getTicks(),function(d){var p=s.getLabel(d),v=d.value;i(d.value,p)&&f.push(r?v:{formattedLabel:u(d),rawLabel:p,tickValue:v})}),f}var TU=[0,1];function DU(o,i){var u=(o[1]-o[0])/i/2;o[0]+=u,o[1]-=u}var _l=function(){function o(i,r,s){this.onBand=!1,this.inverse=!1,this.dim=i,this.scale=r,this._extent=s||[0,0]}return o.prototype.contain=function(i){var r=this._extent,s=Math.min(r[0],r[1]),u=Math.max(r[0],r[1]);return i>=s&&i<=u},o.prototype.containData=function(i){return this.scale.contain(i)},o.prototype.getExtent=function(){return this._extent.slice()},o.prototype.getPixelPrecision=function(i){return o0(i||this.scale.getExtent(),this._extent)},o.prototype.setExtent=function(i,r){var s=this._extent;s[0]=i,s[1]=r},o.prototype.dataToCoord=function(i,r){var s=this._extent,u=this.scale;return i=u.normalize(i),this.onBand&&"ordinal"===u.type&&DU(s=s.slice(),u.count()),bn(i,TU,s,r)},o.prototype.coordToData=function(i,r){var s=this._extent,u=this.scale;this.onBand&&"ordinal"===u.type&&DU(s=s.slice(),u.count());var f=bn(i,s,TU,r);return this.scale.scale(f)},o.prototype.pointToData=function(i,r){},o.prototype.getTicksCoords=function(i){var r=(i=i||{}).tickModel||this.getTickModel(),f=Te(function(o,i){return"category"===o.type?function(o,i){var f,d,r=wL(o,"ticks"),s=cw(i),u=SL(r,s);if(u)return u;if((!i.get("show")||o.scale.isBlank())&&(f=[]),An(s))f=xU(o,s,!0);else if("auto"===s){var p=VT(o,o.getLabelModel());d=p.labelCategoryInterval,f=Te(p.labels,function(v){return v.tickValue})}else f=MU(o,d=s,!0);return kL(r,s,{ticks:f,tickCategoryInterval:d})}(o,i):{ticks:Te(o.scale.getTicks(),function(r){return r.value})}}(this,r).ticks,function(p){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(p):p),tickValue:p}},this);return function(o,i,r,s){var u=i.length;if(o.onBand&&!r&&u){var d,f=o.getExtent();if(1===u)i[0].coord=f[0],d=i[1]={coord:f[0]};else{var g=(i[u-1].coord-i[0].coord)/(i[u-1].tickValue-i[0].tickValue);q(i,function(w){w.coord-=g/2});var m=o.scale.getExtent();i.push(d={coord:i[u-1].coord+g*(1+m[1]-i[u-1].tickValue)})}var y=f[0]>f[1];b(i[0].coord,f[0])&&(s?i[0].coord=f[0]:i.shift()),s&&b(f[0],i[0].coord)&&i.unshift({coord:f[0]}),b(f[1],d.coord)&&(s?d.coord=f[1]:i.pop()),s&&b(d.coord,f[1])&&i.push({coord:f[1]})}function b(w,S){return w=hi(w),S=hi(S),y?w>S:w0&&r<100||(r=5),Te(this.scale.getMinorTicks(r),function(f){return Te(f,function(d){return{coord:this.dataToCoord(d),tickValue:d}},this)},this)},o.prototype.getViewLabels=function(){return function(o){return"category"===o.type?function(o){var i=o.getLabelModel(),r=VT(o,i);return!i.get("show")||o.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}(o):function(o){var i=o.scale.getTicks(),r=B_(o);return{labels:Te(i,function(s,u){return{formattedLabel:r(s,u),rawLabel:o.scale.getLabel(s),tickValue:s.value}})}}(o)}(this).labels},o.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},o.prototype.getTickModel=function(){return this.model.getModel("axisTick")},o.prototype.getBandWidth=function(){var i=this._extent,r=this.scale.getExtent(),s=r[1]-r[0]+(this.onBand?1:0);0===s&&(s=1);var u=Math.abs(i[1]-i[0]);return Math.abs(u)/s},o.prototype.calculateCategoryInterval=function(){return function(o){var i=function(o){var i=o.getLabelModel();return{axisRotate:o.getRotate?o.getRotate():o.isHorizontal&&!o.isHorizontal()?90:0,labelRotate:i.get("rotate")||0,font:i.getFont()}}(o),r=B_(o),s=(i.axisRotate-i.labelRotate)/180*Math.PI,u=o.scale,f=u.getExtent(),d=u.count();if(f[1]-f[0]<1)return 0;var p=1;d>40&&(p=Math.max(1,Math.floor(d/40)));for(var v=f[0],g=o.dataToCoord(v+1)-o.dataToCoord(v),m=Math.abs(g*Math.cos(s)),y=Math.abs(g*Math.sin(s)),b=0,w=0;v<=f[1];v+=p){var M,x=um(r({value:v}),i.font,"center","top");M=1.3*x.height,b=Math.max(b,1.3*x.width,7),w=Math.max(w,M,7)}var T=b/m,P=w/y;isNaN(T)&&(T=1/0),isNaN(P)&&(P=1/0);var O=Math.max(0,Math.floor(Math.min(T,P))),R=Uv(o.model),V=o.getExtent(),B=R.lastAutoInterval,U=R.lastTickCount;return null!=B&&null!=U&&Math.abs(B-O)<=1&&Math.abs(U-d)<=1&&B>O&&R.axisExtent0===V[0]&&R.axisExtent1===V[1]?O=B:(R.lastTickCount=d,R.lastAutoInterval=O,R.axisExtent0=V[0],R.axisExtent1=V[1]),O}(this)},o}();function VZ(o){var i=qt.extend(o);return qt.registerClass(i),i}function BZ(o){var i=un.extend(o);return un.registerClass(i),i}function AU(o){var i=vt.extend(o);return vt.registerClass(i),i}function EU(o){var i=Vn.extend(o);return Vn.registerClass(i),i}var z_=2*Math.PI,Gv=Qs.CMD,HZ=["top","right","bottom","left"];function zZ(o,i,r,s,u){var f=r.width,d=r.height;switch(o){case"top":s.set(r.x+f/2,r.y-i),u.set(0,-1);break;case"bottom":s.set(r.x+f/2,r.y+d+i),u.set(0,1);break;case"left":s.set(r.x-i,r.y+d/2),u.set(-1,0);break;case"right":s.set(r.x+f+i,r.y+d/2),u.set(1,0)}}function PU(o,i,r,s,u,f,d,p,v){d-=o,p-=i;var g=Math.sqrt(d*d+p*p),m=(d/=g)*r+o,y=(p/=g)*r+i;if(Math.abs(s-u)%z_<1e-4)return v[0]=m,v[1]=y,g-r;if(f){var b=s;s=Lt(u),u=Lt(b)}else s=Lt(s),u=Lt(u);s>u&&(u+=z_);var w=Math.atan2(p,d);if(w<0&&(w+=z_),w>=s&&w<=u||w+z_>=s&&w+z_<=u)return v[0]=m,v[1]=y,g-r;var S=r*Math.cos(s)+o,M=r*Math.sin(s)+i,x=r*Math.cos(u)+o,T=r*Math.sin(u)+i,P=(S-d)*(S-d)+(M-p)*(M-p),O=(x-d)*(x-d)+(T-p)*(T-p);return P0){i=i/180*Math.PI,hu.fromArray(o[0]),ar.fromArray(o[1]),ci.fromArray(o[2]),Tt.sub(pu,hu,ar),Tt.sub(fo,ci,ar);var r=pu.len(),s=fo.len();if(!(r<.001||s<.001)){pu.scale(1/r),fo.scale(1/s);var u=pu.dot(fo);if(Math.cos(i)1&&Tt.copy(ja,ci),ja.toArray(o[1])}}}}function BT(o,i,r){if(r<=180&&r>0){r=r/180*Math.PI,hu.fromArray(o[0]),ar.fromArray(o[1]),ci.fromArray(o[2]),Tt.sub(pu,ar,hu),Tt.sub(fo,ci,ar);var s=pu.len(),u=fo.len();if(!(s<.001||u<.001)&&(pu.scale(1/s),fo.scale(1/u),pu.dot(i)=v)Tt.copy(ja,ci);else{ja.scaleAndAdd(fo,p/Math.tan(Math.PI/2-m));var y=ci.x!==ar.x?(ja.x-ar.x)/(ci.x-ar.x):(ja.y-ar.y)/(ci.y-ar.y);if(isNaN(y))return;y<0?Tt.copy(ja,ar):y>1&&Tt.copy(ja,ci)}ja.toArray(o[1])}}}function HT(o,i,r,s){var u="normal"===r,f=u?o:o.ensureState(r);f.ignore=i;var d=s.get("smooth");d&&!0===d&&(d=.3),f.shape=f.shape||{},d>0&&(f.shape.smooth=d);var p=s.getModel("lineStyle").getLineStyle();u?o.useStyle(p):f.style=p}function jv(o,i){var r=i.smooth,s=i.points;if(s)if(o.moveTo(s[0][0],s[0][1]),r>0&&s.length>=3){var u=Vs(s[0],s[1]),f=Vs(s[1],s[2]);if(!u||!f)return o.lineTo(s[1][0],s[1][1]),void o.lineTo(s[2][0],s[2][1]);var d=Math.min(u,f)*r,p=Cd([],s[1],s[0],d/u),v=Cd([],s[1],s[2],d/f),g=Cd([],p,v,.5);o.bezierCurveTo(p[0],p[1],p[0],p[1],g[0],g[1]),o.bezierCurveTo(v[0],v[1],v[0],v[1],s[2][0],s[2][1])}else for(var m=1;m0&&f&&B(-y/d,0,d);var P,O,x=o[0],T=o[d-1];return R(),P<0&&U(-P,.8),O<0&&U(O,.8),R(),V(P,O,1),V(O,P,-1),R(),P<0&&j(-P),O<0&&j(O),g}function R(){P=x.rect[i]-s,O=u-T.rect[i]-T.rect[r]}function V(X,K,$){if(X<0){var te=Math.min(K,-X);if(te>0){B(te*$,0,d);var ee=te+X;ee<0&&U(-ee*$,1)}else U(-X*$,1)}}function B(X,K,$){0!==X&&(g=!0);for(var te=K;te<$;te++){var ee=o[te];ee.rect[i]+=X,ee.label[i]+=X}}function U(X,K){for(var $=[],te=0,ee=1;ee0)for(ee=0;ee0;ee--)B(-$[ee-1]*de,ee,d)}}function j(X){var K=X<0?-1:1;X=Math.abs(X);for(var $=Math.ceil(X/(d-1)),te=0;te0?B($,0,te+1):B(-$,d-te-1,d),(X-=$)<=0)return}}function IU(o,i,r,s){return vu(o,"y","height",i,r,s)}function jZ(o){if(o){for(var i=[],r=0;r=0&&s.attr(f.oldLayoutSelect),Rt(b,"emphasis")>=0&&s.attr(f.oldLayoutEmphasis)),ln(s,g,r,v)}else if(s.attr(g),!W0(s).valueAnimation){var y=ot(s.style.opacity,1);s.style.opacity=0,br(s,{style:{opacity:y}},r,v)}if(f.oldLayout=g,s.states.select){var w=f.oldLayoutSelect={};UT(w,g,Wv),UT(w,s.states.select,Wv)}if(s.states.emphasis){var S=f.oldLayoutEmphasis={};UT(S,g,Wv),UT(S,s.states.emphasis,Wv)}Nm(s,v,m,r,r)}if(u&&!u.ignore&&!u.invisible){var f=WZ(u),M={points:u.shape.points};(d=f.oldLayout)?(u.attr({shape:d}),ln(u,{shape:M},r)):(u.setShape(M),u.style.strokePercent=0,br(u,{style:{strokePercent:1}},r)),f.oldLayout=M}},o}(),GT=pn();function AL(o){o.registerUpdateLifecycle("series:beforeupdate",function(i,r,s){var u=GT(r).labelManager;u||(u=GT(r).labelManager=new YZ),u.clearLabels()}),o.registerUpdateLifecycle("series:layoutlabels",function(i,r,s){var u=GT(r).labelManager;s.updatedSeries.forEach(function(f){u.addLabelsOfSeries(r.getViewOfSeriesModel(f))}),u.updateLayoutConfig(r),u.layout(r),u.processLabelsOverall()})}function qZ(){return!1}function jT(o,i,r){var s=md(),u=i.getWidth(),f=i.getHeight(),d=s.style;return d&&(d.position="absolute",d.left="0",d.top="0",d.width=u+"px",d.height=f+"px",s.setAttribute("data-zr-dom-id",o)),s.width=u*r,s.height=f*r,s}Ot(AL);var EL=function(o){function i(r,s,u){var d,f=o.call(this)||this;f.motionBlur=!1,f.lastFrameAlpha=.7,f.dpr=1,f.virtual=!1,f.config={},f.incremental=!1,f.zlevel=0,f.maxRepaintRectCount=5,f.__dirty=!0,f.__firstTimePaint=!0,f.__used=!1,f.__drawIndex=0,f.__startIndex=0,f.__endIndex=0,f.__prevStartIndex=null,f.__prevEndIndex=null,u=u||Kb,"string"==typeof r?d=jT(r,s,u):at(r)&&(r=(d=r).id),f.id=r,f.dom=d;var p=d.style;return p&&(d.onselectstart=qZ,p.webkitUserSelect="none",p.userSelect="none",p.webkitTapHighlightColor="rgba(0,0,0,0)",p["-webkit-touch-callout"]="none",p.padding="0",p.margin="0",p.borderWidth="0"),f.domBack=null,f.ctxBack=null,f.painter=s,f.config=null,f.dpr=u,f}return Ln(i,o),i.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},i.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},i.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},i.prototype.setUnpainted=function(){this.__firstTimePaint=!0},i.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=jT("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),1!==r&&this.ctxBack.scale(r,r)},i.prototype.createRepaintRects=function(r,s,u,f){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var x,d=[],p=this.maxRepaintRectCount,v=!1,g=new Nt(0,0,0,0);function m(P){if(P.isFinite()&&!P.isZero())if(0===d.length)(O=new Nt(0,0,0,0)).copy(P),d.push(O);else{for(var R=!1,V=1/0,B=0,U=0;U=p)}}for(var y=this.__startIndex;y15)break}de.prevElClipPaths&&P.restore()};if(O)if(0===O.length)X=T.__endIndex;else for(var $=w.dpr,te=0;te0&&i>u[0]){for(v=0;vi);v++);p=s[u[v]]}if(u.splice(v+1,0,i),s[i]=r,!r.virtual)if(p){var g=p.dom;g.nextSibling?d.insertBefore(r.dom,g.nextSibling):d.appendChild(r.dom)}else d.firstChild?d.insertBefore(r.dom,d.firstChild):d.appendChild(r.dom);r.__painter=this}else Ns("Layer of zlevel "+i+" is not valid")},o.prototype.eachLayer=function(i,r){for(var s=this._zlevelList,u=0;u0?.01:0),this._needsManuallyCompositing),m.__builtin__||Ns("ZLevel "+g+" has been used by unkown layer "+m.id),m!==f&&(m.__used=!0,m.__startIndex!==v&&(m.__dirty=!0),m.__startIndex=v,m.__drawIndex=m.incremental?-1:v,r(v),f=m),1&u.__dirty&&!u.__inHover&&(m.__dirty=!0,m.incremental&&m.__drawIndex<0&&(m.__drawIndex=v))}r(v),this.eachBuiltinLayer(function(y,b){!y.__used&&y.getElementCount()>0&&(y.__dirty=!0,y.__startIndex=y.__endIndex=y.__drawIndex=0),y.__dirty&&y.__drawIndex<0&&(y.__drawIndex=y.__startIndex)})},o.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},o.prototype._clearLayer=function(i){i.clear()},o.prototype.setBackgroundColor=function(i){this._backgroundColor=i,q(this._layers,function(r){r.setUnpainted()})},o.prototype.configLayer=function(i,r){if(r){var s=this._layerConfig;s[i]?He(s[i],r,!0):s[i]=r;for(var u=0;u-1){var r=La(o);r&&(o="rgb("+r[0]+","+r[1]+","+r[2]+")",i=r[3])}}else o="none";return{color:o,opacity:null==i?1:i}}function gw(o,i,r,s,u){for(var f=i.length,d=r.length,p=o.newPos,v=p-s,g=0;p+1-1e-4}function ZT(o,i){i&&Rr(o,"transform","matrix("+ho(i[0])+","+ho(i[1])+","+ho(i[2])+","+ho(i[3])+","+sc(i[4])+","+sc(i[5])+")")}function Rr(o,i,r){(!r||"linear"!==r.type&&"radial"!==r.type)&&o.setAttribute(i,r)}function KT(o,i,r){var s=null==i.opacity?1:i.opacity;if(r instanceof si)o.style.opacity=s+"";else{if(function(o){var i=o.fill;return null!=i&&i!==U_}(i)){var u=vw(i.fill);Rr(o,"fill",u.color),Rr(o,"fill-opacity",(null!=i.fillOpacity?i.fillOpacity*u.opacity*s:u.opacity*s)+"")}else Rr(o,"fill",U_);if(function(o){var i=o.stroke;return null!=i&&i!==U_}(i)){var f=vw(i.stroke);Rr(o,"stroke",f.color);var d=i.lineWidth,p=i.strokeNoScale?r.getLineScale():1;Rr(o,"stroke-width",(p?d/p:0)+""),Rr(o,"paint-order",i.strokeFirst?"stroke":"fill"),Rr(o,"stroke-opacity",(null!=i.strokeOpacity?i.strokeOpacity*f.opacity*s:f.opacity*s)+"");var v=i.lineDash&&d>0&&Xx(i.lineDash,d);if(v){var g=i.lineDashOffset;p&&1!==p&&(v=Te(v,function(m){return m/p}),g&&(g=mw(g/=p))),Rr(o,"stroke-dasharray",v.join(",")),Rr(o,"stroke-dashoffset",(g||0)+"")}else Rr(o,"stroke-dasharray","");i.lineCap&&Rr(o,"stroke-linecap",i.lineCap),i.lineJoin&&Rr(o,"stroke-linejoin",i.lineJoin),i.miterLimit&&Rr(o,"stroke-miterlimit",i.miterLimit+"")}else Rr(o,"stroke",U_)}}var LL=function(){function o(){}return o.prototype.reset=function(){this._d=[],this._str=""},o.prototype.moveTo=function(i,r){this._add("M",i,r)},o.prototype.lineTo=function(i,r){this._add("L",i,r)},o.prototype.bezierCurveTo=function(i,r,s,u,f,d){this._add("C",i,r,s,u,f,d)},o.prototype.quadraticCurveTo=function(i,r,s,u){this._add("Q",i,r,s,u)},o.prototype.arc=function(i,r,s,u,f,d){this.ellipse(i,r,s,s,0,u,f,d)},o.prototype.ellipse=function(i,r,s,u,f,d,p,v){var g=0===this._d.length,m=p-d,y=!v,b=Math.abs(m),w=jU(b-oc)||(y?m>=oc:-m>=oc),S=m>0?m%oc:m%oc+oc,M=!1;M=!!w||!jU(b)&&S>=XT==!!y;var x=sc(i+s*_w(d)),T=sc(r+u*IL(d));w&&(m=y?oc-1e-4:1e-4-oc,M=!0,g&&this._d.push("M",x,T));var P=sc(i+s*_w(d+m)),O=sc(r+u*IL(d+m));if(isNaN(x)||isNaN(T)||isNaN(s)||isNaN(u)||isNaN(f)||isNaN(yw)||isNaN(P)||isNaN(O))return"";this._d.push("A",sc(s),sc(u),mw(f*yw),+M,+y,P,O)},o.prototype.rect=function(i,r,s,u){this._add("M",i,r),this._add("L",i+s,r),this._add("L",i+s,r+u),this._add("L",i,r+u),this._add("L",i,r),this._add("Z")},o.prototype.closePath=function(){this._d.length>0&&this._add("Z")},o.prototype._add=function(i,r,s,u,f,d,p,v,g){this._d.push(i);for(var m=1;m=0;--p)if(d[p]===f)return!0;return!1}),u}return null}return s[0]},o.prototype.doUpdate=function(i,r){if(i){var s=this.getDefs(!1);if(i[this._domName]&&s.contains(i[this._domName]))"function"==typeof r&&r(i);else{var u=this.add(i);u&&(i[this._domName]=u)}}},o.prototype.add=function(i){return null},o.prototype.addDom=function(i){var r=this.getDefs(!0);i.parentNode!==r&&r.appendChild(i)},o.prototype.removeDom=function(i){var r=this.getDefs(!1);r&&i[this._domName]&&(r.removeChild(i[this._domName]),i[this._domName]=null)},o.prototype.getDoms=function(){var i=this.getDefs(!1);if(!i)return[];var r=[];return q(this._tagNames,function(s){for(var u=i.getElementsByTagName(s),f=0;f-1){var g=La(v)[3],m=uO(v);p.setAttribute("stop-color","#"+m),p.setAttribute("stop-opacity",g+"")}else p.setAttribute("stop-color",u[f].color);s.appendChild(p)}r.__dom=s},i.prototype.markUsed=function(r){if(r.style){var s=r.style.fill;s&&s.__dom&&o.prototype.markDomUsed.call(this,s.__dom),(s=r.style.stroke)&&s.__dom&&o.prototype.markDomUsed.call(this,s.__dom)}},i}(bw);function qf(o){return o&&(!!o.image||!!o.svgElement)}var ww=new Tx,$Z=function(o){function i(r,s){return o.call(this,r,s,["pattern"],"__pattern_in_use__")||this}return Ln(i,o),i.prototype.addWithoutUpdate=function(r,s){if(s&&s.style){var u=this;q(["fill","stroke"],function(f){var d=s.style[f];if(qf(d)){var p=u.getDefs(!0),v=ww.get(d);v?p.contains(v)||u.addDom(v):v=u.add(d),u.markUsed(s);var g=v.getAttribute("id");r.setAttribute(f,"url(#"+g+")")}})}},i.prototype.add=function(r){if(qf(r)){var s=this.createElement("pattern");return r.id=null==r.id?this.nextId++:r.id,s.setAttribute("id","zr"+this._zrId+"-pattern-"+r.id),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(r,s),this.addDom(s),s}},i.prototype.update=function(r){if(qf(r)){var s=this;this.doUpdate(r,function(){var u=ww.get(r);s.updateDom(r,u)})}},i.prototype.updateDom=function(r,s){var u=r.svgElement;if(u instanceof SVGElement)u.parentNode!==s&&(s.innerHTML="",s.appendChild(u),s.setAttribute("width",r.svgWidth+""),s.setAttribute("height",r.svgHeight+""));else{var f=void 0,d=s.getElementsByTagName("image");if(d.length){if(!r.image)return void s.removeChild(d[0]);f=d[0]}else r.image&&(f=this.createElement("image"));if(f){var p=void 0,v=r.image;if("string"==typeof v?p=v:v instanceof HTMLImageElement?p=v.src:v instanceof HTMLCanvasElement&&(p=v.toDataURL()),p){f.setAttribute("href",p),f.setAttribute("x","0"),f.setAttribute("y","0");var m=zd(p,f,{dirty:function(){}},function(T){s.setAttribute("width",T.width+""),s.setAttribute("height",T.height+"")});m&&m.width&&m.height&&(s.setAttribute("width",m.width+""),s.setAttribute("height",m.height+"")),s.appendChild(f)}}}var w=(r.rotation||0)/Math.PI*180;s.setAttribute("patternTransform","translate("+(r.x||0)+", "+(r.y||0)+") rotate("+w+") scale("+(r.scaleX||1)+", "+(r.scaleY||1)+")"),ww.set(r,s)},i.prototype.markUsed=function(r){r.style&&(qf(r.style.fill)&&o.prototype.markDomUsed.call(this,ww.get(r.style.fill)),qf(r.style.stroke)&&o.prototype.markDomUsed.call(this,ww.get(r.style.stroke)))},i}(bw);function eD(o){var i=o.__clipPaths;return i&&i.length>0}var QU=function(o){function i(r,s){var u=o.call(this,r,s,"clipPath","__clippath_in_use__")||this;return u._refGroups={},u._keyDuplicateCount={},u}return Ln(i,o),i.prototype.markAllUnused=function(){o.prototype.markAllUnused.call(this);var r=this._refGroups;for(var s in r)r.hasOwnProperty(s)&&this.markDomUnused(r[s]);this._keyDuplicateCount={}},i.prototype._getClipPathGroup=function(r,s){if(eD(r)){var u=r.__clipPaths,f=this._keyDuplicateCount,d=function(o){var i=[];if(o)for(var r=0;r0){var u=this.getDefs(!0),f=s[0],d=void 0,p=void 0;f._dom?(p=f._dom.getAttribute("id"),u.contains(d=f._dom)||u.appendChild(d)):(p="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(d=this.createElement("clipPath")).setAttribute("id",p),u.appendChild(d),f._dom=d),this.getSvgProxy(f).brush(f);var g=this.getSvgElement(f);d.innerHTML="",d.appendChild(g),r.setAttribute("clip-path","url(#"+p+")"),s.length>1&&this.updateDom(d,s.slice(1))}else r&&r.setAttribute("clip-path","none")},i.prototype.markUsed=function(r){var s=this;r.__clipPaths&&q(r.__clipPaths,function(u){u._dom&&o.prototype.markDomUsed.call(s,u._dom)})},i.prototype.removeUnused=function(){o.prototype.removeUnused.call(this);var r={},s=this._refGroups;for(var u in s)if(s.hasOwnProperty(u)){var f=s[u];this.isDomUnused(f)?f.parentNode&&f.parentNode.removeChild(f):r[u]=f}this._refGroups=r},i}(bw),eG=function(o){function i(r,s){var u=o.call(this,r,s,["filter"],"__filter_in_use__","_shadowDom")||this;return u._shadowDomMap={},u._shadowDomPool=[],u}return Ln(i,o),i.prototype._getFromPool=function(){var r=this._shadowDomPool.pop();if(!r){(r=this.createElement("filter")).setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var s=this.createElement("feDropShadow");r.appendChild(s),this.addDom(r)}return r},i.prototype.update=function(r,s){if(function(o){return o&&(o.shadowBlur||o.shadowOffsetX||o.shadowOffsetY)}(s.style)){var f=function(o){var i=o.style,r=o.getGlobalScale();return[i.shadowColor,(i.shadowBlur||0).toFixed(2),(i.shadowOffsetX||0).toFixed(2),(i.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}(s),d=s._shadowDom=this._shadowDomMap[f];d||(d=this._getFromPool(),this._shadowDomMap[f]=d),this.updateDom(r,s,d)}else this.remove(r,s)},i.prototype.remove=function(r,s){null!=s._shadowDom&&(s._shadowDom=null,r.style.filter="")},i.prototype.updateDom=function(r,s,u){var f=u.children[0],d=s.style,p=s.getGlobalScale(),v=p[0],g=p[1];if(v&&g){var m=d.shadowOffsetX||0,y=d.shadowOffsetY||0,b=d.shadowBlur,w=vw(d.shadowColor);f.setAttribute("dx",m/v+""),f.setAttribute("dy",y/g+""),f.setAttribute("flood-color",w.color),f.setAttribute("flood-opacity",w.opacity+""),f.setAttribute("stdDeviation",b/2/v+" "+b/2/g),u.setAttribute("x","-100%"),u.setAttribute("y","-100%"),u.setAttribute("width","300%"),u.setAttribute("height","300%"),s._shadowDom=u;var T=u.getAttribute("id");r.style.filter="url(#"+T+")"}},i.prototype.removeUnused=function(){if(this.getDefs(!1)){var s=this._shadowDomPool,u=this._shadowDomMap;for(var f in u)u.hasOwnProperty(f)&&s.push(u[f]);this._shadowDomMap={}}},i}(bw);function Sw(o){return parseInt(o,10)}function nG(o){return o instanceof Vt?Yv:o instanceof si?FL:o instanceof Xp?XU:Yv}function rG(o,i){return i&&o&&i.parentNode!==o}function kw(o,i,r){if(rG(o,i)&&r){var s=r.nextSibling;s?o.insertBefore(i,s):o.appendChild(i)}}function iG(o,i){if(rG(o,i)){var r=o.firstChild;r?o.insertBefore(i,r):o.appendChild(i)}}function aG(o,i){i&&o&&i.parentNode===o&&o.removeChild(i)}function oG(o){o&&o.parentNode&&o.parentNode.removeChild(o)}function G_(o){return o.__svgEl}function zL(o){return function(){Ns('In SVG mode painter not support method "'+o+'"')}}var sG=function(){function o(i,r,s,u){this.type="svg",this.refreshHover=zL("refreshHover"),this.pathToImage=zL("pathToImage"),this.configLayer=zL("configLayer"),this.root=i,this.storage=r,this._opts=s=ke({},s||{});var f=bl("svg");f.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),f.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),f.setAttribute("version","1.1"),f.setAttribute("baseProfile","full"),f.style.cssText="user-select:none;position:absolute;left:0;top:0;";var d=bl("g");f.appendChild(d);var p=bl("g");f.appendChild(p),this._gradientManager=new KU(u,p),this._patternManager=new $Z(u,p),this._clipPathManager=new QU(u,p),this._shadowManager=new eG(u,p);var v=document.createElement("div");v.style.cssText="overflow:hidden;position:relative",this._svgDom=f,this._svgRoot=p,this._backgroundRoot=d,this._viewport=v,i.appendChild(v),v.appendChild(f),this.resize(s.width,s.height),this._visibleList=[]}return o.prototype.getType=function(){return"svg"},o.prototype.getViewportRoot=function(){return this._viewport},o.prototype.getSvgDom=function(){return this._svgDom},o.prototype.getSvgRoot=function(){return this._svgRoot},o.prototype.getViewportRootOffset=function(){var i=this.getViewportRoot();if(i)return{offsetLeft:i.offsetLeft||0,offsetTop:i.offsetTop||0}},o.prototype.refresh=function(){var i=this.storage.getDisplayList(!0);this._paintList(i)},o.prototype.setBackgroundColor=function(i){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var r=bl("rect");r.setAttribute("width",this.getWidth()),r.setAttribute("height",this.getHeight()),r.setAttribute("x",0),r.setAttribute("y",0),r.setAttribute("id",0);var s=vw(i),f=s.opacity;r.setAttribute("fill",s.color),r.setAttribute("fill-opacity",f),this._backgroundRoot.appendChild(r),this._backgroundNode=r},o.prototype.createSVGElement=function(i){return bl(i)},o.prototype.paintOne=function(i){var r=nG(i);return r&&r.brush(i),G_(i)},o.prototype._paintList=function(i){var r=this._gradientManager,s=this._patternManager,u=this._clipPathManager,f=this._shadowManager;r.markAllUnused(),s.markAllUnused(),u.markAllUnused(),f.markAllUnused();for(var d=this._svgRoot,p=this._visibleList,v=i.length,g=[],m=0;m=s&&v+1>=u){for(var g=[],m=0;m=s&&T+1>=u)return OL(S.components);p[w]=S}else p[w]=void 0}f++}for(;f<=d;){var b=y();if(b)return b}}(o,i,r)}(p,g);for(m=0;m\n\r<"))},o}(),UL=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r}return he(i,o),i.prototype.getInitialData=function(r){return gl(null,this,{useEncodeDefaulter:!0})},i.prototype.getLegendIcon=function(r){var s=new ct,u=Ir("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);s.add(u),u.setStyle(r.lineStyle);var f=this.getData().getVisual("symbol"),d=this.getData().getVisual("symbolRotate"),p="none"===f?"circle":f,v=.8*r.itemHeight,g=Ir(p,(r.itemWidth-v)/2,(r.itemHeight-v)/2,v,v,r.itemStyle.fill);return s.add(g),g.setStyle(r.itemStyle),g.rotation=("inherit"===r.iconRotate?d:r.iconRotate||0)*Math.PI/180,g.setOrigin([r.itemWidth/2,r.itemHeight/2]),p.indexOf("empty")>-1&&(g.style.stroke=g.style.fill,g.style.fill="#fff",g.style.lineWidth=2),s},i.type="series.line",i.dependencies=["grid","polar"],i.defaultOption={zlevel:0,z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0,lineStyle:{width:"bolder"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"}},i}(vt);function Xf(o,i){var r=o.mapDimensionsAll("defaultedLabel"),s=r.length;if(1===s){var u=zo(o,i,r[0]);return null!=u?u+"":null}if(s){for(var f=[],d=0;d=0&&s.push(i[f])}return s.join(" ")}function xw(o,i){this.parent.drift(o,i)}var j_=function(o){function i(r,s,u,f){var d=o.call(this)||this;return d.updateData(r,s,u,f),d}return he(i,o),i.prototype._createSymbol=function(r,s,u,f,d){this.removeAll();var p=Ir(r,-1,-1,2,2,null,d);p.attr({z2:100,culling:!0,scaleX:f[0]/2,scaleY:f[1]/2}),p.drift=xw,this._symbolType=r,this.add(p)},i.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},i.prototype.getSymbolType=function(){return this._symbolType},i.prototype.getSymbolPath=function(){return this.childAt(0)},i.prototype.highlight=function(){Js(this.childAt(0))},i.prototype.downplay=function(){eu(this.childAt(0))},i.prototype.setZ=function(r,s){var u=this.childAt(0);u.zlevel=r,u.z=s},i.prototype.setDraggable=function(r){var s=this.childAt(0);s.draggable=r,s.cursor=r?"move":s.cursor},i.prototype.updateData=function(r,s,u,f){this.silent=!1;var d=r.getItemVisual(s,"symbol")||"circle",p=r.hostModel,v=i.getSymbolSize(r,s),g=d!==this._symbolType,m=f&&f.disableAnimation;if(g){var y=r.getItemVisual(s,"symbolKeepAspect");this._createSymbol(d,r,s,v,y)}else{(b=this.childAt(0)).silent=!1;var w={scaleX:v[0]/2,scaleY:v[1]/2};m?b.attr(w):ln(b,w,p,s),el(b)}if(this._updateCommon(r,s,v,u,f),g){var b=this.childAt(0);m||(w={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:b.style.opacity}},b.scaleX=b.scaleY=0,b.style.opacity=0,br(b,w,p,s))}m&&this.childAt(0).stopAnimation("remove"),this._seriesModel=p},i.prototype._updateCommon=function(r,s,u,f,d){var g,m,y,b,w,S,M,x,p=this.childAt(0),v=r.hostModel;if(f&&(g=f.emphasisItemStyle,m=f.blurItemStyle,y=f.selectItemStyle,b=f.focus,w=f.blurScope,S=f.labelStatesModels,M=f.hoverScale,x=f.cursorStyle),!f||r.hasItemOption){var T=f&&f.itemModel?f.itemModel:r.getItemModel(s),P=T.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=T.getModel(["select","itemStyle"]).getItemStyle(),m=T.getModel(["blur","itemStyle"]).getItemStyle(),b=P.get("focus"),w=P.get("blurScope"),S=lr(T),M=P.getShallow("scale"),x=T.getShallow("cursor")}var O=r.getItemVisual(s,"symbolRotate");p.attr("rotation",(O||0)*Math.PI/180||0);var R=Ah(r.getItemVisual(s,"symbolOffset"),u);R&&(p.x=R[0],p.y=R[1]),x&&p.attr("cursor",x);var V=r.getItemVisual(s,"style"),B=V.fill;if(p instanceof si){var U=p.style;p.useStyle(ke({image:U.image,x:U.x,y:U.y,width:U.width,height:U.height},V))}else p.useStyle(p.__isEmptyBrush?ke({},V):V),p.style.decal=null,p.setColor(B,d&&d.symbolInnerColor),p.style.strokeNoScale=!0;var j=r.getItemVisual(s,"liftZ"),X=this._z2;null!=j?null==X&&(this._z2=p.z2,p.z2+=j):null!=X&&(p.z2=X,this._z2=null);var K=d&&d.useNameLabel;Mi(p,S,{labelFetcher:v,labelDataIndex:s,defaultText:function(le){return K?r.getName(le):Xf(r,le)},inheritColor:B,defaultOpacity:V.opacity}),this._sizeX=u[0]/2,this._sizeY=u[1]/2;var te=p.ensureState("emphasis");if(te.style=g,p.ensureState("select").style=y,p.ensureState("blur").style=m,M){var ee=Math.max(1.1,3/this._sizeY);te.scaleX=this._sizeX*ee,te.scaleY=this._sizeY*ee}this.setSymbolScale(1),qn(this,b,w)},i.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},i.prototype.fadeOut=function(r,s){var u=this.childAt(0),f=this._seriesModel,d=ht(this).dataIndex,p=s&&s.animation;if(this.silent=u.silent=!0,s&&s.fadeLabel){var v=u.getTextContent();v&&Cf(v,{style:{opacity:0}},f,{dataIndex:d,removeOpt:p,cb:function(){u.removeTextContent()}})}else u.removeTextContent();Cf(u,{style:{opacity:0},scaleX:0,scaleY:0},f,{dataIndex:d,cb:r,removeOpt:p})},i.getSymbolSize=function(r,s){return g_(r.getItemVisual(s,"symbolSize"))},i}(ct);function W_(o,i,r,s){return i&&!isNaN(i[0])&&!isNaN(i[1])&&!(s.isIgnore&&s.isIgnore(r))&&!(s.clipShape&&!s.clipShape.contain(i[0],i[1]))&&"none"!==o.getItemVisual(r,"symbol")}function lG(o){return null!=o&&!at(o)&&(o={isIgnore:o}),o||{}}function nD(o){var i=o.hostModel,r=i.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:i.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:i.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),hoverScale:r.get("scale"),labelStatesModels:lr(i),cursorStyle:i.get("cursor")}}var Y_=function(){function o(i){this.group=new ct,this._SymbolCtor=i||j_}return o.prototype.updateData=function(i,r){r=lG(r);var s=this.group,u=i.hostModel,f=this._data,d=this._SymbolCtor,p=r.disableAnimation,v=nD(i),g={disableAnimation:p},m=r.getSymbolPoint||function(y){return i.getItemLayout(y)};f||s.removeAll(),i.diff(f).add(function(y){var b=m(y);if(W_(i,b,y,r)){var w=new d(i,y,v,g);w.setPosition(b),i.setItemGraphicEl(y,w),s.add(w)}}).update(function(y,b){var w=f.getItemGraphicEl(b),S=m(y);if(W_(i,S,y,r)){var M=i.getItemVisual(y,"symbol")||"circle",x=w&&w.getSymbolType&&w.getSymbolType();if(!w||x&&x!==M)s.remove(w),(w=new d(i,y,v,g)).setPosition(S);else{w.updateData(i,y,v,g);var T={x:S[0],y:S[1]};p?w.attr(T):ln(w,T,u)}s.add(w),i.setItemGraphicEl(y,w)}else s.remove(w)}).remove(function(y){var b=f.getItemGraphicEl(y);b&&b.fadeOut(function(){s.remove(b)})}).execute(),this._getSymbolPoint=m,this._data=i},o.prototype.isPersistent=function(){return!0},o.prototype.updateLayout=function(){var i=this,r=this._data;r&&r.eachItemGraphicEl(function(s,u){var f=i._getSymbolPoint(u);s.setPosition(f),s.markRedraw()})},o.prototype.incrementalPrepareUpdate=function(i){this._seriesScope=nD(i),this._data=null,this.group.removeAll()},o.prototype.incrementalUpdate=function(i,r,s){function u(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}s=lG(s);for(var f=i.start;f0?r=s[0]:s[1]<0&&(r=s[1]),r}(u,r),d=s.dim,p=u.dim,v=i.mapDimension(p),g=i.mapDimension(d),m="x"===p||"radius"===p?1:0,y=Te(o.dimensions,function(S){return i.mapDimension(S)}),b=!1,w=i.getCalculationInfo("stackResultDimension");return ac(i,y[0])&&(b=!0,y[0]=w),ac(i,y[1])&&(b=!0,y[1]=w),{dataDimsForPoint:y,valueStart:f,valueAxisDim:p,baseAxisDim:d,stacked:!!b,valueDim:v,baseDim:g,baseDataOffset:m,stackedOverDimension:i.getCalculationInfo("stackedOverDimension")}}function uG(o,i,r,s){var u=NaN;o.stacked&&(u=r.get(r.getCalculationInfo("stackedOverDimension"),s)),isNaN(u)&&(u=o.valueStart);var f=o.baseDataOffset,d=[];return d[f]=r.get(o.baseDim,s),d[1-f]=u,i.dataToPoint(d)}var cG="undefined"!=typeof Float32Array,nK=cG?Float32Array:Array;function q_(o){return we(o)?cG?new Float32Array(o):o:new nK(o)}var Zf=Math.min,Kf=Math.max;function jh(o,i){return isNaN(o)||isNaN(i)}function rD(o,i,r,s,u,f,d,p,v){for(var g,m,y,b,w,S,M=r,x=0;x=u||M<0)break;if(jh(T,P)){if(v){M+=f;continue}break}if(M===r)o[f>0?"moveTo":"lineTo"](T,P),y=T,b=P;else{var O=T-g,R=P-m;if(O*O+R*R<.5){M+=f;continue}if(d>0){var V=M+f,B=i[2*V],U=i[2*V+1],j=x+1;if(v)for(;jh(B,U)&&j=s||jh(B,U))w=T,S=P;else{K=B-g,$=U-m;var le=T-g,oe=B-T,de=P-m,ge=U-P,_e=void 0,xe=void 0;"x"===p?(_e=Math.abs(le),xe=Math.abs(oe),w=T-_e*d,S=P,te=T+_e*d,ee=P):"y"===p?(_e=Math.abs(de),xe=Math.abs(ge),w=T,S=P-_e*d,te=T,ee=P+_e*d):(_e=Math.sqrt(le*le+de*de),w=T-K*d*(1-(X=(xe=Math.sqrt(oe*oe+ge*ge))/(xe+_e))),S=P-$*d*(1-X),ee=P+$*d*X,te=Zf(te=T+K*d*X,Kf(B,T)),ee=Zf(ee,Kf(U,P)),te=Kf(te,Zf(B,T)),S=P-($=(ee=Kf(ee,Zf(U,P)))-P)*_e/xe,w=Zf(w=T-(K=te-T)*_e/xe,Kf(g,T)),S=Zf(S,Kf(m,P)),te=T+(K=T-(w=Kf(w,Zf(g,T))))*xe/_e,ee=P+($=P-(S=Kf(S,Zf(m,P))))*xe/_e)}o.bezierCurveTo(y,b,w,S,T,P),y=te,b=ee}else o.lineTo(T,P)}g=T,m=P,M+=f}return x}var jL=function(){this.smooth=0,this.smoothConstraint=!0},hG=function(o){function i(r){var s=o.call(this,r)||this;return s.type="ec-polyline",s}return he(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new jL},i.prototype.buildPath=function(r,s){var u=s.points,f=0,d=u.length/2;if(s.connectNulls){for(;d>0&&jh(u[2*d-2],u[2*d-1]);d--);for(;f=0){var R=g?(S-v)*O+v:(w-p)*O+p;return g?[r,R]:[R,r]}p=w,v=S;break;case d.C:w=f[y++],S=f[y++],M=f[y++],x=f[y++],T=f[y++],P=f[y++];var V=g?C0(p,w,M,T,r,m):C0(v,S,x,P,r,m);if(V>0)for(var B=0;B=0)return R=g?pr(v,S,x,P,U):pr(p,w,M,T,U),g?[r,R]:[R,r]}p=T,v=P}}},i}(Vt),pG=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i}(jL),WL=function(o){function i(r){var s=o.call(this,r)||this;return s.type="ec-polygon",s}return he(i,o),i.prototype.getDefaultShape=function(){return new pG},i.prototype.buildPath=function(r,s){var u=s.points,f=s.stackedOnPoints,d=0,p=u.length/2,v=s.smoothMonotone;if(s.connectNulls){for(;p>0&&jh(u[2*p-2],u[2*p-1]);p--);for(;ds)return!1;return!0}(f,i))){var d=i.mapDimension(f.dim),p={};return q(f.getViewLabels(),function(v){var g=f.scale.getRawOrdinalNumber(v.tickValue);p[g]=1}),function(v){return!p.hasOwnProperty(i.get(d,v))}}}}(r,v,d),X=this._data;X&&X.eachItemGraphicEl(function(Je,mt){Je.__temp&&(p.remove(Je),X.setItemGraphicEl(mt,null))}),U||S.remove(),p.add(T);var $,K=!b&&r.get("step");d&&d.getArea&&r.get("clip",!0)&&(null!=($=d.getArea()).width?($.x-=.1,$.y-=.1,$.width+=.2,$.height+=.2):$.r0&&($.r0-=.5,$.r+=.5)),this._clipShapeForSymbol=$;var te=function(o,i){var r=o.getVisual("visualMeta");if(r&&r.length&&o.count()&&"cartesian2d"===i.type){for(var s,u,f=r.length-1;f>=0;f--){var d=o.getDimensionInfo(r[f].dimension);if("x"===(s=d&&d.coordDim)||"y"===s){u=r[f];break}}if(u){var p=i.getAxis(s),v=p.scale.getExtent(),g=Te(u.stops,function(T){var P=p.toGlobalCoord(p.dataToCoord(T.value));return isNaN(P)||isFinite(P)||(P=p.toGlobalCoord(p.dataToCoord(v[+(P<0)]))),{offset:0,coord:P,color:T.color}}),m=g.length,y=u.outerColors.slice();m&&g[0].coord>g[m-1].coord&&(g.reverse(),y.reverse());var w=g[0].coord-10,S=g[m-1].coord+10,M=S-w;if(M<.001)return"transparent";q(g,function(T){T.offset=(T.coord-w)/M}),g.push({offset:m?g[m-1].offset:.5,color:y[1]||"transparent"}),g.unshift({offset:m?g[0].offset:.5,color:y[0]||"transparent"});var x=new xv(0,0,0,0,g,!0);return x[s]=w,x[s+"2"]=S,x}}}(v,d)||v.getVisual("style")[v.getVisual("drawType")];M&&w.type===d.type&&K===this._step?(O&&!x?x=this._newPolygon(y,B):x&&!O&&(T.remove(x),x=this._polygon=null),b||this._initOrUpdateEndLabel(r,d,wf(te)),T.setClipPath(wG(this,d,!1,r)),U&&S.updateData(v,{isIgnore:j,clipShape:$,disableAnimation:!0,getSymbolPoint:function(mt){return[y[2*mt],y[2*mt+1]]}}),(!YL(this._stackedOnPoints,B)||!YL(this._points,y))&&(P?this._doUpdateAnimation(v,B,d,u,K,R):(K&&(y=$f(y,d,K),B&&(B=$f(B,d,K))),M.setShape({points:y}),x&&x.setShape({points:y,stackedOnPoints:B})))):(U&&S.updateData(v,{isIgnore:j,clipShape:$,disableAnimation:!0,getSymbolPoint:function(mt){return[y[2*mt],y[2*mt+1]]}}),P&&this._initSymbolLabelAnimation(v,d,$),K&&(y=$f(y,d,K),B&&(B=$f(B,d,K))),M=this._newPolyline(y),O&&(x=this._newPolygon(y,B)),b||this._initOrUpdateEndLabel(r,d,wf(te)),T.setClipPath(wG(this,d,!0,r)));var ee=r.get(["emphasis","focus"]),le=r.get(["emphasis","blurScope"]);M.useStyle(tt(g.getLineStyle(),{fill:"none",stroke:te,lineJoin:"bevel"})),ki(M,r,"lineStyle"),M.style.lineWidth>0&&"bolder"===r.get(["emphasis","lineStyle","width"])&&(M.getState("emphasis").style.lineWidth=+M.style.lineWidth+1),ht(M).seriesIndex=r.seriesIndex,qn(M,ee,le);var de=ks(r.get("smooth")),ge=r.get("smoothMonotone"),_e=r.get("connectNulls");if(M.setShape({smooth:de,smoothMonotone:ge,connectNulls:_e}),x){var xe=v.getCalculationInfo("stackedOnSeries"),Me=0;x.useStyle(tt(m.getAreaStyle(),{fill:te,opacity:.7,lineJoin:"bevel",decal:v.getVisual("style").decal})),xe&&(Me=ks(xe.get("smooth"))),x.setShape({smooth:de,stackedOnSmooth:Me,smoothMonotone:ge,connectNulls:_e}),ki(x,r,"areaStyle"),ht(x).seriesIndex=r.seriesIndex,qn(x,ee,le)}var ze=function(mt){f._changePolyState(mt)};v.eachItemGraphicEl(function(Je){Je&&(Je.onHoverStateChange=ze)}),this._polyline.onHoverStateChange=ze,this._data=v,this._coordSys=d,this._stackedOnPoints=B,this._points=y,this._step=K,this._valueOrigin=R},i.prototype.dispose=function(){},i.prototype.highlight=function(r,s,u,f){var d=r.getData(),p=ga(d,f);if(this._changePolyState("emphasis"),!(p instanceof Array)&&null!=p&&p>=0){var v=d.getLayout("points"),g=d.getItemGraphicEl(p);if(!g){var m=v[2*p],y=v[2*p+1];if(isNaN(m)||isNaN(y)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(m,y))return;var b=r.get("zlevel"),w=r.get("z");(g=new j_(d,p)).x=m,g.y=y,g.setZ(b,w);var S=g.getSymbolPath().getTextContent();S&&(S.zlevel=b,S.z=w,S.z2=this._polyline.z2+1),g.__temp=!0,d.setItemGraphicEl(p,g),g.stopSymbolAnimation(!0),this.group.add(g)}g.highlight()}else Vn.prototype.highlight.call(this,r,s,u,f)},i.prototype.downplay=function(r,s,u,f){var d=r.getData(),p=ga(d,f);if(this._changePolyState("normal"),null!=p&&p>=0){var v=d.getItemGraphicEl(p);v&&(v.__temp?(d.setItemGraphicEl(p,null),this.group.remove(v)):v.downplay())}else Vn.prototype.downplay.call(this,r,s,u,f)},i.prototype._changePolyState=function(r){var s=this._polygon;Rm(this._polyline,r),s&&Rm(s,r)},i.prototype._newPolyline=function(r){var s=this._polyline;return s&&this._lineGroup.remove(s),s=new hG({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(s),this._polyline=s,s},i.prototype._newPolygon=function(r,s){var u=this._polygon;return u&&this._lineGroup.remove(u),u=new WL({shape:{points:r,stackedOnPoints:s},segmentIgnoreThreshold:2}),this._lineGroup.add(u),this._polygon=u,u},i.prototype._initSymbolLabelAnimation=function(r,s,u){var f,d,p=s.getBaseAxis(),v=p.inverse;"cartesian2d"===s.type?(f=p.isHorizontal(),d=!1):"polar"===s.type&&(f="angle"===p.dim,d=!0);var g=r.hostModel,m=g.get("animationDuration");"function"==typeof m&&(m=m(null));var y=g.get("animationDelay")||0,b="function"==typeof y?y(null):y;r.eachItemGraphicEl(function(w,S){var M=w;if(M){var T=void 0,P=void 0,O=void 0;if(u)if(d){var R=u,V=s.pointToCoord([w.x,w.y]);f?(T=R.startAngle,P=R.endAngle,O=-V[1]/180*Math.PI):(T=R.r0,P=R.r,O=V[0])}else f?(T=u.x,P=u.x+u.width,O=w.x):(T=u.y+u.height,P=u.y,O=w.y);var U=P===T?0:(O-T)/(P-T);v&&(U=1-U);var j="function"==typeof y?y(S):m*U+b,X=M.getSymbolPath(),K=X.getTextContent();M.attr({scaleX:0,scaleY:0}),M.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:j}),K&&K.animateFrom({style:{opacity:0}},{duration:300,delay:j}),X.disableLabelAnimation=!0}})},i.prototype._initOrUpdateEndLabel=function(r,s,u){var f=r.getModel("endLabel");if(iD(r)){var d=r.getData(),p=this._polyline,v=this._endLabel;v||((v=this._endLabel=new fn({z2:200})).ignoreClip=!0,p.setTextContent(this._endLabel),p.disableLabelAnimation=!0);var g=function(o){for(var i=o.length/2;i>0&&bG(o[2*i-2],o[2*i-1]);i--);return i-1}(d.getLayout("points"));g>=0&&(Mi(p,lr(r,"endLabel"),{inheritColor:u,labelFetcher:r,labelDataIndex:g,defaultText:function(y,b,w){return null!=w?Mw(d,w):Xf(d,y)},enableTextSetter:!0},function(o,i){var r=i.getBaseAxis(),s=r.isHorizontal(),u=r.inverse,f=s?u?"right":"left":"center",d=s?"middle":u?"top":"bottom";return{normal:{align:o.get("align")||f,verticalAlign:o.get("verticalAlign")||d}}}(f,s)),p.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},i.prototype._endLabelOnDuring=function(r,s,u,f,d,p,v){var g=this._endLabel,m=this._polyline;if(g){r<1&&null==f.originalX&&(f.originalX=g.x,f.originalY=g.y);var y=u.getLayout("points"),b=u.hostModel,w=b.get("connectNulls"),S=p.get("precision"),M=p.get("distance")||0,x=v.getBaseAxis(),T=x.isHorizontal(),P=x.inverse,O=s.shape,R=P?T?O.x:O.y+O.height:T?O.x+O.width:O.y,V=(T?M:0)*(P?-1:1),B=(T?0:-M)*(P?-1:1),U=T?"x":"y",j=function(o,i,r){for(var f,d,s=o.length/2,u="x"===r?0:1,p=0,v=-1,g=0;g=i||f>=i&&d<=i){v=g;break}p=g,f=d}return{range:[p,v],t:(i-f)/(d-f)}}(y,R,U),X=j.range,K=X[1]-X[0],$=void 0;if(K>=1){if(K>1&&!w){var te=ZL(y,X[0]);g.attr({x:te[0]+V,y:te[1]+B}),d&&($=b.getRawValue(X[0]))}else{(te=m.getPointOn(R,U))&&g.attr({x:te[0]+V,y:te[1]+B});var ee=b.getRawValue(X[0]),le=b.getRawValue(X[1]);d&&($=Bd(u,S,ee,le,j.t))}f.lastFrameIndex=X[0]}else{var oe=1===r||f.lastFrameIndex>0?X[0]:0;te=ZL(y,oe),d&&($=b.getRawValue(oe)),g.attr({x:te[0]+V,y:te[1]+B})}d&&W0(g).setLabelText($)}},i.prototype._doUpdateAnimation=function(r,s,u,f,d,p){var v=this._polyline,g=this._polygon,m=r.hostModel,y=function(o,i,r,s,u,f,d,p){for(var v=function(o,i){var r=[];return i.diff(o).add(function(s){r.push({cmd:"+",idx:s})}).update(function(s,u){r.push({cmd:"=",idx:u,idx1:s})}).remove(function(s){r.push({cmd:"-",idx:s})}).execute(),r}(o,i),g=[],m=[],y=[],b=[],w=[],S=[],M=[],x=GL(u,i,d),T=o.getLayout("points")||[],P=i.getLayout("points")||[],O=0;O3e3||g&&XL(w,M)>3e3)return v.setShape({points:S}),void(g&&g.setShape({points:S,stackedOnPoints:M}));v.shape.__points=y.current,v.shape.points=b;var x={shape:{points:S}};y.current!==b&&(x.shape.__points=y.next),v.stopAnimation(),ln(v,x,m),g&&(g.setShape({points:b,stackedOnPoints:w}),g.stopAnimation(),ln(g,{shape:{stackedOnPoints:M}},m),v.shape.points!==g.shape.points&&(g.shape.points=v.shape.points));for(var T=[],P=y.status,O=0;Or&&(r=i[s]);return isFinite(r)?r:NaN},min:function(i){for(var r=1/0,s=0;s10&&"cartesian2d"===p.type&&d){var g=p.getBaseAxis(),m=p.getOtherAxis(g),y=g.getExtent(),b=u.getDevicePixelRatio(),w=Math.abs(y[1]-y[0])*(b||1),S=Math.round(v/w);if(S>1){"lttb"===d&&r.setData(f.lttbDownSample(f.mapDimension(m.dim),1/S));var M=void 0;"string"==typeof d?M=aD[d]:"function"==typeof d&&(M=d),M&&r.setData(f.downSample(f.mapDimension(m.dim),1/S,M,kG))}}}}}var xG=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.getInitialData=function(r,s){return gl(null,this,{useEncodeDefaulter:!0})},i.prototype.getMarkerPosition=function(r){var s=this.coordinateSystem;if(s&&s.clampData){var u=s.dataToPoint(s.clampData(r)),f=this.getData(),d=f.getLayout("offset"),p=f.getLayout("size");return u[s.getBaseAxis().isHorizontal()?0:1]+=d+p/2,u}return[NaN,NaN]},i.type="series.__base_bar__",i.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},i}(vt);vt.registerClass(xG);var Aw=xG,DG=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.getInitialData=function(){return gl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},i.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},i.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),s=this.get("largeThreshold");return s>r&&(r=s),r},i.prototype.brushSelector=function(r,s,u){return u.rect(s.getItemLayout(r))},i.type="series.bar",i.dependencies=["grid","polar"],i.defaultOption=rh(Aw.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),i}(Aw),Cl=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Z_=function(o){function i(r){var s=o.call(this,r)||this;return s.type="sausage",s}return he(i,o),i.prototype.getDefaultShape=function(){return new Cl},i.prototype.buildPath=function(r,s){var u=s.cx,f=s.cy,d=Math.max(s.r0||0,0),p=Math.max(s.r,0),v=.5*(p-d),g=d+v,m=s.startAngle,y=s.endAngle,b=s.clockwise,w=Math.cos(m),S=Math.sin(m),M=Math.cos(y),x=Math.sin(y);(b?y-m<2*Math.PI:m-y<2*Math.PI)&&(r.moveTo(w*d+u,S*d+f),r.arc(w*g+u,S*g+f,v,-Math.PI+m,m,!b)),r.arc(u,f,p,m,y,!b),r.moveTo(M*p+u,x*p+f),r.arc(M*g+u,x*g+f,v,y-2*Math.PI,y-Math.PI,!b),0!==d&&(r.arc(u,f,d,y,m,b),r.moveTo(w*d+u,x*d+f)),r.closePath()},i}(Vt);function K_(o,i,r){return i*Math.sin(o)*(r?-1:1)}function $_(o,i,r){return i*Math.cos(o)*(r?1:-1)}var qv=[0,0],Q_=Math.max,J_=Math.min,Pw=function(o){function i(){var r=o.call(this)||this;return r.type=i.type,r._isFirstFrame=!0,r}return he(i,o),i.prototype.render=function(r,s,u,f){this._model=r,this._removeOnRenderedListener(u),this._updateDrawMode(r);var d=r.get("coordinateSystem");("cartesian2d"===d||"polar"===d)&&(this._isLargeDraw?this._renderLarge(r,s,u):this._renderNormal(r,s,u,f))},i.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},i.prototype.incrementalRender=function(r,s){this._incrementalRenderLarge(r,s)},i.prototype._updateDrawMode=function(r){var s=r.pipelineContext.large;(null==this._isLargeDraw||s!==this._isLargeDraw)&&(this._isLargeDraw=s,this._clear())},i.prototype._renderNormal=function(r,s,u,f){var y,d=this.group,p=r.getData(),v=this._data,g=r.coordinateSystem,m=g.getBaseAxis();"cartesian2d"===g.type?y=m.isHorizontal():"polar"===g.type&&(y="angle"===m.dim);var b=r.isAnimationEnabled()?r:null,w=function(o,i){var r=o.get("realtimeSort",!0),s=i.getBaseAxis();if(r&&"category"===s.type&&"cartesian2d"===i.type)return{baseAxis:s,otherAxis:i.getOtherAxis(s)}}(r,g);w&&this._enableRealtimeSort(w,p,u);var S=r.get("clip",!0)||w,M=function(o,i){var r=o.getArea&&o.getArea();if(uc(o,"cartesian2d")){var s=o.getBaseAxis();if("category"!==s.type||!s.onBand){var u=i.getLayout("bandWidth");s.isHorizontal()?(r.x-=u,r.width+=2*u):(r.y-=u,r.height+=2*u)}}return r}(g,p);d.removeClipPath();var x=r.get("roundCap",!0),T=r.get("showBackground",!0),P=r.getModel("backgroundStyle"),O=P.get("borderRadius")||0,R=[],V=this._backgroundEls,B=f&&f.isInitSort,U=f&&"changeAxisOrder"===f.type;function j($){var te=Xv[g.type](p,$),ee=function(o,i,r){return new("polar"===o.type?ir:sn)({shape:tF(i,r,o),silent:!0,z2:0})}(g,y,te);return ee.useStyle(P.getItemStyle()),"cartesian2d"===g.type&&ee.setShape("r",O),R[$]=ee,ee}p.diff(v).add(function($){var te=p.getItemModel($),ee=Xv[g.type](p,$,te);if(T&&j($),p.hasValue($)&&JL[g.type](ee)){var le=!1;S&&(le=oD[g.type](M,ee));var oe=sD[g.type](r,p,$,ee,y,b,m.model,!1,x);Zv(oe,p,$,te,ee,r,y,"polar"===g.type),B?oe.attr({shape:ee}):w?QL(w,b,oe,ee,$,y,!1,!1):br(oe,{shape:ee},r,$),p.setItemGraphicEl($,oe),d.add(oe),oe.ignore=le}}).update(function($,te){var ee=p.getItemModel($),le=Xv[g.type](p,$,ee);if(T){var oe=void 0;0===V.length?oe=j(te):((oe=V[te]).useStyle(P.getItemStyle()),"cartesian2d"===g.type&&oe.setShape("r",O),R[$]=oe);var de=Xv[g.type](p,$);ln(oe,{shape:tF(y,de,g)},b,$)}var _e=v.getItemGraphicEl(te);if(p.hasValue($)&&JL[g.type](le)){var xe=!1;S&&(xe=oD[g.type](M,le))&&d.remove(_e),_e?el(_e):_e=sD[g.type](r,p,$,le,y,b,m.model,!!_e,x),U||Zv(_e,p,$,ee,le,r,y,"polar"===g.type),B?_e.attr({shape:le}):w?QL(w,b,_e,le,$,y,!0,U):ln(_e,{shape:le},r,$,null),p.setItemGraphicEl($,_e),_e.ignore=xe,d.add(_e)}else d.remove(_e)}).remove(function($){var te=v.getItemGraphicEl($);te&&Fm(te,r,$)}).execute();var X=this._backgroundGroup||(this._backgroundGroup=new ct);X.removeAll();for(var K=0;Kp)return!0;p=y}return!1},i.prototype._isOrderDifferentInView=function(r,s){for(var u=s.scale,f=u.getExtent(),d=Math.max(0,f[0]),p=Math.min(f[1],u.getOrdinalMeta().categories.length-1);d<=p;++d)if(r.ordinalNumbers[d]!==u.getRawOrdinalNumber(d))return!0},i.prototype._updateSortWithinSameData=function(r,s,u,f){if(this._isOrderChangedWithinSameData(r,s,u)){var d=this._dataSort(r,u,s);this._isOrderDifferentInView(d,u)&&(this._removeOnRenderedListener(f),f.dispatchAction({type:"changeAxisOrder",componentType:u.dim+"Axis",axisId:u.index,sortInfo:d}))}},i.prototype._dispatchInitSort=function(r,s,u){var f=s.baseAxis,d=this._dataSort(r,f,function(p){return r.get(r.mapDimension(s.otherAxis.dim),p)});u.dispatchAction({type:"changeAxisOrder",componentType:f.dim+"Axis",isInitSort:!0,axisId:f.index,sortInfo:d})},i.prototype.remove=function(r,s){this._clear(this._model),this._removeOnRenderedListener(s)},i.prototype.dispose=function(r,s){this._removeOnRenderedListener(s)},i.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},i.prototype._clear=function(r){var s=this.group,u=this._data;r&&r.isAnimationEnabled()&&u&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],u.eachItemGraphicEl(function(f){Fm(f,r,ht(f).dataIndex)})):s.removeAll(),this._data=null,this._isFirstFrame=!0},i.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},i.type="bar",i}(Vn),oD={cartesian2d:function(i,r){var s=r.width<0?-1:1,u=r.height<0?-1:1;s<0&&(r.x+=r.width,r.width=-r.width),u<0&&(r.y+=r.height,r.height=-r.height);var f=i.x+i.width,d=i.y+i.height,p=Q_(r.x,i.x),v=J_(r.x+r.width,f),g=Q_(r.y,i.y),m=J_(r.y+r.height,d),y=vf?v:p,r.y=b&&g>d?m:g,r.width=y?0:v-p,r.height=b?0:m-g,s<0&&(r.x+=r.width,r.width=-r.width),u<0&&(r.y+=r.height,r.height=-r.height),y||b},polar:function(i,r){var s=r.r0<=r.r?1:-1;if(s<0){var u=r.r;r.r=r.r0,r.r0=u}var f=J_(r.r,i.r),d=Q_(r.r0,i.r0);r.r=f,r.r0=d;var p=f-d<0;return s<0&&(u=r.r,r.r=r.r0,r.r0=u),p}},sD={cartesian2d:function(i,r,s,u,f,d,p,v,g){var m=new sn({shape:ke({},u),z2:1});return m.__dataIndex=s,m.name="item",d&&(m.shape[f?"height":"width"]=0),m},polar:function(i,r,s,u,f,d,p,v,g){var y=!f&&g?Z_:ir,b=new y({shape:tt({clockwise:u.startAngle0?1:-1,p=u.height>0?1:-1;return{x:u.x+d*f/2,y:u.y+p*f/2,width:u.width-d*f,height:u.height-p*f}},polar:function(i,r,s){var u=i.getItemLayout(r);return{cx:u.cx,cy:u.cy,r0:u.r0,r:u.r,startAngle:u.startAngle,endAngle:u.endAngle}}};function Ma(o){return function(i){var r=i?"Arc":"Angle";return function(s){switch(s){case"start":case"insideStart":case"end":case"insideEnd":return s+r;default:return s}}}(o)}function Zv(o,i,r,s,u,f,d,p){var v=i.getItemVisual(r,"style");p||o.setShape("r",s.get(["itemStyle","borderRadius"])||0),o.useStyle(v);var g=s.getShallow("cursor");g&&o.attr("cursor",g);var m=p?d?u.r>=u.r0?"endArc":"startArc":u.endAngle>=u.startAngle?"endAngle":"startAngle":d?u.height>=0?"bottom":"top":u.width>=0?"right":"left",y=lr(s);Mi(o,y,{labelFetcher:f,labelDataIndex:r,defaultText:Xf(f.getData(),r),inheritColor:v.fill,defaultOpacity:v.opacity,defaultOutsidePosition:m});var b=o.getTextContent();if(p&&b){var w=s.get(["label","position"]);o.textConfig.inside="middle"===w||null,function(o,i,r,s){if("number"!=typeof s)if(we(i))o.setTextConfig({rotation:0});else{var v,u=o.shape,f=u.clockwise?u.startAngle:u.endAngle,d=u.clockwise?u.endAngle:u.startAngle,p=(f+d)/2,g=r(i);switch(g){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":v=p;break;case"startAngle":case"insideStartAngle":v=f;break;case"endAngle":case"insideEndAngle":v=d;break;default:return void o.setTextConfig({rotation:0})}var m=1.5*Math.PI-v;"middle"===g&&m>Math.PI/2&&m<1.5*Math.PI&&(m-=Math.PI),o.setTextConfig({rotation:m})}else o.setTextConfig({rotation:s})}(o,"outside"===w?m:w,Ma(d),s.get(["label","rotate"]))}tu(b,y,f.getRawValue(r),function(M){return Mw(i,M)});var S=s.getModel(["emphasis"]);qn(o,S.get("focus"),S.get("blurScope")),ki(o,s),function(o){return null!=o.startAngle&&null!=o.endAngle&&o.startAngle===o.endAngle}(u)&&(o.style.fill="none",o.style.stroke="none",q(o.states,function(M){M.style&&(M.style.fill=M.style.stroke="none")}))}var eF=function(){},ey=function(o){function i(r){var s=o.call(this,r)||this;return s.type="largeBar",s}return he(i,o),i.prototype.getDefaultShape=function(){return new eF},i.prototype.buildPath=function(r,s){for(var u=s.points,f=this.__startPoint,d=this.__baseDimIdx,p=0;p=y&&x<=b&&(v<=T?m>=v&&m<=T:m>=T&&m<=v))return d[w]}return-1}(this,o.offsetX,o.offsetY);ht(this).dataIndex=r>=0?r:null},30,!1);function tF(o,i,r){if(uc(r,"cartesian2d")){var s=i,u=r.getArea();return{x:o?s.x:u.x,y:o?u.y:s.y,width:o?s.width:u.width,height:o?u.height:s.height}}return{cx:(u=r.getArea()).cx,cy:u.cy,r0:o?u.r0:i.r0,r:o?u.r:i.r,startAngle:o?i.startAngle:0,endAngle:o?i.endAngle:2*Math.PI}}var nF=Pw,Rw=2*Math.PI,rF=Math.PI/180;function cc(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}function Kv(o,i){var r=cc(o,i),s=o.get("center"),u=o.get("radius");we(u)||(u=[0,u]),we(s)||(s=[s,s]);var f=Fe(r.width,i.getWidth()),d=Fe(r.height,i.getHeight()),p=Math.min(f,d);return{cx:Fe(s[0],f)+r.x,cy:Fe(s[1],d)+r.y,r0:Fe(u[0],p/2),r:Fe(u[1],p/2)}}function fD(o,i,r){i.eachSeriesByType(o,function(s){var u=s.getData(),f=u.mapDimension("value"),d=cc(s,r),p=Kv(s,r),v=p.cx,g=p.cy,m=p.r,y=p.r0,b=-s.get("startAngle")*rF,w=s.get("minAngle")*rF,S=0;u.each(f,function(K){!isNaN(K)&&S++});var M=u.getSum(f),x=Math.PI/(M||S)*2,T=s.get("clockwise"),P=s.get("roseType"),O=s.get("stillShowZeroSum"),R=u.getDataExtent(f);R[0]=0;var V=Rw,B=0,U=b,j=T?1:-1;if(u.setLayout({viewRect:d,r:m}),u.each(f,function(K,$){var te;if(isNaN(K))u.setItemLayout($,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:T,cx:v,cy:g,r0:y,r:P?NaN:m});else{(te="area"!==P?0===M&&O?x:K*x:Rw/S)r?T:x,V=Math.abs(O.label.y-r);if(V>R.maxY){var B=O.label.x-i-O.len2*u,U=s+O.len,j=Math.abs(B)0){for(var m=d.getItemLayout(0),y=1;isNaN(m&&m.startAngle)&&y0?"right":"left":Je>0?"left":"right"}var Vr,Ol=te.get("rotate");if("number"==typeof Ol)Vr=Ol*(Math.PI/180);else if("center"===ee)Vr=0;else{var _p=Je<0?-ze+Math.PI:-ze;"radial"===Ol||!0===Ol?Vr=_p:"tangential"===Ol&&"outside"!==ee&&"outer"!==ee?(Vr=_p+Math.PI/2)>Math.PI/2&&(Vr-=Math.PI):Vr=0}if(f=!!Vr,X.x=Qt,X.y=Ut,X.rotation=Vr,X.setStyle({verticalAlign:"middle"}),Gt){X.setStyle({align:Yt});var x5=X.states.select;x5&&(x5.x+=X.x,x5.y+=X.y)}else{var ZS=X.getBoundingRect().clone();ZS.applyTransform(X.getComputedTransform());var Cq=(X.style.margin||0)+2.1;ZS.y-=Cq/2,ZS.height+=Cq,r.push({label:X,labelLine:K,position:ee,len:xe,len2:Me,minTurnAngle:_e.get("minTurnAngle"),maxSurfaceAngle:_e.get("maxSurfaceAngle"),surfaceNormal:new Tt(Je,mt),linePoints:xt,textAlign:Yt,labelDistance:le,labelAlignTo:oe,edgeDistance:de,bleedMargin:ge,rect:ZS})}U.setTextConfig({inside:Gt})}}),!f&&o.get("avoidLabelOverlap")&&function(o,i,r,s,u,f,d,p){for(var v=[],g=[],m=Number.MAX_VALUE,y=-Number.MAX_VALUE,b=0;b=f.r0}},i.type="pie",i}(Vn);function po(o,i,r){i=we(i)&&{coordDimensions:i}||ke({encodeDefine:o.getEncode()},i);var s=o.getSource(),u=Fv(s,i).dimensions,f=new Ga(u,o);return f.initData(s,r),f}var mu=function(){function o(i,r){this._getDataWithEncodedVisual=i,this._getRawData=r}return o.prototype.getAllNames=function(){var i=this._getRawData();return i.mapArray(i.getName)},o.prototype.containName=function(i){return this._getRawData().indexOfName(i)>=0},o.prototype.indexOfName=function(i){return this._getDataWithEncodedVisual().indexOfName(i)},o.prototype.getItemVisual=function(i,r){return this._getDataWithEncodedVisual().getItemVisual(i,r)},o}(),$v=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.init=function(r){o.prototype.init.apply(this,arguments),this.legendVisualProvider=new mu(Ye(this.getData,this),Ye(this.getRawData,this)),this._defaultLabelLine(r)},i.prototype.mergeOption=function(){o.prototype.mergeOption.apply(this,arguments)},i.prototype.getInitialData=function(){return po(this,{coordDimensions:["value"],encodeDefaulter:St(lv,this)})},i.prototype.getDataParams=function(r){var s=this.getData(),u=o.prototype.getDataParams.call(this,r),f=[];return s.each(s.mapDimension("value"),function(d){f.push(d)}),u.percent=TO(f,r,s.hostModel.get("percentPrecision")),u.$vars.push("percent"),u},i.prototype._defaultLabelLine=function(r){Nd(r,"labelLine",["show"]);var s=r.labelLine,u=r.emphasis.labelLine;s.show=s.show&&r.label.show,u.show=u.show&&r.emphasis.label.show},i.type="series.pie",i.defaultOption={zlevel:0,z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},i}(vt),sF=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r}return he(i,o),i.prototype.getInitialData=function(r,s){return gl(null,this,{useEncodeDefaulter:!0})},i.prototype.getProgressive=function(){var r=this.option.progressive;return null==r?this.option.large?5e3:this.get("progressive"):r},i.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return null==r?this.option.large?1e4:this.get("progressiveThreshold"):r},i.prototype.brushSelector=function(r,s,u){return u.point(s.getItemLayout(r))},i.type="series.scatter",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},i}(vt),lF=function(){},Fw=function(o){function i(r){return o.call(this,r)||this}return he(i,o),i.prototype.getDefaultShape=function(){return new lF},i.prototype.buildPath=function(r,s){var u=s.points,f=s.size,d=this.symbolProxy,p=d.shape,v=r.getContext?r.getContext():r;if(v&&f[0]<4)this._ctx=v;else{this._ctx=null;for(var m=0;m=0;g--){var m=2*g,y=f[m]-p/2,b=f[m+1]-v/2;if(r>=y&&s>=b&&r<=y+p&&s<=b+v)return g}return-1},i}(Vt),sK=function(){function o(){this.group=new ct}return o.prototype.isPersistent=function(){return!this._incremental},o.prototype.updateData=function(i,r){this.group.removeAll();var s=new Fw({rectHover:!0,cursor:"default"});s.setShape({points:i.getLayout("points")}),this._setCommon(s,i,!1,r),this.group.add(s),this._incremental=null},o.prototype.updateLayout=function(i){if(!this._incremental){var r=i.getLayout("points");this.group.eachChild(function(s){null!=s.startIndex&&(r=new Float32Array(r.buffer,4*s.startIndex*2,2*(s.endIndex-s.startIndex))),s.setShape("points",r)})}},o.prototype.incrementalPrepareUpdate=function(i){this.group.removeAll(),this._clearIncremental(),i.count()>2e6?(this._incremental||(this._incremental=new Tv({silent:!0})),this.group.add(this._incremental)):this._incremental=null},o.prototype.incrementalUpdate=function(i,r,s){var u;this._incremental?(u=new Fw,this._incremental.addDisplayable(u,!0)):((u=new Fw({rectHover:!0,cursor:"default",startIndex:i.start,endIndex:i.end})).incremental=!0,this.group.add(u)),u.setShape({points:r.getLayout("points")}),this._setCommon(u,r,!!this._incremental,s)},o.prototype._setCommon=function(i,r,s,u){var f=r.hostModel;u=u||{};var d=r.getVisual("symbolSize");i.setShape("size",d instanceof Array?d:[d,d]),i.softClipShape=u.clipShape||null,i.symbolProxy=Ir(r.getVisual("symbol"),0,0,0,0),i.setColor=i.symbolProxy.setColor;var p=i.shape.size[0]<4;i.useStyle(f.getModel("itemStyle").getItemStyle(p?["color","shadowBlur","shadowColor"]:["color"]));var v=r.getVisual("style"),g=v&&v.fill;if(g&&i.setColor(g),!s){var m=ht(i);m.seriesIndex=f.seriesIndex,i.on("mousemove",function(y){m.dataIndex=null;var b=i.findDataIndex(y.offsetX,y.offsetY);b>=0&&(m.dataIndex=b+(i.startIndex||0))})}},o.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},o.prototype._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()},o}(),uK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData();this._updateSymbolDraw(f,r).updateData(f,{clipShape:this._getClipShape(r)}),this._finished=!0},i.prototype.incrementalPrepareRender=function(r,s,u){var f=r.getData();this._updateSymbolDraw(f,r).incrementalPrepareUpdate(f),this._finished=!1},i.prototype.incrementalRender=function(r,s,u){this._symbolDraw.incrementalUpdate(r,s.getData(),{clipShape:this._getClipShape(s)}),this._finished=r.end===s.getData().count()},i.prototype.updateTransform=function(r,s,u){var f=r.getData();if(this.group.dirty(),!this._finished||f.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var d=Dw("").reset(r,s,u);d.progress&&d.progress({start:0,end:f.count(),count:f.count()},f),this._symbolDraw.updateLayout(f)},i.prototype._getClipShape=function(r){var s=r.coordinateSystem,u=s&&s.getArea&&s.getArea();return r.get("clip",!0)?u:null},i.prototype._updateSymbolDraw=function(r,s){var u=this._symbolDraw,d=s.pipelineContext.large;return(!u||d!==this._isLargeDraw)&&(u&&u.remove(),u=this._symbolDraw=d?new sK:new Y_,this._isLargeDraw=d,this.group.removeAll()),this.group.add(u.group),u},i.prototype.remove=function(r,s){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},i.prototype.dispose=function(){},i.type="scatter",i}(Vn),WG=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.type="grid",i.dependencies=["xAxis","yAxis"],i.layoutMode="box",i.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},i}(qt),vD=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ai).models[0]},i.type="cartesian2dAxis",i}(qt);qr(vD,zv);var YG={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},cK=He({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},YG),uF=He({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},YG),cF={category:cK,value:uF,time:He({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},uF),log:tt({scale:!0,logBase:10},uF)},hK={value:1,category:1,time:1,log:1};function ry(o,i,r,s){q(hK,function(u,f){var d=He(He({},cF[f],!0),s,!0),p=function(v){function g(){var m=null!==v&&v.apply(this,arguments)||this;return m.type=i+"Axis."+f,m}return he(g,v),g.prototype.mergeDefaultAndTheme=function(m,y){var b=iv(this),w=b?av(m):{};He(m,y.getTheme().get(f+"Axis")),He(m,this.getDefaultOption()),m.type=qG(m),b&&kf(m,w,b)},g.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Gf.createByAxisModel(this))},g.prototype.getCategories=function(m){var y=this.option;if("category"===y.type)return m?y.data:this.__ordinalMeta.categories},g.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},g.type=i+"Axis."+f,g.defaultOption=d,g}(r);o.registerComponentModel(p)}),o.registerSubTypeDefaulter(i+"Axis",qG)}function qG(o){return o.type||(o.data?"category":"value")}var pK=function(){function o(i){this.type="cartesian",this._dimList=[],this._axes={},this.name=i||""}return o.prototype.getAxis=function(i){return this._axes[i]},o.prototype.getAxes=function(){return Te(this._dimList,function(i){return this._axes[i]},this)},o.prototype.getAxesByScale=function(i){return i=i.toLowerCase(),Yn(this.getAxes(),function(r){return r.scale.type===i})},o.prototype.addAxis=function(i){var r=i.dim;this._axes[r]=i,this._dimList.push(r)},o}(),fF=["x","y"];function ZG(o){return"interval"===o.type||"time"===o.type}var gK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=fF,r}return he(i,o),i.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,s=this.getAxis("y").scale;if(ZG(r)&&ZG(s)){var u=r.getExtent(),f=s.getExtent(),d=this.dataToPoint([u[0],f[0]]),p=this.dataToPoint([u[1],f[1]]),v=u[1]-u[0],g=f[1]-f[0];if(v&&g){var m=(p[0]-d[0])/v,y=(p[1]-d[1])/g,S=this._transform=[m,0,0,y,d[0]-u[0]*m,d[1]-f[0]*y];this._invTransform=Gl([],S)}}},i.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},i.prototype.containPoint=function(r){var s=this.getAxis("x"),u=this.getAxis("y");return s.contain(s.toLocalCoord(r[0]))&&u.contain(u.toLocalCoord(r[1]))},i.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},i.prototype.dataToPoint=function(r,s,u){u=u||[];var f=r[0],d=r[1];if(this._transform&&null!=f&&isFinite(f)&&null!=d&&isFinite(d))return _i(u,r,this._transform);var p=this.getAxis("x"),v=this.getAxis("y");return u[0]=p.toGlobalCoord(p.dataToCoord(f,s)),u[1]=v.toGlobalCoord(v.dataToCoord(d,s)),u},i.prototype.clampData=function(r,s){var u=this.getAxis("x").scale,f=this.getAxis("y").scale,d=u.getExtent(),p=f.getExtent(),v=u.parse(r[0]),g=f.parse(r[1]);return(s=s||[])[0]=Math.min(Math.max(Math.min(d[0],d[1]),v),Math.max(d[0],d[1])),s[1]=Math.min(Math.max(Math.min(p[0],p[1]),g),Math.max(p[0],p[1])),s},i.prototype.pointToData=function(r,s){var u=[];if(this._invTransform)return _i(u,r,this._invTransform);var f=this.getAxis("x"),d=this.getAxis("y");return u[0]=f.coordToData(f.toLocalCoord(r[0]),s),u[1]=d.coordToData(d.toLocalCoord(r[1]),s),u},i.prototype.getOtherAxis=function(r){return this.getAxis("x"===r.dim?"y":"x")},i.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),s=this.getAxis("y").getGlobalExtent(),u=Math.min(r[0],r[1]),f=Math.min(s[0],s[1]),d=Math.max(r[0],r[1])-u,p=Math.max(s[0],s[1])-f;return new Nt(u,f,d,p)},i}(pK),_u=function(o){function i(r,s,u,f,d){var p=o.call(this,r,s,u)||this;return p.index=0,p.type=f||"value",p.position=d||"bottom",p}return he(i,o),i.prototype.isHorizontal=function(){var r=this.position;return"top"===r||"bottom"===r},i.prototype.getGlobalExtent=function(r){var s=this.getExtent();return s[0]=this.toGlobalCoord(s[0]),s[1]=this.toGlobalCoord(s[1]),r&&s[0]>s[1]&&s.reverse(),s},i.prototype.pointToData=function(r,s){return this.coordToData(this.toLocalCoord(r["x"===this.dim?0:1]),s)},i.prototype.setCategorySortInfo=function(r){if("category"!==this.type)return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},i}(_l);function dF(o,i,r){r=r||{};var s=o.coordinateSystem,u=i.axis,f={},d=u.getAxesOnZeroOf()[0],p=u.position,v=d?"onZero":p,g=u.dim,m=s.getRect(),y=[m.x,m.x+m.width,m.y,m.y+m.height],b={left:0,right:1,top:0,bottom:1,onZero:2},w=i.get("offset")||0,S="x"===g?[y[2]-w,y[3]+w]:[y[0]-w,y[1]+w];if(d){var M=d.toGlobalCoord(d.dataToCoord(0));S[b.onZero]=Math.max(Math.min(M,S[1]),S[0])}f.position=["y"===g?S[b[v]]:y[0],"x"===g?S[b[v]]:y[3]],f.rotation=Math.PI/2*("x"===g?0:1),f.labelDirection=f.tickDirection=f.nameDirection={top:-1,bottom:1,left:-1,right:1}[p],f.labelOffset=d?S[b[p]]-S[b.onZero]:0,i.get(["axisTick","inside"])&&(f.tickDirection=-f.tickDirection),ni(r.labelInside,i.get(["axisLabel","inside"]))&&(f.labelDirection=-f.labelDirection);var T=i.get(["axisLabel","rotate"]);return f.labelRotate="top"===v?-T:T,f.z2=1,f}function hF(o){return"cartesian2d"===o.get("coordinateSystem")}function pF(o){var i={xAxisModel:null,yAxisModel:null};return q(i,function(r,s){var u=s.replace(/Model$/,""),f=o.getReferringComponents(u,ai).models[0];i[s]=f}),i}function fc(o,i){return o.getCoordSysModel()===i}function vF(o,i,r,s){r.getAxesOnZeroOf=function(){return f?[f]:[]};var f,u=o[i],d=r.model,p=d.get(["axisLine","onZero"]),v=d.get(["axisLine","onZeroAxisIndex"]);if(p){if(null!=v)gF(u[v])&&(f=u[v]);else for(var g in u)if(u.hasOwnProperty(g)&&gF(u[g])&&!s[m(u[g])]){f=u[g];break}f&&(s[m(f)]=!0)}function m(y){return y.dim+"_"+y.index}}function gF(o){return o&&"category"!==o.type&&"time"!==o.type&&function(o){var i=o.scale.getExtent(),r=i[0],s=i[1];return!(r>0&&s>0||r<0&&s<0)}(o)}var _F=function(){function o(i,r,s){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=fF,this._initCartesian(i,r,s),this.model=i}return o.prototype.getRect=function(){return this._rect},o.prototype.update=function(i,r){var s=this._axesMap;this._updateScale(i,this.model),q(s.x,function(f){Wf(f.scale,f.model)}),q(s.y,function(f){Wf(f.scale,f.model)});var u={};q(s.x,function(f){vF(s,"y",f,u)}),q(s.y,function(f){vF(s,"x",f,u)}),this.resize(this.model,r)},o.prototype.resize=function(i,r,s){var u=i.getBoxLayoutParams(),f=!s&&i.get("containLabel"),d=li(u,{width:r.getWidth(),height:r.getHeight()});this._rect=d;var p=this._axesList;function v(){q(p,function(g){var m=g.isHorizontal(),y=m?[0,d.width]:[0,d.height],b=g.inverse?1:0;g.setExtent(y[b],y[1-b]),function(o,i){var r=o.getExtent(),s=r[0]+r[1];o.toGlobalCoord="x"===o.dim?function(u){return u+i}:function(u){return s-u+i},o.toLocalCoord="x"===o.dim?function(u){return u-i}:function(u){return s-u+i}}(g,m?d.x:d.y)})}v(),f&&(q(p,function(g){if(!g.model.get(["axisLabel","inside"])){var m=function(o){var r=o.scale;if(o.model.get(["axisLabel","show"])&&!r.isBlank()){var s,u,f=r.getExtent();u=r instanceof TT?r.count():(s=r.getTicks()).length;var v,d=o.getLabelModel(),p=B_(o),g=1;u>40&&(g=Math.ceil(u/40));for(var m=0;m0?"top":"bottom",f="center"):hm(u-Qf)?(d=s>0?"bottom":"top",f="center"):(d="middle",f=u>0&&u0?"right":"left":s>0?"left":"right"),{rotation:u,textAlign:f,textVerticalAlign:d}},o.makeAxisEventDataBase=function(i){var r={componentType:i.mainType,componentIndex:i.componentIndex};return r[i.mainType+"Index"]=i.componentIndex,r},o.isLabelSilent=function(i){var r=i.get("tooltip");return i.get("silent")||!(i.get("triggerEvent")||r&&r.show)},o}(),gD={axisLine:function(i,r,s,u){var f=r.get(["axisLine","show"]);if("auto"===f&&i.handleAutoShown&&(f=i.handleAutoShown("axisLine")),f){var d=r.axis.getExtent(),p=u.transform,v=[d[0],0],g=[d[1],0];p&&(_i(v,v,p),_i(g,g,p));var m=ke({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),y=new Ti({subPixelOptimize:!0,shape:{x1:v[0],y1:v[1],x2:g[0],y2:g[1]},style:m,strokeContainThreshold:i.strokeContainThreshold||5,silent:!0,z2:1});y.anid="line",s.add(y);var b=r.get(["axisLine","symbol"]);if(null!=b){var w=r.get(["axisLine","symbolSize"]);"string"==typeof b&&(b=[b,b]),("string"==typeof w||"number"==typeof w)&&(w=[w,w]);var S=Ah(r.get(["axisLine","symbolOffset"])||0,w),M=w[0],x=w[1];q([{rotate:i.rotation+Math.PI/2,offset:S[0],r:0},{rotate:i.rotation-Math.PI/2,offset:S[1],r:Math.sqrt((v[0]-g[0])*(v[0]-g[0])+(v[1]-g[1])*(v[1]-g[1]))}],function(T,P){if("none"!==b[P]&&null!=b[P]){var O=Ir(b[P],-M/2,-x/2,M,x,m.stroke,!0),R=T.r+T.offset;O.attr({rotation:T.rotate,x:v[0]+R*Math.cos(i.rotation),y:v[1]-R*Math.sin(i.rotation),silent:!0,z2:11}),s.add(O)}})}}},axisTickLabel:function(i,r,s,u){var f=function(o,i,r,s){var u=r.axis,f=r.getModel("axisTick"),d=f.get("show");if("auto"===d&&s.handleAutoShown&&(d=s.handleAutoShown("axisTick")),d&&!u.scale.isBlank()){for(var p=f.getModel("lineStyle"),v=s.tickDirection*f.get("length"),m=yF(u.getTicksCoords(),i.transform,v,tt(p.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),y=0;ym[1]?-1:1,b=["start"===d?m[0]-y*g:"end"===d?m[1]+y*g:(m[0]+m[1])/2,mD(d)?i.labelOffset+p*g:0],S=r.get("nameRotate");null!=S&&(S=S*Qf/180),mD(d)?w=dc.innerTextLayout(i.rotation,null!=S?S:i.rotation,p):(w=function(o,i,r,s){var f,d,u=Ld(r-o),p=s[0]>s[1],v="start"===i&&!p||"start"!==i&&p;return hm(u-Qf/2)?(d=v?"bottom":"top",f="center"):hm(u-1.5*Qf)?(d=v?"top":"bottom",f="center"):(d="middle",f=u<1.5*Qf&&u>Qf/2?v?"left":"right":v?"right":"left"),{rotation:u,textAlign:f,textVerticalAlign:d}}(i.rotation,d,S||0,m),null!=(M=i.axisNameAvailableWidth)&&(M=Math.abs(M/Math.sin(w.rotation)),!isFinite(M)&&(M=null)));var x=v.getFont(),T=r.get("nameTruncate",!0)||{},P=T.ellipsis,O=ni(i.nameTruncateMaxWidth,T.maxWidth,M),R=new fn({x:b[0],y:b[1],rotation:w.rotation,silent:dc.isLabelSilent(r),style:Or(v,{text:f,font:x,overflow:"truncate",width:O,ellipsis:P,fill:v.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:v.get("align")||w.textAlign,verticalAlign:v.get("verticalAlign")||w.textVerticalAlign}),z2:1});if(Av({el:R,componentModel:r,itemName:f}),R.__fullText=f,R.anid="name",r.get("triggerEvent")){var V=dc.makeAxisEventDataBase(r);V.targetType="axisName",V.name=f,ht(R).eventData=V}u.add(R),R.updateTransform(),s.add(R),R.decomposeTransform()}}};function Ms(o){o&&(o.ignore=!0)}function Vw(o,i){var r=o&&o.getBoundingRect().clone(),s=i&&i.getBoundingRect().clone();if(r&&s){var u=Wu([]);return Od(u,u,-o.rotation),r.applyTransform(Jo([],u,o.getLocalTransform())),s.applyTransform(Jo([],u,i.getLocalTransform())),r.intersect(s)}}function mD(o){return"middle"===o||"center"===o}function yF(o,i,r,s,u){for(var f=[],d=[],p=[],v=0;v=0||o===i}function vi(o){var i=CF(o);if(i){var r=i.axisPointerModel,s=i.axis.scale,u=r.option,f=r.get("status"),d=r.get("value");null!=d&&(d=s.parse(d));var p=yD(r);null==f&&(u.status=p?"show":"hide");var v=s.getExtent().slice();v[0]>v[1]&&v.reverse(),(null==d||d>v[1])&&(d=v[1]),d0&&!S.min?S.min=0:null!=S.min&&S.min<0&&!S.max&&(S.max=0);var M=v;null!=S.color&&(M=tt({color:S.color},v));var x=He(rt(S),{boundaryGap:r,splitNumber:s,scale:u,axisLine:f,axisTick:d,axisLabel:p,name:S.text,nameLocation:"end",nameGap:y,nameTextStyle:M,triggerEvent:b},!1);if(g||(x.name=""),"string"==typeof m){var T=x.name;x.name=m.replace("{value}",null!=T?T:"")}else"function"==typeof m&&(x.name=m(x.name,x));var P=new Nn(x,null,this.ecModel);return qr(P,zv.prototype),P.mainType="radar",P.componentIndex=this.componentIndex,P},this);this._indicatorModels=w},i.prototype.getIndicatorModels=function(){return this._indicatorModels},i.type="radar",i.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:He({lineStyle:{color:"#bbb"}},uy.axisLine),axisLabel:wl(uy.axisLabel,!1),axisTick:wl(uy.axisTick,!1),splitLine:wl(uy.splitLine,!0),splitArea:wl(uy.splitArea,!0),indicator:[]},i}(qt),s6=["axisLine","axisTickLabel","axisName"],pc=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){this.group.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},i.prototype._buildAxes=function(r){var s=r.coordinateSystem;q(Te(s.getIndicatorAxes(),function(d){return new yu(d.model,{position:[s.cx,s.cy],rotation:d.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(d){q(s6,d.add,d),this.group.add(d.getGroup())},this)},i.prototype._buildSplitLineAndArea=function(r){var s=r.coordinateSystem,u=s.getIndicatorAxes();if(u.length){var f=r.get("shape"),d=r.getModel("splitLine"),p=r.getModel("splitArea"),v=d.getModel("lineStyle"),g=p.getModel("areaStyle"),m=d.get("show"),y=p.get("show"),b=v.get("color"),w=g.get("color"),S=we(b)?b:[b],M=we(w)?w:[w],x=[],T=[];if("circle"===f)for(var O=u[0].getTicksCoords(),R=s.cx,V=s.cy,B=0;Bg[0]&&isFinite(x)&&isFinite(g[0]))}else y.getTicks().length-1>f&&(S=d(S)),x=hi((M=Math.ceil(g[1]/S)*S)-S*f),y.setExtent(x,M),y.setInterval(S)})},o.prototype.convertToPixel=function(i,r,s){return console.warn("Not implemented."),null},o.prototype.convertFromPixel=function(i,r,s){return console.warn("Not implemented."),null},o.prototype.containPoint=function(i){return console.warn("Not implemented."),!1},o.create=function(i,r){var s=[];return i.eachComponent("radar",function(u){var f=new o(u,i,r);s.push(f),u.coordinateSystem=f}),i.eachSeriesByType("radar",function(u){"radar"===u.get("coordinateSystem")&&(u.coordinateSystem=s[u.get("radarIndex")||0])}),s},o.dimensions=[],o}();function u6(o){o.registerCoordinateSystem("radar",gi),o.registerComponentModel(Jn),o.registerComponentView(pc),o.registerVisual({seriesType:"radar",reset:function(r){var s=r.getData();s.each(function(u){s.setItemVisual(u,"legendIcon","roundRect")}),s.setVisual("legendIcon","roundRect")}})}var MF="\0_ec_interaction_mutex";function cy(o,i){return!!CD(o)[i]}function CD(o){return o[MF]||(o[MF]={})}function fy(o,i,r,s,u){o.pointerChecker&&o.pointerChecker(s,u.originX,u.originY)&&(Vl(s.event),dy(o,i,r,s,u))}function dy(o,i,r,s,u){u.isAvailableBehavior=Ye(tg,null,r,s),o.trigger(i,u)}function tg(o,i,r){var s=r[o];return!o||s&&(!yt(s)||i.event[s+"Key"])}pl({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var hy=function(o){function i(r){var s=o.call(this)||this;s._zr=r;var u=Ye(s._mousedownHandler,s),f=Ye(s._mousemoveHandler,s),d=Ye(s._mouseupHandler,s),p=Ye(s._mousewheelHandler,s),v=Ye(s._pinchHandler,s);return s.enable=function(g,m){this.disable(),this._opt=tt(rt(m)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==g&&(g=!0),(!0===g||"move"===g||"pan"===g)&&(r.on("mousedown",u),r.on("mousemove",f),r.on("mouseup",d)),(!0===g||"scale"===g||"zoom"===g)&&(r.on("mousewheel",p),r.on("pinch",v))},s.disable=function(){r.off("mousedown",u),r.off("mousemove",f),r.off("mouseup",d),r.off("mousewheel",p),r.off("pinch",v)},s}return he(i,o),i.prototype.isDragging=function(){return this._dragging},i.prototype.isPinching=function(){return this._pinching},i.prototype.setPointerChecker=function(r){this.pointerChecker=r},i.prototype.dispose=function(){this.disable()},i.prototype._mousedownHandler=function(r){if(!(xk(r)||r.target&&r.target.draggable)){var s=r.offsetX,u=r.offsetY;this.pointerChecker&&this.pointerChecker(r,s,u)&&(this._x=s,this._y=u,this._dragging=!0)}},i.prototype._mousemoveHandler=function(r){if(this._dragging&&tg("moveOnMouseMove",r,this._opt)&&"pinch"!==r.gestureEvent&&!cy(this._zr,"globalPan")){var s=r.offsetX,u=r.offsetY,f=this._x,d=this._y,p=s-f,v=u-d;this._x=s,this._y=u,this._opt.preventDefaultMouseMove&&Vl(r.event),dy(this,"pan","moveOnMouseMove",r,{dx:p,dy:v,oldX:f,oldY:d,newX:s,newY:u,isAvailableBehavior:null})}},i.prototype._mouseupHandler=function(r){xk(r)||(this._dragging=!1)},i.prototype._mousewheelHandler=function(r){var s=tg("zoomOnMouseWheel",r,this._opt),u=tg("moveOnMouseWheel",r,this._opt),f=r.wheelDelta,d=Math.abs(f),p=r.offsetX,v=r.offsetY;if(0!==f&&(s||u)){if(s){var g=d>3?1.4:d>1?1.2:1.1;fy(this,"zoom","zoomOnMouseWheel",r,{scale:f>0?g:1/g,originX:p,originY:v,isAvailableBehavior:null})}if(u){var y=Math.abs(f);fy(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:(f>0?1:-1)*(y>3?.4:y>1?.15:.05),originX:p,originY:v,isAvailableBehavior:null})}}},i.prototype._pinchHandler=function(r){cy(this._zr,"globalPan")||fy(this,"zoom",null,r,{scale:r.pinchScale>1?1.1:1/1.1,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})},i}(Bs);function Ww(o,i,r){var s=o.target;s.x+=i,s.y+=r,s.dirty()}function wD(o,i,r,s){var u=o.target,f=o.zoomLimit,d=o.zoom=o.zoom||1;if(d*=i,f){var p=f.min||0;d=Math.max(Math.min(f.max||1/0,d),p)}var g=d/o.zoom;o.zoom=d,u.x-=(r-u.x)*(g-1),u.y-=(s-u.y)*(g-1),u.scaleX*=g,u.scaleY*=g,u.dirty()}var f6={axisPointer:1,tooltip:1,brush:1};function Yw(o,i,r){var s=i.getComponentByElement(o.topTarget),u=s&&s.coordinateSystem;return s&&s!==r&&!f6.hasOwnProperty(s.mainType)&&u&&u.model!==r}var SD=["rect","circle","line","ellipse","polygon","polyline","path"],TF=et(SD),d6=et(SD.concat(["g"])),DF=et(SD.concat(["g"])),py=pn();function Jf(o){var i=o.getItemStyle(),r=o.get("areaColor");return null!=r&&(i.fill=r),i}function AF(o,i,r,s){var u=s.getModel("itemStyle"),f=s.getModel(["emphasis","itemStyle"]),d=s.getModel(["blur","itemStyle"]),p=s.getModel(["select","itemStyle"]),v=Jf(u),g=Jf(f),m=Jf(p),y=Jf(d),b=o.data;if(b){var w=b.getItemVisual(r,"style"),S=b.getItemVisual(r,"decal");o.isVisualEncodedByVisualMap&&w.fill&&(v.fill=w.fill),S&&(v.decal=lu(S,o.api))}i.setStyle(v),i.style.strokeNoScale=!0,i.ensureState("emphasis").style=g,i.ensureState("select").style=m,i.ensureState("blur").style=y,yf(i)}function qw(o,i,r,s,u,f,d){var p=o.data,v=o.isGeo,g=p&&isNaN(p.get(p.mapDimension("value"),f)),m=p&&p.getItemLayout(f);if(v||g||m&&m.showLabel){var y=v?r:f,b=void 0;(!p||f>=0)&&(b=u);var w=d?{normal:{align:"center",verticalAlign:"middle"}}:null;Mi(i,lr(s),{labelFetcher:b,labelDataIndex:y,defaultText:r},w);var S=i.getTextContent();if(S&&(py(S).ignore=S.ignore,i.textConfig&&d)){var M=i.getBoundingRect().clone();i.textConfig.layoutRect=M,i.textConfig.position=[(d[0]-M.x)/M.width*100+"%",(d[1]-M.y)/M.height*100+"%"]}i.disableLabelAnimation=!0}else i.removeTextContent(),i.removeTextConfig(),i.disableLabelAnimation=null}function kD(o,i,r,s,u,f){o.data?o.data.setItemGraphicEl(f,i):ht(i).eventData={componentType:"geo",componentIndex:u.componentIndex,geoIndex:u.componentIndex,name:r,region:s&&s.option||{}}}function EF(o,i,r,s,u){o.data||Av({el:i,componentModel:u,itemName:r,itemTooltipOption:s.get("tooltip")})}function Xw(o,i,r,s,u){i.highDownSilentOnTouch=!!u.get("selectedMode");var f=s.getModel("emphasis"),d=f.get("focus");return qn(i,d,f.get("blurScope")),o.isGeo&&function(o,i,r){var s=ht(o);s.componentMainType=i.mainType,s.componentIndex=i.componentIndex,s.componentHighDownName=r}(i,u,r),d}var PF=function(){function o(i){var r=new ct;this.uid=Bm("ec_map_draw"),this._controller=new hy(i.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new ct),r.add(this._svgGroup=new ct)}return o.prototype.draw=function(i,r,s,u,f){var d="geo"===i.mainType,p=i.getData&&i.getData();d&&r.eachComponent({mainType:"series",subType:"map"},function(T){!p&&T.getHostGeoModel()===i&&(p=T.getData())});var v=i.coordinateSystem,g=this._regionsGroup,m=this.group,y=v.getTransformInfo(),b=y.raw,w=y.roam;!g.childAt(0)||f?(m.x=w.x,m.y=w.y,m.scaleX=w.scaleX,m.scaleY=w.scaleY,m.dirty()):ln(m,w,i);var M=p&&p.getVisual("visualMeta")&&p.getVisual("visualMeta").length>0,x={api:s,geo:v,mapOrGeoModel:i,data:p,isVisualEncodedByVisualMap:M,isGeo:d,transformInfoRaw:b};"geoJSON"===v.resourceType?this._buildGeoJSON(x):"geoSVG"===v.resourceType&&this._buildSVG(x),this._updateController(i,r,s),this._updateMapSelectHandler(i,g,s,u)},o.prototype._buildGeoJSON=function(i){var r=this._regionsGroupByName=et(),s=et(),u=this._regionsGroup,f=i.transformInfoRaw,d=i.mapOrGeoModel,p=i.data,v=function(m){return[m[0]*f.scaleX+f.x,m[1]*f.scaleY+f.y]};u.removeAll(),q(i.geo.regions,function(g){var m=g.name,y=r.get(m),b=s.get(m)||{},w=b.dataIdx,S=b.regionModel;y||(y=r.set(m,new ct),u.add(y),w=p?p.indexOfName(m):null,S=i.isGeo?d.getRegionModel(m):p?p.getItemModel(w):null,s.set(m,{dataIdx:w,regionModel:S}));var M=new Nx({segmentIgnoreThreshold:1,shape:{paths:[]}});y.add(M),q(g.geometries,function(T){if("polygon"===T.type){for(var P=[],O=0;O-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),u},i.type="series.map",i.dependencies=["geo"],i.layoutMode="box",i.defaultOption={zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},i}(vt);function _6(o){var i={};o.eachSeriesByType("map",function(r){var s=r.getHostGeoModel(),u=s?"o"+s.id:"i"+r.getMapType();(i[u]=i[u]||[]).push(r)}),q(i,function(r,s){for(var u=function(o,i){var r={};return q(o,function(s){s.each(s.mapDimension("value"),function(u,f){var d="ec-"+s.getName(f);r[d]=r[d]||[],isNaN(u)||r[d].push(u)})}),o[0].map(o[0].mapDimension("value"),function(s,u){for(var f="ec-"+o[0].getName(u),d=0,p=1/0,v=-1/0,g=r[f].length,m=0;m1?(S.width=w,S.height=w/m):(S.height=w,S.width=w*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var M=o.getBoxLayoutParams();M.aspect=m,S=li(M,{width:v,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(o.get("center")),this.setZoom(o.get("zoom"))}var DD=new(function(){function o(){this.dimensions=Ts}return o.prototype.create=function(i,r){var s=[];i.eachComponent("geo",function(f,d){var p=f.get("map"),v=new er(p+d,p,{nameMap:f.get("nameMap"),nameProperty:f.get("nameProperty"),aspectScale:f.get("aspectScale")});v.zoomLimit=f.get("scaleLimit"),s.push(v),f.coordinateSystem=v,v.model=f,v.resize=TD,v.resize(f,r)}),i.eachSeries(function(f){if("geo"===f.get("coordinateSystem")){var p=f.get("geoIndex")||0;f.coordinateSystem=s[p]}});var u={};return i.eachSeriesByType("map",function(f){if(!f.getHostGeoModel()){var d=f.getMapType();u[d]=u[d]||[],u[d].push(f)}}),q(u,function(f,d){var p=Te(f,function(g){return g.get("nameMap")}),v=new er(d,d,{nameMap:Lb(p),nameProperty:f[0].get("nameProperty"),aspectScale:f[0].get("aspectScale")});v.zoomLimit=ni.apply(null,Te(f,function(g){return g.get("scaleLimit")})),s.push(v),v.resize=TD,v.resize(f[0],r),q(f,function(g){g.coordinateSystem=v,function(o,i){q(i.get("geoCoord"),function(r,s){o.addGeoCoord(s,r)})}(v,g)})}),s},o.prototype.getFilledRegions=function(i,r,s,u){for(var f=(i||[]).slice(),d=et(),p=0;p=0;){var f=i[r];f.hierNode.prelim+=s,f.hierNode.modifier+=s,s+=f.hierNode.shift+(u+=f.hierNode.change)}}(o);var f=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;u?(o.hierNode.prelim=u.hierNode.prelim+i(o,u),o.hierNode.modifier=o.hierNode.prelim-f):o.hierNode.prelim=f}else u&&(o.hierNode.prelim=u.hierNode.prelim+i(o,u));o.parentNode.hierNode.defaultAncestor=function(o,i,r,s){if(i){for(var u=o,f=o,d=f.parentNode.children[0],p=i,v=u.hierNode.modifier,g=f.hierNode.modifier,m=d.hierNode.modifier,y=p.hierNode.modifier;p=Zw(p),f=OD(f),p&&f;){u=Zw(u),d=OD(d),u.hierNode.ancestor=o;var b=p.hierNode.prelim+y-f.hierNode.prelim-g+s(p,f);b>0&&(T6(x6(p,o,r),o,b),g+=b,v+=b),y+=p.hierNode.modifier,g+=f.hierNode.modifier,v+=u.hierNode.modifier,m+=d.hierNode.modifier}p&&!Zw(u)&&(u.hierNode.thread=p,u.hierNode.modifier+=y-v),f&&!OD(d)&&(d.hierNode.thread=f,d.hierNode.modifier+=g-m,r=o)}return r}(o,u,o.parentNode.hierNode.defaultAncestor||s[0],i)}function wK(o){o.setLayout({x:o.hierNode.prelim+o.parentNode.hierNode.modifier},!0),o.hierNode.modifier+=o.parentNode.hierNode.modifier}function Ds(o){return arguments.length?o:D6}function my(o,i){return o-=Math.PI/2,{x:i*Math.cos(o),y:i*Math.sin(o)}}function Zw(o){var i=o.children;return i.length&&o.isExpand?i[i.length-1]:o.hierNode.thread}function OD(o){var i=o.children;return i.length&&o.isExpand?i[0]:o.hierNode.thread}function x6(o,i,r){return o.hierNode.ancestor.parentNode===i.parentNode?o.hierNode.ancestor:r}function T6(o,i,r){var s=r/(i.hierNode.i-o.hierNode.i);i.hierNode.change-=s,i.hierNode.shift+=r,i.hierNode.modifier+=r,i.hierNode.prelim+=r,o.hierNode.change+=s}function D6(o,i){return o.parentNode===i.parentNode?1:2}var A6=function(){this.parentPoint=[],this.childPoints=[]},E6=function(o){function i(r){return o.call(this,r)||this}return he(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new A6},i.prototype.buildPath=function(r,s){var u=s.childPoints,f=u.length,d=s.parentPoint,p=u[0],v=u[f-1];if(1===f)return r.moveTo(d[0],d[1]),void r.lineTo(p[0],p[1]);var g=s.orient,m="TB"===g||"BT"===g?0:1,y=1-m,b=Fe(s.forkPosition,1),w=[];w[m]=d[m],w[y]=d[y]+(v[y]-d[y])*b,r.moveTo(d[0],d[1]),r.lineTo(w[0],w[1]),r.moveTo(p[0],p[1]),w[m]=p[m],r.lineTo(w[0],w[1]),w[m]=v[m],r.lineTo(w[0],w[1]),r.lineTo(v[0],v[1]);for(var S=1;SP.x)||(R-=Math.PI);var U=V?"left":"right",j=p.getModel("label"),X=j.get("rotate"),K=X*(Math.PI/180),$=x.getTextContent();$&&(x.setTextConfig({position:j.get("position")||U,rotation:null==X?-R:K,origin:"center"}),$.setStyle("verticalAlign","middle"))}var te=p.get(["emphasis","focus"]),ee="ancestor"===te?d.getAncestorsIndices():"descendant"===te?d.getDescendantIndices():null;ee&&(ht(r).focus=ee),function(o,i,r,s,u,f,d,p){var v=i.getModel(),g=o.get("edgeShape"),m=o.get("layout"),y=o.getOrient(),b=o.get(["lineStyle","curveness"]),w=o.get("edgeForkPosition"),S=v.getModel("lineStyle").getLineStyle(),M=s.__edge;if("curve"===g)i.parentNode&&i.parentNode!==r&&(M||(M=s.__edge=new c_({shape:LD(m,y,b,u,u)})),ln(M,{shape:LD(m,y,b,f,d)},o));else if("polyline"===g&&"orthogonal"===m&&i!==r&&i.children&&0!==i.children.length&&!0===i.isExpand){for(var x=i.children,T=[],P=0;Pr&&(r=u.height)}this.height=r+1},o.prototype.getNodeById=function(i){if(this.getId()===i)return this;for(var r=0,s=this.children,u=s.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,i,r)},o.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},o.prototype.getModel=function(i){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(i)},o.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},o.prototype.setVisual=function(i,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,i,r)},o.prototype.getVisual=function(i){return this.hostTree.data.getItemVisual(this.dataIndex,i)},o.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},o.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},o.prototype.getChildIndex=function(){if(this.parentNode){for(var i=this.parentNode.children,r=0;r=0){var s=r.getData().tree.root,u=o.targetNode;if("string"==typeof u&&(u=s.getNodeById(u)),u&&s.contains(u))return{node:u};var f=o.targetNodeId;if(null!=f&&(u=s.getNodeById(f)))return{node:u}}}function VD(o){for(var i=[];o;)(o=o.parentNode)&&i.push(o);return i.reverse()}function BD(o,i){return Rt(VD(o),i)>=0}function HD(o,i){for(var r=[];o;){var s=o.dataIndex;r.push({name:o.name,dataIndex:s,value:i.getRawValue(s)}),o=o.parentNode}return r.reverse(),r}var V6=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return he(i,o),i.prototype.getInitialData=function(r){var s={name:r.name,children:r.data},f=new Nn(r.leaves||{},this,this.ecModel),d=Kw.createTree(s,this,function(y){y.wrapMethod("getItemModel",function(b,w){var S=d.getNodeByDataIndex(w);return S&&S.children.length&&S.isExpand||(b.parentModel=f),b})}),v=0;d.eachNode("preorder",function(y){y.depth>v&&(v=y.depth)});var m=r.expandAndCollapse&&r.initialTreeDepth>=0?r.initialTreeDepth:v;return d.root.eachNode("preorder",function(y){var b=y.hostTree.data.getRawDataItem(y.dataIndex);y.isExpand=b&&null!=b.collapsed?!b.collapsed:y.depth<=m}),d.data},i.prototype.getOrient=function(){var r=this.get("orient");return"horizontal"===r?r="LR":"vertical"===r&&(r="TB"),r},i.prototype.setZoom=function(r){this.option.zoom=r},i.prototype.setCenter=function(r){this.option.center=r},i.prototype.formatTooltip=function(r,s,u){for(var f=this.getData().tree,d=f.root.children[0],p=f.getNodeByDataIndex(r),v=p.getValue(),g=p.name;p&&p!==d;)g=p.parentNode.name+"."+g,p=p.parentNode;return pi("nameValue",{name:g,value:v,noValue:isNaN(v)||null==v})},i.prototype.getDataParams=function(r){var s=o.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(r);return s.treeAncestors=HD(u,this),s},i.type="series.tree",i.layoutMode="box",i.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},i}(vt);function vc(o,i){for(var s,r=[o];s=r.pop();)if(i(s),s.isExpand){var u=s.children;if(u.length)for(var f=u.length-1;f>=0;f--)r.push(u[f])}}function H6(o,i){o.eachSeriesByType("tree",function(r){!function(o,i){var r=function(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(o,i);o.layoutInfo=r;var s=o.get("layout"),u=0,f=0,d=null;"radial"===s?(u=2*Math.PI,f=Math.min(r.height,r.width)/2,d=Ds(function(O,R){return(O.parentNode===R.parentNode?1:2)/O.depth})):(u=r.width,f=r.height,d=Ds());var p=o.getData().tree.root,v=p.children[0];if(v){(function(o){var i=o;i.hierNode={defaultAncestor:null,ancestor:i,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var s,u,r=[i];s=r.pop();)if(u=s.children,s.isExpand&&u.length)for(var d=u.length-1;d>=0;d--){var p=u[d];p.hierNode={defaultAncestor:null,ancestor:p,prelim:0,modifier:0,change:0,shift:0,i:d,thread:null},r.push(p)}})(p),function(o,i,r){for(var f,s=[o],u=[];f=s.pop();)if(u.push(f),f.isExpand){var d=f.children;if(d.length)for(var p=0;pm.getLayout().x&&(m=O),O.depth>y.depth&&(y=O)});var b=g===m?1:d(g,m)/2,w=b-g.getLayout().x,S=0,M=0,x=0,T=0;if("radial"===s)S=u/(m.getLayout().x+b+w),M=f/(y.depth-1||1),vc(v,function(O){var R=my(x=(O.getLayout().x+w)*S,T=(O.depth-1)*M);O.setLayout({x:R.x,y:R.y,rawX:x,rawY:T},!0)});else{var P=o.getOrient();"RL"===P||"LR"===P?(M=f/(m.getLayout().x+b+w),S=u/(y.depth-1||1),vc(v,function(O){T=(O.getLayout().x+w)*M,O.setLayout({x:x="LR"===P?(O.depth-1)*S:u-(O.depth-1)*S,y:T},!0)})):("TB"===P||"BT"===P)&&(S=u/(m.getLayout().x+b+w),M=f/(y.depth-1||1),vc(v,function(O){x=(O.getLayout().x+w)*S,O.setLayout({x:x,y:T="TB"===P?(O.depth-1)*M:f-(O.depth-1)*M},!0)}))}}}(r,i)})}function z6(o){o.eachSeriesByType("tree",function(i){var r=i.getData();r.tree.eachNode(function(u){var d=u.getModel().getModel("itemStyle").getItemStyle();ke(r.ensureUniqueItemVisual(u.dataIndex,"style"),d)})})}var G6=function(){},jF=["treemapZoomToNode","treemapRender","treemapMove"];function WF(o){var i=o.getData(),s={};i.tree.eachNode(function(u){for(var f=u;f&&f.depth>1;)f=f.parentNode;var d=KM(o.ecModel,f.name||f.dataIndex+"",s);u.setVisual("decal",d)})}function Y6(o){var i=0;q(o.children,function(s){Y6(s);var u=s.value;we(u)&&(u=u[0]),i+=u});var r=o.value;we(r)&&(r=r[0]),(null==r||isNaN(r))&&(r=i),r<0&&(r=0),we(o.value)?o.value[0]=r:o.value=r}var Qw=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.preventUsingHoverLayer=!0,r}return he(i,o),i.prototype.getInitialData=function(r,s){var u={name:r.name,children:r.data};Y6(u);var f=r.levels||[],d=this.designatedVisualItemStyle={},p=new Nn({itemStyle:d},this,s),v=Te((f=r.levels=function(o,i){var r=jn(i.get("color")),s=jn(i.get(["aria","decal","decals"]));if(r){var u,f;q(o=o||[],function(p){var v=new Nn(p),g=v.get("color"),m=v.get("decal");(v.get(["itemStyle","color"])||g&&"none"!==g)&&(u=!0),(v.get(["itemStyle","decal"])||m&&"none"!==m)&&(f=!0)});var d=o[0]||(o[0]={});return u||(d.color=r.slice()),!f&&s&&(d.decal=s.slice()),o}}(f,s))||[],function(y){return new Nn(y,p,s)},this),g=Kw.createTree(u,this,function(y){y.wrapMethod("getItemModel",function(b,w){var S=g.getNodeByDataIndex(w);return b.parentModel=(S?v[S.depth]:null)||p,b})});return g.data},i.prototype.optionUpdated=function(){this.resetViewRoot()},i.prototype.formatTooltip=function(r,s,u){var f=this.getData(),d=this.getRawValue(r);return pi("nameValue",{name:f.getName(r),value:d})},i.prototype.getDataParams=function(r){var s=o.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(r);return s.treeAncestors=HD(u,this),s.treePathInfo=s.treeAncestors,s},i.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},ke(this.layoutInfo,r)},i.prototype.mapIdToIndex=function(r){var s=this._idIndexMap;s||(s=this._idIndexMap=et(),this._idIndexMapCount=0);var u=s.get(r);return null==u&&s.set(r,u=this._idIndexMapCount++),u},i.prototype.getViewRoot=function(){return this._viewRoot},i.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var s=this.getRawData().tree.root;(!r||r!==s&&!s.contains(r))&&(this._viewRoot=s)},i.prototype.enableAriaDecal=function(){WF(this)},i.type="series.treemap",i.layoutMode="box",i.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},i}(vt);function qF(o,i,r,s,u,f){var d=[[u?o:o-5,i],[o+r,i],[o+r,i+s],[u?o:o-5,i+s]];return!f&&d.splice(2,0,[o+r+5,i+s/2]),!u&&d.push([o,i+s/2]),d}function Z6(o,i,r){ht(o).eventData={componentType:"series",componentSubType:"treemap",componentIndex:i.componentIndex,seriesIndex:i.componentIndex,seriesName:i.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&HD(r,i)}}var K6=function(){function o(i){this.group=new ct,i.add(this.group)}return o.prototype.render=function(i,r,s,u){var f=i.getModel("breadcrumb"),d=this.group;if(d.removeAll(),f.get("show")&&s){var p=f.getModel("itemStyle"),v=p.getModel("textStyle"),g={pos:{left:f.get("left"),right:f.get("right"),top:f.get("top"),bottom:f.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:f.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(s,g,v),this._renderContent(i,g,p,v,u),tC(d,g.pos,g.box)}},o.prototype._prepare=function(i,r,s){for(var u=i;u;u=u.parentNode){var f=wi(u.getModel().get("name"),""),d=s.getTextRect(f),p=Math.max(d.width+16,r.emptyItemWidth);r.totalWidth+=p+8,r.renderList.push({node:u,text:f,width:p})}},o.prototype._renderContent=function(i,r,s,u,f){for(var d=0,p=r.emptyItemWidth,v=i.get(["breadcrumb","height"]),g=function(o,i,r){var s=i.width,u=i.height,f=Fe(o.left,s),d=Fe(o.top,u),p=Fe(o.right,s),v=Fe(o.bottom,u);return(isNaN(f)||isNaN(parseFloat(o.left)))&&(f=0),(isNaN(p)||isNaN(parseFloat(o.right)))&&(p=s),(isNaN(d)||isNaN(parseFloat(o.top)))&&(d=0),(isNaN(v)||isNaN(parseFloat(o.bottom)))&&(v=u),r=lh(r||0),{width:Math.max(p-f-r[1]-r[3],0),height:Math.max(v-d-r[0]-r[2],0)}}(r.pos,r.box),m=r.totalWidth,y=r.renderList,b=y.length-1;b>=0;b--){var w=y[b],S=w.node,M=w.width,x=w.text;m>g.width&&(m-=M-p,M=p,x=null);var T=new ba({shape:{points:qF(d,0,M,v,b===y.length-1,0===b)},style:tt(s.getItemStyle(),{lineJoin:"bevel"}),textContent:new fn({style:{text:x,fill:u.getTextColor(),font:u.getFont()}}),textConfig:{position:"inside"},z2:1e5,onclick:St(f,S)});T.disableLabelAnimation=!0,this.group.add(T),Z6(T,i,S),d+=M+8}},o.prototype.remove=function(){this.group.removeAll()},o}(),$6=function(){function o(){this._storage=[],this._elExistsMap={}}return o.prototype.add=function(i,r,s,u,f){return!this._elExistsMap[i.id]&&(this._elExistsMap[i.id]=!0,this._storage.push({el:i,target:r,duration:s,delay:u,easing:f}),!0)},o.prototype.finished=function(i){return this._finishedCallback=i,this},o.prototype.start=function(){for(var i=this,r=this._storage.length,s=function(){--r<=0&&(i._storage.length=0,i._elExistsMap={},i._finishedCallback&&i._finishedCallback())},u=0,f=this._storage.length;u3||Math.abs(r.dy)>3)){var s=this.seriesModel.getData().tree.root;if(!s)return;var u=s.getLayout();if(!u)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x+r.dx,y:u.y+r.dy,width:u.width,height:u.height}})}},i.prototype._onZoom=function(r){var s=r.originX,u=r.originY;if("animating"!==this._state){var f=this.seriesModel.getData().tree.root;if(!f)return;var d=f.getLayout();if(!d)return;var p=new Nt(d.x,d.y,d.width,d.height),v=this.seriesModel.layoutInfo,g=[1,0,0,1,0,0];Oo(g,g,[-(s-=v.x),-(u-=v.y)]),$b(g,g,[r.scale,r.scale]),Oo(g,g,[s,u]),p.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:p.x,y:p.y,width:p.width,height:p.height}})}},i.prototype._initEvents=function(r){var s=this;r.on("click",function(u){if("ready"===s._state){var f=s.seriesModel.get("nodeClick",!0);if(f){var d=s.findTarget(u.offsetX,u.offsetY);if(d){var p=d.node;if(p.getLayout().isLeafRoot)s._rootToNode(d);else if("zoomToNode"===f)s._zoomToNode(d);else if("link"===f){var v=p.hostTree.data.getItemModel(p.dataIndex),g=v.get("link",!0),m=v.get("target",!0)||"blank";g&&J0(g,m)}}}}},this)},i.prototype._renderBreadcrumb=function(r,s,u){var f=this;u||(u=null!=r.get("leafDepth",!0)?{node:r.getViewRoot()}:this.findTarget(s.getWidth()/2,s.getHeight()/2))||(u={node:r.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new K6(this.group))).render(r,s,u.node,function(d){"animating"!==f._state&&(BD(r.getViewRoot(),d)?f._rootToNode({node:d}):f._zoomToNode({node:d}))})},i.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},i.prototype.dispose=function(){this._clearController()},i.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},i.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},i.prototype.findTarget=function(r,s){var u;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(d){var p=this._storage.background[d.getRawIndex()];if(p){var v=p.transformCoordToLocal(r,s),g=p.shape;if(!(g.x<=v[0]&&v[0]<=g.x+g.width&&g.y<=v[1]&&v[1]<=g.y+g.height))return!1;u={node:d,offsetX:v[0],offsetY:v[1]}}},this),u},i.type="treemap",i}(Vn),rg=q,AK=at,Sy=function(){function o(i){var r=i.mappingMethod,s=i.type,u=this.option=rt(i);this.type=s,this.mappingMethod=r,this._normalizeData=rj[r];var f=o.visualHandlers[s];this.applyVisual=f.applyVisual,this.getColorMapper=f.getColorMapper,this._normalizedToVisual=f._normalizedToVisual[r],"piecewise"===r?(t1(u),function(o){var i=o.pieceList;o.hasSpecialVisual=!1,q(i,function(r,s){r.originIndex=s,null!=r.visual&&(o.hasSpecialVisual=!0)})}(u)):"category"===r?u.categories?function(o){var i=o.categories,r=o.categoryMap={},s=o.visual;if(rg(i,function(d,p){r[d]=p}),!we(s)){var u=[];at(s)?rg(s,function(d,p){var v=r[p];u[null!=v?v:-1]=d}):u[-1]=s,s=KF(o,u)}for(var f=i.length-1;f>=0;f--)null==s[f]&&(delete r[i[f]],i.pop())}(u):t1(u,!0):(Oa("linear"!==r||u.dataExtent),t1(u))}return o.prototype.mapValueToVisual=function(i){var r=this._normalizeData(i);return this._normalizedToVisual(r,i)},o.prototype.getNormalizer=function(){return Ye(this._normalizeData,this)},o.listVisualTypes=function(){return _n(o.visualHandlers)},o.isValidType=function(i){return o.visualHandlers.hasOwnProperty(i)},o.eachVisual=function(i,r,s){at(i)?q(i,r,s):r.call(s,i)},o.mapVisual=function(i,r,s){var u,f=we(i)?[]:at(i)?{}:(u=!0,null);return o.eachVisual(i,function(d,p){var v=r.call(s,d,p);u?f=v:f[p]=v}),f},o.retrieveVisuals=function(i){var s,r={};return i&&rg(o.visualHandlers,function(u,f){i.hasOwnProperty(f)&&(r[f]=i[f],s=!0)}),s?r:null},o.prepareVisualTypes=function(i){if(we(i))i=i.slice();else{if(!AK(i))return[];var r=[];rg(i,function(s,u){r.push(u)}),i=r}return i.sort(function(s,u){return"color"===u&&"color"!==s&&0===s.indexOf("color")?1:-1}),i},o.dependsOn=function(i,r){return"color"===r?!(!i||0!==i.indexOf(r)):i===r},o.findPieceIndex=function(i,r,s){for(var u,f=1/0,d=0,p=r.length;dg[1]&&(g[1]=v);var m=i.get("colorMappingBy"),y={type:d.name,dataExtent:g,visual:d.range};"color"!==y.type||"index"!==m&&"id"!==m?y.mappingMethod="linear":(y.mappingMethod="category",y.loop=!0);var b=new Ji(y);return ZD(b).drColorMappingBy=m,b}}}(0,u,f,0,v,w);q(w,function(M,x){(M.depth>=r.length||M===r[M.depth])&&$F(M,function(o,i,r,s,u,f){var d=ke({},i);if(u){var p=u.type,v="color"===p&&ZD(u).drColorMappingBy,g="index"===v?s:"id"===v?f.mapIdToIndex(r.getId()):r.getValue(o.get("visualDimension"));d[p]=u.mapValueToVisual(g)}return d}(u,v,M,x,S,s),r,s)})}else b=JF(v),g.fill=b}}function JF(o){var i=KD(o,"color");if(i){var r=KD(o,"colorAlpha"),s=KD(o,"colorSaturation");return s&&(i=Qc(i,null,null,s)),r&&(i=Yb(i,r)),i}}function KD(o,i){var r=o[i];if(null!=r&&"none"!==r)return r}function $D(o,i){var r=o.get(i);return we(r)&&r.length?{name:i,range:r}:null}var xy=Math.max,ed=Math.min,eN=ni,Ty=q,tN=["itemStyle","borderWidth"],lj=["itemStyle","gapWidth"],uj=["upperLabel","show"],cj=["upperLabel","height"],fj={seriesType:"treemap",reset:function(i,r,s,u){var f=s.getWidth(),d=s.getHeight(),p=i.option,v=li(i.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()}),g=p.size||[],m=Fe(eN(v.width,g[0]),f),y=Fe(eN(v.height,g[1]),d),b=u&&u.type,S=_y(u,["treemapZoomToNode","treemapRootToNode"],i),M="treemapRender"===b||"treemapMove"===b?u.rootRect:null,x=i.getViewRoot(),T=VD(x);if("treemapMove"!==b){var P="treemapZoomToNode"===b?function(o,i,r,s,u){var f=(i||{}).node,d=[s,u];if(!f||f===r)return d;for(var p,v=s*u,g=v*o.option.zoomToNodeRatio;p=f.parentNode;){for(var m=0,y=p.children,b=0,w=y.length;bUp&&(g=Up),f=p}gp[1]&&(p[1]=g)})):p=[NaN,NaN],{sum:s,dataExtent:p}}(i,d,p);if(0===g.sum)return o.viewChildren=[];if(g.sum=function(o,i,r,s,u){if(!s)return r;for(var f=o.get("visibleMin"),d=u.length,p=d,v=d-1;v>=0;v--){var g=u["asc"===s?d-v-1:v].getValue();g/r*is&&(s=d));var v=o.area*o.area,g=i*i*r;return v?xy(g*s/v,v/(g*u)):1/0}function mj(o,i,r,s,u){var f=i===r.width?0:1,d=1-f,p=["x","y"],v=["width","height"],g=r[p[f]],m=i?o.area/i:0;(u||m>r[v[d]])&&(m=r[v[d]]);for(var y=0,b=o.length;yu&&(u=r);var d=u%2?u+2:u+3;f=[];for(var p=0;p0&&(V[0]=-V[0],V[1]=-V[1]);var U=R[0]<0?-1:1;if("start"!==f.__position&&"end"!==f.__position){var j=-Math.atan2(R[1],R[0]);y[0].8?"left":b[0]<-.8?"right":"center",M=b[1]>.8?"top":b[1]<-.8?"bottom":"middle";break;case"start":f.x=-b[0]*T+m[0],f.y=-b[1]*P+m[1],S=b[0]>.8?"right":b[0]<-.8?"left":"center",M=b[1]>.8?"bottom":b[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":f.x=T*U+m[0],f.y=m[1]+X,S=R[0]<0?"right":"left",f.originX=-T*U,f.originY=-X;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":f.x=B[0],f.y=B[1]+X,S="center",f.originY=-X;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":f.x=-T*U+y[0],f.y=y[1]+X,S=R[0]>=0?"right":"left",f.originX=T*U,f.originY=-X}f.scaleX=f.scaleY=d,f.setStyle({verticalAlign:f.__verticalAlign||M,align:f.__align||S})}}}function w(K,$){var te=K.__specifiedRotation;if(null==te){var ee=v.tangentAt($);K.attr("rotation",(1===$?-1:1)*Math.PI/2-Math.atan2(ee[1],ee[0]))}else K.attr("rotation",te)}},i}(ct);function iA(o){var i=o.hostModel;return{lineStyle:i.getModel("lineStyle").getLineStyle(),emphasisLineStyle:i.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:i.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:i.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:lr(i)}}function pN(o){return isNaN(o[0])||isNaN(o[1])}function vN(o){return!pN(o[0])&&!pN(o[1])}var gN=function(){function o(i){this.group=new ct,this._LineCtor=i||Oy}return o.prototype.isPersistent=function(){return!0},o.prototype.updateData=function(i){var r=this,s=this,u=s.group,f=s._lineData;s._lineData=i,f||u.removeAll();var d=iA(i);i.diff(f).add(function(p){r._doAdd(i,p,d)}).update(function(p,v){r._doUpdate(f,i,v,p,d)}).remove(function(p){u.remove(f.getItemGraphicEl(p))}).execute()},o.prototype.updateLayout=function(){var i=this._lineData;!i||i.eachItemGraphicEl(function(r,s){r.updateLayout(i,s)},this)},o.prototype.incrementalPrepareUpdate=function(i){this._seriesScope=iA(i),this._lineData=null,this.group.removeAll()},o.prototype.incrementalUpdate=function(i,r){function s(p){!p.isGroup&&!function(o){return o.animators&&o.animators.length>0}(p)&&(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}for(var u=i.start;u=0?p+=g:p-=g:S>=0?p-=g:p+=g}return p}function l1(o,i){var r=[],s=Yi,u=[[],[],[]],f=[[],[]],d=[];i/=2,o.eachEdge(function(p,v){var g=p.getLayout(),m=p.getVisual("fromSymbol"),y=p.getVisual("toSymbol");g.__original||(g.__original=[Gu(g[0]),Gu(g[1])],g[2]&&g.__original.push(Gu(g[2])));var b=g.__original;if(null!=g[2]){if(ca(u[0],b[0]),ca(u[1],b[2]),ca(u[2],b[1]),m&&"none"!==m){var w=Ey(p.node1),S=wN(u,b[0],w*i);s(u[0][0],u[1][0],u[2][0],S,r),u[0][0]=r[3],u[1][0]=r[4],s(u[0][1],u[1][1],u[2][1],S,r),u[0][1]=r[3],u[1][1]=r[4]}y&&"none"!==y&&(w=Ey(p.node2),S=wN(u,b[1],w*i),s(u[0][0],u[1][0],u[2][0],S,r),u[1][0]=r[1],u[2][0]=r[2],s(u[0][1],u[1][1],u[2][1],S,r),u[1][1]=r[1],u[2][1]=r[2]),ca(g[0],u[0]),ca(g[1],u[2]),ca(g[2],u[1])}else ca(f[0],b[0]),ca(f[1],b[1]),yd(d,f[1],f[0]),bd(d,d),m&&"none"!==m&&(w=Ey(p.node1),Ck(f[0],f[0],d,w*i)),y&&"none"!==y&&(w=Ey(p.node2),Ck(f[1],f[1],d,-w*i)),ca(g[0],f[0]),ca(g[1],f[1])})}function u1(o){return"view"===o.type}var SN=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){var u=new Y_,f=new gN,d=this.group;this._controller=new hy(s.getZr()),this._controllerHost={target:d},d.add(u.group),d.add(f.group),this._symbolDraw=u,this._lineDraw=f,this._firstRender=!0},i.prototype.render=function(r,s,u){var f=this,d=r.coordinateSystem;this._model=r;var p=this._symbolDraw,v=this._lineDraw,g=this.group;if(u1(d)){var m={x:d.x,y:d.y,scaleX:d.scaleX,scaleY:d.scaleY};this._firstRender?g.attr(m):ln(g,m,r)}l1(r.getGraph(),Ay(r));var y=r.getData();p.updateData(y);var b=r.getEdgeData();v.updateData(b),this._updateNodeAndLinkScale(),this._updateController(r,s,u),clearTimeout(this._layoutTimeout);var w=r.forceLayout,S=r.get(["force","layoutAnimation"]);w&&this._startForceLayoutIteration(w,S),y.graph.eachNode(function(P){var O=P.dataIndex,R=P.getGraphicEl(),V=P.getModel();R.off("drag").off("dragend");var B=V.get("draggable");B&&R.on("drag",function(){w&&(w.warmUp(),!f._layouting&&f._startForceLayoutIteration(w,S),w.setFixed(O),y.setItemLayout(O,[R.x,R.y]))}).on("dragend",function(){w&&w.setUnfixed(O)}),R.setDraggable(B&&!!w),"adjacency"===V.get(["emphasis","focus"])&&(ht(R).focus=P.getAdjacentDataIndices())}),y.graph.eachEdge(function(P){var O=P.getGraphicEl();"adjacency"===P.getModel().get(["emphasis","focus"])&&(ht(O).focus={edge:[P.dataIndex],node:[P.node1.dataIndex,P.node2.dataIndex]})});var M="circular"===r.get("layout")&&r.get(["circular","rotateLabel"]),x=y.getLayout("cx"),T=y.getLayout("cy");y.eachItemGraphicEl(function(P,O){var V=y.getItemModel(O).get(["label","rotate"])||0,B=P.getSymbolPath();if(M){var U=y.getItemLayout(O),j=Math.atan2(U[1]-T,U[0]-x);j<0&&(j=2*Math.PI+j);var X=U[0]=0&&i.call(r,s[f],f)},o.prototype.eachEdge=function(i,r){for(var s=this.edges,u=s.length,f=0;f=0&&s[f].node1.dataIndex>=0&&s[f].node2.dataIndex>=0&&i.call(r,s[f],f)},o.prototype.breadthFirstTraverse=function(i,r,s,u){if(r instanceof Kh||(r=this._nodesMap[sg(r)]),r){for(var f="out"===s?"outEdges":"in"===s?"inEdges":"edges",d=0;d=0&&v.node2.dataIndex>=0}),f=0,d=u.length;f=0&&this[o][i].setItemVisual(this.dataIndex,s,u)},getVisual:function(s){return this[o][i].getItemVisual(this.dataIndex,s)},setLayout:function(s,u){this.dataIndex>=0&&this[o][i].setItemLayout(this.dataIndex,s,u)},getLayout:function(){return this[o][i].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[o][i].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[o][i].getRawIndex(this.dataIndex)}}}qr(Kh,Oj("hostGraph","data")),qr(Pj,Oj("hostGraph","edgeData"));var Ij=oA;function kN(o,i,r,s,u){for(var f=new Ij(s),d=0;d "+b)),g++)}var S,w=r.get("coordinateSystem");if("cartesian2d"===w||"polar"===w)S=gl(o,r);else{var M=$m.get(w),x=M&&M.dimensions||[];Rt(x,"value")<0&&x.concat(["value"]);var T=Fv(o,{coordDimensions:x,encodeDefine:r.getEncode()}).dimensions;(S=new Ga(T,r)).initData(o)}var P=new Ga(["value"],r);return P.initData(v,p),u&&u(S,P),N6({mainData:S,struct:f,structAttr:"graph",datas:{node:S,edge:P},datasAttr:{node:"data",edge:"edgeData"}}),f.update(),f}var NK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r}return he(i,o),i.prototype.init=function(r){o.prototype.init.apply(this,arguments);var s=this;function u(){return s._categoriesData}this.legendVisualProvider=new mu(u,u),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},i.prototype.mergeOption=function(r){o.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},i.prototype.mergeDefaultAndTheme=function(r){o.prototype.mergeDefaultAndTheme.apply(this,arguments),Nd(r,"edgeLabel",["show"])},i.prototype.getInitialData=function(r,s){var u=r.edges||r.links||[],f=r.data||r.nodes||[],d=this;if(f&&u){!function(o){!tA(o)||(o.__curvenessList=[],o.__edgeMap={},Cj(o))}(this);var p=kN(f,u,this,!0,function(g,m){g.wrapMethod("getItemModel",function(S){var T=d._categoriesModels[S.getShallow("category")];return T&&(T.parentModel=S.parentModel,S.parentModel=T),S});var y=Nn.prototype.getModel;function b(S,M){var x=y.call(this,S,M);return x.resolveParentPath=w,x}function w(S){if(S&&("label"===S[0]||"label"===S[1])){var M=S.slice();return"label"===S[0]?M[0]="edgeLabel":"label"===S[1]&&(M[1]="edgeLabel"),M}return S}m.wrapMethod("getItemModel",function(S){return S.resolveParentPath=w,S.getModel=b,S})});return q(p.edges,function(g){!function(o,i,r,s){if(tA(r)){var u=Dy(o,i,r),f=r.__edgeMap,d=f[wj(u)];f[u]&&!d?f[u].isForward=!0:d&&f[u]&&(d.isForward=!0,f[u].isForward=!1),f[u]=f[u]||[],f[u].push(s)}}(g.node1,g.node2,this,g.dataIndex)},this),p.data}},i.prototype.getGraph=function(){return this.getData().graph},i.prototype.getEdgeData=function(){return this.getGraph().edgeData},i.prototype.getCategoriesData=function(){return this._categoriesData},i.prototype.formatTooltip=function(r,s,u){if("edge"===u){var f=this.getData(),d=this.getDataParams(r,u),p=f.graph.getEdgeByIndex(r),v=f.getName(p.node1.dataIndex),g=f.getName(p.node2.dataIndex),m=[];return null!=v&&m.push(v),null!=g&&m.push(g),pi("nameValue",{name:m.join(" > "),value:d.value,noValue:null==d.value})}return D4({series:this,dataIndex:r,multipleSeries:s})},i.prototype._updateCategoriesData=function(){var r=Te(this.option.categories||[],function(u){return null!=u.value?u:ke({value:0},u)}),s=new Ga(["value"],this);s.initData(r),this._categoriesData=s,this._categoriesModels=s.mapArray(function(u){return s.getItemModel(u)})},i.prototype.setZoom=function(r){this.option.zoom=r},i.prototype.setCenter=function(r){this.option.center=r},i.prototype.isAnimationEnabled=function(){return o.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},i.type="series.graph",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},i}(vt),xa={type:"graphRoam",event:"graphRoam",update:"none"},Lj=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},MN=function(o){function i(r){var s=o.call(this,r)||this;return s.type="pointer",s}return he(i,o),i.prototype.getDefaultShape=function(){return new Lj},i.prototype.buildPath=function(r,s){var u=Math.cos,f=Math.sin,d=s.r,p=s.width,v=s.angle,g=s.x-u(v)*p*(p>=d/3?1:2),m=s.y-f(v)*p*(p>=d/3?1:2);v=s.angle-Math.PI/2,r.moveTo(g,m),r.lineTo(s.x+u(v)*p,s.y+f(v)*p),r.lineTo(s.x+u(s.angle)*d,s.y+f(s.angle)*d),r.lineTo(s.x-u(v)*p,s.y-f(v)*p),r.lineTo(g,m)},i}(Vt);function c1(o,i){var r=null==o?"":o+"";return i&&("string"==typeof i?r=i.replace("{value}",r):"function"==typeof i&&(r=i(o))),r}var sA=2*Math.PI,f1=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){this.group.removeAll();var f=r.get(["axisLine","lineStyle","color"]),d=function(o,i){var r=o.get("center"),s=i.getWidth(),u=i.getHeight(),f=Math.min(s,u);return{cx:Fe(r[0],i.getWidth()),cy:Fe(r[1],i.getHeight()),r:Fe(o.get("radius"),f/2)}}(r,u);this._renderMain(r,s,u,f,d),this._data=r.getData()},i.prototype.dispose=function(){},i.prototype._renderMain=function(r,s,u,f,d){for(var p=this.group,v=r.get("clockwise"),g=-r.get("startAngle")/180*Math.PI,m=-r.get("endAngle")/180*Math.PI,y=r.getModel("axisLine"),w=y.get("roundCap")?Z_:ir,S=y.get("show"),M=y.getModel("lineStyle"),x=M.get("width"),T=(m-g)%sA||m===g?(m-g)%sA:sA,P=g,O=0;S&&O=X&&(0===K?0:f[K-1][0]).8?"bottom":"middle",align:le<-.4?"left":le>.4?"right":"center"},{inheritColor:Me}),silent:!0}))}if(P.get("show")&&de!==R){ge=(ge=P.get("distance"))?ge+m:m;for(var ze=0;ze<=V;ze++){le=Math.cos(j),oe=Math.sin(j);var Je=new Ti({shape:{x1:le*(S-ge)+b,y1:oe*(S-ge)+w,x2:le*(S-U-ge)+b,y2:oe*(S-U-ge)+w},silent:!0,style:te});"auto"===te.stroke&&Je.setStyle({stroke:f((de+ze/V)/R)}),y.add(Je),j+=K}j-=K}else j+=X}},i.prototype._renderPointer=function(r,s,u,f,d,p,v,g,m){var y=this.group,b=this._data,w=this._progressEls,S=[],M=r.get(["pointer","show"]),x=r.getModel("progress"),T=x.get("show"),P=r.getData(),O=P.mapDimension("value"),R=+r.get("min"),V=+r.get("max"),B=[R,V],U=[p,v];function j(K,$){var ze,ee=P.getItemModel(K).getModel("pointer"),le=Fe(ee.get("width"),d.r),oe=Fe(ee.get("length"),d.r),de=r.get(["pointer","icon"]),ge=ee.get("offsetCenter"),_e=Fe(ge[0],d.r),xe=Fe(ge[1],d.r),Me=ee.get("keepAspect");return(ze=de?Ir(de,_e-le/2,xe-oe,le,oe,null,Me):new MN({shape:{angle:-Math.PI/2,width:le,r:oe,x:_e,y:xe}})).rotation=-($+Math.PI/2),ze.x=d.cx,ze.y=d.cy,ze}function X(K,$){var ee=x.get("roundCap")?Z_:ir,le=x.get("overlap"),oe=le?x.get("width"):m/P.count(),_e=new ee({shape:{startAngle:p,endAngle:$,cx:d.cx,cy:d.cy,clockwise:g,r0:le?d.r-oe:d.r-(K+1)*oe,r:le?d.r:d.r-K*oe}});return le&&(_e.z2=V-P.get(O,K)%V),_e}(T||M)&&(P.diff(b).add(function(K){if(M){var $=j(K,p);br($,{rotation:-(bn(P.get(O,K),B,U,!0)+Math.PI/2)},r),y.add($),P.setItemGraphicEl(K,$)}if(T){var te=X(K,p),ee=x.get("clip");br(te,{shape:{endAngle:bn(P.get(O,K),B,U,ee)}},r),y.add(te),cs(r.seriesIndex,P.dataType,K,te),S[K]=te}}).update(function(K,$){if(M){var te=b.getItemGraphicEl($),ee=te?te.rotation:p,le=j(K,ee);le.rotation=ee,ln(le,{rotation:-(bn(P.get(O,K),B,U,!0)+Math.PI/2)},r),y.add(le),P.setItemGraphicEl(K,le)}if(T){var oe=w[$],ge=X(K,oe?oe.shape.endAngle:p),_e=x.get("clip");ln(ge,{shape:{endAngle:bn(P.get(O,K),B,U,_e)}},r),y.add(ge),cs(r.seriesIndex,P.dataType,K,ge),S[K]=ge}}).execute(),P.each(function(K){var $=P.getItemModel(K),te=$.getModel("emphasis");if(M){var ee=P.getItemGraphicEl(K),le=P.getItemVisual(K,"style"),oe=le.fill;if(ee instanceof si){var de=ee.style;ee.useStyle(ke({image:de.image,x:de.x,y:de.y,width:de.width,height:de.height},le))}else ee.useStyle(le),"pointer"!==ee.type&&ee.setColor(oe);ee.setStyle($.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===ee.style.fill&&ee.setStyle("fill",f(bn(P.get(O,K),B,[0,1],!0))),ee.z2EmphasisLift=0,ki(ee,$),qn(ee,te.get("focus"),te.get("blurScope"))}if(T){var ge=S[K];ge.useStyle(P.getItemVisual(K,"style")),ge.setStyle($.getModel(["progress","itemStyle"]).getItemStyle()),ge.z2EmphasisLift=0,ki(ge,$),qn(ge,te.get("focus"),te.get("blurScope"))}}),this._progressEls=S)},i.prototype._renderAnchor=function(r,s){var u=r.getModel("anchor");if(u.get("show")){var d=u.get("size"),p=u.get("icon"),v=u.get("offsetCenter"),g=u.get("keepAspect"),m=Ir(p,s.cx-d/2+Fe(v[0],s.r),s.cy-d/2+Fe(v[1],s.r),d,d,null,g);m.z2=u.get("showAbove")?1:0,m.setStyle(u.getModel("itemStyle").getItemStyle()),this.group.add(m)}},i.prototype._renderTitleAndDetail=function(r,s,u,f,d){var p=this,v=r.getData(),g=v.mapDimension("value"),m=+r.get("min"),y=+r.get("max"),b=new ct,w=[],S=[],M=r.isAnimationEnabled(),x=r.get(["pointer","showAbove"]);v.diff(this._data).add(function(T){w[T]=new fn({silent:!0}),S[T]=new fn({silent:!0})}).update(function(T,P){w[T]=p._titleEls[P],S[T]=p._detailEls[P]}).execute(),v.each(function(T){var P=v.getItemModel(T),O=v.get(g,T),R=new ct,V=f(bn(O,[m,y],[0,1],!0)),B=P.getModel("title");if(B.get("show")){var U=B.get("offsetCenter"),j=d.cx+Fe(U[0],d.r),X=d.cy+Fe(U[1],d.r);(K=w[T]).attr({z2:x?0:2,style:Or(B,{x:j,y:X,text:v.getName(T),align:"center",verticalAlign:"middle"},{inheritColor:V})}),R.add(K)}var $=P.getModel("detail");if($.get("show")){var te=$.get("offsetCenter"),ee=d.cx+Fe(te[0],d.r),le=d.cy+Fe(te[1],d.r),oe=Fe($.get("width"),d.r),de=Fe($.get("height"),d.r),ge=r.get(["progress","show"])?v.getItemVisual(T,"style").fill:V,K=S[T],_e=$.get("formatter");K.attr({z2:x?0:2,style:Or($,{x:ee,y:le,text:c1(O,_e),width:isNaN(oe)?null:oe,height:isNaN(de)?null:de,align:"center",verticalAlign:"middle"},{inheritColor:ge})}),tu(K,{normal:$},O,function(Me){return c1(Me,_e)}),M&&Nm(K,T,v,r,{getFormattedLabel:function(ze,Je,mt,Qt,Ut,xt){return c1(xt?xt.interpolatedValue:O,_e)}}),R.add(K)}b.add(R)}),this.group.add(b),this._titleEls=w,this._detailEls=S},i.type="gauge",i}(Vn),d1=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.visualStyleAccessPath="itemStyle",r}return he(i,o),i.prototype.getInitialData=function(r,s){return po(this,["value"])},i.type="series.gauge",i.defaultOption={zlevel:0,z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},i}(vt),h1=["itemStyle","opacity"],Bj=function(o){function i(r,s){var u=o.call(this)||this,f=u,d=new Cr,p=new fn;return f.setTextContent(p),u.setTextGuideLine(d),u.updateData(r,s,!0),u}return he(i,o),i.prototype.updateData=function(r,s,u){var f=this,d=r.hostModel,p=r.getItemModel(s),v=r.getItemLayout(s),g=p.getModel("emphasis"),m=p.get(h1);m=null==m?1:m,u||el(f),f.useStyle(r.getItemVisual(s,"style")),f.style.lineJoin="round",u?(f.setShape({points:v.points}),f.style.opacity=0,br(f,{style:{opacity:m}},d,s)):ln(f,{style:{opacity:m},shape:{points:v.points}},d,s),ki(f,p),this._updateLabel(r,s),qn(this,g.get("focus"),g.get("blurScope"))},i.prototype._updateLabel=function(r,s){var u=this,f=this.getTextGuideLine(),d=u.getTextContent(),p=r.hostModel,v=r.getItemModel(s),m=r.getItemLayout(s).label,y=r.getItemVisual(s,"style"),b=y.fill;Mi(d,lr(v),{labelFetcher:r.hostModel,labelDataIndex:s,defaultOpacity:y.opacity,defaultText:r.getName(s)},{normal:{align:m.textAlign,verticalAlign:m.verticalAlign}}),u.setTextConfig({local:!0,inside:!!m.inside,insideStroke:b,outsideFill:b});var w=m.linePoints;f.setShape({points:w}),u.textGuideLineConfig={anchor:w?new Tt(w[0][0],w[0][1]):null},ln(d,{style:{x:m.x,y:m.y}},p,s),d.attr({rotation:m.rotation,originX:m.x,originY:m.y,z2:10}),dw(u,TL(v),{stroke:b})},i}(ba),Ta=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.ignoreLabelLineUpdate=!0,r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData(),d=this._data,p=this.group;f.diff(d).add(function(v){var g=new Bj(f,v);f.setItemGraphicEl(v,g),p.add(g)}).update(function(v,g){var m=d.getItemGraphicEl(g);m.updateData(f,v),p.add(m),f.setItemGraphicEl(v,m)}).remove(function(v){Fm(d.getItemGraphicEl(v),r,v)}).execute(),this._data=f},i.prototype.remove=function(){this.group.removeAll(),this._data=null},i.prototype.dispose=function(){},i.type="funnel",i}(Vn),zj=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r){o.prototype.init.apply(this,arguments),this.legendVisualProvider=new mu(Ye(this.getData,this),Ye(this.getRawData,this)),this._defaultLabelLine(r)},i.prototype.getInitialData=function(r,s){return po(this,{coordDimensions:["value"],encodeDefaulter:St(lv,this)})},i.prototype._defaultLabelLine=function(r){Nd(r,"labelLine",["show"]);var s=r.labelLine,u=r.emphasis.labelLine;s.show=s.show&&r.label.show,u.show=u.show&&r.emphasis.label.show},i.prototype.getDataParams=function(r){var s=this.getData(),u=o.prototype.getDataParams.call(this,r),f=s.mapDimension("value"),d=s.getSum(f);return u.percent=d?+(s.get(f,r)/d*100).toFixed(2):0,u.$vars.push("percent"),u},i.type="series.funnel",i.defaultOption={zlevel:0,z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},i}(vt);function Gj(o,i){o.eachSeriesByType("funnel",function(r){var s=r.getData(),u=s.mapDimension("value"),f=r.get("sort"),d=function(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(r,i),p=r.get("orient"),v=d.width,g=d.height,m=function(o,i){for(var r=o.mapDimension("value"),s=o.mapArray(r,function(v){return v}),u=[],f="ascending"===i,d=0,p=o.count();d5)return;var f=this._model.coordinateSystem.getSlidedAxisExpandWindow([i.offsetX,i.offsetY]);"none"!==f.behavior&&this._dispatchExpand({axisExpandWindow:f.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(i){if(!this._mouseDownPoint&&cA(this,"mousemove")){var r=this._model,s=r.coordinateSystem.getSlidedAxisExpandWindow([i.offsetX,i.offsetY]),u=s.behavior;"jump"===u&&this._throttledDispatchExpand.debounceNextCall(r.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===u?null:{axisExpandWindow:s.axisExpandWindow,animation:"jump"===u?null:{duration:0}})}}};function cA(o,i){var r=o._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===i}var t7=Ya,r7=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(){o.prototype.init.apply(this,arguments),this.mergeOption({})},i.prototype.mergeOption=function(r){r&&He(this.option,r,!0),this._initDimensions()},i.prototype.contains=function(r,s){var u=r.get("parallelIndex");return null!=u&&s.getComponent("parallel",u)===this},i.prototype.setAxisExpand=function(r){q(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(s){r.hasOwnProperty(s)&&(this.option[s]=r[s])},this)},i.prototype._initDimensions=function(){var r=this.dimensions=[],s=this.parallelAxisIndex=[];q(Yn(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(f){return(f.get("parallelIndex")||0)===this.componentIndex},this),function(f){r.push("dim"+f.get("dim")),s.push(f.componentIndex)})},i.type="parallel",i.dependencies=["parallelAxis"],i.layoutMode="box",i.defaultOption={zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},i}(qt),fA=function(o){function i(r,s,u,f,d){var p=o.call(this,r,s,u)||this;return p.type=f||"value",p.axisIndex=d,p}return he(i,o),i.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},i}(_l);function kl(o,i,r,s,u,f){o=o||0;var d=r[1]-r[0];if(null!=u&&(u=ug(u,[0,d])),null!=f&&(f=Math.max(f,null!=u?u:0)),"all"===s){var p=Math.abs(i[1]-i[0]);p=ug(p,[0,d]),u=f=ug(p,[u,f]),s=0}i[0]=ug(i[0],r),i[1]=ug(i[1],r);var v=p1(i,s);i[s]+=o;var y,g=u||0,m=r.slice();return v.sign<0?m[0]+=g:m[1]-=g,i[s]=ug(i[s],m),y=p1(i,s),null!=u&&(y.sign!==v.sign||y.spanf&&(i[1-s]=i[s]+y.sign*f),i}function p1(o,i){var r=o[i]-o[1-i];return{span:Math.abs(r),sign:r>0?-1:r<0?1:i?-1:1}}function ug(o,i){return Math.min(null!=i[1]?i[1]:1/0,Math.max(null!=i[0]?i[0]:-1/0,o))}var dA=q,ON=Math.min,IN=Math.max,RN=Math.floor,i7=Math.ceil,hA=hi,LN=Math.PI;function v1(o,i){return ON(IN(o,i[0]),i[1])}function o7(o,i){var r=i.layoutLength/(i.axisCount-1);return{position:r*o,axisNameAvailableWidth:r,axisLabelShow:!0}}function s7(o,i){var p,m,s=i.axisExpandWidth,f=i.axisCollapseWidth,d=i.winInnerIndices,v=f,g=!1;return o=s&&d<=s+r.axisLength&&p>=u&&p<=u+r.layoutLength},o.prototype.getModel=function(){return this._model},o.prototype._updateAxesFromSeries=function(i,r){r.eachSeries(function(s){if(i.contains(s,r)){var u=s.getData();dA(this.dimensions,function(f){var d=this._axesMap.get(f);d.scale.unionExtentFromData(u,u.mapDimension(f)),Wf(d.scale,d.model)},this)}},this)},o.prototype.resize=function(i,r){this._rect=li(i.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},o.prototype.getRect=function(){return this._rect},o.prototype._makeLayoutInfo=function(){var S,i=this._model,r=this._rect,s=["x","y"],u=["width","height"],f=i.get("layout"),d="horizontal"===f?0:1,p=r[u[d]],v=[0,p],g=this.dimensions.length,m=v1(i.get("axisExpandWidth"),v),y=v1(i.get("axisExpandCount")||0,[0,g]),b=i.get("axisExpandable")&&g>3&&g>y&&y>1&&m>0&&p>0,w=i.get("axisExpandWindow");w?(S=v1(w[1]-w[0],v),w[1]=w[0]+S):(S=v1(m*(y-1),v),(w=[m*(i.get("axisExpandCenter")||RN(g/2))-S/2])[1]=w[0]+S);var x=(p-S)/(g-y);x<3&&(x=0);var T=[RN(hA(w[0]/m,1))+1,i7(hA(w[1]/m,1))-1];return{layout:f,pixelDimIndex:d,layoutBase:r[s[d]],layoutLength:p,axisBase:r[s[1-d]],axisLength:r[u[1-d]],axisExpandable:b,axisExpandWidth:m,axisCollapseWidth:x,axisExpandWindow:w,axisCount:g,winInnerIndices:T,axisExpandWindow0Pos:x/m*w[0]}},o.prototype._layoutAxes=function(){var i=this._rect,r=this._axesMap,s=this.dimensions,u=this._makeLayoutInfo(),f=u.layout;r.each(function(d){var p=[0,u.axisLength],v=d.inverse?1:0;d.setExtent(p[v],p[1-v])}),dA(s,function(d,p){var v=(u.axisExpandable?s7:o7)(p,u),g={horizontal:{x:v.position,y:u.axisLength},vertical:{x:0,y:v.position}},y=[g[f].x+i.x,g[f].y+i.y],b={horizontal:LN/2,vertical:0}[f],w=[1,0,0,1,0,0];Od(w,w,b),Oo(w,w,y),this._axesLayout[d]={position:y,rotation:b,transform:w,axisNameAvailableWidth:v.axisNameAvailableWidth,axisLabelShow:v.axisLabelShow,nameTruncateMaxWidth:v.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},o.prototype.getAxis=function(i){return this._axesMap.get(i)},o.prototype.dataToPoint=function(i,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(i),r)},o.prototype.eachActiveState=function(i,r,s,u){null==s&&(s=0),null==u&&(u=i.count());var f=this._axesMap,d=this.dimensions,p=[],v=[];q(d,function(x){p.push(i.mapDimension(x)),v.push(f.get(x).model)});for(var g=this.hasAxisBrushed(),m=s;mf*(1-y[0])?(g="jump",v=p-f*(1-y[2])):(v=p-f*y[1])>=0&&(v=p-f*(1-y[1]))<=0&&(v=0),(v*=r.axisExpandWidth/m)?kl(v,u,d,"all"):g="none";else{var w=u[1]-u[0];(u=[IN(0,d[1]*p/w-w/2)])[1]=ON(d[1],u[0]+w),u[0]=u[1]-w}return{axisExpandWindow:u,behavior:g}},o}(),cg={create:function(o,i){var r=[];return o.eachComponent("parallel",function(s,u){var f=new FN(s,o,i);f.name="parallel_"+u,f.resize(s,i),s.coordinateSystem=f,f.model=s,r.push(f)}),o.eachSeries(function(s){if("parallel"===s.get("coordinateSystem")){var u=s.getReferringComponents("parallel",ai).models[0];s.coordinateSystem=u.coordinateSystem}}),r}},pA=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.activeIntervals=[],r}return he(i,o),i.prototype.getAreaSelectStyle=function(){return Hd([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},i.prototype.setActiveIntervals=function(r){var s=this.activeIntervals=rt(r);if(s)for(var u=s.length-1;u>=0;u--)io(s[u])},i.prototype.getActiveState=function(r){var s=this.activeIntervals;if(!s.length)return"normal";if(null==r||isNaN(+r))return"inactive";if(1===s.length){var u=s[0];if(u[0]<=r&&r<=u[1])return"active"}else for(var f=0,d=s.length;f6}(o)||u){if(f&&!u){"single"===d.brushMode&&wn(o);var v=rt(d);v.brushType=qN(v.brushType,f),v.panelId=f===$h?null:f.panelId,u=o._creatingCover=vA(o,v),o._covers.push(u)}if(u){var g=Ny[qN(o._brushType,f)];u.__brushOption.range=g.getCreatingRange(S1(o,u,o._track)),s&&(UN(o,u),g.updateCommon(o,u)),gA(o,u),p={isEnd:s}}}else s&&"single"===d.brushMode&&d.removeOnClick&&dg(o,i,r)&&wn(o)&&(p={isEnd:s,removeOnClick:!0});return p}function qN(o,i){return"auto"===o?i.defaultBrushType:o}var v7={mousedown:function(i){if(this._dragging)XN(this,i);else if(!i.target||!i.target.draggable){_A(i);var r=this.group.transformCoordToLocal(i.offsetX,i.offsetY);this._creatingCover=null,(this._creatingPanel=dg(this,i,r))&&(this._dragging=!0,this._track=[r.slice()])}},mousemove:function(i){var u=this.group.transformCoordToLocal(i.offsetX,i.offsetY);if(function(o,i,r){if(o._brushType&&!function(o,i,r){var s=o._zr;return i<0||i>s.getWidth()||r<0||r>s.getHeight()}(o,i.offsetX,i.offsetY)){var s=o._zr,u=o._covers,f=dg(o,i,r);if(!o._dragging)for(var d=0;d=0&&(p[d[v].depth]=new Nn(d[v],this,s));if(f&&u)return kN(f,u,this,!0,function(y,b){y.wrapMethod("getItemModel",function(w,S){var M=w.parentModel,x=M.getData().getItemLayout(S);if(x){var P=M.levelModels[x.depth];P&&(w.parentModel=P)}return w}),b.wrapMethod("getItemModel",function(w,S){var M=w.parentModel,T=M.getGraph().getEdgeByIndex(S).node1.getLayout();if(T){var O=M.levelModels[T.depth];O&&(w.parentModel=O)}return w})}).data},i.prototype.setNodePosition=function(r,s){var f=(this.option.data||this.option.nodes)[r];f.localX=s[0],f.localY=s[1]},i.prototype.getGraph=function(){return this.getData().graph},i.prototype.getEdgeData=function(){return this.getGraph().edgeData},i.prototype.formatTooltip=function(r,s,u){function f(w){return isNaN(w)||null==w}if("edge"===u){var d=this.getDataParams(r,u),p=d.data,v=d.value;return pi("nameValue",{name:p.source+" -- "+p.target,value:v,noValue:f(v)})}var y=this.getGraph().getNodeByIndex(r).getLayout().value,b=this.getDataParams(r,u).data.name;return pi("nameValue",{name:null!=b?b+"":null,value:y,noValue:f(y)})},i.prototype.optionUpdated=function(){},i.prototype.getDataParams=function(r,s){var u=o.prototype.getDataParams.call(this,r,s);if(null==u.value&&"node"===s){var d=this.getGraph().getNodeByIndex(r).getLayout().value;u.value=d}return u},i.type="series.sankey",i.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},i}(vt);function wA(o,i){o.eachSeriesByType("sankey",function(r){var s=r.get("nodeWidth"),u=r.get("nodeGap"),f=function(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})}(r,i);r.layoutInfo=f;var d=f.width,p=f.height,v=r.getGraph(),g=v.nodes,m=v.edges;!function(o){q(o,function(i){var r=qa(i.outEdges,_g),s=qa(i.inEdges,_g),u=i.getValue()||0,f=Math.max(r,s,u);i.setLayout({value:f},!0)})}(g),function(o,i,r,s,u,f,d,p,v){(function(o,i,r,s,u,f,d){for(var p=[],v=[],g=[],m=[],y=0,b=0;b=0;T&&x.depth>w&&(w=x.depth),M.setLayout({depth:T?x.depth:y},!0),M.setLayout("vertical"===f?{dy:r}:{dx:r},!0);for(var P=0;Py-1?w:y-1;d&&"left"!==d&&function(o,i,r,s){if("right"===i){for(var u=[],f=o,d=0;f.length;){for(var p=0;p0;f--)r3(p,v*=.99,d),MA(p,u,r,s,d),A7(p,v,d),MA(p,u,r,s,d)}(o,i,f,u,s,d,p),function(o,i){var r="vertical"===i?"x":"y";q(o,function(s){s.outEdges.sort(function(u,f){return u.node2.getLayout()[r]-f.node2.getLayout()[r]}),s.inEdges.sort(function(u,f){return u.node1.getLayout()[r]-f.node1.getLayout()[r]})}),q(o,function(s){var u=0,f=0;q(s.outEdges,function(d){d.setLayout({sy:u},!0),u+=d.getLayout().dy}),q(s.inEdges,function(d){d.setLayout({ty:f},!0),f+=d.getLayout().dy})})}(o,p)}(g,m,s,u,d,p,0!==Yn(g,function(M){return 0===M.getLayout().value}).length?0:r.get("layoutIterations"),r.get("orient"),r.get("nodeAlign"))})}function t3(o){var i=o.hostGraph.data.getRawDataItem(o.dataIndex);return null!=i.depth&&i.depth>=0}function MA(o,i,r,s,u){var f="vertical"===u?"x":"y";q(o,function(d){d.sort(function(M,x){return M.getLayout()[f]-x.getLayout()[f]});for(var p,v,g,m=0,y=d.length,b="vertical"===u?"dx":"dy",w=0;w0&&(p=v.getLayout()[f]+g,v.setLayout("vertical"===u?{x:p}:{y:p},!0)),m=v.getLayout()[f]+v.getLayout()[b]+i;if((g=m-i-("vertical"===u?s:r))>0)for(p=v.getLayout()[f]-g,v.setLayout("vertical"===u?{x:p}:{y:p},!0),m=p,w=y-2;w>=0;--w)(g=(v=d[w]).getLayout()[f]+v.getLayout()[b]+i-m)>0&&(p=v.getLayout()[f]-g,v.setLayout("vertical"===u?{x:p}:{y:p},!0)),m=v.getLayout()[f]})}function r3(o,i,r){q(o.slice().reverse(),function(s){q(s,function(u){if(u.outEdges.length){var f=qa(u.outEdges,i3,r)/qa(u.outEdges,_g);if(isNaN(f)){var d=u.outEdges.length;f=d?qa(u.outEdges,T7,r)/d:0}if("vertical"===r){var p=u.getLayout().x+(f-id(u,r))*i;u.setLayout({x:p},!0)}else{var v=u.getLayout().y+(f-id(u,r))*i;u.setLayout({y:v},!0)}}})})}function i3(o,i){return id(o.node2,i)*o.getValue()}function T7(o,i){return id(o.node2,i)}function D7(o,i){return id(o.node1,i)*o.getValue()}function a3(o,i){return id(o.node1,i)}function id(o,i){return"vertical"===i?o.getLayout().x+o.getLayout().dx/2:o.getLayout().y+o.getLayout().dy/2}function _g(o){return o.getValue()}function qa(o,i,r){for(var s=0,u=o.length,f=-1;++ff&&(f=p)}),q(s,function(d){var v=new Ji({type:"color",mappingMethod:"linear",dataExtent:[u,f],visual:i.get("color")}).mapValueToVisual(d.getLayout().value),g=d.getModel().get(["itemStyle","color"]);null!=g?(d.setVisual("color",g),d.setVisual("style",{fill:g})):(d.setVisual("color",v),d.setVisual("style",{fill:v}))})}})}var o3=function(){function o(){}return o.prototype.getInitialData=function(i,r){var s,v,u=r.getComponent("xAxis",this.get("xAxisIndex")),f=r.getComponent("yAxis",this.get("yAxisIndex")),d=u.get("type"),p=f.get("type");"category"===d?(i.layout="horizontal",s=u.getOrdinalMeta(),v=!0):"category"===p?(i.layout="vertical",s=f.getOrdinalMeta(),v=!0):i.layout=i.layout||"horizontal";var g=["x","y"],m="horizontal"===i.layout?0:1,y=this._baseAxisDim=g[m],b=g[1-m],w=[u,f],S=w[m].get("type"),M=w[1-m].get("type"),x=i.data;if(x&&v){var T=[];q(x,function(R,V){var B;we(R)?(B=R.slice(),R.unshift(V)):we(R.value)?((B=ke({},R)).value=B.value.slice(),R.value.unshift(V)):B=R,T.push(B)}),i.data=T}var P=this.defaultValueDimensions,O=[{name:y,type:QC(S),ordinalMeta:s,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:b,type:QC(M),dimsDef:P.slice()}];return po(this,{coordDimensions:O,dimensionsCount:P.length+1,encodeDefaulter:St(au,O,this)})},o.prototype.getBaseAxis=function(){var i=this._baseAxisDim;return this.ecModel.getComponent(i+"Axis",this.get(i+"AxisIndex")).axis},o}(),s3=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return he(i,o),i.type="series.boxplot",i.dependencies=["xAxis","yAxis","grid"],i.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},i}(vt);qr(s3,o3,!0);var Hy=s3,zy=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData(),d=this.group,p=this._data;this._data||d.removeAll();var v="horizontal"===r.get("layout")?1:0;f.diff(p).add(function(g){if(f.hasValue(g)){var y=c3(f.getItemLayout(g),f,g,v,!0);f.setItemGraphicEl(g,y),d.add(y)}}).update(function(g,m){var y=p.getItemGraphicEl(m);if(f.hasValue(g)){var b=f.getItemLayout(g);y?(el(y),f3(b,y,f,g)):y=c3(b,f,g,v),d.add(y),f.setItemGraphicEl(g,y)}else d.remove(y)}).remove(function(g){var m=p.getItemGraphicEl(g);m&&d.remove(m)}).execute(),this._data=f},i.prototype.remove=function(r){var s=this.group,u=this._data;this._data=null,u&&u.eachItemGraphicEl(function(f){f&&s.remove(f)})},i.type="boxplot",i}(Vn),l3=function(){},u3=function(o){function i(r){var s=o.call(this,r)||this;return s.type="boxplotBoxPath",s}return he(i,o),i.prototype.getDefaultShape=function(){return new l3},i.prototype.buildPath=function(r,s){var u=s.points,f=0;for(r.moveTo(u[f][0],u[f][1]),f++;f<4;f++)r.lineTo(u[f][0],u[f][1]);for(r.closePath();fM)&&s.push([T,O])}}return{boxData:r,outliers:s}}(r.getRawData(),i.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:u.boxData},{data:u.outliers}]}},h3=["color","borderColor"],p3=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){this.group.removeClipPath(),this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},i.prototype.incrementalPrepareRender=function(r,s,u){this._clear(),this._updateDrawMode(r)},i.prototype.incrementalRender=function(r,s,u,f){this._isLargeDraw?this._incrementalRenderLarge(r,s):this._incrementalRenderNormal(r,s)},i.prototype._updateDrawMode=function(r){var s=r.pipelineContext.large;(null==this._isLargeDraw||s!==this._isLargeDraw)&&(this._isLargeDraw=s,this._clear())},i.prototype._renderNormal=function(r){var s=r.getData(),u=this._data,f=this.group,d=s.getLayout("isSimpleBox"),p=r.get("clip",!0),v=r.coordinateSystem,g=v.getArea&&v.getArea();this._data||f.removeAll(),s.diff(u).add(function(m){if(s.hasValue(m)){var y=s.getItemLayout(m);if(p&&TA(g,y))return;var b=bg(y,0,!0);br(b,{shape:{points:y.ends}},r,m),DA(b,s,m,d),f.add(b),s.setItemGraphicEl(m,b)}}).update(function(m,y){var b=u.getItemGraphicEl(y);if(s.hasValue(m)){var w=s.getItemLayout(m);p&&TA(g,w)?f.remove(b):(b?(ln(b,{shape:{points:w.ends}},r,m),el(b)):b=bg(w),DA(b,s,m,d),f.add(b),s.setItemGraphicEl(m,b))}else f.remove(b)}).remove(function(m){var y=u.getItemGraphicEl(m);y&&f.remove(y)}).execute(),this._data=s},i.prototype._renderLarge=function(r){this._clear(),m3(r,this.group);var s=r.get("clip",!0)?Tw(r.coordinateSystem,!1,r):null;s?this.group.setClipPath(s):this.group.removeClipPath()},i.prototype._incrementalRenderNormal=function(r,s){for(var d,u=s.getData(),f=u.getLayout("isSimpleBox");null!=(d=r.next());){var v=bg(u.getItemLayout(d));DA(v,u,d,f),v.incremental=!0,this.group.add(v)}},i.prototype._incrementalRenderLarge=function(r,s){m3(s,this.group,!0)},i.prototype.remove=function(r){this._clear()},i.prototype._clear=function(){this.group.removeAll(),this._data=null},i.type="candlestick",i}(Vn),Uy=function(){},v3=function(o){function i(r){var s=o.call(this,r)||this;return s.type="normalCandlestickBox",s}return he(i,o),i.prototype.getDefaultShape=function(){return new Uy},i.prototype.buildPath=function(r,s){var u=s.points;this.__simpleBox?(r.moveTo(u[4][0],u[4][1]),r.lineTo(u[6][0],u[6][1])):(r.moveTo(u[0][0],u[0][1]),r.lineTo(u[1][0],u[1][1]),r.lineTo(u[2][0],u[2][1]),r.lineTo(u[3][0],u[3][1]),r.closePath(),r.moveTo(u[4][0],u[4][1]),r.lineTo(u[5][0],u[5][1]),r.moveTo(u[6][0],u[6][1]),r.lineTo(u[7][0],u[7][1]))},i}(Vt);function bg(o,i,r){var s=o.ends;return new v3({shape:{points:r?F7(s,o):s},z2:100})}function TA(o,i){for(var r=!0,s=0;s0?"borderColor":"borderColor0"])||r.get(["itemStyle",o>0?"color":"color0"]),f=r.getModel("itemStyle").getItemStyle(h3);i.useStyle(f),i.style.fill=null,i.style.stroke=u}var V7=p3,AA=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return he(i,o),i.prototype.getShadowDim=function(){return"open"},i.prototype.brushSelector=function(r,s,u){var f=s.getItemLayout(r);return f&&u.rect(f.brushRect)},i.type="series.candlestick",i.dependencies=["xAxis","yAxis","grid"],i.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},i}(vt);qr(AA,o3,!0);var L1=AA;function B7(o){!o||!we(o.series)||q(o.series,function(i){at(i)&&"k"===i.type&&(i.type="candlestick")})}var H7=["itemStyle","borderColor"],F1=["itemStyle","borderColor0"],z7=["itemStyle","color"],Gy=["itemStyle","color0"],G7={seriesType:"candlestick",plan:De(),performRawSeries:!0,reset:function(i,r){function s(d,p){return p.get(d>0?z7:Gy)}function u(d,p){return p.get(d>0?H7:F1)}if(!r.isSeriesFiltered(i))return!i.pipelineContext.large&&{progress:function(p,v){for(var g;null!=(g=p.next());){var m=v.getItemModel(g),y=v.getItemLayout(g).sign,b=m.getItemStyle();b.fill=s(y,m),b.stroke=u(y,m)||b.fill,ke(v.ensureUniqueItemVisual(g,"style"),b)}}}}},jy="undefined"!=typeof Float32Array?Float32Array:Array;function _3(o,i,r,s,u){return r>s?-1:r0?o.get(u,i-1)<=s?1:-1:1}var Y7={seriesType:"candlestick",plan:De(),reset:function(i){var r=i.coordinateSystem,s=i.getData(),u=function(o,i){var s,r=o.getBaseAxis(),u="category"===r.type?r.getBandWidth():(s=r.getExtent(),Math.abs(s[1]-s[0])/i.count()),f=Fe(ot(o.get("barMaxWidth"),u),u),d=Fe(ot(o.get("barMinWidth"),1),u),p=o.get("barWidth");return null!=p?Fe(p,u):Math.max(Math.min(u/2,f),d)}(i,s),p=["x","y"],v=s.getDimensionIndex(s.mapDimension(p[0])),g=Te(s.mapDimensionsAll(p[1]),s.getDimensionIndex,s),m=g[0],y=g[1],b=g[2],w=g[3];if(s.setLayout({candleWidth:u,isSimpleBox:u<=1.3}),!(v<0||g.length<4))return{progress:i.pipelineContext.large?function(x,T){for(var R,U,P=new jy(4*x.count),O=0,V=[],B=[],j=T.getStore();null!=(U=x.next());){var X=j.get(v,U),K=j.get(m,U),$=j.get(y,U),te=j.get(b,U),ee=j.get(w,U);isNaN(X)||isNaN(te)||isNaN(ee)?(P[O++]=NaN,O+=3):(P[O++]=_3(j,U,K,$,y),V[0]=X,V[1]=te,R=r.dataToPoint(V,null,B),P[O++]=R?R[0]:NaN,P[O++]=R?R[1]:NaN,V[1]=ee,R=r.dataToPoint(V,null,B),P[O++]=R?R[1]:NaN)}T.setLayout("largePoints",P)}:function(x,T){for(var P,O=T.getStore();null!=(P=x.next());){var R=O.get(v,P),V=O.get(m,P),B=O.get(y,P),U=O.get(b,P),j=O.get(w,P),X=Math.min(V,B),K=Math.max(V,B),$=de(X,R),te=de(K,R),ee=de(U,R),le=de(j,R),oe=[];ge(oe,te,0),ge(oe,$,1),oe.push(xe(le),xe(te),xe(ee),xe($)),T.setItemLayout(P,{sign:_3(O,P,V,B,y),initBaseline:V>B?te[1]:$[1],ends:oe,brushRect:(Me=U,ze=j,Je=R,mt=void 0,Qt=void 0,mt=de(Me,Je),Qt=de(ze,Je),mt[0]-=u/2,Qt[0]-=u/2,{x:mt[0],y:mt[1],width:u,height:Qt[1]-mt[1]})})}var Me,ze,Je,mt,Qt;function de(Me,ze){var Je=[];return Je[0]=ze,Je[1]=Me,isNaN(ze)||isNaN(Me)?[NaN,NaN]:r.dataToPoint(Je)}function ge(Me,ze,Je){var mt=ze.slice(),Qt=ze.slice();mt[0]=Rf(mt[0]+u/2,1,!1),Qt[0]=Rf(Qt[0]-u/2,1,!0),Je?Me.push(mt,Qt):Me.push(Qt,mt)}function xe(Me){return Me[0]=Rf(Me[0],1),Me}}}}};function y3(o,i){var r=i.rippleEffectColor||i.color;o.eachChild(function(s){s.attr({z:i.z,zlevel:i.zlevel,style:{stroke:"stroke"===i.brushType?r:null,fill:"fill"===i.brushType?r:null}})})}var Z7=function(o){function i(r,s){var u=o.call(this)||this,f=new j_(r,s),d=new ct;return u.add(f),u.add(d),u.updateData(r,s),u}return he(i,o),i.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},i.prototype.startEffectAnimation=function(r){for(var s=r.symbolType,u=r.color,f=r.rippleNumber,d=this.childAt(1),p=0;p0&&(v=this._getLineLength(f)/m*1e3),(v!==this._period||g!==this._loop)&&(f.stopAnimation(),v>0)){var b=void 0;b="function"==typeof y?y(u):y,f.__t>0&&(b=-v*f.__t),f.__t=0;var w=f.animate("",g).when(v,{__t:1}).delay(b).during(function(){d._updateSymbolPosition(f)});g||w.done(function(){d.remove(f)}),w.start()}this._period=v,this._loop=g}},i.prototype._getLineLength=function(r){return Vs(r.__p1,r.__cp1)+Vs(r.__cp1,r.__p2)},i.prototype._updateAnimationPoints=function(r,s){r.__p1=s[0],r.__p2=s[1],r.__cp1=s[2]||[(s[0][0]+s[1][0])/2,(s[0][1]+s[1][1])/2]},i.prototype.updateData=function(r,s,u){this.childAt(0).updateData(r,s,u),this._updateEffectSymbol(r,s)},i.prototype._updateSymbolPosition=function(r){var s=r.__p1,u=r.__p2,f=r.__cp1,d=r.__t,p=[r.x,r.y],v=p.slice(),g=Fi,m=oM;p[0]=g(s[0],f[0],u[0],d),p[1]=g(s[1],f[1],u[1],d);var y=m(s[0],f[0],u[0],d),b=m(s[1],f[1],u[1],d);r.rotation=-Math.atan2(b,y)-Math.PI/2,("line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)&&(void 0!==r.__lastT&&r.__lastT=0&&!(f[v]<=s);v--);v=Math.min(v,d-2)}else{for(v=p;vs);v++);v=Math.min(v-1,d-2)}var m=(s-f[v])/(f[v+1]-f[v]),y=u[v],b=u[v+1];r.x=y[0]*(1-m)+m*b[0],r.y=y[1]*(1-m)+m*b[1],r.rotation=-Math.atan2(b[1]-y[1],b[0]-y[0])-Math.PI/2,this._lastFrame=v,this._lastFramePercent=s,r.ignore=!1}},i}(C3),M3=function(){this.polyline=!1,this.curveness=0,this.segs=[]},EA=function(o){function i(r){return o.call(this,r)||this}return he(i,o),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new M3},i.prototype.buildPath=function(r,s){var u=s.segs,f=s.curveness;if(s.polyline)for(var d=0;d0){r.moveTo(u[d++],u[d++]);for(var v=1;v0?r.quadraticCurveTo((g+y)/2-(m-b)*f,(m+b)/2-(y-g)*f,y,b):r.lineTo(y,b)}},i.prototype.findDataIndex=function(r,s){var u=this.shape,f=u.segs,d=u.curveness,p=this.style.lineWidth;if(u.polyline)for(var v=0,g=0;g0)for(var y=f[g++],b=f[g++],w=1;w0){if(Si(y,b,(y+S)/2-(b-M)*d,(b+M)/2-(S-y)*d,S,M,p,r,s))return v}else if(gf(y,b,S,M,p,r,s))return v;v++}return-1},i}(Vt),rW=function(){function o(){this.group=new ct}return o.prototype.isPersistent=function(){return!this._incremental},o.prototype.updateData=function(i){this.group.removeAll();var r=new EA({rectHover:!0,cursor:"default"});r.setShape({segs:i.getLayout("linesPoints")}),this._setCommon(r,i),this.group.add(r),this._incremental=null},o.prototype.incrementalPrepareUpdate=function(i){this.group.removeAll(),this._clearIncremental(),i.count()>5e5?(this._incremental||(this._incremental=new Tv({silent:!0})),this.group.add(this._incremental)):this._incremental=null},o.prototype.incrementalUpdate=function(i,r){var s=new EA;s.setShape({segs:r.getLayout("linesPoints")}),this._setCommon(s,r,!!this._incremental),this._incremental?this._incremental.addDisplayable(s,!0):(s.rectHover=!0,s.cursor="default",s.__startIndex=i.start,this.group.add(s))},o.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},o.prototype._setCommon=function(i,r,s){var u=r.hostModel;i.setShape({polyline:u.get("polyline"),curveness:u.get(["lineStyle","curveness"])}),i.useStyle(u.getModel("lineStyle").getLineStyle()),i.style.strokeNoScale=!0;var f=r.getVisual("style");if(f&&f.stroke&&i.setStyle("stroke",f.stroke),i.setStyle("fill",null),!s){var d=ht(i);d.seriesIndex=u.seriesIndex,i.on("mousemove",function(p){d.dataIndex=null;var v=i.findDataIndex(p.offsetX,p.offsetY);v>0&&(d.dataIndex=v+i.__startIndex)})}},o.prototype._clearIncremental=function(){var i=this._incremental;i&&i.clearDisplaybles()},o}(),x3={seriesType:"lines",plan:De(),reset:function(i){var r=i.coordinateSystem,s=i.get("polyline"),u=i.pipelineContext.large;return{progress:function(d,p){var v=[];if(u){var g=void 0,m=d.end-d.start;if(s){for(var y=0,b=d.start;b ")})},i.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},i.prototype.getProgressive=function(){var r=this.option.progressive;return null==r?this.option.large?1e4:this.get("progressive"):r},i.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return null==r?this.option.large?2e4:this.get("progressiveThreshold"):r},i.type="series.lines",i.dependencies=["grid","polar","geo","calendar"],i.defaultOption={coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},i}(vt);function N1(o){return o instanceof Array||(o=[o,o]),o}var lW={seriesType:"lines",reset:function(i){var r=N1(i.get("symbol")),s=N1(i.get("symbolSize")),u=i.getData();return u.setVisual("fromSymbol",r&&r[0]),u.setVisual("toSymbol",r&&r[1]),u.setVisual("fromSymbolSize",s&&s[0]),u.setVisual("toSymbolSize",s&&s[1]),{dataEach:u.hasItemOption?function(d,p){var v=d.getItemModel(p),g=N1(v.getShallow("symbol",!0)),m=N1(v.getShallow("symbolSize",!0));g[0]&&d.setItemVisual(p,"fromSymbol",g[0]),g[1]&&d.setItemVisual(p,"toSymbol",g[1]),m[0]&&d.setItemVisual(p,"fromSymbolSize",m[0]),m[1]&&d.setItemVisual(p,"toSymbolSize",m[1])}:null}}},A3=function(){function o(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var i=md();this.canvas=i}return o.prototype.update=function(i,r,s,u,f,d){var p=this._getBrush(),v=this._getGradient(f,"inRange"),g=this._getGradient(f,"outOfRange"),m=this.pointSize+this.blurSize,y=this.canvas,b=y.getContext("2d"),w=i.length;y.width=r,y.height=s;for(var S=0;S0){var te=d(O)?v:g;O>0&&(O=O*K+j),V[B++]=te[$],V[B++]=te[$+1],V[B++]=te[$+2],V[B++]=te[$+3]*O*256}else B+=4}return b.putImageData(R,0,0),y},o.prototype._getBrush=function(){var i=this._brushCanvas||(this._brushCanvas=md()),r=this.pointSize+this.blurSize,s=2*r;i.width=s,i.height=s;var u=i.getContext("2d");return u.clearRect(0,0,s,s),u.shadowOffsetX=s,u.shadowBlur=this.blurSize,u.shadowColor="#000",u.beginPath(),u.arc(-r,r,this.pointSize,0,2*Math.PI,!0),u.closePath(),u.fill(),i},o.prototype._getGradient=function(i,r){for(var s=this._gradientPixels,u=s[r]||(s[r]=new Uint8ClampedArray(1024)),f=[0,0,0,0],d=0,p=0;p<256;p++)i[r](p/255,!0,f),u[d++]=f[0],u[d++]=f[1],u[d++]=f[2],u[d++]=f[3];return u},o}();function Da(o){var i=o.dimensions;return"lng"===i[0]&&"lat"===i[1]}var V1=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f;s.eachComponent("visualMap",function(p){p.eachTargetSeries(function(v){v===r&&(f=p)})}),this.group.removeAll(),this._incrementalDisplayable=null;var d=r.coordinateSystem;"cartesian2d"===d.type||"calendar"===d.type?this._renderOnCartesianAndCalendar(r,u,0,r.getData().count()):Da(d)&&this._renderOnGeo(d,r,f,u)},i.prototype.incrementalPrepareRender=function(r,s,u){this.group.removeAll()},i.prototype.incrementalRender=function(r,s,u,f){var d=s.coordinateSystem;d&&(Da(d)?this.render(s,u,f):this._renderOnCartesianAndCalendar(s,f,r.start,r.end,!0))},i.prototype._renderOnCartesianAndCalendar=function(r,s,u,f,d){var v,g,m,y,p=r.coordinateSystem;if(uc(p,"cartesian2d")){var b=p.getAxis("x"),w=p.getAxis("y");v=b.getBandWidth(),g=w.getBandWidth(),m=b.scale.getExtent(),y=w.scale.getExtent()}for(var S=this.group,M=r.getData(),x=r.getModel(["emphasis","itemStyle"]).getItemStyle(),T=r.getModel(["blur","itemStyle"]).getItemStyle(),P=r.getModel(["select","itemStyle"]).getItemStyle(),O=lr(r),R=r.get(["emphasis","focus"]),V=r.get(["emphasis","blurScope"]),B=uc(p,"cartesian2d")?[M.mapDimension("x"),M.mapDimension("y"),M.mapDimension("value")]:[M.mapDimension("time"),M.mapDimension("value")],U=u;Um[1]||$y[1])continue;var te=p.dataToPoint([K,$]);j=new sn({shape:{x:Math.floor(Math.round(te[0])-v/2),y:Math.floor(Math.round(te[1])-g/2),width:Math.ceil(v),height:Math.ceil(g)},style:X})}else{if(isNaN(M.get(B[1],U)))continue;j=new sn({z2:1,shape:p.dataToRect([M.get(B[0],U)]).contentShape,style:X})}var ee=M.getItemModel(U);if(M.hasItemOption){var le=ee.getModel("emphasis");x=le.getModel("itemStyle").getItemStyle(),T=ee.getModel(["blur","itemStyle"]).getItemStyle(),P=ee.getModel(["select","itemStyle"]).getItemStyle(),R=le.get("focus"),V=le.get("blurScope"),O=lr(ee)}var oe=r.getRawValue(U),de="-";oe&&null!=oe[2]&&(de=oe[2]+""),Mi(j,O,{labelFetcher:r,labelDataIndex:U,defaultOpacity:X.opacity,defaultText:de}),j.ensureState("emphasis").style=x,j.ensureState("blur").style=T,j.ensureState("select").style=P,qn(j,R,V),j.incremental=d,d&&(j.states.emphasis.hoverLayer=!0),S.add(j),M.setItemGraphicEl(U,j)}},i.prototype._renderOnGeo=function(r,s,u,f){var d=u.targetVisuals.inRange,p=u.targetVisuals.outOfRange,v=s.getData(),g=this._hmLayer||this._hmLayer||new A3;g.blurSize=s.get("blurSize"),g.pointSize=s.get("pointSize"),g.minOpacity=s.get("minOpacity"),g.maxOpacity=s.get("maxOpacity");var m=r.getViewRect().clone(),y=r.getRoamTransform();m.applyTransform(y);var b=Math.max(m.x,0),w=Math.max(m.y,0),S=Math.min(m.width+m.x,f.getWidth()),M=Math.min(m.height+m.y,f.getHeight()),x=S-b,T=M-w,P=[v.mapDimension("lng"),v.mapDimension("lat"),v.mapDimension("value")],O=v.mapArray(P,function(U,j,X){var K=r.dataToPoint([U,j]);return K[0]-=b,K[1]-=w,K.push(X),K}),R=u.getExtent(),V="visualMap.continuous"===u.type?function(o,i){var r=o[1]-o[0];return i=[(i[0]-o[0])/r,(i[1]-o[0])/r],function(s){return s>=i[0]&&s<=i[1]}}(R,u.option.range):function(o,i,r){var s=o[1]-o[0],u=(i=Te(i,function(d){return{interval:[(d.interval[0]-o[0])/s,(d.interval[1]-o[0])/s]}})).length,f=0;return function(d){var p;for(p=f;p=0;p--){var v;if((v=i[p].interval)[0]<=d&&d<=v[1]){f=p;break}}return p>=0&&p0?1:m<0?-1:0})(r,f,u,s,b),function(o,i,r,s,u,f,d,p,v,g){var S,m=v.valueDim,y=v.categoryDim,b=Math.abs(r[y.wh]),w=o.getItemVisual(i,"symbolSize");(S=we(w)?w.slice():null==w?["100%","100%"]:[w,w])[y.index]=Fe(S[y.index],b),S[m.index]=Fe(S[m.index],s?b:Math.abs(f)),g.symbolSize=S,(g.symbolScale=[S[0]/p,S[1]/p])[m.index]*=(v.isHorizontal?-1:1)*d}(o,i,u,f,0,b.boundingLength,b.pxSign,m,s,b),function(o,i,r,s,u){var f=o.get(vW)||0;f&&(Wy.attr({scaleX:i[0],scaleY:i[1],rotation:r}),Wy.updateTransform(),f/=Wy.getLineScale(),f*=i[s.valueDim.index]),u.valueLineWidth=f}(r,b.symbolScale,g,s,b);var w=b.symbolSize,S=Ah(r.get("symbolOffset"),w);return function(o,i,r,s,u,f,d,p,v,g,m,y){var b=m.categoryDim,w=m.valueDim,S=y.pxSign,M=Math.max(i[w.index]+p,0),x=M;if(s){var T=Math.abs(v),P=ni(o.get("symbolMargin"),"15%")+"",O=!1;P.lastIndexOf("!")===P.length-1&&(O=!0,P=P.slice(0,P.length-1));var R=Fe(P,i[w.index]),V=Math.max(M+2*R,0),B=O?0:2*R,U=of(s),j=U?s:H3((T+B)/V);V=M+2*(R=(T-j*M)/2/(O?j:Math.max(j-1,1))),B=O?0:2*R,!U&&"fixed"!==s&&(j=g?H3((Math.abs(g)+B)/V):0),x=j*V-B,y.repeatTimes=j,y.symbolMargin=R}var K=S*(x/2),$=y.pathPosition=[];$[b.index]=r[b.wh]/2,$[w.index]="start"===d?K:"end"===d?v-K:v/2,f&&($[0]+=f[0],$[1]+=f[1]);var te=y.bundlePosition=[];te[b.index]=r[b.xy],te[w.index]=r[w.xy];var ee=y.barRectShape=ke({},r);ee[w.wh]=S*Math.max(Math.abs(r[w.wh]),Math.abs($[w.index]+K)),ee[b.wh]=r[b.wh];var le=y.clipShape={};le[b.xy]=-r[b.xy],le[b.wh]=m.ecSize[b.wh],le[w.xy]=0,le[w.wh]=r[w.wh]}(r,w,u,f,0,S,p,b.valueLineWidth,b.boundingLength,b.repeatCutLength,s,b),b}function H1(o,i){return o.toGlobalCoord(o.dataToCoord(o.scale.parse(i)))}function ad(o){var i=o.symbolPatternSize,r=Ir(o.symbolType,-i/2,-i/2,i,i);return r.attr({culling:!0}),"image"!==r.type&&r.setStyle({strokeNoScale:!0}),r}function LA(o,i,r,s){var u=o.__pictorialBundle,p=r.pathPosition,v=i.valueDim,g=r.repeatTimes||0,m=0,y=r.symbolSize[i.valueDim.index]+r.valueLineWidth+2*r.symbolMargin;for(NA(o,function(M){M.__pictorialAnimationIndex=m,M.__pictorialRepeatTimes=g,m0:T<0)&&(P=g-1-M),x[v.index]=y*(P-g/2+.5)+p[v.index],{x:x[0],y:x[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function O3(o,i,r,s){var u=o.__pictorialBundle,f=o.__pictorialMainPath;f?od(f,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,s):(f=o.__pictorialMainPath=ad(r),u.add(f),od(f,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,s))}function I3(o,i,r){var s=ke({},i.barRectShape),u=o.__pictorialBarRect;u?od(u,null,{shape:s},i,r):((u=o.__pictorialBarRect=new sn({z2:2,shape:s,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,o.add(u))}function R3(o,i,r,s){if(r.symbolClip){var u=o.__pictorialClipPath,f=ke({},r.clipShape),d=i.valueDim,p=r.animationModel,v=r.dataIndex;if(u)ln(u,{shape:f},p,v);else{f[d.wh]=0,u=new sn({shape:f}),o.__pictorialBundle.setClipPath(u),o.__pictorialClipPath=u;var g={};g[d.wh]=r.clipShape[d.wh],F[s?"updateProps":"initProps"](u,{shape:g},p,v)}}}function FA(o,i){var r=o.getItemModel(i);return r.getAnimationDelayParams=_W,r.isAnimationEnabled=yW,r}function _W(o){return{index:o.__pictorialAnimationIndex,count:o.__pictorialRepeatTimes}}function yW(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function L3(o,i,r,s){var u=new ct,f=new ct;return u.add(f),u.__pictorialBundle=f,f.x=r.bundlePosition[0],f.y=r.bundlePosition[1],r.symbolRepeat?LA(u,i,r):O3(u,0,r),I3(u,r,s),R3(u,i,r,s),u.__pictorialShapeStr=V3(o,r),u.__pictorialSymbolMeta=r,u}function N3(o,i,r,s){var u=s.__pictorialBarRect;u&&u.removeTextContent();var f=[];NA(s,function(d){f.push(d)}),s.__pictorialMainPath&&f.push(s.__pictorialMainPath),s.__pictorialClipPath&&(r=null),q(f,function(d){Cf(d,{scaleX:0,scaleY:0},r,i,function(){s.parent&&s.parent.remove(s)})}),o.setItemGraphicEl(i,null)}function V3(o,i){return[o.getItemVisual(i.dataIndex,"symbol")||"none",!!i.symbolRepeat,!!i.symbolClip].join(":")}function NA(o,i,r){q(o.__pictorialBundle.children(),function(s){s!==o.__pictorialBarRect&&i.call(r,s)})}function od(o,i,r,s,u,f){i&&o.attr(i),s.symbolClip&&!u?r&&o.attr(r):r&&F[u?"updateProps":"initProps"](o,r,s.animationModel,s.dataIndex,f)}function B3(o,i,r){var s=r.dataIndex,u=r.itemModel,f=u.getModel("emphasis"),d=f.getModel("itemStyle").getItemStyle(),p=u.getModel(["blur","itemStyle"]).getItemStyle(),v=u.getModel(["select","itemStyle"]).getItemStyle(),g=u.getShallow("cursor"),m=f.get("focus"),y=f.get("blurScope"),b=f.get("scale");NA(o,function(M){if(M instanceof si){var x=M.style;M.useStyle(ke({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},r.style))}else M.useStyle(r.style);var T=M.ensureState("emphasis");T.style=d,b&&(T.scaleX=1.1*M.scaleX,T.scaleY=1.1*M.scaleY),M.ensureState("blur").style=p,M.ensureState("select").style=v,g&&(M.cursor=g),M.z2=r.z2});var w=i.valueDim.posDesc[+(r.boundingLength>0)];Mi(o.__pictorialBarRect,lr(u),{labelFetcher:i.seriesModel,labelDataIndex:s,defaultText:Xf(i.seriesModel.getData(),s),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:w}),qn(o,m,y)}function H3(o){var i=Math.round(o);return Math.abs(o-i)<1e-4?i:Math.ceil(o)}var z3=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=this.group,d=r.getData(),p=this._data,v=r.coordinateSystem,m=v.getBaseAxis().isHorizontal(),y=v.master.getRect(),b={ecSize:{width:u.getWidth(),height:u.getHeight()},seriesModel:r,coordSys:v,coordSysExtent:[[y.x,y.x+y.width],[y.y,y.y+y.height]],isHorizontal:m,valueDim:E3[+m],categoryDim:E3[1-+m]};return d.diff(p).add(function(w){if(d.hasValue(w)){var S=FA(d,w),M=IA(d,w,S,b),x=L3(d,b,M);d.setItemGraphicEl(w,x),f.add(x),B3(x,b,M)}}).update(function(w,S){var M=p.getItemGraphicEl(S);if(d.hasValue(w)){var x=FA(d,w),T=IA(d,w,x,b),P=V3(d,T);M&&P!==M.__pictorialShapeStr&&(f.remove(M),d.setItemGraphicEl(w,null),M=null),M?function(o,i,r){ln(o.__pictorialBundle,{x:r.bundlePosition[0],y:r.bundlePosition[1]},r.animationModel,r.dataIndex),r.symbolRepeat?LA(o,i,r,!0):O3(o,0,r,!0),I3(o,r,!0),R3(o,i,r,!0)}(M,b,T):M=L3(d,b,T,!0),d.setItemGraphicEl(w,M),M.__pictorialSymbolMeta=T,f.add(M),B3(M,b,T)}else f.remove(M)}).remove(function(w){var S=p.getItemGraphicEl(w);S&&N3(p,w,S.__pictorialSymbolMeta.animationModel,S)}).execute(),this._data=d,this.group},i.prototype.remove=function(r,s){var u=this.group,f=this._data;r.get("animation")?f&&f.eachItemGraphicEl(function(d){N3(f,ht(d).dataIndex,r,d)}):u.removeAll()},i.type="pictorialBar",i}(Vn),BK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return he(i,o),i.prototype.getInitialData=function(r){return r.stack=null,o.prototype.getInitialData.apply(this,arguments)},i.type="series.pictorialBar",i.dependencies=["grid"],i.defaultOption=rh(Aw.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),i}(Aw),U3=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._layers=[],r}return he(i,o),i.prototype.render=function(r,s,u){var f=r.getData(),d=this,p=this.group,v=r.getLayerSeries(),g=f.getLayout("layoutInfo"),m=g.rect,y=g.boundaryGap;function b(x){return x.name}p.x=0,p.y=m.y+y[0];var w=new Hf(this._layersSeries||[],v,b,b),S=[];function M(x,T,P){var O=d._layers;if("remove"!==x){for(var B,R=[],V=[],U=v[T].indices,j=0;jf&&(f=p),s.push(p)}for(var g=0;gf&&(f=y)}return{y0:u,max:f}}(p),g=v.y0,m=r/v.max,y=u.length,b=u[0].indices.length,S=0;SMath.PI/2?"right":"left"):te&&"center"!==te?"left"===te?(K=d.r0+$,v>Math.PI/2&&(te="right")):"right"===te&&(K=d.r-$,v>Math.PI/2&&(te="left")):(K=(d.r+d.r0)/2,te="center"),R.style.align=te,R.style.verticalAlign=x(P,"verticalAlign")||"middle",R.x=K*g+d.cx,R.y=K*m+d.cy;var ee=x(P,"rotate"),le=0;"radial"===ee?(le=-v)<-Math.PI/2&&(le+=Math.PI):"tangential"===ee?(le=Math.PI/2-v)>Math.PI/2?le-=Math.PI:le<-Math.PI/2&&(le+=Math.PI):"number"==typeof ee&&(le=ee*Math.PI/180),R.rotation=le}),b.dirtyStyle()},i}(ir),kg="sunburstRootToNode",Y3="sunburstHighlight",TW=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u,f){var d=this;this.seriesModel=r,this.api=u,this.ecModel=s;var P,O,p=r.getData(),v=p.tree.root,g=r.getViewRoot(),m=this.group,y=r.get("renderLabelForZeroData"),b=[];g.eachNode(function(P){b.push(P)}),function(P,O){function R(B){return B.getId()}function V(B,U){!function(P,O){if(!y&&P&&!P.getValue()&&(P=null),P!==v&&O!==v)if(O&&O.piece)P?(O.piece.updateData(!1,P,r,s,u),p.setItemGraphicEl(P.dataIndex,O.piece)):function(P){!P||P.piece&&(m.remove(P.piece),P.piece=null)}(O);else if(P){var R=new W3(P,r,s,u);m.add(R),p.setItemGraphicEl(P.dataIndex,R)}}(null==B?null:P[B],null==U?null:O[U])}0===P.length&&0===O.length||new Hf(O,P,R,R).add(V).update(V).remove(St(V,null)).execute()}(b,this._oldChildren||[]),P=v,(O=g).depth>0?(d.virtualPiece?d.virtualPiece.updateData(!1,P,r,s,u):(d.virtualPiece=new W3(P,r,s,u),m.add(d.virtualPiece)),O.piece.off("click"),d.virtualPiece.on("click",function(R){d._rootToNode(O.parentNode)})):d.virtualPiece&&(m.remove(d.virtualPiece),d.virtualPiece=null),this._initEvents(),this._oldChildren=b},i.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(s){var u=!1;r.seriesModel.getViewRoot().eachNode(function(d){if(!u&&d.piece&&d.piece===s.target){var p=d.getModel().get("nodeClick");if("rootToNode"===p)r._rootToNode(d);else if("link"===p){var v=d.getModel(),g=v.get("link");g&&J0(g,v.get("target",!0)||"_blank")}u=!0}})})},i.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:kg,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},i.prototype.containPoint=function(r,s){var f=s.getData().getItemLayout(0);if(f){var d=r[0]-f.cx,p=r[1]-f.cy,v=Math.sqrt(d*d+p*p);return v<=f.r&&v>=f.r0}},i.type="sunburst",i}(Vn);function X3(o){var i=0;q(o.children,function(s){X3(s);var u=s.value;we(u)&&(u=u[0]),i+=u});var r=o.value;we(r)&&(r=r[0]),(null==r||isNaN(r))&&(r=i),r<0&&(r=0),we(o.value)?o.value[0]=r:o.value=r}var DW=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.ignoreStyleOnData=!0,r}return he(i,o),i.prototype.getInitialData=function(r,s){var u={name:r.name,children:r.data};X3(u);var f=Te(r.levels||[],function(v){return new Nn(v,this,s)},this),d=Kw.createTree(u,this,function(v){v.wrapMethod("getItemModel",function(g,m){var y=d.getNodeByDataIndex(m),b=f[y.depth];return b&&(g.parentModel=b),g})});return d.data},i.prototype.optionUpdated=function(){this.resetViewRoot()},i.prototype.getDataParams=function(r){var s=o.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(r);return s.treePathInfo=HD(u,this),s},i.prototype.getViewRoot=function(){return this._viewRoot},i.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var s=this.getRawData().tree.root;(!r||r!==s&&!s.contains(r))&&(this._viewRoot=s)},i.prototype.enableAriaDecal=function(){WF(this)},i.type="series.sunburst",i.defaultOption={zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},i}(vt),Yy=Math.PI/180;function Z3(o,i,r){i.eachSeriesByType(o,function(s){var u=s.get("center"),f=s.get("radius");we(f)||(f=[0,f]),we(u)||(u=[u,u]);var d=r.getWidth(),p=r.getHeight(),v=Math.min(d,p),g=Fe(u[0],d),m=Fe(u[1],p),y=Fe(f[0],v/2),b=Fe(f[1],v/2),w=-s.get("startAngle")*Yy,S=s.get("minAngle")*Yy,M=s.getData().tree.root,x=s.getViewRoot(),T=x.depth,P=s.get("sort");null!=P&&VA(x,P);var O=0;q(x.children,function(de){!isNaN(de.getValue())&&O++});var R=x.getValue(),V=Math.PI/(R||O)*2,B=x.depth>0,j=(b-y)/(x.height-(B?-1:1)||1),X=s.get("clockwise"),K=s.get("stillShowZeroSum"),$=X?1:-1;if(B){var oe=2*Math.PI;M.setLayout({angle:oe,startAngle:w,endAngle:w+oe,clockwise:X,cx:g,cy:m,r0:y,r:y+j})}!function de(ge,_e){if(ge){var xe=_e;if(ge!==M){var Me=ge.getValue(),ze=0===R&&K?V:Me*V;ze1;)d=d.parentNode;var p=u.getColorFromPalette(d.name||d.dataIndex+"",i);return s.depth>1&&"string"==typeof p&&(p=lO(p,(s.depth-1)/(f-1)*.5)),p}(d,s,f.root.height)),ke(u.ensureUniqueItemVisual(d.dataIndex,"style"),v)})})}var PW={color:"fill",borderColor:"stroke"},HA={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Xa=pn(),IW=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},i.prototype.getInitialData=function(r,s){return gl(null,this)},i.prototype.getDataParams=function(r,s,u){var f=o.prototype.getDataParams.call(this,r,s);return u&&(f.info=Xa(u).info),f},i.type="series.custom",i.dependencies=["grid","polar","geo","singleAxis","calendar"],i.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},i}(vt);function RW(o,i){return i=i||[0,0],Te(["x","y"],function(r,s){var u=this.getAxis(r),f=i[s],d=o[s]/2;return"category"===u.type?u.getBandWidth():Math.abs(u.dataToCoord(f-d)-u.dataToCoord(f+d))},this)}function LW(o,i){return i=i||[0,0],Te([0,1],function(r){var s=i[r],u=o[r]/2,f=[],d=[];return f[r]=s-u,d[r]=s+u,f[1-r]=d[1-r]=i[1-r],Math.abs(this.dataToPoint(f)[r]-this.dataToPoint(d)[r])},this)}function NW(o,i){var r=this.getAxis(),s=i instanceof Array?i[0]:i,u=(o instanceof Array?o[0]:o)/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(s-u)-r.dataToCoord(s+u))}function K3(o,i){return i=i||[0,0],Te(["Radius","Angle"],function(r,s){var f=this["get"+r+"Axis"](),d=i[s],p=o[s]/2,v="category"===f.type?f.getBandWidth():Math.abs(f.dataToCoord(d-p)-f.dataToCoord(d+p));return"Angle"===r&&(v=v*Math.PI/180),v},this)}function $3(o,i,r,s){return o&&(o.legacy||!1!==o.legacy&&!r&&!s&&"tspan"!==i&&("text"===i||Ae(o,"text")))}function Q3(o,i,r){var u,f,d,s=o;if("text"===i)d=s;else{d={},Ae(s,"text")&&(d.text=s.text),Ae(s,"rich")&&(d.rich=s.rich),Ae(s,"textFill")&&(d.fill=s.textFill),Ae(s,"textStroke")&&(d.stroke=s.textStroke),Ae(s,"fontFamily")&&(d.fontFamily=s.fontFamily),Ae(s,"fontSize")&&(d.fontSize=s.fontSize),Ae(s,"fontStyle")&&(d.fontStyle=s.fontStyle),Ae(s,"fontWeight")&&(d.fontWeight=s.fontWeight),f={type:"text",style:d,silent:!0},u={};var p=Ae(s,"textPosition");r?u.position=p?s.textPosition:"inside":p&&(u.position=s.textPosition),Ae(s,"textPosition")&&(u.position=s.textPosition),Ae(s,"textOffset")&&(u.offset=s.textOffset),Ae(s,"textRotation")&&(u.rotation=s.textRotation),Ae(s,"textDistance")&&(u.distance=s.textDistance)}return J3(d,o),q(d.rich,function(v){J3(v,v)}),{textConfig:u,textContent:f}}function J3(o,i){!i||(i.font=i.textFont||i.font,Ae(i,"textStrokeWidth")&&(o.lineWidth=i.textStrokeWidth),Ae(i,"textAlign")&&(o.align=i.textAlign),Ae(i,"textVerticalAlign")&&(o.verticalAlign=i.textVerticalAlign),Ae(i,"textLineHeight")&&(o.lineHeight=i.textLineHeight),Ae(i,"textWidth")&&(o.width=i.textWidth),Ae(i,"textHeight")&&(o.height=i.textHeight),Ae(i,"textBackgroundColor")&&(o.backgroundColor=i.textBackgroundColor),Ae(i,"textPadding")&&(o.padding=i.textPadding),Ae(i,"textBorderColor")&&(o.borderColor=i.textBorderColor),Ae(i,"textBorderWidth")&&(o.borderWidth=i.textBorderWidth),Ae(i,"textBorderRadius")&&(o.borderRadius=i.textBorderRadius),Ae(i,"textBoxShadowColor")&&(o.shadowColor=i.textBoxShadowColor),Ae(i,"textBoxShadowBlur")&&(o.shadowBlur=i.textBoxShadowBlur),Ae(i,"textBoxShadowOffsetX")&&(o.shadowOffsetX=i.textBoxShadowOffsetX),Ae(i,"textBoxShadowOffsetY")&&(o.shadowOffsetY=i.textBoxShadowOffsetY))}function eV(o,i,r){var s=o;s.textPosition=s.textPosition||r.position||"inside",null!=r.offset&&(s.textOffset=r.offset),null!=r.rotation&&(s.textRotation=r.rotation),null!=r.distance&&(s.textDistance=r.distance);var u=s.textPosition.indexOf("inside")>=0,f=o.fill||"#000";tV(s,i);var d=null==s.textFill;return u?d&&(s.textFill=r.insideFill||"#fff",!s.textStroke&&r.insideStroke&&(s.textStroke=r.insideStroke),!s.textStroke&&(s.textStroke=f),null==s.textStrokeWidth&&(s.textStrokeWidth=2)):(d&&(s.textFill=o.fill||r.outsideFill||"#000"),!s.textStroke&&r.outsideStroke&&(s.textStroke=r.outsideStroke)),s.text=i.text,s.rich=i.rich,q(i.rich,function(p){tV(p,p)}),s}function tV(o,i){!i||(Ae(i,"fill")&&(o.textFill=i.fill),Ae(i,"stroke")&&(o.textStroke=i.fill),Ae(i,"lineWidth")&&(o.textStrokeWidth=i.lineWidth),Ae(i,"font")&&(o.font=i.font),Ae(i,"fontStyle")&&(o.fontStyle=i.fontStyle),Ae(i,"fontWeight")&&(o.fontWeight=i.fontWeight),Ae(i,"fontSize")&&(o.fontSize=i.fontSize),Ae(i,"fontFamily")&&(o.fontFamily=i.fontFamily),Ae(i,"align")&&(o.textAlign=i.align),Ae(i,"verticalAlign")&&(o.textVerticalAlign=i.verticalAlign),Ae(i,"lineHeight")&&(o.textLineHeight=i.lineHeight),Ae(i,"width")&&(o.textWidth=i.width),Ae(i,"height")&&(o.textHeight=i.height),Ae(i,"backgroundColor")&&(o.textBackgroundColor=i.backgroundColor),Ae(i,"padding")&&(o.textPadding=i.padding),Ae(i,"borderColor")&&(o.textBorderColor=i.borderColor),Ae(i,"borderWidth")&&(o.textBorderWidth=i.borderWidth),Ae(i,"borderRadius")&&(o.textBorderRadius=i.borderRadius),Ae(i,"shadowColor")&&(o.textBoxShadowColor=i.shadowColor),Ae(i,"shadowBlur")&&(o.textBoxShadowBlur=i.shadowBlur),Ae(i,"shadowOffsetX")&&(o.textBoxShadowOffsetX=i.shadowOffsetX),Ae(i,"shadowOffsetY")&&(o.textBoxShadowOffsetY=i.shadowOffsetY),Ae(i,"textShadowColor")&&(o.textShadowColor=i.textShadowColor),Ae(i,"textShadowBlur")&&(o.textShadowBlur=i.textShadowBlur),Ae(i,"textShadowOffsetX")&&(o.textShadowOffsetX=i.textShadowOffsetX),Ae(i,"textShadowOffsetY")&&(o.textShadowOffsetY=i.textShadowOffsetY))}var BW={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]};function UA(o,i,r){var s=o[r],u=BW[r];s&&(i[u[0]]=s[0],i[u[1]]=s[1])}function Jh(o,i,r){null!=o[r]&&(i[r]=o[r])}function GA(o,i,r){r&&(o[i]=r[i])}function nV(o,i,r,s,u){var f=r[o];if(f){var p,d=i[o],v=f.enterFrom;if(u&&v){!p&&(p=s[o]={});for(var g=_n(v),m=0;m=0){!p&&(p=s[o]={});var S=_n(d);for(m=0;ms[1]&&s.reverse(),{coordSys:{type:"polar",cx:o.cx,cy:o.cy,r:s[1],r0:s[0]},api:{coord:function(f){var d=i.dataToRadius(f[0]),p=r.dataToAngle(f[1]),v=o.coordToPoint([d,p]);return v.push(d,p*Math.PI/180),v},size:Ye(K3,o)}}},calendar:function(o){var i=o.getRect(),r=o.getRangeInfo();return{coordSys:{type:"calendar",x:i.x,y:i.y,width:i.width,height:i.height,cellWidth:o.getCellWidth(),cellHeight:o.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(u,f){return o.dataToPoint(u,f)}}}}};function np(o){return o instanceof Vt}function wc(o){return o instanceof as}var WA=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u,f){var d=this._data,p=r.getData(),v=this.group,g=XA(r,p,s,u);d||v.removeAll(),p.diff(d).add(function(y){ip(u,null,y,g(y,f),r,v,p)}).remove(function(y){QA(d.getItemGraphicEl(y),r,v)}).update(function(y,b){var w=d.getItemGraphicEl(b);ip(u,w,y,g(y,f),r,v,p)}).execute();var m=r.get("clip",!0)?Tw(r.coordinateSystem,!1,r):null;m?v.setClipPath(m):v.removeClipPath(),this._data=p},i.prototype.incrementalPrepareRender=function(r,s,u){this.group.removeAll(),this._data=null},i.prototype.incrementalRender=function(r,s,u,f,d){var p=s.getData(),v=XA(s,p,u,f);function g(b){b.isGroup||(b.incremental=!0,b.ensureState("emphasis").hoverLayer=!0)}for(var m=r.start;m=0){var w=o.getAnimationStyleProps(),S=w?w.style:null;if(S){!d&&(d=s.style={});var M=_n(r);for(g=0;g=0?i.getStore().get(ge,oe):void 0}var _e=i.get(de.name,oe),xe=de&&de.ordinalMeta;return xe?xe.categories[_e]:_e},styleEmphasis:function(le,oe){null==oe&&(oe=g);var de=P(oe,Cc).getItemStyle(),ge=O(oe,Cc),_e=Or(ge,null,null,!0,!0);_e.text=ge.getShallow("show")?Qo(o.getFormattedLabel(oe,Cc),o.getFormattedLabel(oe,Mu),Xf(i,oe)):null;var xe=U0(ge,null,!0);return X(le,de),de=eV(de,_e,xe),le&&j(de,le),de.legacy=!0,de},visual:function(le,oe){if(null==oe&&(oe=g),Ae(PW,le)){var de=i.getItemVisual(oe,"style");return de?de[PW[le]]:null}if(Ae(HA,le))return i.getItemVisual(oe,le)},barLayout:function(le){if("cartesian2d"===f.type)return function(o){var i=[],r=o.axis,s="axis0";if("category"===r.type){for(var u=r.getBandWidth(),f=0;f=m;y--)QA(i.childAt(y),u,i)}}(o,m,r,s,u),p>=0?f.replaceAt(m,p):f.add(m),m}function KA(o,i,r){var s=Xa(o),u=i.type,f=i.shape,d=i.style;return r.isUniversalTransitionEnabled()||null!=u&&u!==s.customGraphicType||"path"===u&&function(o){return o&&(Ae(o,"pathData")||Ae(o,"d"))}(f)&&yo(f)!==s.customPathData||"image"===u&&Ae(d,"image")&&d.image!==s.customImagePath}function oV(o,i,r){var s=i?Qy(o,i):o,u=i?$A(o,s,Cc):o.style,f=o.type,d=s?s.textConfig:null,p=o.textContent,v=p?i?Qy(p,i):p:null;if(u&&(r.isLegacy||$3(u,f,!!d,!!v))){r.isLegacy=!0;var g=Q3(u,f,!i);!d&&g.textConfig&&(d=g.textConfig),!v&&g.textContent&&(v=g.textContent)}!i&&v&&!v.type&&(v.type="text");var y=i?r[i]:r.normal;y.cfg=d,y.conOpt=v}function Qy(o,i){return i?o?o[i]:null:o}function $A(o,i,r){var s=i&&i.style;return null==s&&r===Cc&&o&&(s=o.styleEmphasis),s}function sV(o,i){var r=o&&o.name;return null!=r?r:"e\0\0"+i}function op(o,i){var r=this.context;aV(r.api,null!=i?r.oldChildren[i]:null,r.dataIndex,null!=o?r.newChildren[o]:null,r.seriesModel,r.group)}function lV(o){var i=this.context;QA(i.oldChildren[o],i.seriesModel,i.group)}function QA(o,i,r){if(o){var s=Xa(o).leaveToProps;s?ln(o,s,i,{cb:function(){r.remove(o)}}):r.remove(o)}}function yo(o){return o&&(o.pathData||o.d)}var sp=pn(),JA=rt,uV=Ye;function q1(o,i,r,s){XW(sp(r).lastProp,s)||(sp(r).lastProp=s,i?ln(r,s,o):(r.stopAnimation(),r.attr(s)))}function XW(o,i){if(at(o)&&at(i)){var r=!0;return q(i,function(s,u){r=r&&XW(o[u],s)}),!!r}return o===i}function ZW(o,i){o[i.get(["label","show"])?"show":"hide"]()}function cV(o){return{x:o.x||0,y:o.y||0,rotation:o.rotation||0}}function KW(o,i,r){var s=i.get("z"),u=i.get("zlevel");o&&o.traverse(function(f){"group"!==f.type&&(null!=s&&(f.z=s),null!=u&&(f.zlevel=u),f.silent=r)})}var fV=function(){function o(){this._dragging=!1,this.animationThreshold=15}return o.prototype.render=function(i,r,s,u){var f=r.get("value"),d=r.get("status");if(this._axisModel=i,this._axisPointerModel=r,this._api=s,u||this._lastValue!==f||this._lastStatus!==d){this._lastValue=f,this._lastStatus=d;var p=this._group,v=this._handle;if(!d||"hide"===d)return p&&p.hide(),void(v&&v.hide());p&&p.show(),v&&v.show();var g={};this.makeElOption(g,f,i,r,s);var m=g.graphicKey;m!==this._lastGraphicKey&&this.clear(s),this._lastGraphicKey=m;var y=this._moveAnimation=this.determineAnimation(i,r);if(p){var b=St(q1,r,y);this.updatePointerEl(p,g,b),this.updateLabelEl(p,g,b,r)}else p=this._group=new ct,this.createPointerEl(p,g,i,r),this.createLabelEl(p,g,i,r),s.getZr().add(p);KW(p,r,!0),this._renderHandle(f)}},o.prototype.remove=function(i){this.clear(i)},o.prototype.dispose=function(i){this.clear(i)},o.prototype.determineAnimation=function(i,r){var s=r.get("animation"),u=i.axis,f="category"===u.type,d=r.get("snap");if(!d&&!f)return!1;if("auto"===s||null==s){var p=this.animationThreshold;if(f&&u.getBandWidth()>p)return!0;if(d){var v=CF(i).seriesDataCount,g=u.getExtent();return Math.abs(g[0]-g[1])/v>p}return!1}return!0===s},o.prototype.makeElOption=function(i,r,s,u,f){},o.prototype.createPointerEl=function(i,r,s,u){var f=r.pointer;if(f){var d=sp(i).pointerEl=new F[f.type](JA(r.pointer));i.add(d)}},o.prototype.createLabelEl=function(i,r,s,u){if(r.label){var f=sp(i).labelEl=new fn(JA(r.label));i.add(f),ZW(f,u)}},o.prototype.updatePointerEl=function(i,r,s){var u=sp(i).pointerEl;u&&r.pointer&&(u.setStyle(r.pointer.style),s(u,{shape:r.pointer.shape}))},o.prototype.updateLabelEl=function(i,r,s,u){var f=sp(i).labelEl;f&&(f.setStyle(r.label.style),s(f,{x:r.label.x,y:r.label.y}),ZW(f,u))},o.prototype._renderHandle=function(i){if(!this._dragging&&this.updateHandleTransform){var p,r=this._axisPointerModel,s=this._api.getZr(),u=this._handle,f=r.getModel("handle"),d=r.get("status");if(!f.get("show")||!d||"hide"===d)return u&&s.remove(u),void(this._handle=null);this._handle||(p=!0,u=this._handle=cl(f.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(m){Vl(m.event)},onmousedown:uV(this._onHandleDragMove,this,0,0),drift:uV(this._onHandleDragMove,this),ondragend:uV(this._onHandleDragEnd,this)}),s.add(u)),KW(u,r,!1),u.setStyle(f.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var v=f.get("size");we(v)||(v=[v,v]),u.scaleX=v[0]/2,u.scaleY=v[1]/2,il(this,"_doDispatchAxisPointer",f.get("throttle")||0,"fixRate"),this._moveHandleToValue(i,p)}},o.prototype._moveHandleToValue=function(i,r){q1(this._axisPointerModel,!r&&this._moveAnimation,this._handle,cV(this.getHandleTransform(i,this._axisModel,this._axisPointerModel)))},o.prototype._onHandleDragMove=function(i,r){var s=this._handle;if(s){this._dragging=!0;var u=this.updateHandleTransform(cV(s),[i,r],this._axisModel,this._axisPointerModel);this._payloadInfo=u,s.stopAnimation(),s.attr(cV(u)),sp(s).lastProp=null,this._doDispatchAxisPointer()}},o.prototype._doDispatchAxisPointer=function(){if(this._handle){var r=this._payloadInfo,s=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:s.axis.dim,axisIndex:s.componentIndex}]})}},o.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},o.prototype.clear=function(i){this._lastValue=null,this._lastStatus=null;var r=i.getZr(),s=this._group,u=this._handle;r&&s&&(this._lastGraphicKey=null,s&&r.remove(s),u&&r.remove(u),this._group=null,this._handle=null,this._payloadInfo=null)},o.prototype.doClear=function(){},o.prototype.buildLabel=function(i,r,s){return{x:i[s=s||0],y:i[1-s],width:r[s],height:r[1-s]}},o}();function dV(o){var s,i=o.get("type"),r=o.getModel(i+"Style");return"line"===i?(s=r.getLineStyle()).fill=null:"shadow"===i&&((s=r.getAreaStyle()).stroke=null),s}function X1(o,i,r,s,u){var d=Ps(r.get("value"),i.axis,i.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),p=r.getModel("label"),v=lh(p.get("padding")||0),g=p.getFont(),m=um(d,g),y=u.position,b=m.width+v[1]+v[3],w=m.height+v[0]+v[2],S=u.align;"right"===S&&(y[0]-=b),"center"===S&&(y[0]-=b/2);var M=u.verticalAlign;"bottom"===M&&(y[1]-=w),"middle"===M&&(y[1]-=w/2),function(o,i,r,s){var u=s.getWidth(),f=s.getHeight();o[0]=Math.min(o[0]+i,u)-i,o[1]=Math.min(o[1]+r,f)-r,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0)}(y,b,w,s);var x=p.get("backgroundColor");(!x||"auto"===x)&&(x=i.get(["axisLine","lineStyle","color"])),o.label={x:y[0],y:y[1],style:Or(p,{text:d,font:g,fill:p.getTextColor(),padding:v,backgroundColor:x}),z2:10}}function Ps(o,i,r,s,u){o=i.scale.parse(o);var f=i.scale.getLabel({value:o},{precision:u.precision}),d=u.formatter;if(d){var p={value:NT(i,{value:o}),axisDimension:i.dim,axisIndex:i.index,seriesData:[]};q(s,function(v){var g=r.getSeriesByIndex(v.seriesIndex),y=g&&g.getDataParams(v.dataIndexInside);y&&p.seriesData.push(y)}),yt(d)?f=d.replace("{value}",f):An(d)&&(f=d(p))}return f}function eE(o,i,r){var s=[1,0,0,1,0,0];return Od(s,s,r.rotation),Oo(s,s,r.position),ul([o.dataToCoord(i),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],s)}function Jy(o,i,r,s,u,f){var d=yu.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=u.get(["label","margin"]),X1(i,s,u,f,{position:eE(s.axis,o,r),align:d.textAlign,verticalAlign:d.textVerticalAlign})}function hV(o,i,r){return{x1:o[r=r||0],y1:o[1-r],x2:i[r],y2:i[1-r]}}function tE(o,i,r){return{x:o[r=r||0],y:o[1-r],width:i[r],height:i[1-r]}}function $W(o,i,r,s,u,f){return{cx:o,cy:i,r0:r,r:s,startAngle:u,endAngle:f,clockwise:!0}}var nE=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.makeElOption=function(r,s,u,f,d){var p=u.axis,v=p.grid,g=f.get("type"),m=QW(v,p).getOtherAxis(p).getGlobalExtent(),y=p.toGlobalCoord(p.dataToCoord(s,!0));if(g&&"none"!==g){var b=dV(f),w=Os[g](p,y,m);w.style=b,r.graphicKey=w.type,r.pointer=w}Jy(s,r,dF(v.model,u),u,f,d)},i.prototype.getHandleTransform=function(r,s,u){var f=dF(s.axis.grid.model,s,{labelInside:!1});f.labelMargin=u.get(["handle","margin"]);var d=eE(s.axis,r,f);return{x:d[0],y:d[1],rotation:f.rotation+(f.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(r,s,u,f){var d=u.axis,p=d.grid,v=d.getGlobalExtent(!0),g=QW(p,d).getOtherAxis(d).getGlobalExtent(),m="x"===d.dim?0:1,y=[r.x,r.y];y[m]+=s[m],y[m]=Math.min(v[1],y[m]),y[m]=Math.max(v[0],y[m]);var b=(g[1]+g[0])/2,w=[b,b];return w[m]=y[m],{x:y[0],y:y[1],rotation:r.rotation,cursorPoint:w,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][m]}},i}(fV);function QW(o,i){var r={};return r[i.dim+"AxisIndex"]=i.index,o.getCartesian(r)}var Os={line:function(i,r,s){return{type:"Line",subPixelOptimize:!0,shape:hV([r,s[0]],[r,s[1]],JW(i))}},shadow:function(i,r,s){var u=Math.max(1,i.getBandWidth());return{type:"Rect",shape:tE([r-u/2,s[0]],[u,s[1]-s[0]],JW(i))}}};function JW(o){return"x"===o.dim?0:1}var xg=nE,e9=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="axisPointer",i.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},i}(qt),Sc=pn(),t9=q;function n9(o,i,r){if(!Ze.node){var s=i.getZr();Sc(s).records||(Sc(s).records={}),function(o,i){function r(s,u){o.on(s,function(f){var d=function(o){var i={showTip:[],hideTip:[]};return{dispatchAction:function s(u){var f=i[u.type];f?f.push(u):(u.dispatchAction=s,o.dispatchAction(u))},pendings:i}}(i);t9(Sc(o).records,function(p){p&&u(p,f,d.dispatchAction)}),function(o,i){var u,r=o.showTip.length,s=o.hideTip.length;r?u=o.showTip[r-1]:s&&(u=o.hideTip[s-1]),u&&(u.dispatchAction=null,i.dispatchAction(u))}(d.pendings,i)})}Sc(o).initialized||(Sc(o).initialized=!0,r("click",St(na,"click")),r("mousemove",St(na,"mousemove")),r("globalout",ZK))}(s,i),(Sc(s).records[o]||(Sc(s).records[o]={})).handler=r}}function ZK(o,i,r){o.handler("leave",null,r)}function na(o,i,r,s){i.handler(o,r,s)}function iE(o,i){if(!Ze.node){var r=i.getZr();(Sc(r).records||{})[o]&&(Sc(r).records[o]=null)}}var KK=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=s.getComponent("tooltip"),d=r.get("triggerOn")||f&&f.get("triggerOn")||"mousemove|click";n9("axisPointer",u,function(p,v,g){"none"!==d&&("leave"===p||d.indexOf(p)>=0)&&g({type:"updateAxisPointer",currTrigger:p,x:v&&v.offsetX,y:v&&v.offsetY})})},i.prototype.remove=function(r,s){iE("axisPointer",s)},i.prototype.dispose=function(r,s){iE("axisPointer",s)},i.type="axisPointer",i}(un);function a9(o,i){var u,r=[],s=o.seriesIndex;if(null==s||!(u=i.getSeriesByIndex(s)))return{point:[]};var f=u.getData(),d=ga(f,o);if(null==d||d<0||we(d))return{point:[]};var p=f.getItemGraphicEl(d),v=u.coordinateSystem;if(u.getTooltipPosition)r=u.getTooltipPosition(d)||[];else if(v&&v.dataToPoint)if(o.isStacked){var g=v.getBaseAxis(),y=v.getOtherAxis(g).dim,w="x"===y||"radius"===y?1:0,S=f.mapDimension(g.dim),M=[];M[w]=f.get(S,d),M[1-w]=f.get(f.getCalculationInfo("stackResultDimension"),d),r=v.dataToPoint(M)||[]}else r=v.dataToPoint(f.getValues(Te(v.dimensions,function(T){return f.mapDimension(T)}),d))||[];else if(p){var x=p.getBoundingRect().clone();x.applyTransform(p.transform),r=[x.x+x.width/2,x.y+x.height/2]}return{point:r,el:p}}var kc=pn();function Za(o,i,r){var s=o.currTrigger,u=[o.x,o.y],f=o,d=o.dispatchAction||Ye(r.dispatchAction,r),p=i.getComponent("axisPointer").coordSysAxesInfo;if(p){oE(u)&&(u=a9({seriesIndex:f.seriesIndex,dataIndex:f.dataIndex},i).point);var v=oE(u),g=f.axesInfo,m=p.axesInfo,y="leave"===s||oE(u),b={},w={},S={list:[],map:{}},M={showPointer:St(Tg,w),showTooltip:St(Dg,S)};q(p.coordSysMap,function(T,P){var O=v||T.containPoint(u);q(p.coordSysAxesInfo[P],function(R,V){var B=R.axis,U=function(o,i){for(var r=0;r<(o||[]).length;r++){var s=o[r];if(i.axis.dim===s.axisDim&&i.axis.model.componentIndex===s.axisIndex)return s}}(g,R);if(!y&&O&&(!g||U)){var j=U&&U.value;null==j&&!v&&(j=B.pointToData(u)),null!=j&&K1(R,j,M,!1,b)}})});var x={};return q(m,function(T,P){var O=T.linkGroup;O&&!w[P]&&q(O.axesInfo,function(R,V){var B=w[V];if(R!==T&&B){var U=B.value;O.mapper&&(U=T.axis.scale.parse(O.mapper(U,o9(R),o9(T)))),x[T.key]=U}})}),q(x,function(T,P){K1(m[P],T,M,!0,b)}),function(o,i,r){var s=r.axesInfo=[];q(i,function(u,f){var d=u.axisPointerModel.option,p=o[f];p?(!u.useHandle&&(d.status="show"),d.value=p.value,d.seriesDataIndices=(p.payloadBatch||[]).slice()):!u.useHandle&&(d.status="hide"),"show"===d.status&&s.push({axisDim:u.axis.dim,axisIndex:u.axis.model.componentIndex,value:d.value})})}(w,m,b),function(o,i,r,s){if(!oE(i)&&o.list.length){var u=((o.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};s({type:"showTip",escapeConnect:!0,x:i[0],y:i[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:u.dataIndexInside,dataIndex:u.dataIndex,seriesIndex:u.seriesIndex,dataByCoordSys:o.list})}else s({type:"hideTip"})}(S,u,o,d),function(o,i,r){var s=r.getZr(),u="axisPointerLastHighlights",f=kc(s)[u]||{},d=kc(s)[u]={};q(o,function(g,m){var y=g.axisPointerModel.option;"show"===y.status&&q(y.seriesDataIndices,function(b){d[b.seriesIndex+" | "+b.dataIndex]=b})});var p=[],v=[];q(f,function(g,m){!d[m]&&v.push(g)}),q(d,function(g,m){!f[m]&&p.push(g)}),v.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:v}),p.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:p})}(m,0,r),b}}function K1(o,i,r,s,u){var f=o.axis;if(!f.scale.isBlank()&&f.containData(i)){if(!o.involveSeries)return void r.showPointer(o,i);var d=function(o,i){var r=i.axis,s=r.dim,u=o,f=[],d=Number.MAX_VALUE,p=-1;return q(i.seriesModels,function(v,g){var y,b,m=v.getData().mapDimensionsAll(s);if(v.getAxisTooltipData){var w=v.getAxisTooltipData(m,o,r);b=w.dataIndices,y=w.nestestValue}else{if(!(b=v.getData().indicesOfNearest(m[0],o,"category"===r.type?.5:null)).length)return;y=v.getData().get(m[0],b[0])}if(null!=y&&isFinite(y)){var S=o-y,M=Math.abs(S);M<=d&&((M=0&&p<0)&&(d=M,p=S,u=y,f.length=0),q(b,function(x){f.push({seriesIndex:v.seriesIndex,dataIndexInside:x,dataIndex:v.getData().getRawIndex(x)})}))}}),{payloadBatch:f,snapToValue:u}}(i,o),p=d.payloadBatch,v=d.snapToValue;p[0]&&null==u.seriesIndex&&ke(u,p[0]),!s&&o.snap&&f.containData(v)&&null!=v&&(i=v),r.showPointer(o,i,p),r.showTooltip(o,d,v)}}function Tg(o,i,r,s){o[i.key]={value:r,payloadBatch:s}}function Dg(o,i,r,s){var u=r.payloadBatch,f=i.axis,d=f.model,p=i.axisPointerModel;if(i.triggerTooltip&&u.length){var v=i.coordSys.model,g=ay(v),m=o.map[g];m||(m=o.map[g]={coordSysId:v.id,coordSysIndex:v.componentIndex,coordSysType:v.type,coordSysMainType:v.mainType,dataByAxis:[]},o.list.push(m)),m.dataByAxis.push({axisDim:f.dim,axisIndex:d.componentIndex,axisType:d.type,axisId:d.id,value:s,valueLabelOpt:{precision:p.get(["label","precision"]),formatter:p.get(["label","formatter"])},seriesDataIndices:u.slice()})}}function o9(o){var i=o.axis.model,r={},s=r.axisDim=o.axis.dim;return r.axisIndex=r[s+"AxisIndex"]=i.componentIndex,r.axisName=r[s+"AxisName"]=i.name,r.axisId=r[s+"AxisId"]=i.id,r}function oE(o){return!o||null==o[0]||isNaN(o[0])||null==o[1]||isNaN(o[1])}function $1(o){eg.registerAxisPointerClass("CartesianAxisPointer",xg),o.registerComponentModel(e9),o.registerComponentView(KK),o.registerPreprocessor(function(i){if(i){(!i.axisPointer||0===i.axisPointer.length)&&(i.axisPointer={});var r=i.axisPointer.link;r&&!we(r)&&(i.axisPointer.link=[r])}}),o.registerProcessor(o.PRIORITY.PROCESSOR.STATISTIC,function(i,r){i.getComponent("axisPointer").coordSysAxesInfo=function(o,i){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(o,i,r){var s=i.getComponent("tooltip"),u=i.getComponent("axisPointer"),f=u.get("link",!0)||[],d=[];q(r.getCoordinateSystems(),function(p){if(p.axisPointerEnabled){var v=ay(p.model),g=o.coordSysAxesInfo[v]={};o.coordSysMap[v]=p;var y=p.model.getModel("tooltip",s);if(q(p.getAxes(),St(M,!1,null)),p.getTooltipAxes&&s&&y.get("show")){var b="axis"===y.get("trigger"),w="cross"===y.get(["axisPointer","type"]),S=p.getTooltipAxes(y.get(["axisPointer","axis"]));(b||w)&&q(S.baseAxes,St(M,!w||"cross",b)),w&&q(S.otherAxes,St(M,"cross",!1))}}function M(x,T,P){var O=P.model.getModel("axisPointer",u),R=O.get("show");if(R&&("auto"!==R||x||yD(O))){null==T&&(T=O.get("triggerTooltip"));var V=(O=x?function(o,i,r,s,u,f){var d=i.getModel("axisPointer"),v={};q(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(b){v[b]=rt(d.get(b))}),v.snap="category"!==o.type&&!!f,"cross"===d.get("type")&&(v.type="line");var g=v.label||(v.label={});if(null==g.show&&(g.show=!1),"cross"===u){var m=d.get(["label","show"]);if(g.show=null==m||m,!f){var y=v.lineStyle=d.get("crossStyle");y&&tt(g,y.textStyle)}}return o.model.getModel("axisPointer",new Nn(v,r,s))}(P,y,u,i,x,T):O).get("snap"),B=ay(P.model),U=T||V||"category"===P.type,j=o.axesInfo[B]={key:B,axis:P,coordSys:p,axisPointerModel:O,triggerTooltip:T,involveSeries:U,snap:V,useHandle:yD(O),seriesModels:[],linkGroup:null};g[B]=j,o.seriesInvolved=o.seriesInvolved||U;var X=function(o,i){for(var r=i.model,s=i.dim,u=0;ux?"left":"right",y=Math.abs(g[1]-T)/M<.3?"middle":g[1]>T?"top":"bottom"}return{position:g,align:m,verticalAlign:y}}(s,u,0,v,f.get(["label","margin"]));X1(r,u,f,d,x)},i}(fV),QK={line:function(i,r,s,u){return"angle"===i.dim?{type:"Line",shape:hV(r.coordToPoint([u[0],s]),r.coordToPoint([u[1],s]))}:{type:"Circle",shape:{cx:r.cx,cy:r.cy,r:s}}},shadow:function(i,r,s,u){var f=Math.max(1,i.getBandWidth()),d=Math.PI/180;return"angle"===i.dim?{type:"Sector",shape:$W(r.cx,r.cy,u[0],u[1],(-s-f/2)*d,(f/2-s)*d)}:{type:"Sector",shape:$W(r.cx,r.cy,s-f/2,s+f/2,0,2*Math.PI)}}},JK=pV,t$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.findAxisModel=function(r){var s;return this.ecModel.eachComponent(r,function(f){f.getCoordSysModel()===this&&(s=f)},this),s},i.type="polar",i.dependencies=["radiusAxis","angleAxis"],i.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},i}(qt),vV=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ai).models[0]},i.type="polarAxis",i}(qt);qr(vV,zv);var n$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="angleAxis",i}(vV),r$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="radiusAxis",i}(vV),Q1=function(o){function i(r,s){return o.call(this,"radius",r,s)||this}return he(i,o),i.prototype.pointToData=function(r,s){return this.polar.pointToData(r,s)["radius"===this.dim?0:1]},i}(_l);Q1.prototype.dataToRadius=_l.prototype.dataToCoord,Q1.prototype.radiusToData=_l.prototype.coordToData;var i$=Q1,a$=pn(),gV=function(o){function i(r,s){return o.call(this,"angle",r,s||[0,360])||this}return he(i,o),i.prototype.pointToData=function(r,s){return this.polar.pointToData(r,s)["radius"===this.dim?0:1]},i.prototype.calculateCategoryInterval=function(){var r=this,s=r.getLabelModel(),u=r.scale,f=u.getExtent(),d=u.count();if(f[1]-f[0]<1)return 0;var p=f[0],v=r.dataToCoord(p+1)-r.dataToCoord(p),g=Math.abs(v),m=um(null==p?"":p+"",s.getFont(),"center","top"),b=Math.max(m.height,7)/g;isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(b)),S=a$(r.model),M=S.lastAutoInterval,x=S.lastTickCount;return null!=M&&null!=x&&Math.abs(M-w)<=1&&Math.abs(x-d)<=1&&M>w?w=M:(S.lastTickCount=d,S.lastAutoInterval=w),w},i}(_l);gV.prototype.dataToAngle=_l.prototype.dataToCoord,gV.prototype.angleToData=_l.prototype.coordToData;var o$=gV,J1=["radius","angle"];function l9(o){var i=o.seriesModel,r=o.polarModel;return r&&r.coordinateSystem||i&&i.coordinateSystem}var l$=function(){function o(i){this.dimensions=J1,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new i$,this._angleAxis=new o$,this.axisPointerEnabled=!0,this.name=i||"",this._radiusAxis.polar=this._angleAxis.polar=this}return o.prototype.containPoint=function(i){var r=this.pointToCoord(i);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},o.prototype.containData=function(i){return this._radiusAxis.containData(i[0])&&this._angleAxis.containData(i[1])},o.prototype.getAxis=function(i){return this["_"+i+"Axis"]},o.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},o.prototype.getAxesByScale=function(i){var r=[],s=this._angleAxis,u=this._radiusAxis;return s.scale.type===i&&r.push(s),u.scale.type===i&&r.push(u),r},o.prototype.getAngleAxis=function(){return this._angleAxis},o.prototype.getRadiusAxis=function(){return this._radiusAxis},o.prototype.getOtherAxis=function(i){var r=this._angleAxis;return i===r?this._radiusAxis:r},o.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},o.prototype.getTooltipAxes=function(i){var r=null!=i&&"auto"!==i?this.getAxis(i):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},o.prototype.dataToPoint=function(i,r){return this.coordToPoint([this._radiusAxis.dataToRadius(i[0],r),this._angleAxis.dataToAngle(i[1],r)])},o.prototype.pointToData=function(i,r){var s=this.pointToCoord(i);return[this._radiusAxis.radiusToData(s[0],r),this._angleAxis.angleToData(s[1],r)]},o.prototype.pointToCoord=function(i){var r=i[0]-this.cx,s=i[1]-this.cy,u=this.getAngleAxis(),f=u.getExtent(),d=Math.min(f[0],f[1]),p=Math.max(f[0],f[1]);u.inverse?d=p-360:p=d+360;var v=Math.sqrt(r*r+s*s);r/=v,s/=v;for(var g=Math.atan2(-s,r)/Math.PI*180,m=gp;)g+=360*m;return[v,g]},o.prototype.coordToPoint=function(i){var r=i[0],s=i[1]/180*Math.PI;return[Math.cos(s)*r+this.cx,-Math.sin(s)*r+this.cy]},o.prototype.getArea=function(){var i=this.getAngleAxis(),s=this.getRadiusAxis().getExtent().slice();s[0]>s[1]&&s.reverse();var u=i.getExtent(),f=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:s[0],r:s[1],startAngle:-u[0]*f,endAngle:-u[1]*f,clockwise:i.inverse,contain:function(p,v){var g=p-this.cx,m=v-this.cy,y=g*g+m*m,b=this.r,w=this.r0;return y<=b*b&&y>=w*w}}},o.prototype.convertToPixel=function(i,r,s){return l9(r)===this?this.dataToPoint(s):null},o.prototype.convertFromPixel=function(i,r,s){return l9(r)===this?this.pointToData(s):null},o}();function c$(o,i){var r=this,s=r.getAngleAxis(),u=r.getRadiusAxis();if(s.scale.setExtent(1/0,-1/0),u.scale.setExtent(1/0,-1/0),o.eachSeries(function(p){if(p.coordinateSystem===r){var v=p.getData();q(H_(v,"radius"),function(g){u.scale.unionExtentFromData(v,g)}),q(H_(v,"angle"),function(g){s.scale.unionExtentFromData(v,g)})}}),Wf(s.scale,s.model),Wf(u.scale,u.model),"category"===s.type&&!s.onBand){var f=s.getExtent(),d=360/s.scale.count();s.inverse?f[1]+=d:f[1]-=d,s.setExtent(f[0],f[1])}}function u9(o,i){if(o.type=i.get("type"),o.scale=Hh(i),o.onBand=i.get("boundaryGap")&&"category"===o.type,o.inverse=i.get("inverse"),function(o){return"angleAxis"===o.mainType}(i)){o.inverse=o.inverse!==i.get("clockwise");var r=i.get("startAngle");o.setExtent(r,r+(o.inverse?-360:360))}i.axis=o,o.model=i}var h$={dimensions:J1,create:function(i,r){var s=[];return i.eachComponent("polar",function(u,f){var d=new l$(f+"");d.update=c$;var p=d.getRadiusAxis(),v=d.getAngleAxis(),g=u.findAxisModel("radiusAxis"),m=u.findAxisModel("angleAxis");u9(p,g),u9(v,m),function(o,i,r){var s=i.get("center"),u=r.getWidth(),f=r.getHeight();o.cx=Fe(s[0],u),o.cy=Fe(s[1],f);var d=o.getRadiusAxis(),p=Math.min(u,f)/2,v=i.get("radius");null==v?v=[0,"100%"]:we(v)||(v=[0,v]);var g=[Fe(v[0],p),Fe(v[1],p)];d.inverse?d.setExtent(g[1],g[0]):d.setExtent(g[0],g[1])}(d,u,r),s.push(d),u.coordinateSystem=d,d.model=u}),i.eachSeries(function(u){if("polar"===u.get("coordinateSystem")){var f=u.getReferringComponents("polar",ai).models[0];u.coordinateSystem=f.coordinateSystem}}),s}},p$=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function sE(o,i,r){i[1]>i[0]&&(i=i.slice().reverse());var s=o.coordToPoint([i[0],r]),u=o.coordToPoint([i[1],r]);return{x1:s[0],y1:s[1],x2:u[0],y2:u[1]}}function lE(o){return o.getRadiusAxis().inverse?0:1}function c9(o){var i=o[0],r=o[o.length-1];i&&r&&Math.abs(Math.abs(i.coord-r.coord)-360)<1e-4&&o.pop()}var v$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.axisPointerClass="PolarAxisPointer",r}return he(i,o),i.prototype.render=function(r,s){if(this.group.removeAll(),r.get("show")){var u=r.axis,f=u.polar,d=f.getRadiusAxis().getExtent(),p=u.getTicksCoords(),v=u.getMinorTicksCoords(),g=Te(u.getViewLabels(),function(m){m=rt(m);var y=u.scale,b="ordinal"===y.type?y.getRawOrdinalNumber(m.tickValue):m.tickValue;return m.coord=u.dataToCoord(b),m});c9(g),c9(p),q(p$,function(m){r.get([m,"show"])&&(!u.scale.isBlank()||"axisLine"===m)&&g$[m](this.group,r,f,p,v,d,g)},this)}},i.type="angleAxis",i}(eg),g$={axisLine:function(i,r,s,u,f,d){var m,p=r.getModel(["axisLine","lineStyle"]),v=lE(s),g=v?0:1;(m=0===d[g]?new sl({shape:{cx:s.cx,cy:s.cy,r:d[v]},style:p.getLineStyle(),z2:1,silent:!0}):new Mv({shape:{cx:s.cx,cy:s.cy,r:d[v],r0:d[g]},style:p.getLineStyle(),z2:1,silent:!0})).style.fill=null,i.add(m)},axisTick:function(i,r,s,u,f,d){var p=r.getModel("axisTick"),v=(p.get("inside")?-1:1)*p.get("length"),g=d[lE(s)],m=Te(u,function(y){return new Ti({shape:sE(s,[g,g+v],y.coord)})});i.add(Ca(m,{style:tt(p.getModel("lineStyle").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})}))},minorTick:function(i,r,s,u,f,d){if(f.length){for(var p=r.getModel("axisTick"),v=r.getModel("minorTick"),g=(p.get("inside")?-1:1)*v.get("length"),m=d[lE(s)],y=[],b=0;bP?"left":"right",V=Math.abs(T[1]-O)/x<.3?"middle":T[1]>O?"top":"bottom";if(v&&v[M]){var B=v[M];at(B)&&B.textStyle&&(S=new Nn(B.textStyle,g,g.ecModel))}var U=new fn({silent:yu.isLabelSilent(r),style:Or(S,{x:T[0],y:T[1],fill:S.getTextColor()||r.get(["axisLine","lineStyle","color"]),text:b.formattedLabel,align:R,verticalAlign:V})});if(i.add(U),y){var j=yu.makeAxisEventDataBase(r);j.targetType="axisLabel",j.value=b.rawLabel,ht(U).eventData=j}},this)},splitLine:function(i,r,s,u,f,d){var v=r.getModel("splitLine").getModel("lineStyle"),g=v.get("color"),m=0;g=g instanceof Array?g:[g];for(var y=[],b=0;b=0?"p":"n",ee=U;V&&(s[m][$]||(s[m][$]={p:U,n:U}),ee=s[m][$][te]);var le=void 0,oe=void 0,de=void 0,ge=void 0;if("radius"===S.dim){var _e=S.dataToCoord(K)-U,xe=v.dataToCoord($);Math.abs(_e)=r.y&&i[1]<=r.y+r.height:s.contain(s.toLocalCoord(i[1]))&&i[0]>=r.y&&i[0]<=r.y+r.height},o.prototype.pointToData=function(i){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(i["horizontal"===r.orient?0:1]))]},o.prototype.dataToPoint=function(i){var r=this.getAxis(),s=this.getRect(),u=[],f="horizontal"===r.orient?0:1;return i instanceof Array&&(i=i[0]),u[f]=r.toGlobalCoord(r.dataToCoord(+i)),u[1-f]=0===f?s.y+s.height/2:s.x+s.width/2,u},o.prototype.convertToPixel=function(i,r,s){return g9(r)===this?this.dataToPoint(s):null},o.prototype.convertFromPixel=function(i,r,s){return g9(r)===this?this.pointToData(s):null},o}(),H$={create:function(o,i){var r=[];return o.eachComponent("singleAxis",function(s,u){var f=new N$(s,o,i);f.name="single_"+u,f.resize(s,i),s.coordinateSystem=f,r.push(f)}),o.eachSeries(function(s){if("singleAxis"===s.get("coordinateSystem")){var u=s.getReferringComponents("singleAxis",ai).models[0];s.coordinateSystem=u&&u.coordinateSystem}}),r},dimensions:v9},m9=["x","y"],z$=["width","height"],U$=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.makeElOption=function(r,s,u,f,d){var p=u.axis,v=p.coordinateSystem,g=bV(v,1-uE(p)),m=v.dataToPoint(s)[0],y=f.get("type");if(y&&"none"!==y){var b=dV(f),w=G$[y](p,m,g);w.style=b,r.graphicKey=w.type,r.pointer=w}Jy(s,r,_V(u),u,f,d)},i.prototype.getHandleTransform=function(r,s,u){var f=_V(s,{labelInside:!1});f.labelMargin=u.get(["handle","margin"]);var d=eE(s.axis,r,f);return{x:d[0],y:d[1],rotation:f.rotation+(f.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(r,s,u,f){var d=u.axis,p=d.coordinateSystem,v=uE(d),g=bV(p,v),m=[r.x,r.y];m[v]+=s[v],m[v]=Math.min(g[1],m[v]),m[v]=Math.max(g[0],m[v]);var y=bV(p,1-v),b=(y[1]+y[0])/2,w=[b,b];return w[v]=m[v],{x:m[0],y:m[1],rotation:r.rotation,cursorPoint:w,tooltipOption:{verticalAlign:"middle"}}},i}(fV),G$={line:function(i,r,s){return{type:"Line",subPixelOptimize:!0,shape:hV([r,s[0]],[r,s[1]],uE(i))}},shadow:function(i,r,s){var u=i.getBandWidth();return{type:"Rect",shape:tE([r-u/2,s[0]],[u,s[1]-s[0]],uE(i))}}};function uE(o){return o.isHorizontal()?0:1}function bV(o,i){var r=o.getRect();return[r[m9[i]],r[m9[i]]+r[z$[i]]]}var j$=U$,W$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="single",i}(un);function _9(o,i){var s,r=o.cellSize;1===(s=we(r)?r:o.cellSize=[r,r]).length&&(s[1]=s[0]);var u=Te([0,1],function(f){return function(o,i){return null!=o[uh[i][0]]||null!=o[uh[i][1]]&&null!=o[uh[i][2]]}(i,f)&&(s[f]="auto"),null!=s[f]&&"auto"!==s[f]});kf(o,i,{type:"box",ignoreSize:u})}var X$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s,u){var f=av(r);o.prototype.init.apply(this,arguments),_9(r,f)},i.prototype.mergeOption=function(r){o.prototype.mergeOption.apply(this,arguments),_9(this.option,r)},i.prototype.getCellSize=function(){return this.option.cellSize},i.type="calendar",i.defaultOption={zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},i}(qt),Z$={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},K$={EN:["S","M","T","W","T","F","S"],CN:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},Q$=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){var f=this.group;f.removeAll();var d=r.coordinateSystem,p=d.getRangeInfo(),v=d.getOrient();this._renderDayRect(r,p,f),this._renderLines(r,p,v,f),this._renderYearText(r,p,v,f),this._renderMonthText(r,v,f),this._renderWeekText(r,p,v,f)},i.prototype._renderDayRect=function(r,s,u){for(var f=r.coordinateSystem,d=r.getModel("itemStyle").getItemStyle(),p=f.getCellWidth(),v=f.getCellHeight(),g=s.start.time;g<=s.end.time;g=f.getNextNDay(g,1).time){var m=f.dataToRect([g],!1).tl,y=new sn({shape:{x:m[0],y:m[1],width:p,height:v},cursor:"default",style:d});u.add(y)}},i.prototype._renderLines=function(r,s,u,f){var d=this,p=r.coordinateSystem,v=r.getModel(["splitLine","lineStyle"]).getLineStyle(),g=r.get(["splitLine","show"]),m=v.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var y=s.start,b=0;y.time<=s.end.time;b++){S(y.formatedDate),0===b&&(y=p.getDateInfo(s.start.y+"-"+s.start.m));var w=y.date;w.setMonth(w.getMonth()+1),y=p.getDateInfo(w)}function S(M){d._firstDayOfMonth.push(p.getDateInfo(M)),d._firstDayPoints.push(p.dataToRect([M],!1).tl);var x=d._getLinePointsOfOneWeek(r,M,u);d._tlpoints.push(x[0]),d._blpoints.push(x[x.length-1]),g&&d._drawSplitline(x,v,f)}S(p.getNextNDay(s.end.time,1).formatedDate),g&&this._drawSplitline(d._getEdgesPoints(d._tlpoints,m,u),v,f),g&&this._drawSplitline(d._getEdgesPoints(d._blpoints,m,u),v,f)},i.prototype._getEdgesPoints=function(r,s,u){var f=[r[0].slice(),r[r.length-1].slice()],d="horizontal"===u?0:1;return f[0][d]=f[0][d]-s/2,f[1][d]=f[1][d]+s/2,f},i.prototype._drawSplitline=function(r,s,u){var f=new Cr({z2:20,shape:{points:r},style:s});u.add(f)},i.prototype._getLinePointsOfOneWeek=function(r,s,u){for(var f=r.coordinateSystem,d=f.getDateInfo(s),p=[],v=0;v<7;v++){var g=f.getNextNDay(d.time,v),m=f.dataToRect([g.time],!1);p[2*g.day]=m.tl,p[2*g.day+1]=m["horizontal"===u?"bl":"tr"]}return p},i.prototype._formatterLabel=function(r,s){return"string"==typeof r&&r?function(o,i,r){return q(i,function(s,u){o=o.replace("{"+u+"}",s)}),o}(r,s):"function"==typeof r?r(s):s.nameMap},i.prototype._yearTextPositionControl=function(r,s,u,f,d){var p=s[0],v=s[1],g=["center","bottom"];"bottom"===f?(v+=d,g=["center","top"]):"left"===f?p-=d:"right"===f?(p+=d,g=["center","top"]):v-=d;var m=0;return("left"===f||"right"===f)&&(m=Math.PI/2),{rotation:m,x:p,y:v,style:{align:g[0],verticalAlign:g[1]}}},i.prototype._renderYearText=function(r,s,u,f){var d=r.getModel("yearLabel");if(d.get("show")){var p=d.get("margin"),v=d.get("position");v||(v="horizontal"!==u?"top":"left");var g=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],m=(g[0][0]+g[1][0])/2,y=(g[0][1]+g[1][1])/2,b="horizontal"===u?0:1,w={top:[m,g[b][1]],bottom:[m,g[1-b][1]],left:[g[1-b][0],y],right:[g[b][0],y]},S=s.start.y;+s.end.y>+s.start.y&&(S=S+"-"+s.end.y);var M=d.get("formatter"),T=this._formatterLabel(M,{start:s.start.y,end:s.end.y,nameMap:S}),P=new fn({z2:30,style:Or(d,{text:T})});P.attr(this._yearTextPositionControl(P,w[v],u,v,p)),f.add(P)}},i.prototype._monthTextPositionControl=function(r,s,u,f,d){var p="left",v="top",g=r[0],m=r[1];return"horizontal"===u?(m+=d,s&&(p="center"),"start"===f&&(v="bottom")):(g+=d,s&&(v="middle"),"start"===f&&(p="right")),{x:g,y:m,align:p,verticalAlign:v}},i.prototype._renderMonthText=function(r,s,u){var f=r.getModel("monthLabel");if(f.get("show")){var d=f.get("nameMap"),p=f.get("margin"),v=f.get("position"),g=f.get("align"),m=[this._tlpoints,this._blpoints];yt(d)&&(d=Z$[d.toUpperCase()]||[]);var y="start"===v?0:1,b="horizontal"===s?0:1;p="start"===v?-p:p;for(var w="center"===g,S=0;S=u.start.time&&s.timep.end.time&&r.reverse(),r},o.prototype._getRangeInfo=function(i){var s,r=[this.getDateInfo(i[0]),this.getDateInfo(i[1])];r[0].time>r[1].time&&(s=!0,r.reverse());var u=Math.floor(r[1].time/CV)-Math.floor(r[0].time/CV)+1,f=new Date(r[0].time),d=f.getDate(),p=r[1].date.getDate();f.setDate(d+u-1);var v=f.getDate();if(v!==p)for(var g=f.getTime()-r[1].time>0?1:-1;(v=f.getDate())!==p&&(f.getTime()-r[1].time)*g>0;)u-=g,f.setDate(v-g);var m=Math.floor((u+r[0].day+6)/7),y=s?1-m:m-1;return s&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:u,weeks:m,nthWeek:y,fweek:r[0].day,lweek:r[1].day}},o.prototype._getDateByWeeksAndDay=function(i,r,s){var u=this._getRangeInfo(s);if(i>u.weeks||0===i&&ru.lweek)return null;var f=7*(i-1)-u.fweek+r,d=new Date(u.start.time);return d.setDate(+u.start.d+f),this.getDateInfo(d)},o.create=function(i,r){var s=[];return i.eachComponent("calendar",function(u){var f=new o(u,i,r);s.push(f),u.coordinateSystem=f}),i.eachSeries(function(u){"calendar"===u.get("coordinateSystem")&&(u.coordinateSystem=s[u.get("calendarIndex")||0])}),s},o.dimensions=["time","value"],o}(),eb=pn(),b9={path:null,compoundPath:null,group:ct,image:si,text:fn},rQ=function(i){var r=i.graphic;we(r)?i.graphic=r[0]&&r[0].elements?[i.graphic[0]]:[{elements:r}]:r&&!r.elements&&(i.graphic=[{elements:[r]}])},iQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.preventAutoZ=!0,r}return he(i,o),i.prototype.mergeOption=function(r,s){var u=this.option.elements;this.option.elements=null,o.prototype.mergeOption.call(this,r,s),this.option.elements=u},i.prototype.optionUpdated=function(r,s){var u=this.option,f=(s?u:r).elements,d=u.elements=s?[]:u.elements,p=[];this._flatten(f,p,null);var v=Xk(d,p,"normalMerge"),g=this._elOptionsToUpdate=[];q(v,function(y,b){var w=y.newOption;!w||(g.push(w),function(o,i){var r=o.existing;if(i.id=o.keyInfo.id,!i.type&&r&&(i.type=r.type),null==i.parentId){var s=i.parentOption;s?i.parentId=s.id:r&&(i.parentId=r.parentId)}i.parentOption=null}(y,w),function(o,i,r){var s=ke({},r),u=o[i],f=r.$action||"merge";"merge"===f?u?(He(u,s,!0),kf(u,s,{ignoreSize:!0}),MI(r,u)):o[i]=s:"replace"===f?o[i]=s:"remove"===f&&u&&(o[i]=null)}(d,b,w),function(o,i){if(o&&(o.hv=i.hv=[w9(i,["left","right"]),w9(i,["top","bottom"])],"group"===o.type)){var r=o,s=i;null==r.width&&(r.width=s.width=0),null==r.height&&(r.height=s.height=0)}}(d[b],w))},this);for(var m=d.length-1;m>=0;m--)null==d[m]?d.splice(m,1):delete d[m].$action},i.prototype._flatten=function(r,s,u){q(r,function(f){if(f){u&&(f.parentOption=u),s.push(f);var d=f.children;"group"===f.type&&d&&this._flatten(d,s,f),delete f.children}},this)},i.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},i.type="graphic",i.defaultOption={elements:[]},i}(qt),aQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(){this._elMap=et()},i.prototype.render=function(r,s,u){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,u)},i.prototype._updateElements=function(r){var s=r.useElOptionsToUpdate();if(s){var u=this._elMap,f=this.group;q(s,function(d){var p=wi(d.id,null),v=null!=p?u.get(p):null,g=wi(d.parentId,null),m=null!=g?u.get(g):f,y=d.type,b=d.style;"text"===y&&b&&d.hv&&d.hv[1]&&(b.textVerticalAlign=b.textBaseline=b.verticalAlign=b.align=null);var w=d.textContent,S=d.textConfig;if(b&&$3(b,y,!!S,!!w)){var M=Q3(b,y,!0);!S&&M.textConfig&&(S=d.textConfig=M.textConfig),!w&&M.textContent&&(w=M.textContent)}var x=function(o){return o=ke({},o),q(["id","parentId","$action","hv","bounding","textContent"].concat(kI),function(i){delete o[i]}),o}(d),T=d.$action||"merge";"merge"===T?v?v.attr(x):C9(p,m,x,u):"replace"===T?(cE(v,u),C9(p,m,x,u)):"remove"===T&&cE(v,u);var P=u.get(p);if(P&&w)if("merge"===T){var O=P.getTextContent();O?O.attr(w):P.setTextContent(new fn(w))}else"replace"===T&&P.setTextContent(new fn(w));if(P){var R=eb(P);R.__ecGraphicWidthOption=d.width,R.__ecGraphicHeightOption=d.height,function(o,i,r){var s=ht(o).eventData;!o.silent&&!o.ignore&&!s&&(s=ht(o).eventData={componentType:"graphic",componentIndex:i.componentIndex,name:o.name}),s&&(s.info=r.info)}(P,r,d),Av({el:P,componentModel:r,itemName:P.name,itemTooltipOption:d.tooltip})}})}},i.prototype._relocate=function(r,s){for(var u=r.option.elements,f=this.group,d=this._elMap,p=s.getWidth(),v=s.getHeight(),g=0;g=0;g--){var m,y,b,w;if(b=null!=(y=wi((m=u[g]).id,null))?d.get(y):null)x=eb(w=b.parent),tC(b,m,w===f?{width:p,height:v}:{width:x.__ecGraphicWidth,height:x.__ecGraphicHeight},null,{hv:m.hv,boundingMode:m.bounding})}},i.prototype._clear=function(){var r=this._elMap;r.each(function(s){cE(s,r)}),this._elMap=et()},i.prototype.dispose=function(){this._clear()},i.type="graphic",i}(un);function C9(o,i,r,s){var u=r.type,d=new(Ae(b9,u)?b9[u]:Hx(u))(r);i.add(d),s.set(o,d),eb(d).__ecGraphicId=o}function cE(o,i){var r=o&&o.parent;r&&("group"===o.type&&o.traverse(function(s){cE(s,i)}),i.removeKey(eb(o).__ecGraphicId),r.remove(o))}function w9(o,i){var r;return q(i,function(s){null!=o[s]&&"auto"!==o[s]&&(r=!0)}),r}var SV=["x","y","radius","angle","single"],kV=["cartesian2d","polar","singleAxis"];function Dc(o){return o+"Axis"}function MV(o){var i=o.ecModel,r={infoList:[],infoMap:et()};return o.eachTargetAxis(function(s,u){var f=i.getComponent(Dc(s),u);if(f){var d=f.getCoordSysModel();if(d){var p=d.uid,v=r.infoMap.get(p);v||(r.infoList.push(v={model:d,axisModels:[]}),r.infoMap.set(p,v)),v.axisModels.push(f)}}}),r}var xV=function(){function o(){this.indexList=[],this.indexMap=[]}return o.prototype.add=function(i){this.indexMap[i]||(this.indexList.push(i),this.indexMap[i]=!0)},o}();function x9(o){var i={};return q(["start","end","startValue","endValue","throttle"],function(r){o.hasOwnProperty(r)&&(i[r]=o[r])}),i}var eS=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return he(i,o),i.prototype.init=function(r,s,u){var f=x9(r);this.settledOption=f,this.mergeDefaultAndTheme(r,u),this._doInit(f)},i.prototype.mergeOption=function(r){var s=x9(r);He(this.option,r,!0),He(this.settledOption,s,!0),this._doInit(s)},i.prototype._doInit=function(r){var s=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var u=this.settledOption;q([["start","startValue"],["end","endValue"]],function(f,d){"value"===this._rangePropMode[d]&&(s[f[0]]=u[f[0]]=null)},this),this._resetTarget()},i.prototype._resetTarget=function(){var r=this.get("orient",!0),s=this._targetAxisInfoMap=et();this._fillSpecifiedTargetAxis(s)?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(s,this._orient)),this._noTarget=!0,s.each(function(f){f.indexList.length&&(this._noTarget=!1)},this)},i.prototype._fillSpecifiedTargetAxis=function(r){var s=!1;return q(SV,function(u){var f=this.getReferringComponents(Dc(u),$H);if(f.specified){s=!0;var d=new xV;q(f.models,function(p){d.add(p.componentIndex)}),r.set(u,d)}},this),s},i.prototype._fillAutoTargetAxisByOrient=function(r,s){var u=this.ecModel,f=!0;if(f){var d="vertical"===s?"y":"x";v(u.findComponents({mainType:d+"Axis"}),d)}function v(g,m){var y=g[0];if(y){var b=new xV;if(b.add(y.componentIndex),r.set(m,b),f=!1,"x"===m||"y"===m){var w=y.getReferringComponents("grid",ai).models[0];w&&q(g,function(S){y.componentIndex!==S.componentIndex&&w===S.getReferringComponents("grid",ai).models[0]&&b.add(S.componentIndex)})}}}f&&v(u.findComponents({mainType:"singleAxis",filter:function(y){return y.get("orient",!0)===s}}),"single"),f&&q(SV,function(g){if(f){var m=u.findComponents({mainType:Dc(g),filter:function(w){return"category"===w.get("type",!0)}});if(m[0]){var y=new xV;y.add(m[0].componentIndex),r.set(g,y),f=!1}}},this)},i.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(s){!r&&(r=s)},this),"y"===r?"vertical":"horizontal"},i.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var s=this.ecModel.option;this.option.throttle=s.animation&&s.animationDurationUpdate>0?100:20}},i.prototype._updateRangeUse=function(r){var s=this._rangePropMode,u=this.get("rangeMode");q([["start","startValue"],["end","endValue"]],function(f,d){var p=null!=r[f[0]],v=null!=r[f[1]];p&&!v?s[d]="percent":!p&&v?s[d]="value":u?s[d]=u[d]:p&&(s[d]="percent")})},i.prototype.noTarget=function(){return this._noTarget},i.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(s,u){null==r&&(r=this.ecModel.getComponent(Dc(s),u))},this),r},i.prototype.eachTargetAxis=function(r,s){this._targetAxisInfoMap.each(function(u,f){q(u.indexList,function(d){r.call(s,f,d)})})},i.prototype.getAxisProxy=function(r,s){var u=this.getAxisModel(r,s);if(u)return u.__dzAxisProxy},i.prototype.getAxisModel=function(r,s){var u=this._targetAxisInfoMap.get(r);if(u&&u.indexMap[s])return this.ecModel.getComponent(Dc(r),s)},i.prototype.setRawRange=function(r){var s=this.option,u=this.settledOption;q([["start","startValue"],["end","endValue"]],function(f){(null!=r[f[0]]||null!=r[f[1]])&&(s[f[0]]=u[f[0]]=r[f[0]],s[f[1]]=u[f[1]]=r[f[1]])},this),this._updateRangeUse(r)},i.prototype.setCalculatedRange=function(r){var s=this.option;q(["start","startValue","end","endValue"],function(u){s[u]=r[u]})},i.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},i.prototype.getValueRange=function(r,s){if(null!=r||null!=s)return this.getAxisProxy(r,s).getDataValueWindow();var u=this.findRepresentativeAxisProxy();return u?u.getDataValueWindow():void 0},i.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var s,u=this._targetAxisInfoMap.keys(),f=0;f=0}(r)){var s=Dc(this._dimName),u=r.getReferringComponents(s,ai).models[0];u&&this._axisIndex===u.componentIndex&&i.push(r)}},this),i},o.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},o.prototype.getMinMaxSpan=function(){return rt(this._minMaxSpan)},o.prototype.calculateDataWindow=function(i){var g,r=this._dataExtent,u=this.getAxisModel().axis.scale,f=this._dataZoomModel.getRangePropMode(),d=[0,100],p=[],v=[];Ag(["start","end"],function(b,w){var S=i[b],M=i[b+"Value"];"percent"===f[w]?(null==S&&(S=d[w]),M=u.parse(bn(S,d,r))):(g=!0,S=bn(M=null==M?r[w]:u.parse(M),r,d)),v[w]=M,p[w]=S}),dE(v),dE(p);var m=this._minMaxSpan;function y(b,w,S,M,x){var T=x?"Span":"ValueSpan";kl(0,b,S,"all",m["min"+T],m["max"+T]);for(var P=0;P<2;P++)w[P]=bn(b[P],S,M,!0),x&&(w[P]=u.parse(w[P]))}return g?y(v,p,r,d,!1):y(p,v,d,r,!0),{valueWindow:v,percentWindow:p}},o.prototype.reset=function(i){if(i===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=function(o,i,r){var s=[1/0,-1/0];Ag(r,function(d){!function(o,i,r){i&&q(H_(i,r),function(s){var u=i.getApproximateExtent(s);u[0]o[1]&&(o[1]=u[1])})}(s,d.getData(),i)});var u=o.getAxisModel(),f=dL(u.axis.scale,u,s).calculate();return[f.min,f.max]}(this,this._dimName,r),this._updateMinMaxSpan();var s=this.calculateDataWindow(i.settledOption);this._valueWindow=s.valueWindow,this._percentWindow=s.percentWindow,this._setAxisModel()}},o.prototype.filterData=function(i,r){if(i===this._dataZoomModel){var s=this._dimName,u=this.getTargetSeriesModels(),f=i.get("filterMode"),d=this._valueWindow;"none"!==f&&Ag(u,function(v){var g=v.getData(),m=g.mapDimensionsAll(s);if(m.length){if("weakFilter"===f){var y=g.getStore(),b=Te(m,function(w){return g.getDimensionIndex(w)},g);g.filterSelf(function(w){for(var S,M,x,T=0;Td[1];if(O&&!R&&!V)return!0;O&&(x=!0),R&&(S=!0),V&&(M=!0)}return x&&S&&M})}else Ag(m,function(w){if("empty"===f)v.setData(g=g.map(w,function(M){return function(v){return v>=d[0]&&v<=d[1]}(M)?M:NaN}));else{var S={};S[w]=d,g.selectRange(S)}});Ag(m,function(w){g.setApproximateExtent(d,w)})}})}},o.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},r=this._dataZoomModel,s=this._dataExtent;Ag(["min","max"],function(u){var f=r.get(u+"Span"),d=r.get(u+"ValueSpan");null!=d&&(d=this.getAxisModel().axis.scale.parse(d)),null!=d?f=bn(s[0]+d,s,[0,100],!0):null!=f&&(d=bn(f,[0,100],s,!0)-s[0]),i[u+"Span"]=f,i[u+"ValueSpan"]=d},this)},o.prototype._setAxisModel=function(){var i=this.getAxisModel(),r=this._percentWindow,s=this._valueWindow;if(r){var u=o0(s,[0,500]);u=Math.min(u,20);var f=i.axis.scale.rawExtentInfo;0!==r[0]&&f.setDeterminedMinMax("min",+s[0].toFixed(u)),100!==r[1]&&f.setDeterminedMinMax("max",+s[1].toFixed(u)),f.freeze()}},o}(),EV={getTargetSeries:function(i){function r(f){i.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(p,v){var g=i.getComponent(Dc(p),v);f(p,v,g,d)})})}r(function(f,d,p,v){p.__dzAxisProxy=null});var s=[];r(function(f,d,p,v){p.__dzAxisProxy||(p.__dzAxisProxy=new cp(f,d,v,i),s.push(p.__dzAxisProxy))});var u=et();return q(s,function(f){q(f.getTargetSeriesModels(),function(d){u.set(d.uid,d)})}),u},overallReset:function(i,r){i.eachComponent("dataZoom",function(s){s.eachTargetAxis(function(u,f){s.getAxisProxy(u,f).reset(s)}),s.eachTargetAxis(function(u,f){s.getAxisProxy(u,f).filterData(s,r)})}),i.eachComponent("dataZoom",function(s){var u=s.findRepresentativeAxisProxy();if(u){var f=u.getDataPercentWindow(),d=u.getDataValueWindow();s.setCalculatedRange({start:f[0],end:f[1],startValue:d[0],endValue:d[1]})}})}},pE=!1;function vE(o){pE||(pE=!0,o.registerProcessor(o.PRIORITY.PROCESSOR.FILTER,EV),function(o){o.registerAction("dataZoom",function(i,r){q(function(o,i){var f,r=et(),s=[],u=et();o.eachComponent({mainType:"dataZoom",query:i},function(m){u.get(m.uid)||p(m)});do{f=!1,o.eachComponent("dataZoom",d)}while(f);function d(m){!u.get(m.uid)&&function(m){var y=!1;return m.eachTargetAxis(function(b,w){var S=r.get(b);S&&S[w]&&(y=!0)}),y}(m)&&(p(m),f=!0)}function p(m){u.set(m.uid,!0),s.push(m),function(m){m.eachTargetAxis(function(y,b){(r.get(y)||r.set(y,[]))[b]=!0})}(m)}return s}(r,i),function(u){u.setRawRange({start:i.start,end:i.end,startValue:i.startValue,endValue:i.endValue})})})}(o),o.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function P9(o){o.registerComponentModel(T9),o.registerComponentView(tb),vE(o)}var Is=function(){},Ai={};function Eg(o,i){Ai[o]=i}function gE(o){return Ai[o]}var PV=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.optionUpdated=function(){o.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;q(this.option.feature,function(s,u){var f=gE(u);f&&(f.getDefaultOption&&(f.defaultOption=f.getDefaultOption(r)),He(s,f.defaultOption))})},i.type="toolbox",i.layoutMode={type:"box",ignoreSize:!0},i.defaultOption={show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},i}(qt);function OV(o,i){var r=lh(i.get("padding")),s=i.getItemStyle(["color","opacity"]);return s.fill=i.get("backgroundColor"),new sn({shape:{x:o.x-r[3],y:o.y-r[0],width:o.width+r[1]+r[3],height:o.height+r[0]+r[2],r:i.get("borderRadius")},style:s,silent:!0,z2:-1})}var mE=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.render=function(r,s,u,f){var d=this.group;if(d.removeAll(),r.get("show")){var p=+r.get("itemSize"),v=r.get("feature")||{},g=this._features||(this._features={}),m=[];q(v,function(w,S){m.push(S)}),new Hf(this._featureNames||[],m).add(y).update(y).remove(St(y,null)).execute(),this._featureNames=m,function(o,i,r){var s=i.getBoxLayoutParams(),u=i.get("padding"),f={width:r.getWidth(),height:r.getHeight()},d=li(s,f,u);Sf(i.get("orient"),o,i.get("itemGap"),d.width,d.height),tC(o,s,f,u)}(d,r,u),d.add(OV(d.getBoundingRect(),r)),d.eachChild(function(w){var S=w.__title,M=w.ensureState("emphasis"),x=M.textConfig||(M.textConfig={}),T=w.getTextContent(),P=T&&T.states.emphasis;if(P&&!An(P)&&S){var O=P.style||(P.style={}),R=um(S,fn.makeFont(O)),V=w.x+d.x,U=!1;w.y+d.y+p+R.height>u.getHeight()&&(x.position="top",U=!0);var j=U?-5-R.height:p+8;V+R.width/2>u.getWidth()?(x.position=["100%",j],O.align="right"):V-R.width/2<0&&(x.position=[0,j],O.align="left")}})}function y(w,S){var O,M=m[w],x=m[S],T=v[M],P=new Nn(T,r,r.ecModel);if(f&&null!=f.newTitle&&f.featureName===M&&(T.title=f.newTitle),M&&!x){if(function(o){return 0===o.indexOf("my")}(M))O={onclick:P.option.onclick,featureName:M};else{var R=gE(M);if(!R)return;O=new R}g[M]=O}else if(!(O=g[x]))return;O.uid=Bm("toolbox-feature"),O.model=P,O.ecModel=s,O.api=u;var V=O instanceof Is;M||!x?!P.get("show")||V&&O.unusable?V&&O.remove&&O.remove(s,u):(function(w,S,M){var R,V,x=w.getModel("iconStyle"),T=w.getModel(["emphasis","iconStyle"]),P=S instanceof Is&&S.getIcons?S.getIcons():w.get("icon"),O=w.get("title")||{};"string"==typeof P?(R={})[M]=P:R=P,"string"==typeof O?(V={})[M]=O:V=O;var B=w.iconPaths={};q(R,function(U,j){var X=cl(U,{},{x:-p/2,y:-p/2,width:p,height:p});X.setStyle(x.getItemStyle()),X.ensureState("emphasis").style=T.getItemStyle();var $=new fn({style:{text:V[j],align:T.get("textAlign"),borderRadius:T.get("textBorderRadius"),padding:T.get("textPadding"),fill:null},ignore:!0});X.setTextContent($),Av({el:X,componentModel:r,itemName:j,formatterParamsExtra:{title:V[j]}}),X.__title=V[j],X.on("mouseover",function(){var te=T.getItemStyle(),ee="vertical"===r.get("orient")?null==r.get("right")?"right":"left":null==r.get("bottom")?"bottom":"top";$.setStyle({fill:T.get("textFill")||te.fill||te.stroke||"#000",backgroundColor:T.get("textBackgroundColor")}),X.setTextConfig({position:T.get("textPosition")||ee}),$.ignore=!r.get("showTitle"),Js(this)}).on("mouseout",function(){"emphasis"!==w.get(["iconStatus",j])&&eu(this),$.hide()}),("emphasis"===w.get(["iconStatus",j])?Js:eu)(X),d.add(X),X.on("click",Ye(S.onclick,S,s,u,j)),B[j]=X})}(P,O,M),P.setIconStatus=function(B,U){var j=this.option,X=this.iconPaths;j.iconStatus=j.iconStatus||{},j.iconStatus[B]=U,X[B]&&("emphasis"===U?Js:eu)(X[B])},O instanceof Is&&O.render&&O.render(P,s,u,f)):V&&O.dispose&&O.dispose(s,u)}},i.prototype.updateView=function(r,s,u,f){q(this._features,function(d){d instanceof Is&&d.updateView&&d.updateView(d.model,s,u,f)})},i.prototype.remove=function(r,s){q(this._features,function(u){u instanceof Is&&u.remove&&u.remove(r,s)}),this.group.removeAll()},i.prototype.dispose=function(r,s){q(this._features,function(u){u instanceof Is&&u.dispose&&u.dispose(r,s)})},i.type="toolbox",i}(un),IV=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.onclick=function(r,s){var u=this.model,f=u.get("name")||r.get("title.0.text")||"echarts",d="svg"===s.getZr().painter.getType(),p=d?"svg":u.get("type",!0)||"png",v=s.getConnectedDataURL({type:p,backgroundColor:u.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:u.get("connectedBackgroundColor"),excludeComponents:u.get("excludeComponents"),pixelRatio:u.get("pixelRatio")});if("function"!=typeof MouseEvent||!Ze.browser.newEdge&&(Ze.browser.ie||Ze.browser.edge))if(window.navigator.msSaveOrOpenBlob||d){var y=v.split(","),b=y[0].indexOf("base64")>-1,w=d?decodeURIComponent(y[1]):y[1];b&&(w=window.atob(w));var S=f+"."+p;if(window.navigator.msSaveOrOpenBlob){for(var M=w.length,x=new Uint8Array(M);M--;)x[M]=w.charCodeAt(M);var T=new Blob([x]);window.navigator.msSaveOrOpenBlob(T,S)}else{var P=document.createElement("iframe");document.body.appendChild(P);var O=P.contentWindow,R=O.document;R.open("image/svg+xml","replace"),R.write(w),R.close(),O.focus(),R.execCommand("SaveAs",!0,S),document.body.removeChild(P)}}else{var V=u.get("lang"),B='',U=window.open();U.document.write(B),U.document.title=f}else{var g=document.createElement("a");g.download=f+"."+p,g.target="_blank",g.href=v;var m=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});g.dispatchEvent(m)}},i.getDefaultOption=function(r){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},i}(Is);IV.prototype.unusable=!Ze.canvasSupported;var R9=IV,RV="__ec_magicType_stack__",F9=[["line","bar"],["stack"]],_E=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.getIcons=function(){var r=this.model,s=r.get("icon"),u={};return q(r.get("type"),function(f){s[f]&&(u[f]=s[f])}),u},i.getDefaultOption=function(r){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},i.prototype.onclick=function(r,s,u){var f=this.model,d=f.get(["seriesIndex",u]);if(yE[u]){var p={series:[]};q(F9,function(y){Rt(y,u)>=0&&q(y,function(b){f.setIconStatus(b,"normal")})}),f.setIconStatus(u,"emphasis"),r.eachComponent({mainType:"series",query:null==d?null:{seriesIndex:d}},function(b){var M=yE[u](b.subType,b.id,b,f);M&&(tt(M,b.option),p.series.push(M));var x=b.coordinateSystem;if(x&&"cartesian2d"===x.type&&("line"===u||"bar"===u)){var T=x.getAxesByScale("ordinal")[0];if(T){var O=T.dim+"Axis",V=b.getReferringComponents(O,ai).models[0].componentIndex;p[O]=p[O]||[];for(var B=0;B<=V;B++)p[O][V]=p[O][V]||{};p[O][V].boundaryGap="bar"===u}}});var g,m=u;"stack"===u&&(g=He({stack:f.option.title.tiled,tiled:f.option.title.stack},f.option.title),"emphasis"!==f.get(["iconStatus",u])&&(m="tiled")),s.dispatchAction({type:"changeMagicType",currentType:m,newOption:p,newTitle:g,featureName:"magicType"})}},i}(Is),yE={line:function(i,r,s,u){if("bar"===i)return He({id:r,type:"line",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},u.get(["option","line"])||{},!0)},bar:function(i,r,s,u){if("line"===i)return He({id:r,type:"bar",data:s.get("data"),stack:s.get("stack"),markPoint:s.get("markPoint"),markLine:s.get("markLine")},u.get(["option","bar"])||{},!0)},stack:function(i,r,s,u){var f=s.get("stack")===RV;if("line"===i||"bar"===i)return u.setIconStatus("stack",f?"normal":"emphasis"),He({id:r,stack:f?"":RV},u.get(["option","stack"])||{},!0)}};pl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(o,i){i.mergeOption(o.newOption)});var nb=_E,ld=new Array(60).join("-");function V9(o){var i=[];return q(o,function(r,s){var u=r.categoryAxis,d=r.valueAxis.dim,p=[" "].concat(Te(r.series,function(w){return w.name})),v=[u.model.getCategories()];q(r.series,function(w){var S=w.getRawData();v.push(w.getRawData().mapArray(S.mapDimension(d),function(M){return M}))});for(var g=[p.join("\t")],m=0;m=0)return!0}(u)){var d=function(o){for(var i=o.split(/\n+/g),s=[],u=Te(rb(i.shift()).split(bE),function(v){return{name:v,data:[]}}),f=0;f=0)&&d(f,u._targetInfoList)})}return o.prototype.setOutputRanges=function(i,r){return this.matchOutputRanges(i,r,function(s,u,f){if((s.coordRanges||(s.coordRanges=[])).push(u),!s.coordRange){s.coordRange=u;var d=ME[s.brushType](0,f,u);s.__rangeOffset={offset:UV[s.brushType](d.values,s.range,[1,1]),xyMinMax:d.xyMinMax}}}),i},o.prototype.matchOutputRanges=function(i,r,s){q(i,function(u){var f=this.findTargetInfo(u,r);f&&!0!==f&&q(f.coordSyses,function(d){var p=ME[u.brushType](1,d,u.range,!0);s(u,p.values,d,r)})},this)},o.prototype.setInputRanges=function(i,r){q(i,function(s){var u=this.findTargetInfo(s,r);if(s.range=s.range||[],u&&!0!==u){s.panelId=u.panelId;var f=ME[s.brushType](0,u.coordSys,s.coordRange),d=s.__rangeOffset;s.range=d?UV[s.brushType](f.values,d.offset,function(o,i){var r=q9(o),s=q9(i),u=[r[0]/s[0],r[1]/s[1]];return isNaN(u[0])&&(u[0]=1),isNaN(u[1])&&(u[1]=1),u}(f.xyMinMax,d.xyMinMax)):f.values}},this)},o.prototype.makePanelOpts=function(i,r){return Te(this._targetInfoList,function(s){var u=s.getPanelRect();return{panelId:s.panelId,defaultBrushType:r?r(s):null,clipPath:ku(u),isTargetByCursor:yA(u,i,s.coordSysModel),getLinearBrushOtherExtent:mg(u)}})},o.prototype.controlSeries=function(i,r,s){var u=this.findTargetInfo(i,s);return!0===u||u&&Rt(u.coordSyses,r.coordinateSystem)>=0},o.prototype.findTargetInfo=function(i,r){for(var s=this._targetInfoList,u=kE(r,i),f=0;fo[1]&&o.reverse(),o}function kE(o,i){return is(o,i,{includeMainTypes:G9})}var W9={grid:function(i,r){var s=i.xAxisModels,u=i.yAxisModels,f=i.gridModels,d=et(),p={},v={};!s&&!u&&!f||(q(s,function(g){var m=g.axis.grid.model;d.set(m.id,m),p[m.id]=!0}),q(u,function(g){var m=g.axis.grid.model;d.set(m.id,m),v[m.id]=!0}),q(f,function(g){d.set(g.id,g),p[g.id]=!0,v[g.id]=!0}),d.each(function(g){var y=[];q(g.coordinateSystem.getCartesians(),function(b,w){(Rt(s,b.getAxis("x").model)>=0||Rt(u,b.getAxis("y").model)>=0)&&y.push(b)}),r.push({panelId:"grid--"+g.id,gridModel:g,coordSysModel:g,coordSys:y[0],coordSyses:y,getPanelRect:zV.grid,xAxisDeclared:p[g.id],yAxisDeclared:v[g.id]})}))},geo:function(i,r){q(i.geoModels,function(s){var u=s.coordinateSystem;r.push({panelId:"geo--"+s.id,geoModel:s,coordSysModel:s,coordSys:u,coordSyses:[u],getPanelRect:zV.geo})})}},HV=[function(o,i){var r=o.xAxisModel,s=o.yAxisModel,u=o.gridModel;return!u&&r&&(u=r.axis.grid.model),!u&&s&&(u=s.axis.grid.model),u&&u===i.gridModel},function(o,i){var r=o.geoModel;return r&&r===i.geoModel}],zV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var i=this.coordSys,r=i.getBoundingRect().clone();return r.applyTransform(Lf(i)),r}},ME={lineX:St(xE,0),lineY:St(xE,1),rect:function(i,r,s,u){var f=i?r.pointToData([s[0][0],s[1][0]],u):r.dataToPoint([s[0][0],s[1][0]],u),d=i?r.pointToData([s[0][1],s[1][1]],u):r.dataToPoint([s[0][1],s[1][1]],u),p=[rS([f[0],d[0]]),rS([f[1],d[1]])];return{values:p,xyMinMax:p}},polygon:function(i,r,s,u){var f=[[1/0,-1/0],[1/0,-1/0]];return{values:Te(s,function(p){var v=i?r.pointToData(p,u):r.dataToPoint(p,u);return f[0][0]=Math.min(f[0][0],v[0]),f[1][0]=Math.min(f[1][0],v[1]),f[0][1]=Math.max(f[0][1],v[0]),f[1][1]=Math.max(f[1][1],v[1]),v}),xyMinMax:f}}};function xE(o,i,r,s){var u=r.getAxis(["x","y"][o]),f=rS(Te([0,1],function(p){return i?u.coordToData(u.toLocalCoord(s[p]),!0):u.toGlobalCoord(u.dataToCoord(s[p]))})),d=[];return d[o]=f,d[1-o]=[NaN,NaN],{values:f,xyMinMax:d}}var UV={lineX:St(Y9,0),lineY:St(Y9,1),rect:function(i,r,s){return[[i[0][0]-s[0]*r[0][0],i[0][1]-s[0]*r[0][1]],[i[1][0]-s[1]*r[1][0],i[1][1]-s[1]*r[1][1]]]},polygon:function(i,r,s){return Te(i,function(u,f){return[u[0]-s[0]*r[f][0],u[1]-s[1]*r[f][1]]})}};function Y9(o,i,r,s){return[i[0]-s[o]*r[0],i[1]-s[o]*r[1]]}function q9(o){return o?[o[0][1]-o[0][0],o[1][1]-o[1][0]]:[NaN,NaN]}var TE=j9,DE=q,pQ=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.render=function(r,s,u,f){this._brushController||(this._brushController=new Vy(u.getZr()),this._brushController.on("brush",Ye(this._onBrush,this)).mount()),function(o,i,r,s,u){var f=r._isZoomActive;s&&"takeGlobalCursor"===s.type&&(f="dataZoomSelect"===s.key&&s.dataZoomSelectActive),r._isZoomActive=f,o.setIconStatus("zoom",f?"emphasis":"normal");var p=new TE(ab(o),i,{include:["grid"]}).makePanelOpts(u,function(v){return v.xAxisDeclared&&!v.yAxisDeclared?"lineX":!v.xAxisDeclared&&v.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(p).enableBrush(!(!f||!p.length)&&{brushType:"auto",brushStyle:o.getModel("brushStyle").getItemStyle()})}(r,s,this,f,u),function(o,i){o.setIconStatus("back",function(o){return SE(o).length}(i)>1?"emphasis":"normal")}(r,s)},i.prototype.onclick=function(r,s,u){vQ[u].call(this)},i.prototype.remove=function(r,s){this._brushController&&this._brushController.unmount()},i.prototype.dispose=function(r,s){this._brushController&&this._brushController.dispose()},i.prototype._onBrush=function(r){var s=r.areas;if(r.isEnd&&s.length){var u={},f=this.ecModel;this._brushController.updateCovers([]),new TE(ab(this.model),f,{include:["grid"]}).matchOutputRanges(s,f,function(g,m,y){if("cartesian2d"===y.type){var b=g.brushType;"rect"===b?(p("x",y,m[0]),p("y",y,m[1])):p({lineX:"x",lineY:"y"}[b],y,m)}}),function(o,i){var r=SE(o);wE(i,function(s,u){for(var f=r.length-1;f>=0&&!r[f][u];f--);if(f<0){var p=o.queryComponents({mainType:"dataZoom",subType:"select",id:u})[0];if(p){var v=p.getPercentRange();r[0][u]={dataZoomId:u,start:v[0],end:v[1]}}}}),r.push(i)}(f,u),this._dispatchZoomAction(u)}function p(g,m,y){var b=m.getAxis(g),w=b.model,S=function(g,m,y){var b;return y.eachComponent({mainType:"dataZoom",subType:"select"},function(w){w.getAxisModel(g,m.componentIndex)&&(b=w)}),b}(g,w,f),M=S.findRepresentativeAxisProxy(w).getMinMaxSpan();(null!=M.minValueSpan||null!=M.maxValueSpan)&&(y=kl(0,y.slice(),b.scale.getExtent(),0,M.minValueSpan,M.maxValueSpan)),S&&(u[S.id]={dataZoomId:S.id,startValue:y[0],endValue:y[1]})}},i.prototype._dispatchZoomAction=function(r){var s=[];DE(r,function(u,f){s.push(rt(u))}),s.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:s})},i.getDefaultOption=function(r){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},i}(Is),vQ={zoom:function(){this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!this._isZoomActive})},back:function(){this._dispatchZoomAction(function(o){var i=SE(o),r=i[i.length-1];i.length>1&&i.pop();var s={};return wE(r,function(u,f){for(var d=i.length-1;d>=0;d--)if(u=i[d][f]){s[f]=u;break}}),s}(this.ecModel))}};function ab(o){var i={xAxisIndex:o.get("xAxisIndex",!0),yAxisIndex:o.get("yAxisIndex",!0),xAxisId:o.get("xAxisId",!0),yAxisId:o.get("yAxisId",!0)};return null==i.xAxisIndex&&null==i.xAxisId&&(i.xAxisIndex="all"),null==i.yAxisIndex&&null==i.yAxisId&&(i.yAxisIndex="all"),i}!function(o,i){Oa(null==iC.get(o)&&i),iC.set(o,i)}("dataZoom",function(o){var i=o.getComponent("toolbox",0),r=["feature","dataZoom"];if(i&&null!=i.get(r)){var s=i.getModel(r),u=[],d=is(o,ab(s));return DE(d.xAxisModels,function(v){return p(v,"xAxis","xAxisIndex")}),DE(d.yAxisModels,function(v){return p(v,"yAxis","yAxisIndex")}),u}function p(v,g,m){var y=v.componentIndex,b={type:"select",$fromToolbox:!0,filterMode:s.get("filterMode",!0)||"filter",id:"\0_ec_\0toolbox-dataZoom_"+g+y};b[m]=y,u.push(b)}});var Z9=pQ,WV=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="tooltip",i.dependencies=["axisPointer"],i.defaultOption={zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},i}(qt);function EE(o){var i=o.get("confine");return null!=i?!!i:"richText"===o.get("renderMode")}function YV(o){if(Ze.domSupported)for(var i=document.documentElement.style,r=0,s=o.length;r-1?(p+="top:50%",v+="translateY(-50%) rotate("+(g="left"===f?-225:-45)+"deg)"):(p+="left:50%",v+="translateX(-50%) rotate("+(g="top"===f?225:45)+"deg)");var m=g*Math.PI/180,y=d+u,b=y*Math.abs(Math.cos(m))+y*Math.abs(Math.sin(m)),S=i+" solid "+u+"px;";return'
'}(s,u,f)),yt(i))d.innerHTML=i+p;else if(i){d.innerHTML="",we(i)||(i=[i]);for(var v=0;v=0;f--){var d=o[f];d&&(d instanceof Nn&&(d=d.get("tooltip",!0)),yt(d)&&(d={formatter:d}),d&&(u=new Nn(d,u,s)))}return u}function BE(o,i){return o.dispatchAction||Ye(i.dispatchAction,i)}function HE(o){return"center"===o||"middle"===o}var eB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){if(!Ze.node){var u=r.getComponent("tooltip"),f=u.get("renderMode");this._renderMode=function(o){return"auto"===o?Ze.domSupported?"html":"richText":o||"html"}(f),this._tooltipContent="richText"===this._renderMode?new gt(s):new Ac(s.getDom(),s,{appendToBody:u.get("appendToBody",!0)})}},i.prototype.render=function(r,s,u){if(!Ze.node){this.group.removeAll(),this._tooltipModel=r,this._ecModel=s,this._api=u,this._alwaysShowContent=r.get("alwaysShowContent");var f=this._tooltipContent;f.update(r),f.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow()}},i.prototype._initGlobalListener=function(){var s=this._tooltipModel.get("triggerOn");n9("itemTooltip",this._api,Bn(function(u,f,d){"none"!==s&&(s.indexOf(u)>=0?this._tryShow(f,d):"leave"===u&&this._hide(d))},this))},i.prototype._keepShow=function(){var r=this._tooltipModel,s=this._ecModel,u=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==r.get("triggerOn")){var f=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!u.isDisposed()&&f.manuallyShowTip(r,s,u,{x:f._lastX,y:f._lastY,dataByCoordSys:f._lastDataByCoordSys})})}},i.prototype.manuallyShowTip=function(r,s,u,f){if(f.from!==this.uid&&!Ze.node){var d=BE(f,u);this._ticket="";var p=f.dataByCoordSys,v=function(o,i,r){var s=f0(o).queryOptionMap,u=s.keys()[0];if(u&&"series"!==u){var v,d=d0(i,u,s.get(u),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(d&&(r.getViewOfComponentModel(d).group.traverse(function(g){var m=ht(g).tooltipConfig;if(m&&m.name===o.name)return v=g,!0}),v))return{componentMainType:u,componentIndex:d.componentIndex,el:v}}}(f,s,u);if(v){var g=v.el.getBoundingRect().clone();g.applyTransform(v.el.transform),this._tryShow({offsetX:g.x+g.width/2,offsetY:g.y+g.height/2,target:v.el,position:f.position,positionDefault:"bottom"},d)}else if(f.tooltip&&null!=f.x&&null!=f.y){var m=gQ;m.x=f.x,m.y=f.y,m.update(),ht(m).tooltipConfig={name:null,option:f.tooltip},this._tryShow({offsetX:f.x,offsetY:f.y,target:m},d)}else if(p)this._tryShow({offsetX:f.x,offsetY:f.y,position:f.position,dataByCoordSys:p,tooltipOption:f.tooltipOption},d);else if(null!=f.seriesIndex){if(this._manuallyAxisShowTip(r,s,u,f))return;var y=a9(f,s),b=y.point[0],w=y.point[1];null!=b&&null!=w&&this._tryShow({offsetX:b,offsetY:w,target:y.el,position:f.position,positionDefault:"bottom"},d)}else null!=f.x&&null!=f.y&&(u.dispatchAction({type:"updateAxisPointer",x:f.x,y:f.y}),this._tryShow({offsetX:f.x,offsetY:f.y,position:f.position,target:u.getZr().findHover(f.x,f.y).target},d))}},i.prototype.manuallyHideTip=function(r,s,u,f){!this._alwaysShowContent&&this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,f.from!==this.uid&&this._hide(BE(f,u))},i.prototype._manuallyAxisShowTip=function(r,s,u,f){var d=f.seriesIndex,p=f.dataIndex,v=s.getComponent("axisPointer").coordSysAxesInfo;if(null!=d&&null!=p&&null!=v){var g=s.getSeriesByIndex(d);if(g&&"axis"===VE([g.getData().getItemModel(p),g,(g.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return u.dispatchAction({type:"updateAxisPointer",seriesIndex:d,dataIndex:p,position:f.position}),!0}},i.prototype._tryShow=function(r,s){var u=r.target;if(this._tooltipModel){this._lastX=r.offsetX,this._lastY=r.offsetY;var d=r.dataByCoordSys;if(d&&d.length)this._showAxisTooltip(d,r);else if(u){var p,v;this._lastDataByCoordSys=null,xh(u,function(g){return null!=ht(g).dataIndex?(p=g,!0):null!=ht(g).tooltipConfig?(v=g,!0):void 0},!0),p?this._showSeriesItemTooltip(r,p,s):v?this._showComponentItemTooltip(r,v,s):this._hide(s)}else this._lastDataByCoordSys=null,this._hide(s)}},i.prototype._showOrMove=function(r,s){var u=r.get("showDelay");s=Ye(s,this),clearTimeout(this._showTimout),u>0?this._showTimout=setTimeout(s,u):s()},i.prototype._showAxisTooltip=function(r,s){var u=this._ecModel,d=[s.offsetX,s.offsetY],p=VE([s.tooltipOption],this._tooltipModel),v=this._renderMode,g=[],m=pi("section",{blocks:[],noHeader:!0}),y=[],b=new r_;Dl(r,function(P){Dl(P.dataByAxis,function(O){var R=u.getComponent(O.axisDim+"Axis",O.axisIndex),V=O.value;if(R&&null!=V){var B=Ps(V,R.axis,u,O.seriesDataIndices,O.valueLabelOpt),U=pi("section",{header:B,noHeader:!jc(B),sortBlocks:!0,blocks:[]});m.blocks.push(U),q(O.seriesDataIndices,function(j){var X=u.getSeriesByIndex(j.seriesIndex),K=j.dataIndexInside,$=X.getDataParams(K);if(!($.dataIndex<0)){$.axisDim=O.axisDim,$.axisIndex=O.axisIndex,$.axisType=O.axisType,$.axisId=O.axisId,$.axisValue=NT(R.axis,{value:V}),$.axisValueLabel=B,$.marker=b.makeTooltipMarker("item",wf($.color),v);var te=yh(X.formatTooltip(K,!0,null));te.markupFragment&&U.blocks.push(te.markupFragment),te.markupText&&y.push(te.markupText),g.push($)}})}})}),m.blocks.reverse(),y.reverse();var w=s.position,S=p.get("order"),M=cR(m,b,v,S,u.get("useUTC"),p.get("textStyle"));M&&y.unshift(M);var T=y.join("richText"===v?"\n\n":"
");this._showOrMove(p,function(){this._updateContentNotChangedOnAxis(r,g)?this._updatePosition(p,w,d[0],d[1],this._tooltipContent,g):this._showTooltipContent(p,T,g,Math.random()+"",d[0],d[1],w,null,b)})},i.prototype._showSeriesItemTooltip=function(r,s,u){var f=this._ecModel,d=ht(s),p=d.seriesIndex,v=f.getSeriesByIndex(p),g=d.dataModel||v,m=d.dataIndex,y=d.dataType,b=g.getData(y),w=this._renderMode,S=r.positionDefault,M=VE([b.getItemModel(m),g,v&&(v.coordinateSystem||{}).model],this._tooltipModel,S?{position:S}:null),x=M.get("trigger");if(null==x||"item"===x){var T=g.getDataParams(m,y),P=new r_;T.marker=P.makeTooltipMarker("item",wf(T.color),w);var O=yh(g.formatTooltip(m,!1,y)),R=M.get("order"),V=O.markupFragment?cR(O.markupFragment,P,w,R,f.get("useUTC"),M.get("textStyle")):O.markupText,B="item_"+g.name+"_"+m;this._showOrMove(M,function(){this._showTooltipContent(M,V,T,B,r.offsetX,r.offsetY,r.position,r.target,P)}),u({type:"showTip",dataIndexInside:m,dataIndex:b.getRawIndex(m),seriesIndex:p,from:this.uid})}},i.prototype._showComponentItemTooltip=function(r,s,u){var f=ht(s),p=f.tooltipConfig.option||{};yt(p)&&(p={content:p,formatter:p});var g=[p],m=this._ecModel.getComponent(f.componentMainType,f.componentIndex);m&&g.push(m),g.push({formatter:p.content});var y=r.positionDefault,b=VE(g,this._tooltipModel,y?{position:y}:null),w=b.get("content"),S=Math.random()+"",M=new r_;this._showOrMove(b,function(){var x=rt(b.get("formatterParams")||{});this._showTooltipContent(b,w,x,S,r.offsetX,r.offsetY,r.position,s,M)}),u({type:"showTip",from:this.uid})},i.prototype._showTooltipContent=function(r,s,u,f,d,p,v,g,m){if(this._ticket="",r.get("showContent")&&r.get("show")){var y=this._tooltipContent,b=r.get("formatter");v=v||r.get("position");var w=s,M=this._getNearestPoint([d,p],u,r.get("trigger"),r.get("borderColor")).color;if(b)if(yt(b)){var x=r.ecModel.get("useUTC"),T=we(u)?u[0]:u;w=b,T&&T.axisType&&T.axisType.indexOf("time")>=0&&(w=iu(T.axisValue,w,x)),w=Wm(w,u,!0)}else if(An(b)){var O=Bn(function(R,V){R===this._ticket&&(y.setContent(V,m,r,M,v),this._updatePosition(r,v,d,p,y,u,g))},this);this._ticket=f,w=b(u,f,O)}else w=b;y.setContent(w,m,r,M,v),y.show(r,M),this._updatePosition(r,v,d,p,y,u,g)}},i.prototype._getNearestPoint=function(r,s,u,f){return"axis"===u||we(s)?{color:f||("html"===this._renderMode?"#fff":"none")}:we(s)?void 0:{color:f||s.color||s.borderColor}},i.prototype._updatePosition=function(r,s,u,f,d,p,v){var g=this._api.getWidth(),m=this._api.getHeight();s=s||r.get("position");var y=d.getSize(),b=r.get("align"),w=r.get("verticalAlign"),S=v&&v.getBoundingRect().clone();if(v&&S.applyTransform(v.transform),An(s)&&(s=s([u,f],p,d.el,S,{viewSize:[g,m],contentSize:y.slice()})),we(s))u=zn(s[0],g),f=zn(s[1],m);else if(at(s)){var M=s;M.width=y[0],M.height=y[1];var x=li(M,{width:g,height:m});u=x.x,f=x.y,b=null,w=null}else if(yt(s)&&v)u=(T=function(o,i,r,s){var u=r[0],f=r[1],d=Math.ceil(Math.SQRT2*s)+8,p=0,v=0,g=i.width,m=i.height;switch(o){case"inside":p=i.x+g/2-u/2,v=i.y+m/2-f/2;break;case"top":p=i.x+g/2-u/2,v=i.y-f-d;break;case"bottom":p=i.x+g/2-u/2,v=i.y+m+d;break;case"left":p=i.x-u-d,v=i.y+m/2-f/2;break;case"right":p=i.x+g+d,v=i.y+m/2-f/2}return[p,v]}(s,S,y,r.get("borderWidth")))[0],f=T[1];else{var T;u=(T=function(o,i,r,s,u,f,d){var p=r.getSize(),v=p[0],g=p[1];return null!=f&&(o+v+f+2>s?o-=v+f:o+=f),null!=d&&(i+g+d>u?i-=g+d:i+=d),[o,i]}(u,f,d,g,m,b?null:20,w?null:20))[0],f=T[1]}b&&(u-=HE(b)?y[0]/2:"right"===b?y[0]:0),w&&(f-=HE(w)?y[1]/2:"bottom"===w?y[1]:0),EE(r)&&(u=(T=function(o,i,r,s,u){var f=r.getSize(),d=f[0],p=f[1];return o=Math.min(o+d,s)-d,i=Math.min(i+p,u)-p,[o=Math.max(o,0),i=Math.max(i,0)]}(u,f,d,g,m))[0],f=T[1]),d.moveTo(u,f)},i.prototype._updateContentNotChangedOnAxis=function(r,s){var u=this._lastDataByCoordSys,f=this._cbParamsList,d=!!u&&u.length===r.length;return d&&Dl(u,function(p,v){var g=p.dataByAxis||[],y=(r[v]||{}).dataByAxis||[];(d=d&&g.length===y.length)&&Dl(g,function(b,w){var S=y[w]||{},M=b.seriesDataIndices||[],x=S.seriesDataIndices||[];(d=d&&b.value===S.value&&b.axisType===S.axisType&&b.axisId===S.axisId&&M.length===x.length)&&Dl(M,function(T,P){var O=x[P];d=d&&T.seriesIndex===O.seriesIndex&&T.dataIndex===O.dataIndex}),f&&q(b.seriesDataIndices,function(T){var P=T.seriesIndex,O=s[P],R=f[P];O&&R&&R.data!==O.data&&(d=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=s,!!d},i.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},i.prototype.dispose=function(r,s){Ze.node||(this._tooltipContent.dispose(),iE("itemTooltip",s))},i.type="tooltip",i}(un),ud=["rect","polygon","keep","clear"];function tB(o,i){var r=jn(o?o.brush:[]);if(r.length){var s=[];q(r,function(v){var g=v.hasOwnProperty("toolbox")?v.toolbox:[];g instanceof Array&&(s=s.concat(g))});var u=o&&o.toolbox;we(u)&&(u=u[0]),u||(o.toolbox=[u={feature:{}}]);var f=u.feature||(u.feature={}),d=f.brush||(f.brush={}),p=d.type||(d.type=[]);p.push.apply(p,s),function(o){var i={};q(o,function(r){i[r]=1}),o.length=0,q(i,function(r,s){o.push(s)})}(p),i&&!p.length&&p.push.apply(p,ud)}}var oS=q;function sS(o){if(o)for(var i in o)if(o.hasOwnProperty(i))return!0}function Ka(o,i,r){var s={};return oS(i,function(f){var d=s[f]=function(){var f=function(){};return f.prototype.__hidden=f.prototype,new f}();oS(o[f],function(p,v){if(Ji.isValidType(v)){var g={type:v,visual:p};r&&r(g,f),d[v]=new Ji(g),"opacity"===v&&((g=rt(g)).type="colorAlpha",d.__hidden.__alphaForOpacity=new Ji(g))}})}),s}function jE(o,i,r){var s;q(r,function(u){i.hasOwnProperty(u)&&sS(i[u])&&(s=!0)}),s&&q(r,function(u){i.hasOwnProperty(u)&&sS(i[u])?o[u]=rt(i[u]):delete o[u]})}var Q9={lineX:qE(0),lineY:qE(1),rect:{point:function(i,r,s){return i&&s.boundingRect.contain(i[0],i[1])},rect:function(i,r,s){return i&&s.boundingRect.intersect(i)}},polygon:{point:function(i,r,s){return i&&s.boundingRect.contain(i[0],i[1])&&Ph(s.range,i[0],i[1])},rect:function(i,r,s){var u=s.range;if(!i||u.length<=1)return!1;var f=i.x,d=i.y,p=i.width,v=i.height,g=u[0];return!!(Ph(u,f,d)||Ph(u,f+p,d)||Ph(u,f,d+v)||Ph(u,f+p,d+v)||Nt.create(i).contain(g[0],g[1])||v_(f,d,f+p,d,u)||v_(f,d,f,d+v,u)||v_(f+p,d,f+p,d+v,u)||v_(f,d+v,f+p,d+v,u))||void 0}}};function qE(o){var i=["x","y"],r=["width","height"];return{point:function(u,f,d){if(u)return lS(u[o],d.range)},rect:function(u,f,d){if(u){var p=d.range,v=[u[i[o]],u[i[o]]+u[r[o]]];return v[1]r[0][1]&&(r[0][1]=d[0]),d[1]r[1][1]&&(r[1][1]=d[1])}return r&&dS(r)}};function dS(o){return new Nt(o[0][0],o[1][0],o[0][1]-o[0][0],o[1][1]-o[1][0])}var aB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){this.ecModel=r,this.api=s,(this._brushController=new Vy(s.getZr())).on("brush",Ye(this._onBrush,this)).mount()},i.prototype.render=function(r,s,u,f){this.model=r,this._updateController(r,s,u,f)},i.prototype.updateTransform=function(r,s,u,f){cS(s),this._updateController(r,s,u,f)},i.prototype.updateVisual=function(r,s,u,f){this.updateTransform(r,s,u,f)},i.prototype.updateView=function(r,s,u,f){this._updateController(r,s,u,f)},i.prototype._updateController=function(r,s,u,f){(!f||f.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(u)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},i.prototype.dispose=function(){this._brushController.dispose()},i.prototype._onBrush=function(r){var s=this.model.id,u=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:s,areas:rt(u),$from:s}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:s,areas:rt(u),$from:s})},i.type="brush",i}(un);function hS(o,i){return He({brushType:o.brushType,brushMode:o.brushMode,transformable:o.transformable,brushStyle:new Nn(o.brushStyle).getItemStyle(),removeOnClick:o.removeOnClick,z:o.z},i,!0)}var yQ=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.areas=[],r.brushOption={},r}return he(i,o),i.prototype.optionUpdated=function(r,s){var u=this.option;!s&&jE(u,r,["inBrush","outOfBrush"]);var f=u.inBrush=u.inBrush||{};u.outOfBrush=u.outOfBrush||{color:"#ddd"},f.hasOwnProperty("liftZ")||(f.liftZ=5)},i.prototype.setAreas=function(r){!r||(this.areas=Te(r,function(s){return hS(this.option,s)},this))},i.prototype.setBrushOption=function(r){this.brushOption=hS(this.option,r),this.brushType=this.brushOption.brushType},i.type="brush",i.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],i.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},i}(qt),bQ=["rect","polygon","lineX","lineY","keep","clear"],vS=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return he(i,o),i.prototype.render=function(r,s,u){var f,d,p;s.eachComponent({mainType:"brush"},function(v){f=v.brushType,d=v.brushOption.brushMode||"single",p=p||!!v.areas.length}),this._brushType=f,this._brushMode=d,q(r.get("type",!0),function(v){r.setIconStatus(v,("keep"===v?"multiple"===d:"clear"===v?p:v===f)?"emphasis":"normal")})},i.prototype.updateView=function(r,s,u){this.render(r,s,u)},i.prototype.getIcons=function(){var r=this.model,s=r.get("icon",!0),u={};return q(r.get("type",!0),function(f){s[f]&&(u[f]=s[f])}),u},i.prototype.onclick=function(r,s,u){var f=this._brushType,d=this._brushMode;"clear"===u?(s.dispatchAction({type:"axisAreaSelect",intervals:[]}),s.dispatchAction({type:"brush",command:"clear",areas:[]})):s.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===u?f:f!==u&&u,brushMode:"keep"===u?"multiple"===d?"single":"multiple":d}})},i.getDefaultOption=function(r){return{show:!0,type:bQ.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])}},i}(Is),KE=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.layoutMode={type:"box",ignoreSize:!0},r}return he(i,o),i.type="title",i.defaultOption={zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},i}(qt),hp=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.render=function(r,s,u){if(this.group.removeAll(),r.get("show")){var f=this.group,d=r.getModel("textStyle"),p=r.getModel("subtextStyle"),v=r.get("textAlign"),g=ot(r.get("textBaseline"),r.get("textVerticalAlign")),m=new fn({style:Or(d,{text:r.get("text"),fill:d.getTextColor()},{disableBox:!0}),z2:10}),y=m.getBoundingRect(),b=r.get("subtext"),w=new fn({style:Or(p,{text:b,fill:p.getTextColor(),y:y.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),S=r.get("link"),M=r.get("sublink"),x=r.get("triggerEvent",!0);m.silent=!S&&!x,w.silent=!M&&!x,S&&m.on("click",function(){J0(S,"_"+r.get("target"))}),M&&w.on("click",function(){J0(M,"_"+r.get("subtarget"))}),ht(m).eventData=ht(w).eventData=x?{componentType:"title",componentIndex:r.componentIndex}:null,f.add(m),b&&f.add(w);var T=f.getBoundingRect(),P=r.getBoxLayoutParams();P.width=T.width,P.height=T.height;var O=li(P,{width:u.getWidth(),height:u.getHeight()},r.get("padding"));v||("middle"===(v=r.get("left")||r.get("right"))&&(v="center"),"right"===v?O.x+=O.width:"center"===v&&(O.x+=O.width/2)),g||("center"===(g=r.get("top")||r.get("bottom"))&&(g="middle"),"bottom"===g?O.y+=O.height:"middle"===g&&(O.y+=O.height/2),g=g||"top"),f.x=O.x,f.y=O.y,f.markRedraw();var R={align:v,verticalAlign:g};m.setStyle(R),w.setStyle(R),T=f.getBoundingRect();var V=O.margin,B=r.getItemStyle(["color","opacity"]);B.fill=r.get("backgroundColor");var U=new sn({shape:{x:T.x-V[3],y:T.y-V[0],width:T.width+V[1]+V[3],height:T.height+V[0]+V[2],r:r.get("borderRadius")},style:B,subPixelOptimize:!0,silent:!0});f.add(U)}},i.type="title",i}(un),lB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.layoutMode="box",r}return he(i,o),i.prototype.init=function(r,s,u){this.mergeDefaultAndTheme(r,u),this._initData()},i.prototype.mergeOption=function(r){o.prototype.mergeOption.apply(this,arguments),this._initData()},i.prototype.setCurrentIndex=function(r){null==r&&(r=this.option.currentIndex);var s=this._data.count();this.option.loop?r=(r%s+s)%s:(r>=s&&(r=s-1),r<0&&(r=0)),this.option.currentIndex=r},i.prototype.getCurrentIndex=function(){return this.option.currentIndex},i.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},i.prototype.setPlayState=function(r){this.option.autoPlay=!!r},i.prototype.getPlayState=function(){return!!this.option.autoPlay},i.prototype._initData=function(){var d,r=this.option,s=r.data||[],u=r.axisType,f=this._names=[];"category"===u?(d=[],q(s,function(g,m){var b,y=wi(Ee(g),"");at(g)?(b=rt(g)).value=m:b=m,d.push(b),f.push(y)})):d=s,(this._data=new Ga([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[u]||"number"}],this)).initData(d,f)},i.prototype.getData=function(){return this._data},i.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},i.type="timeline",i.defaultOption={zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},i}(qt),pp=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="timeline.slider",i.defaultOption=rh(lB.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),i}(lB);qr(pp,Ke.prototype);var CQ=pp,uB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="timeline",i}(un),Au=function(o){function i(r,s,u,f){var d=o.call(this,r,s,u)||this;return d.type=f||"value",d}return he(i,o),i.prototype.getLabelModel=function(){return this.model.getModel("label")},i.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},i}(_l),Pc=Math.PI,Ig=pn();function ob(o,i,r,s,u,f){var d=i.get("color");u?(u.setColor(d),r.add(u),f&&f.onUpdate(u)):((u=Ir(o.get("symbol"),-1,-1,2,2,d)).setStyle("strokeNoScale",!0),r.add(u),f&&f.onCreate(u));var v=i.getItemStyle(["color"]);u.setStyle(v),s=He({rectHover:!0,z2:100},s,!0);var g=g_(o.get("symbolSize"));s.scaleX=g[0]/2,s.scaleY=g[1]/2;var m=Ah(o.get("symbolOffset"),g);m&&(s.x=(s.x||0)+m[0],s.y=(s.y||0)+m[1]);var y=o.get("symbolRotate");return s.rotation=(y||0)*Math.PI/180||0,u.attr(s),u.updateTransform(),u}function dB(o,i,r,s,u,f){if(!o.dragging){var d=u.getModel("checkpointStyle"),p=s.dataToCoord(u.getData().get("value",r));if(f||!d.get("animation",!0))o.attr({x:p,y:0}),i&&i.attr({shape:{x2:p}});else{var v={duration:d.get("animationDuration",!0),easing:d.get("animationEasing",!0)};o.stopAnimation(null,!0),o.animateTo({x:p,y:0},v),i&&i.animateTo({shape:{x2:p}},v)}}}var JE=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(r,s){this.api=s},i.prototype.render=function(r,s,u){if(this.model=r,this.api=u,this.ecModel=s,this.group.removeAll(),r.get("show",!0)){var f=this._layout(r,u),d=this._createGroup("_mainGroup"),p=this._createGroup("_labelGroup"),v=this._axis=this._createAxis(f,r);r.formatTooltip=function(g){return pi("nameValue",{noName:!0,value:v.scale.getLabel({value:g})})},q(["AxisLine","AxisTick","Control","CurrentPointer"],function(g){this["_render"+g](f,d,v,r)},this),this._renderAxisLabel(f,p,v,r),this._position(f,r)}this._doPlayStop(),this._updateTicksStatus()},i.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},i.prototype.dispose=function(){this._clearTimer()},i.prototype._layout=function(r,s){var p,u=r.get(["label","position"]),f=r.get("orient"),d=function(o,i){return li(o.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()},o.get("padding"))}(r,s),v={horizontal:"center",vertical:(p=null==u||"auto"===u?"horizontal"===f?d.y+d.height/2=0||"+"===p?"left":"right"},g={horizontal:p>=0||"+"===p?"top":"bottom",vertical:"middle"},m={horizontal:0,vertical:Pc/2},y="vertical"===f?d.height:d.width,b=r.getModel("controlStyle"),w=b.get("show",!0),S=w?b.get("itemSize"):0,M=w?b.get("itemGap"):0,x=S+M,T=r.get(["label","rotate"])||0;T=T*Pc/180;var P,O,R,V=b.get("position",!0),B=w&&b.get("showPlayBtn",!0),U=w&&b.get("showPrevBtn",!0),j=w&&b.get("showNextBtn",!0),X=0,K=y;"left"===V||"bottom"===V?(B&&(P=[0,0],X+=x),U&&(O=[X,0],X+=x),j&&(R=[K-S,0],K-=x)):(B&&(P=[K-S,0],K-=x),U&&(O=[0,0],X+=x),j&&(R=[K-S,0],K-=x));var $=[X,K];return r.get("inverse")&&$.reverse(),{viewRect:d,mainLength:y,orient:f,rotation:m[f],labelRotation:T,labelPosOpt:p,labelAlign:r.get(["label","align"])||v[f],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||g[f],playPosition:P,prevBtnPosition:O,nextBtnPosition:R,axisExtent:$,controlSize:S,controlGap:M}},i.prototype._position=function(r,s){var u=this._mainGroup,f=this._labelGroup,d=r.viewRect;if("vertical"===r.orient){var p=[1,0,0,1,0,0],v=d.x,g=d.y+d.height;Oo(p,p,[-v,-g]),Od(p,p,-Pc/2),Oo(p,p,[v,g]),(d=d.clone()).applyTransform(p)}var m=P(d),y=P(u.getBoundingRect()),b=P(f.getBoundingRect()),w=[u.x,u.y],S=[f.x,f.y];S[0]=w[0]=m[0][0];var x,M=r.labelPosOpt;function T(R){R.originX=m[0][0]-R.x,R.originY=m[1][0]-R.y}function P(R){return[[R.x,R.x+R.width],[R.y,R.y+R.height]]}function O(R,V,B,U,j){R[U]+=B[U][j]-V[U][j]}null==M||yt(M)?(O(w,y,m,1,x="+"===M?0:1),O(S,b,m,1,1-x)):(O(w,y,m,1,x=M>=0?0:1),S[1]=w[1]+M),u.setPosition(w),f.setPosition(S),u.rotation=f.rotation=r.rotation,T(u),T(f)},i.prototype._createAxis=function(r,s){var u=s.getData(),f=s.get("axisType"),d=function(o,i){if(i=i||o.get("type"))switch(i){case"category":return new TT({ordinalMeta:o.getCategories(),extent:[1/0,-1/0]});case"time":return new pU({locale:o.ecModel.getLocaleModel(),useUTC:o.ecModel.get("useUTC")});default:return new Vv}}(s,f);d.getTicks=function(){return u.mapArray(["value"],function(g){return{value:g}})};var p=u.getDataExtent("value");d.setExtent(p[0],p[1]),d.niceTicks();var v=new Au("value",d,r.axisExtent,f);return v.model=s,v},i.prototype._createGroup=function(r){var s=this[r]=new ct;return this.group.add(s),s},i.prototype._renderAxisLine=function(r,s,u,f){var d=u.getExtent();if(f.get(["lineStyle","show"])){var p=new Ti({shape:{x1:d[0],y1:0,x2:d[1],y2:0},style:ke({lineCap:"round"},f.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});s.add(p);var v=this._progressLine=new Ti({shape:{x1:d[0],x2:this._currentPointer?this._currentPointer.x:d[0],y1:0,y2:0},style:tt({lineCap:"round",lineWidth:p.style.lineWidth},f.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});s.add(v)}},i.prototype._renderAxisTick=function(r,s,u,f){var d=this,p=f.getData(),v=u.scale.getTicks();this._tickSymbols=[],q(v,function(g){var m=u.dataToCoord(g.value),y=p.getItemModel(g.value),b=y.getModel("itemStyle"),w=y.getModel(["emphasis","itemStyle"]),S=y.getModel(["progress","itemStyle"]),M={x:m,y:0,onclick:Ye(d._changeTimeline,d,g.value)},x=ob(y,b,s,M);x.ensureState("emphasis").style=w.getItemStyle(),x.ensureState("progress").style=S.getItemStyle(),qn(x);var T=ht(x);y.get("tooltip")?(T.dataIndex=g.value,T.dataModel=f):T.dataIndex=T.dataModel=null,d._tickSymbols.push(x)})},i.prototype._renderAxisLabel=function(r,s,u,f){var d=this;if(u.getLabelModel().get("show")){var v=f.getData(),g=u.getViewLabels();this._tickLabels=[],q(g,function(m){var y=m.tickValue,b=v.getItemModel(y),w=b.getModel("label"),S=b.getModel(["emphasis","label"]),M=b.getModel(["progress","label"]),x=u.dataToCoord(m.tickValue),T=new fn({x:x,y:0,rotation:r.labelRotation-r.rotation,onclick:Ye(d._changeTimeline,d,y),silent:!1,style:Or(w,{text:m.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});T.ensureState("emphasis").style=Or(S),T.ensureState("progress").style=Or(M),s.add(T),qn(T),Ig(T).dataIndex=y,d._tickLabels.push(T)})}},i.prototype._renderControl=function(r,s,u,f){var d=r.controlSize,p=r.rotation,v=f.getModel("controlStyle").getItemStyle(),g=f.getModel(["emphasis","controlStyle"]).getItemStyle(),m=f.getPlayState(),y=f.get("inverse",!0);function b(w,S,M,x){if(w){var T=Ro(ot(f.get(["controlStyle",S+"BtnSize"]),d),d),O=function(o,i,r,s){var u=s.style,f=cl(o.get(["controlStyle",i]),s||{},new Nt(r[0],r[1],r[2],r[3]));return u&&f.setStyle(u),f}(f,S+"Icon",[0,-T/2,T,T],{x:w[0],y:w[1],originX:d/2,originY:0,rotation:x?-p:0,rectHover:!0,style:v,onclick:M});O.ensureState("emphasis").style=g,s.add(O),qn(O)}}b(r.nextBtnPosition,"next",Ye(this._changeTimeline,this,y?"-":"+")),b(r.prevBtnPosition,"prev",Ye(this._changeTimeline,this,y?"+":"-")),b(r.playPosition,m?"stop":"play",Ye(this._handlePlayClick,this,!m),!0)},i.prototype._renderCurrentPointer=function(r,s,u,f){var d=f.getData(),p=f.getCurrentIndex(),v=d.getItemModel(p).getModel("checkpointStyle"),g=this;this._currentPointer=ob(v,v,this._mainGroup,{},this._currentPointer,{onCreate:function(b){b.draggable=!0,b.drift=Ye(g._handlePointerDrag,g),b.ondragend=Ye(g._handlePointerDragend,g),dB(b,g._progressLine,p,u,f,!0)},onUpdate:function(b){dB(b,g._progressLine,p,u,f)}})},i.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},i.prototype._handlePointerDrag=function(r,s,u){this._clearTimer(),this._pointerChangeTimeline([u.offsetX,u.offsetY])},i.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},i.prototype._pointerChangeTimeline=function(r,s){var u=this._toAxisCoord(r)[0],d=io(this._axis.getExtent().slice());u>d[1]&&(u=d[1]),u=0&&(d[f]=+d[f].toFixed(b)),[d,y]}var tP={min:St(lb,"min"),max:St(lb,"max"),average:St(lb,"average"),median:St(lb,"median")};function ub(o,i){var r=o.getData(),s=o.coordinateSystem;if(i&&!function(o){return!isNaN(parseFloat(o.x))&&!isNaN(parseFloat(o.y))}(i)&&!we(i.coord)&&s){var u=s.dimensions,f=_B(i,r,s,o);if((i=rt(i)).type&&tP[i.type]&&f.baseAxis&&f.valueAxis){var d=Rt(u,f.baseAxis.dim),p=Rt(u,f.valueAxis.dim),v=tP[i.type](r,f.baseDataDim,f.valueDataDim,d,p);i.coord=v[0],i.value=v[1]}else{for(var g=[null!=i.xAxis?i.xAxis:i.radiusAxis,null!=i.yAxis?i.yAxis:i.angleAxis],m=0;m<2;m++)tP[g[m]]&&(g[m]=nP(r,r.mapDimension(u[m]),g[m]));i.coord=g}}return i}function _B(o,i,r,s){var u={};return null!=o.valueIndex||null!=o.valueDim?(u.valueDataDim=null!=o.valueIndex?i.getDimension(o.valueIndex):o.valueDim,u.valueAxis=r.getAxis(function(o,i){var r=o.getData().getDimensionInfo(i);return r&&r.coordDim}(s,u.valueDataDim)),u.baseAxis=r.getOtherAxis(u.valueAxis),u.baseDataDim=i.mapDimension(u.baseAxis.dim)):(u.baseAxis=s.getBaseAxis(),u.valueAxis=r.getOtherAxis(u.baseAxis),u.baseDataDim=i.mapDimension(u.baseAxis.dim),u.valueDataDim=i.mapDimension(u.valueAxis.dim)),u}function cb(o,i){return!(o&&o.containData&&i.coord&&!function(o){return!(isNaN(parseFloat(o.x))&&isNaN(parseFloat(o.y)))}(i))||o.containData(i.coord)}function fb(o,i,r,s){return s<2?o.coord&&o.coord[s]:o.value}function nP(o,i,r){if("average"===r){var s=0,u=0;return o.each(i,function(f,d){isNaN(f)||(s+=f,u++)}),s/u}return"median"===r?o.getMedian(i):o.getDataExtent(i)["max"===r?1:0]}var Ic=pn(),db=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.init=function(){this.markerGroupMap=et()},i.prototype.render=function(r,s,u){var f=this,d=this.markerGroupMap;d.each(function(p){Ic(p).keep=!1}),s.eachSeries(function(p){var v=Al.getMarkerModelFromSeries(p,f.type);v&&f.renderSeries(p,v,s,u)}),d.each(function(p){!Ic(p).keep&&f.group.remove(p.group)})},i.prototype.markKeep=function(r){Ic(r).keep=!0},i.prototype.blurSeries=function(r){var s=this;q(r,function(u){var f=Al.getMarkerModelFromSeries(u,s.type);f&&f.getData().eachItemGraphicEl(function(p){p&&Lm(p)})})},i.type="marker",i}(un);function CS(o,i,r){var s=i.coordinateSystem;o.each(function(u){var d,f=o.getItemModel(u),p=Fe(f.get("x"),r.getWidth()),v=Fe(f.get("y"),r.getHeight());if(isNaN(p)||isNaN(v)){if(i.getMarkerPosition)d=i.getMarkerPosition(o.getValues(o.dimensions,u));else if(s){var g=o.get(s.dimensions[0],u),m=o.get(s.dimensions[1],u);d=s.dataToPoint([g,m])}}else d=[p,v];isNaN(p)||(d[0]=p),isNaN(v)||(d[1]=v),o.setItemLayout(u,d)})}var uY=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.updateTransform=function(r,s,u){s.eachSeries(function(f){var d=Al.getMarkerModelFromSeries(f,"markPoint");d&&(CS(d.getData(),f,u),this.markerGroupMap.get(f.id).updateLayout())},this)},i.prototype.renderSeries=function(r,s,u,f){var d=r.coordinateSystem,p=r.id,v=r.getData(),g=this.markerGroupMap,m=g.get(p)||g.set(p,new Y_),y=function(o,i,r){var s;s=o?Te(o&&o.dimensions,function(d){return ke(ke({},i.getData().getDimensionInfo(i.getData().mapDimension(d))||{}),{name:d,ordinalMeta:null})}):[{name:"value",type:"float"}];var u=new Ga(s,r),f=Te(r.get("data"),St(ub,i));return o&&(f=Yn(f,St(cb,o))),u.initData(f,null,o?fb:function(d){return d.value}),u}(d,r,s);s.setData(y),CS(s.getData(),r,f),y.each(function(b){var w=y.getItemModel(b),S=w.getShallow("symbol"),M=w.getShallow("symbolSize"),x=w.getShallow("symbolRotate"),T=w.getShallow("symbolOffset"),P=w.getShallow("symbolKeepAspect");if(An(S)||An(M)||An(x)||An(T)){var O=s.getRawValue(b),R=s.getDataParams(b);An(S)&&(S=S(O,R)),An(M)&&(M=M(O,R)),An(x)&&(x=x(O,R)),An(T)&&(T=T(O,R))}var V=w.getModel("itemStyle").getItemStyle(),B=kh(v,"color");V.fill||(V.fill=B),y.setItemVisual(b,{symbol:S,symbolSize:M,symbolRotate:x,symbolOffset:T,symbolKeepAspect:P,style:V})}),m.updateData(y),this.group.add(m.group),y.eachItemGraphicEl(function(b){b.traverse(function(w){ht(w).dataModel=s})}),this.markKeep(m),m.group.silent=s.get("silent")||r.get("silent")},i.type="markPoint",i}(db),yB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.createMarkerModelFromSeries=function(r,s,u){return new i(r,s,u)},i.type="markLine",i.defaultOption={zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},i}(Al),wS=pn(),SS=function(i,r,s,u){var d,f=i.getData();if(we(u))d=u;else{var p=u.type;if("min"===p||"max"===p||"average"===p||"median"===p||null!=u.xAxis||null!=u.yAxis){var v=void 0,g=void 0;if(null!=u.yAxis||null!=u.xAxis)v=r.getAxis(null!=u.yAxis?"y":"x"),g=ni(u.yAxis,u.xAxis);else{var m=_B(u,f,r,i);v=m.valueAxis,g=nP(f,MT(f,m.valueDataDim),p)}var b="x"===v.dim?0:1,w=1-b,S=rt(u),M={coord:[]};S.type=null,S.coord=[],S.coord[w]=-1/0,M.coord[w]=1/0;var x=s.get("precision");x>=0&&"number"==typeof g&&(g=+g.toFixed(Math.min(x,20))),S.coord[b]=M.coord[b]=g,d=[S,M,{type:p,valueIndex:u.valueIndex,value:g}]}else d=[]}var T=[ub(i,d[0]),ub(i,d[1]),ke({},d[2])];return T[2].type=T[2].type||null,He(T[2],T[0]),He(T[2],T[1]),T};function kS(o){return!isNaN(o)&&!isFinite(o)}function iP(o,i,r,s){var u=1-o,f=s.dimensions[o];return kS(i[u])&&kS(r[u])&&i[o]===r[o]&&s.getAxis(f).containData(i[o])}function dY(o,i){if("cartesian2d"===o.type){var r=i[0].coord,s=i[1].coord;if(r&&s&&(iP(1,r,s,o)||iP(0,r,s,o)))return!0}return cb(o,i[0])&&cb(o,i[1])}function MS(o,i,r,s,u){var p,f=s.coordinateSystem,d=o.getItemModel(i),v=Fe(d.get("x"),u.getWidth()),g=Fe(d.get("y"),u.getHeight());if(isNaN(v)||isNaN(g)){if(s.getMarkerPosition)p=s.getMarkerPosition(o.getValues(o.dimensions,i));else{var y=o.get((m=f.dimensions)[0],i),b=o.get(m[1],i);p=f.dataToPoint([y,b])}if(uc(f,"cartesian2d")){var m,w=f.getAxis("x"),S=f.getAxis("y");kS(o.get((m=f.dimensions)[0],i))?p[0]=w.toGlobalCoord(w.getExtent()[r?0:1]):kS(o.get(m[1],i))&&(p[1]=S.toGlobalCoord(S.getExtent()[r?0:1]))}isNaN(v)||(p[0]=v),isNaN(g)||(p[1]=g)}else p=[v,g];o.setItemLayout(i,p)}var aP=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.updateTransform=function(r,s,u){s.eachSeries(function(f){var d=Al.getMarkerModelFromSeries(f,"markLine");if(d){var p=d.getData(),v=wS(d).from,g=wS(d).to;v.each(function(m){MS(v,m,!0,f,u),MS(g,m,!1,f,u)}),p.each(function(m){p.setItemLayout(m,[v.getItemLayout(m),g.getItemLayout(m)])}),this.markerGroupMap.get(f.id).updateLayout()}},this)},i.prototype.renderSeries=function(r,s,u,f){var d=r.coordinateSystem,p=r.id,v=r.getData(),g=this.markerGroupMap,m=g.get(p)||g.set(p,new gN);this.group.add(m.group);var y=function(o,i,r){var s;s=o?Te(o&&o.dimensions,function(g){return ke(ke({},i.getData().getDimensionInfo(i.getData().mapDimension(g))||{}),{name:g,ordinalMeta:null})}):[{name:"value",type:"float"}];var u=new Ga(s,r),f=new Ga(s,r),d=new Ga([],r),p=Te(r.get("data"),St(SS,i,o,r));o&&(p=Yn(p,St(dY,o)));var v=o?fb:function(g){return g.value};return u.initData(Te(p,function(g){return g[0]}),null,v),f.initData(Te(p,function(g){return g[1]}),null,v),d.initData(Te(p,function(g){return g[2]})),d.hasItemOption=!0,{from:u,to:f,line:d}}(d,r,s),b=y.from,w=y.to,S=y.line;wS(s).from=b,wS(s).to=w,s.setData(S);var M=s.get("symbol"),x=s.get("symbolSize"),T=s.get("symbolRotate"),P=s.get("symbolOffset");function O(R,V,B){var U=R.getItemModel(V);MS(R,V,B,r,f);var j=U.getModel("itemStyle").getItemStyle();null==j.fill&&(j.fill=kh(v,"color")),R.setItemVisual(V,{symbolKeepAspect:U.get("symbolKeepAspect"),symbolOffset:ot(U.get("symbolOffset",!0),P[B?0:1]),symbolRotate:ot(U.get("symbolRotate",!0),T[B?0:1]),symbolSize:ot(U.get("symbolSize"),x[B?0:1]),symbol:ot(U.get("symbol",!0),M[B?0:1]),style:j})}we(M)||(M=[M,M]),we(x)||(x=[x,x]),we(T)||(T=[T,T]),we(P)||(P=[P,P]),y.from.each(function(R){O(b,R,!0),O(w,R,!1)}),S.each(function(R){var V=S.getItemModel(R).getModel("lineStyle").getLineStyle();S.setItemLayout(R,[b.getItemLayout(R),w.getItemLayout(R)]),null==V.stroke&&(V.stroke=b.getItemVisual(R,"style").fill),S.setItemVisual(R,{fromSymbolKeepAspect:b.getItemVisual(R,"symbolKeepAspect"),fromSymbolOffset:b.getItemVisual(R,"symbolOffset"),fromSymbolRotate:b.getItemVisual(R,"symbolRotate"),fromSymbolSize:b.getItemVisual(R,"symbolSize"),fromSymbol:b.getItemVisual(R,"symbol"),toSymbolKeepAspect:w.getItemVisual(R,"symbolKeepAspect"),toSymbolOffset:w.getItemVisual(R,"symbolOffset"),toSymbolRotate:w.getItemVisual(R,"symbolRotate"),toSymbolSize:w.getItemVisual(R,"symbolSize"),toSymbol:w.getItemVisual(R,"symbol"),style:V})}),m.updateData(S),y.line.eachItemGraphicEl(function(R,V){R.traverse(function(B){ht(B).dataModel=s})}),this.markKeep(m),m.group.silent=s.get("silent")||r.get("silent")},i.type="markLine",i}(db),vY=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.createMarkerModelFromSeries=function(r,s,u){return new i(r,s,u)},i.type="markArea",i.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},i}(Al),xS=pn(),gY=function(i,r,s,u){var f=ub(i,u[0]),d=ub(i,u[1]),p=f.coord,v=d.coord;p[0]=ni(p[0],-1/0),p[1]=ni(p[1],-1/0),v[0]=ni(v[0],1/0),v[1]=ni(v[1],1/0);var g=Lb([{},f,d]);return g.coord=[f.coord,d.coord],g.x0=f.x,g.y0=f.y,g.x1=d.x,g.y1=d.y,g};function hb(o){return!isNaN(o)&&!isFinite(o)}function TS(o,i,r,s){var u=1-o;return hb(i[u])&&hb(r[u])}function bB(o,i){var r=i.coord[0],s=i.coord[1];return!!(uc(o,"cartesian2d")&&r&&s&&(TS(1,r,s)||TS(0,r,s)))||cb(o,{coord:r,x:i.x0,y:i.y0})||cb(o,{coord:s,x:i.x1,y:i.y1})}function CB(o,i,r,s,u){var p,f=s.coordinateSystem,d=o.getItemModel(i),v=Fe(d.get(r[0]),u.getWidth()),g=Fe(d.get(r[1]),u.getHeight());if(isNaN(v)||isNaN(g)){if(s.getMarkerPosition)p=s.getMarkerPosition(o.getValues(r,i));else{var b=[m=o.get(r[0],i),y=o.get(r[1],i)];f.clampData&&f.clampData(b,b),p=f.dataToPoint(b,!0)}if(uc(f,"cartesian2d")){var w=f.getAxis("x"),S=f.getAxis("y"),m=o.get(r[0],i),y=o.get(r[1],i);hb(m)?p[0]=w.toGlobalCoord(w.getExtent()["x0"===r[0]?0:1]):hb(y)&&(p[1]=S.toGlobalCoord(S.getExtent()["y0"===r[1]?0:1]))}isNaN(v)||(p[0]=v),isNaN(g)||(p[1]=g)}else p=[v,g];return p}var wB=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],yY=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.updateTransform=function(r,s,u){s.eachSeries(function(f){var d=Al.getMarkerModelFromSeries(f,"markArea");if(d){var p=d.getData();p.each(function(v){var g=Te(wB,function(y){return CB(p,v,y,f,u)});p.setItemLayout(v,g),p.getItemGraphicEl(v).setShape("points",g)})}},this)},i.prototype.renderSeries=function(r,s,u,f){var d=r.coordinateSystem,p=r.id,v=r.getData(),g=this.markerGroupMap,m=g.get(p)||g.set(p,{group:new ct});this.group.add(m.group),this.markKeep(m);var y=function(o,i,r){var s,u;o?(s=Te(o&&o.dimensions,function(v){var g=i.getData();return ke(ke({},g.getDimensionInfo(g.mapDimension(v))||{}),{name:v,ordinalMeta:null})}),u=new Ga(Te(["x0","y0","x1","y1"],function(v,g){return{name:v,type:s[g%2].type}}),r)):u=new Ga(s=[{name:"value",type:"float"}],r);var d=Te(r.get("data"),St(gY,i,o,r));return o&&(d=Yn(d,St(bB,o))),u.initData(d,null,o?function(v,g,m,y){return v.coord[Math.floor(y/2)][y%2]}:function(v){return v.value}),u.hasItemOption=!0,u}(d,r,s);s.setData(y),y.each(function(b){var w=Te(wB,function(j){return CB(y,b,j,r,f)}),S=d.getAxis("x").scale,M=d.getAxis("y").scale,x=S.getExtent(),T=M.getExtent(),P=[S.parse(y.get("x0",b)),S.parse(y.get("x1",b))],O=[M.parse(y.get("y0",b)),M.parse(y.get("y1",b))];io(P),io(O),y.setItemLayout(b,{points:w,allClipped:!!(x[0]>P[1]||x[1]O[1]||T[1]=0},i.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},i.type="legend.plain",i.dependencies=["series"],i.defaultOption={zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",decal:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},i}(qt),Rg=St,oP=q,pb=ct;function sP(o,i,r,s){vb(o,i,r,s),r.dispatchAction({type:"legendToggleSelect",name:null!=o?o:i}),Co(o,i,r,s)}function kB(o){for(var r,i=o.getZr().storage.getDisplayList(),s=0,u=i.length;s0?2:0:g[b]=w}var S=i.getModel("lineStyle"),M=q0.concat([["inactiveColor"],["inactiveWidth"]]),x={};for(m=0;m0?2:0:x[b]=w}if("auto"===g.fill&&(g.fill=u.fill),"auto"===g.stroke&&(g.stroke=u.fill),"auto"===x.stroke&&(x.stroke=u.fill),!d){var T=i.get("inactiveBorderWidth"),P=g[o.indexOf("empty")>-1?"fill":"stroke"];g.lineWidth="auto"===T?u.lineWidth>0&&P?2:0:g.lineWidth,g.fill=i.get("inactiveColor"),g.stroke=i.get("inactiveBorderColor"),x.stroke=r.get("inactiveColor"),x.lineWidth=r.get("inactiveWidth")}return{itemStyle:g,lineStyle:x}}(m=T||m||"roundRect",f,d.getModel("lineStyle"),v,g,b,M),R=new pb,V=f.getModel("textStyle");if("function"!=typeof r.getLegendIcon||T&&"inherit"!==T){var B="inherit"===T&&r.getData().getVisual("symbol")?"inherit"===x?r.getData().getVisual("symbolRotate"):x:0;R.add(function(o){var i=o.icon||"roundRect",r=Ir(i,0,0,o.itemWidth,o.itemHeight,o.itemStyle.fill);return r.setStyle(o.itemStyle),r.rotation=(o.iconRotate||0)*Math.PI/180,r.setOrigin([o.itemWidth/2,o.itemHeight/2]),i.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}({itemWidth:w,itemHeight:S,icon:m,iconRotate:B,itemStyle:O.itemStyle,lineStyle:O.lineStyle}))}else R.add(r.getLegendIcon({itemWidth:w,itemHeight:S,icon:m,iconRotate:x,itemStyle:O.itemStyle,lineStyle:O.lineStyle}));var U="left"===p?w+5:-5,j=p,X=d.get("formatter"),K=s;"string"==typeof X&&X?K=X.replace("{name}",null!=s?s:""):"function"==typeof X&&(K=X(s));var $=f.get("inactiveColor");R.add(new fn({style:Or(V,{text:K,x:U,y:S/2,fill:M?V.getTextColor():$,align:j,verticalAlign:"middle"})}));var te=new sn({shape:R.getBoundingRect(),invisible:!0}),ee=f.getModel("tooltip");return ee.get("show")&&Av({el:te,componentModel:d,itemName:s,itemTooltipOption:ee.option}),R.add(te),R.eachChild(function(le){le.silent=!0}),te.silent=!y,this.getContentGroup().add(R),qn(R),R.__legendDataIndex=u,R},i.prototype.layoutInner=function(r,s,u,f,d,p){var v=this.getContentGroup(),g=this.getSelectorGroup();Sf(r.get("orient"),v,r.get("itemGap"),u.width,u.height);var m=v.getBoundingRect(),y=[-m.x,-m.y];if(g.markRedraw(),v.markRedraw(),d){Sf("horizontal",g,r.get("selectorItemGap",!0));var b=g.getBoundingRect(),w=[-b.x,-b.y],S=r.get("selectorButtonGap",!0),M=r.getOrient().index,x=0===M?"width":"height",T=0===M?"height":"width",P=0===M?"y":"x";"end"===p?w[M]+=m[x]+S:y[M]+=b[x]+S,w[1-M]+=m[T]/2-b[T]/2,g.x=w[0],g.y=w[1],v.x=y[0],v.y=y[1];var O={x:0,y:0};return O[x]=m[x]+S+b[x],O[T]=Math.max(m[T],b[T]),O[P]=Math.min(0,b[P]+w[1-M]),O}return v.x=y[0],v.y=y[1],this.group.getBoundingRect()},i.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},i.type="legend.plain",i}(un);function lP(o){var i=o.findComponents({mainType:"legend"});i&&i.length&&o.filterSeries(function(r){for(var s=0;su[d],x=[-w.x,-w.y];s||(x[f]=m[g]);var T=[0,0],P=[-S.x,-S.y],O=ot(r.get("pageButtonGap",!0),r.get("itemGap",!0));M&&("end"===r.get("pageButtonPosition",!0)?P[f]+=u[d]-S[d]:T[f]+=S[d]+O),P[1-f]+=w[p]/2-S[p]/2,m.setPosition(x),y.setPosition(T),b.setPosition(P);var V={x:0,y:0};if(V[d]=M?u[d]:w[d],V[p]=Math.max(w[p],S[p]),V[v]=Math.min(0,S[v]+P[1-f]),y.__rectSize=u[d],M){var B={x:0,y:0};B[d]=Math.max(u[d]-S[d]-O,0),B[p]=V[p],y.setClipPath(new sn({shape:B})),y.__rectSize=B[d]}else b.eachChild(function(j){j.attr({invisible:!0,silent:!0})});var U=this._getPageInfo(r);return null!=U.pageIndex&&ln(m,{x:U.contentPosition[0],y:U.contentPosition[1]},M?r:null),this._updatePageInfoView(r,U),V},i.prototype._pageGo=function(r,s,u){var f=this._getPageInfo(s)[r];null!=f&&u.dispatchAction({type:"legendScroll",scrollDataIndex:f,legendId:s.id})},i.prototype._updatePageInfoView=function(r,s){var u=this._controllerGroup;q(["pagePrev","pageNext"],function(m){var b=null!=s[m+"DataIndex"],w=u.childOfName(m);w&&(w.setStyle("fill",r.get(b?"pageIconColor":"pageIconInactiveColor",!0)),w.cursor=b?"pointer":"default")});var f=u.childOfName("pageText"),d=r.get("pageFormatter"),p=s.pageIndex,v=null!=p?p+1:0,g=s.pageCount;f&&d&&f.setStyle("text",yt(d)?d.replace("{current}",null==v?"":v+"").replace("{total}",null==g?"":g+""):d({current:v,total:g}))},i.prototype._getPageInfo=function(r){var s=r.get("scrollDataIndex",!0),u=this.getContentGroup(),f=this._containerGroup.__rectSize,d=r.getOrient().index,p=PS[d],v=OS[d],g=this._findTargetItemIndex(s),m=u.children(),y=m[g],b=m.length,w=b?1:0,S={contentPosition:[u.x,u.y],pageCount:w,pageIndex:w-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!y)return S;var M=R(y);S.contentPosition[d]=-M.s;for(var x=g+1,T=M,P=M,O=null;x<=b;++x)(!(O=R(m[x]))&&P.e>T.s+f||O&&!V(O,T.s))&&(T=P.i>T.i?P:O)&&(null==S.pageNextDataIndex&&(S.pageNextDataIndex=T.i),++S.pageCount),P=O;for(x=g-1,T=M,P=M,O=null;x>=-1;--x)(!(O=R(m[x]))||!V(P,O.s))&&T.i=U&&B.s<=U+f}},i.prototype._findTargetItemIndex=function(r){return this._showController?(this.getContentGroup().eachChild(function(d,p){var v=d.__legendDataIndex;null==f&&null!=v&&(f=p),v===r&&(s=p)}),null!=s?s:f):0;var s,f},i.type="legend.scroll",i}(Lg);function Rs(o){Ot(AS),o.registerComponentModel(ES),o.registerComponentView(IS),function(o){o.registerAction("legendScroll","legendscroll",function(i,r){var s=i.scrollDataIndex;null!=s&&r.eachComponent({mainType:"legend",subType:"scroll",query:i},function(u){u.setScrollDataIndex(s)})})}(o)}var DY=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="dataZoom.inside",i.defaultOption=rh(eS.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),i}(eS),RS=pn();function AY(o,i,r){RS(o).coordSysRecordMap.each(function(s){var u=s.dataZoomInfoMap.get(i.uid);u&&(u.getRange=r)})}function mb(o,i){if(i){o.removeKey(i.model.uid);var r=i.controller;r&&r.dispose()}}function EY(o,i){o.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:i})}function uP(o,i,r,s){return o.coordinateSystem.containPoint([r,s])}var EB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return he(i,o),i.prototype.render=function(r,s,u){o.prototype.render.apply(this,arguments),r.noTarget()?this._clear():(this.range=r.getPercentRange(),AY(u,r,{pan:Ye(LS.pan,this),zoom:Ye(LS.zoom,this),scrollMove:Ye(LS.scrollMove,this)}))},i.prototype.dispose=function(){this._clear(),o.prototype.dispose.apply(this,arguments)},i.prototype._clear=function(){(function(o,i){for(var r=RS(o).coordSysRecordMap,s=r.keys(),u=0;u0?v.pixelStart+v.pixelLength-v.pixel:v.pixel-v.pixelStart)/v.pixelLength*(d[1]-d[0])+d[0],m=Math.max(1/u.scale,0);d[0]=(d[0]-g)*m+g,d[1]=(d[1]-g)*m+g;var y=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(kl(0,d,[0,100],0,y.minSpan,y.maxSpan),this.range=d,f[0]!==d[0]||f[1]!==d[1])return d}},pan:PB(function(o,i,r,s,u,f){var d=cP[s]([f.oldX,f.oldY],[f.newX,f.newY],i,u,r);return d.signal*(o[1]-o[0])*d.pixel/d.pixelLength}),scrollMove:PB(function(o,i,r,s,u,f){return cP[s]([0,0],[f.scrollDelta,f.scrollDelta],i,u,r).signal*(o[1]-o[0])*f.scrollDelta})};function PB(o){return function(i,r,s,u){var f=this.range,d=f.slice(),p=i.axisModels[0];if(p&&(kl(o(d,p,i,r,s,u),d,[0,100],"all"),this.range=d,f[0]!==d[0]||f[1]!==d[1]))return d}}var cP={grid:function(i,r,s,u,f){var d=s.axis,p={},v=f.model.coordinateSystem.getRect();return i=i||[0,0],"x"===d.dim?(p.pixel=r[0]-i[0],p.pixelLength=v.width,p.pixelStart=v.x,p.signal=d.inverse?1:-1):(p.pixel=r[1]-i[1],p.pixelLength=v.height,p.pixelStart=v.y,p.signal=d.inverse?-1:1),p},polar:function(i,r,s,u,f){var d=s.axis,p={},v=f.model.coordinateSystem,g=v.getRadiusAxis().getExtent(),m=v.getAngleAxis().getExtent();return i=i?v.pointToCoord(i):[0,0],r=v.pointToCoord(r),"radiusAxis"===s.mainType?(p.pixel=r[0]-i[0],p.pixelLength=g[1]-g[0],p.pixelStart=g[0],p.signal=d.inverse?1:-1):(p.pixel=r[1]-i[1],p.pixelLength=m[1]-m[0],p.pixelStart=m[0],p.signal=d.inverse?-1:1),p},singleAxis:function(i,r,s,u,f){var d=s.axis,p=f.model.coordinateSystem.getRect(),v={};return i=i||[0,0],"horizontal"===d.orient?(v.pixel=r[0]-i[0],v.pixelLength=p.width,v.pixelStart=p.x,v.signal=d.inverse?1:-1):(v.pixel=r[1]-i[1],v.pixelLength=p.height,v.pixelStart=p.y,v.signal=d.inverse?-1:1),v}},OB=EB;function IB(o){vE(o),o.registerComponentModel(DY),o.registerComponentView(OB),function(o){o.registerProcessor(o.PRIORITY.PROCESSOR.FILTER,function(i,r){var s=RS(r),u=s.coordSysRecordMap||(s.coordSysRecordMap=et());u.each(function(f){f.dataZoomInfoMap=null}),i.eachComponent({mainType:"dataZoom",subType:"inside"},function(f){q(MV(f).infoList,function(p){var v=p.model.uid,g=u.get(v)||u.set(v,function(o,i){var r={model:i,containsPoint:St(uP,i),dispatchAction:St(EY,o),dataZoomInfoMap:null,controller:null},s=r.controller=new hy(o.getZr());return q(["pan","zoom","scrollMove"],function(u){s.on(u,function(f){var d=[];r.dataZoomInfoMap.each(function(p){if(f.isAvailableBehavior(p.model.option)){var v=(p.getRange||{})[u],g=v&&v(p.dzReferCoordSysInfo,r.model.mainType,r.controller,f);!p.model.get("disabled",!0)&&g&&d.push({dataZoomId:p.model.id,start:g[0],end:g[1]})}}),d.length&&r.dispatchAction(d)})}),r}(r,p.model));(g.dataZoomInfoMap||(g.dataZoomInfoMap=et())).set(f.uid,{dzReferCoordSysInfo:p,model:f,getRange:null})})}),u.each(function(f){var p,d=f.controller,v=f.dataZoomInfoMap;if(v){var g=v.keys()[0];null!=g&&(p=v.get(g))}if(p){var m=function(o){var i,r="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},u=!0;return o.each(function(f){var d=f.model,p=!d.get("disabled",!0)&&(!d.get("zoomLock",!0)||"move");s[r+p]>s[r+i]&&(i=p),u=u&&d.get("preventDefaultMouseMove",!0)}),{controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!u}}}(v);d.enable(m.controlType,m.opt),d.setPointerChecker(f.containsPoint),il(f,"dispatchAction",p.model.get("throttle",!0),"fixRate")}else mb(u,f)})})}(o)}var RB=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.type="dataZoom.slider",i.layoutMode="box",i.defaultOption=rh(eS.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),i}(eS),vp=sn,yb="horizontal",LB="vertical",LY=["line","bar","candlestick","scatter"],FY={easing:"cubicOut",duration:100,delay:0};function BB(o){return"vertical"===o?"ns-resize":"ew-resize"}var NY=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._displayables={},r}return he(i,o),i.prototype.init=function(r,s){this.api=s,this._onBrush=Ye(this._onBrush,this),this._onBrushEnd=Ye(this._onBrushEnd,this)},i.prototype.render=function(r,s,u,f){if(o.prototype.render.apply(this,arguments),il(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),!1!==r.get("show"))return r.noTarget()?(this._clear(),void this.group.removeAll()):((!f||"dataZoom"!==f.type||f.from!==this.uid)&&this._buildView(),void this._updateView());this.group.removeAll()},i.prototype.dispose=function(){this._clear(),o.prototype.dispose.apply(this,arguments)},i.prototype._clear=function(){!function(o,i){var r=o[i];r&&r[J]&&(o[i]=r[J])}(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},i.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var s=this._displayables.sliderGroup=new ct;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(s),this._positionGroup()},i.prototype._resetLocation=function(){var r=this.dataZoomModel,s=this.api,f=r.get("brushSelect")?7:0,d=this._findCoordRect(),p={width:s.getWidth(),height:s.getHeight()},v=this._orient===yb?{right:p.width-d.x-d.width,top:p.height-30-7-f,width:d.width,height:30}:{right:7,top:d.y,width:30,height:d.height},g=av(r.option);q(["right","top","width","height"],function(y){"ph"===g[y]&&(g[y]=v[y])});var m=li(g,p);this._location={x:m.x,y:m.y},this._size=[m.width,m.height],this._orient===LB&&this._size.reverse()},i.prototype._positionGroup=function(){var r=this.group,s=this._location,u=this._orient,f=this.dataZoomModel.getFirstTargetAxisModel(),d=f&&f.get("inverse"),p=this._displayables.sliderGroup,v=(this._dataShadowInfo||{}).otherAxisInverse;p.attr(u!==yb||d?u===yb&&d?{scaleY:v?1:-1,scaleX:-1}:u!==LB||d?{scaleY:v?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:v?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:v?1:-1,scaleX:1});var g=r.getBoundingRect([p]);r.x=s.x-g.x,r.y=s.y-g.y,r.markRedraw()},i.prototype._getViewExtent=function(){return[0,this._size[0]]},i.prototype._renderBackground=function(){var r=this.dataZoomModel,s=this._size,u=this._displayables.sliderGroup,f=r.get("brushSelect");u.add(new vp({silent:!0,shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var d=new vp({shape:{x:0,y:0,width:s[0],height:s[1]},style:{fill:"transparent"},z2:0,onclick:Ye(this._onClickPanel,this)}),p=this.api.getZr();f?(d.on("mousedown",this._onBrushStart,this),d.cursor="crosshair",p.on("mousemove",this._onBrush),p.on("mouseup",this._onBrushEnd)):(p.off("mousemove",this._onBrush),p.off("mouseup",this._onBrushEnd)),u.add(d)},i.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],r){var s=this._size,u=r.series,f=u.getRawData(),d=u.getShadowDim?u.getShadowDim():r.otherDim;if(null!=d){var p=f.getDataExtent(d),v=.3*(p[1]-p[0]);p=[p[0]-v,p[1]+v];var x,g=[0,s[1]],y=[[s[0],0],[0,0]],b=[],w=s[0]/(f.count()-1),S=0,M=Math.round(f.count()/s[0]);f.each([d],function(V,B){if(M>0&&B%M)S+=w;else{var U=null==V||isNaN(V)||""===V,j=U?0:bn(V,p,g,!0);U&&!x&&B?(y.push([y[y.length-1][0],0]),b.push([b[b.length-1][0],0])):!U&&x&&(y.push([S,0]),b.push([S,0])),y.push([S,j]),b.push([S,j]),S+=w,x=U}});for(var B,U,j,X,T=this.dataZoomModel,O=0;O<3;O++){var R=(B=void 0,U=void 0,void 0,void 0,B=T.getModel(1===O?"selectedDataBackground":"dataBackground"),U=new ct,j=new ba({shape:{points:y},segmentIgnoreThreshold:1,style:B.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),X=new Cr({shape:{points:b},segmentIgnoreThreshold:1,style:B.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),U.add(j),U.add(X),U);this._displayables.sliderGroup.add(R),this._displayables.dataShadowSegs.push(R)}}}},i.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,s=r.get("showDataShadow");if(!1!==s){var u,f=this.ecModel;return r.eachTargetAxis(function(d,p){q(r.getAxisProxy(d,p).getTargetSeriesModels(),function(g){if(!(u||!0!==s&&Rt(LY,g.get("type"))<0)){var b,m=f.getComponent(Dc(d),p).axis,y=function(o){return{x:"y",y:"x",radius:"angle",angle:"radius"}[o]}(d),w=g.coordinateSystem;null!=y&&w.getOtherAxis&&(b=w.getOtherAxis(m).inverse),y=g.getData().mapDimension(y),u={thisAxis:m,series:g,thisDim:d,otherDim:y,otherAxisInverse:b}}},this)},this),u}},i.prototype._renderHandle=function(){var r=this.group,s=this._displayables,u=s.handles=[null,null],f=s.handleLabels=[null,null],d=this._displayables.sliderGroup,p=this._size,v=this.dataZoomModel,g=this.api,m=v.get("borderRadius")||0,y=v.get("brushSelect"),b=s.filler=new vp({silent:y,style:{fill:v.get("fillerColor")},textConfig:{position:"inside"}});d.add(b),d.add(new vp({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:p[0],height:p[1],r:m},style:{stroke:v.get("dataBackgroundColor")||v.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),q([0,1],function(O){var R=v.get("handleIcon");!EC[R]&&R.indexOf("path://")<0&&R.indexOf("image://")<0&&(R="path://"+R);var V=Ir(R,-1,0,2,2,null,!0);V.attr({cursor:BB(this._orient),draggable:!0,drift:Ye(this._onDragMove,this,O),ondragend:Ye(this._onDragEnd,this),onmouseover:Ye(this._showDataInfo,this,!0),onmouseout:Ye(this._showDataInfo,this,!1),z2:5});var B=V.getBoundingRect(),U=v.get("handleSize");this._handleHeight=Fe(U,this._size[1]),this._handleWidth=B.width/B.height*this._handleHeight,V.setStyle(v.getModel("handleStyle").getItemStyle()),V.style.strokeNoScale=!0,V.rectHover=!0,V.ensureState("emphasis").style=v.getModel(["emphasis","handleStyle"]).getItemStyle(),qn(V);var j=v.get("handleColor");null!=j&&(V.style.fill=j),d.add(u[O]=V);var X=v.getModel("textStyle");r.add(f[O]=new fn({silent:!0,invisible:!0,style:Or(X,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:X.getTextColor(),font:X.getFont()}),z2:10}))},this);var w=b;if(y){var S=Fe(v.get("moveHandleSize"),p[1]),M=s.moveHandle=new sn({style:v.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:p[1]-.5,height:S}}),x=.8*S,T=s.moveHandleIcon=Ir(v.get("moveHandleIcon"),-x/2,-x/2,x,x,"#fff",!0);T.silent=!0,T.y=p[1]+S/2-.5,M.ensureState("emphasis").style=v.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var P=Math.min(p[1]/2,Math.max(S,10));(w=s.moveZone=new sn({invisible:!0,shape:{y:p[1]-P,height:S+P}})).on("mouseover",function(){g.enterEmphasis(M)}).on("mouseout",function(){g.leaveEmphasis(M)}),d.add(M),d.add(T),d.add(w)}w.attr({draggable:!0,cursor:BB(this._orient),drift:Ye(this._onDragMove,this,"all"),ondragstart:Ye(this._showDataInfo,this,!0),ondragend:Ye(this._onDragEnd,this),onmouseover:Ye(this._showDataInfo,this,!0),onmouseout:Ye(this._showDataInfo,this,!1)})},i.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),s=this._getViewExtent();this._handleEnds=[bn(r[0],[0,100],s,!0),bn(r[1],[0,100],s,!0)]},i.prototype._updateInterval=function(r,s){var u=this.dataZoomModel,f=this._handleEnds,d=this._getViewExtent(),p=u.findRepresentativeAxisProxy().getMinMaxSpan(),v=[0,100];kl(s,f,d,u.get("zoomLock")?"all":r,null!=p.minSpan?bn(p.minSpan,v,d,!0):null,null!=p.maxSpan?bn(p.maxSpan,v,d,!0):null);var g=this._range,m=this._range=io([bn(f[0],d,v,!0),bn(f[1],d,v,!0)]);return!g||g[0]!==m[0]||g[1]!==m[1]},i.prototype._updateView=function(r){var s=this._displayables,u=this._handleEnds,f=io(u.slice()),d=this._size;q([0,1],function(w){var M=this._handleHeight;s.handles[w].attr({scaleX:M/2,scaleY:M/2,x:u[w]+(w?-1:1),y:d[1]/2-M/2})},this),s.filler.setShape({x:f[0],y:0,width:f[1]-f[0],height:d[1]});var p={x:f[0],width:f[1]-f[0]};s.moveHandle&&(s.moveHandle.setShape(p),s.moveZone.setShape(p),s.moveZone.getBoundingRect(),s.moveHandleIcon&&s.moveHandleIcon.attr("x",p.x+p.width/2));for(var v=s.dataShadowSegs,g=[0,f[0],f[1],d[0]],m=0;ms[0]||u[1]<0||u[1]>s[1])){var f=this._handleEnds,p=this._updateInterval("all",u[0]-(f[0]+f[1])/2);this._updateView(),p&&this._dispatchZoomAction(!1)}},i.prototype._onBrushStart=function(r){this._brushStart=new Tt(r.offsetX,r.offsetY),this._brushing=!0,this._brushStartTime=+new Date},i.prototype._onBrushEnd=function(r){if(this._brushing){var s=this._displayables.brushRect;if(this._brushing=!1,s){s.attr("ignore",!0);var u=s.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(u.width)<5)){var d=this._getViewExtent(),p=[0,100];this._range=io([bn(u.x,d,p,!0),bn(u.x+u.width,d,p,!0)]),this._handleEnds=[u.x,u.x+u.width],this._updateView(),this._dispatchZoomAction(!1)}}}},i.prototype._onBrush=function(r){this._brushing&&(Vl(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},i.prototype._updateBrushRect=function(r,s){var u=this._displayables,d=u.brushRect;d||(d=u.brushRect=new vp({silent:!0,style:this.dataZoomModel.getModel("brushStyle").getItemStyle()}),u.sliderGroup.add(d)),d.attr("ignore",!1);var p=this._brushStart,v=this._displayables.sliderGroup,g=v.transformCoordToLocal(r,s),m=v.transformCoordToLocal(p.x,p.y),y=this._size;g[0]=Math.max(Math.min(y[0],g[0]),0),d.setShape({x:m[0],y:0,width:g[0]-m[0],height:y[1]})},i.prototype._dispatchZoomAction=function(r){var s=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?FY:null,start:s[0],end:s[1]})},i.prototype._findCoordRect=function(){var r,s=MV(this.dataZoomModel).infoList;if(!r&&s.length){var u=s[0].model.coordinateSystem;r=u.getRect&&u.getRect()}if(!r){var f=this.api.getWidth(),d=this.api.getHeight();r={x:.2*f,y:.2*d,width:.6*f,height:.6*d}}return r},i.type="dataZoom.slider",i}(Tu);function HB(o){o.registerComponentModel(RB),o.registerComponentView(NY),vE(o)}var MQ={get:function(i,r,s){var u=rt((UB[i]||{})[r]);return s&&we(u)?u[u.length-1]:u}},UB={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},GB=MQ,jB=Ji.mapVisual,WB=Ji.eachVisual,VY=we,YB=q,BY=io,qB=bn,bb=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return he(i,o),i.prototype.init=function(r,s,u){this.mergeDefaultAndTheme(r,u)},i.prototype.optionUpdated=function(r,s){var u=this.option;Ze.canvasSupported||(u.realtime=!1),!s&&jE(u,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},i.prototype.resetVisual=function(r){var s=this.stateList;r=Ye(r,this),this.controllerVisuals=Ka(this.option.controller,s,r),this.targetVisuals=Ka(this.option.target,s,r)},i.prototype.getItemSymbol=function(){return null},i.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,s=[];return null==r||"all"===r?this.ecModel.eachSeries(function(u,f){s.push(f)}):s=jn(r),s},i.prototype.eachTargetSeries=function(r,s){q(this.getTargetSeriesIndices(),function(u){var f=this.ecModel.getSeriesByIndex(u);f&&r.call(s,f)},this)},i.prototype.isTargetSeries=function(r){var s=!1;return this.eachTargetSeries(function(u){u===r&&(s=!0)}),s},i.prototype.formatValueText=function(r,s,u){var g,f=this.option,d=f.precision,p=this.dataBound,v=f.formatter;u=u||["<",">"],we(r)&&(r=r.slice(),g=!0);var m=s?r:g?[y(r[0]),y(r[1])]:y(r);return yt(v)?v.replace("{value}",g?m[0]:m).replace("{value2}",g?m[1]:m):An(v)?g?v(r[0],r[1]):v(r):g?r[0]===p[0]?u[0]+" "+m[1]:r[1]===p[1]?u[1]+" "+m[0]:m[0]+" - "+m[1]:m;function y(b){return b===p[0]?"min":b===p[1]?"max":(+b).toFixed(Math.min(d,20))}},i.prototype.resetExtent=function(){var r=this.option,s=BY([r.min,r.max]);this._dataExtent=s},i.prototype.getDataDimensionIndex=function(r){var s=this.option.dimension;if(null!=s)return r.getDimensionIndex(s);for(var u=r.dimensions,f=u.length-1;f>=0;f--){var p=r.getDimensionInfo(u[f]);if(!p.isCalculationCoord)return p.storeDimIndex}},i.prototype.getExtent=function(){return this._dataExtent.slice()},i.prototype.completeVisualOption=function(){var r=this.ecModel,s=this.option,u={inRange:s.inRange,outOfRange:s.outOfRange},f=s.target||(s.target={}),d=s.controller||(s.controller={});He(f,u),He(d,u);var p=this.isCategory();function v(y){VY(s.color)&&!y.inRange&&(y.inRange={color:s.color.slice().reverse()}),y.inRange=y.inRange||{color:r.get("gradientColor")}}v.call(this,f),v.call(this,d),function(y,b,w){var S=y[b],M=y[w];S&&!M&&(M=y[w]={},YB(S,function(x,T){if(Ji.isValidType(T)){var P=GB.get(T,"inactive",p);null!=P&&(M[T]=P,"color"===T&&!M.hasOwnProperty("opacity")&&!M.hasOwnProperty("colorAlpha")&&(M.opacity=[0,0]))}}))}.call(this,f,"inRange","outOfRange"),function(y){var b=(y.inRange||{}).symbol||(y.outOfRange||{}).symbol,w=(y.inRange||{}).symbolSize||(y.outOfRange||{}).symbolSize,S=this.get("inactiveColor"),x=this.getItemSymbol()||"roundRect";YB(this.stateList,function(T){var P=this.itemSize,O=y[T];O||(O=y[T]={color:p?S:[S]}),null==O.symbol&&(O.symbol=b&&rt(b)||(p?x:[x])),null==O.symbolSize&&(O.symbolSize=w&&rt(w)||(p?P[0]:[P[0],P[0]])),O.symbol=jB(O.symbol,function(B){return"none"===B?x:B});var R=O.symbolSize;if(null!=R){var V=-1/0;WB(R,function(B){B>V&&(V=B)}),O.symbolSize=jB(R,function(B){return qB(B,[0,V],[0,P[0]],!0)})}},this)}.call(this,d)},i.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},i.prototype.isCategory=function(){return!!this.option.categories},i.prototype.setSelected=function(r){},i.prototype.getSelected=function(){return null},i.prototype.getValueState=function(r){return null},i.prototype.getVisualMeta=function(r){return null},i.type="visualMap",i.dependencies=["series"],i.defaultOption={show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},i}(qt),XB=[20,140];function KB(o,i,r){if(r[0]===r[1])return r.slice();for(var u=(r[1]-r[0])/200,f=r[0],d=[],p=0;p<=200&&fs[1]&&s.reverse(),s[0]=Math.max(s[0],r[0]),s[1]=Math.min(s[1],r[1]))},i.prototype.completeVisualOption=function(){o.prototype.completeVisualOption.apply(this,arguments),q(this.stateList,function(r){var s=this.option.controller[r].symbolSize;s&&s[0]!==s[1]&&(s[0]=s[1]/3)},this)},i.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},i.prototype.getSelected=function(){var r=this.getExtent(),s=io((this.get("range")||[]).slice());return s[0]>r[1]&&(s[0]=r[1]),s[1]>r[1]&&(s[1]=r[1]),s[0]=u[1]||r<=s[1])?"inRange":"outOfRange"},i.prototype.findTargetDataIndices=function(r){var s=[];return this.eachTargetSeries(function(u){var f=[],d=u.getData();d.each(this.getDataDimensionIndex(d),function(p,v){r[0]<=p&&p<=r[1]&&f.push(v)},this),s.push({seriesId:u.id,dataIndex:f})},this),s},i.prototype.getVisualMeta=function(r){var s=KB(0,0,this.getExtent()),u=KB(0,0,this.option.range.slice()),f=[];function d(w,S){f.push({value:w,color:r(w,S)})}for(var p=0,v=0,g=u.length,m=s.length;vr[1])break;f.push({color:this.getControllerVisual(v,"color",s),offset:p/100})}return f.push({color:this.getControllerVisual(r[1],"color",s),offset:1}),f},i.prototype._createBarPoints=function(r,s){var u=this.visualMapModel.itemSize;return[[u[0]-s[0],r[0]],[u[0],r[0]],[u[0],r[1]],[u[0]-s[1],r[1]]]},i.prototype._createBarGroup=function(r){var s=this._orient,u=this.visualMapModel.get("inverse");return new ct("horizontal"!==s||u?"horizontal"===s&&u?{scaleX:"bottom"===r?-1:1,rotation:-Math.PI/2}:"vertical"!==s||u?{scaleX:"left"===r?1:-1}:{scaleX:"left"===r?1:-1,scaleY:-1}:{scaleX:"bottom"===r?1:-1,rotation:Math.PI/2})},i.prototype._updateHandle=function(r,s){if(this._useHandle){var u=this._shapes,f=this.visualMapModel,d=u.handleThumbs,p=u.handleLabels,v=f.itemSize,g=f.getExtent();e5([0,1],function(m){var y=d[m];y.setStyle("fill",s.handlesColor[m]),y.y=r[m];var b=Un(r[m],[0,v[1]],g,!0),w=this.getControllerVisual(b,"symbolSize");y.scaleX=y.scaleY=w/v[0],y.x=v[0]-w/2;var S=ul(u.handleLabelPoints[m],Lf(y,this.group));p[m].setStyle({x:S[0],y:S[1],text:f.formatValueText(this._dataInterval[m]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",u.mainGroup):"center"})},this)}},i.prototype._showIndicator=function(r,s,u,f){var d=this.visualMapModel,p=d.getExtent(),v=d.itemSize,g=[0,v[1]],m=this._shapes,y=m.indicator;if(y){y.attr("invisible",!1);var w=this.getControllerVisual(r,"color",{convertOpacityToAlpha:!0}),S=this.getControllerVisual(r,"symbolSize"),M=Un(r,p,g,!0),x=v[0]-S/2,T={x:y.x,y:y.y};y.y=M,y.x=x;var P=ul(m.indicatorLabelPoint,Lf(y,this.group)),O=m.indicatorLabel;O.attr("invisible",!1);var R=this._applyTransform("left",m.mainGroup),B="horizontal"===this._orient;O.setStyle({text:(u||"")+d.formatValueText(s),verticalAlign:B?R:"middle",align:B?"center":R});var U={x:x,y:M,style:{fill:w}},j={style:{x:P[0],y:P[1]}};if(d.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var X={duration:100,easing:"cubicInOut",additive:!0};y.x=T.x,y.y=T.y,y.animateTo(U,X),O.animateTo(j,X)}else y.attr(U),O.attr(j);this._firstShowIndicator=!1;var K=this._shapes.handleLabels;if(K)for(var $=0;$d[1]&&(y[1]=1/0),s&&(y[0]===-1/0?this._showIndicator(m,y[1],"< ",v):y[1]===1/0?this._showIndicator(m,y[0],"> ",v):this._showIndicator(m,m,"\u2248 ",v));var b=this._hoverLinkDataIndices,w=[];(s||n5(u))&&(w=this._hoverLinkDataIndices=u.findTargetDataIndices(y));var S=function(o,i){var r={},s={};return u(o||[],r),u(i||[],s,r),[f(r),f(s)];function u(d,p,v){for(var g=0,m=d.length;g=0&&(d.dimension=p,u.push(d))}}),i.getData().setVisual("visualMeta",u)}}];function qY(o,i,r,s){for(var u=i.targetVisuals[s],f=Ji.prepareVisualTypes(u),d={color:kh(o.getData(),"color")},p=0,v=f.length;p0:i.splitNumber>0)&&!i.calculable?"piecewise":"continuous"}),o.registerAction(WY,YY),q(i5,function(i){o.registerVisual(o.PRIORITY.VISUAL.COMPONENT,i)}),o.registerPreprocessor($t))}function gp(o){o.registerComponentModel(HY),o.registerComponentView(TQ),El(o)}var HS=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r._pieceList=[],r}return he(i,o),i.prototype.optionUpdated=function(r,s){o.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var u=this._mode=this._determineMode();this._pieceList=[],o5[this._mode].call(this,this._pieceList),this._resetSelected(r,s);var f=this.option.categories;this.resetVisual(function(d,p){"categories"===u?(d.mappingMethod="category",d.categories=rt(f)):(d.dataExtent=this.getExtent(),d.mappingMethod="piecewise",d.pieceList=Te(this._pieceList,function(v){return v=rt(v),"inRange"!==p&&(v.visual=null),v}))})},i.prototype.completeVisualOption=function(){var r=this.option,s={},u=Ji.listVisualTypes(),f=this.isCategory();function d(p,v,g){return p&&p[v]&&p[v].hasOwnProperty(g)}q(r.pieces,function(p){q(u,function(v){p.hasOwnProperty(v)&&(s[v]=1)})}),q(s,function(p,v){var g=!1;q(this.stateList,function(m){g=g||d(r,m,v)||d(r.target,m,v)},this),!g&&q(this.stateList,function(m){(r[m]||(r[m]={}))[v]=GB.get(v,"inRange"===m?"active":"inactive",f)})},this),o.prototype.completeVisualOption.apply(this,arguments)},i.prototype._resetSelected=function(r,s){var u=this.option,f=this._pieceList,d=(s?u:r).selected||{};if(u.selected=d,q(f,function(v,g){var m=this.getSelectedMapKey(v);d.hasOwnProperty(m)||(d[m]=!0)},this),"single"===u.selectedMode){var p=!1;q(f,function(v,g){var m=this.getSelectedMapKey(v);d[m]&&(p?d[m]=!1:p=!0)},this)}},i.prototype.getItemSymbol=function(){return this.get("itemSymbol")},i.prototype.getSelectedMapKey=function(r){return"categories"===this._mode?r.value+"":r.index+""},i.prototype.getPieceList=function(){return this._pieceList},i.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},i.prototype.setSelected=function(r){this.option.selected=rt(r)},i.prototype.getValueState=function(r){var s=Ji.findPieceIndex(r,this._pieceList);return null!=s&&this.option.selected[this.getSelectedMapKey(this._pieceList[s])]?"inRange":"outOfRange"},i.prototype.findTargetDataIndices=function(r){var s=[],u=this._pieceList;return this.eachTargetSeries(function(f){var d=[],p=f.getData();p.each(this.getDataDimensionIndex(p),function(v,g){Ji.findPieceIndex(v,u)===r&&d.push(g)},this),s.push({seriesId:f.id,dataIndex:d})},this),s},i.prototype.getRepresentValue=function(r){var s;if(this.isCategory())s=r.value;else if(null!=r.value)s=r.value;else{var u=r.interval||[];s=u[0]===-1/0&&u[1]===1/0?0:(u[0]+u[1])/2}return s},i.prototype.getVisualMeta=function(r){if(!this.isCategory()){var s=[],u=["",""],f=this,p=this._pieceList.slice();if(p.length){var v=p[0].interval[0];v!==-1/0&&p.unshift({interval:[-1/0,v]}),(v=p[p.length-1].interval[1])!==1/0&&p.push({interval:[v,1/0]})}else p.push({interval:[-1/0,1/0]});var g=-1/0;return q(p,function(m){var y=m.interval;y&&(y[0]>g&&d([g,y[0]],"outOfRange"),d(y.slice()),g=y[1])},this),{stops:s,outerColors:u}}function d(m,y){var b=f.getRepresentValue({interval:m});y||(y=f.getValueState(b));var w=r(b,y);m[0]===-1/0?u[0]=w:m[1]===1/0?u[1]=w:s.push({value:m[0],color:w},{value:m[1],color:w})}},i.type="visualMap.piecewise",i.defaultOption=rh(bb.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),i}(bb),o5={splitNumber:function(i){var r=this.option,s=Math.min(r.precision,20),u=this.getExtent(),f=r.splitNumber;f=Math.max(parseInt(f,10),1),r.splitNumber=f;for(var d=(u[1]-u[0])/f;+d.toFixed(s)!==d&&s<5;)s++;r.precision=s,d=+d.toFixed(s),r.minOpen&&i.push({interval:[-1/0,u[0]],close:[0,0]});for(var p=0,v=u[0];p","\u2265"][u[0]]])},this)}};function hP(o,i){var r=o.inverse;("vertical"===o.orient?!r:r)&&i.reverse()}var XY=HS,Pu=function(o){function i(){var r=null!==o&&o.apply(this,arguments)||this;return r.type=i.type,r}return he(i,o),i.prototype.doRender=function(){var r=this.group;r.removeAll();var s=this.visualMapModel,u=s.get("textGap"),f=s.textStyleModel,d=f.getFont(),p=f.getTextColor(),v=this._getItemAlign(),g=s.itemSize,m=this._getViewData(),y=m.endsText,b=ni(s.get("showLabel",!0),!y);y&&this._renderEndsText(r,y[0],g,b,v),q(m.viewPieceList,function(w){var S=w.piece,M=new ct;M.onclick=Ye(this._onItemClick,this,S),this._enableHoverLink(M,w.indexInModelPieceList);var x=s.getRepresentValue(S);if(this._createItemSymbol(M,x,[0,0,g[0],g[1]]),b){var T=this.visualMapModel.getValueState(x);M.add(new fn({style:{x:"right"===v?-u:g[0]+u,y:g[1]/2,text:S.text,verticalAlign:"middle",align:v,font:d,fill:p,opacity:"outOfRange"===T?.5:1}}))}r.add(M)},this),y&&this._renderEndsText(r,y[1],g,b,v),Sf(s.get("orient"),r,s.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},i.prototype._enableHoverLink=function(r,s){var u=this;r.on("mouseover",function(){return f("highlight")}).on("mouseout",function(){return f("downplay")});var f=function(p){var v=u.visualMapModel;v.option.hoverLink&&u.api.dispatchAction({type:p,batch:VS(v.findTargetDataIndices(s),v)})}},i.prototype._getItemAlign=function(){var r=this.visualMapModel,s=r.option;if("vertical"===s.orient)return JB(r,this.api,r.itemSize);var u=s.align;return(!u||"auto"===u)&&(u="left"),u},i.prototype._renderEndsText=function(r,s,u,f,d){if(s){var p=new ct,v=this.visualMapModel.textStyleModel;p.add(new fn({style:{x:f?"right"===d?u[0]:0:u[0]/2,y:u[1]/2,verticalAlign:"middle",align:f?d:"center",text:s,font:v.getFont(),fill:v.getTextColor()}})),r.add(p)}},i.prototype._getViewData=function(){var r=this.visualMapModel,s=Te(r.getPieceList(),function(p,v){return{piece:p,indexInModelPieceList:v}}),u=r.get("text"),f=r.get("orient"),d=r.get("inverse");return("horizontal"===f?d:!d)?s.reverse():u&&(u=u.slice().reverse()),{viewPieceList:s,endsText:u}},i.prototype._createItemSymbol=function(r,s,u){r.add(Ir(this.getControllerVisual(s,"symbol"),u[0],u[1],u[2],u[3],this.getControllerVisual(s,"color")))},i.prototype._onItemClick=function(r){var s=this.visualMapModel,u=s.option,f=rt(u.selected),d=s.getSelectedMapKey(r);"single"===u.selectedMode?(f[d]=!0,q(f,function(p,v){f[v]=v===d})):f[d]=!f[d],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:f})},i.type="visualMap.piecewise",i}($B);function fd(o){o.registerComponentModel(XY),o.registerComponentView(Pu),El(o)}var KY={label:{enabled:!0},decal:{show:!1}},s5=pn(),$Y={};function QY(o,i){var r=o.getModel("aria");if(r.get("enabled")){var s=rt(KY);He(s.label,o.getLocaleModel().get("aria"),!1),He(r.option,s,!1),function(){if(r.getModel("decal").get("show")){var y=et();o.eachSeries(function(b){if(!b.isColorBySeries()){var w=y.get(b.type);w||y.set(b.type,w={}),s5(b).scope=w}}),o.eachRawSeries(function(b){if(!o.isSeriesFiltered(b))if("function"!=typeof b.enableAriaDecal){var w=b.getData();if(b.isColorBySeries()){var P=KM(b.ecModel,b.name,$Y,o.getSeriesCount()),O=w.getVisual("decal");w.setVisual("decal",R(O,P))}else{var S=b.getRawData(),M={},x=s5(b).scope;w.each(function(V){var B=w.getRawIndex(V);M[B]=V});var T=S.count();S.each(function(V){var B=M[V],U=S.getName(V)||V+"",j=KM(b.ecModel,U,x,T),X=w.getItemVisual(B,"decal");w.setItemVisual(B,"decal",R(X,j))})}}else b.enableAriaDecal();function R(V,B){var U=V?ke(ke({},B),V):B;return U.dirty=!0,U}})}}(),function(){var g=o.getLocaleModel().get("aria"),m=r.getModel("label");if(m.option=tt(m.option,g),m.get("enabled")){var y=i.getZr().dom;if(m.get("description"))return void y.setAttribute("aria-label",m.get("description"));var x,b=o.getSeriesCount(),w=m.get(["data","maxCount"])||10,S=m.get(["series","maxCount"])||10,M=Math.min(b,S);if(!(b<1)){var T=function(){var g=o.get("title");return g&&g.length&&(g=g[0]),g&&g.text}();if(T)x=d(m.get(["general","withTitle"]),{title:T});else x=m.get(["general","withoutTitle"]);var O=[];x+=d(m.get(b>1?["series","multiple","prefix"]:["series","single","prefix"]),{seriesCount:b}),o.eachSeries(function(j,X){if(X1?["series","multiple",te]:["series","single",te]),{seriesId:j.seriesIndex,seriesName:j.get("name"),seriesType:v(j.subType)});var ee=j.getData();ee.count()>w?K+=d(m.get(["data","partialData"]),{displayCnt:w}):K+=m.get(["data","allData"]);for(var oe=[],de=0;de":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},eq=function(){function o(i){null==(this._condVal=yt(i)?new RegExp(i):SH(i)?i:null)&&Mn("")}return o.prototype.evaluate=function(i){var r=typeof i;return"string"===r?this._condVal.test(i):"number"===r&&this._condVal.test(i+"")},o}(),tq=function(){function o(){}return o.prototype.evaluate=function(){return this.value},o}(),nq=function(){function o(){}return o.prototype.evaluate=function(){for(var i=this.children,r=0;r2&&s.push(u),u=[ee,le]}function m(ee,le,oe,de){Vg(ee,oe)&&Vg(le,de)||u.push(ee,le,oe,de,oe,de)}for(var b,w,S,M,x=0;xj:$2&&s.push(u),s}function Bg(o,i,r,s,u,f,d,p,v,g){if(Vg(o,r)&&Vg(i,s)&&Vg(u,d)&&Vg(f,p))v.push(d,p);else{var m=2/g,y=m*m,b=d-o,w=p-i,S=Math.sqrt(b*b+w*w);b/=S,w/=S;var M=r-o,x=s-i,T=u-d,P=f-p,O=M*M+x*x,R=T*T+P*P;if(O=0&&R-B*B=0)v.push(d,p);else{var X=[],K=[];Xu(o,r,u,d,.5,X),Xu(i,s,f,p,.5,K),Bg(X[0],K[0],X[1],K[1],X[2],K[2],X[3],K[3],v,g),Bg(X[4],K[4],X[5],K[5],X[6],K[6],X[7],K[7],v,g)}}}}function f5(o,i,r){var f=Math.abs(o[i]/o[1-i]),d=Math.ceil(Math.sqrt(f*r)),p=Math.floor(r/d);0===p&&(p=1,d=r);for(var v=[],g=0;g0)for(g=0;gMath.abs(g),y=f5([v,g],m?0:1,i),b=(m?p:g)/y.length,w=0;w1?null:new Tt(M*v+o,M*g+i)}function d5(o,i,r){var s=new Tt;Tt.sub(s,r,i),s.normalize();var u=new Tt;return Tt.sub(u,o,i),u.dot(s)}function Hg(o,i){var r=o[o.length-1];r&&r[0]===i[0]&&r[1]===i[1]||o.push(i)}function jS(o){var i=o.points,r=[],s=[];wm(i,r,s);var u=new Nt(r[0],r[1],s[0]-r[0],s[1]-r[1]),f=u.width,d=u.height,p=u.x,v=u.y,g=new Tt,m=new Tt;return f>d?(g.x=m.x=p+f/2,g.y=v,m.y=v+d):(g.y=m.y=v+d/2,g.x=p,m.x=p+f),function(o,i,r){for(var s=o.length,u=[],f=0;f0;g/=2){var m=0,y=0;(o&g)>0&&(m=1),(i&g)>0&&(y=1),p+=g*g*(3*m^y),0===y&&(1===m&&(o=g-1-o,i=g-1-i),v=o,o=i,i=v)}return p}function Lr(o){var i=1/0,r=1/0,s=-1/0,u=-1/0,f=Te(o,function(p){var v=p.getBoundingRect(),g=p.getComputedTransform(),m=v.x+v.width/2+(g?g[4]:0),y=v.y+v.height/2+(g?g[5]:0);return i=Math.min(m,i),r=Math.min(y,r),s=Math.max(m,s),u=Math.max(y,u),[m,y]});return Te(f,function(p,v){return{cp:p,z:gq(p[0],p[1],i,r,s,u),path:o[v]}}).sort(function(p,v){return p.z-v.z}).map(function(p){return p.path})}function Yr(o){return function(o,i){var u,r=[],s=o.shape;switch(o.type){case"rect":(function(o,i,r){for(var s=o.width,u=o.height,f=s>u,d=f5([s,u],f?0:1,i),p=f?"width":"height",v=f?"height":"width",g=f?"x":"y",m=f?"y":"x",y=o[p]/d.length,b=0;b=0;u--)if(!r[u].many.length){var v=r[p].many;if(v.length<=1){if(!p)return r;p=0}f=v.length;var g=Math.ceil(f/2);r[u].many=v.slice(g,f),r[p].many=v.slice(0,g),p++}return r}var mq={clone:function(i){for(var r=[],s=1-Math.pow(1-i.path.style.opacity,1/i.count),u=0;u0){var g,m,p=s.getModel("universalTransition").get("delay"),v=Object.assign({setToFinal:!0},d);m5(o)&&(g=o,m=i),m5(i)&&(g=i,m=o);for(var b=g?g===o:o.length>i.length,w=g?_5(m,g):_5(b?i:o,[b?o:i]),S=0,M=0;M1e4))for(var u=s.getIndices(),f=function(o){for(var i=o.dimensions,r=0;r0&&R.group.traverse(function(B){B instanceof Vt&&!B.animators.length&&B.animateFrom({style:{opacity:0}},V)})})}function w5(o){return o.getModel("universalTransition").get("seriesKey")||o.id}function S5(o){return we(o)?o.sort().join(","):o}function Ou(o){if(o.hostModel)return o.hostModel.getModel("universalTransition").get("divideShape")}function Pl(o,i){for(var r=0;r=0&&u.push({data:i.oldData[p],divide:Ou(i.oldData[p]),dim:d.dimension})}),q(jn(o.to),function(d){var p=Pl(r.updatedSeries,d);if(p>=0){var v=r.updatedSeries[p].getData();f.push({data:v,divide:Ou(v),dim:d.dimension})}}),u.length>0&&f.length>0&&C5(u,f,s)}(b,u,s,r)});else{var d=function(o,i){var r=et(),s=et(),u=et();return q(o.oldSeries,function(d,p){var v=o.oldData[p],g=w5(d),m=S5(g);s.set(m,v),we(g)&&q(g,function(y){u.set(y,{data:v,key:m})})}),q(i.updatedSeries,function(d){if(d.isUniversalTransitionEnabled()&&d.isAnimationEnabled()){var p=d.getData(),v=w5(d),g=S5(v),m=s.get(g);if(m)r.set(g,{oldSeries:[{divide:Ou(m),data:m}],newSeries:[{divide:Ou(p),data:p}]});else if(we(v)){var y=[];q(v,function(S){var M=s.get(S);M&&y.push({divide:Ou(M),data:M})}),y.length&&r.set(g,{oldSeries:y,newSeries:[{data:p,divide:Ou(p)}]})}else{var b=u.get(v);if(b){var w=r.get(b.key);w||(w={oldSeries:[{data:b.data,divide:Ou(b.data)}],newSeries:[]},r.set(b.key,w)),w.newSeries.push({data:p,divide:Ou(p)})}}}}),r}(u,s);q(d.keys(),function(b){var w=d.get(b);C5(w.oldSeries,w.newSeries,r)})}q(s.updatedSeries,function(b){b[N]&&(b[N]=!1)})}for(var p=i.getSeries(),v=u.oldSeries=[],g=u.oldData=[],m=0;m=200&&_t.status<=299}function Ie(F){try{F.dispatchEvent(new MouseEvent("click"))}catch(ae){var _t=document.createEvent("MouseEvents");_t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),F.dispatchEvent(_t)}}var ko=sr.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),W=sr.saveAs||("object"!=typeof window||window!==sr?function(){}:"download"in HTMLAnchorElement.prototype&&!ko?function(_t,ae,xr){var Gn=sr.URL||sr.webkitURL,It=document.createElement("a");It.download=ae=ae||_t.name||"download",It.rel="noopener","string"==typeof _t?(It.href=_t,It.origin!==location.origin?Gi(It.href)?Oe(_t,ae,xr):Ie(It,It.target="_blank"):Ie(It)):(It.href=Gn.createObjectURL(_t),setTimeout(function(){Gn.revokeObjectURL(It.href)},4e4),setTimeout(function(){Ie(It)},0))}:"msSaveOrOpenBlob"in navigator?function(_t,ae,xr){if(ae=ae||_t.name||"download","string"==typeof _t)if(Gi(_t))Oe(_t,ae,xr);else{var Gn=document.createElement("a");Gn.href=_t,Gn.target="_blank",setTimeout(function(){Ie(Gn)})}else navigator.msSaveOrOpenBlob(function(F,_t){return void 0===_t?_t={autoBom:!1}:"object"!=typeof _t&&(console.warn("Deprecated: Expected third argument to be a object"),_t={autoBom:!_t}),_t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(F.type)?new Blob([String.fromCharCode(65279),F],{type:F.type}):F}(_t,xr),ae)}:function(_t,ae,xr,Gn){if((Gn=Gn||open("","_blank"))&&(Gn.document.title=Gn.document.body.innerText="downloading..."),"string"==typeof _t)return Oe(_t,ae,xr);var It="application/octet-stream"===_t.type,Vu=/constructor/i.test(sr.HTMLElement)||sr.safari,ue=/CriOS\/[\d]+/.test(navigator.userAgent);if((ue||It&&Vu||ko)&&"undefined"!=typeof FileReader){var he=new FileReader;he.onloadend=function(){var Ko=he.result;Ko=ue?Ko:Ko.replace(/^data:[^;]*;/,"data:attachment/file;"),Gn?Gn.location.href=Ko:location=Ko,Gn=null},he.readAsDataURL(_t)}else{var ei=sr.URL||sr.webkitURL,nn=ei.createObjectURL(_t);Gn?Gn.location=nn:location.href=nn,Gn=null,setTimeout(function(){ei.revokeObjectURL(nn)},4e4)}});sr.saveAs=W.saveAs=W,Zo.exports=W},45579:function(Zo){var sr=function(Dt){"use strict";var Ie,Oe=Object.prototype,Gi=Oe.hasOwnProperty,ko="function"==typeof Symbol?Symbol:{},W=ko.iterator||"@@iterator",F=ko.asyncIterator||"@@asyncIterator",_t=ko.toStringTag||"@@toStringTag";function ae(nt,Ge,Qe){return Object.defineProperty(nt,Ge,{value:Qe,enumerable:!0,configurable:!0,writable:!0}),nt[Ge]}try{ae({},"")}catch(nt){ae=function(Qe,Be,vn){return Qe[Be]=vn}}function xr(nt,Ge,Qe,Be){var cn=Object.create((Ge&&Ge.prototype instanceof nn?Ge:nn).prototype),tr=new Nl(Be||[]);return cn._invoke=function(nt,Ge,Qe){var Be=It;return function(cn,tr){if(Be===ue)throw new Error("Generator is already running");if(Be===he){if("throw"===cn)throw tr;return Xg()}for(Qe.method=cn,Qe.arg=tr;;){var ti=Qe.delegate;if(ti){var Oi=Et(ti,Qe);if(Oi){if(Oi===ei)continue;return Oi}}if("next"===Qe.method)Qe.sent=Qe._sent=Qe.arg;else if("throw"===Qe.method){if(Be===It)throw Be=he,Qe.arg;Qe.dispatchException(Qe.arg)}else"return"===Qe.method&&Qe.abrupt("return",Qe.arg);Be=ue;var fr=Gn(nt,Ge,Qe);if("normal"===fr.type){if(Be=Qe.done?he:Vu,fr.arg===ei)continue;return{value:fr.arg,done:Qe.done}}"throw"===fr.type&&(Be=he,Qe.method="throw",Qe.arg=fr.arg)}}}(nt,Qe,tr),cn}function Gn(nt,Ge,Qe){try{return{type:"normal",arg:nt.call(Ge,Qe)}}catch(Be){return{type:"throw",arg:Be}}}Dt.wrap=xr;var It="suspendedStart",Vu="suspendedYield",ue="executing",he="completed",ei={};function nn(){}function Ko(){}function zc(){}var Yg={};ae(Yg,W,function(){return this});var cr=Object.getPrototypeOf,pd=cr&&cr(cr(Bu([])));pd&&pd!==Oe&&Gi.call(pd,W)&&(Yg=pd);var Fl=zc.prototype=nn.prototype=Object.create(Yg);function pk(nt){["next","throw","return"].forEach(function(Ge){ae(nt,Ge,function(Qe){return this._invoke(Ge,Qe)})})}function vd(nt,Ge){function Qe(cn,tr,ti,Oi){var fr=Gn(nt[cn],nt,tr);if("throw"!==fr.type){var gd=fr.arg,Ze=gd.value;return Ze&&"object"==typeof Ze&&Gi.call(Ze,"__await")?Ge.resolve(Ze.__await).then(function(Fs){Qe("next",Fs,ti,Oi)},function(Fs){Qe("throw",Fs,ti,Oi)}):Ge.resolve(Ze).then(function(Fs){gd.value=Fs,ti(gd)},function(Fs){return Qe("throw",Fs,ti,Oi)})}Oi(fr.arg)}var Be;this._invoke=function(cn,tr){function ti(){return new Ge(function(Oi,fr){Qe(cn,tr,Oi,fr)})}return Be=Be?Be.then(ti,ti):ti()}}function Et(nt,Ge){var Qe=nt.iterator[Ge.method];if(Qe===Ie){if(Ge.delegate=null,"throw"===Ge.method){if(nt.iterator.return&&(Ge.method="return",Ge.arg=Ie,Et(nt,Ge),"throw"===Ge.method))return ei;Ge.method="throw",Ge.arg=new TypeError("The iterator does not provide a 'throw' method")}return ei}var Be=Gn(Qe,nt.iterator,Ge.arg);if("throw"===Be.type)return Ge.method="throw",Ge.arg=Be.arg,Ge.delegate=null,ei;var vn=Be.arg;return vn?vn.done?(Ge[nt.resultName]=vn.value,Ge.next=nt.nextLoc,"return"!==Ge.method&&(Ge.method="next",Ge.arg=Ie),Ge.delegate=null,ei):vn:(Ge.method="throw",Ge.arg=new TypeError("iterator result is not an object"),Ge.delegate=null,ei)}function $o(nt){var Ge={tryLoc:nt[0]};1 in nt&&(Ge.catchLoc=nt[1]),2 in nt&&(Ge.finallyLoc=nt[2],Ge.afterLoc=nt[3]),this.tryEntries.push(Ge)}function qg(nt){var Ge=nt.completion||{};Ge.type="normal",delete Ge.arg,nt.completion=Ge}function Nl(nt){this.tryEntries=[{tryLoc:"root"}],nt.forEach($o,this),this.reset(!0)}function Bu(nt){if(nt){var Ge=nt[W];if(Ge)return Ge.call(nt);if("function"==typeof nt.next)return nt;if(!isNaN(nt.length)){var Qe=-1,Be=function vn(){for(;++Qe=0;--vn){var cn=this.tryEntries[vn],tr=cn.completion;if("root"===cn.tryLoc)return Be("end");if(cn.tryLoc<=this.prev){var ti=Gi.call(cn,"catchLoc"),Oi=Gi.call(cn,"finallyLoc");if(ti&&Oi){if(this.prev=0;--Be){var vn=this.tryEntries[Be];if(vn.tryLoc<=this.prev&&Gi.call(vn,"finallyLoc")&&this.prev=0;--Qe){var Be=this.tryEntries[Qe];if(Be.finallyLoc===Ge)return this.complete(Be.completion,Be.afterLoc),qg(Be),ei}},catch:function(Ge){for(var Qe=this.tryEntries.length-1;Qe>=0;--Qe){var Be=this.tryEntries[Qe];if(Be.tryLoc===Ge){var vn=Be.completion;if("throw"===vn.type){var cn=vn.arg;qg(Be)}return cn}}throw new Error("illegal catch attempt")},delegateYield:function(Ge,Qe,Be){return this.delegate={iterator:Bu(Ge),resultName:Qe,nextLoc:Be},"next"===this.method&&(this.arg=Ie),ei}},Dt}(Zo.exports);try{regeneratorRuntime=sr}catch(Dt){"object"==typeof globalThis?globalThis.regeneratorRuntime=sr:Function("r","regeneratorRuntime = r")(sr)}},16608:function(Zo,sr,Dt){"use strict";function Oe(e){return(Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function Ie(e,a,t){return(Ie="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(l,c,h){var _=function(e,a){for(;!Object.prototype.hasOwnProperty.call(e,a)&&null!==(e=Oe(e)););return e}(l,c);if(_){var C=Object.getOwnPropertyDescriptor(_,c);return C.get?C.get.call(h):C.value}})(e,a,t||e)}function ko(e,a){for(var t=0;te.length)&&(a=e.length);for(var t=0,n=new Array(a);t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(k){throw k},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var _,c=!0,h=!1;return{s:function(){t=t.call(e)},n:function(){var k=t.next();return c=k.done,k},e:function(k){h=!0,_=k},f:function(){try{!c&&null!=t.return&&t.return()}finally{if(h)throw _}}}}function cr(e,a){return function(e){if(Array.isArray(e))return e}(e)||function(e,a){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var h,_,n=[],l=!0,c=!1;try{for(t=t.call(e);!(l=(h=t.next()).done)&&(n.push(h.value),!a||n.length!==a);l=!0);}catch(C){c=!0,_=C}finally{try{!l&&null!=t.return&&t.return()}finally{if(c)throw _}}return n}}(e,a)||ei(e,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pd(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function Et(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ei(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $o(e,a,t){return($o=xr()?Reflect.construct:function(l,c,h){var _=[null];_.push.apply(_,c);var k=new(Function.bind.apply(l,_));return h&&_t(k,h.prototype),k}).apply(null,arguments)}function Nl(e){var a="function"==typeof Map?new Map:void 0;return(Nl=function(n){if(null===n||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==a){if(a.has(n))return a.get(n);a.set(n,l)}function l(){return $o(n,arguments,Oe(this).constructor)}return l.prototype=Object.create(n.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),_t(l,n)})(e)}var Bu=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}();function Xg(e){return null!==e&&"object"==typeof e}function nt(e){return"function"==typeof e}var Qe=function(){function e(a){return Error.call(this),this.message=a?"".concat(a.length," errors occurred during unsubscription:\n").concat(a.map(function(t,n){return"".concat(n+1,") ").concat(t.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=a,this}return e.prototype=Object.create(Error.prototype),e}(),Be=function(){var a,e=function(){function a(t){F(this,a),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return W(a,[{key:"unsubscribe",value:function(){var n;if(!this.closed){var l=this._parentOrParents,c=this._ctorUnsubscribe,h=this._unsubscribe,_=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,l instanceof a)l.remove(this);else if(null!==l)for(var C=0;C2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof a?function(n){return n.pipe(Xr(function(l,c){return yt(e(l,c)).pipe(He(function(h,_){return a(l,h,c,_)}))},t))}:("number"==typeof a&&(t=a),function(n){return n.lift(new jP(e,t))})}var jP=function(){function e(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;F(this,e),this.project=a,this.concurrent=t}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new WP(t,this.project,this.concurrent))}}]),e}(),WP=function(e){ae(t,e);var a=ue(t);function t(n,l){var c,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return F(this,t),(c=a.call(this,n)).project=l,c.concurrent=h,c.hasCompleted=!1,c.buffer=[],c.active=0,c.index=0,c}return W(t,[{key:"_next",value:function(l){this.active0?this._next(l.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),t}(at);function Uu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Xr(Ob,e)}function ni(e,a){return a?_k(e,a):new gn(tt(e))}function ot(){for(var e=Number.POSITIVE_INFINITY,a=null,t=arguments.length,n=new Array(t),l=0;l1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof c&&(e=n.pop()),null===a&&1===n.length&&n[0]instanceof gn?n[0]:Uu(e)(ni(n,a))}function Qo(){return function(a){return a.lift(new Fb(a))}}var Fb=function(){function e(a){F(this,e),this.connectable=a}return W(e,[{key:"call",value:function(t,n){var l=this.connectable;l._refCount++;var c=new Nb(t,l),h=n.subscribe(c);return c.closed||(c.connection=l.connect()),h}}]),e}(),Nb=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).connectable=l,c}return W(t,[{key:"_unsubscribe",value:function(){var l=this.connectable;if(l){this.connectable=null;var c=l._refCount;if(c<=0)this.connection=null;else if(l._refCount=c-1,c>1)this.connection=null;else{var h=this.connection,_=l._connection;this.connection=null,_&&(!h||_===h)&&_.unsubscribe()}}else this.connection=null}}]),t}(Ze),Oa=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this)).source=n,c.subjectFactory=l,c._refCount=0,c._isComplete=!1,c}return W(t,[{key:"_subscribe",value:function(l){return this.getSubject().subscribe(l)}},{key:"getSubject",value:function(){var l=this._subject;return(!l||l.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var l=this._connection;return l||(this._isComplete=!1,(l=this._connection=new Be).add(this.source.subscribe(new YP(this.getSubject(),this))),l.closed&&(this._connection=null,l=Be.EMPTY)),l}},{key:"refCount",value:function(){return Qo()(this)}}]),t}(gn),jc=function(){var e=Oa.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),YP=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).connectable=l,c}return W(t,[{key:"_error",value:function(l){this._unsubscribe(),Ie(Oe(t.prototype),"_error",this).call(this,l)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),Ie(Oe(t.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var l=this.connectable;if(l){this.connectable=null;var c=l._connection;l._refCount=0,l._subject=null,l._connection=null,c&&c.unsubscribe()}}}]),t}(zP);function Bb(){return new qe}function Ae(e){for(var a in e)if(e[a]===Ae)return a;throw Error("Could not find renamed property on target object.")}function Mo(e,a){for(var t in a)a.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=a[t])}function hn(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(hn).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var a=e.toString();if(null==a)return""+a;var t=a.indexOf("\n");return-1===t?a:a.substring(0,t)}function Ln(e,a){return null==e||""===e?null===a?"":a:null==a||""===a?e:e+" "+a}var XP=Ae({__forward_ref__:Ae});function Sn(e){return e.__forward_ref__=Sn,e.toString=function(){return hn(this())},e}function Pt(e){return kH(e)?e():e}function kH(e){return"function"==typeof e&&e.hasOwnProperty(XP)&&e.__forward_ref__===Sn}var xp=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,function(e,a){var t=e?"NG0".concat(e,": "):"";return"".concat(t).concat(a)}(n,l))).code=n,c}return t}(Nl(Error));function rn(e){return"string"==typeof e?e:null==e?"":String(e)}function la(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():rn(e)}function bk(e,a){var t=a?" in ".concat(a):"";throw new xp("201","No provider for ".concat(la(e)," found").concat(t))}function Ja(e,a){null==e&&function(e,a,t,n){throw new Error("ASSERTION ERROR: ".concat(e)+(null==n?"":" [Expected=> ".concat(t," ").concat(n," ").concat(a," <=Actual]")))}(a,e,null,"!=")}function We(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function pt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Yc(e){return KP(e,qc)||KP(e,wk)}function KP(e,a){return e.hasOwnProperty(a)?e[a]:null}function bd(e){return e&&(e.hasOwnProperty(Vs)||e.hasOwnProperty(Xc))?e[Vs]:null}var Cd,qc=Ae({"\u0275prov":Ae}),Vs=Ae({"\u0275inj":Ae}),wk=Ae({ngInjectableDef:Ae}),Xc=Ae({ngInjectorDef:Ae}),yn=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function _i(){return Cd}function Ia(e){var a=Cd;return Cd=e,a}function ju(e,a,t){var n=Yc(e);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:t&yn.Optional?null:void 0!==a?a:void bk(hn(e),"Injector")}function Zc(e){return{toString:e}.toString()}var $g=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Hs=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),Sk="undefined"!=typeof globalThis&&globalThis,$P="undefined"!=typeof window&&window,QP="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,kk="undefined"!=typeof global&&global,Kn=Sk||kk||$P||QP,Tp={},nr=[],Dp=Ae({"\u0275cmp":Ae}),Mk=Ae({"\u0275dir":Ae}),Qg=Ae({"\u0275pipe":Ae}),Gb=Ae({"\u0275mod":Ae}),eO=Ae({"\u0275loc":Ae}),zs=Ae({"\u0275fac":Ae}),fa=Ae({__NG_ELEMENT_ID__:Ae}),TH=0;function Se(e){return Zc(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===$g.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||nr,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Hs.Emulated,id:"c",styles:e.styles||nr,_:null,setInput:null,schemas:e.schemas||null,tView:null},l=e.directives,c=e.features,h=e.pipes;return n.id+=TH++,n.inputs=rO(e.inputs,t),n.outputs=rO(e.outputs),c&&c.forEach(function(_){return _(n)}),n.directiveDefs=l?function(){return("function"==typeof l?l():l).map(Vl)}:null,n.pipeDefs=h?function(){return("function"==typeof h?h():h).map(xk)}:null,n})}function Vl(e){return Ra(e)||function(e){return e[Mk]||null}(e)}function xk(e){return function(e){return e[Qg]||null}(e)}var DH={};function bt(e){return Zc(function(){var a={type:e.type,bootstrap:e.bootstrap||nr,declarations:e.declarations||nr,imports:e.imports||nr,exports:e.exports||nr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(DH[e.id]=e.type),a})}function rO(e,a){if(null==e)return Tp;var t={};for(var n in e)if(e.hasOwnProperty(n)){var l=e[n],c=l;Array.isArray(l)&&(c=l[1],l=l[0]),t[l]=n,a&&(a[l]=c)}return t}var ve=Se;function ji(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ra(e){return e[Dp]||null}function da(e,a){var t=e[Gb]||null;if(!t&&!0===a)throw new Error("Type ".concat(hn(e)," does not have '\u0275mod' property."));return t}function Hl(e){return Array.isArray(e)&&"object"==typeof e[1]}function Gs(e){return Array.isArray(e)&&!0===e[1]}function Td(e){return 0!=(8&e.flags)}function rm(e){return 2==(2&e.flags)}function to(e){return 1==(1&e.flags)}function js(e){return null!==e.template}function im(e){return 0!=(512&e[2])}function Ad(e,a){return e.hasOwnProperty(zs)?e[zs]:null}var Xb=function(){function e(a,t,n){F(this,e),this.previousValue=a,this.currentValue=t,this.firstChange=n}return W(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function on(){return fO}function fO(e){return e.type.prototype.ngOnChanges&&(e.setInput=RH),dO}function dO(){var e=Ak(this),a=null==e?void 0:e.current;if(a){var t=e.previous;if(t===Tp)e.previous=a;else for(var n in a)t[n]=a[n];e.current=null,this.ngOnChanges(a)}}function RH(e,a,t,n){var l=Ak(e)||function(e,a){return e[om]=a}(e,{previous:Tp,current:null}),c=l.current||(l.current={}),h=l.previous,_=this.declaredInputs[t],C=h[_];c[_]=new Xb(C&&C.currentValue,a,h===Tp),e[n]=a}on.ngInherit=!0;var om="__ngSimpleChanges__";function Ak(e){return e[om]||null}var hO="http://www.w3.org/2000/svg",Ed=void 0;function Pd(){return void 0!==Ed?Ed:"undefined"!=typeof document?document:void 0}function Kr(e){return!!e.listen}var pO={createRenderer:function(a,t){return Pd()}};function di(e){for(;Array.isArray(e);)e=e[0];return e}function sm(e,a){return di(a[e])}function Ao(e,a){return di(a[e.index])}function Rk(e,a){return e.data[a]}function Jc(e,a){return e[a]}function Eo(e,a){var t=a[e];return Hl(t)?t:t[0]}function Lk(e){return 4==(4&e[2])}function Fk(e){return 128==(128&e[2])}function Ul(e,a){return null==a?null:e[a]}function gO(e){e[18]=0}function Nk(e,a){e[5]+=a;for(var t=e,n=e[3];null!==n&&(1===a&&1===t[5]||-1===a&&0===t[5]);)n[5]+=a,t=n,n=n[3]}var Ft={lFrame:nf(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Vk(){return Ft.bindingsEnabled}function Re(){return Ft.lFrame.lView}function En(){return Ft.lFrame.tView}function pe(e){return Ft.lFrame.contextLView=e,e[8]}function bi(){for(var e=no();null!==e&&64===e.type;)e=e.parent;return e}function no(){return Ft.lFrame.currentTNode}function Po(e,a){var t=Ft.lFrame;t.currentTNode=e,t.isParent=a}function Jo(){return Ft.lFrame.isParent}function Oo(){Ft.lFrame.isParent=!1}function Gl(){return Ft.isInCheckNoChangesMode}function lm(e){Ft.isInCheckNoChangesMode=e}function pa(){var e=Ft.lFrame,a=e.bindingRootIndex;return-1===a&&(a=e.bindingRootIndex=e.tView.bindingStartIndex),a}function qs(){return Ft.lFrame.bindingIndex}function es(){return Ft.lFrame.bindingIndex++}function ro(e){var a=Ft.lFrame,t=a.bindingIndex;return a.bindingIndex=a.bindingIndex+e,t}function HH(e,a){var t=Ft.lFrame;t.bindingIndex=t.bindingRootIndex=e,Xs(a)}function Xs(e){Ft.lFrame.currentDirectiveIndex=e}function Hk(e){var a=Ft.lFrame.currentDirectiveIndex;return-1===a?null:e[a]}function Tt(){return Ft.lFrame.currentQueryIndex}function Rp(e){Ft.lFrame.currentQueryIndex=e}function Jb(e){var a=e[1];return 2===a.type?a.declTNode:1===a.type?e[6]:null}function ef(e,a,t){if(t&yn.SkipSelf){for(var n=a,l=e;!(null!==(n=n.parent)||t&yn.Host||null===(n=Jb(l))||(l=l[15],10&n.type)););if(null===n)return!1;a=n,e=l}var c=Ft.lFrame=tf();return c.currentTNode=a,c.lView=e,!0}function jl(e){var a=tf(),t=e[1];Ft.lFrame=a,a.currentTNode=t.firstChild,a.lView=e,a.tView=t,a.contextLView=e,a.bindingIndex=t.bindingStartIndex,a.inI18n=!1}function tf(){var e=Ft.lFrame,a=null===e?null:e.child;return null===a?nf(e):a}function nf(e){var a={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:e,child:null,inI18n:!1};return null!==e&&(e.child=a),a}function Lp(){var e=Ft.lFrame;return Ft.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Fp=Lp;function e0(){var e=Lp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Nt(e){return(Ft.lFrame.contextLView=function(e,a){for(;e>0;)a=a[15],e--;return a}(e,Ft.lFrame.contextLView))[8]}function ri(){return Ft.lFrame.selectedIndex}function Zs(e){Ft.lFrame.selectedIndex=e}function Ur(){var e=Ft.lFrame;return Rk(e.tView,e.selectedIndex)}function va(){Ft.lFrame.currentNamespace=hO}function t0(){Ft.lFrame.currentNamespace=null}function rf(e,a){for(var t=a.directiveStart,n=a.directiveEnd;t=n)break}else a[C]<0&&(e[18]+=65536),(_>11>16&&(3&e[2])===a){e[2]+=2048;try{c.call(_)}finally{}}}else try{c.call(_)}finally{}}var Rd=function e(a,t,n){F(this,e),this.factory=a,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n};function dm(e,a,t){for(var n=Kr(e),l=0;la){h=c-1;break}}}for(;c>16}(e),n=a;t>0;)n=n[15],t--;return n}var Wk=!0;function Hp(e){var a=Wk;return Wk=e,a}var xO=0;function zp(e,a){var t=Yk(e,a);if(-1!==t)return t;var n=a[1];n.firstCreatePass&&(e.injectorIndex=a.length,a0(n.data,e),a0(a,null),a0(n.blueprint,null));var l=bn(e,a),c=e.injectorIndex;if(Vp(l))for(var h=ts(l),_=Bp(l,a),C=_[1].data,k=0;k<8;k++)a[c+k]=_[h+k]|C[h+k];return a[c+8]=l,c}function a0(e,a){e.push(0,0,0,0,0,0,0,0,a)}function Yk(e,a){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===a[e.injectorIndex+8]?-1:e.injectorIndex}function bn(e,a){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var t=0,n=null,l=a;null!==l;){var c=l[1],h=c.type;if(null===(n=2===h?c.declTNode:1===h?l[6]:null))return-1;if(t++,l=l[15],-1!==n.injectorIndex)return n.injectorIndex|t<<16}return-1}function Fe(e,a,t){!function(e,a,t){var n;"string"==typeof t?n=t.charCodeAt(0)||0:t.hasOwnProperty(fa)&&(n=t[fa]),null==n&&(n=t[fa]=xO++);var l=255&n;a.data[e+(l>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:yn.Default,l=arguments.length>4?arguments[4]:void 0;if(null!==e){var c=hm(t);if("function"==typeof c){if(!ef(a,e,n))return n&yn.Host?io(l,t,n):ns(a,t,n,l);try{var h=c(n);if(null!=h||n&yn.Optional)return h;bk(t)}finally{Fp()}}else if("number"==typeof c){var _=null,C=Yk(e,a),k=-1,D=n&yn.Host?a[16][6]:null;for((-1===C||n&yn.SkipSelf)&&(-1!==(k=-1===C?bn(e,a):a[C+8])&&ao(n,!1)?(_=a[1],C=ts(k),a=Bp(k,a)):C=-1);-1!==C;){var I=a[1];if(DO(c,C,I.data)){var L=WH(C,a,t,_,n,D);if(L!==o0)return L}-1!==(k=a[C+8])&&ao(n,a[1].data[C+8]===D)&&DO(c,C,a)?(_=I,C=ts(k),a=Bp(k,a)):C=-1}}}return ns(a,t,n,l)}var o0={};function TO(){return new Fd(bi(),Re())}function WH(e,a,t,n,l,c){var h=a[1],_=h.data[e+8],D=Up(_,h,t,null==n?rm(_)&&Wk:n!=h&&0!=(3&_.type),l&yn.Host&&c===_);return null!==D?Ld(a,h,D,_):o0}function Up(e,a,t,n,l){for(var c=e.providerIndexes,h=a.data,_=1048575&c,C=e.directiveStart,D=c>>20,L=l?_+D:e.directiveEnd,G=n?_:_+D;G=C&&Y.type===t)return G}if(l){var Q=h[C];if(Q&&js(Q)&&Q.type===t)return C}return null}function Ld(e,a,t,n){var l=e[t],c=a.data;if(function(e){return e instanceof Rd}(l)){var h=l;h.resolving&&function(e,a){throw new xp("200","Circular dependency in DI detected for ".concat(e).concat(""))}(la(c[t]));var _=Hp(h.canSeeViewProviders);h.resolving=!0;var C=h.injectImpl?Ia(h.injectImpl):null;ef(e,n,yn.Default);try{l=e[t]=h.factory(void 0,c,e,n),a.firstCreatePass&&t>=n.directiveStart&&function(e,a,t){var n=a.type.prototype,c=n.ngOnInit,h=n.ngDoCheck;if(n.ngOnChanges){var _=fO(a);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,_),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,_)}c&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,c),h&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,h),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,h))}(t,c[t],a)}finally{null!==C&&Ia(C),Hp(_),h.resolving=!1,Fp()}}return l}function hm(e){if("string"==typeof e)return e.charCodeAt(0)||0;var a=e.hasOwnProperty(fa)?e[fa]:void 0;return"number"==typeof a?a>=0?255&a:TO:a}function DO(e,a,t){return!!(t[a+(e>>5)]&1<=e.length?e.push(t):e.splice(a,0,t)}function Vd(e,a){return a>=e.length-1?e.pop():e.splice(a,1)[0]}function is(e,a){for(var t=[],n=0;n=0?e[1|n]=t:function(e,a,t,n){var l=e.length;if(l==a)e.push(t,n);else if(1===l)e.push(n,e[0]),e[0]=t;else{for(l--,e.push(e[l-1],e[l]);l>a;)e[l]=e[l-2],l--;e[a]=t,e[a+1]=n}}(e,n=~n,a,t),n}function vm(e,a){var t=Bd(e,a);if(t>=0)return e[1|t]}function Bd(e,a){return function(e,a,t){for(var n=0,l=e.length>>t;l!==n;){var c=n+(l-n>>1),h=e[c<a?l=c:n=c+1}return~(l<1&&void 0!==arguments[1]?arguments[1]:yn.Default;if(void 0===zd)throw new Error("inject() must be called from an injection context");return null===zd?ju(e,void 0,a):zd.get(e,a&yn.Optional?null:void 0,a)}function ce(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yn.Default;return(_i()||g0)(Pt(e),a)}var tM=ce;function uf(e){for(var a=[],t=0;t3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var l=hn(a);if(Array.isArray(a))l=a.map(hn).join(" -> ");else if("object"==typeof a){var c=[];for(var h in a)if(a.hasOwnProperty(h)){var _=a[h];c.push(h+":"+("string"==typeof _?JSON.stringify(_):hn(_)))}l="{".concat(c.join(", "),"}")}return"".concat(t).concat(n?"("+n+")":"","[").concat(l,"]: ").concat(e.replace(nz,"\n "))}("\n"+e.message,l,t,n),e.ngTokenPath=l,e[qu]=null,e}var jd,pr,jp=_m(sf("Inject",function(a){return{token:a}}),-1),oi=_m(sf("Optional"),8),Fo=_m(sf("SkipSelf"),4);function Wi(e){var a;return(null===(a=function(){if(void 0===jd&&(jd=null,Kn.trustedTypes))try{jd=Kn.trustedTypes.createPolicy("angular",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(e){}return jd}())||void 0===a?void 0:a.createHTML(e))||e}function C0(e){var a;return(null===(a=function(){if(void 0===pr&&(pr=null,Kn.trustedTypes))try{pr=Kn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(e){}return pr}())||void 0===a?void 0:a.createHTML(e))||e}var ff=function(){function e(a){F(this,e),this.changingThisBreaksApplicationSecurity=a}return W(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),cz=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}(ff),Fi=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}(ff),oM=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}(ff),fz=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}(ff),LO=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}(ff);function Yi(e){return e instanceof ff?e.changingThisBreaksApplicationSecurity:e}function Ks(e,a){var t=FO(e);if(null!=t&&t!==a){if("ResourceURL"===t&&"URL"===a)return!0;throw new Error("Required a safe ".concat(a,", got a ").concat(t," (see https://g.co/ng/security#xss)"))}return t===a}function FO(e){return e instanceof ff&&e.getTypeName()||null}var w0=function(){function e(a){F(this,e),this.inertDocumentHelper=a}return W(e,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var n=(new window.DOMParser).parseFromString(Wi(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(l){return null}}}]),e}(),S0=function(){function e(a){if(F(this,e),this.defaultDoc=a,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var n=this.inertDocument.createElement("body");t.appendChild(n)}}return W(e,[{key:"getInertBodyElement",value:function(t){var n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Wi(t),n;var l=this.inertDocument.createElement("body");return l.innerHTML=Wi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(l),l}},{key:"stripCustomNsAttrs",value:function(t){for(var n=t.attributes,l=n.length-1;0"),!0}},{key:"endElement",value:function(t){var n=t.nodeName.toLowerCase();Yd.hasOwnProperty(n)&&!df.hasOwnProperty(n)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(M0(t))}},{key:"checkClobberedElement",value:function(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return n}}]),e}(),cM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,km=/([^\#-~ |!])/g;function M0(e){return e.replace(/&/g,"&").replace(cM,function(a){return"&#"+(1024*(a.charCodeAt(0)-55296)+(a.charCodeAt(1)-56320)+65536)+";"}).replace(km,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(//g,">")}function HO(e,a){var t=null;try{Mm=Mm||function(e){var a=new S0(e);return function(){try{return!!(new window.DOMParser).parseFromString(Wi(""),"text/html")}catch(e){return!1}}()?new w0(a):a}(e);var n=a?String(a):"";t=Mm.getInertBodyElement(n);var l=5,c=n;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,n=c,c=t.innerHTML,t=Mm.getInertBodyElement(n)}while(n!==c);return Wi((new vf).sanitizeChildren(Qs(t)||t))}finally{if(t)for(var C=Qs(t)||t;C.firstChild;)C.removeChild(C.firstChild)}}function Qs(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ss=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Si(e){var a=ma();return a?C0(a.sanitize(ss.HTML,e)||""):Ks(e,"HTML")?C0(Yi(e)):HO(Pd(),rn(e))}function Lt(e){var a=ma();return a?a.sanitize(ss.URL,e)||"":Ks(e,"URL")?Yi(e):Sm(rn(e))}function ma(){var e=Re();return e&&e[12]}var GO="__ngContext__";function qi(e,a){e[GO]=a}function dM(e){var a=function(e){return e[GO]||null}(e);return a?Array.isArray(a)?a:a.lView:null}function Dm(e){return e.ngOriginalError}function Cz(e){for(var a=arguments.length,t=new Array(a>1?a-1:0),n=1;n0&&(e[t-1][4]=n[4]);var c=Vd(e,10+a);!function(e,a){Jp(e,a,a[11],2,null,null),a[0]=null,a[6]=null}(n[1],n);var h=c[19];null!==h&&h.detachView(c[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}}function rI(e,a){if(!(256&a[2])){var t=a[11];Kr(t)&&t.destroyNode&&Jp(e,a,t,3,null,null),function(e){var a=e[13];if(!a)return yM(e[1],e);for(;a;){var t=null;if(Hl(a))t=a[13];else{var n=a[10];n&&(t=n)}if(!t){for(;a&&!a[4]&&a!==e;)Hl(a)&&yM(a[1],a),a=a[3];null===a&&(a=e),Hl(a)&&yM(a[1],a),t=a&&a[4]}a=t}}(a)}}function yM(e,a){if(!(256&a[2])){a[2]&=-129,a[2]|=256,function(e,a){var t;if(null!=e&&null!=(t=e.destroyHooks))for(var n=0;n=0?n[l=k]():n[l=-k].unsubscribe(),c+=2}else{var D=n[l=t[c+1]];t[c].call(D)}if(null!==n){for(var I=l+1;Ic?"":l[I+1].toLowerCase();var G=8&n?L:null;if(G&&-1!==th(G,k,0)||2&n&&k!==L){if(fs(n))return!1;h=!0}}}}else{if(!h&&!fs(n)&&!fs(C))return!1;if(h&&fs(C))continue;h=!1,n=C|1&n}}return fs(n)||h}function fs(e){return 0==(1&e)}function B0(e,a,t,n){if(null===a)return-1;var l=0;if(n||!t){for(var c=!1;l-1)for(t++;t2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+_+'"':"")+"]"}else 8&n?l+="."+h:4&n&&(l+=" "+h);else""!==l&&!fs(h)&&(a+=AM(c,l),l=""),n=h,c=c||!fs(n);t++}return""!==l&&(a+=AM(c,l)),a}var jt={};function H(e){z0(En(),Re(),ri()+e,Gl())}function z0(e,a,t,n){if(!n)if(3==(3&a[2])){var c=e.preOrderCheckHooks;null!==c&&Yu(a,c,t)}else{var h=e.preOrderHooks;null!==h&&Id(a,h,0,t)}Zs(t)}function Mi(e,a){return e<<17|a<<2}function lr(e){return e>>17&32767}function EM(e){return 2|e}function Qu(e){return(131068&e)>>2}function G0(e,a){return-131069&e|a<<2}function j0(e){return 1|e}function K0(e,a){var t=e.contentQueries;if(null!==t)for(var n=0;n20&&z0(e,a,20,Gl()),t(n,l)}finally{Zs(c)}}function ah(e,a,t){if(Td(a))for(var l=a.directiveEnd,c=a.directiveStart;c2&&void 0!==arguments[2]?arguments[2]:Ao,n=a.localNames;if(null!==n)for(var l=a.index+1,c=0;c0;){var t=e[--a];if("number"==typeof t&&t<0)return t}return 0})(_)!=C&&_.push(C),_.push(n,l,h)}}function wf(e,a){null!==e.hostBindings&&e.hostBindings(1,a)}function Ym(e,a){a.flags|=2,(e.components||(e.components=[])).push(a.index)}function uh(e,a,t){if(t){if(a.exportAs)for(var n=0;n0&&WM(t)}}function WM(e){for(var a=Jd(e);null!==a;a=Kp(a))for(var t=10;t0&&WM(n)}var h=e[1].components;if(null!==h)for(var _=0;_0&&WM(C)}}function ov(e,a){var t=Eo(a,e),n=t[1];(function(e,a){for(var t=a.length;t1&&void 0!==arguments[1]?arguments[1]:mm;if(n===mm){var l=new Error("NullInjectorError: No provider for ".concat(hn(t),"!"));throw l.name="NullInjectorError",l}return n}}]),e}(),qm=new Ee("Set Injector scope."),Xm={},DI={},ZM=void 0;function aC(){return void 0===ZM&&(ZM=new iC),ZM}function AI(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new EI(e,t,a||aC(),n)}var EI=function(){function e(a,t,n){var l=this,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;F(this,e),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var h=[];t&&ga(t,function(C){return l.processProvider(C,a,t)}),ga([a],function(C){return l.processInjectorType(C,[],h)}),this.records.set(uv,fh(void 0,this));var _=this.records.get(qm);this.scope=null!=_?_.value:null,this.source=c||("object"==typeof a?null:hn(a))}return W(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mm,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yn.Default;this.assertNotDestroyed();var c=v0(this),h=Ia(void 0);try{if(!(l&yn.SkipSelf)){var _=this.records.get(t);if(void 0===_){var C=qz(t)&&Yc(t);_=C&&this.injectableDefInScope(C)?fh($M(t),Xm):null,this.records.set(t,_)}if(null!=_)return this.hydrate(t,_)}var k=l&yn.Self?aC():this.parent;return k.get(t,n=l&yn.Optional&&n===mm?null:n)}catch(I){if("NullInjectorError"===I.name){var D=I[qu]=I[qu]||[];if(D.unshift(hn(t)),c)throw I;return az(I,t,"R3InjectorError",this.source)}throw I}finally{Ia(h),v0(c)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(n){return t.get(n)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(l,c){return t.push(hn(c))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,n,l){var c=this;if(!(t=Pt(t)))return!1;var h=bd(t),_=null==h&&t.ngModule||void 0,C=void 0===_?t:_,I=-1!==l.indexOf(C);if(void 0!==_&&(h=bd(_)),null==h)return!1;if(null!=h.imports&&!I){var L;l.push(C);try{ga(h.imports,function(se){c.processInjectorType(se,n,l)&&(void 0===L&&(L=[]),L.push(se))})}finally{}if(void 0!==L)for(var G=function(be){var Ce=L[be],je=Ce.ngModule,$e=Ce.providers;ga($e,function(kt){return c.processProvider(kt,je,$e||nr)})},Y=0;Y0){var t=is(a,"?");throw new Error("Can't resolve all parameters for ".concat(hn(e),": (").concat(t.join(", "),")."))}var n=function(e){var a=e&&(e[qc]||e[wk]);if(a){var t=function(e){if(e.hasOwnProperty("name"))return e.name;var a=(""+e).match(/^function\s*([^\s(]+)/);return null===a?"":a[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(t,'" class.')),a}return null}(e);return null!==n?function(){return n.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function QM(e,a,t){var n=void 0;if(dh(e)){var l=Pt(e);return Ad(l)||$M(l)}if(PI(e))n=function(){return Pt(e.useValue)};else if(function(e){return!(!e||!e.useFactory)}(e))n=function(){return e.useFactory.apply(e,Et(uf(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))n=function(){return ce(Pt(e.useExisting))};else{var c=Pt(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Ad(c)||$M(c);n=function(){return $o(c,Et(uf(e.deps)))}}return n}function fh(e,a){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:a,multi:t?[]:void 0}}function PI(e){return null!==e&&"object"==typeof e&&Jk in e}function dh(e){return"function"==typeof e}function qz(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ee}var JM=function(e,a,t){return function(e){var l=AI(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return l._resolveInjectorDefTypes(),l}({name:t},a,e,t)},kn=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"create",value:function(n,l){return Array.isArray(n)?JM(n,l,""):JM(n.providers,n.parent,n.name||"")}}]),a}();return e.THROW_IF_NOT_FOUND=mm,e.NULL=new iC,e.\u0275prov=We({token:e,providedIn:"any",factory:function(){return ce(uv)}}),e.__NG_ELEMENT_ID__=-1,e}();function l4(e,a){rf(dM(e)[1],bi())}function Pe(e){for(var a=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0,n=[e];a;){var l=void 0;if(js(e))l=a.\u0275cmp||a.\u0275dir;else{if(a.\u0275cmp)throw new Error("Directives cannot inherit Components");l=a.\u0275dir}if(l){if(t){n.push(l);var c=e;c.inputs=cC(e.inputs),c.declaredInputs=cC(e.declaredInputs),c.outputs=cC(e.outputs);var h=l.hostBindings;h&&gh(e,h);var _=l.viewQuery,C=l.contentQueries;if(_&&GI(e,_),C&&vh(e,C),Mo(e.inputs,l.inputs),Mo(e.declaredInputs,l.declaredInputs),Mo(e.outputs,l.outputs),js(l)&&l.data.animation){var k=e.data;k.animation=(k.animation||[]).concat(l.data.animation)}}var D=l.features;if(D)for(var I=0;I=0;n--){var l=e[n];l.hostVars=a+=l.hostVars,l.hostAttrs=ct(l.hostAttrs,t=ct(t,l.hostAttrs))}}(n)}function cC(e){return e===Tp?{}:e===nr?[]:e}function GI(e,a){var t=e.viewQuery;e.viewQuery=t?function(n,l){a(n,l),t(n,l)}:a}function vh(e,a){var t=e.contentQueries;e.contentQueries=t?function(n,l,c){a(n,l,c),t(n,l,c)}:a}function gh(e,a){var t=e.hostBindings;e.hostBindings=t?function(n,l){a(n,l),t(n,l)}:a}var Qm=null;function _h(){if(!Qm){var e=Kn.Symbol;if(e&&e.iterator)Qm=e.iterator;else for(var a=Object.getOwnPropertyNames(Map.prototype),t=0;t1&&void 0!==arguments[1]?arguments[1]:yn.Default,t=Re();if(null===t)return ce(e,a);var n=bi();return qk(n,t,Pt(e),a)}function z(e,a,t){var n=Re();return Vi(n,es(),a)&&Na(En(),Ur(),n,e,a,n[11],t,!1),z}function vx(e,a,t,n,l){var h=l?"class":"style";TI(e,t,a.inputs[h],h,n)}function A(e,a,t,n){var l=Re(),c=En(),h=20+e,_=l[11],C=l[h]=O0(_,a,Ft.lFrame.currentNamespace),k=c.firstCreatePass?function(e,a,t,n,l,c,h){var _=a.consts,k=nv(a,e,2,l,Ul(_,c));return Wm(a,t,k,Ul(_,h)),null!==k.attrs&&lv(k,k.attrs,!1),null!==k.mergedAttrs&&lv(k,k.mergedAttrs,!0),null!==a.queries&&a.queries.elementStart(a,k),k}(h,c,l,0,a,t,n):c.data[h];Po(k,!0);var D=k.mergedAttrs;null!==D&&dm(_,C,D);var I=k.classes;null!==I&&ki(_,C,I);var L=k.styles;null!==L&&sI(_,C,L),64!=(64&k.flags)&&Qp(c,l,C,k),0===Ft.lFrame.elementDepthCount&&qi(C,l),Ft.lFrame.elementDepthCount++,to(k)&&(rv(c,l,k),ah(c,k,l)),null!==n&&oh(l,k)}function E(){var e=bi();Jo()?Oo():Po(e=e.parent,!1);var a=e;Ft.lFrame.elementDepthCount--;var t=En();t.firstCreatePass&&(rf(t,e),Td(e)&&t.queries.elementEnd(e)),null!=a.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(a)&&vx(t,a,Re(),a.classesWithoutHost,!0),null!=a.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(a)&&vx(t,a,Re(),a.stylesWithoutHost,!1)}function me(e,a,t,n){A(e,a,t,n),E()}function vt(e,a,t){var n=Re(),l=En(),c=e+20,h=l.firstCreatePass?function(e,a,t,n,l){var c=a.consts,h=Ul(c,n),_=nv(a,e,8,"ng-container",h);return null!==h&&lv(_,h,!0),Wm(a,t,_,Ul(c,l)),null!==a.queries&&a.queries.elementStart(a,_),_}(c,l,n,a,t):l.data[c];Po(h,!0);var _=n[c]=n[11].createComment("");Qp(l,n,_,h),qi(_,n),to(h)&&(rv(l,n,h),ah(l,h,n)),null!=t&&oh(n,h)}function xn(){var e=bi(),a=En();Jo()?Oo():Po(e=e.parent,!1),a.firstCreatePass&&(rf(a,e),Td(e)&&a.queries.elementEnd(e))}function un(e,a,t){vt(e,a,t),xn()}function De(){return Re()}function vv(e){return!!e&&"function"==typeof e.then}function dR(e){return!!e&&"function"==typeof e.subscribe}var gv=dR;function ne(e,a,t,n){var l=Re(),c=En(),h=bi();return hR(c,l,l[11],h,e,a,!!t,n),ne}function mv(e,a){var t=bi(),n=Re(),l=En();return hR(l,n,Ni(Hk(l.data),t,n),t,e,a,!1),mv}function hR(e,a,t,n,l,c,h,_){var C=to(n),D=e.firstCreatePass&&ch(e),I=a[8],L=tl(a),G=!0;if(3&n.type||_){var Y=Ao(n,a),Q=_?_(Y):Y,ie=L.length,fe=_?function(Nu){return _(di(Nu[n.index]))}:n.index;if(Kr(t)){var se=null;if(!_&&C&&(se=function(e,a,t,n){var l=e.cleanup;if(null!=l)for(var c=0;cC?_[C]:null}"string"==typeof h&&(c+=2)}return null}(e,a,l,n.index)),null!==se)(se.__ngLastListenerFn__||se).__ngNextListenerFn__=c,se.__ngLastListenerFn__=c,G=!1;else{c=Vn(n,a,I,c,!1);var Ce=t.listen(Q,l,c);L.push(c,Ce),D&&D.push(l,fe,ie,ie+1)}}else c=Vn(n,a,I,c,!0),Q.addEventListener(l,c,h),L.push(c),D&&D.push(l,fe,ie,h)}else c=Vn(n,a,I,c,!1);var $e,je=n.outputs;if(G&&null!==je&&($e=je[l])){var kt=$e.length;if(kt)for(var Dn=0;Dn0&&void 0!==arguments[0]?arguments[0]:1;return Nt(e)}function vR(e,a){for(var t=null,n=function(e){var a=e.attrs;if(null!=a){var t=a.indexOf(5);if(0==(1&t))return a[t+1]}return null}(e),l=0;l1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,n=Re(),l=En(),c=nv(l,20+e,16,null,t||null);null===c.projection&&(c.projection=a),Oo(),64!=(64&c.flags)&&Ez(l,n,c)}function il(e,a,t){return mx(e,"",a,"",t),il}function mx(e,a,t,n,l){var c=Re(),h=su(c,a,t,n);return h!==jt&&Na(En(),Ur(),c,e,h,c[11],l,!1),mx}function i_(e,a,t,n,l){for(var c=e[t+1],h=null===a,_=n?lr(c):Qu(c),C=!1;0!==_&&(!1===C||h);){var D=e[_+1];vC(e[_],a)&&(C=!0,e[_+1]=n?j0(D):EM(D)),_=n?lr(D):Qu(D)}C&&(e[t+1]=n?EM(c):j0(c))}function vC(e,a){return null===e||null==a||(Array.isArray(e)?e[1]:e)===a||!(!Array.isArray(e)||"string"!=typeof a)&&Bd(e,a)>=0}var xi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function bR(e){return e.substring(xi.key,xi.keyEnd)}function CR(e,a){var t=xi.textEnd;return t===a?-1:(a=xi.keyEnd=function(e,a,t){for(;a32;)a++;return a}(e,xi.key=a,t),yv(e,a,t))}function yv(e,a,t){for(;a=0;t=CR(a,t))Lo(e,bR(a),!0)}function uo(e,a,t,n){var l=Re(),c=En(),h=ro(2);c.firstUpdatePass&&xR(c,e,h,n),a!==jt&&Vi(l,h,a)&&xh(c,c.data[ri()],l,l[11],e,l[h+1]=function(e,a){return null==e||("string"==typeof a?e+=a:"object"==typeof e&&(e=hn(Yi(e)))),e}(a,t),n,h)}function Mx(e,a){return a>=e.expandoStartIndex}function xR(e,a,t,n){var l=e.data;if(null===l[t+1]){var c=l[ri()],h=Mx(e,t);Tx(c,n)&&null===a&&!h&&(a=!1),a=function(e,a,t,n){var l=Hk(e),c=n?a.residualClasses:a.residualStyles;if(null===l)0===(n?a.classBindings:a.styleBindings)&&(t=bv(t=kh(null,e,a,t,n),a.attrs,n),c=null);else{var _=a.directiveStylingLast;if(-1===_||e[_]!==l)if(t=kh(l,e,a,t,n),null===c){var k=function(e,a,t){var n=t?a.classBindings:a.styleBindings;if(0!==Qu(n))return e[lr(n)]}(e,a,n);void 0!==k&&Array.isArray(k)&&function(e,a,t,n){e[lr(t?a.classBindings:a.styleBindings)]=n}(e,a,n,k=bv(k=kh(null,e,a,k[1],n),a.attrs,n))}else c=function(e,a,t){for(var n=void 0,l=a.directiveEnd,c=1+a.directiveStylingLast;c0)&&(k=!0):D=t,l)if(0!==C){var G=lr(e[_+1]);e[n+1]=Mi(G,_),0!==G&&(e[G+1]=G0(e[G+1],n)),e[_+1]=function(e,a){return 131071&e|a<<17}(e[_+1],n)}else e[n+1]=Mi(_,0),0!==_&&(e[_+1]=G0(e[_+1],n)),_=n;else e[n+1]=Mi(C,0),0===_?_=n:e[C+1]=G0(e[C+1],n),C=n;k&&(e[n+1]=EM(e[n+1])),i_(e,D,n,!0),i_(e,D,n,!1),function(e,a,t,n,l){var c=l?e.residualClasses:e.residualStyles;null!=c&&"string"==typeof a&&Bd(c,a)>=0&&(t[n+1]=j0(t[n+1]))}(a,D,e,n,c),h=Mi(_,C),c?a.classBindings=h:a.styleBindings=h}(l,c,a,t,h,n)}}function kh(e,a,t,n,l){var c=null,h=t.directiveEnd,_=t.directiveStylingLast;for(-1===_?_=t.directiveStart:_++;_0;){var C=e[l],k=Array.isArray(C),D=k?C[1]:C,I=null===D,L=t[l+1];L===jt&&(L=I?nr:void 0);var G=I?vm(L,n):D===n?L:void 0;if(k&&!gC(G)&&(G=vm(C,n)),gC(G)&&(_=G,h))return _;var Y=e[l+1];l=h?lr(Y):Qu(Y)}if(null!==a){var Q=c?a.residualClasses:a.residualStyles;null!=Q&&(_=vm(Q,n))}return _}function gC(e){return void 0!==e}function Tx(e,a){return 0!=(e.flags&(a?16:32))}function Z(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Re(),n=En(),l=e+20,c=n.firstCreatePass?nv(n,l,1,a,null):n.data[l],h=t[l]=P0(t[11],a);Qp(n,t,h,c),Po(c,!1)}function On(e){return Ve("",e,""),On}function Ve(e,a,t){var n=Re(),l=su(n,e,a,t);return l!==jt&&au(n,ri(),l),Ve}function Cv(e,a,t,n,l){var c=Re(),h=function(e,a,t,n,l,c){var _=zo(e,qs(),t,l);return ro(2),_?a+rn(t)+n+rn(l)+c:jt}(c,e,a,t,n,l);return h!==jt&&au(c,ri(),h),Cv}function Ex(e,a,t){!function(e,a,t,n){var l=En(),c=ro(2);l.firstUpdatePass&&xR(l,null,c,n);var h=Re();if(t!==jt&&Vi(h,c,t)){var _=l.data[ri()];if(Tx(_,n)&&!Mx(l,c)){var k=n?_.classesWithoutHost:_.stylesWithoutHost;null!==k&&(t=Ln(k,t||"")),vx(l,_,h,t,n)}else!function(e,a,t,n,l,c,h,_){l===jt&&(l=nr);for(var C=0,k=0,D=0>20;if(dh(e)||!e.multi){var Y=new Rd(k,l,N),Q=Qx(C,a,l?I:I+G,L);-1===Q?(Fe(zp(D,_),h,C),IC(h,e,a.length),a.push(C),D.directiveStart++,D.directiveEnd++,l&&(D.providerIndexes+=1048576),t.push(Y),_.push(Y)):(t[Q]=Y,_[Q]=Y)}else{var ie=Qx(C,a,I+G,L),fe=Qx(C,a,I,I+G),be=fe>=0&&t[fe];if(l&&!be||!l&&!(ie>=0&&t[ie])){Fe(zp(D,_),h,C);var Ce=function(e,a,t,n,l){var c=new Rd(e,t,N);return c.multi=[],c.index=a,c.componentProviders=0,$x(c,l,n&&!t),c}(l?g8:n2,t.length,l,n,k);!l&&be&&(t[fe].providerFactory=Ce),IC(h,e,a.length,0),a.push(C),D.directiveStart++,D.directiveEnd++,l&&(D.providerIndexes+=1048576),t.push(Ce),_.push(Ce)}else IC(h,e,ie>-1?ie:fe,$x(t[l?fe:ie],k,!l&&n));!l&&n&&be&&t[fe].componentProviders++}}}function IC(e,a,t,n){var l=dh(a);if(l||function(e){return!!e.useClass}(a)){var h=(a.useClass||a).prototype.ngOnDestroy;if(h){var _=e.destroyHooks||(e.destroyHooks=[]);if(!l&&a.multi){var C=_.indexOf(t);-1===C?_.push(t,[n,h]):_[C+1].push(n,h)}else _.push(t,h)}}}function $x(e,a,t){return t&&e.componentProviders++,e.multi.push(a)-1}function Qx(e,a,t,n){for(var l=t;l1&&void 0!==arguments[1]?arguments[1]:[];return function(t){t.providersResolver=function(n,l){return t2(n,l?l(e):e,a)}}}var a2=function e(){F(this,e)},eT=function e(){F(this,e)},tT=function(){function e(){F(this,e)}return W(e,[{key:"resolveComponentFactory",value:function(t){throw function(e){var a=Error("No component factory found for ".concat(hn(e),". Did you add it to @NgModule.entryComponents?"));return a.ngComponent=e,a}(t)}}]),e}(),$i=function(){var e=function a(){F(this,a)};return e.NULL=new tT,e}();function __(){}function lu(e,a){return new Ue(Ao(e,a))}var y8=function(){return lu(bi(),Re())},Ue=function(){var e=function a(t){F(this,a),this.nativeElement=t};return e.__NG_ELEMENT_ID__=y8,e}();function rT(e){return e instanceof Ue?e.nativeElement:e}var Ff=function e(){F(this,e)},fl=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=function(){return FC()},e}(),FC=function(){var e=Re(),t=Eo(bi().index,e);return function(e){return e[11]}(Hl(t)?t:e)},NC=function(){var e=function a(){F(this,a)};return e.\u0275prov=We({token:e,providedIn:"root",factory:function(){return null}}),e}(),nc=function e(a){F(this,e),this.full=a,this.major=a.split(".")[0],this.minor=a.split(".")[1],this.patch=a.split(".").slice(2).join(".")},u2=new nc("12.2.4"),Uo=function(){function e(){F(this,e)}return W(e,[{key:"supports",value:function(t){return fv(t)}},{key:"create",value:function(t){return new w8(t)}}]),e}(),c2=function(a,t){return t},w8=function(){function e(a){F(this,e),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=a||c2}return W(e,[{key:"forEachItem",value:function(t){var n;for(n=this._itHead;null!==n;n=n._next)t(n)}},{key:"forEachOperation",value:function(t){for(var n=this._itHead,l=this._removalsHead,c=0,h=null;n||l;){var _=!l||n&&n.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==t;){var c=a[t.index];if(null!==c&&n.push(di(c)),Gs(c))for(var h=10;h-1&&(nI(t,l),Vd(n,l))}this._attachedToViewContainer=!1}rI(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){HM(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){nC(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){rC(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,a,t){lm(!0);try{rC(e,a,t)}finally{lm(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function(e,a){Jp(e,a,a[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),e}(),m2=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this,n))._view=n,l}return W(t,[{key:"detectChanges",value:function(){Ho(this._view)}},{key:"checkNoChanges",value:function(){!function(e){lm(!0);try{Ho(e)}finally{lm(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),t}(b_),_2=function(e){return function(e,a,t){if(rm(e)&&!t){var n=Eo(e.index,a);return new b_(n,n)}return 47&e.type?new b_(a[16],a):null}(bi(),Re(),16==(16&e))},Bt=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=_2,e}(),T8=[new y_],A8=new ys([new Uo]),E8=new Eh(T8),aT=function(){return BC(bi(),Re())},Xn=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=aT,e}(),Ih=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this))._declarationLView=n,h._declarationTContainer=l,h.elementRef=c,h}return W(t,[{key:"createEmbeddedView",value:function(l){var c=this._declarationTContainer.tViews,h=ru(this._declarationLView,c,l,16,null,c.declTNode,null,null,null,null);h[17]=this._declarationLView[this._declarationTContainer.index];var C=this._declarationLView[19];return null!==C&&(h[19]=C.createEmbeddedView(c)),Um(c,h,l),new b_(h)}}]),t}(Xn);function BC(e,a){return 4&e.type?new Ih(a,e,lu(e,a)):null}var rc=function e(){F(this,e)},C2=function e(){F(this,e)},O8=function(){return uu(bi(),Re())},$n=function(){var e=function a(){F(this,a)};return e.__NG_ELEMENT_ID__=O8,e}(),w2=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this))._lContainer=n,h._hostTNode=l,h._hostLView=c,h}return W(t,[{key:"element",get:function(){return lu(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Fd(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var l=bn(this._hostTNode,this._hostLView);if(Vp(l)){var c=Bp(l,this._hostLView),h=ts(l);return new Fd(c[1].data[h+8],c)}return new Fd(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(l){var c=S2(this._lContainer);return null!==c&&c[l]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(l,c,h){var _=l.createEmbeddedView(c||{});return this.insert(_,h),_}},{key:"createComponent",value:function(l,c,h,_,C){var k=h||this.parentInjector;if(!C&&null==l.ngModule&&k){var D=k.get(rc,null);D&&(C=D)}var I=l.create(k,_,void 0,C);return this.insert(I.hostView,c),I}},{key:"insert",value:function(l,c){var h=l._lView,_=h[1];if(function(e){return Gs(e[3])}(h)){var C=this.indexOf(l);if(-1!==C)this.detach(C);else{var k=h[3],D=new w2(k,k[6],k[3]);D.detach(D.indexOf(l))}}var I=this._adjustIndex(c),L=this._lContainer;!function(e,a,t,n){var l=10+n,c=t.length;n>0&&(t[l-1][4]=a),n1&&void 0!==arguments[1]?arguments[1]:0;return null==l?this.length+c:l}}]),t}($n);function S2(e){return e[8]}function Rh(e){return e[8]||(e[8]=[])}function uu(e,a){var t,n=a[e.index];if(Gs(n))t=n;else{var l;if(8&e.type)l=di(n);else{var c=a[11];l=c.createComment("");var h=Ao(e,a);bf(c,Lm(c,h),l,function(e,a){return Kr(e)?e.nextSibling(a):a.nextSibling}(c,h),!1)}a[e.index]=t=iv(n,a,l,e),qt(a,t)}return new w2(t,e,a)}var Vh={},wT=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this)).ngModule=n,l}return W(t,[{key:"resolveComponentFactory",value:function(l){var c=Ra(l);return new Rv(c,this.ngModule)}}]),t}($i);function X2(e){var a=[];for(var t in e)e.hasOwnProperty(t)&&a.push({propName:e[t],templateName:t});return a}var Z2=new Ee("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return gM}}),Rv=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this)).componentDef=n,c.ngModule=l,c.componentType=n.type,c.selector=function(e){return e.map(Fm).join(",")}(n.selectors),c.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],c.isBoundToModule=!!l,c}return W(t,[{key:"inputs",get:function(){return X2(this.componentDef.inputs)}},{key:"outputs",get:function(){return X2(this.componentDef.outputs)}},{key:"create",value:function(l,c,h,_){var se,be,C=(_=_||this.ngModule)?function(e,a){return{get:function(n,l,c){var h=e.get(n,Vh,c);return h!==Vh||l===Vh?h:a.get(n,l,c)}}}(l,_.injector):l,k=C.get(Ff,pO),D=C.get(NC,null),I=k.createRenderer(null,this.componentDef),L=this.componentDef.selectors[0][0]||"div",G=h?function(e,a,t){if(Kr(e))return e.selectRootElement(a,t===Hs.ShadowDom);var l="string"==typeof a?e.querySelector(a):a;return l.textContent="",l}(I,h,this.componentDef.encapsulation):O0(k.createRenderer(null,this.componentDef),L,function(e){var a=e.toLowerCase();return"svg"===a?hO:"math"===a?"http://www.w3.org/1998/MathML/":null}(L)),Y=this.componentDef.onPush?576:528,Q=function(e,a){return{components:[],scheduler:e||gM,clean:xI,playerHandler:a||null,flags:0}}(),ie=sh(0,null,null,1,0,null,null,null,null,null),fe=ru(null,ie,Q,Y,null,null,k,I,D,C);jl(fe);try{var Ce=function(e,a,t,n,l,c){var h=t[1];t[20]=e;var C=nv(h,20,2,"#host",null),k=C.mergedAttrs=a.hostAttrs;null!==k&&(lv(C,k,!0),null!==e&&(dm(l,e,k),null!==C.classes&&ki(l,e,C.classes),null!==C.styles&&sI(l,e,C.styles)));var D=n.createRenderer(e,a),I=ru(t,Gm(a),null,a.onPush?64:16,t[20],C,n,D,c||null,null);return h.firstCreatePass&&(Fe(zp(C,t),h,a.type),Ym(h,C),eC(C,t.length,1)),qt(t,I),t[20]=I}(G,this.componentDef,fe,k,I);if(G)if(h)dm(I,G,["ng-version",u2.full]);else{var je=function(e){for(var a=[],t=[],n=1,l=2;n0&&ki(I,G,kt.join(" "))}if(be=Rk(ie,20),void 0!==c)for(var Dn=be.projection=[],Zn=0;Zn1&&void 0!==arguments[1]?arguments[1]:kn.THROW_IF_NOT_FOUND,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yn.Default;return l===kn||l===rc||l===uv?this:this._r3Injector.get(l,c,h)}},{key:"destroy",value:function(){var l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(function(c){return c()}),this.destroyCbs=null}},{key:"onDestroy",value:function(l){this.destroyCbs.push(l)}}]),t}(rc),kT=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this)).moduleType=n,null!==da(n)&&function(e){var a=new Set;!function t(n){var l=da(n,!0),c=l.id;null!==c&&(function(e,a,t){if(a&&a!==t)throw new Error("Duplicate module registered for ".concat(e," - ").concat(hn(a)," vs ").concat(hn(a.name)))}(c,Lv.get(c),n),Lv.set(c,n));var k,C=nn(cs(l.imports));try{for(C.s();!(k=C.n()).done;){var D=k.value;a.has(D)||(a.add(D),t(D))}}catch(I){C.e(I)}finally{C.f()}}(e)}(n),l}return W(t,[{key:"create",value:function(l){return new eU(this.moduleType,l)}}]),t}(C2);function rw(e,a,t){var n=pa()+e,l=Re();return l[n]===jt?ou(l,n,t?a.call(t):a()):function(e,a){return e[a]}(l,n)}function vl(e,a,t,n){return eL(Re(),pa(),e,a,t,n)}function zf(e,a,t,n,l){return gl(Re(),pa(),e,a,t,n,l)}function O_(e,a){var t=e[a];return t===jt?void 0:t}function eL(e,a,t,n,l,c){var h=a+t;return Vi(e,h,l)?ou(e,h+1,c?n.call(c,l):n(l)):O_(e,h+1)}function gl(e,a,t,n,l,c,h){var _=a+t;return zo(e,_,l,c)?ou(e,_+2,h?n.call(h,l,c):n(l,c)):O_(e,_+2)}function Uf(e,a){var n,t=En(),l=e+20;t.firstCreatePass?(n=function(e,a){if(a)for(var t=a.length-1;t>=0;t--){var n=a[t];if(e===n.name)return n}throw new xp("302","The pipe '".concat(e,"' could not be found!"))}(a,t.pipeRegistry),t.data[l]=n,n.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(l,n.onDestroy)):n=t.data[l];var c=n.factory||(n.factory=Ad(n.type)),h=Ia(N);try{var _=Hp(!1),C=c();return Hp(_),function(e,a,t,n){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),a[t]=n}(t,Re(),l,C),C}finally{Ia(h)}}function Gf(e,a,t){var n=e+20,l=Re(),c=Jc(l,n);return jf(l,I_(l,n)?eL(l,pa(),a,c.transform,t,c):c.transform(t))}function iw(e,a,t,n){var l=e+20,c=Re(),h=Jc(c,l);return jf(c,I_(c,l)?gl(c,pa(),a,h.transform,t,n,h):h.transform(t,n))}function I_(e,a){return e[1].data[a].pure}function jf(e,a){return xf.isWrapped(a)&&(a=xf.unwrap(a),e[qs()]=jt),a}function Nv(e){return function(a){setTimeout(e,void 0,a)}}var ye=function(e){ae(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return F(this,t),(n=a.call(this)).__isAsync=l,n}return W(t,[{key:"emit",value:function(l){Ie(Oe(t.prototype),"next",this).call(this,l)}},{key:"subscribe",value:function(l,c,h){var _,C,k,D=l,I=c||function(){return null},L=h;if(l&&"object"==typeof l){var G=l;D=null===(_=G.next)||void 0===_?void 0:_.bind(G),I=null===(C=G.error)||void 0===C?void 0:C.bind(G),L=null===(k=G.complete)||void 0===k?void 0:k.bind(G)}this.__isAsync&&(I=Nv(I),D&&(D=Nv(D)),L&&(L=Nv(L)));var Y=Ie(Oe(t.prototype),"subscribe",this).call(this,{next:D,error:I,complete:L});return l instanceof Be&&l.add(Y),Y}}]),t}(qe);function TT(){return this._results[_h()]()}var Wo=function(){function e(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];F(this,e),this._emitDistinctChangesOnly=a,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var t=_h(),n=e.prototype;n[t]||(n[t]=TT)}return W(e,[{key:"changes",get:function(){return this._changes||(this._changes=new ye)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,n){return this._results.reduce(t,n)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,n){var l=this;l.dirty=!1;var c=rs(t);(this._changesDetected=!function(e,a,t){if(e.length!==a.length)return!1;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];F(this,e),this.queries=a}return W(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var l=null!==t.contentQueries?t.contentQueries[0]:n.length,c=[],h=0;h2&&void 0!==arguments[2]?arguments[2]:null;F(this,e),this.predicate=a,this.flags=t,this.read=n},AT=function(){function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];F(this,e),this.queries=a}return W(e,[{key:"elementStart",value:function(t,n){for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:-1;F(this,e),this.metadata=a,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}return W(e,[{key:"elementStart",value:function(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,n){this.elementStart(t,n)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var n=this._declarationNodeIndex,l=t.parent;null!==l&&8&l.type&&l.index!==n;)l=l.parent;return n===(null!==l?l.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,n){var l=this.metadata.predicate;if(Array.isArray(l))for(var c=0;c0)n.push(h[_/2]);else{for(var k=c[_+1],D=a[-C],I=10;I0&&(_=setTimeout(function(){h._callbacks=h._callbacks.filter(function(C){return C.timeoutId!==_}),n(h._didWork,h.getPendingTasks())},l)),this._callbacks.push({doneCb:n,timeoutId:_,updateCb:c})}},{key:"whenStable",value:function(n,l,c){if(c&&!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(n,l,c),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(n,l,c){return[]}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(ft))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),U_=function(){var e=function(){function a(){F(this,a),this._applications=new Map,_w.addToWindow(this)}return W(a,[{key:"registerApplication",value:function(n,l){this._applications.set(n,l)}},{key:"unregisterApplication",value:function(n){this._applications.delete(n)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(n){return this._applications.get(n)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(n){var l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return _w.findTestabilityInTree(this,n,l)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),_w=new(function(){function e(){F(this,e)}return W(e,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,n,l){return null}}]),e}()),XT=!0,oc=!1;function yw(){return oc=!0,XT}var ho,sc=function(e,a,t){var n=new kT(t);return Promise.resolve(n)},LL=new Ee("AllowMultipleToken"),Yv=function e(a,t){F(this,e),this.name=a,this.token=t};function FL(e){if(ho&&!ho.destroyed&&!ho.injector.get(LL,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ho=e.get(QT);var a=e.get(HT,null);return a&&a.forEach(function(t){return t()}),ho}function NL(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(a),l=new Ee(n);return function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],h=$T();if(!h||h.injector.get(LL,!1))if(e)e(t.concat(c).concat({provide:l,useValue:!0}));else{var _=t.concat(c).concat({provide:l,useValue:!0},{provide:qm,useValue:"platform"});FL(kn.create({providers:_,name:n}))}return qU(l)}}function qU(e){var a=$T();if(!a)throw new Error("No platform exists!");if(!a.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return a}function $T(){return ho&&!ho.destroyed?ho:null}var QT=function(){var e=function(){function a(t){F(this,a),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return W(a,[{key:"bootstrapModuleFactory",value:function(n,l){var c=this,k=function(e,a){return"noop"===e?new GU:("zone.js"===e?void 0:e)||new ft({enableLongStackTrace:yw(),shouldCoalesceEventChangeDetection:!!(null==a?void 0:a.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==a?void 0:a.ngZoneRunCoalescing)})}(l?l.ngZone:void 0,{ngZoneEventCoalescing:l&&l.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:l&&l.ngZoneRunCoalescing||!1}),D=[{provide:ft,useValue:k}];return k.run(function(){var I=kn.create({providers:D,parent:c.injector,name:n.moduleType.name}),L=n.create(I),G=L.injector.get($d,null);if(!G)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return k.runOutsideAngular(function(){var Y=k.onError.subscribe({next:function(ie){G.handleError(ie)}});L.onDestroy(function(){Cw(c._modules,L),Y.unsubscribe()})}),function(e,a,t){try{var n=((Y=L.injector.get(zh)).runInitializers(),Y.donePromise.then(function(){return SC(L.injector.get(vu,l_)||l_),c._moduleDoBootstrap(L),L}));return vv(n)?n.catch(function(l){throw a.runOutsideAngular(function(){return e.handleError(l)}),l}):n}catch(l){throw a.runOutsideAngular(function(){return e.handleError(l)}),l}var Y}(G,k)})}},{key:"bootstrapModule",value:function(n){var l=this,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],h=JT({},c);return sc(0,0,n).then(function(_){return l.bootstrapModuleFactory(_,h)})}},{key:"_moduleDoBootstrap",value:function(n){var l=n.injector.get(lc);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(function(c){return l.bootstrap(c)});else{if(!n.instance.ngDoBootstrap)throw new Error("The module ".concat(hn(n.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");n.instance.ngDoBootstrap(l)}this._modules.push(n)}},{key:"onDestroy",value:function(n){this._destroyListeners.push(n)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(n){return n.destroy()}),this._destroyListeners.forEach(function(n){return n()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(kn))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function JT(e,a){return Array.isArray(a)?a.reduce(JT,e):Object.assign(Object.assign({},e),a)}var lc=function(){var e=function(){function a(t,n,l,c,h){var _=this;F(this,a),this._zone=t,this._injector=n,this._exceptionHandler=l,this._componentFactoryResolver=c,this._initStatus=h,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){_._zone.run(function(){_.tick()})}});var C=new gn(function(D){_._stable=_._zone.isStable&&!_._zone.hasPendingMacrotasks&&!_._zone.hasPendingMicrotasks,_._zone.runOutsideAngular(function(){D.next(_._stable),D.complete()})}),k=new gn(function(D){var I;_._zone.runOutsideAngular(function(){I=_._zone.onStable.subscribe(function(){ft.assertNotInAngularZone(),WT(function(){!_._stable&&!_._zone.hasPendingMacrotasks&&!_._zone.hasPendingMicrotasks&&(_._stable=!0,D.next(!0))})})});var L=_._zone.onUnstable.subscribe(function(){ft.assertInAngularZone(),_._stable&&(_._stable=!1,_._zone.runOutsideAngular(function(){D.next(!1)}))});return function(){I.unsubscribe(),L.unsubscribe()}});this.isStable=ot(C,k.pipe(function(e){return Qo()(function(e,a){return function(n){var l;l="function"==typeof e?e:function(){return e};var c=Object.create(n,jc);return c.source=n,c.subjectFactory=l,c}}(Bb)(e))}))}return W(a,[{key:"bootstrap",value:function(n,l){var h,c=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");h=n instanceof eT?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(h.componentType);var _=function(e){return e.isBoundToModule}(h)?void 0:this._injector.get(rc),k=h.create(kn.NULL,[],l||h.selector,_),D=k.location.nativeElement,I=k.injector.get(qT,null),L=I&&k.injector.get(U_);return I&&L&&L.registerApplication(D,I),k.onDestroy(function(){c.detachView(k.hostView),Cw(c.components,k),L&&L.unregisterApplication(D)}),this._loadComponent(k),k}},{key:"tick",value:function(){var n=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var c,l=nn(this._views);try{for(l.s();!(c=l.n()).done;)c.value.detectChanges()}catch(D){l.e(D)}finally{l.f()}}catch(D){this._zone.runOutsideAngular(function(){return n._exceptionHandler.handleError(D)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(n){var l=n;this._views.push(l),l.attachToAppRef(this)}},{key:"detachView",value:function(n){var l=n;Cw(this._views,l),l.detachFromAppRef()}},{key:"_loadComponent",value:function(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(dw,[]).concat(this._bootstrapListeners).forEach(function(c){return c(n)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(n){return n.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(ft),ce(kn),ce($d),ce($i),ce(zh))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function Cw(e,a){var t=e.indexOf(a);t>-1&&e.splice(t,1)}var qf=function e(){F(this,e)},QU=function e(){F(this,e)},JU={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},eG=function(){var e=function(){function a(t,n){F(this,a),this._compiler=t,this._config=n||JU}return W(a,[{key:"load",value:function(n){return this.loadAndCompile(n)}},{key:"loadAndCompile",value:function(n){var l=this,h=cr(n.split("#"),2),_=h[0],C=h[1];return void 0===C&&(C="default"),Dt(98255)(_).then(function(k){return k[C]}).then(function(k){return HL(k,_,C)}).then(function(k){return l._compiler.compileModuleAsync(k)})}},{key:"loadFactory",value:function(n){var c=cr(n.split("#"),2),h=c[0],_=c[1],C="NgFactory";return void 0===_&&(_="default",C=""),Dt(98255)(this._config.factoryPathPrefix+h+this._config.factoryPathSuffix).then(function(k){return k[_+C]}).then(function(k){return HL(k,h,_)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(gu),ce(QU,8))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function HL(e,a,t){if(!e)throw new Error("Cannot find '".concat(t,"' in '").concat(a,"'"));return e}var dG=NL(null,"core",[{provide:jv,useValue:"unknown"},{provide:QT,deps:[kn]},{provide:U_,deps:[]},{provide:hw,deps:[]}]),hG=[{provide:lc,useClass:lc,deps:[ft,kn,$d,$i,zh]},{provide:Z2,deps:[ft],useFactory:function(e){var a=[];return e.onStable.subscribe(function(){for(;a.length;)a.pop()()}),function(t){a.push(t)}}},{provide:zh,useClass:zh,deps:[[new oi,fo]]},{provide:gu,useClass:gu,deps:[]},xL,{provide:ys,useFactory:function(){return A8},deps:[]},{provide:Eh,useFactory:function(){return E8},deps:[]},{provide:vu,useFactory:function(e){return SC(e=e||"undefined"!=typeof $localize&&$localize.locale||l_),e},deps:[[new jp(vu),new oi,new Fo]]},{provide:DL,useValue:"USD"}],WL=function(){var e=function a(t){F(this,a)};return e.\u0275fac=function(t){return new(t||e)(ce(lc))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:hG}),e}(),Nw=null;function _u(){return Nw}var pF=function e(){F(this,e)},lt=new Ee("DocumentToken"),fc=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:vF,token:e,providedIn:"platform"}),e}();function vF(){return ce(mF)}var gF=new Ee("Location Initialized"),mF=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this))._doc=l,c._init(),c}return W(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return _u().getBaseHref(this._doc)}},{key:"onPopState",value:function(c){var h=_u().getGlobalEventTarget(this._doc,"window");return h.addEventListener("popstate",c,!1),function(){return h.removeEventListener("popstate",c)}}},{key:"onHashChange",value:function(c){var h=_u().getGlobalEventTarget(this._doc,"window");return h.addEventListener("hashchange",c,!1),function(){return h.removeEventListener("hashchange",c)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(c){this.location.pathname=c}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(c,h,_){_F()?this._history.pushState(c,h,_):this.location.hash=_}},{key:"replaceState",value:function(c,h,_){_F()?this._history.replaceState(c,h,_):this.location.hash=_}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(c)}},{key:"getState",value:function(){return this._history.state}}]),n}(fc);return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:Qf,token:e,providedIn:"platform"}),e}();function _F(){return!!window.history.pushState}function Qf(){return new mF(ce(lt))}function dc(e,a){if(0==e.length)return a;if(0==a.length)return e;var t=0;return e.endsWith("/")&&t++,a.startsWith("/")&&t++,2==t?e+a.substring(1):1==t?e+a:e+"/"+a}function gD(e){var a=e.match(/#|\?|$/),t=a&&a.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function hc(e){return e&&"?"!==e[0]?"?"+e:e}var Qv=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:Ms,token:e,providedIn:"root"}),e}();function Ms(e){var a=ce(lt).location;return new mD(ce(fc),a&&a.origin||"")}var Vw=new Ee("appBaseHref"),mD=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;if(F(this,n),(h=t.call(this))._platformLocation=l,h._removeListenerFns=[],null==c&&(c=h._platformLocation.getBaseHrefFromDOM()),null==c)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.");return h._baseHref=c,h}return W(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(c){this._removeListenerFns.push(this._platformLocation.onPopState(c),this._platformLocation.onHashChange(c))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(c){return dc(this._baseHref,c)}},{key:"path",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0],h=this._platformLocation.pathname+hc(this._platformLocation.search),_=this._platformLocation.hash;return _&&c?"".concat(h).concat(_):h}},{key:"pushState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+hc(C));this._platformLocation.pushState(c,h,k)}},{key:"replaceState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+hc(C));this._platformLocation.replaceState(c,h,k)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var h,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(h=this._platformLocation).historyGo)||void 0===_||_.call(h,c)}}]),n}(Qv);return e.\u0275fac=function(t){return new(t||e)(ce(fc),ce(Vw,8))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),yF=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this))._platformLocation=l,h._baseHref="",h._removeListenerFns=[],null!=c&&(h._baseHref=c),h}return W(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(c){this._removeListenerFns.push(this._platformLocation.onPopState(c),this._platformLocation.onHashChange(c))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var h=this._platformLocation.hash;return null==h&&(h="#"),h.length>0?h.substring(1):h}},{key:"prepareExternalUrl",value:function(c){var h=dc(this._baseHref,c);return h.length>0?"#"+h:h}},{key:"pushState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+hc(C));0==k.length&&(k=this._platformLocation.pathname),this._platformLocation.pushState(c,h,k)}},{key:"replaceState",value:function(c,h,_,C){var k=this.prepareExternalUrl(_+hc(C));0==k.length&&(k=this._platformLocation.pathname),this._platformLocation.replaceState(c,h,k)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var h,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(h=this._platformLocation).historyGo)||void 0===_||_.call(h,c)}}]),n}(Qv);return e.\u0275fac=function(t){return new(t||e)(ce(fc),ce(Vw,8))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Jv=function(){var e=function(){function a(t,n){var l=this;F(this,a),this._subject=new ye,this._urlChangeListeners=[],this._platformStrategy=t;var c=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=gD(yu(c)),this._platformStrategy.onPopState(function(h){l._subject.emit({url:l.path(!0),pop:!0,state:h.state,type:h.type})})}return W(a,[{key:"path",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(n))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(n+hc(l))}},{key:"normalize",value:function(n){return a.stripTrailingSlash(function(e,a){return e&&a.startsWith(e)?a.substring(e.length):a}(this._baseHref,yu(n)))}},{key:"prepareExternalUrl",value:function(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}},{key:"go",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(c,"",n,l),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hc(l)),c)}},{key:"replaceState",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(c,"",n,l),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hc(l)),c)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var l,c,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(c=(l=this._platformStrategy).historyGo)||void 0===c||c.call(l,n)}},{key:"onUrlChange",value:function(n){var l=this;this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(c){l._notifyUrlChangeListeners(c.url,c.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",l=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(c){return c(n,l)})}},{key:"subscribe",value:function(n,l,c){return this._subject.subscribe({next:n,error:l,complete:c})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Qv),ce(fc))},e.normalizeQueryParams=hc,e.joinWithSlash=dc,e.stripTrailingSlash=gD,e.\u0275prov=We({factory:KG,token:e,providedIn:"root"}),e}();function KG(){return new Jv(ce(Qv),ce(fc))}function yu(e){return e.replace(/\/index.html$/,"")}var iy=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),t6=function(e){return function(e){var a=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),t=Mv(a);if(t)return t;var n=a.split("-")[0];if(t=Mv(n))return t;if("en"===n)return Z4;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Tr.PluralCase]},vy=function e(){F(this,e)},IF=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this)).locale=l,c}return W(n,[{key:"getPluralCategory",value:function(c,h){switch(t6(h||this.locale)(c)){case iy.Zero:return"zero";case iy.One:return"one";case iy.Two:return"two";case iy.Few:return"few";case iy.Many:return"many";default:return"other"}}}]),n}(vy);return e.\u0275fac=function(t){return new(t||e)(ce(vu))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function RF(e,a){a=encodeURIComponent(a);var n,t=nn(e.split(";"));try{for(t.s();!(n=t.n()).done;){var l=n.value,c=l.indexOf("="),_=cr(-1==c?[l,""]:[l.slice(0,c),l.slice(c+1)],2),k=_[1];if(_[0].trim()===a)return decodeURIComponent(k)}}catch(D){t.e(D)}finally{t.f()}return null}var Ts=function(){var e=function(){function a(t,n,l,c){F(this,a),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=l,this._renderer=c,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return W(a,[{key:"klass",set:function(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(fv(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){var l=this._keyValueDiffer.diff(this._rawClass);l&&this._applyKeyValueChanges(l)}}},{key:"_applyKeyValueChanges",value:function(n){var l=this;n.forEachAddedItem(function(c){return l._toggleClass(c.key,c.currentValue)}),n.forEachChangedItem(function(c){return l._toggleClass(c.key,c.currentValue)}),n.forEachRemovedItem(function(c){c.previousValue&&l._toggleClass(c.key,!1)})}},{key:"_applyIterableChanges",value:function(n){var l=this;n.forEachAddedItem(function(c){if("string"!=typeof c.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(hn(c.item)));l._toggleClass(c.item,!0)}),n.forEachRemovedItem(function(c){return l._toggleClass(c.item,!1)})}},{key:"_applyClasses",value:function(n){var l=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(c){return l._toggleClass(c,!0)}):Object.keys(n).forEach(function(c){return l._toggleClass(c,!!n[c])}))}},{key:"_removeClasses",value:function(n){var l=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(c){return l._toggleClass(c,!1)}):Object.keys(n).forEach(function(c){return l._toggleClass(c,!1)}))}},{key:"_toggleClass",value:function(n,l){var c=this;(n=n.trim())&&n.split(/\s+/g).forEach(function(h){l?c._renderer.addClass(c._ngEl.nativeElement,h):c._renderer.removeClass(c._ngEl.nativeElement,h)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(ys),N(Eh),N(Ue),N(fl))},e.\u0275dir=ve({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),FF=function(){function e(a,t,n,l){F(this,e),this.$implicit=a,this.ngForOf=t,this.index=n,this.count=l}return W(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),er=function(){var e=function(){function a(t,n,l){F(this,a),this._viewContainer=t,this._template=n,this._differs=l,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return W(a,[{key:"ngForOf",set:function(n){this._ngForOf=n,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"ngForTemplate",set:function(n){n&&(this._template=n)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(c){throw new Error("Cannot find a differ supporting object '".concat(n,"' of type '").concat(function(e){return e.name||typeof e}(n),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var l=this._differ.diff(this._ngForOf);l&&this._applyChanges(l)}}},{key:"_applyChanges",value:function(n){var l=this,c=[];n.forEachOperation(function(D,I,L){if(null==D.previousIndex){var G=l._viewContainer.createEmbeddedView(l._template,new FF(null,l._ngForOf,-1,-1),null===L?void 0:L),Y=new TD(D,G);c.push(Y)}else if(null==L)l._viewContainer.remove(null===I?void 0:I);else if(null!==I){var Q=l._viewContainer.get(I);l._viewContainer.move(Q,L);var ie=new TD(D,Q);c.push(ie)}});for(var h=0;h1&&void 0!==arguments[1]?arguments[1]:RD;if(!n||!(n instanceof Map)&&"object"!=typeof n)return null;this.differ||(this.differ=this.differs.find(n).create());var h=this.differ.diff(n),_=c!==this.compareFn;return h&&(this.keyValues=[],h.forEachItem(function(C){l.keyValues.push(O6(C.key,C.currentValue))})),(h||_)&&(this.keyValues.sort(c),this.compareFn=c),this.keyValues}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Eh,16))},e.\u0275pipe=ji({name:"keyvalue",type:e,pure:!1}),e}();function RD(e,a){var t=e.key,n=a.key;if(t===n)return 0;if(void 0===t)return 1;if(void 0===n)return-1;if(null===t)return 1;if(null===n)return-1;if("string"==typeof t&&"string"==typeof n)return t1&&void 0!==arguments[1])||arguments[1],h=t.findTestabilityInTree(l,c);if(null==h)throw new Error("Could not find testability for element.");return h},Kn.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Kn.getAllAngularRootElements=function(){return t.getAllRootElements()},Kn.frameworkStabilizers||(Kn.frameworkStabilizers=[]),Kn.frameworkStabilizers.push(function(c){var h=Kn.getAllAngularTestabilities(),_=h.length,C=!1,k=function(I){C=C||I,0==--_&&c(C)};h.forEach(function(D){D.whenStable(k)})})}},{key:"findTestabilityInTree",value:function(t,n,l){if(null==n)return null;var c=t.getTestability(n);return null!=c?c:l?_u().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}],[{key:"init",value:function(){!function(e){_w=e}(new e)}}]),e}(),j6=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"build",value:function(){return new XMLHttpRequest}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),ng=new Ee("EventManagerPlugins"),yy=function(){var e=function(){function a(t,n){var l=this;F(this,a),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(c){return c.manager=l}),this._plugins=t.slice().reverse()}return W(a,[{key:"addEventListener",value:function(n,l,c){return this._findPluginFor(l).addEventListener(n,l,c)}},{key:"addGlobalEventListener",value:function(n,l,c){return this._findPluginFor(l).addGlobalEventListener(n,l,c)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(n){var l=this._eventNameToPlugin.get(n);if(l)return l;for(var c=this._plugins,h=0;h-1&&(h.splice(L,1),k+=I+".")}),k+=C,0!=h.length||0===C.length)return null;var D={};return D.domEventName=_,D.fullKey=k,D}},{key:"getEventFullKey",value:function(c){var h="",_=function(e){var a=e.key;if(null==a){if(null==(a=e.keyIdentifier))return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===e.location&&QF.hasOwnProperty(a)&&(a=QF[a]))}return $F[a]||a}(c);return" "===(_=_.toLowerCase())?_="space":"."===_&&(_="dot"),ZD.forEach(function(C){C!=_&&(0,$D[C])(c)&&(h+=C+".")}),h+=_}},{key:"eventCallback",value:function(c,h,_){return function(C){n.getEventFullKey(C)===c&&_.runGuarded(function(){return h(C)})}}},{key:"_normalizeKey",value:function(c){switch(c){case"esc":return"escape";default:return c}}}]),n}(Jw);return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),ed=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return ce(Ty)},token:e,providedIn:"root"}),e}(),Ty=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this))._doc=l,c}return W(n,[{key:"sanitize",value:function(c,h){if(null==h)return null;switch(c){case ss.NONE:return h;case ss.HTML:return Ks(h,"HTML")?Yi(h):HO(this._doc,String(h)).toString();case ss.STYLE:return Ks(h,"Style")?Yi(h):h;case ss.SCRIPT:if(Ks(h,"Script"))return Yi(h);throw new Error("unsafe value used in a script context");case ss.URL:return FO(h),Ks(h,"URL")?Yi(h):Sm(String(h));case ss.RESOURCE_URL:if(Ks(h,"ResourceURL"))return Yi(h);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(c," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(c){return function(e){return new cz(e)}(c)}},{key:"bypassSecurityTrustStyle",value:function(c){return function(e){return new Fi(e)}(c)}},{key:"bypassSecurityTrustScript",value:function(c){return function(e){return new oM(e)}(c)}},{key:"bypassSecurityTrustUrl",value:function(c){return function(e){return new fz(e)}(c)}},{key:"bypassSecurityTrustResourceUrl",value:function(c){return function(e){return new LO(e)}(c)}}]),n}(ed);return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:function(){return function(e){return new Ty(e.get(lt))}(ce(uv))},token:e,providedIn:"root"}),e}(),vj=NL(dG,"browser",[{provide:jv,useValue:"browser"},{provide:HT,useValue:function(){B6.makeCurrent(),jF.init()},multi:!0},{provide:lt,useFactory:function(){return e=document,Ed=e,document;var e},deps:[]}]),gj=[[],{provide:qm,useValue:"root"},{provide:$d,useFactory:function(){return new $d},deps:[]},{provide:ng,useClass:ky,multi:!0,deps:[lt,ft,jv]},{provide:ng,useClass:sj,multi:!0,deps:[lt]},[],{provide:qh,useClass:qh,deps:[yy,by,Yf]},{provide:Ff,useExisting:qh},{provide:jD,useExisting:by},{provide:by,useClass:by,deps:[lt]},{provide:qT,useClass:qT,deps:[ft]},{provide:yy,useClass:yy,deps:[ng,ft]},{provide:zD,useClass:j6,deps:[]},[]],QD=function(){var e=function(){function a(t){if(F(this,a),t)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.")}return W(a,null,[{key:"withServerTransition",value:function(n){return{ngModule:a,providers:[{provide:Yf,useValue:n.appId},{provide:GF,useExisting:Yf},G6]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(e,12))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:gj,imports:[Wa,WL]}),e}();function ut(){for(var e=arguments.length,a=new Array(e),t=0;t0){var c=n.slice(0,l),h=c.toLowerCase(),_=n.slice(l+1).trim();t.maybeSetNormalizedName(c,h),t.headers.has(h)?t.headers.get(h).push(_):t.headers.set(h,[_])}})}:function(){t.headers=new Map,Object.keys(a).forEach(function(n){var l=a[n],c=n.toLowerCase();"string"==typeof l&&(l=[l]),l.length>0&&(t.headers.set(c,l),t.maybeSetNormalizedName(n,c))})}:this.headers=new Map}return W(e,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,n){return this.clone({name:t,value:n,op:"a"})}},{key:"set",value:function(t,n){return this.clone({name:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({name:t,value:n,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(n){return t.applyUpdate(n)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var n=this;t.init(),Array.from(t.headers.keys()).forEach(function(l){n.headers.set(l,t.headers.get(l)),n.normalizedNames.set(l,t.normalizedNames.get(l))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(t){var n=t.name.toLowerCase();switch(t.op){case"a":case"s":var l=t.value;if("string"==typeof l&&(l=[l]),0===l.length)return;this.maybeSetNormalizedName(t.name,n);var c=("a"===t.op?this.headers.get(n):void 0)||[];c.push.apply(c,Et(l)),this.headers.set(n,c);break;case"d":var h=t.value;if(h){var _=this.headers.get(n);if(!_)return;0===(_=_.filter(function(C){return-1===h.indexOf(C)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,_)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(t){var n=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(l){return t(n.normalizedNames.get(l),n.headers.get(l))})}}]),e}(),kj=function(){function e(){F(this,e)}return W(e,[{key:"encodeKey",value:function(t){return sN(t)}},{key:"encodeValue",value:function(t){return sN(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),e}();function Mj(e,a){var t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(l){var c=l.indexOf("="),_=cr(-1==c?[a.decodeKey(l),""]:[a.decodeKey(l.slice(0,c)),a.decodeValue(l.slice(c+1))],2),C=_[0],k=_[1],D=t.get(C)||[];D.push(k),t.set(C,D)}),t}var ig=/%(\d[a-f0-9])/gi,xj={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function sN(e){return encodeURIComponent(e).replace(ig,function(a,t){var n;return null!==(n=xj[t])&&void 0!==n?n:a})}function lN(e){return"".concat(e)}var ag=function(){function e(){var a=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(F(this,e),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new kj,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Mj(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(n){var l=t.fromObject[n];a.map.set(n,Array.isArray(l)?l:[l])})):this.map=null}return W(e,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var n=this.map.get(t);return n?n[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,n){return this.clone({param:t,value:n,op:"a"})}},{key:"appendAll",value:function(t){var n=[];return Object.keys(t).forEach(function(l){var c=t[l];Array.isArray(c)?c.forEach(function(h){n.push({param:l,value:h,op:"a"})}):n.push({param:l,value:c,op:"a"})}),this.clone(n)}},{key:"set",value:function(t,n){return this.clone({param:t,value:n,op:"s"})}},{key:"delete",value:function(t,n){return this.clone({param:t,value:n,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(n){var l=t.encoder.encodeKey(n);return t.map.get(n).map(function(c){return l+"="+t.encoder.encodeValue(c)}).join("&")}).filter(function(n){return""!==n}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(n){return t.map.set(n,t.cloneFrom.map.get(n))}),this.updates.forEach(function(n){switch(n.op){case"a":case"s":var l=("a"===n.op?t.map.get(n.param):void 0)||[];l.push(lN(n.value)),t.map.set(n.param,l);break;case"d":if(void 0===n.value){t.map.delete(n.param);break}var c=t.map.get(n.param)||[],h=c.indexOf(lN(n.value));-1!==h&&c.splice(h,1),c.length>0?t.map.set(n.param,c):t.map.delete(n.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),rA=function(){function e(){F(this,e),this.map=new Map}return W(e,[{key:"set",value:function(t,n){return this.map.set(t,n),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function Dj(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function a1(e){return"undefined"!=typeof Blob&&e instanceof Blob}function cN(e){return"undefined"!=typeof FormData&&e instanceof FormData}var Py=function(){function e(a,t,n,l){var c;if(F(this,e),this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=a.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||l?(this.body=void 0!==n?n:null,c=l):c=n,c&&(this.reportProgress=!!c.reportProgress,this.withCredentials=!!c.withCredentials,c.responseType&&(this.responseType=c.responseType),c.headers&&(this.headers=c.headers),c.context&&(this.context=c.context),c.params&&(this.params=c.params)),this.headers||(this.headers=new Zh),this.context||(this.context=new rA),this.params){var h=this.params.toString();if(0===h.length)this.urlWithParams=t;else{var _=t.indexOf("?");this.urlWithParams=t+(-1===_?"?":_0&&void 0!==arguments[0]?arguments[0]:{},l=t.method||this.method,c=t.url||this.url,h=t.responseType||this.responseType,_=void 0!==t.body?t.body:this.body,C=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,k=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,D=t.headers||this.headers,I=t.params||this.params,L=null!==(n=t.context)&&void 0!==n?n:this.context;return void 0!==t.setHeaders&&(D=Object.keys(t.setHeaders).reduce(function(G,Y){return G.set(Y,t.setHeaders[Y])},D)),t.setParams&&(I=Object.keys(t.setParams).reduce(function(G,Y){return G.set(Y,t.setParams[Y])},I)),new e(l,c,_,{params:I,headers:D,context:L,reportProgress:k,responseType:h,withCredentials:C})}}]),e}(),og=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),o1=function e(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";F(this,e),this.headers=a.headers||new Zh,this.status=void 0!==a.status?a.status:t,this.statusText=a.statusText||n,this.url=a.url||null,this.ok=this.status>=200&&this.status<300},Ej=function(e){ae(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return F(this,t),(n=a.call(this,l)).type=og.ResponseHeader,n}return W(t,[{key:"clone",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({headers:l.headers||this.headers,status:void 0!==l.status?l.status:this.status,statusText:l.statusText||this.statusText,url:l.url||this.url||void 0})}}]),t}(o1),s1=function(e){ae(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return F(this,t),(n=a.call(this,l)).type=og.Response,n.body=void 0!==l.body?l.body:null,n}return W(t,[{key:"clone",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==l.body?l.body:this.body,headers:l.headers||this.headers,status:void 0!==l.status?l.status:this.status,statusText:l.statusText||this.statusText,url:l.url||this.url||void 0})}}]),t}(o1),fN=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this,n,0,"Unknown Error")).name="HttpErrorResponse",l.ok=!1,l.message=l.status>=200&&l.status<300?"Http failure during parsing for ".concat(n.url||"(unknown url)"):"Http failure response for ".concat(n.url||"(unknown url)",": ").concat(n.status," ").concat(n.statusText),l.error=n.error||null,l}return t}(o1);function Oy(e,a){return{body:a,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var dN=function(){var e=function(){function a(t){F(this,a),this.handler=t}return W(a,[{key:"request",value:function(n,l){var _,c=this,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n instanceof Py)_=n;else{var C=void 0;C=h.headers instanceof Zh?h.headers:new Zh(h.headers);var k=void 0;h.params&&(k=h.params instanceof ag?h.params:new ag({fromObject:h.params})),_=new Py(n,l,void 0!==h.body?h.body:null,{headers:C,context:h.context,params:k,reportProgress:h.reportProgress,responseType:h.responseType||"json",withCredentials:h.withCredentials})}var D=ut(_).pipe(Xh(function(L){return c.handler.handle(L)}));if(n instanceof Py||"events"===h.observe)return D;var I=D.pipe(vr(function(L){return L instanceof s1}));switch(h.observe||"body"){case"body":switch(_.responseType){case"arraybuffer":return I.pipe(He(function(L){if(null!==L.body&&!(L.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return L.body}));case"blob":return I.pipe(He(function(L){if(null!==L.body&&!(L.body instanceof Blob))throw new Error("Response is not a Blob.");return L.body}));case"text":return I.pipe(He(function(L){if(null!==L.body&&"string"!=typeof L.body)throw new Error("Response is not a string.");return L.body}));case"json":default:return I.pipe(He(function(L){return L.body}))}case"response":return I;default:throw new Error("Unreachable: unhandled observe type ".concat(h.observe,"}"))}}},{key:"delete",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",n,l)}},{key:"get",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",n,l)}},{key:"head",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",n,l)}},{key:"jsonp",value:function(n,l){return this.request("JSONP",n,{params:(new ag).append(l,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",n,l)}},{key:"patch",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",n,Oy(c,l))}},{key:"post",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",n,Oy(c,l))}},{key:"put",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",n,Oy(c,l))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(nA))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),hN=function(){function e(a,t){F(this,e),this.next=a,this.interceptor=t}return W(e,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),e}(),iA=new Ee("HTTP_INTERCEPTORS"),pN=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"intercept",value:function(n,l){return l.handle(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),CN=/^\)\]\}',?\n/,l1=function(){var e=function(){function a(t){F(this,a),this.xhrFactory=t}return W(a,[{key:"handle",value:function(n){var l=this;if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new gn(function(c){var h=l.xhrFactory.build();if(h.open(n.method,n.urlWithParams),n.withCredentials&&(h.withCredentials=!0),n.headers.forEach(function(fe,se){return h.setRequestHeader(fe,se.join(","))}),n.headers.has("Accept")||h.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){var _=n.detectContentTypeHeader();null!==_&&h.setRequestHeader("Content-Type",_)}if(n.responseType){var C=n.responseType.toLowerCase();h.responseType="json"!==C?C:"text"}var k=n.serializeBody(),D=null,I=function(){if(null!==D)return D;var se=1223===h.status?204:h.status,be=h.statusText||"OK",Ce=new Zh(h.getAllResponseHeaders()),je=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(h)||n.url;return D=new Ej({headers:Ce,status:se,statusText:be,url:je})},L=function(){var se=I(),be=se.headers,Ce=se.status,je=se.statusText,$e=se.url,kt=null;204!==Ce&&(kt=void 0===h.response?h.responseText:h.response),0===Ce&&(Ce=kt?200:0);var Dn=Ce>=200&&Ce<300;if("json"===n.responseType&&"string"==typeof kt){var Zn=kt;kt=kt.replace(CN,"");try{kt=""!==kt?JSON.parse(kt):null}catch(zr){kt=Zn,Dn&&(Dn=!1,kt={error:zr,text:kt})}}Dn?(c.next(new s1({body:kt,headers:be,status:Ce,statusText:je,url:$e||void 0})),c.complete()):c.error(new fN({error:kt,headers:be,status:Ce,statusText:je,url:$e||void 0}))},G=function(se){var be=I(),je=new fN({error:se,status:h.status||0,statusText:h.statusText||"Unknown Error",url:be.url||void 0});c.error(je)},Y=!1,Q=function(se){Y||(c.next(I()),Y=!0);var be={type:og.DownloadProgress,loaded:se.loaded};se.lengthComputable&&(be.total=se.total),"text"===n.responseType&&!!h.responseText&&(be.partialText=h.responseText),c.next(be)},ie=function(se){var be={type:og.UploadProgress,loaded:se.loaded};se.lengthComputable&&(be.total=se.total),c.next(be)};return h.addEventListener("load",L),h.addEventListener("error",G),h.addEventListener("timeout",G),h.addEventListener("abort",G),n.reportProgress&&(h.addEventListener("progress",Q),null!==k&&h.upload&&h.upload.addEventListener("progress",ie)),h.send(k),c.next({type:og.Sent}),function(){h.removeEventListener("error",G),h.removeEventListener("abort",G),h.removeEventListener("load",L),h.removeEventListener("timeout",G),n.reportProgress&&(h.removeEventListener("progress",Q),null!==k&&h.upload&&h.upload.removeEventListener("progress",ie)),h.readyState!==h.DONE&&h.abort()}})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(zD))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),u1=new Ee("XSRF_COOKIE_NAME"),aA=new Ee("XSRF_HEADER_NAME"),SN=function e(){F(this,e)},sg=function(){var e=function(){function a(t,n,l){F(this,a),this.doc=t,this.platform=n,this.cookieName=l,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return W(a,[{key:"getToken",value:function(){if("server"===this.platform)return null;var n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=RF(n,this.cookieName),this.lastCookieString=n),this.lastToken}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(lt),ce(jv),ce(u1))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),oA=function(){var e=function(){function a(t,n){F(this,a),this.tokenService=t,this.headerName=n}return W(a,[{key:"intercept",value:function(n,l){var c=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||c.startsWith("http://")||c.startsWith("https://"))return l.handle(n);var h=this.tokenService.getToken();return null!==h&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,h)})),l.handle(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(SN),ce(aA))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Kh=function(){var e=function(){function a(t,n){F(this,a),this.backend=t,this.injector=n,this.chain=null}return W(a,[{key:"handle",value:function(n){if(null===this.chain){var l=this.injector.get(iA,[]);this.chain=l.reduceRight(function(c,h){return new hN(c,h)},this.backend)}return this.chain.handle(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(i1),ce(kn))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Ij=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"disable",value:function(){return{ngModule:a,providers:[{provide:oA,useClass:pN}]}}},{key:"withOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:a,providers:[n.cookieName?{provide:u1,useValue:n.cookieName}:[],n.headerName?{provide:aA,useValue:n.headerName}:[]]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[oA,{provide:iA,useExisting:oA,multi:!0},{provide:SN,useClass:sg},{provide:u1,useValue:"XSRF-TOKEN"},{provide:aA,useValue:"X-XSRF-TOKEN"}]}),e}(),kN=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[dN,{provide:nA,useClass:Kh},l1,{provide:i1,useExisting:l1}],imports:[[Ij.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),xa=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this))._value=n,l}return W(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(l){var c=Ie(Oe(t.prototype),"_subscribe",this).call(this,l);return c&&!c.closed&&l.next(this._value),c}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Hu;return this._value}},{key:"next",value:function(l){Ie(Oe(t.prototype),"next",this).call(this,this._value=l)}}]),t}(qe),Rj=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"notifyNext",value:function(l,c,h,_,C){this.destination.next(c)}},{key:"notifyError",value:function(l,c){this.destination.error(l)}},{key:"notifyComplete",value:function(l){this.destination.complete()}}]),t}(Ze),Lj=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this)).parent=n,h.outerValue=l,h.outerIndex=c,h.index=0,h}return W(t,[{key:"_next",value:function(l){this.parent.notifyNext(this.outerValue,l,this.outerIndex,this.index++,this)}},{key:"_error",value:function(l){this.parent.notifyError(l,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),t}(Ze);function Fj(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Lj(e,t,n);if(!l.closed)return a instanceof gn?a.subscribe(l):Yn(a)(l)}var MN={};function Ry(){for(var e=arguments.length,a=new Array(e),t=0;t=2&&(t=!0),function(l){return l.lift(new Wj(e,a,t))}}var Wj=function(){function e(a,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];F(this,e),this.accumulator=a,this.seed=t,this.hasSeed=n}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new DN(t,this.accumulator,this.seed,this.hasSeed))}}]),e}(),DN=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n)).accumulator=l,_._seed=c,_.hasSeed=h,_.index=0,_}return W(t,[{key:"seed",get:function(){return this._seed},set:function(l){this.hasSeed=!0,this._seed=l}},{key:"_next",value:function(l){if(this.hasSeed)return this._tryNext(l);this.seed=l,this.destination.next(l)}},{key:"_tryNext",value:function(l){var h,c=this.index++;try{h=this.accumulator(this.seed,l,c)}catch(_){this.destination.error(_)}this.seed=h,this.destination.next(h)}}]),t}(Ze);function _o(e){return function(t){var n=new AN(e),l=t.lift(n);return n.caught=l}}var AN=function(){function e(a){F(this,e),this.selector=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new lA(t,this.selector,this.caught))}}]),e}(),lA=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).selector=l,h.caught=c,h}return W(t,[{key:"error",value:function(l){if(!this.isStopped){var c;try{c=this.selector(l,this.caught)}catch(C){return void Ie(Oe(t.prototype),"error",this).call(this,C)}this._unsubscribeAndRecycle();var h=new Gc(this);this.add(h);var _=Ii(c,h);_!==h&&this.add(_)}}}]),t}(at);function uA(e){return function(t){return 0===e?h1():t.lift(new Yj(e))}}var Yj=function(){function e(a){if(F(this,e),this.total=a,this.total<0)throw new xN}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new qj(t,this.total))}}]),e}(),qj=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).total=l,c.ring=new Array,c.count=0,c}return W(t,[{key:"_next",value:function(l){var c=this.ring,h=this.total,_=this.count++;c.length0)for(var h=this.count>=this.total?this.total:this.count,_=this.ring,C=0;C0&&void 0!==arguments[0]?arguments[0]:Kj;return function(a){return a.lift(new Xj(e))}}var Xj=function(){function e(a){F(this,e),this.errorFactory=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new Zj(t,this.errorFactory))}}]),e}(),Zj=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).errorFactory=l,c.hasValue=!1,c}return W(t,[{key:"_next",value:function(l){this.hasValue=!0,this.destination.next(l)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var l;try{l=this.errorFactory()}catch(c){l=c}this.destination.error(l)}}]),t}(Ze);function Kj(){return new f1}function PN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(a){return a.lift(new $j(e))}}var $j=function(){function e(a){F(this,e),this.defaultValue=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new Qj(t,this.defaultValue))}}]),e}(),Qj=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).defaultValue=l,c.isEmpty=!0,c}return W(t,[{key:"_next",value:function(l){this.isEmpty=!1,this.destination.next(l)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),t}(Ze);function lg(e,a){var t=arguments.length>=2;return function(n){return n.pipe(e?vr(function(l,c){return e(l,c,n)}):Ob,or(1),t?PN(a):EN(function(){return new f1}))}}function td(){}function Ya(e,a,t){return function(l){return l.lift(new e7(e,a,t))}}var e7=function(){function e(a,t,n){F(this,e),this.nextOrObserver=a,this.error=t,this.complete=n}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new cA(t,this.nextOrObserver,this.error,this.complete))}}]),e}(),cA=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n))._tapNext=td,_._tapError=td,_._tapComplete=td,_._tapError=c||td,_._tapComplete=h||td,nt(l)?(_._context=It(_),_._tapNext=l):l&&(_._context=l,_._tapNext=l.next||td,_._tapError=l.error||td,_._tapComplete=l.complete||td),_}return W(t,[{key:"_next",value:function(l){try{this._tapNext.call(this._context,l)}catch(c){return void this.destination.error(c)}this.destination.next(l)}},{key:"_error",value:function(l){try{this._tapError.call(this._context,l)}catch(c){return void this.destination.error(c)}this.destination.error(l)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(l){return void this.destination.error(l)}return this.destination.complete()}}]),t}(Ze),n7=function(){function e(a){F(this,e),this.callback=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new r7(t,this.callback))}}]),e}(),r7=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).add(new Be(l)),c}return t}(Ze),_c=function e(a,t){F(this,e),this.id=a,this.url=t},fA=function(e){ae(t,e);var a=ue(t);function t(n,l){var c,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",_=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return F(this,t),(c=a.call(this,n,l)).navigationTrigger=h,c.restoredState=_,c}return W(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(_c),kl=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n,l)).urlAfterRedirects=c,h}return W(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(_c),p1=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n,l)).reason=c,h}return W(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(_c),ug=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n,l)).error=c,h}return W(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(_c),dA=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return W(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(_c),ON=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return W(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(_c),IN=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h,_){var C;return F(this,t),(C=a.call(this,n,l)).urlAfterRedirects=c,C.state=h,C.shouldActivate=_,C}return W(t,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),t}(_c),RN=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return W(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(_c),i7=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,n,l)).urlAfterRedirects=c,_.state=h,_}return W(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(_c),hA=function(){function e(a){F(this,e),this.route=a}return W(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),LN=function(){function e(a){F(this,e),this.route=a}return W(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),a7=function(){function e(a){F(this,e),this.snapshot=a}return W(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),v1=function(){function e(a){F(this,e),this.snapshot=a}return W(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),o7=function(){function e(a){F(this,e),this.snapshot=a}return W(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),s7=function(){function e(a){F(this,e),this.snapshot=a}return W(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),FN=function(){function e(a,t,n){F(this,e),this.routerEvent=a,this.position=t,this.anchor=n}return W(e,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),e}(),Cn="primary",l7=function(){function e(a){F(this,e),this.params=a||{}}return W(e,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n[0]:n}return null}},{key:"getAll",value:function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n:[n]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function cg(e){return new l7(e)}var pA="ngNavigationCancelingError";function g1(e){var a=Error("NavigationCancelingError: "+e);return a[pA]=!0,a}function Fy(e,a,t){var n=t.path.split("/");if(n.length>e.length||"full"===t.pathMatch&&(a.hasChildren()||n.length0?e[e.length-1]:null}function ea(e,a){for(var t in e)e.hasOwnProperty(t)&&a(e[t],t)}function Su(e){return gv(e)?e:vv(e)?yt(Promise.resolve(e)):ut(e)}var c7={exact:function gA(e,a,t){if(!rd(e.segments,a.segments)||!dg(e.segments,a.segments,t)||e.numberOfChildren!==a.numberOfChildren)return!1;for(var n in a.children)if(!e.children[n]||!gA(e.children[n],a.children[n],t))return!1;return!0},subset:m1},zN={exact:function(e,a){return wu(e,a)},subset:function(e,a){return Object.keys(a).length<=Object.keys(e).length&&Object.keys(a).every(function(t){return NN(e[t],a[t])})},ignored:function(){return!0}};function vA(e,a,t){return c7[t.paths](e.root,a.root,t.matrixParams)&&zN[t.queryParams](e.queryParams,a.queryParams)&&!("exact"===t.fragment&&e.fragment!==a.fragment)}function m1(e,a,t){return _1(e,a,a.segments,t)}function _1(e,a,t,n){if(e.segments.length>t.length){var l=e.segments.slice(0,t.length);return!(!rd(l,t)||a.hasChildren()||!dg(l,t,n))}if(e.segments.length===t.length){if(!rd(e.segments,t)||!dg(e.segments,t,n))return!1;for(var c in a.children)if(!e.children[c]||!m1(e.children[c],a.children[c],n))return!1;return!0}var h=t.slice(0,e.segments.length),_=t.slice(e.segments.length);return!!(rd(e.segments,h)&&dg(e.segments,h,n)&&e.children[Cn])&&_1(e.children[Cn],a,_,n)}function dg(e,a,t){return a.every(function(n,l){return zN[t](e[l].parameters,n.parameters)})}var nd=function(){function e(a,t,n){F(this,e),this.root=a,this.queryParams=t,this.fragment=n}return W(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=cg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return yc.serialize(this)}}]),e}(),wn=function(){function e(a,t){var n=this;F(this,e),this.segments=a,this.children=t,this.parent=null,ea(t,function(l,c){return l.parent=n})}return W(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return hg(this)}}]),e}(),Ml=function(){function e(a,t){F(this,e),this.path=a,this.parameters=t}return W(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=cg(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return S1(this)}}]),e}();function rd(e,a){return e.length===a.length&&e.every(function(t,n){return t.path===a[n].path})}var y1=function e(){F(this,e)},b1=function(){function e(){F(this,e)}return W(e,[{key:"parse",value:function(t){var n=new g7(t);return new nd(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}},{key:"serialize",value:function(t){var n="/".concat(pg(t.root,!0)),l=function(e){var a=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(l){return"".concat(vg(t),"=").concat(vg(l))}).join("&"):"".concat(vg(t),"=").concat(vg(n))}).filter(function(t){return!!t});return a.length?"?".concat(a.join("&")):""}(t.queryParams),c="string"==typeof t.fragment?"#".concat(function(e){return encodeURI(e)}(t.fragment)):"";return"".concat(n).concat(l).concat(c)}}]),e}(),yc=new b1;function hg(e){return e.segments.map(function(a){return S1(a)}).join("/")}function pg(e,a){if(!e.hasChildren())return hg(e);if(a){var t=e.children[Cn]?pg(e.children[Cn],!1):"",n=[];return ea(e.children,function(c,h){h!==Cn&&n.push("".concat(h,":").concat(pg(c,!1)))}),n.length>0?"".concat(t,"(").concat(n.join("//"),")"):t}var l=function(e,a){var t=[];return ea(e.children,function(n,l){l===Cn&&(t=t.concat(a(n,l)))}),ea(e.children,function(n,l){l!==Cn&&(t=t.concat(a(n,l)))}),t}(e,function(c,h){return h===Cn?[pg(e.children[Cn],!1)]:["".concat(h,":").concat(pg(c,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[Cn]?"".concat(hg(e),"/").concat(l[0]):"".concat(hg(e),"/(").concat(l.join("//"),")")}function WN(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function vg(e){return WN(e).replace(/%3B/gi,";")}function C1(e){return WN(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function w1(e){return decodeURIComponent(e)}function mA(e){return w1(e.replace(/\+/g,"%20"))}function S1(e){return"".concat(C1(e.path)).concat(function(e){return Object.keys(e).map(function(a){return";".concat(C1(a),"=").concat(C1(e[a]))}).join("")}(e.parameters))}var _A=/^[^\/()?;=#]+/;function gg(e){var a=e.match(_A);return a?a[0]:""}var YN=/^[^=?&#]+/,v7=/^[^?&#]+/,g7=function(){function e(a){F(this,e),this.url=a,this.remaining=a}return W(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new wn([],{}):new wn([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));var l={};return this.peekStartsWith("(")&&(l=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(l[Cn]=new wn(t,n)),l}},{key:"parseSegment",value:function(){var t=gg(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Ml(w1(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var n=gg(this.remaining);if(n){this.capture(n);var l="";if(this.consumeOptional("=")){var c=gg(this.remaining);c&&this.capture(l=c)}t[w1(n)]=w1(l)}}},{key:"parseQueryParam",value:function(t){var n=function(e){var a=e.match(YN);return a?a[0]:""}(this.remaining);if(n){this.capture(n);var l="";if(this.consumeOptional("=")){var c=function(e){var a=e.match(v7);return a?a[0]:""}(this.remaining);c&&this.capture(l=c)}var h=mA(n),_=mA(l);if(t.hasOwnProperty(h)){var C=t[h];Array.isArray(C)||(t[h]=C=[C]),C.push(_)}else t[h]=_}}},{key:"parseParens",value:function(t){var n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var l=gg(this.remaining),c=this.remaining[l.length];if("/"!==c&&")"!==c&&";"!==c)throw new Error("Cannot parse url '".concat(this.url,"'"));var h=void 0;l.indexOf(":")>-1?(h=l.substr(0,l.indexOf(":")),this.capture(h),this.capture(":")):t&&(h=Cn);var _=this.parseChildren();n[h]=1===Object.keys(_).length?_[Cn]:new wn([],_),this.consumeOptional("//")}return n}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),e}(),Ny=function(){function e(a){F(this,e),this._root=a}return W(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}},{key:"children",value:function(t){var n=k1(t,this._root);return n?n.children.map(function(l){return l.value}):[]}},{key:"firstChild",value:function(t){var n=k1(t,this._root);return n&&n.children.length>0?n.children[0].value:null}},{key:"siblings",value:function(t){var n=Vy(t,this._root);return n.length<2?[]:n[n.length-2].children.map(function(c){return c.value}).filter(function(c){return c!==t})}},{key:"pathFromRoot",value:function(t){return Vy(t,this._root).map(function(n){return n.value})}}]),e}();function k1(e,a){if(e===a.value)return a;var n,t=nn(a.children);try{for(t.s();!(n=t.n()).done;){var c=k1(e,n.value);if(c)return c}}catch(h){t.e(h)}finally{t.f()}return null}function Vy(e,a){if(e===a.value)return[a];var n,t=nn(a.children);try{for(t.s();!(n=t.n()).done;){var c=Vy(e,n.value);if(c.length)return c.unshift(a),c}}catch(h){t.e(h)}finally{t.f()}return[]}var ku=function(){function e(a,t){F(this,e),this.value=a,this.children=t}return W(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function mg(e){var a={};return e&&e.children.forEach(function(t){return a[t.value.outlet]=t}),a}var yA=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).snapshot=l,bA(It(c),n),c}return W(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(Ny);function M1(e,a){var t=function(e,a){var h=new x1([],{},{},"",{},Cn,a,null,e.root,-1,{});return new KN("",new ku(h,[]))}(e,a),n=new xa([new Ml("",{})]),l=new xa({}),c=new xa({}),h=new xa({}),_=new xa(""),C=new gr(n,l,h,_,c,Cn,a,t.root);return C.snapshot=t.root,new yA(new ku(C,[]),t)}var gr=function(){function e(a,t,n,l,c,h,_,C){F(this,e),this.url=a,this.params=t,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=h,this.component=_,this._futureSnapshot=C}return W(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(He(function(t){return cg(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(He(function(t){return cg(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function ZN(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=e.pathFromRoot,n=0;if("always"!==a)for(n=t.length-1;n>=1;){var l=t[n],c=t[n-1];if(l.routeConfig&&""===l.routeConfig.path)n--;else{if(c.component)break;n--}}return _7(t.slice(n))}function _7(e){return e.reduce(function(a,t){return{params:Object.assign(Object.assign({},a.params),t.params),data:Object.assign(Object.assign({},a.data),t.data),resolve:Object.assign(Object.assign({},a.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var x1=function(){function e(a,t,n,l,c,h,_,C,k,D,I){F(this,e),this.url=a,this.params=t,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=h,this.component=_,this.routeConfig=C,this._urlSegment=k,this._lastPathIndex=D,this._resolve=I}return W(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=cg(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=cg(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(l){return l.toString()}).join("/"),n=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(n,"')")}}]),e}(),KN=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,l)).url=n,bA(It(c),l),c}return W(t,[{key:"toString",value:function(){return $N(this._root)}}]),t}(Ny);function bA(e,a){a.value._routerState=e,a.children.forEach(function(t){return bA(e,t)})}function $N(e){var a=e.children.length>0?" { ".concat(e.children.map($N).join(", ")," } "):"";return"".concat(e.value).concat(a)}function CA(e){if(e.snapshot){var a=e.snapshot,t=e._futureSnapshot;e.snapshot=t,wu(a.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),a.fragment!==t.fragment&&e.fragment.next(t.fragment),wu(a.params,t.params)||e.params.next(t.params),function(e,a){if(e.length!==a.length)return!1;for(var t=0;tl;){if(c-=l,!(n=n.parent))throw new Error("Invalid number of '../'");l=n.segments.length}return new SA(n,!1,l-c)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+c,e.numberOfDoubleDots)}(c,a,e),_=h.processChildren?E1(h.segmentGroup,h.index,c.commands):n3(h.segmentGroup,h.index,c.commands);return wA(h.segmentGroup,_,a,n,l)}function A1(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function By(e){return"object"==typeof e&&null!=e&&e.outlets}function wA(e,a,t,n,l){var c={};return n&&ea(n,function(h,_){c[_]=Array.isArray(h)?h.map(function(C){return"".concat(C)}):"".concat(h)}),new nd(t.root===e?a:JN(t.root,e,a),c,l)}function JN(e,a,t){var n={};return ea(e.children,function(l,c){n[c]=l===a?t:JN(l,a,t)}),new wn(e.segments,n)}var e3=function(){function e(a,t,n){if(F(this,e),this.isAbsolute=a,this.numberOfDoubleDots=t,this.commands=n,a&&n.length>0&&A1(n[0]))throw new Error("Root segment cannot have matrix parameters");var l=n.find(By);if(l&&l!==BN(n))throw new Error("{outlets:{}} has to be the last command")}return W(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),SA=function e(a,t,n){F(this,e),this.segmentGroup=a,this.processChildren=t,this.index=n};function n3(e,a,t){if(e||(e=new wn([],{})),0===e.segments.length&&e.hasChildren())return E1(e,a,t);var n=function(e,a,t){for(var n=0,l=a,c={match:!1,pathIndex:0,commandIndex:0};l=t.length)return c;var h=e.segments[l],_=t[n];if(By(_))break;var C="".concat(_),k=n0&&void 0===C)break;if(C&&k&&"object"==typeof k&&void 0===k.outlets){if(!i3(C,k,h))return c;n+=2}else{if(!i3(C,{},h))return c;n++}l++}return{match:!0,pathIndex:l,commandIndex:n}}(e,a,t),l=t.slice(n.commandIndex);if(n.match&&n.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",t=0;t0)?Object.assign({},yg):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var c=(a.matcher||Fy)(t,e,a);if(!c)return Object.assign({},yg);var h={};ea(c.posParams,function(C,k){h[k]=C.path});var _=c.consumed.length>0?Object.assign(Object.assign({},h),c.consumed[c.consumed.length-1].parameters):h;return{matched:!0,consumedSegments:c.consumed,lastChild:c.consumed.length,parameters:_,positionalParamSegments:null!==(n=c.posParams)&&void 0!==n?n:{}}}function O1(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&R7(e,t,n)){var c=new wn(a,I7(e,a,n,new wn(t,e.children)));return c._sourceSegment=e,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:[]}}if(0===t.length&&L7(e,t,n)){var h=new wn(e.segments,O7(e,a,t,n,e.children,l));return h._sourceSegment=e,h._segmentIndexShift=a.length,{segmentGroup:h,slicedSegments:t}}var _=new wn(e.segments,e.children);return _._sourceSegment=e,_._segmentIndexShift=a.length,{segmentGroup:_,slicedSegments:t}}function O7(e,a,t,n,l,c){var C,h={},_=nn(n);try{for(_.s();!(C=_.n()).done;){var k=C.value;if(I1(e,t,k)&&!l[As(k)]){var D=new wn([],{});D._sourceSegment=e,D._segmentIndexShift="legacy"===c?e.segments.length:a.length,h[As(k)]=D}}}catch(I){_.e(I)}finally{_.f()}return Object.assign(Object.assign({},l),h)}function I7(e,a,t,n){var l={};l[Cn]=n,n._sourceSegment=e,n._segmentIndexShift=a.length;var h,c=nn(t);try{for(c.s();!(h=c.n()).done;){var _=h.value;if(""===_.path&&As(_)!==Cn){var C=new wn([],{});C._sourceSegment=e,C._segmentIndexShift=a.length,l[As(_)]=C}}}catch(k){c.e(k)}finally{c.f()}return l}function R7(e,a,t){return t.some(function(n){return I1(e,a,n)&&As(n)!==Cn})}function L7(e,a,t){return t.some(function(n){return I1(e,a,n)})}function I1(e,a,t){return(!(e.hasChildren()||a.length>0)||"full"!==t.pathMatch)&&""===t.path}function h3(e,a,t,n){return!!(As(e)===n||n!==Cn&&I1(a,t,e))&&("**"===e.path||P1(a,e,t).matched)}function p3(e,a,t){return 0===a.length&&!e.children[t]}var Uy=function e(a){F(this,e),this.segmentGroup=a||null},v3=function e(a){F(this,e),this.urlTree=a};function bg(e){return new gn(function(a){return a.error(new Uy(e))})}function TA(e){return new gn(function(a){return a.error(new v3(e))})}function DA(e){return new gn(function(a){return a.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var g3=function(){function e(a,t,n,l,c){F(this,e),this.configLoader=t,this.urlSerializer=n,this.urlTree=l,this.config=c,this.allowRedirects=!0,this.ngModule=a.get(rc)}return W(e,[{key:"apply",value:function(){var t=this,n=O1(this.urlTree.root,[],[],this.config).segmentGroup,l=new wn(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,l,Cn).pipe(He(function(_){return t.createUrlTree(R1(_),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(_o(function(_){if(_ instanceof v3)return t.allowRedirects=!1,t.match(_.urlTree);throw _ instanceof Uy?t.noMatchError(_):_}))}},{key:"match",value:function(t){var n=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Cn).pipe(He(function(h){return n.createUrlTree(R1(h),t.queryParams,t.fragment)})).pipe(_o(function(h){throw h instanceof Uy?n.noMatchError(h):h}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,n,l){var c=t.segments.length>0?new wn([],pd({},Cn,t)):t;return new nd(c,n,l)}},{key:"expandSegmentGroup",value:function(t,n,l,c){return 0===l.segments.length&&l.hasChildren()?this.expandChildren(t,n,l).pipe(He(function(h){return new wn([],h)})):this.expandSegment(t,l,n,l.segments,c,!0)}},{key:"expandChildren",value:function(t,n,l){for(var c=this,h=[],_=0,C=Object.keys(l.children);_=2;return function(n){return n.pipe(e?vr(function(l,c){return e(l,c,n)}):Ob,uA(1),t?PN(a):EN(function(){return new f1}))}}())}},{key:"expandSegment",value:function(t,n,l,c,h,_){var C=this;return yt(l).pipe(Xh(function(k){return C.expandSegmentAgainstRoute(t,n,l,k,c,h,_).pipe(_o(function(I){if(I instanceof Uy)return ut(null);throw I}))}),lg(function(k){return!!k}),_o(function(k,D){if(k instanceof f1||"EmptyError"===k.name){if(p3(n,c,h))return ut(new wn([],{}));throw new Uy(n)}throw k}))}},{key:"expandSegmentAgainstRoute",value:function(t,n,l,c,h,_,C){return h3(c,n,h,_)?void 0===c.redirectTo?this.matchSegmentAgainstRoute(t,n,c,h,_):C&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,l,c,h,_):bg(n):bg(n)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,n,l,c,h,_){return"**"===c.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,l,c,_):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,l,c,h,_)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,n,l,c){var h=this,_=this.applyRedirectCommands([],l.redirectTo,{});return l.redirectTo.startsWith("/")?TA(_):this.lineralizeSegments(l,_).pipe(Xr(function(C){var k=new wn(C,{});return h.expandSegment(t,k,n,C,c,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,n,l,c,h,_){var C=this,k=P1(n,c,h),I=k.consumedSegments,L=k.lastChild,G=k.positionalParamSegments;if(!k.matched)return bg(n);var Y=this.applyRedirectCommands(I,c.redirectTo,G);return c.redirectTo.startsWith("/")?TA(Y):this.lineralizeSegments(c,Y).pipe(Xr(function(Q){return C.expandSegment(t,n,l,Q.concat(h.slice(L)),_,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,n,l,c,h){var _=this;if("**"===l.path)return l.loadChildren?(l._loadedConfig?ut(l._loadedConfig):this.configLoader.load(t.injector,l)).pipe(He(function(Q){return l._loadedConfig=Q,new wn(c,{})})):ut(new wn(c,{}));var k=P1(n,l,c),I=k.consumedSegments,L=k.lastChild;if(!k.matched)return bg(n);var G=c.slice(L);return this.getChildConfig(t,l,c).pipe(Xr(function(Q){var ie=Q.module,fe=Q.routes,se=O1(n,I,G,fe),be=se.segmentGroup,Ce=se.slicedSegments,je=new wn(be.segments,be.children);if(0===Ce.length&&je.hasChildren())return _.expandChildren(ie,fe,je).pipe(He(function(Zn){return new wn(I,Zn)}));if(0===fe.length&&0===Ce.length)return ut(new wn(I,{}));var kt=As(l)===h;return _.expandSegment(ie,je,fe,Ce,kt?Cn:h,!0).pipe(He(function(Zn){return new wn(I.concat(Zn.segments),Zn.children)}))}))}},{key:"getChildConfig",value:function(t,n,l){var c=this;return n.children?ut(new _g(n.children,t)):n.loadChildren?void 0!==n._loadedConfig?ut(n._loadedConfig):this.runCanLoadGuards(t.injector,n,l).pipe(Xr(function(h){return h?c.configLoader.load(t.injector,n).pipe(He(function(_){return n._loadedConfig=_,_})):function(e){return new gn(function(a){return a.error(g1("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(n)})):ut(new _g([],t))}},{key:"runCanLoadGuards",value:function(t,n,l){var c=this,h=n.canLoad;return h&&0!==h.length?ut(h.map(function(C){var D,k=t.get(C);if(function(e){return e&&qa(e.canLoad)}(k))D=k.canLoad(n,l);else{if(!qa(k))throw new Error("Invalid CanLoad guard");D=k(n,l)}return Su(D)})).pipe(zy(),Ya(function(C){if(Qh(C)){var k=g1('Redirecting to "'.concat(c.urlSerializer.serialize(C),'"'));throw k.url=C,k}}),He(function(C){return!0===C})):ut(!0)}},{key:"lineralizeSegments",value:function(t,n){for(var l=[],c=n.root;;){if(l=l.concat(c.segments),0===c.numberOfChildren)return ut(l);if(c.numberOfChildren>1||!c.children[Cn])return DA(t.redirectTo);c=c.children[Cn]}}},{key:"applyRedirectCommands",value:function(t,n,l){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),t,l)}},{key:"applyRedirectCreatreUrlTree",value:function(t,n,l,c){var h=this.createSegmentGroup(t,n.root,l,c);return new nd(h,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}},{key:"createQueryParams",value:function(t,n){var l={};return ea(t,function(c,h){if("string"==typeof c&&c.startsWith(":")){var C=c.substring(1);l[h]=n[C]}else l[h]=c}),l}},{key:"createSegmentGroup",value:function(t,n,l,c){var h=this,_=this.createSegments(t,n.segments,l,c),C={};return ea(n.children,function(k,D){C[D]=h.createSegmentGroup(t,k,l,c)}),new wn(_,C)}},{key:"createSegments",value:function(t,n,l,c){var h=this;return n.map(function(_){return _.path.startsWith(":")?h.findPosParam(t,_,c):h.findOrReturn(_,l)})}},{key:"findPosParam",value:function(t,n,l){var c=l[n.path.substring(1)];if(!c)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(n.path,"'."));return c}},{key:"findOrReturn",value:function(t,n){var h,l=0,c=nn(n);try{for(c.s();!(h=c.n()).done;){var _=h.value;if(_.path===t.path)return n.splice(l),_;l++}}catch(C){c.e(C)}finally{c.f()}return t}}]),e}();function R1(e){for(var a={},t=0,n=Object.keys(e.children);t0||h.hasChildren())&&(a[l]=h)}return function(e){if(1===e.numberOfChildren&&e.children[Cn]){var a=e.children[Cn];return new wn(e.segments.concat(a.segments),a.children)}return e}(new wn(e.segments,a))}var AA=function e(a){F(this,e),this.path=a,this.route=this.path[this.path.length-1]},L1=function e(a,t){F(this,e),this.component=a,this.route=t};function B7(e,a,t){var n=e._root;return Gy(n,a?a._root:null,t,[n.value])}function F1(e,a,t){var n=function(e){if(!e)return null;for(var a=e.parent;a;a=a.parent){var t=a.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(a);return(n?n.module.injector:t).get(e)}function Gy(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},c=mg(a);return e.children.forEach(function(h){U7(h,c[h.value.outlet],t,n.concat([h.value]),l),delete c[h.value.outlet]}),ea(c,function(h,_){return jy(h,t.getContext(_),l)}),l}function U7(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},c=e.value,h=a?a.value:null,_=t?t.getContext(e.value.outlet):null;if(h&&c.routeConfig===h.routeConfig){var C=G7(h,c,c.routeConfig.runGuardsAndResolvers);C?l.canActivateChecks.push(new AA(n)):(c.data=h.data,c._resolvedData=h._resolvedData),Gy(e,a,c.component?_?_.children:null:t,n,l),C&&_&&_.outlet&&_.outlet.isActivated&&l.canDeactivateChecks.push(new L1(_.outlet.component,h))}else h&&jy(a,_,l),l.canActivateChecks.push(new AA(n)),Gy(e,null,c.component?_?_.children:null:t,n,l);return l}function G7(e,a,t){if("function"==typeof t)return t(e,a);switch(t){case"pathParamsChange":return!rd(e.url,a.url);case"pathParamsOrQueryParamsChange":return!rd(e.url,a.url)||!wu(e.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!T1(e,a)||!wu(e.queryParams,a.queryParams);case"paramsChange":default:return!T1(e,a)}}function jy(e,a,t){var n=mg(e),l=e.value;ea(n,function(c,h){jy(c,l.component?a?a.children.getContext(h):null:a,t)}),t.canDeactivateChecks.push(new L1(l.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,l))}var K7=function e(){F(this,e)};function b3(e){return new gn(function(a){return a.error(e)})}var Q7=function(){function e(a,t,n,l,c,h){F(this,e),this.rootComponentType=a,this.config=t,this.urlTree=n,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=h}return W(e,[{key:"recognize",value:function(){var t=O1(this.urlTree.root,[],[],this.config.filter(function(_){return void 0===_.redirectTo}),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,Cn);if(null===n)return null;var l=new x1([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Cn,this.rootComponentType,null,this.urlTree.root,-1,{}),c=new ku(l,n),h=new KN(this.url,c);return this.inheritParamsAndData(h._root),h}},{key:"inheritParamsAndData",value:function(t){var n=this,l=t.value,c=ZN(l,this.paramsInheritanceStrategy);l.params=Object.freeze(c.params),l.data=Object.freeze(c.data),t.children.forEach(function(h){return n.inheritParamsAndData(h)})}},{key:"processSegmentGroup",value:function(t,n,l){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,n):this.processSegment(t,n,n.segments,l)}},{key:"processChildren",value:function(t,n){for(var l=[],c=0,h=Object.keys(n.children);c0?BN(l).parameters:{};h=new x1(l,k,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,M3(t),As(t),t.component,t,S3(n),k3(n)+l.length,EA(t))}else{var D=P1(n,t,l);if(!D.matched)return null;_=D.consumedSegments,C=l.slice(D.lastChild),h=new x1(_,D.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,M3(t),As(t),t.component,t,S3(n),k3(n)+_.length,EA(t))}var I=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(t),L=O1(n,_,C,I.filter(function(se){return void 0===se.redirectTo}),this.relativeLinkResolution),G=L.segmentGroup,Y=L.slicedSegments;if(0===Y.length&&G.hasChildren()){var Q=this.processChildren(I,G);return null===Q?null:[new ku(h,Q)]}if(0===I.length&&0===Y.length)return[new ku(h,[])];var ie=As(t)===c,fe=this.processSegment(I,G,Y,ie?Cn:c);return null===fe?null:[new ku(h,fe)]}}]),e}();function w3(e){var l,a=[],t=new Set,n=nn(e);try{var c=function(){var L=l.value;if(!function(e){var a=e.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}(L))return a.push(L),"continue";var Y,G=a.find(function(Q){return L.value.routeConfig===Q.value.routeConfig});void 0!==G?((Y=G.children).push.apply(Y,Et(L.children)),t.add(G)):a.push(L)};for(n.s();!(l=n.n()).done;)c()}catch(I){n.e(I)}finally{n.f()}var C,_=nn(t);try{for(_.s();!(C=_.n()).done;){var k=C.value,D=w3(k.children);a.push(new ku(k.value,D))}}catch(I){_.e(I)}finally{_.f()}return a.filter(function(I){return!t.has(I)})}function S3(e){for(var a=e;a._sourceSegment;)a=a._sourceSegment;return a}function k3(e){for(var a=e,t=a._segmentIndexShift?a._segmentIndexShift:0;a._sourceSegment;)t+=(a=a._sourceSegment)._segmentIndexShift?a._segmentIndexShift:0;return t-1}function M3(e){return e.data||{}}function EA(e){return e.resolve||{}}function PA(e){return Ta(function(a){var t=e(a);return t?yt(t).pipe(He(function(){return a})):ut(a)})}var T3=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return t}(function(){function e(){F(this,e)}return W(e,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,n){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,n){return t.routeConfig===n.routeConfig}}]),e}()),OA=new Ee("ROUTES"),D3=function(){function e(a,t,n,l){F(this,e),this.loader=a,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=l}return W(e,[{key:"load",value:function(t,n){var l=this;if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);var h=this.loadModuleFactory(n.loadChildren).pipe(He(function(_){l.onLoadEndListener&&l.onLoadEndListener(n);var C=_.create(t);return new _g(VN(C.injector.get(OA,void 0,yn.Self|yn.Optional)).map(xA),C)}),_o(function(_){throw n._loader$=void 0,_}));return n._loader$=new Oa(h,function(){return new qe}).pipe(Qo()),n._loader$}},{key:"loadModuleFactory",value:function(t){var n=this;return"string"==typeof t?yt(this.loader.load(t)):Su(t()).pipe(Xr(function(l){return l instanceof C2?ut(l):yt(n.compiler.compileModuleAsync(l))}))}}]),e}(),N1=function e(){F(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new Cg,this.attachRef=null},Cg=function(){function e(){F(this,e),this.contexts=new Map}return W(e,[{key:"onChildOutletCreated",value:function(t,n){var l=this.getOrCreateContext(t);l.outlet=n,this.contexts.set(t,l)}},{key:"onChildOutletDestroyed",value:function(t){var n=this.getContext(t);n&&(n.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var n=this.getContext(t);return n||(n=new N1,this.contexts.set(t,n)),n}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),e}(),uW=function(){function e(){F(this,e)}return W(e,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,n){return t}}]),e}();function cW(e){throw e}function fW(e,a,t){return a.parse("/")}function A3(e,a){return ut(null)}var dW={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hW={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Da=function(){var e=function(){function a(t,n,l,c,h,_,C,k){var D=this;F(this,a),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=l,this.location=c,this.config=k,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new qe,this.errorHandler=cW,this.malformedUriErrorHandler=fW,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:A3,afterPreactivation:A3},this.urlHandlingStrategy=new uW,this.routeReuseStrategy=new T3,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=h.get(rc),this.console=h.get(hw);var G=h.get(ft);this.isNgZoneEnabled=G instanceof ft&&ft.isInAngularZone(),this.resetConfig(k),this.currentUrlTree=new nd(new wn([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new D3(_,C,function(Q){return D.triggerEvent(new hA(Q))},function(Q){return D.triggerEvent(new LN(Q))}),this.routerState=M1(this.currentUrlTree,this.rootComponentType),this.transitions=new xa({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return W(a,[{key:"browserPageId",get:function(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}},{key:"setupNavigations",value:function(n){var l=this,c=this.events;return n.pipe(vr(function(h){return 0!==h.id}),He(function(h){return Object.assign(Object.assign({},h),{extractedUrl:l.urlHandlingStrategy.extract(h.rawUrl)})}),Ta(function(h){var _=!1,C=!1;return ut(h).pipe(Ya(function(k){l.currentNavigation={id:k.id,initialUrl:k.currentRawUrl,extractedUrl:k.extractedUrl,trigger:k.source,extras:k.extras,previousNavigation:l.lastSuccessfulNavigation?Object.assign(Object.assign({},l.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Ta(function(k){var D=!l.navigated||k.extractedUrl.toString()!==l.browserUrlTree.toString(),I=("reload"===l.onSameUrlNavigation||D)&&l.urlHandlingStrategy.shouldProcessUrl(k.rawUrl);if(V1(k.source)&&(l.browserUrlTree=k.rawUrl),I)return ut(k).pipe(Ta(function(Ce){var je=l.transitions.getValue();return c.next(new fA(Ce.id,l.serializeUrl(Ce.extractedUrl),Ce.source,Ce.restoredState)),je!==l.transitions.getValue()?Ar:Promise.resolve(Ce)}),function(e,a,t,n){return Ta(function(l){return function(e,a,t,n,l){return new g3(e,a,t,n,l).apply()}(e,a,t,l.extractedUrl,n).pipe(He(function(c){return Object.assign(Object.assign({},l),{urlAfterRedirects:c})}))})}(l.ngModule.injector,l.configLoader,l.urlSerializer,l.config),Ya(function(Ce){l.currentNavigation=Object.assign(Object.assign({},l.currentNavigation),{finalUrl:Ce.urlAfterRedirects})}),function(e,a,t,n,l){return Xr(function(c){return function(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var h=new Q7(e,a,t,n,l,c).recognize();return null===h?b3(new K7):ut(h)}catch(_){return b3(_)}}(e,a,c.urlAfterRedirects,t(c.urlAfterRedirects),n,l).pipe(He(function(h){return Object.assign(Object.assign({},c),{targetSnapshot:h})}))})}(l.rootComponentType,l.config,function(Ce){return l.serializeUrl(Ce)},l.paramsInheritanceStrategy,l.relativeLinkResolution),Ya(function(Ce){"eager"===l.urlUpdateStrategy&&(Ce.extras.skipLocationChange||l.setBrowserUrl(Ce.urlAfterRedirects,Ce),l.browserUrlTree=Ce.urlAfterRedirects);var je=new dA(Ce.id,l.serializeUrl(Ce.extractedUrl),l.serializeUrl(Ce.urlAfterRedirects),Ce.targetSnapshot);c.next(je)}));if(D&&l.rawUrlTree&&l.urlHandlingStrategy.shouldProcessUrl(l.rawUrlTree)){var Y=k.extractedUrl,Q=k.source,ie=k.restoredState,fe=k.extras,se=new fA(k.id,l.serializeUrl(Y),Q,ie);c.next(se);var be=M1(Y,l.rootComponentType).snapshot;return ut(Object.assign(Object.assign({},k),{targetSnapshot:be,urlAfterRedirects:Y,extras:Object.assign(Object.assign({},fe),{skipLocationChange:!1,replaceUrl:!1})}))}return l.rawUrlTree=k.rawUrl,l.browserUrlTree=k.urlAfterRedirects,k.resolve(null),Ar}),PA(function(k){var Y=k.extras;return l.hooks.beforePreactivation(k.targetSnapshot,{navigationId:k.id,appliedUrlTree:k.extractedUrl,rawUrlTree:k.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),Ya(function(k){var D=new ON(k.id,l.serializeUrl(k.extractedUrl),l.serializeUrl(k.urlAfterRedirects),k.targetSnapshot);l.triggerEvent(D)}),He(function(k){return Object.assign(Object.assign({},k),{guards:B7(k.targetSnapshot,k.currentSnapshot,l.rootContexts)})}),function(e,a){return Xr(function(t){var n=t.targetSnapshot,l=t.currentSnapshot,c=t.guards,h=c.canActivateChecks,_=c.canDeactivateChecks;return 0===_.length&&0===h.length?ut(Object.assign(Object.assign({},t),{guardsResult:!0})):function(e,a,t,n){return yt(e).pipe(Xr(function(l){return function(e,a,t,n,l){var c=a&&a.routeConfig?a.routeConfig.canDeactivate:null;return c&&0!==c.length?ut(c.map(function(_){var k,C=F1(_,a,l);if(function(e){return e&&qa(e.canDeactivate)}(C))k=Su(C.canDeactivate(e,a,t,n));else{if(!qa(C))throw new Error("Invalid CanDeactivate guard");k=Su(C(e,a,t,n))}return k.pipe(lg())})).pipe(zy()):ut(!0)}(l.component,l.route,t,a,n)}),lg(function(l){return!0!==l},!0))}(_,n,l,e).pipe(Xr(function(C){return C&&function(e){return"boolean"==typeof e}(C)?function(e,a,t,n){return yt(a).pipe(Xh(function(l){return d1(function(e,a){return null!==e&&a&&a(new a7(e)),ut(!0)}(l.route.parent,n),function(e,a){return null!==e&&a&&a(new o7(e)),ut(!0)}(l.route,n),function(e,a,t){var n=a[a.length-1],c=a.slice(0,a.length-1).reverse().map(function(h){return function(e){var a=e.routeConfig?e.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:e,guards:a}:null}(h)}).filter(function(h){return null!==h}).map(function(h){return Ly(function(){return ut(h.guards.map(function(C){var D,k=F1(C,h.node,t);if(function(e){return e&&qa(e.canActivateChild)}(k))D=Su(k.canActivateChild(n,e));else{if(!qa(k))throw new Error("Invalid CanActivateChild guard");D=Su(k(n,e))}return D.pipe(lg())})).pipe(zy())})});return ut(c).pipe(zy())}(e,l.path,t),function(e,a,t){var n=a.routeConfig?a.routeConfig.canActivate:null;return n&&0!==n.length?ut(n.map(function(c){return Ly(function(){var _,h=F1(c,a,t);if(function(e){return e&&qa(e.canActivate)}(h))_=Su(h.canActivate(a,e));else{if(!qa(h))throw new Error("Invalid CanActivate guard");_=Su(h(a,e))}return _.pipe(lg())})})).pipe(zy()):ut(!0)}(e,l.route,t))}),lg(function(l){return!0!==l},!0))}(n,h,e,a):ut(C)}),He(function(C){return Object.assign(Object.assign({},t),{guardsResult:C})}))})}(l.ngModule.injector,function(k){return l.triggerEvent(k)}),Ya(function(k){if(Qh(k.guardsResult)){var D=g1('Redirecting to "'.concat(l.serializeUrl(k.guardsResult),'"'));throw D.url=k.guardsResult,D}var I=new IN(k.id,l.serializeUrl(k.extractedUrl),l.serializeUrl(k.urlAfterRedirects),k.targetSnapshot,!!k.guardsResult);l.triggerEvent(I)}),vr(function(k){return!!k.guardsResult||(l.restoreHistory(k),l.cancelNavigationTransition(k,""),!1)}),PA(function(k){if(k.guards.canActivateChecks.length)return ut(k).pipe(Ya(function(D){var I=new RN(D.id,l.serializeUrl(D.extractedUrl),l.serializeUrl(D.urlAfterRedirects),D.targetSnapshot);l.triggerEvent(I)}),Ta(function(D){var I=!1;return ut(D).pipe(function(e,a){return Xr(function(t){var n=t.targetSnapshot,l=t.guards.canActivateChecks;if(!l.length)return ut(t);var c=0;return yt(l).pipe(Xh(function(h){return function(e,a,t,n){return function(e,a,t,n){var l=Object.keys(e);if(0===l.length)return ut({});var c={};return yt(l).pipe(Xr(function(h){return function(e,a,t,n){var l=F1(e,a,n);return Su(l.resolve?l.resolve(a,t):l(a,t))}(e[h],a,t,n).pipe(Ya(function(_){c[h]=_}))}),uA(1),Xr(function(){return Object.keys(c).length===l.length?ut(c):Ar}))}(e._resolve,e,a,n).pipe(He(function(c){return e._resolvedData=c,e.data=Object.assign(Object.assign({},e.data),ZN(e,t).resolve),null}))}(h.route,n,e,a)}),Ya(function(){return c++}),uA(1),Xr(function(h){return c===l.length?ut(t):Ar}))})}(l.paramsInheritanceStrategy,l.ngModule.injector),Ya({next:function(){return I=!0},complete:function(){I||(l.restoreHistory(D),l.cancelNavigationTransition(D,"At least one route resolver didn't emit any value."))}}))}),Ya(function(D){var I=new i7(D.id,l.serializeUrl(D.extractedUrl),l.serializeUrl(D.urlAfterRedirects),D.targetSnapshot);l.triggerEvent(I)}))}),PA(function(k){var Y=k.extras;return l.hooks.afterPreactivation(k.targetSnapshot,{navigationId:k.id,appliedUrlTree:k.extractedUrl,rawUrlTree:k.rawUrl,skipLocationChange:!!Y.skipLocationChange,replaceUrl:!!Y.replaceUrl})}),He(function(k){var D=function(e,a,t){var n=D1(e,a._root,t?t._root:void 0);return new yA(n,a)}(l.routeReuseStrategy,k.targetSnapshot,k.currentRouterState);return Object.assign(Object.assign({},k),{targetRouterState:D})}),Ya(function(k){l.currentUrlTree=k.urlAfterRedirects,l.rawUrlTree=l.urlHandlingStrategy.merge(l.currentUrlTree,k.rawUrl),l.routerState=k.targetRouterState,"deferred"===l.urlUpdateStrategy&&(k.extras.skipLocationChange||l.setBrowserUrl(l.rawUrlTree,k),l.browserUrlTree=k.urlAfterRedirects)}),function(a,t,n){return He(function(l){return new D7(t,l.targetRouterState,l.currentRouterState,n).activate(a),l})}(l.rootContexts,l.routeReuseStrategy,function(k){return l.triggerEvent(k)}),Ya({next:function(){_=!0},complete:function(){_=!0}}),function(e){return function(a){return a.lift(new n7(e))}}(function(){if(!_&&!C){var k="Navigation ID ".concat(h.id," is not equal to the current navigation id ").concat(l.navigationId);"replace"===l.canceledNavigationResolution&&l.restoreHistory(h),l.cancelNavigationTransition(h,k)}l.currentNavigation=null}),_o(function(k){if(C=!0,function(e){return e&&e[pA]}(k)){var D=Qh(k.url);D||(l.navigated=!0,l.restoreHistory(h,!0));var I=new p1(h.id,l.serializeUrl(h.extractedUrl),k.message);c.next(I),D?setTimeout(function(){var G=l.urlHandlingStrategy.merge(k.url,l.rawUrlTree),Y={skipLocationChange:h.extras.skipLocationChange,replaceUrl:"eager"===l.urlUpdateStrategy||V1(h.source)};l.scheduleNavigation(G,"imperative",null,Y,{resolve:h.resolve,reject:h.reject,promise:h.promise})},0):h.resolve(!1)}else{l.restoreHistory(h,!0);var L=new ug(h.id,l.serializeUrl(h.extractedUrl),k);c.next(L);try{h.resolve(l.errorHandler(k))}catch(G){h.reject(G)}}return Ar}))}))}},{key:"resetRootComponentType",value:function(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var n=this.transitions.value;return n.urlAfterRedirects=this.browserUrlTree,n}},{key:"setTransition",value:function(n){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),n))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var n=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(l){var c=n.extractLocationChangeInfoFromEvent(l);n.shouldScheduleNavigation(n.lastLocationChangeInfo,c)&&setTimeout(function(){var h=c.source,_=c.state,C=c.urlTree,k={replaceUrl:!0};if(_){var D=Object.assign({},_);delete D.navigationId,delete D.\u0275routerPageId,0!==Object.keys(D).length&&(k.state=D)}n.scheduleNavigation(C,h,_,k)},0),n.lastLocationChangeInfo=c}))}},{key:"extractLocationChangeInfoFromEvent",value:function(n){var l;return{source:"popstate"===n.type?"popstate":"hashchange",urlTree:this.parseUrl(n.url),state:(null===(l=n.state)||void 0===l?void 0:l.navigationId)?n.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(n,l){if(!n)return!0;var c=l.urlTree.toString()===n.urlTree.toString();return!(l.transitionId===n.transitionId&&c&&("hashchange"===l.source&&"popstate"===n.source||"popstate"===l.source&&"hashchange"===n.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(n){this.events.next(n)}},{key:"resetConfig",value:function(n){u3(n),this.config=n.map(xA),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=l.relativeTo,h=l.queryParams,_=l.fragment,C=l.queryParamsHandling,k=l.preserveFragment,D=c||this.routerState.root,I=k?this.currentUrlTree.fragment:_,L=null;switch(C){case"merge":L=Object.assign(Object.assign({},this.currentUrlTree.queryParams),h);break;case"preserve":L=this.currentUrlTree.queryParams;break;default:L=h||null}return null!==L&&(L=this.removeEmptyProps(L)),w7(D,this.currentUrlTree,n,L,null!=I?I:null)}},{key:"navigateByUrl",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},c=Qh(n)?n:this.parseUrl(n),h=this.urlHandlingStrategy.merge(c,this.rawUrlTree);return this.scheduleNavigation(h,"imperative",null,l)}},{key:"navigate",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return pW(n),this.navigateByUrl(this.createUrlTree(n,l),l)}},{key:"serializeUrl",value:function(n){return this.urlSerializer.serialize(n)}},{key:"parseUrl",value:function(n){var l;try{l=this.urlSerializer.parse(n)}catch(c){l=this.malformedUriErrorHandler(c,this.urlSerializer,n)}return l}},{key:"isActive",value:function(n,l){var c;if(c=!0===l?Object.assign({},dW):!1===l?Object.assign({},hW):l,Qh(n))return vA(this.currentUrlTree,n,c);var h=this.parseUrl(n);return vA(this.currentUrlTree,h,c)}},{key:"removeEmptyProps",value:function(n){return Object.keys(n).reduce(function(l,c){var h=n[c];return null!=h&&(l[c]=h),l},{})}},{key:"processNavigations",value:function(){var n=this;this.navigations.subscribe(function(l){n.navigated=!0,n.lastSuccessfulId=l.id,n.currentPageId=l.targetPageId,n.events.next(new kl(l.id,n.serializeUrl(l.extractedUrl),n.serializeUrl(n.currentUrlTree))),n.lastSuccessfulNavigation=n.currentNavigation,l.resolve(!0)},function(l){n.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(n,l,c,h,_){var C,k;if(this.disposed)return Promise.resolve(!1);var Q,ie,fe,D=this.getTransition(),I=V1(l)&&D&&!V1(D.source),Y=(this.lastSuccessfulId===D.id||this.currentNavigation?D.rawUrl:D.urlAfterRedirects).toString()===n.toString();if(I&&Y)return Promise.resolve(!0);_?(Q=_.resolve,ie=_.reject,fe=_.promise):fe=new Promise(function(je,$e){Q=je,ie=$e});var be,se=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(c=this.location.getState()),be=c&&c.\u0275routerPageId?c.\u0275routerPageId:h.replaceUrl||h.skipLocationChange?null!==(C=this.browserPageId)&&void 0!==C?C:0:(null!==(k=this.browserPageId)&&void 0!==k?k:0)+1):be=0,this.setTransition({id:se,targetPageId:be,source:l,restoredState:c,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:h,resolve:Q,reject:ie,promise:fe,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),fe.catch(function(je){return Promise.reject(je)})}},{key:"setBrowserUrl",value:function(n,l){var c=this.urlSerializer.serialize(n),h=Object.assign(Object.assign({},l.extras.state),this.generateNgRouterState(l.id,l.targetPageId));this.location.isCurrentPathEqualTo(c)||l.extras.replaceUrl?this.location.replaceState(c,"",h):this.location.go(c,"",h)}},{key:"restoreHistory",value:function(n){var c,h,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var _=this.currentPageId-n.targetPageId,C="popstate"===n.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(c=this.currentNavigation)||void 0===c?void 0:c.finalUrl);C&&0!==_?this.location.historyGo(_):this.currentUrlTree===(null===(h=this.currentNavigation)||void 0===h?void 0:h.finalUrl)&&0===_&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(l&&this.resetState(n),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(n,l){var c=new p1(n.id,this.serializeUrl(n.extractedUrl),l);this.triggerEvent(c),n.resolve(!1)}},{key:"generateNgRouterState",value:function(n,l){return"computed"===this.canceledNavigationResolution?{navigationId:n,"\u0275routerPageId":l}:{navigationId:n}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Yl),ce(y1),ce(Cg),ce(Jv),ce(kn),ce(qf),ce(gu),ce(void 0))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function pW(e){for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:{};F(this,a),this.router=t,this.viewportScroller=n,this.options=l,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},l.scrollPositionRestoration=l.scrollPositionRestoration||"disabled",l.anchorScrolling=l.anchorScrolling||"disabled"}return W(a,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(l){l instanceof fA?(n.store[n.lastId]=n.viewportScroller.getScrollPosition(),n.lastSource=l.navigationTrigger,n.restoredId=l.restoredState?l.restoredState.navigationId:0):l instanceof kl&&(n.lastId=l.id,n.scheduleScrollEvent(l,n.router.parseUrl(l.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(l){l instanceof FN&&(l.position?"top"===n.options.scrollPositionRestoration?n.viewportScroller.scrollToPosition([0,0]):"enabled"===n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition(l.position):l.anchor&&"enabled"===n.options.anchorScrolling?n.viewportScroller.scrollToAnchor(l.anchor):"disabled"!==n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(n,l){this.router.triggerEvent(new FN(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,l))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Da),ce(Kw),ce(void 0))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),ad=new Ee("ROUTER_CONFIGURATION"),LA=new Ee("ROUTER_FORROOT_GUARD"),I3=[Jv,{provide:y1,useClass:b1},{provide:Da,useFactory:function(e,a,t,n,l,c,h){var _=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},C=arguments.length>8?arguments[8]:void 0,k=arguments.length>9?arguments[9]:void 0,D=new Da(null,e,a,t,n,l,c,VN(h));return C&&(D.urlHandlingStrategy=C),k&&(D.routeReuseStrategy=k),V3(_,D),_.enableTracing&&D.events.subscribe(function(I){var L,G;null===(L=console.group)||void 0===L||L.call(console,"Router Event: ".concat(I.constructor.name)),console.log(I.toString()),console.log(I),null===(G=console.groupEnd)||void 0===G||G.call(console)}),D},deps:[y1,Cg,Jv,kn,qf,gu,OA,ad,[function e(){F(this,e)},new oi],[function e(){F(this,e)},new oi]]},Cg,{provide:gr,useFactory:function(e){return e.routerState.root},deps:[Da]},{provide:qf,useClass:eG},P3,H1,mW,{provide:ad,useValue:{enableTracing:!1}}];function R3(){return new Yv("Router",Da)}var FA=function(){var e=function(){function a(t,n){F(this,a)}return W(a,null,[{key:"forRoot",value:function(n,l){return{ngModule:a,providers:[I3,F3(n),{provide:LA,useFactory:L3,deps:[[Da,new oi,new Fo]]},{provide:ad,useValue:l||{}},{provide:Qv,useFactory:yW,deps:[fc,[new jp(Vw),new oi],ad]},{provide:RA,useFactory:_W,deps:[Da,Kw,ad]},{provide:IA,useExisting:l&&l.preloadingStrategy?l.preloadingStrategy:H1},{provide:Yv,multi:!0,useFactory:R3},[od,{provide:fo,multi:!0,useFactory:B3,deps:[od]},{provide:z3,useFactory:H3,deps:[od]},{provide:dw,multi:!0,useExisting:z3}]]}}},{key:"forChild",value:function(n){return{ngModule:a,providers:[F3(n)]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(LA,8),ce(Da,8))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}();function _W(e,a,t){return t.scrollOffset&&a.setOffset(t.scrollOffset),new RA(e,a,t)}function yW(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new yF(e,a):new mD(e,a)}function L3(e){return"guarded"}function F3(e){return[{provide:XH,multi:!0,useValue:e},{provide:OA,multi:!0,useValue:e}]}function V3(e,a){e.errorHandler&&(a.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(a.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(a.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(a.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(a.urlUpdateStrategy=e.urlUpdateStrategy)}var od=function(){var e=function(){function a(t){F(this,a),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new qe}return W(a,[{key:"appInitializer",value:function(){var n=this;return this.injector.get(gF,Promise.resolve(null)).then(function(){if(n.destroyed)return Promise.resolve(!0);var c=null,h=new Promise(function(k){return c=k}),_=n.injector.get(Da),C=n.injector.get(ad);return"disabled"===C.initialNavigation?(_.setUpLocationChangeListener(),c(!0)):"enabled"===C.initialNavigation||"enabledBlocking"===C.initialNavigation?(_.hooks.afterPreactivation=function(){return n.initNavigation?ut(null):(n.initNavigation=!0,c(!0),n.resultOfPreactivationDone)},_.initialNavigation()):c(!0),h})}},{key:"bootstrapListener",value:function(n){var l=this.injector.get(ad),c=this.injector.get(P3),h=this.injector.get(RA),_=this.injector.get(Da),C=this.injector.get(lc);n===C.components[0]&&(("enabledNonBlocking"===l.initialNavigation||void 0===l.initialNavigation)&&_.initialNavigation(),c.setUpPreloading(),h.init(),_.resetRootComponentType(C.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(kn))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}();function B3(e){return e.appInitializer.bind(e)}function H3(e){return e.bootstrapListener.bind(e)}var z3=new Ee("Router Initializer"),CW=function(){function e(a){this.user=a.user,this.role=a.role,this.admin=a.admin}return Object.defineProperty(e.prototype,"isStaff",{get:function(){return"staff"===this.role||"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAdmin",{get:function(){return"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLogged",{get:function(){return null!=this.user},enumerable:!1,configurable:!0}),e}();function it(e){return null!=e&&"false"!=="".concat(e)}function Di(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return U3(e)?Number(e):a}function U3(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function Sg(e){return Array.isArray(e)?e:[e]}function mi(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function bc(e){return e instanceof Ue?e.nativeElement:e}function G3(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,t=[];if(null!=e){var c,n=Array.isArray(e)?e:"".concat(e).split(a),l=nn(n);try{for(l.s();!(c=l.n()).done;){var h=c.value,_="".concat(h).trim();_&&t.push(_)}}catch(C){l.e(C)}finally{l.f()}}return t}function Tl(e,a,t,n){return nt(t)&&(n=t,t=void 0),n?Tl(e,a,t).pipe(He(function(l){return Bu(l)?n.apply(void 0,Et(l)):n(l)})):new gn(function(l){j3(e,a,function(h){l.next(arguments.length>1?Array.prototype.slice.call(arguments):h)},l,t)})}function j3(e,a,t,n,l){var c;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var h=e;e.addEventListener(a,t,l),c=function(){return h.removeEventListener(a,t,l)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var _=e;e.on(a,t),c=function(){return _.off(a,t)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var C=e;e.addListener(a,t),c=function(){return C.removeListener(a,t)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var k=0,D=e.length;k1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=l;var h=this.id,_=this.scheduler;return null!=h&&(this.id=this.recycleAsyncId(_,h,c)),this.pending=!0,this.delay=c,this.id=this.id||this.requestAsyncId(_,this.id,c),this}},{key:"requestAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(l.flush.bind(l,this),h)}},{key:"recycleAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==h&&this.delay===h&&!1===this.pending)return c;clearInterval(c)}},{key:"execute",value:function(l,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var h=this._execute(l,c);if(h)return h;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(l,c){var h=!1,_=void 0;try{this.work(l)}catch(C){h=!0,_=!!C&&C||new Error(C)}if(h)return this.unsubscribe(),_}},{key:"_unsubscribe",value:function(){var l=this.id,c=this.scheduler,h=c.actions,_=h.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==_&&h.splice(_,1),null!=l&&(this.id=this.recycleAsyncId(c,l,null)),this.delay=null}}]),t}(function(e){ae(t,e);var a=ue(t);function t(n,l){return F(this,t),a.call(this)}return W(t,[{key:"schedule",value:function(l){return this}}]),t}(Be)),q3=function(){var e=function(){function a(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.now;F(this,a),this.SchedulerAction=t,this.now=n}return W(a,[{key:"schedule",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,n).schedule(c,l)}}]),a}();return e.now=function(){return Date.now()},e}(),z1=function(e){ae(t,e);var a=ue(t);function t(n){var l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q3.now;return F(this,t),(l=a.call(this,n,function(){return t.delegate&&t.delegate!==It(l)?t.delegate.now():c()})).actions=[],l.active=!1,l.scheduled=void 0,l}return W(t,[{key:"schedule",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,h=arguments.length>2?arguments[2]:void 0;return t.delegate&&t.delegate!==this?t.delegate.schedule(l,c,h):Ie(Oe(t.prototype),"schedule",this).call(this,l,c,h)}},{key:"flush",value:function(l){var c=this.actions;if(this.active)c.push(l);else{var h;this.active=!0;do{if(h=l.execute(l.state,l.delay))break}while(l=c.shift());if(this.active=!1,h){for(;l=c.shift();)l.unsubscribe();throw h}}}}]),t}(q3),X3=1,DW=function(){return Promise.resolve()}(),Yy={};function Z3(e){return e in Yy&&(delete Yy[e],!0)}var VA_setImmediate=function(a){var t=X3++;return Yy[t]=!0,DW.then(function(){return Z3(t)&&a()}),t},VA_clearImmediate=function(a){Z3(a)},AW=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n,l)).scheduler=n,c.work=l,c}return W(t,[{key:"requestAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==h&&h>0?Ie(Oe(t.prototype),"requestAsyncId",this).call(this,l,c,h):(l.actions.push(this),l.scheduled||(l.scheduled=VA_setImmediate(l.flush.bind(l,null))))}},{key:"recycleAsyncId",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==h&&h>0||null===h&&this.delay>0)return Ie(Oe(t.prototype),"recycleAsyncId",this).call(this,l,c,h);0===l.actions.length&&(VA_clearImmediate(c),l.scheduled=void 0)}}]),t}(kg),BA=new(function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"flush",value:function(l){this.active=!0,this.scheduled=void 0;var h,c=this.actions,_=-1,C=c.length;l=l||c.shift();do{if(h=l.execute(l.state,l.delay))break}while(++_=0}function K3(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=-1;return zA(a)?n=Number(a)<1?1:Number(a):rt(a)&&(t=a),rt(t)||(t=Mg),new gn(function(l){var c=zA(e)?e:+e-t.now();return t.schedule(VW,c,{index:0,period:n,subscriber:l})})}function VW(e){var a=e.index,t=e.period,n=e.subscriber;if(n.next(a),!n.closed){if(-1===t)return n.complete();e.index=a+1,this.schedule(e,t)}}function U1(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg;return LW(function(){return K3(e,a)})}function zt(e){return function(a){return a.lift(new $3(e))}}var $3=function(){function e(a){F(this,e),this.notifier=a}return W(e,[{key:"call",value:function(t,n){var l=new Q3(t),c=Ii(this.notifier,new Gc(l));return c&&!l.seenValue?(l.add(c),n.subscribe(l)):l}}]),e}(),Q3=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this,n)).seenValue=!1,l}return W(t,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),t}(at);function GA(e,a){return new gn(a?function(t){return a.schedule(nV,0,{error:e,subscriber:t})}:function(t){return t.error(e)})}function nV(e){e.subscriber.error(e.error)}var Mu,qy=function(){var e=function(){function a(t,n,l){F(this,a),this.kind=t,this.value=n,this.error=l,this.hasValue="N"===t}return W(a,[{key:"observe",value:function(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}},{key:"do",value:function(n,l,c){switch(this.kind){case"N":return n&&n(this.value);case"E":return l&&l(this.error);case"C":return c&&c()}}},{key:"accept",value:function(n,l,c){return n&&"function"==typeof n.next?this.observe(n):this.do(n,l,c)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return ut(this.value);case"E":return GA(this.error);case"C":return h1()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(n){return void 0!==n?new a("N",n):a.undefinedValueNotification}},{key:"createError",value:function(n){return new a("E",void 0,n)}},{key:"createComplete",value:function(){return a.completeNotification}}]),a}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();try{Mu="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(e){Mu=!1}var qo,Xy,wc,WA,en=function(){var e=function a(t){F(this,a),this._platformId=t,this.isBrowser=this._platformId?function(e){return"browser"===e}(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&&!Mu)&&"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 e.\u0275fac=function(t){return new(t||e)(ce(jv))},e.\u0275prov=We({factory:function(){return new e(ce(jv))},token:e,providedIn:"root"}),e}(),ep=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),G1=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function j1(){if(qo)return qo;if("object"!=typeof document||!document)return qo=new Set(G1);var e=document.createElement("input");return qo=new Set(G1.filter(function(a){return e.setAttribute("type",a),e.type===a}))}function tp(e){return function(){if(null==Xy&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Xy=!0}}))}finally{Xy=Xy||!1}return Xy}()?e:!!e.capture}function rV(){if(null==wc){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return wc=!1;if("scrollBehavior"in document.documentElement.style)wc=!0;else{var e=Element.prototype.scrollTo;wc=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return wc}function W1(e){if(function(){if(null==WA){var e="undefined"!=typeof document?document.head:null;WA=!(!e||!e.createShadowRoot&&!e.attachShadow)}return WA}()){var a=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Ky(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var a=e.shadowRoot.activeElement;if(a===e)break;e=a}return e}function rp(e){return e.composedPath?e.composedPath()[0]:e.target}var iV=new Ee("cdk-dir-doc",{providedIn:"root",factory:function(){return tM(lt)}}),Mr=function(){var e=function(){function a(t){if(F(this,a),this.value="ltr",this.change=new ye,t){var c=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===c||"rtl"===c?c:"ltr"}}return W(a,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(iV,8))},e.\u0275prov=We({factory:function(){return new e(ce(iV,8))},token:e,providedIn:"root"}),e}(),$y=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),qA=function e(){F(this,e)};function Y1(e){return e&&"function"==typeof e.connect}var XA=function(){function e(){F(this,e)}return W(e,[{key:"applyChanges",value:function(t,n,l,c,h){t.forEachOperation(function(_,C,k){var D,I;if(null==_.previousIndex){var L=l(_,C,k);D=n.createEmbeddedView(L.templateRef,L.context,L.index),I=1}else null==k?(n.remove(C),I=3):(D=n.get(C),n.move(D,k),I=2);h&&h({context:null==D?void 0:D.context,operation:I,record:_})})}},{key:"detach",value:function(){}}]),e}(),ip=function(){function e(){var a=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];F(this,e),this._multiple=t,this._emitChanges=l,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new qe,n&&n.length&&(t?n.forEach(function(c){return a._markSelected(c)}):this._markSelected(n[0]),this._selectedToEmit.length=0)}return W(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var t=this,n=arguments.length,l=new Array(n),c=0;c0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new gn(function(c){n._globalSubscription||n._addGlobalListener();var h=l>0?n._scrolled.pipe(U1(l)).subscribe(c):n._scrolled.subscribe(c);return n._scrolledCount++,function(){h.unsubscribe(),n._scrolledCount--,n._scrolledCount||n._removeGlobalListener()}}):ut()}},{key:"ngOnDestroy",value:function(){var n=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(l,c){return n.deregister(c)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(n,l){var c=this.getAncestorScrollContainers(n);return this.scrolled(l).pipe(vr(function(h){return!h||c.indexOf(h)>-1}))}},{key:"getAncestorScrollContainers",value:function(n){var l=this,c=[];return this.scrollContainers.forEach(function(h,_){l._scrollableContainsElement(_,n)&&c.push(_)}),c}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(n,l){var c=bc(l),h=n.getElementRef().nativeElement;do{if(c==h)return!0}while(c=c.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var n=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Tl(n._getWindow().document,"scroll").subscribe(function(){return n._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(ft),ce(en),ce(lt,8))},e.\u0275prov=We({factory:function(){return new e(ce(ft),ce(en),ce(lt,8))},token:e,providedIn:"root"}),e}(),yo=function(){var e=function(){function a(t,n,l){var c=this;F(this,a),this._platform=t,this._change=new qe,this._changeListener=function(h){c._change.next(h)},this._document=l,n.runOutsideAngular(function(){if(t.isBrowser){var h=c._getWindow();h.addEventListener("resize",c._changeListener),h.addEventListener("orientationchange",c._changeListener)}c.change().subscribe(function(){return c._viewportSize=null})})}return W(a,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}},{key:"getViewportRect",value:function(){var n=this.getViewportScrollPosition(),l=this.getViewportSize(),c=l.width,h=l.height;return{top:n.top,left:n.left,bottom:n.top+h,right:n.left+c,height:h,width:c}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var n=this._document,l=this._getWindow(),c=n.documentElement,h=c.getBoundingClientRect();return{top:-h.top||n.body.scrollTop||l.scrollY||c.scrollTop||0,left:-h.left||n.body.scrollLeft||l.scrollX||c.scrollLeft||0}}},{key:"change",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return n>0?this._change.pipe(U1(n)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en),ce(ft),ce(lt,8))},e.\u0275prov=We({factory:function(){return new e(ce(en),ce(ft),ce(lt,8))},token:e,providedIn:"root"}),e}(),lp=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),q1=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$y,ep,lp],$y,lp]}),e}(),X1=function(){function e(){F(this,e)}return W(e,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),e}(),sd=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this)).component=n,_.viewContainerRef=l,_.injector=c,_.componentFactoryResolver=h,_}return t}(X1),Ps=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this)).templateRef=n,h.viewContainerRef=l,h.context=c,h}return W(t,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=c,Ie(Oe(t.prototype),"attach",this).call(this,l)}},{key:"detach",value:function(){return this.context=void 0,Ie(Oe(t.prototype),"detach",this).call(this)}}]),t}(X1),eE=function(e){ae(t,e);var a=ue(t);function t(n){var l;return F(this,t),(l=a.call(this)).element=n instanceof Ue?n.nativeElement:n,l}return t}(X1),Jy=function(){function e(){F(this,e),this._isDisposed=!1,this.attachDomPortal=null}return W(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof sd?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ps?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof eE?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),tE=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h,_){var C,k;return F(this,t),(k=a.call(this)).outletElement=n,k._componentFactoryResolver=l,k._appRef=c,k._defaultInjector=h,k.attachDomPortal=function(D){var I=D.element,L=k._document.createComment("dom-portal");I.parentNode.insertBefore(L,I),k.outletElement.appendChild(I),k._attachedPortal=D,Ie((C=It(k),Oe(t.prototype)),"setDisposeFn",C).call(C,function(){L.parentNode&&L.parentNode.replaceChild(I,L)})},k._document=_,k}return W(t,[{key:"attachComponentPortal",value:function(l){var C,c=this,_=(l.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(l.component);return l.viewContainerRef?(C=l.viewContainerRef.createComponent(_,l.viewContainerRef.length,l.injector||l.viewContainerRef.injector),this.setDisposeFn(function(){return C.destroy()})):(C=_.create(l.injector||this._defaultInjector),this._appRef.attachView(C.hostView),this.setDisposeFn(function(){c._appRef.detachView(C.hostView),C.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(C)),this._attachedPortal=l,C}},{key:"attachTemplatePortal",value:function(l){var c=this,h=l.viewContainerRef,_=h.createEmbeddedView(l.templateRef,l.context);return _.rootNodes.forEach(function(C){return c.outletElement.appendChild(C)}),_.detectChanges(),this.setDisposeFn(function(){var C=h.indexOf(_);-1!==C&&h.remove(C)}),this._attachedPortal=l,_}},{key:"dispose",value:function(){Ie(Oe(t.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(l){return l.hostView.rootNodes[0]}}]),t}(Jy),nE=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){return F(this,n),t.call(this,l,c)}return n}(Ps);return e.\u0275fac=function(t){return new(t||e)(N(Xn),N($n))},e.\u0275dir=ve({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Pe]}),e}(),Os=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _,C;return F(this,n),(C=t.call(this))._componentFactoryResolver=l,C._viewContainerRef=c,C._isInitialized=!1,C.attached=new ye,C.attachDomPortal=function(k){var D=k.element,I=C._document.createComment("dom-portal");k.setAttachedHost(It(C)),D.parentNode.insertBefore(I,D),C._getRootNode().appendChild(D),C._attachedPortal=k,Ie((_=It(C),Oe(n.prototype)),"setDisposeFn",_).call(_,function(){I.parentNode&&I.parentNode.replaceChild(D,I)})},C._document=h,C}return W(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(c){this.hasAttached()&&!c&&!this._isInitialized||(this.hasAttached()&&Ie(Oe(n.prototype),"detach",this).call(this),c&&Ie(Oe(n.prototype),"attach",this).call(this,c),this._attachedPortal=c)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){Ie(Oe(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(c){c.setAttachedHost(this);var h=null!=c.viewContainerRef?c.viewContainerRef:this._viewContainerRef,C=(c.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(c.component),k=h.createComponent(C,h.length,c.injector||h.injector);return h!==this._viewContainerRef&&this._getRootNode().appendChild(k.hostView.rootNodes[0]),Ie(Oe(n.prototype),"setDisposeFn",this).call(this,function(){return k.destroy()}),this._attachedPortal=c,this._attachedRef=k,this.attached.emit(k),k}},{key:"attachTemplatePortal",value:function(c){var h=this;c.setAttachedHost(this);var _=this._viewContainerRef.createEmbeddedView(c.templateRef,c.context);return Ie(Oe(n.prototype),"setDisposeFn",this).call(this,function(){return h._viewContainerRef.clear()}),this._attachedPortal=c,this._attachedRef=_,this.attached.emit(_),_}},{key:"_getRootNode",value:function(){var c=this._viewContainerRef.element.nativeElement;return c.nodeType===c.ELEMENT_NODE?c:c.parentNode}}]),n}(Jy);return e.\u0275fac=function(t){return new(t||e)(N($i),N($n),N(lt))},e.\u0275dir=ve({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Pe]}),e}(),xg=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),Sc=function(){function e(a,t){F(this,e),this.predicate=a,this.inclusive=t}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new t9(t,this.predicate,this.inclusive))}}]),e}(),t9=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).predicate=l,h.inclusive=c,h.index=0,h}return W(t,[{key:"_next",value:function(l){var h,c=this.destination;try{h=this.predicate(l,this.index++)}catch(_){return void c.error(_)}this.nextOrComplete(l,h)}},{key:"nextOrComplete",value:function(l,c){var h=this.destination;Boolean(c)?h.next(l):(this.inclusive&&h.next(l),h.complete())}}]),t}(Ze);function Bi(e){for(var a=arguments.length,t=new Array(a>1?a-1:0),n=1;nl.height||n.scrollWidth>l.width}}]),e}(),SV=function(){function e(a,t,n,l){var c=this;F(this,e),this._scrollDispatcher=a,this._ngZone=t,this._viewportRuler=n,this._config=l,this._scrollSubscription=null,this._detach=function(){c.disable(),c._overlayRef.hasAttached()&&c._ngZone.run(function(){return c._overlayRef.detach()})}}return W(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(function(){var l=t._viewportRuler.getViewportScrollPosition().top;Math.abs(l-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),kV=function(){function e(){F(this,e)}return W(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function fE(e,a){return a.some(function(t){return e.bottomt.bottom||e.rightt.right})}function Dc(e,a){return a.some(function(t){return e.topt.bottom||e.leftt.right})}var lQ=function(){function e(a,t,n,l){F(this,e),this._scrollDispatcher=a,this._viewportRuler=t,this._ngZone=n,this._config=l,this._scrollSubscription=null}return W(e,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var l=t._overlayRef.overlayElement.getBoundingClientRect(),c=t._viewportRuler.getViewportSize(),h=c.width,_=c.height;fE(l,[{width:h,height:_,bottom:_,right:h,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),uQ=function(){var e=function a(t,n,l,c){var h=this;F(this,a),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=l,this.noop=function(){return new kV},this.close=function(_){return new SV(h._scrollDispatcher,h._ngZone,h._viewportRuler,_)},this.block=function(){return new k9(h._viewportRuler,h._document)},this.reposition=function(_){return new lQ(h._scrollDispatcher,h._viewportRuler,h._ngZone,_)},this._document=c};return e.\u0275fac=function(t){return new(t||e)(ce(op),ce(yo),ce(ft),ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(op),ce(yo),ce(ft),ce(lt))},token:e,providedIn:"root"}),e}(),up=function e(a){if(F(this,e),this.scrollStrategy=new kV,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a)for(var n=0,l=Object.keys(a);n-1&&this._attachedOverlays.splice(l,1),0===this._attachedOverlays.length&&this.detach()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(lt))},token:e,providedIn:"root"}),e}(),T9=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this,l))._keydownListener=function(h){for(var _=c._attachedOverlays,C=_.length-1;C>-1;C--)if(_[C]._keydownEvents.observers.length>0){_[C]._keydownEvents.next(h);break}},c}return W(n,[{key:"add",value:function(c){Ie(Oe(n.prototype),"add",this).call(this,c),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(TV);return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(lt))},token:e,providedIn:"root"}),e}(),D9=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this,l))._platform=c,h._cursorStyleIsSet=!1,h._clickListener=function(_){for(var C=rp(_),k=h._attachedOverlays.slice(),D=k.length-1;D>-1;D--){var I=k[D];if(!(I._outsidePointerEvents.observers.length<1)&&I.hasAttached()){if(I.overlayElement.contains(C))break;I._outsidePointerEvents.next(_)}}},h}return W(n,[{key:"add",value:function(c){if(Ie(Oe(n.prototype),"add",this).call(this,c),!this._isAttached){var h=this._document.body;h.addEventListener("click",this._clickListener,!0),h.addEventListener("auxclick",this._clickListener,!0),h.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=h.style.cursor,h.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var c=this._document.body;c.removeEventListener("click",this._clickListener,!0),c.removeEventListener("auxclick",this._clickListener,!0),c.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(c.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(TV);return e.\u0275fac=function(t){return new(t||e)(ce(lt),ce(en))},e.\u0275prov=We({factory:function(){return new e(ce(lt),ce(en))},token:e,providedIn:"root"}),e}(),Tu="undefined"!=typeof window?window:{},DV=void 0!==Tu.__karma__&&!!Tu.__karma__||void 0!==Tu.jasmine&&!!Tu.jasmine||void 0!==Tu.jest&&!!Tu.jest||void 0!==Tu.Mocha&&!!Tu.Mocha,tb=function(){var e=function(){function a(t,n){F(this,a),this._platform=n,this._document=t}return W(a,[{key:"ngOnDestroy",value:function(){var n=this._containerElement;n&&n.parentNode&&n.parentNode.removeChild(n)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var n="cdk-overlay-container";if(this._platform.isBrowser||DV)for(var l=this._document.querySelectorAll(".".concat(n,'[platform="server"], ')+".".concat(n,'[platform="test"]')),c=0;cY&&(Y=se,G=fe)}}catch(be){Q.e(be)}finally{Q.f()}return this._isPushed=!1,void this._applyPosition(G.position,G.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(h.position,h.originPoint);this._applyPosition(h.position,h.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&cp(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(dE),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],n=this._getOriginPoint(this._originRect,t);this._applyPosition(t,n)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,n){var l;if("center"==n.originX)l=t.left+t.width/2;else{var c=this._isRtl()?t.right:t.left,h=this._isRtl()?t.left:t.right;l="start"==n.originX?c:h}return{x:l,y:"center"==n.originY?t.top+t.height/2:"top"==n.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,n,l){var c;return c="center"==l.overlayX?-n.width/2:"start"===l.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,{x:t.x+c,y:t.y+("center"==l.overlayY?-n.height/2:"top"==l.overlayY?0:-n.height)}}},{key:"_getOverlayFit",value:function(t,n,l,c){var h=EV(n),_=t.x,C=t.y,k=this._getOffset(c,"x"),D=this._getOffset(c,"y");k&&(_+=k),D&&(C+=D);var G=0-C,Y=C+h.height-l.height,Q=this._subtractOverflows(h.width,0-_,_+h.width-l.width),ie=this._subtractOverflows(h.height,G,Y),fe=Q*ie;return{visibleArea:fe,isCompletelyWithinViewport:h.width*h.height===fe,fitsInViewportVertically:ie===h.height,fitsInViewportHorizontally:Q==h.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,n,l){if(this._hasFlexibleDimensions){var c=l.bottom-n.y,h=l.right-n.x,_=AV(this._overlayRef.getConfig().minHeight),C=AV(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=_&&_<=c)&&(t.fitsInViewportHorizontally||null!=C&&C<=h)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,n,l){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var I,L,c=EV(n),h=this._viewportRect,_=Math.max(t.x+c.width-h.width,0),C=Math.max(t.y+c.height-h.height,0),k=Math.max(h.top-l.top-t.y,0),D=Math.max(h.left-l.left-t.x,0);return this._previousPushAmount={x:I=c.width<=h.width?D||-_:t.xD&&!this._isInitialRender&&!this._growAfterOpen&&(_=t.y-D/2)}if("end"===n.overlayX&&!c||"start"===n.overlayX&&c)Q=l.width-t.x+this._viewportMargin,G=t.x-this._viewportMargin;else if("start"===n.overlayX&&!c||"end"===n.overlayX&&c)Y=t.x,G=l.right-t.x;else{var ie=Math.min(l.right-t.x+l.left,t.x),fe=this._lastBoundingBoxSize.width;Y=t.x-ie,(G=2*ie)>fe&&!this._isInitialRender&&!this._growAfterOpen&&(Y=t.x-fe/2)}return{top:_,left:Y,bottom:C,right:Q,width:G,height:h}}},{key:"_setBoundingBoxStyles",value:function(t,n){var l=this._calculateBoundingBoxRect(t,n);!this._isInitialRender&&!this._growAfterOpen&&(l.height=Math.min(l.height,this._lastBoundingBoxSize.height),l.width=Math.min(l.width,this._lastBoundingBoxSize.width));var c={};if(this._hasExactPosition())c.top=c.left="0",c.bottom=c.right=c.maxHeight=c.maxWidth="",c.width=c.height="100%";else{var h=this._overlayRef.getConfig().maxHeight,_=this._overlayRef.getConfig().maxWidth;c.height=mi(l.height),c.top=mi(l.top),c.bottom=mi(l.bottom),c.width=mi(l.width),c.left=mi(l.left),c.right=mi(l.right),c.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",c.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",h&&(c.maxHeight=mi(h)),_&&(c.maxWidth=mi(_))}this._lastBoundingBoxSize=l,cp(this._boundingBox.style,c)}},{key:"_resetBoundingBoxStyles",value:function(){cp(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){cp(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,n){var l={},c=this._hasExactPosition(),h=this._hasFlexibleDimensions,_=this._overlayRef.getConfig();if(c){var C=this._viewportRuler.getViewportScrollPosition();cp(l,this._getExactOverlayY(n,t,C)),cp(l,this._getExactOverlayX(n,t,C))}else l.position="static";var k="",D=this._getOffset(n,"x"),I=this._getOffset(n,"y");D&&(k+="translateX(".concat(D,"px) ")),I&&(k+="translateY(".concat(I,"px)")),l.transform=k.trim(),_.maxHeight&&(c?l.maxHeight=mi(_.maxHeight):h&&(l.maxHeight="")),_.maxWidth&&(c?l.maxWidth=mi(_.maxWidth):h&&(l.maxWidth="")),cp(this._pane.style,l)}},{key:"_getExactOverlayY",value:function(t,n,l){var c={top:"",bottom:""},h=this._getOverlayPoint(n,this._overlayRect,t);this._isPushed&&(h=this._pushOverlayOnScreen(h,this._overlayRect,l));var _=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return h.y-=_,"bottom"===t.overlayY?c.bottom="".concat(this._document.documentElement.clientHeight-(h.y+this._overlayRect.height),"px"):c.top=mi(h.y),c}},{key:"_getExactOverlayX",value:function(t,n,l){var c={left:"",right:""},h=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(h=this._pushOverlayOnScreen(h,this._overlayRect,l)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?c.right="".concat(this._document.documentElement.clientWidth-(h.x+this._overlayRect.width),"px"):c.left=mi(h.x),c}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),n=this._pane.getBoundingClientRect(),l=this._scrollables.map(function(c){return c.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Dc(t,l),isOriginOutsideView:fE(t,l),isOverlayClipped:Dc(n,l),isOverlayOutsideView:fE(n,l)}}},{key:"_subtractOverflows",value:function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,l=this._overlayRef.getConfig(),c=l.width,h=l.height,_=l.maxWidth,C=l.maxHeight,k=!("100%"!==c&&"100vw"!==c||_&&"100%"!==_&&"100vw"!==_),D=!("100%"!==h&&"100vh"!==h||C&&"100%"!==C&&"100vh"!==C);t.position=this._cssPosition,t.marginLeft=k?"0":this._leftOffset,t.marginTop=D?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,k?n.justifyContent="flex-start":"center"===this._justifyContent?n.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?n.justifyContent="flex-end":"flex-end"===this._justifyContent&&(n.justifyContent="flex-start"):n.justifyContent=this._justifyContent,n.alignItems=D?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,l=n.style;n.classList.remove(pE),l.justifyContent=l.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),P9=function(){var e=function(){function a(t,n,l,c){F(this,a),this._viewportRuler=t,this._document=n,this._platform=l,this._overlayContainer=c}return W(a,[{key:"global",value:function(){return new vE}},{key:"connectedTo",value:function(n,l,c){return new E9(l,c,n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(n){return new hE(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(yo),ce(lt),ce(en),ce(tb))},e.\u0275prov=We({factory:function(){return new e(ce(yo),ce(lt),ce(en),ce(tb))},token:e,providedIn:"root"}),e}(),Is=0,Ai=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,I,L){F(this,a),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=l,this._positionBuilder=c,this._keyboardDispatcher=h,this._injector=_,this._ngZone=C,this._document=k,this._directionality=D,this._location=I,this._outsideClickDispatcher=L}return W(a,[{key:"create",value:function(n){var l=this._createHostElement(),c=this._createPaneElement(l),h=this._createPortalOutlet(c),_=new up(n);return _.direction=_.direction||this._directionality.value,new Ag(h,l,c,_,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(n){var l=this._document.createElement("div");return l.id="cdk-overlay-".concat(Is++),l.classList.add("cdk-overlay-pane"),n.appendChild(l),l}},{key:"_createHostElement",value:function(){var n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalOutlet",value:function(n){return this._appRef||(this._appRef=this._injector.get(lc)),new tE(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(uQ),ce(tb),ce($i),ce(P9),ce(T9),ce(kn),ce(ft),ce(lt),ce(Mr),ce(Jv),ce(D9))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Eg=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],gE=new Ee("cdk-connected-overlay-scroll-strategy"),O9=function(){var e=function a(t){F(this,a),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),PV=function(){var e=function(){function a(t,n,l,c,h){F(this,a),this._overlay=t,this._dir=h,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Be.EMPTY,this._attachSubscription=Be.EMPTY,this._detachSubscription=Be.EMPTY,this._positionSubscription=Be.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ye,this.positionChange=new ye,this.attach=new ye,this.detach=new ye,this.overlayKeydown=new ye,this.overlayOutsideClick=new ye,this._templatePortal=new Ps(n,l),this._scrollStrategyFactory=c,this.scrollStrategy=this._scrollStrategyFactory()}return W(a,[{key:"offsetX",get:function(){return this._offsetX},set:function(n){this._offsetX=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(n){this._offsetY=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(n){this._hasBackdrop=it(n)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(n){this._lockPosition=it(n)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(n){this._flexibleDimensions=it(n)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(n){this._growAfterOpen=it(n)}},{key:"push",get:function(){return this._push},set:function(n){this._push=it(n)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(n){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),n.origin&&this.open&&this._position.apply()),n.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var n=this;(!this.positions||!this.positions.length)&&(this.positions=Eg);var l=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=l.attachments().subscribe(function(){return n.attach.emit()}),this._detachSubscription=l.detachments().subscribe(function(){return n.detach.emit()}),l.keydownEvents().subscribe(function(c){n.overlayKeydown.next(c),27===c.keyCode&&!n.disableClose&&!Bi(c)&&(c.preventDefault(),n._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(c){n.overlayOutsideClick.next(c)})}},{key:"_buildConfig",value:function(){var n=this._position=this.positionStrategy||this._createPositionStrategy(),l=new up({direction:this._dir,positionStrategy:n,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(l.width=this.width),(this.height||0===this.height)&&(l.height=this.height),(this.minWidth||0===this.minWidth)&&(l.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(l.minHeight=this.minHeight),this.backdropClass&&(l.backdropClass=this.backdropClass),this.panelClass&&(l.panelClass=this.panelClass),l}},{key:"_updatePositionStrategy",value:function(n){var l=this,c=this.positions.map(function(h){return{originX:h.originX,originY:h.originY,overlayX:h.overlayX,overlayY:h.overlayY,offsetX:h.offsetX||l.offsetX,offsetY:h.offsetY||l.offsetY,panelClass:h.panelClass||void 0}});return n.setOrigin(this.origin.elementRef).withPositions(c).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var n=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(n),n}},{key:"_attachOverlay",value:function(){var n=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(l){n.backdropClick.emit(l)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(t){return t.lift(new Sc(e,a))}}(function(){return n.positionChange.observers.length>0})).subscribe(function(l){n.positionChange.emit(l),0===n.positionChange.observers.length&&n._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(Xn),N($n),N(gE),N(Mr,8))},e.\u0275dir=ve({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[on]}),e}(),OV={provide:gE,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},fp=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Ai,OV],imports:[[$y,xg,q1],q1]}),e}();function mE(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg;return function(t){return t.lift(new IV(e,a))}}var IV=function(){function e(a,t){F(this,e),this.dueTime=a,this.scheduler=t}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new R9(t,this.dueTime,this.scheduler))}}]),e}(),R9=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).dueTime=l,h.scheduler=c,h.debouncedSubscription=null,h.lastValue=null,h.hasValue=!1,h}return W(t,[{key:"_next",value:function(l){this.clearDebounce(),this.lastValue=l,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(RV,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var l=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(l)}}},{key:"clearDebounce",value:function(){var l=this.debouncedSubscription;null!==l&&(this.remove(l),l.unsubscribe(),this.debouncedSubscription=null)}}]),t}(Ze);function RV(e){e.debouncedNext()}function L9(e){return function(a){return a.lift(new fQ(e))}}var fQ=function(){function e(a){F(this,e),this.total=a}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new F9(t,this.total))}}]),e}(),F9=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this,n)).total=l,c.count=0,c}return W(t,[{key:"_next",value:function(l){++this.count>this.total&&this.destination.next(l)}}]),t}(Ze),_E=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"create",value:function(n){return"undefined"==typeof MutationObserver?null:new MutationObserver(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),yE=function(){var e=function(){function a(t){F(this,a),this._mutationObserverFactory=t,this._observedElements=new Map}return W(a,[{key:"ngOnDestroy",value:function(){var n=this;this._observedElements.forEach(function(l,c){return n._cleanupObserver(c)})}},{key:"observe",value:function(n){var l=this,c=bc(n);return new gn(function(h){var C=l._observeElement(c).subscribe(h);return function(){C.unsubscribe(),l._unobserveElement(c)}})}},{key:"_observeElement",value:function(n){if(this._observedElements.has(n))this._observedElements.get(n).count++;else{var l=new qe,c=this._mutationObserverFactory.create(function(h){return l.next(h)});c&&c.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:c,stream:l,count:1})}return this._observedElements.get(n).stream}},{key:"_unobserveElement",value:function(n){this._observedElements.has(n)&&(this._observedElements.get(n).count--,this._observedElements.get(n).count||this._cleanupObserver(n))}},{key:"_cleanupObserver",value:function(n){if(this._observedElements.has(n)){var l=this._observedElements.get(n),c=l.observer,h=l.stream;c&&c.disconnect(),h.complete(),this._observedElements.delete(n)}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(_E))},e.\u0275prov=We({factory:function(){return new e(ce(_E))},token:e,providedIn:"root"}),e}(),nb=function(){var e=function(){function a(t,n,l){F(this,a),this._contentObserver=t,this._elementRef=n,this._ngZone=l,this.event=new ye,this._disabled=!1,this._currentSubscription=null}return W(a,[{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=it(n),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(n){this._debounce=Di(n),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var n=this;this._unsubscribe();var l=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){n._currentSubscription=(n.debounce?l.pipe(mE(n.debounce)):l).subscribe(n.event)})}},{key:"_unsubscribe",value:function(){var n;null===(n=this._currentSubscription)||void 0===n||n.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(yE),N(Ue),N(ft))},e.\u0275dir=ve({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),ld=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[_E]}),e}();function tS(e,a){return(e.getAttribute(a)||"").match(/\S+/g)||[]}var LV="cdk-describedby-message-container",rb="cdk-describedby-message",nS="cdk-describedby-host",bE=0,Du=new Map,ra=null,FV=function(){var e=function(){function a(t){F(this,a),this._document=t}return W(a,[{key:"describe",value:function(n,l,c){if(this._canBeDescribed(n,l)){var h=CE(l,c);"string"!=typeof l?(NV(l),Du.set(h,{messageElement:l,referenceCount:0})):Du.has(h)||this._createMessageElement(l,c),this._isElementDescribedByMessage(n,h)||this._addMessageReference(n,h)}}},{key:"removeDescription",value:function(n,l,c){if(l&&this._isElementNode(n)){var h=CE(l,c);if(this._isElementDescribedByMessage(n,h)&&this._removeMessageReference(n,h),"string"==typeof l){var _=Du.get(h);_&&0===_.referenceCount&&this._deleteMessageElement(h)}ra&&0===ra.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var n=this._document.querySelectorAll("[".concat(nS,"]")),l=0;l-1&&c!==t._activeItemIndex&&(t._activeItemIndex=c)}})}return W(e,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Ya(function(l){return t._pressedLetters.push(l)}),mE(n),vr(function(){return t._pressedLetters.length>0}),He(function(){return t._pressedLetters.join("")})).subscribe(function(l){for(var c=t._getItemsArray(),h=1;h0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var n=this._activeItem;this.updateActiveItem(t),this._activeItem!==n&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var n=this,l=t.keyCode,h=["altKey","ctrlKey","metaKey","shiftKey"].every(function(_){return!t[_]||n._allowedModifierKeys.indexOf(_)>-1});switch(l){case 9:return void this.tabOut.next();case 40:if(this._vertical&&h){this.setNextItemActive();break}return;case 38:if(this._vertical&&h){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&h){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&h){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&h){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&h){this.setLastItemActive();break}return;default:return void((h||Bi(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(l>=65&&l<=90||l>=48&&l<=57)&&this._letterKeyStream.next(String.fromCharCode(l))))}this._pressedLetters=[],t.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var n=this._getItemsArray(),l="number"==typeof t?t:n.indexOf(t),c=n[l];this._activeItem=null==c?null:c,this._activeItemIndex=l}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var n=this._getItemsArray(),l=1;l<=n.length;l++){var c=(this._activeItemIndex+t*l+n.length)%n.length;if(!this._skipPredicateFn(n[c]))return void this.setActiveItem(c)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,n){var l=this._getItemsArray();if(l[t]){for(;this._skipPredicateFn(l[t]);)if(!l[t+=n])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Wo?this._items.toArray():this._items}}]),e}(),wE=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"setActiveItem",value:function(l){this.activeItem&&this.activeItem.setInactiveStyles(),Ie(Oe(t.prototype),"setActiveItem",this).call(this,l),this.activeItem&&this.activeItem.setActiveStyles()}}]),t}(VV),ib=function(e){ae(t,e);var a=ue(t);function t(){var n;return F(this,t),(n=a.apply(this,arguments))._origin="program",n}return W(t,[{key:"setFocusOrigin",value:function(l){return this._origin=l,this}},{key:"setActiveItem",value:function(l){Ie(Oe(t.prototype),"setActiveItem",this).call(this,l),this.activeItem&&this.activeItem.focus(this._origin)}}]),t}(VV),BV=function(){var e=function(){function a(t){F(this,a),this._platform=t}return W(a,[{key:"isDisabled",value:function(n){return n.hasAttribute("disabled")}},{key:"isVisible",value:function(n){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(n)&&"visible"===getComputedStyle(n).visibility}},{key:"isTabbable",value:function(n){if(!this._platform.isBrowser)return!1;var l=function(e){try{return e.frameElement}catch(a){return null}}(function(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(n));if(l&&(-1===kE(l)||!this.isVisible(l)))return!1;var c=n.nodeName.toLowerCase(),h=kE(n);return n.hasAttribute("contenteditable")?-1!==h:!("iframe"===c||"object"===c||this._platform.WEBKIT&&this._platform.IOS&&!function(e){var a=e.nodeName.toLowerCase(),t="input"===a&&e.type;return"text"===t||"password"===t||"select"===a||"textarea"===a}(n))&&("audio"===c?!!n.hasAttribute("controls")&&-1!==h:"video"===c?-1!==h&&(null!==h||this._platform.FIREFOX||n.hasAttribute("controls")):n.tabIndex>=0)}},{key:"isFocusable",value:function(n,l){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var a=e.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||rS(e))}(n)&&!this.isDisabled(n)&&((null==l?void 0:l.ignoreVisibility)||this.isVisible(n))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en))},e.\u0275prov=We({factory:function(){return new e(ce(en))},token:e,providedIn:"root"}),e}();function rS(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var a=e.getAttribute("tabindex");return"-32768"!=a&&!(!a||isNaN(parseInt(a,10)))}function kE(e){if(!rS(e))return null;var a=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}var ME=function(){function e(a,t,n,l){var c=this,h=arguments.length>4&&void 0!==arguments[4]&&arguments[4];F(this,e),this._element=a,this._checker=t,this._ngZone=n,this._document=l,this._hasAttached=!1,this.startAnchorListener=function(){return c.focusLastTabbableElement()},this.endAnchorListener=function(){return c.focusFirstTabbableElement()},this._enabled=!0,h||this.attachAnchors()}return W(e,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,n=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),n&&(n.removeEventListener("focus",this.endAnchorListener),n.parentNode&&n.parentNode.removeChild(n)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(t){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){for(var n=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]")),l=0;l=0;l--){var c=n[l].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[l]):null;if(c)return c}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,n){t?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(or(1)).subscribe(t)}}]),e}(),xE=function(){var e=function(){function a(t,n,l){F(this,a),this._checker=t,this._ngZone=n,this._document=l}return W(a,[{key:"create",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new ME(n,this._checker,this._ngZone,this._document,l)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(BV),ce(ft),ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(BV),ce(ft),ce(lt))},token:e,providedIn:"root"}),e}(),UV=function(){var e=function(){function a(t,n,l){F(this,a),this._elementRef=t,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return W(a,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(n){this.focusTrap.enabled=it(n)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(n){this._autoCapture=it(n)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(n){var l=n.autoCapture;l&&!l.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=Ky(),this.focusTrap.focusInitialElementWhenReady()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(xE),N(lt))},e.\u0275dir=ve({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[on]}),e}();function ab(e){return 0===e.offsetX&&0===e.offsetY}function AE(e){var a=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}"undefined"!=typeof Element&∈var GV=new Ee("cdk-input-modality-detector-options"),Z9={ignoreKeys:[18,17,224,91,16]},Pg=tp({passive:!0,capture:!0}),WV=function(){var e=function(){function a(t,n,l,c){var h=this;F(this,a),this._platform=t,this._mostRecentTarget=null,this._modality=new xa(null),this._lastTouchMs=0,this._onKeydown=function(_){var C,k;(null===(k=null===(C=h._options)||void 0===C?void 0:C.ignoreKeys)||void 0===k?void 0:k.some(function(D){return D===_.keyCode}))||(h._modality.next("keyboard"),h._mostRecentTarget=rp(_))},this._onMousedown=function(_){Date.now()-h._lastTouchMs<650||(h._modality.next(ab(_)?"keyboard":"mouse"),h._mostRecentTarget=rp(_))},this._onTouchstart=function(_){AE(_)?h._modality.next("keyboard"):(h._lastTouchMs=Date.now(),h._modality.next("touch"),h._mostRecentTarget=rp(_))},this._options=Object.assign(Object.assign({},Z9),c),this.modalityDetected=this._modality.pipe(L9(1)),this.modalityChanged=this.modalityDetected.pipe(Xa()),t.isBrowser&&n.runOutsideAngular(function(){l.addEventListener("keydown",h._onKeydown,Pg),l.addEventListener("mousedown",h._onMousedown,Pg),l.addEventListener("touchstart",h._onTouchstart,Pg)})}return W(a,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,Pg),document.removeEventListener("mousedown",this._onMousedown,Pg),document.removeEventListener("touchstart",this._onTouchstart,Pg))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en),ce(ft),ce(lt),ce(GV,8))},e.\u0275prov=We({factory:function(){return new e(ce(en),ce(ft),ce(lt),ce(GV,8))},token:e,providedIn:"root"}),e}(),EE=new Ee("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),PE=new Ee("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),iS=function(){var e=function(){function a(t,n,l,c){F(this,a),this._ngZone=n,this._defaultOptions=c,this._document=l,this._liveElement=t||this._createLiveElement()}return W(a,[{key:"announce",value:function(n){for(var h,_,l=this,c=this._defaultOptions,C=arguments.length,k=new Array(C>1?C-1:0),D=1;D1&&void 0!==arguments[1]&&arguments[1],c=bc(n);if(!this._platform.isBrowser||1!==c.nodeType)return ut(null);var h=W1(c)||this._getDocument(),_=this._elementInfo.get(c);if(_)return l&&(_.checkChildren=!0),_.subject;var C={checkChildren:l,subject:new qe,rootNode:h};return this._elementInfo.set(c,C),this._registerGlobalListeners(C),C.subject}},{key:"stopMonitoring",value:function(n){var l=bc(n),c=this._elementInfo.get(l);c&&(c.subject.complete(),this._setClasses(l),this._elementInfo.delete(l),this._removeGlobalListeners(c))}},{key:"focusVia",value:function(n,l,c){var h=this,_=bc(n);_===this._getDocument().activeElement?this._getClosestElementsInfo(_).forEach(function(k){var D=cr(k,2);return h._originChanged(D[0],l,D[1])}):(this._setOrigin(l),"function"==typeof _.focus&&_.focus(c))}},{key:"ngOnDestroy",value:function(){var n=this;this._elementInfo.forEach(function(l,c){return n.stopMonitoring(c)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(n,l,c){c?n.classList.add(l):n.classList.remove(l)}},{key:"_getFocusOrigin",value:function(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(n){return 1===this._detectionMode||!!(null==n?void 0:n.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(n,l){this._toggleClass(n,"cdk-focused",!!l),this._toggleClass(n,"cdk-touch-focused","touch"===l),this._toggleClass(n,"cdk-keyboard-focused","keyboard"===l),this._toggleClass(n,"cdk-mouse-focused","mouse"===l),this._toggleClass(n,"cdk-program-focused","program"===l)}},{key:"_setOrigin",value:function(n){var l=this,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){l._origin=n,l._originFromTouchInteraction="touch"===n&&c,0===l._detectionMode&&(clearTimeout(l._originTimeoutId),l._originTimeoutId=setTimeout(function(){return l._origin=null},l._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(n,l){var c=this._elementInfo.get(l),h=rp(n);!c||!c.checkChildren&&l!==h||this._originChanged(l,this._getFocusOrigin(h),c)}},{key:"_onBlur",value:function(n,l){var c=this._elementInfo.get(l);!c||c.checkChildren&&n.relatedTarget instanceof Node&&l.contains(n.relatedTarget)||(this._setClasses(l),this._emitOrigin(c.subject,null))}},{key:"_emitOrigin",value:function(n,l){this._ngZone.run(function(){return n.next(l)})}},{key:"_registerGlobalListeners",value:function(n){var l=this;if(this._platform.isBrowser){var c=n.rootNode,h=this._rootNodeFocusListenerCount.get(c)||0;h||this._ngZone.runOutsideAngular(function(){c.addEventListener("focus",l._rootNodeFocusAndBlurListener,aS),c.addEventListener("blur",l._rootNodeFocusAndBlurListener,aS)}),this._rootNodeFocusListenerCount.set(c,h+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){l._getWindow().addEventListener("focus",l._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(zt(this._stopInputModalityDetector)).subscribe(function(_){l._setOrigin(_,!0)}))}}},{key:"_removeGlobalListeners",value:function(n){var l=n.rootNode;if(this._rootNodeFocusListenerCount.has(l)){var c=this._rootNodeFocusListenerCount.get(l);c>1?this._rootNodeFocusListenerCount.set(l,c-1):(l.removeEventListener("focus",this._rootNodeFocusAndBlurListener,aS),l.removeEventListener("blur",this._rootNodeFocusAndBlurListener,aS),this._rootNodeFocusListenerCount.delete(l))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(n,l,c){this._setClasses(n,l),this._emitOrigin(c.subject,l),this._lastFocusOrigin=l}},{key:"_getClosestElementsInfo",value:function(n){var l=[];return this._elementInfo.forEach(function(c,h){(h===n||c.checkChildren&&h.contains(n))&&l.push([h,c])}),l}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(ft),ce(en),ce(WV),ce(lt,8),ce(XV,8))},e.\u0275prov=We({factory:function(){return new e(ce(ft),ce(en),ce(WV),ce(lt,8),ce(XV,8))},token:e,providedIn:"root"}),e}(),OE=function(){var e=function(){function a(t,n){F(this,a),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new ye}return W(a,[{key:"ngAfterViewInit",value:function(){var n=this,l=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(l,1===l.nodeType&&l.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(c){return n.cdkFocusChange.emit(c)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ia))},e.\u0275dir=ve({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),e}(),ZV="cdk-high-contrast-black-on-white",KV="cdk-high-contrast-white-on-black",IE="cdk-high-contrast-active",RE=function(){var e=function(){function a(t,n){F(this,a),this._platform=t,this._document=n}return W(a,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);var l=this._document.defaultView||window,c=l&&l.getComputedStyle?l.getComputedStyle(n):null,h=(c&&c.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(n),h){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var n=this._document.body.classList;n.remove(IE),n.remove(ZV),n.remove(KV),this._hasCheckedHighContrastMode=!0;var l=this.getHighContrastMode();1===l?(n.add(IE),n.add(ZV)):2===l&&(n.add(IE),n.add(KV))}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en),ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(en),ce(lt))},token:e,providedIn:"root"}),e}(),LE=function(){var e=function a(t){F(this,a),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(ce(RE))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[ep,ld]]}),e}(),$V=new nc("12.2.4"),FE=function e(){F(this,e)},K9=function e(){F(this,e)},Ac="*";function Ei(e,a){return{type:7,name:e,definitions:a,options:{}}}function Tn(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:a,timings:e}}function NE(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:a}}function gt(e){return{type:6,styles:e,offset:null}}function Bn(e,a,t){return{type:0,name:e,styles:a,options:t}}function Dl(e){return{type:5,steps:e}}function zn(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:a,options:t}}function QV(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function BE(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:a,options:t}}function JV(e){Promise.resolve(null).then(e)}var Og=function(){function e(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;F(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+t}return W(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;JV(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),e}(),HE=function(){function e(a){var t=this;F(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;var n=0,l=0,c=0,h=this.players.length;0==h?JV(function(){return t._onFinish()}):this.players.forEach(function(_){_.onDone(function(){++n==h&&t._onFinish()}),_.onDestroy(function(){++l==h&&t._onDestroy()}),_.onStart(function(){++c==h&&t._onStart()})}),this.totalTime=this.players.reduce(function(_,C){return Math.max(_,C.totalTime)},0)}return W(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var n=t*this.totalTime;this.players.forEach(function(l){var c=l.totalTime?Math.min(1,n/l.totalTime):1;l.setPosition(c)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(n,l){return null===n||l.totalTime>n.totalTime?l:n},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),e}();function eB(){return"undefined"!=typeof window&&void 0!==window.document}function UE(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ud(e){switch(e.length){case 0:return new Og;case 1:return e[0];default:return new HE(e)}}function tB(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=[],_=[],C=-1,k=null;if(n.forEach(function(I){var L=I.offset,G=L==C,Y=G&&k||{};Object.keys(I).forEach(function(Q){var ie=Q,fe=I[Q];if("offset"!==Q)switch(ie=a.normalizePropertyName(ie,h),fe){case"!":fe=l[Q];break;case Ac:fe=c[Q];break;default:fe=a.normalizeStyleValue(Q,ie,fe,h)}Y[ie]=fe}),G||_.push(Y),k=Y,C=L}),h.length){var D="\n - ";throw new Error("Unable to animate due to the following errors:".concat(D).concat(h.join(D)))}return _}function GE(e,a,t,n){switch(a){case"start":e.onStart(function(){return n(t&&oS(t,"start",e))});break;case"done":e.onDone(function(){return n(t&&oS(t,"done",e))});break;case"destroy":e.onDestroy(function(){return n(t&&oS(t,"destroy",e))})}}function oS(e,a,t){var n=t.totalTime,c=sS(e.element,e.triggerName,e.fromState,e.toState,a||e.phaseName,null==n?e.totalTime:n,!!t.disabled),h=e._data;return null!=h&&(c._data=h),c}function sS(e,a,t,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,h=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:a,fromState:t,toState:n,phaseName:l,totalTime:c,disabled:!!h}}function Ka(e,a,t){var n;return e instanceof Map?(n=e.get(a))||e.set(a,n=t):(n=e[a])||(n=e[a]=t),n}function jE(e){var a=e.indexOf(":");return[e.substring(1,a),e.substr(a+1)]}var WE=function(a,t){return!1},YE=function(a,t){return!1},qE=function(a,t,n){return[]},J9=UE();(J9||"undefined"!=typeof Element)&&(WE=eB()?function(a,t){for(;t&&t!==document.documentElement;){if(t===a)return!0;t=t.parentNode||t.host}return!1}:function(a,t){return a.contains(t)},YE=function(){if(J9||Element.prototype.matches)return function(t,n){return t.matches(n)};var e=Element.prototype,a=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return a?function(t,n){return a.apply(t,[n])}:YE}(),qE=function(a,t,n){var l=[];if(n)for(var c=a.querySelectorAll(t),h=0;h1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(t){a[t]=e[t]}),a}function cd(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(a)for(var n in e)t[n]=e[n];else pp(e,t);return t}function uB(e,a,t){return t?a+":"+t+";":""}function cB(e){for(var a="",t=0;t *";case":leave":return"* => void";case":increment":return function(t,n){return parseFloat(n)>parseFloat(t)};case":decrement":return function(t,n){return parseFloat(n) *"}}(e,t);if("function"==typeof n)return void a.push(n);e=n}var l=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==l||l.length<4)return t.push('The provided transition expression "'.concat(e,'" is not supported')),a;var c=l[1],h=l[2],_=l[3];a.push(vB(c,_)),"<"==h[0]&&!("*"==c&&"*"==_)&&a.push(vB(_,c))}(n,t,a)}):t.push(e),t}var sb=new Set(["true","1"]),Al=new Set(["false","0"]);function vB(e,a){var t=sb.has(e)||Al.has(e),n=sb.has(a)||Al.has(a);return function(l,c){var h="*"==e||e==l,_="*"==a||a==c;return!h&&t&&"boolean"==typeof l&&(h=l?sb.has(e):Al.has(e)),!_&&n&&"boolean"==typeof c&&(_=c?sb.has(a):Al.has(a)),h&&_}}var aY=new RegExp("s*".concat(":self","s*,?"),"g");function mB(e,a,t){return new tP(e).build(a,t)}var tP=function(){function e(a){F(this,e),this._driver=a}return W(e,[{key:"build",value:function(t,n){var l=new oY(n);return this._resetContextStyleTimingState(l),bo(this,Ig(t),l)}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,n){var l=this,c=n.queryCount=0,h=n.depCount=0,_=[],C=[];return"@"==t.name.charAt(0)&&n.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(function(k){if(l._resetContextStyleTimingState(n),0==k.type){var D=k,I=D.name;I.toString().split(/\s*,\s*/).forEach(function(G){D.name=G,_.push(l.visitState(D,n))}),D.name=I}else if(1==k.type){var L=l.visitTransition(k,n);c+=L.queryCount,h+=L.depCount,C.push(L)}else n.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:_,transitions:C,queryCount:c,depCount:h,options:null}}},{key:"visitState",value:function(t,n){var l=this.visitStyle(t.styles,n),c=t.options&&t.options.params||null;if(l.containsDynamicStyles){var h=new Set,_=c||{};if(l.styles.forEach(function(k){if(fb(k)){var D=k;Object.keys(D).forEach(function(I){fB(D[I]).forEach(function(L){_.hasOwnProperty(L)||h.add(L)})})}}),h.size){var C=ob(h.values());n.errors.push('state("'.concat(t.name,'", ...) must define default values for all the following style substitutions: ').concat(C.join(", ")))}}return{type:0,name:t.name,style:l,options:c?{params:c}:null}}},{key:"visitTransition",value:function(t,n){n.queryCount=0,n.depCount=0;var l=bo(this,Ig(t.animation),n);return{type:1,matchers:eP(t.expr,n.errors),animation:l,queryCount:n.queryCount,depCount:n.depCount,options:Ic(t.options)}}},{key:"visitSequence",value:function(t,n){var l=this;return{type:2,steps:t.steps.map(function(c){return bo(l,c,n)}),options:Ic(t.options)}}},{key:"visitGroup",value:function(t,n){var l=this,c=n.currentTime,h=0,_=t.steps.map(function(C){n.currentTime=c;var k=bo(l,C,n);return h=Math.max(h,n.currentTime),k});return n.currentTime=h,{type:3,steps:_,options:Ic(t.options)}}},{key:"visitAnimate",value:function(t,n){var l=function(e,a){var t=null;if(e.hasOwnProperty("duration"))t=e;else if("number"==typeof e)return rP(gS(e,a).duration,0,"");var l=e;if(l.split(/\s+/).some(function(_){return"{"==_.charAt(0)&&"{"==_.charAt(1)})){var h=rP(0,0,"");return h.dynamic=!0,h.strValue=l,h}return rP((t=t||gS(l,a)).duration,t.delay,t.easing)}(t.timings,n.errors);n.currentAnimateTimings=l;var c,h=t.styles?t.styles:gt({});if(5==h.type)c=this.visitKeyframes(h,n);else{var _=t.styles,C=!1;if(!_){C=!0;var k={};l.easing&&(k.easing=l.easing),_=gt(k)}n.currentTime+=l.duration+l.delay;var D=this.visitStyle(_,n);D.isEmptyStep=C,c=D}return n.currentAnimateTimings=null,{type:4,timings:l,style:c,options:null}}},{key:"visitStyle",value:function(t,n){var l=this._makeStyleAst(t,n);return this._validateStyleAst(l,n),l}},{key:"_makeStyleAst",value:function(t,n){var l=[];Array.isArray(t.styles)?t.styles.forEach(function(_){"string"==typeof _?_==Ac?l.push(_):n.errors.push("The provided style string value ".concat(_," is not allowed.")):l.push(_)}):l.push(t.styles);var c=!1,h=null;return l.forEach(function(_){if(fb(_)){var C=_,k=C.easing;if(k&&(h=k,delete C.easing),!c)for(var D in C)if(C[D].toString().indexOf("{{")>=0){c=!0;break}}}),{type:6,styles:l,easing:h,offset:t.offset,containsDynamicStyles:c,options:null}}},{key:"_validateStyleAst",value:function(t,n){var l=this,c=n.currentAnimateTimings,h=n.currentTime,_=n.currentTime;c&&_>0&&(_-=c.duration+c.delay),t.styles.forEach(function(C){"string"!=typeof C&&Object.keys(C).forEach(function(k){if(l._driver.validateStyleProperty(k)){var D=n.collectedStyles[n.currentQuerySelector],I=D[k],L=!0;I&&(_!=h&&_>=I.startTime&&h<=I.endTime&&(n.errors.push('The CSS property "'.concat(k,'" that exists between the times of "').concat(I.startTime,'ms" and "').concat(I.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(_,'ms" and "').concat(h,'ms"')),L=!1),_=I.startTime),L&&(D[k]={startTime:_,endTime:h}),n.options&&function(e,a,t){var n=a.params||{},l=fB(e);l.length&&l.forEach(function(c){n.hasOwnProperty(c)||t.push("Unable to resolve the local animation param ".concat(c," in the given list of values"))})}(C[k],n.options,n.errors)}else n.errors.push('The provided animation property "'.concat(k,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(t,n){var l=this,c={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push("keyframes() must be placed inside of a call to animate()"),c;var _=0,C=[],k=!1,D=!1,I=0,L=t.steps.map(function(be){var Ce=l._makeStyleAst(be,n),je=null!=Ce.offset?Ce.offset:function(e){if("string"==typeof e)return null;var a=null;if(Array.isArray(e))e.forEach(function(n){if(fb(n)&&n.hasOwnProperty("offset")){var l=n;a=parseFloat(l.offset),delete l.offset}});else if(fb(e)&&e.hasOwnProperty("offset")){var t=e;a=parseFloat(t.offset),delete t.offset}return a}(Ce.styles),$e=0;return null!=je&&(_++,$e=Ce.offset=je),D=D||$e<0||$e>1,k=k||$e0&&_0?Ce==Q?1:Y*Ce:C[Ce],$e=je*se;n.currentTime=ie+fe.delay+$e,fe.duration=$e,l._validateStyleAst(be,n),be.offset=je,c.styles.push(be)}),c}},{key:"visitReference",value:function(t,n){return{type:8,animation:bo(this,Ig(t.animation),n),options:Ic(t.options)}}},{key:"visitAnimateChild",value:function(t,n){return n.depCount++,{type:9,options:Ic(t.options)}}},{key:"visitAnimateRef",value:function(t,n){return{type:10,animation:this.visitReference(t.animation,n),options:Ic(t.options)}}},{key:"visitQuery",value:function(t,n){var l=n.currentQuerySelector,c=t.options||{};n.queryCount++,n.currentQuery=t;var _=cr(function(e){var a=!!e.split(/\s*,\s*/).find(function(t){return":self"==t});return a&&(e=e.replace(aY,"")),[e=e.replace(/@\*/g,vS).replace(/@\w+/g,function(t){return vS+"-"+t.substr(1)}).replace(/:animating/g,KE),a]}(t.selector),2),C=_[0],k=_[1];n.currentQuerySelector=l.length?l+" "+C:C,Ka(n.collectedStyles,n.currentQuerySelector,{});var D=bo(this,Ig(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=l,{type:11,selector:C,limit:c.limit||0,optional:!!c.optional,includeSelf:k,animation:D,originalSelector:t.selector,options:Ic(t.options)}}},{key:"visitStagger",value:function(t,n){n.currentQuery||n.errors.push("stagger() can only be used inside of query()");var l="full"===t.timings?{duration:0,delay:0,easing:"full"}:gS(t.timings,n.errors,!0);return{type:12,animation:bo(this,Ig(t.animation),n),timings:l,options:null}}}]),e}(),oY=function e(a){F(this,e),this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function fb(e){return!Array.isArray(e)&&"object"==typeof e}function Ic(e){return e?(e=pp(e)).params&&(e.params=function(e){return e?pp(e):null}(e.params)):e={},e}function rP(e,a,t){return{duration:e,delay:a,easing:t}}function db(e,a,t,n,l,c){var h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,_=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:a,preStyleProps:t,postStyleProps:n,duration:l,delay:c,totalTime:l+c,easing:h,subTimeline:_}}var CS=function(){function e(){F(this,e),this._map=new Map}return W(e,[{key:"consume",value:function(t){var n=this._map.get(t);return n?this._map.delete(t):n=[],n}},{key:"append",value:function(t,n){var l,c=this._map.get(t);c||this._map.set(t,c=[]),(l=c).push.apply(l,Et(n))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),uY=new RegExp(":enter","g"),fY=new RegExp(":leave","g");function yB(e,a,t,n,l){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},_=arguments.length>7?arguments[7]:void 0,C=arguments.length>8?arguments[8]:void 0,k=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new wS).buildKeyframes(e,a,t,n,l,c,h,_,C,k)}var wS=function(){function e(){F(this,e)}return W(e,[{key:"buildKeyframes",value:function(t,n,l,c,h,_,C,k,D){var I=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];D=D||new CS;var L=new kS(t,n,D,c,h,I,[]);L.options=k,L.currentTimeline.setStyles([_],null,L.errors,k),bo(this,l,L);var G=L.timelines.filter(function(Q){return Q.containsAnimation()});if(G.length&&Object.keys(C).length){var Y=G[G.length-1];Y.allowOnlyTimelineStyles()||Y.setStyles([C],null,L.errors,k)}return G.length?G.map(function(Q){return Q.buildKeyframes()}):[db(n,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,n){}},{key:"visitState",value:function(t,n){}},{key:"visitTransition",value:function(t,n){}},{key:"visitAnimateChild",value:function(t,n){var l=n.subInstructions.consume(n.element);if(l){var c=n.createSubContext(t.options),h=n.currentTimeline.currentTime,_=this._visitSubInstructions(l,c,c.options);h!=_&&n.transformIntoNewTimeline(_)}n.previousNode=t}},{key:"visitAnimateRef",value:function(t,n){var l=n.createSubContext(t.options);l.transformIntoNewTimeline(),this.visitReference(t.animation,l),n.transformIntoNewTimeline(l.currentTimeline.currentTime),n.previousNode=t}},{key:"_visitSubInstructions",value:function(t,n,l){var h=n.currentTimeline.currentTime,_=null!=l.duration?hp(l.duration):null,C=null!=l.delay?hp(l.delay):null;return 0!==_&&t.forEach(function(k){var D=n.appendInstructionToTimeline(k,_,C);h=Math.max(h,D.duration+D.delay)}),h}},{key:"visitReference",value:function(t,n){n.updateOptions(t.options,!0),bo(this,t.animation,n),n.previousNode=t}},{key:"visitSequence",value:function(t,n){var l=this,c=n.subContextCount,h=n,_=t.options;if(_&&(_.params||_.delay)&&((h=n.createSubContext(_)).transformIntoNewTimeline(),null!=_.delay)){6==h.previousNode.type&&(h.currentTimeline.snapshotCurrentStyles(),h.previousNode=SS);var C=hp(_.delay);h.delayNextStep(C)}t.steps.length&&(t.steps.forEach(function(k){return bo(l,k,h)}),h.currentTimeline.applyStylesToKeyframe(),h.subContextCount>c&&h.transformIntoNewTimeline()),n.previousNode=t}},{key:"visitGroup",value:function(t,n){var l=this,c=[],h=n.currentTimeline.currentTime,_=t.options&&t.options.delay?hp(t.options.delay):0;t.steps.forEach(function(C){var k=n.createSubContext(t.options);_&&k.delayNextStep(_),bo(l,C,k),h=Math.max(h,k.currentTimeline.currentTime),c.push(k.currentTimeline)}),c.forEach(function(C){return n.currentTimeline.mergeTimelineCollectedStyles(C)}),n.transformIntoNewTimeline(h),n.previousNode=t}},{key:"_visitTiming",value:function(t,n){if(t.dynamic){var l=t.strValue;return gS(n.params?mS(l,n.params,n.errors):l,n.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,n){var l=n.currentAnimateTimings=this._visitTiming(t.timings,n),c=n.currentTimeline;l.delay&&(n.incrementTime(l.delay),c.snapshotCurrentStyles());var h=t.style;5==h.type?this.visitKeyframes(h,n):(n.incrementTime(l.duration),this.visitStyle(h,n),c.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}},{key:"visitStyle",value:function(t,n){var l=n.currentTimeline,c=n.currentAnimateTimings;!c&&l.getCurrentStyleProperties().length&&l.forwardFrame();var h=c&&c.easing||t.easing;t.isEmptyStep?l.applyEmptyStep(h):l.setStyles(t.styles,h,n.errors,n.options),n.previousNode=t}},{key:"visitKeyframes",value:function(t,n){var l=n.currentAnimateTimings,c=n.currentTimeline.duration,h=l.duration,C=n.createSubContext().currentTimeline;C.easing=l.easing,t.styles.forEach(function(k){C.forwardTime((k.offset||0)*h),C.setStyles(k.styles,k.easing,n.errors,n.options),C.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(C),n.transformIntoNewTimeline(c+h),n.previousNode=t}},{key:"visitQuery",value:function(t,n){var l=this,c=n.currentTimeline.currentTime,h=t.options||{},_=h.delay?hp(h.delay):0;_&&(6===n.previousNode.type||0==c&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=SS);var C=c,k=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!h.optional,n.errors);n.currentQueryTotal=k.length;var D=null;k.forEach(function(I,L){n.currentQueryIndex=L;var G=n.createSubContext(t.options,I);_&&G.delayNextStep(_),I===n.element&&(D=G.currentTimeline),bo(l,t.animation,G),G.currentTimeline.applyStylesToKeyframe(),C=Math.max(C,G.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(C),D&&(n.currentTimeline.mergeTimelineCollectedStyles(D),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}},{key:"visitStagger",value:function(t,n){var l=n.parentContext,c=n.currentTimeline,h=t.timings,_=Math.abs(h.duration),C=_*(n.currentQueryTotal-1),k=_*n.currentQueryIndex;switch(h.duration<0?"reverse":h.easing){case"reverse":k=C-k;break;case"full":k=l.currentStaggerTime}var I=n.currentTimeline;k&&I.delayNextStep(k);var L=I.currentTime;bo(this,t.animation,n),n.previousNode=t,l.currentStaggerTime=c.currentTime-L+(c.startTime-l.currentTimeline.startTime)}}]),e}(),SS={},kS=function(){function e(a,t,n,l,c,h,_,C){F(this,e),this._driver=a,this.element=t,this.subInstructions=n,this._enterClassName=l,this._leaveClassName=c,this.errors=h,this.timelines=_,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=SS,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=C||new iP(this._driver,t,0),_.push(this.currentTimeline)}return W(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,n){var l=this;if(t){var c=t,h=this.options;null!=c.duration&&(h.duration=hp(c.duration)),null!=c.delay&&(h.delay=hp(c.delay));var _=c.params;if(_){var C=h.params;C||(C=this.options.params={}),Object.keys(_).forEach(function(k){(!n||!C.hasOwnProperty(k))&&(C[k]=mS(_[k],C,l.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var n=this.options.params;if(n){var l=t.params={};Object.keys(n).forEach(function(c){l[c]=n[c]})}}return t}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0,c=n||this.element,h=new e(this._driver,c,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(c,l||0));return h.previousNode=this.previousNode,h.currentAnimateTimings=this.currentAnimateTimings,h.options=this._copyOptions(),h.updateOptions(t),h.currentQueryIndex=this.currentQueryIndex,h.currentQueryTotal=this.currentQueryTotal,h.parentContext=this,this.subContextCount++,h}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=SS,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,n,l){var c={duration:null!=n?n:t.duration,delay:this.currentTimeline.currentTime+(null!=l?l:0)+t.delay,easing:""},h=new dY(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,c,t.stretchStartingKeyframe);return this.timelines.push(h),c}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,n,l,c,h,_){var C=[];if(c&&C.push(this.element),t.length>0){t=(t=t.replace(uY,"."+this._enterClassName)).replace(fY,"."+this._leaveClassName);var D=this._driver.query(this.element,t,1!=l);0!==l&&(D=l<0?D.slice(D.length+l,D.length):D.slice(0,l)),C.push.apply(C,Et(D))}return!h&&0==C.length&&_.push('`query("'.concat(n,'")` returned zero elements. (Use `query("').concat(n,'", { optional: true })` if you wish to allow this.)')),C}}]),e}(),iP=function(){function e(a,t,n,l){F(this,e),this._driver=a,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=l,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return W(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,n){this._localTimelineStyles[t]=n,this._globalTimelineStyles[t]=n,this._styleSummary[t]={time:this.currentTime,value:n}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var n=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(l){n._backFill[l]=n._globalTimelineStyles[l]||Ac,n._currentKeyframe[l]=Ac}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,n,l,c){var h=this;n&&(this._previousKeyframe.easing=n);var _=c&&c.params||{},C=function(e,a){var n,t={};return e.forEach(function(l){"*"===l?(n=n||Object.keys(a)).forEach(function(c){t[c]=Ac}):cd(l,!1,t)}),t}(t,this._globalTimelineStyles);Object.keys(C).forEach(function(k){var D=mS(C[k],_,l);h._pendingStyles[k]=D,h._localTimelineStyles.hasOwnProperty(k)||(h._backFill[k]=h._globalTimelineStyles.hasOwnProperty(k)?h._globalTimelineStyles[k]:Ac),h._updateStyle(k,D)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,n=this._pendingStyles,l=Object.keys(n);0!=l.length&&(this._pendingStyles={},l.forEach(function(c){t._currentKeyframe[c]=n[c]}),Object.keys(this._localTimelineStyles).forEach(function(c){t._currentKeyframe.hasOwnProperty(c)||(t._currentKeyframe[c]=t._localTimelineStyles[c])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(n){var l=t._localTimelineStyles[n];t._pendingStyles[n]=l,t._updateStyle(n,l)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var n in this._currentKeyframe)t.push(n);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var n=this;Object.keys(t._styleSummary).forEach(function(l){var c=n._styleSummary[l],h=t._styleSummary[l];(!c||h.time>c.time)&&n._updateStyle(l,h.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var n=new Set,l=new Set,c=1===this._keyframes.size&&0===this.duration,h=[];this._keyframes.forEach(function(I,L){var G=cd(I,!0);Object.keys(G).forEach(function(Y){var Q=G[Y];"!"==Q?n.add(Y):Q==Ac&&l.add(Y)}),c||(G.offset=L/t.duration),h.push(G)});var _=n.size?ob(n.values()):[],C=l.size?ob(l.values()):[];if(c){var k=h[0],D=pp(k);k.offset=0,D.offset=1,h=[k,D]}return db(this.element,h,_,C,this.duration,this.startTime,this.easing,!1)}}]),e}(),dY=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h,_,C){var k,D=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return F(this,t),(k=a.call(this,n,l,C.delay)).keyframes=c,k.preStyleProps=h,k.postStyleProps=_,k._stretchStartingKeyframe=D,k.timings={duration:C.duration,delay:C.delay,easing:C.easing},k}return W(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var l=this.keyframes,c=this.timings,h=c.delay,_=c.duration,C=c.easing;if(this._stretchStartingKeyframe&&h){var k=[],D=_+h,I=h/D,L=cd(l[0],!1);L.offset=0,k.push(L);var G=cd(l[0],!1);G.offset=MS(I),k.push(G);for(var Y=l.length-1,Q=1;Q<=Y;Q++){var ie=cd(l[Q],!1);ie.offset=MS((h+ie.offset*_)/D),k.push(ie)}_=D,h=0,C="",l=k}return db(this.element,l,this.preStyleProps,this.postStyleProps,_,h,C,!0)}}]),t}(iP);function MS(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=Math.pow(10,a-1);return Math.round(e*t)/t}var aP=function e(){F(this,e)},pY=function(e){ae(t,e);var a=ue(t);function t(){return F(this,t),a.apply(this,arguments)}return W(t,[{key:"normalizePropertyName",value:function(l,c){return JE(l)}},{key:"normalizeStyleValue",value:function(l,c,h,_){var C="",k=h.toString().trim();if(xS[c]&&0!==h&&"0"!==h)if("number"==typeof h)C="px";else{var D=h.match(/^[+-]?[\d\.]+([a-z]*)$/);D&&0==D[1].length&&_.push("Please provide a CSS unit value for ".concat(l,":").concat(h))}return k+C}}]),t}(aP),xS=function(){return e="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),a={},e.forEach(function(t){return a[t]=!0}),a;var e,a}();function hb(e,a,t,n,l,c,h,_,C,k,D,I,L){return{type:0,element:e,triggerName:a,isRemovalTransition:l,fromState:t,fromStyles:c,toState:n,toStyles:h,timelines:_,queriedElements:C,preStyleProps:k,postStyleProps:D,totalTime:I,errors:L}}var TS={},bB=function(){function e(a,t,n){F(this,e),this._triggerName=a,this.ast=t,this._stateStyles=n}return W(e,[{key:"match",value:function(t,n,l,c){return function(e,a,t,n,l){return e.some(function(c){return c(a,t,n,l)})}(this.ast.matchers,t,n,l,c)}},{key:"buildStyles",value:function(t,n,l){var c=this._stateStyles["*"],h=this._stateStyles[t],_=c?c.buildStyles(n,l):{};return h?h.buildStyles(n,l):_}},{key:"build",value:function(t,n,l,c,h,_,C,k,D,I){var L=[],G=this.ast.options&&this.ast.options.params||TS,Q=this.buildStyles(l,C&&C.params||TS,L),ie=k&&k.params||TS,fe=this.buildStyles(c,ie,L),se=new Set,be=new Map,Ce=new Map,je="void"===c,$e={params:Object.assign(Object.assign({},G),ie)},kt=I?[]:yB(t,n,this.ast.animation,h,_,Q,fe,$e,D,L),Dn=0;if(kt.forEach(function(zr){Dn=Math.max(zr.duration+zr.delay,Dn)}),L.length)return hb(n,this._triggerName,l,c,je,Q,fe,[],[],be,Ce,Dn,L);kt.forEach(function(zr){var Ui=zr.element,Ll=Ka(be,Ui,{});zr.preStyleProps.forEach(function(Qa){return Ll[Qa]=!0});var Fu=Ka(Ce,Ui,{});zr.postStyleProps.forEach(function(Qa){return Fu[Qa]=!0}),Ui!==n&&se.add(Ui)});var Zn=ob(se.values());return hb(n,this._triggerName,l,c,je,Q,fe,kt,Zn,be,Ce,Dn)}}]),e}(),wB=function(){function e(a,t,n){F(this,e),this.styles=a,this.defaultParams=t,this.normalizer=n}return W(e,[{key:"buildStyles",value:function(t,n){var l=this,c={},h=pp(this.defaultParams);return Object.keys(t).forEach(function(_){var C=t[_];null!=C&&(h[_]=C)}),this.styles.styles.forEach(function(_){if("string"!=typeof _){var C=_;Object.keys(C).forEach(function(k){var D=C[k];D.length>1&&(D=mS(D,h,n));var I=l.normalizer.normalizePropertyName(k,n);D=l.normalizer.normalizeStyleValue(k,I,D,n),c[I]=D})}}),c}}]),e}(),_Y=function(){function e(a,t,n){var l=this;F(this,e),this.name=a,this.ast=t,this._normalizer=n,this.transitionFactories=[],this.states={},t.states.forEach(function(c){l.states[c.name]=new wB(c.style,c.options&&c.options.params||{},n)}),SB(this.states,"true","1"),SB(this.states,"false","0"),t.transitions.forEach(function(c){l.transitionFactories.push(new bB(a,c,l.states))}),this.fallbackTransition=function(e,a,t){return new bB(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(h,_){return!0}],options:null,queryCount:0,depCount:0},a)}(a,this.states)}return W(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,n,l,c){return this.transitionFactories.find(function(_){return _.match(t,n,l,c)})||null}},{key:"matchStyles",value:function(t,n,l){return this.fallbackTransition.buildStyles(t,n,l)}}]),e}();function SB(e,a,t){e.hasOwnProperty(a)?e.hasOwnProperty(t)||(e[t]=e[a]):e.hasOwnProperty(t)&&(e[a]=e[t])}var bY=new CS,CY=function(){function e(a,t,n){F(this,e),this.bodyNode=a,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return W(e,[{key:"register",value:function(t,n){var l=[],c=mB(this._driver,n,l);if(l.length)throw new Error("Unable to build the animation due to the following errors: ".concat(l.join("\n")));this._animations[t]=c}},{key:"_buildPlayer",value:function(t,n,l){var c=t.element,h=tB(this._driver,this._normalizer,c,t.keyframes,n,l);return this._driver.animate(c,h,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,n){var C,l=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h=[],_=this._animations[t],k=new Map;if(_?(C=yB(this._driver,n,_,oB,hS,{},{},c,bY,h)).forEach(function(L){var G=Ka(k,L.element,{});L.postStyleProps.forEach(function(Y){return G[Y]=null})}):(h.push("The requested animation doesn't exist or has already been destroyed"),C=[]),h.length)throw new Error("Unable to create the animation due to the following errors: ".concat(h.join("\n")));k.forEach(function(L,G){Object.keys(L).forEach(function(Y){L[Y]=l._driver.computeStyle(G,Y,Ac)})});var D=C.map(function(L){var G=k.get(L.element);return l._buildPlayer(L,{},G)}),I=ud(D);return this._playersById[t]=I,I.onDestroy(function(){return l.destroy(t)}),this.players.push(I),I}},{key:"destroy",value:function(t){var n=this._getPlayer(t);n.destroy(),delete this._playersById[t];var l=this.players.indexOf(n);l>=0&&this.players.splice(l,1)}},{key:"_getPlayer",value:function(t){var n=this._playersById[t];if(!n)throw new Error("Unable to find the timeline player referenced by ".concat(t));return n}},{key:"listen",value:function(t,n,l,c){var h=sS(n,"","","");return GE(this._getPlayer(t),l,h,c),function(){}}},{key:"command",value:function(t,n,l,c){if("register"!=l)if("create"!=l){var _=this._getPlayer(t);switch(l){case"play":_.play();break;case"pause":_.pause();break;case"reset":_.reset();break;case"restart":_.restart();break;case"finish":_.finish();break;case"init":_.init();break;case"setPosition":_.setPosition(parseFloat(c[0]));break;case"destroy":this.destroy(t)}}else this.create(t,n,c[0]||{});else this.register(t,c[0])}}]),e}(),DS="ng-animate-queued",oP="ng-animate-disabled",pb=".ng-animate-disabled",wY="ng-star-inserted",kY=[],sP={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},kB={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Co="__ng_removed",vb=function(){function e(a){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";F(this,e),this.namespaceId=t;var n=a&&a.hasOwnProperty("value"),l=n?a.value:a;if(this.value=MB(l),n){var c=pp(a);delete c.value,this.options=c}else this.options={};this.options.params||(this.options.params={})}return W(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var n=t.params;if(n){var l=this.options.params;Object.keys(n).forEach(function(c){null==l[c]&&(l[c]=n[c])})}}}]),e}(),Lg="void",lP=new vb(Lg),gb=function(){function e(a,t,n){F(this,e),this.id=a,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,Rs(t,this._hostClassName)}return W(e,[{key:"listen",value:function(t,n,l,c){var h=this;if(!this._triggers.hasOwnProperty(n))throw new Error('Unable to listen on the animation trigger event "'.concat(l,'" because the animation trigger "').concat(n,"\" doesn't exist!"));if(null==l||0==l.length)throw new Error('Unable to listen on the animation trigger "'.concat(n,'" because the provided event is undefined!'));if(!function(e){return"start"==e||"done"==e}(l))throw new Error('The provided animation trigger event "'.concat(l,'" for the animation trigger "').concat(n,'" is not supported!'));var _=Ka(this._elementListeners,t,[]),C={name:n,phase:l,callback:c};_.push(C);var k=Ka(this._engine.statesByElement,t,{});return k.hasOwnProperty(n)||(Rs(t,pS),Rs(t,pS+"-"+n),k[n]=lP),function(){h._engine.afterFlush(function(){var D=_.indexOf(C);D>=0&&_.splice(D,1),h._triggers[n]||delete k[n]})}}},{key:"register",value:function(t,n){return!this._triggers[t]&&(this._triggers[t]=n,!0)}},{key:"_getTrigger",value:function(t){var n=this._triggers[t];if(!n)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return n}},{key:"trigger",value:function(t,n,l){var c=this,h=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],_=this._getTrigger(n),C=new AS(this.id,n,t),k=this._engine.statesByElement.get(t);k||(Rs(t,pS),Rs(t,pS+"-"+n),this._engine.statesByElement.set(t,k={}));var D=k[n],I=new vb(l,this.id),L=l&&l.hasOwnProperty("value");!L&&D&&I.absorbOptions(D.options),k[n]=I,D||(D=lP);var G=I.value===Lg;if(G||D.value!==I.value){var fe=Ka(this._engine.playersByElement,t,[]);fe.forEach(function(Ce){Ce.namespaceId==c.id&&Ce.triggerName==n&&Ce.queued&&Ce.destroy()});var se=_.matchTransition(D.value,I.value,t,I.params),be=!1;if(!se){if(!h)return;se=_.fallbackTransition,be=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:se,fromState:D,toState:I,player:C,isFallbackTransition:be}),be||(Rs(t,DS),C.onStart(function(){Fg(t,DS)})),C.onDone(function(){var Ce=c.players.indexOf(C);Ce>=0&&c.players.splice(Ce,1);var je=c._engine.playersByElement.get(t);if(je){var $e=je.indexOf(C);$e>=0&&je.splice($e,1)}}),this.players.push(C),fe.push(C),C}if(!AY(D.params,I.params)){var Y=[],Q=_.matchStyles(D.value,D.params,Y),ie=_.matchStyles(I.value,I.params,Y);Y.length?this._engine.reportError(Y):this._engine.afterFlush(function(){Pc(t,Q),Au(t,ie)})}}},{key:"deregister",value:function(t){var n=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(l,c){delete l[t]}),this._elementListeners.forEach(function(l,c){n._elementListeners.set(c,l.filter(function(h){return h.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var n=this._engine.playersByElement.get(t);n&&(n.forEach(function(l){return l.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,n){var l=this,c=this._engine.driver.query(t,vS,!0);c.forEach(function(h){if(!h[Co]){var _=l._engine.fetchNamespacesByElement(h);_.size?_.forEach(function(C){return C.triggerLeaveAnimation(h,n,!1,!0)}):l.clearElementCache(h)}}),this._engine.afterFlushAnimationsDone(function(){return c.forEach(function(h){return l.clearElementCache(h)})})}},{key:"triggerLeaveAnimation",value:function(t,n,l,c){var h=this,_=this._engine.statesByElement.get(t);if(_){var C=[];if(Object.keys(_).forEach(function(k){if(h._triggers[k]){var D=h.trigger(t,k,Lg,c);D&&C.push(D)}}),C.length)return this._engine.markElementAsRemoved(this.id,t,!0,n),l&&ud(C).onDone(function(){return h._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var n=this,l=this._elementListeners.get(t),c=this._engine.statesByElement.get(t);if(l&&c){var h=new Set;l.forEach(function(_){var C=_.name;if(!h.has(C)){h.add(C);var D=n._triggers[C].fallbackTransition,I=c[C]||lP,L=new vb(Lg),G=new AS(n.id,C,t);n._engine.totalQueuedPlayers++,n._queue.push({element:t,triggerName:C,transition:D,fromState:I,toState:L,player:G,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,n){var l=this,c=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),!this.triggerLeaveAnimation(t,n,!0)){var h=!1;if(c.totalAnimations){var _=c.players.length?c.playersByQueriedElement.get(t):[];if(_&&_.length)h=!0;else for(var C=t;C=C.parentNode;)if(c.statesByElement.get(C)){h=!0;break}}if(this.prepareLeaveAnimationListeners(t),h)c.markElementAsRemoved(this.id,t,!1,n);else{var D=t[Co];(!D||D===sP)&&(c.afterFlush(function(){return l.clearElementCache(t)}),c.destroyInnerAnimations(t),c._onRemovalComplete(t,n))}}}},{key:"insertNode",value:function(t,n){Rs(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var n=this,l=[];return this._queue.forEach(function(c){var h=c.player;if(!h.destroyed){var _=c.element,C=n._elementListeners.get(_);C&&C.forEach(function(k){if(k.name==c.triggerName){var D=sS(_,c.triggerName,c.fromState.value,c.toState.value);D._data=t,GE(c.player,k.phase,D,k.callback)}}),h.markedForDestroy?n._engine.afterFlush(function(){h.destroy()}):l.push(c)}}),this._queue=[],l.sort(function(c,h){var _=c.transition.ast.depCount,C=h.transition.ast.depCount;return 0==_||0==C?_-C:n._engine.driver.containsElement(c.element,h.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(n){return n.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var n=!1;return this._elementListeners.has(t)&&(n=!0),!!this._queue.find(function(l){return l.element===t})||n}}]),e}(),MY=function(){function e(a,t,n){F(this,e),this.bodyNode=a,this.driver=t,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=function(l,c){}}return W(e,[{key:"_onRemovalComplete",value:function(t,n){this.onRemovalComplete(t,n)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(n){n.players.forEach(function(l){l.queued&&t.push(l)})}),t}},{key:"createNamespace",value:function(t,n){var l=new gb(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(l,n):(this.newHostElements.set(n,l),this.collectEnterElement(n)),this._namespaceLookup[t]=l}},{key:"_balanceNamespaceList",value:function(t,n){var l=this._namespaceList.length-1;if(l>=0){for(var c=!1,h=l;h>=0;h--)if(this.driver.containsElement(this._namespaceList[h].hostElement,n)){this._namespaceList.splice(h+1,0,t),c=!0;break}c||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(n,t),t}},{key:"register",value:function(t,n){var l=this._namespaceLookup[t];return l||(l=this.createNamespace(t,n)),l}},{key:"registerTrigger",value:function(t,n,l){var c=this._namespaceLookup[t];c&&c.register(n,l)&&this.totalAnimations++}},{key:"destroy",value:function(t,n){var l=this;if(t){var c=this._fetchNamespace(t);this.afterFlush(function(){l.namespacesByHostElement.delete(c.hostElement),delete l._namespaceLookup[t];var h=l._namespaceList.indexOf(c);h>=0&&l._namespaceList.splice(h,1)}),this.afterFlushAnimationsDone(function(){return c.destroy(n)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var n=new Set,l=this.statesByElement.get(t);if(l)for(var c=Object.keys(l),h=0;h=0&&this.collectedLeaveElements.splice(_,1)}if(t){var C=this._fetchNamespace(t);C&&C.insertNode(n,l)}c&&this.collectEnterElement(n)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Rs(t,oP)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Fg(t,oP))}},{key:"removeNode",value:function(t,n,l,c){if(ES(n)){var h=t?this._fetchNamespace(t):null;if(h?h.removeNode(n,c):this.markElementAsRemoved(t,n,!1,c),l){var _=this.namespacesByHostElement.get(n);_&&_.id!==t&&_.removeNode(n,c)}}else this._onRemovalComplete(n,c)}},{key:"markElementAsRemoved",value:function(t,n,l,c){this.collectedLeaveElements.push(n),n[Co]={namespaceId:t,setForRemoval:c,hasAnimation:l,removedBeforeQueried:!1}}},{key:"listen",value:function(t,n,l,c,h){return ES(n)?this._fetchNamespace(t).listen(n,l,c,h):function(){}}},{key:"_buildInstruction",value:function(t,n,l,c,h){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,l,c,t.fromState.options,t.toState.options,n,h)}},{key:"destroyInnerAnimations",value:function(t){var n=this,l=this.driver.query(t,vS,!0);l.forEach(function(c){return n.destroyActiveAnimationsForElement(c)}),0!=this.playersByQueriedElement.size&&(l=this.driver.query(t,KE,!0)).forEach(function(c){return n.finishActiveQueriedAnimationOnElement(c)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var n=this.playersByElement.get(t);n&&n.forEach(function(l){l.queued?l.markedForDestroy=!0:l.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var n=this.playersByQueriedElement.get(t);n&&n.forEach(function(l){return l.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(n){if(t.players.length)return ud(t.players).onDone(function(){return n()});n()})}},{key:"processLeaveNode",value:function(t){var n=this,l=t[Co];if(l&&l.setForRemoval){if(t[Co]=sP,l.namespaceId){this.destroyInnerAnimations(t);var c=this._fetchNamespace(l.namespaceId);c&&c.clearElementCache(t)}this._onRemovalComplete(t,l.setForRemoval)}this.driver.matchesElement(t,pb)&&this.markElementAsDisabled(t,!1),this.driver.query(t,pb,!0).forEach(function(h){n.markElementAsDisabled(h,!1)})}},{key:"flush",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,l=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(L,G){return t._balanceNamespaceList(L,G)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var c=0;c=0;Ll--)this._namespaceList[Ll].drainQueuedTransitions(n).forEach(function(Ct){var Jt=Ct.player,dn=Ct.element;if(zr.push(Jt),l.collectedEnterElements.length){var sa=dn[Co];if(sa&&sa.setForMove)return void Jt.destroy()}var Ab=!G||!l.driver.containsElement(G,dn),hk=Dn.get(dn),CH=ie.get(dn),So=l._buildInstruction(Ct,c,CH,hk,Ab);if(So.errors&&So.errors.length)Ui.push(So);else{if(Ab)return Jt.onStart(function(){return Pc(dn,So.fromStyles)}),Jt.onDestroy(function(){return Au(dn,So.toStyles)}),void h.push(Jt);if(Ct.isFallbackTransition)return Jt.onStart(function(){return Pc(dn,So.fromStyles)}),Jt.onDestroy(function(){return Au(dn,So.toStyles)}),void h.push(Jt);So.timelines.forEach(function(Hc){return Hc.stretchStartingKeyframe=!0}),c.append(dn,So.timelines),C.push({instruction:So,player:Jt,element:dn}),So.queriedElements.forEach(function(Hc){return Ka(k,Hc,[]).push(Jt)}),So.preStyleProps.forEach(function(Hc,Eb){var wH=Object.keys(Hc);if(wH.length){var Pb=D.get(Eb);Pb||D.set(Eb,Pb=new Set),wH.forEach(function(DX){return Pb.add(DX)})}}),So.postStyleProps.forEach(function(Hc,Eb){var wH=Object.keys(Hc),Pb=I.get(Eb);Pb||I.set(Eb,Pb=new Set),wH.forEach(function(DX){return Pb.add(DX)})})}});if(Ui.length){var Qa=[];Ui.forEach(function(Ct){Qa.push("@".concat(Ct.triggerName," has failed due to:\n")),Ct.errors.forEach(function(Jt){return Qa.push("- ".concat(Jt,"\n"))})}),zr.forEach(function(Ct){return Ct.destroy()}),this.reportError(Qa)}var Nu=new Map,Bc=new Map;C.forEach(function(Ct){var Jt=Ct.element;c.has(Jt)&&(Bc.set(Jt,Jt),l._beforeAnimationBuild(Ct.player.namespaceId,Ct.instruction,Nu))}),h.forEach(function(Ct){var Jt=Ct.element;l._getPreviousPlayers(Jt,!1,Ct.namespaceId,Ct.triggerName,null).forEach(function(sa){Ka(Nu,Jt,[]).push(sa),sa.destroy()})});var Tb=se.filter(function(Ct){return DB(Ct,D,I)}),Db=new Map;OS(Db,this.driver,Ce,I,Ac).forEach(function(Ct){DB(Ct,D,I)&&Tb.push(Ct)});var LP=new Map;Q.forEach(function(Ct,Jt){OS(LP,l.driver,new Set(Ct),D,"!")}),Tb.forEach(function(Ct){var Jt=Db.get(Ct),dn=LP.get(Ct);Db.set(Ct,Object.assign(Object.assign({},Jt),dn))});var FP=[],_H=[],NP={};C.forEach(function(Ct){var Jt=Ct.element,dn=Ct.player,sa=Ct.instruction;if(c.has(Jt)){if(L.has(Jt))return dn.onDestroy(function(){return Au(Jt,sa.toStyles)}),dn.disabled=!0,dn.overrideTotalTime(sa.totalTime),void h.push(dn);var Ab=NP;if(Bc.size>1){for(var hk=Jt,CH=[];hk=hk.parentNode;){var So=Bc.get(hk);if(So){Ab=So;break}CH.push(hk)}CH.forEach(function(Eb){return Bc.set(Eb,Ab)})}var TX=l._buildAnimation(dn.namespaceId,sa,Nu,_,LP,Db);if(dn.setRealPlayer(TX),Ab===NP)FP.push(dn);else{var Hc=l.playersByElement.get(Ab);Hc&&Hc.length&&(dn.parentPlayer=ud(Hc)),h.push(dn)}}else Pc(Jt,sa.fromStyles),dn.onDestroy(function(){return Au(Jt,sa.toStyles)}),_H.push(dn),L.has(Jt)&&h.push(dn)}),_H.forEach(function(Ct){var Jt=_.get(Ct.element);if(Jt&&Jt.length){var dn=ud(Jt);Ct.setRealPlayer(dn)}}),h.forEach(function(Ct){Ct.parentPlayer?Ct.syncPlayerEvents(Ct.parentPlayer):Ct.destroy()});for(var VP=0;VP0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,l):new Og(t.duration,t.delay)}}]),e}(),AS=function(){function e(a,t,n){F(this,e),this.namespaceId=a,this.triggerName=t,this.element=n,this._player=new Og,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return W(e,[{key:"setRealPlayer",value:function(t){var n=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(l){n._queuedCallbacks[l].forEach(function(c){return GE(t,l,void 0,c)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var n=this,l=this._player;l.triggerCallback&&t.onStart(function(){return l.triggerCallback("start")}),t.onDone(function(){return n.finish()}),t.onDestroy(function(){return n.destroy()})}},{key:"_queueEvent",value:function(t,n){Ka(this._queuedCallbacks,t,[]).push(n)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var n=this._player;n.triggerCallback&&n.triggerCallback(t)}}]),e}();function MB(e){return null!=e?e:null}function ES(e){return e&&1===e.nodeType}function PS(e,a){var t=e.style.display;return e.style.display=null!=a?a:"none",t}function OS(e,a,t,n,l){var c=[];t.forEach(function(C){return c.push(PS(C))});var h=[];n.forEach(function(C,k){var D={};C.forEach(function(I){var L=D[I]=a.computeStyle(k,I,l);(!L||0==L.length)&&(k[Co]=kB,h.push(k))}),e.set(k,D)});var _=0;return t.forEach(function(C){return PS(C,c[_++])}),h}function TB(e,a){var t=new Map;if(e.forEach(function(_){return t.set(_,[])}),0==a.length)return t;var l=new Set(a),c=new Map;function h(_){if(!_)return 1;var C=c.get(_);if(C)return C;var k=_.parentNode;return C=t.has(k)?k:l.has(k)?1:h(k),c.set(_,C),C}return a.forEach(function(_){var C=h(_);1!==C&&t.get(C).push(_)}),t}var IS="$$classes";function Rs(e,a){if(e.classList)e.classList.add(a);else{var t=e[IS];t||(t=e[IS]={}),t[a]=!0}}function Fg(e,a){if(e.classList)e.classList.remove(a);else{var t=e[IS];t&&delete t[a]}}function TY(e,a,t){ud(t).onDone(function(){return e.processLeaveNode(a)})}function RS(e,a){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function AB(e,a){var t=null,n=null;return Array.isArray(a)&&a.length?(t=uP(a[0]),a.length>1&&(n=uP(a[a.length-1]))):a&&(t=uP(a)),t||n?new EY(e,t,n):null}var EY=function(){var e=function(){function a(t,n,l){F(this,a),this._element=t,this._startStyles=n,this._endStyles=l,this._state=0;var c=a.initialStylesByElement.get(t);c||a.initialStylesByElement.set(t,c={}),this._initialStyles=c}return W(a,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Au(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Au(this._element,this._initialStyles),this._endStyles&&(Au(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(a.initialStylesByElement.delete(this._element),this._startStyles&&(Pc(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Pc(this._element,this._endStyles),this._endStyles=null),Au(this._element,this._initialStyles),this._state=3)}}]),a}();return e.initialStylesByElement=new WeakMap,e}();function uP(e){for(var a=null,t=Object.keys(e),n=0;n=this._delay&&l>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),fP(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,a){var n=_b(e,"").split(","),l=vp(n,a);l>=0&&(n.splice(l,1),FS(e,"",n.join(",")))}(this._element,this._name))}}]),e}();function OB(e,a,t){FS(e,"PlayState",t,RB(e,a))}function RB(e,a){var t=_b(e,"");return t.indexOf(",")>0?vp(t.split(","),a):vp([t],a)}function vp(e,a){for(var t=0;t=0)return t;return-1}function fP(e,a,t){t?e.removeEventListener(LS,a):e.addEventListener(LS,a)}function FS(e,a,t,n){var l=EB+a;if(null!=n){var c=e.style[l];if(c.length){var h=c.split(",");h[n]=t,t=h.join(",")}}e.style[l]=t}function _b(e,a){return e.style[EB+a]||""}var FB=function(){function e(a,t,n,l,c,h,_,C){F(this,e),this.element=a,this.keyframes=t,this.animationName=n,this._duration=l,this._delay=c,this._finalStyles=_,this._specialStyles=C,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=h||"linear",this.totalTime=l+c,this._buildStyler()}return W(e,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new cP(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var n={};if(this.hasStarted()){var l=this._state>=3;Object.keys(this._finalStyles).forEach(function(c){"offset"!=c&&(n[c]=l?t._finalStyles[c]:Oc(t.element,c))})}this.currentSnapshot=n}}]),e}(),LY=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this)).element=n,c._startingStyles={},c.__initialized=!1,c._styles=rB(l),c}return W(t,[{key:"init",value:function(){var l=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(c){l._startingStyles[c]=l.element.style[c]}),Ie(Oe(t.prototype),"init",this).call(this))}},{key:"play",value:function(){var l=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(c){return l.element.style.setProperty(c,l._styles[c])}),Ie(Oe(t.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var l=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(c){var h=l._startingStyles[c];h?l.element.style.setProperty(c,h):l.element.style.removeProperty(c)}),this._startingStyles=null,Ie(Oe(t.prototype),"destroy",this).call(this))}}]),t}(Og),FY="gen_css_kf_",VB=function(){function e(){F(this,e),this._count=0}return W(e,[{key:"validateStyleProperty",value:function(t){return cS(t)}},{key:"matchesElement",value:function(t,n){return XE(t,n)}},{key:"containsElement",value:function(t,n){return ZE(t,n)}},{key:"query",value:function(t,n,l){return fS(t,n,l)}},{key:"computeStyle",value:function(t,n,l){return window.getComputedStyle(t)[n]}},{key:"buildKeyframeElement",value:function(t,n,l){l=l.map(function(C){return rB(C)});var c="@keyframes ".concat(n," {\n"),h="";l.forEach(function(C){h=" ";var k=parseFloat(C.offset);c+="".concat(h).concat(100*k,"% {\n"),h+=" ",Object.keys(C).forEach(function(D){var I=C[D];switch(D){case"offset":return;case"easing":return void(I&&(c+="".concat(h,"animation-timing-function: ").concat(I,";\n")));default:return void(c+="".concat(h).concat(D,": ").concat(I,";\n"))}}),c+="".concat(h,"}\n")}),c+="}\n";var _=document.createElement("style");return _.textContent=c,_}},{key:"animate",value:function(t,n,l,c,h){var _=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],k=_.filter(function(fe){return fe instanceof FB}),D={};hB(l,c)&&k.forEach(function(fe){var se=fe.currentSnapshot;Object.keys(se).forEach(function(be){return D[be]=se[be]})});var I=NY(n=pB(t,n,D));if(0==l)return new LY(t,I);var L="".concat(FY).concat(this._count++),G=this.buildKeyframeElement(t,L,n),Y=BB(t);Y.appendChild(G);var Q=AB(t,n),ie=new FB(t,n,L,l,c,h,I,Q);return ie.onDestroy(function(){return HB(G)}),ie}}]),e}();function BB(e){var a,t=null===(a=e.getRootNode)||void 0===a?void 0:a.call(e);return"undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot?t:document.head}function NY(e){var a={};return e&&(Array.isArray(e)?e:[e]).forEach(function(n){Object.keys(n).forEach(function(l){"offset"==l||"easing"==l||(a[l]=n[l])})}),a}function HB(e){e.parentNode.removeChild(e)}var UB=function(){function e(a,t,n,l){F(this,e),this.element=a,this.keyframes=t,this.options=n,this._specialStyles=l,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}return W(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,n,l){return t.animate(n,l)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var t=this,n={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(l){"offset"!=l&&(n[l]=t._finished?t._finalKeyframe[l]:Oc(t.element,l))}),this.currentSnapshot=n}},{key:"triggerCallback",value:function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),e}(),GB=function(){function e(){F(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(WB().toString()),this._cssKeyframesDriver=new VB}return W(e,[{key:"validateStyleProperty",value:function(t){return cS(t)}},{key:"matchesElement",value:function(t,n){return XE(t,n)}},{key:"containsElement",value:function(t,n){return ZE(t,n)}},{key:"query",value:function(t,n,l){return fS(t,n,l)}},{key:"computeStyle",value:function(t,n,l){return window.getComputedStyle(t)[n]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,n,l,c,h){var _=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],C=arguments.length>6?arguments[6]:void 0,k=!C&&!this._isNativeImpl;if(k)return this._cssKeyframesDriver.animate(t,n,l,c,h,_);var D=0==c?"both":"forwards",I={duration:l,delay:c,fill:D};h&&(I.easing=h);var L={},G=_.filter(function(Q){return Q instanceof UB});hB(l,c)&&G.forEach(function(Q){var ie=Q.currentSnapshot;Object.keys(ie).forEach(function(fe){return L[fe]=ie[fe]})});var Y=AB(t,n=pB(t,n=n.map(function(Q){return cd(Q,!1)}),L));return new UB(t,n,I,Y)}}]),e}();function WB(){return eB()&&Element.prototype.animate||{}}var VY=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this))._nextAnimationId=0,h._renderer=l.createRenderer(c.body,{id:"0",encapsulation:Hs.None,styles:[],data:{animation:[]}}),h}return W(n,[{key:"build",value:function(c){var h=this._nextAnimationId.toString();this._nextAnimationId++;var _=Array.isArray(c)?NE(c):c;return qB(this._renderer,null,h,"register",[_]),new YB(h,this._renderer)}}]),n}(FE);return e.\u0275fac=function(t){return new(t||e)(ce(Ff),ce(lt))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),YB=function(e){ae(t,e);var a=ue(t);function t(n,l){var c;return F(this,t),(c=a.call(this))._id=n,c._renderer=l,c}return W(t,[{key:"create",value:function(l,c){return new BY(this._id,l,c||{},this._renderer)}}]),t}(K9),BY=function(){function e(a,t,n,l){F(this,e),this.id=a,this.element=t,this._renderer=l,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return W(e,[{key:"_listen",value:function(t,n){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),n)}},{key:"_command",value:function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c=0&&n3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,n,l),this.engine.onInsert(this.namespaceId,n,t,c)}},{key:"removeChild",value:function(t,n,l){this.engine.onRemove(this.namespaceId,n,this.delegate,l)}},{key:"selectRootElement",value:function(t,n){return this.delegate.selectRootElement(t,n)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,n,l,c){this.delegate.setAttribute(t,n,l,c)}},{key:"removeAttribute",value:function(t,n,l){this.delegate.removeAttribute(t,n,l)}},{key:"addClass",value:function(t,n){this.delegate.addClass(t,n)}},{key:"removeClass",value:function(t,n){this.delegate.removeClass(t,n)}},{key:"setStyle",value:function(t,n,l,c){this.delegate.setStyle(t,n,l,c)}},{key:"removeStyle",value:function(t,n,l){this.delegate.removeStyle(t,n,l)}},{key:"setProperty",value:function(t,n,l){"@"==n.charAt(0)&&n==bb?this.disableAnimations(t,!!l):this.delegate.setProperty(t,n,l)}},{key:"setValue",value:function(t,n){this.delegate.setValue(t,n)}},{key:"listen",value:function(t,n,l){return this.delegate.listen(t,n,l)}},{key:"disableAnimations",value:function(t,n){this.engine.disableAnimations(t,n)}}]),e}(),KB=function(e){ae(t,e);var a=ue(t);function t(n,l,c,h){var _;return F(this,t),(_=a.call(this,l,c,h)).factory=n,_.namespaceId=l,_}return W(t,[{key:"setProperty",value:function(l,c,h){"@"==c.charAt(0)?"."==c.charAt(1)&&c==bb?this.disableAnimations(l,h=void 0===h||!!h):this.engine.process(this.namespaceId,l,c.substr(1),h):this.delegate.setProperty(l,c,h)}},{key:"listen",value:function(l,c,h){var _=this;if("@"==c.charAt(0)){var C=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(l),k=c.substr(1),D="";if("@"!=k.charAt(0)){var L=cr(function(e){var a=e.indexOf(".");return[e.substring(0,a),e.substr(a+1)]}(k),2);k=L[0],D=L[1]}return this.engine.listen(this.namespaceId,C,k,D,function(G){_.factory.scheduleListenerCallback(G._data||-1,h,G)})}return this.delegate.listen(l,c,h)}}]),t}(ZB),$B=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){return F(this,n),t.call(this,l.body,c,h)}return W(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(mb);return e.\u0275fac=function(t){return new(t||e)(ce(lt),ce(dS),ce(aP))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Un=new Ee("AnimationModuleType"),e5=[{provide:FE,useClass:VY},{provide:aP,useFactory:function(){return new pY}},{provide:mb,useClass:$B},{provide:Ff,useFactory:function(e,a,t){return new XB(e,a,t)},deps:[qh,mb,ft]}],dP=[{provide:dS,useFactory:function(){return"function"==typeof WB()?new GB:new VB}},{provide:Un,useValue:"BrowserAnimations"}].concat(e5),BS=[{provide:dS,useClass:iB},{provide:Un,useValue:"NoopAnimations"}].concat(e5),UY=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"withConfig",value:function(n){return{ngModule:a,providers:n.disableAnimations?BS:dP}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:dP,imports:[QD]}),e}();function jY(e,a){if(1&e&&me(0,"mat-pseudo-checkbox",4),2&e){var t=J();z("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function n5(e,a){if(1&e&&(A(0,"span",5),Z(1),E()),2&e){var t=J();H(1),Ve("(",t.group.label,")")}}var r5=["*"],WY=function(){var e=function a(){F(this,a)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),YY=function(){var e=function a(){F(this,a)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),i5=new nc("12.2.4"),a5=new Ee("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),$t=function(){var e=function(){function a(t,n,l){F(this,a),this._hasDoneGlobalChecks=!1,this._document=l,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return W(a,[{key:"_getWindow",value:function(){var n=this._document.defaultView||window;return"object"==typeof n&&n?n:null}},{key:"_checkIsEnabled",value:function(n){return!(!yw()||this._isTestEnv())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[n])}},{key:"_isTestEnv",value:function(){var n=this._getWindow();return n&&(n.__karma__||n.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checkIsEnabled("theme")&&this._document.body&&"function"==typeof getComputedStyle){var n=this._document.createElement("div");n.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(n);var l=getComputedStyle(n);l&&"none"!==l.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(n)}}},{key:"_checkCdkVersionMatch",value:function(){this._checkIsEnabled("version")&&i5.full!==$V.full&&console.warn("The Angular Material version ("+i5.full+") does not match the Angular CDK version ("+$V.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(RE),ce(a5,8),ce(lt))},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$y],$y]}),e}();function aa(e){return function(a){ae(n,a);var t=ue(n);function n(){var l;F(this,n);for(var c=arguments.length,h=new Array(c),_=0;_1&&void 0!==arguments[1]?arguments[1]:0;return function(t){ae(l,t);var n=ue(l);function l(){var c;F(this,l);for(var h=arguments.length,_=new Array(h),C=0;C0?l:t}}]),e}(),Pu=new Ee("mat-date-formats");try{fd="undefined"!=typeof Intl}catch(e){fd=!1}var ZY={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},s5=zS(31,function(a){return String(a+1)}),$Y={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},QY=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function zS(e,a){for(var t=Array(e),n=0;n9999)&&(c=this.clone(c)).setFullYear(Math.max(1,Math.min(9999,c.getFullYear()))),h=Object.assign(Object.assign({},h),{timeZone:"utc"});var _=new Intl.DateTimeFormat(this.locale,h);return this._stripDirectionalityCharacters(this._format(_,c))}return this._stripDirectionalityCharacters(c.toDateString())}},{key:"addCalendarYears",value:function(c,h){return this.addCalendarMonths(c,12*h)}},{key:"addCalendarMonths",value:function(c,h){var _=this._createDateWithOverflow(this.getYear(c),this.getMonth(c)+h,this.getDate(c));return this.getMonth(_)!=((this.getMonth(c)+h)%12+12)%12&&(_=this._createDateWithOverflow(this.getYear(_),this.getMonth(_),0)),_}},{key:"addCalendarDays",value:function(c,h){return this._createDateWithOverflow(this.getYear(c),this.getMonth(c),this.getDate(c)+h)}},{key:"toIso8601",value:function(c){return[c.getUTCFullYear(),this._2digit(c.getUTCMonth()+1),this._2digit(c.getUTCDate())].join("-")}},{key:"deserialize",value:function(c){if("string"==typeof c){if(!c)return null;if(QY.test(c)){var h=new Date(c);if(this.isValid(h))return h}}return Ie(Oe(n.prototype),"deserialize",this).call(this,c)}},{key:"isDateInstance",value:function(c){return c instanceof Date}},{key:"isValid",value:function(c){return!isNaN(c.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(c,h,_){var C=new Date;return C.setFullYear(c,h,_),C.setHours(0,0,0,0),C}},{key:"_2digit",value:function(c){return("00"+c).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(c){return c.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(c,h){var _=new Date;return _.setUTCFullYear(h.getFullYear(),h.getMonth(),h.getDate()),_.setUTCHours(h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()),c.format(_)}}]),n}(jr);return e.\u0275fac=function(t){return new(t||e)(ce(hP,8),ce(en))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),eq=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[{provide:jr,useClass:JY}],imports:[[ep]]}),e}(),tq={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},nq=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[{provide:Pu,useValue:tq}],imports:[[eq]]}),e}(),dd=function(){var e=function(){function a(){F(this,a)}return W(a,[{key:"isErrorState",value:function(n,l){return!!(n&&n.invalid&&(n.touched||l&&l.submitted))}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),rq=function(){function e(a,t,n){F(this,e),this._renderer=a,this.element=t,this.config=n,this.state=3}return W(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),pP={enterDuration:225,exitDuration:150},vP=tp({passive:!0}),c5=["mousedown","touchstart"],aq=["mouseup","mouseleave","touchend","touchcancel"],gP=function(){function e(a,t,n,l){F(this,e),this._target=a,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,l.isBrowser&&(this._containerElement=bc(n))}return W(e,[{key:"fadeInRipple",value:function(t,n){var l=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),_=Object.assign(Object.assign({},pP),c.animation);c.centered&&(t=h.left+h.width/2,n=h.top+h.height/2);var C=c.radius||sq(t,n,h),k=t-h.left,D=n-h.top,I=_.enterDuration,L=document.createElement("div");L.classList.add("mat-ripple-element"),L.style.left="".concat(k-C,"px"),L.style.top="".concat(D-C,"px"),L.style.height="".concat(2*C,"px"),L.style.width="".concat(2*C,"px"),null!=c.color&&(L.style.backgroundColor=c.color),L.style.transitionDuration="".concat(I,"ms"),this._containerElement.appendChild(L),oq(L),L.style.transform="scale(1)";var G=new rq(this,L,c);return G.state=0,this._activeRipples.add(G),c.persistent||(this._mostRecentTransientRipple=G),this._runTimeoutOutsideZone(function(){var Y=G===l._mostRecentTransientRipple;G.state=1,!c.persistent&&(!Y||!l._isPointerDown)&&G.fadeOut()},I),G}},{key:"fadeOutRipple",value:function(t){var n=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),n){var l=t.element,c=Object.assign(Object.assign({},pP),t.config.animation);l.style.transitionDuration="".concat(c.exitDuration,"ms"),l.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,l.parentNode.removeChild(l)},c.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var n=bc(t);!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,this._registerEvents(c5))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(aq),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var n=ab(t),l=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,n)})}},{key:"_registerEvents",value:function(t){var n=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(l){n._triggerElement.addEventListener(l,n,vP)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(c5.forEach(function(n){t._triggerElement.removeEventListener(n,t,vP)}),this._pointerUpEventsRegistered&&aq.forEach(function(n){t._triggerElement.removeEventListener(n,t,vP)}))}}]),e}();function oq(e){window.getComputedStyle(e).getPropertyValue("opacity")}function sq(e,a,t){var n=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),l=Math.max(Math.abs(a-t.top),Math.abs(a-t.bottom));return Math.sqrt(n*n+l*l)}var US=new Ee("mat-ripple-global-options"),Ls=function(){var e=function(){function a(t,n,l,c,h){F(this,a),this._elementRef=t,this._animationMode=h,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=c||{},this._rippleRenderer=new gP(this,n,t,l)}return W(a,[{key:"disabled",get:function(){return this._disabled},set:function(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=arguments.length>2?arguments[2]:void 0;return"number"==typeof n?this._rippleRenderer.fadeInRipple(n,l,Object.assign(Object.assign({},this.rippleConfig),c)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),n))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(en),N(US,8),N(Un,8))},e.\u0275dir=ve({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){2&t&&dt("mat-ripple-unbounded",n.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),Aa=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t,ep],$t]}),e}(),Vg=function(){var e=function a(t){F(this,a),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(N(Un,8))},e.\u0275cmp=Se({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,n){2&t&&dt("mat-pseudo-checkbox-indeterminate","indeterminate"===n.state)("mat-pseudo-checkbox-checked","checked"===n.state)("mat-pseudo-checkbox-disabled",n.disabled)("_mat-animation-noopable","NoopAnimations"===n._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,n){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),mP=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t]]}),e}(),Bg=new Ee("MAT_OPTION_PARENT_COMPONENT"),lq=aa(function(){return function e(){F(this,e)}}()),f5=0,_P=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c,h;return F(this,n),(c=t.call(this))._labelId="mat-optgroup-label-".concat(f5++),c._inert=null!==(h=null==l?void 0:l.inertGroups)&&void 0!==h&&h,c}return n}(lq);return e.\u0275fac=function(t){return new(t||e)(N(Bg,8))},e.\u0275dir=ve({type:e,inputs:{label:"label"},features:[Pe]}),e}(),GS=new Ee("MatOptgroup"),cq=0,d5=function e(a){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];F(this,e),this.source=a,this.isUserInput=t},Hg=function(){var e=function(){function a(t,n,l,c){F(this,a),this._element=t,this._changeDetectorRef=n,this._parent=l,this.group=c,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(cq++),this.onSelectionChange=new ye,this._stateChanges=new qe}return W(a,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(n){this._disabled=it(n)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(n,l){var c=this._getHostElement();"function"==typeof c.focus&&c.focus(l)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(n){(13===n.keyCode||32===n.keyCode)&&!Bi(n)&&(this._selectViaInteraction(),n.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var n=this.viewValue;n!==this._mostRecentViewValue&&(this._mostRecentViewValue=n,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new d5(this,n))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Bt),N(void 0),N(_P))},e.\u0275dir=ve({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),Pi=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){return F(this,n),t.call(this,l,c,h,_)}return n}(Hg);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Bt),N(Bg,8),N(GS,8))},e.\u0275cmp=Se({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,n){1&t&&ne("click",function(){return n._selectViaInteraction()})("keydown",function(c){return n._handleKeydown(c)}),2&t&&(Ki("id",n.id),Ke("tabindex",n._getTabIndex())("aria-selected",n._getAriaSelected())("aria-disabled",n.disabled.toString()),dt("mat-selected",n.selected)("mat-option-multiple",n.multiple)("mat-active",n.active)("mat-option-disabled",n.disabled))},exportAs:["matOption"],features:[Pe],ngContentSelectors:r5,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,n){1&t&&(rr(),re(0,jY,1,2,"mat-pseudo-checkbox",0),A(1,"span",1),Wt(2),E(),re(3,n5,2,1,"span",2),me(4,"div",3)),2&t&&(z("ngIf",n.multiple),H(3),z("ngIf",n.group&&n.group._inert),H(1),z("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},directives:[Kt,Ls,Vg],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function jS(e,a,t){if(t.length){for(var n=a.toArray(),l=t.toArray(),c=0,h=0;ht+n?Math.max(0,e-n+a):t}var WS=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Aa,Wa,$t,mP]]}),e}();function fq(e,a){}var yP=function e(){F(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},dq={dialogContainer:Ei("dialogContainer",[Bn("void, exit",gt({opacity:0,transform:"scale(0.7)"})),Bn("enter",gt({transform:"none"})),zn("* => enter",Tn("150ms cubic-bezier(0, 0, 0.2, 1)",gt({transform:"none",opacity:1}))),zn("* => void, * => exit",Tn("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",gt({opacity:0})))])},h5=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this))._elementRef=l,D._focusTrapFactory=c,D._changeDetectorRef=h,D._config=C,D._focusMonitor=k,D._animationStateChanged=new ye,D._elementFocusedBeforeDialogWasOpened=null,D._closeInteractionType=null,D.attachDomPortal=function(I){return D._portalOutlet.hasAttached(),D._portalOutlet.attachDomPortal(I)},D._ariaLabelledBy=C.ariaLabelledBy||null,D._document=_,D}return W(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(c){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(c)}},{key:"attachTemplatePortal",value:function(c){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(c)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var c=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&c&&"function"==typeof c.focus){var h=Ky(),_=this._elementRef.nativeElement;(!h||h===this._document.body||h===_||_.contains(h))&&(this._focusMonitor?(this._focusMonitor.focusVia(c,this._closeInteractionType),this._closeInteractionType=null):c.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Ky())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var c=this._elementRef.nativeElement,h=Ky();return c===h||c.contains(h)}}]),n}(Jy);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(xE),N(Bt),N(lt,8),N(yP),N(ia))},e.\u0275dir=ve({type:e,viewQuery:function(t,n){var l;1&t&&wt(Os,7),2&t&&Ne(l=Le())&&(n._portalOutlet=l.first)},features:[Pe]}),e}(),hq=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._state="enter",l}return W(n,[{key:"_onAnimationDone",value:function(c){var h=c.toState,_=c.totalTime;"enter"===h?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:_})):"exit"===h&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:_}))}},{key:"_onAnimationStart",value:function(c){var h=c.toState,_=c.totalTime;"enter"===h?this._animationStateChanged.next({state:"opening",totalTime:_}):("exit"===h||"void"===h)&&this._animationStateChanged.next({state:"closing",totalTime:_})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(h5);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275cmp=Se({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,n){1&t&&mv("@dialogContainer.start",function(c){return n._onAnimationStart(c)})("@dialogContainer.done",function(c){return n._onAnimationDone(c)}),2&t&&(Ki("id",n._id),Ke("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Ba("@dialogContainer",n._state))},features:[Pe],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,n){1&t&&re(0,fq,0,0,"ng-template",0)},directives:[Os],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[dq.dialogContainer]}}),e}(),p5=0,Er=function(){function e(a,t){var n=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(p5++);F(this,e),this._overlayRef=a,this._containerInstance=t,this.id=l,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new qe,this._afterClosed=new qe,this._beforeClosed=new qe,this._state=0,t._id=l,t._animationStateChanged.pipe(vr(function(c){return"opened"===c.state}),or(1)).subscribe(function(){n._afterOpened.next(),n._afterOpened.complete()}),t._animationStateChanged.pipe(vr(function(c){return"closed"===c.state}),or(1)).subscribe(function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()}),a.detachments().subscribe(function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()}),a.keydownEvents().pipe(vr(function(c){return 27===c.keyCode&&!n.disableClose&&!Bi(c)})).subscribe(function(c){c.preventDefault(),bP(n,"keyboard")}),a.backdropClick().subscribe(function(){n.disableClose?n._containerInstance._recaptureFocus():bP(n,"mouse")})}return W(e,[{key:"close",value:function(t){var n=this;this._result=t,this._containerInstance._animationStateChanged.pipe(vr(function(l){return"closing"===l.state}),or(1)).subscribe(function(l){n._beforeClosed.next(t),n._beforeClosed.complete(),n._overlayRef.detachBackdrop(),n._closeFallbackTimeout=setTimeout(function(){return n._finishDialogClose()},l.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var n=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?n.left(t.left):n.right(t.right):n.centerHorizontally(),t&&(t.top||t.bottom)?t.top?n.top(t.top):n.bottom(t.bottom):n.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:n}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function bP(e,a,t){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=a),e.close(t)}var Wr=new Ee("MatDialogData"),YS=new Ee("mat-dialog-default-options"),pq=new Ee("mat-dialog-scroll-strategy"),wb={provide:pq,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},v5=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D){var I=this;F(this,a),this._overlay=t,this._injector=n,this._defaultOptions=l,this._parentDialog=c,this._overlayContainer=h,this._dialogRefConstructor=C,this._dialogContainerType=k,this._dialogDataToken=D,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new qe,this._afterOpenedAtThisLevel=new qe,this._ariaHiddenElements=new Map,this.afterAllClosed=Ly(function(){return I.openDialogs.length?I._getAfterAllClosed():I._getAfterAllClosed().pipe($r(void 0))}),this._scrollStrategy=_}return W(a,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(n,l){var c=this;(l=function(e,a){return Object.assign(Object.assign({},a),e)}(l,this._defaultOptions||new yP)).id&&this.getDialogById(l.id);var h=this._createOverlay(l),_=this._attachDialogContainer(h,l),C=this._attachDialogContent(n,_,h,l);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(C),C.afterClosed().subscribe(function(){return c._removeOpenDialog(C)}),this.afterOpened.next(C),_._initializeWithAttachedContent(),C}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(n){return this.openDialogs.find(function(l){return l.id===n})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(n){var l=this._getOverlayConfig(n);return this._overlay.create(l)}},{key:"_getOverlayConfig",value:function(n){var l=new up({positionStrategy:this._overlay.position().global(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,disposeOnNavigation:n.closeOnNavigation});return n.backdropClass&&(l.backdropClass=n.backdropClass),l}},{key:"_attachDialogContainer",value:function(n,l){var h=kn.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:yP,useValue:l}]}),_=new sd(this._dialogContainerType,l.viewContainerRef,h,l.componentFactoryResolver);return n.attach(_).instance}},{key:"_attachDialogContent",value:function(n,l,c,h){var _=new this._dialogRefConstructor(c,l,h.id);if(n instanceof Xn)l.attachTemplatePortal(new Ps(n,null,{$implicit:h.data,dialogRef:_}));else{var C=this._createInjector(h,_,l),k=l.attachComponentPortal(new sd(n,h.viewContainerRef,C));_.componentInstance=k.instance}return _.updateSize(h.width,h.height).updatePosition(h.position),_}},{key:"_createInjector",value:function(n,l,c){var h=n&&n.viewContainerRef&&n.viewContainerRef.injector,_=[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:l}];return n.direction&&(!h||!h.get(Mr,null,yn.Optional))&&_.push({provide:Mr,useValue:{value:n.direction,change:ut()}}),kn.create({parent:h||this._injector,providers:_})}},{key:"_removeOpenDialog",value:function(n){var l=this.openDialogs.indexOf(n);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(c,h){c?h.setAttribute("aria-hidden",c):h.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var n=this._overlayContainer.getContainerElement();if(n.parentElement)for(var l=n.parentElement.children,c=l.length-1;c>-1;c--){var h=l[c];h!==n&&"SCRIPT"!==h.nodeName&&"STYLE"!==h.nodeName&&!h.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(h,h.getAttribute("aria-hidden")),h.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(n){for(var l=n.length;l--;)n[l].close()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(kn),N(void 0),N(void 0),N(tb),N(void 0),N(Yl),N(Yl),N(Ee))},e.\u0275dir=ve({type:e}),e}(),Sb=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){return F(this,n),t.call(this,l,c,_,k,D,C,Er,hq,Wr)}return n}(v5);return e.\u0275fac=function(t){return new(t||e)(ce(Ai),ce(kn),ce(Jv,8),ce(YS,8),ce(pq),ce(e,12),ce(tb))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),gq=0,Lr=function(){var e=function(){function a(t,n,l){F(this,a),this.dialogRef=t,this._elementRef=n,this._dialog=l,this.type="button"}return W(a,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=g5(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(n){var l=n._matDialogClose||n._matDialogCloseResult;l&&(this.dialogResult=l.currentValue)}},{key:"_onButtonClick",value:function(n){bP(this.dialogRef,0===n.screenX&&0===n.screenY?"keyboard":"mouse",this.dialogResult)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Er,8),N(Ue),N(Sb))},e.\u0275dir=ve({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,n){1&t&&ne("click",function(c){return n._onButtonClick(c)}),2&t&&Ke("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[on]}),e}(),Yr=function(){var e=function(){function a(t,n,l){F(this,a),this._dialogRef=t,this._elementRef=n,this._dialog=l,this.id="mat-dialog-title-".concat(gq++)}return W(a,[{key:"ngOnInit",value:function(){var n=this;this._dialogRef||(this._dialogRef=g5(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var l=n._dialogRef._containerInstance;l&&!l._ariaLabelledBy&&(l._ariaLabelledBy=n.id)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Er,8),N(Ue),N(Sb))},e.\u0275dir=ve({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,n){2&t&&Ki("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),Fr=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),Qr=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function g5(e,a){for(var t=e.nativeElement.parentElement;t&&!t.classList.contains("mat-dialog-container");)t=t.parentElement;return t?a.find(function(n){return n.id===t.id}):null}var m5=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Sb,wb],imports:[[fp,xg,$t],$t]}),e}();function mq(e){var a=e.subscriber,t=e.counter,n=e.period;a.next(t),this.schedule({subscriber:a,counter:t+1,period:n},n)}var XS=["mat-button",""],hd=["*"],wP=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",yq=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],y5=Eu(aa(El(function(){return function e(a){F(this,e),this._elementRef=a}}()))),Rn=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _;F(this,n),(_=t.call(this,l))._focusMonitor=c,_._animationMode=h,_.isRoundButton=_._hasHostAttributes("mat-fab","mat-mini-fab"),_.isIconButton=_._hasHostAttributes("mat-icon-button");var k,C=nn(yq);try{for(C.s();!(k=C.n()).done;){var D=k.value;_._hasHostAttributes(D)&&_._getHostElement().classList.add(D)}}catch(I){C.e(I)}finally{C.f()}return l.nativeElement.classList.add("mat-button-base"),_.isRoundButton&&(_.color="accent"),_}return W(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(c,h){c?this._focusMonitor.focusVia(this._getHostElement(),c,h):this._getHostElement().focus(h)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var c=this,h=arguments.length,_=new Array(h),C=0;C0&&(this.dialogRef.afterClosed().subscribe(function(t){a.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg;return(!zA(e)||e<0)&&(e=0),(!a||"function"!=typeof a.schedule)&&(a=Mg),new gn(function(t){return t.add(a.schedule(mq,e,{subscriber:t,counter:0,period:e})),t})}(1e3).subscribe(function(t){var n=a.data.autoclose-1e3*(t+1);a.setExtra(n),n<=0&&a.close()}))},e.prototype.initYesNo=function(){},e.prototype.ngOnInit=function(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===Ou.yesno?this.initYesNo():this.initAlert()},e.\u0275fac=function(t){return new(t||e)(N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"color","click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"color","click"]],template:function(t,n){1&t&&(me(0,"h4",0),Uf(1,"safeHtml"),me(2,"mat-dialog-content",1),Uf(3,"safeHtml"),A(4,"mat-dialog-actions"),re(5,C5,4,1,"button",2),re(6,w5,3,1,"button",3),re(7,S5,3,1,"button",3),E()),2&t&&(z("innerHtml",Gf(1,5,n.data.title),Si),H(2),z("innerHTML",Gf(3,7,n.data.body),Si),H(3),z("ngIf",0==n.data.type),H(1),z("ngIf",1==n.data.type),H(1),z("ngIf",1==n.data.type))},directives:[Yr,Fr,Qr,Kt,Rn,Lr,Hn],pipes:[b5],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}(),Pl=function(e){return e.TEXT="text",e.TEXT_AUTOCOMPLETE="text-autocomplete",e.TEXTBOX="textbox",e.NUMERIC="numeric",e.PASSWORD="password",e.HIDDEN="hidden",e.CHOICE="choice",e.MULTI_CHOICE="multichoice",e.EDITLIST="editlist",e.CHECKBOX="checkbox",e.IMAGECHOICE="imgchoice",e.DATE="date",e.DATETIME="datetime",e.TAGLIST="taglist",e}({}),M5=function(){function e(){}return e.locateChoice=function(a,t){var n=t.gui.values.find(function(l){return l.id===a});if(void 0===n)try{n=t.gui.values[0]}catch(l){n={id:"",img:"",text:""}}return n},e}();function o(e,a){return new gn(function(t){var n=e.length;if(0!==n)for(var l=new Array(n),c=0,h=0,_=function(D){var I=yt(e[D]),L=!1;t.add(I.subscribe({next:function(Y){L||(L=!0,h++),l[D]=Y},error:function(Y){return t.error(Y)},complete:function(){(++c===n||!L)&&(h===n&&t.next(a?a.reduce(function(Y,Q,ie){return Y[Q]=l[ie],Y},{}):l),t.complete())}}))},C=0;Ce?{max:{max:e,actual:a.value}}:null}}(t)}},{key:"required",value:function(t){return P(t)}},{key:"requiredTrue",value:function(t){return O(t)}},{key:"email",value:function(t){return function(e){return m(e.value)||S.test(e.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return function(e){return function(a){return m(a.value)||!y(a.value)?null:a.value.lengthe?{maxlength:{requiredLength:e,actualLength:a.value.length}}:null}}function j(e){return null}function X(e){return null!=e}function K(e){var a=vv(e)?yt(e):e;return gv(a),a}function $(e){var a={};return e.forEach(function(t){a=null!=t?Object.assign(Object.assign({},a),t):a}),0===Object.keys(a).length?null:a}function te(e,a){return a.map(function(t){return t(e)})}function le(e){return e.map(function(a){return function(e){return!e.validate}(a)?a:function(t){return a.validate(t)}})}function oe(e){if(!e)return null;var a=e.filter(X);return 0==a.length?null:function(t){return $(te(t,a))}}function de(e){return null!=e?oe(le(e)):null}function ge(e){if(!e)return null;var a=e.filter(X);return 0==a.length?null:function(t){return function(){for(var e=arguments.length,a=new Array(e),t=0;t0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(n)}},{key:"hasError",value:function(n,l){return!!this.control&&this.control.hasError(n,l)}},{key:"getError",value:function(n,l){return this.control?this.control.getError(n,l):null}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e}),e}(),Yt=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return W(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(xt);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,features:[Pe]}),e}(),Gt=function(e){ae(t,e);var a=ue(t);function t(){var n;return F(this,t),(n=a.apply(this,arguments))._parent=null,n.name=null,n.valueAccessor=null,n}return t}(xt),Wn=function(){function e(a){F(this,e),this._cd=a}return W(e,[{key:"is",value:function(t){var n,l,c;return"submitted"===t?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(c=null===(l=this._cd)||void 0===l?void 0:l.control)||void 0===c?void 0:c[t])}}]),e}(),Mt=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){return F(this,n),t.call(this,l)}return n}(Wn);return e.\u0275fac=function(t){return new(t||e)(N(Gt,2))},e.\u0275dir=ve({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){2&t&&dt("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:[Pe]}),e}(),Nr=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){return F(this,n),t.call(this,l)}return n}(Wn);return e.\u0275fac=function(t){return new(t||e)(N(Yt,10))},e.\u0275dir=ve({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,n){2&t&&dt("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:[Pe]}),e}();function SP(e,a){wq(e,a),a.valueAccessor.writeValue(e.value),function(e,a){a.valueAccessor.registerOnChange(function(t){e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&OQ(e,a)})}(e,a),function(e,a){var t=function(l,c){a.valueAccessor.writeValue(l),c&&a.viewToModelUpdate(l)};e.registerOnChange(t),a._registerOnDestroy(function(){e._unregisterOnChange(t)})}(e,a),function(e,a){a.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&OQ(e,a),"submit"!==e.updateOn&&e.markAsTouched()})}(e,a),function(e,a){if(a.valueAccessor.setDisabledState){var t=function(l){a.valueAccessor.setDisabledState(l)};e.registerOnDisabledChange(t),a._registerOnDestroy(function(){e._unregisterOnDisabledChange(t)})}}(e,a)}function D5(e,a){var n=function(){};a.valueAccessor&&(a.valueAccessor.registerOnChange(n),a.valueAccessor.registerOnTouched(n)),E5(e,a),e&&(a._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function A5(e,a){e.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(a)})}function wq(e,a){var t=Me(e);null!==a.validator?e.setValidators(xe(t,a.validator)):"function"==typeof t&&e.setValidators([t]);var n=ze(e);null!==a.asyncValidator?e.setAsyncValidators(xe(n,a.asyncValidator)):"function"==typeof n&&e.setAsyncValidators([n]);var l=function(){return e.updateValueAndValidity()};A5(a._rawValidators,l),A5(a._rawAsyncValidators,l)}function E5(e,a){var t=!1;if(null!==e){if(null!==a.validator){var n=Me(e);if(Array.isArray(n)&&n.length>0){var l=n.filter(function(C){return C!==a.validator});l.length!==n.length&&(t=!0,e.setValidators(l))}}if(null!==a.asyncValidator){var c=ze(e);if(Array.isArray(c)&&c.length>0){var h=c.filter(function(C){return C!==a.asyncValidator});h.length!==c.length&&(t=!0,e.setAsyncValidators(h))}}}var _=function(){};return A5(a._rawValidators,_),A5(a._rawAsyncValidators,_),t}function OQ(e,a){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function IQ(e,a){wq(e,a)}function RQ(e,a){e._syncPendingControls(),a.forEach(function(t){var n=t.control;"submit"===n.updateOn&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function P5(e,a){var t=e.indexOf(a);t>-1&&e.splice(t,1)}var kP="VALID",O5="INVALID",KS="PENDING",MP="DISABLED";function Mq(e){return(Tq(e)?e.validators:e)||null}function LQ(e){return Array.isArray(e)?de(e):e||null}function xq(e,a){return(Tq(a)?a.asyncValidators:e)||null}function FQ(e){return Array.isArray(e)?_e(e):e||null}function Tq(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Dq=function(){function e(a,t){F(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=t,this._composedValidatorFn=LQ(this._rawValidators),this._composedAsyncValidatorFn=FQ(this._rawAsyncValidators)}return W(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===kP}},{key:"invalid",get:function(){return this.status===O5}},{key:"pending",get:function(){return this.status==KS}},{key:"disabled",get:function(){return this.status===MP}},{key:"enabled",get:function(){return this.status!==MP}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=LQ(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=FQ(t)}},{key:"addValidators",value:function(t){this.setValidators(Qt(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators(Qt(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(Ut(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(Ut(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return mt(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return mt(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(n){n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(n){n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=KS,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=MP,this.errors=null,this._forEachChild(function(l){l.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(l){return l(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(t.onlySelf);this.status=kP,this._forEachChild(function(l){l.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(l){return l(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===kP||this.status===KS)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(n){return n._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?MP:kP}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var n=this;if(this.asyncValidator){this.status=KS,this._hasOwnPendingAsyncValidator=!0;var l=K(this.asyncValidator(this));this._asyncValidationSubscription=l.subscribe(function(c){n._hasOwnPendingAsyncValidator=!1,n.setErrors(c,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}},{key:"get",value:function(t){return function(e,a,t){if(null==a||(Array.isArray(a)||(a=a.split(".")),Array.isArray(a)&&0===a.length))return null;var n=e;return a.forEach(function(l){n=n instanceof Aq?n.controls.hasOwnProperty(l)?n.controls[l]:null:n instanceof kne&&n.at(l)||null}),n}(this,t)}},{key:"getError",value:function(t,n){var l=n?this.get(n):this;return l&&l.errors?l.errors[t]:null}},{key:"hasError",value:function(t,n){return!!this.getError(t,n)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new ye,this.statusChanges=new ye}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?MP:this.errors?O5:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(KS)?KS:this._anyControlsHaveStatus(O5)?O5:kP}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(n){return n.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){Tq(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),I5=function(e){ae(t,e);var a=ue(t);function t(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=arguments.length>1?arguments[1]:void 0,h=arguments.length>2?arguments[2]:void 0;return F(this,t),(n=a.call(this,Mq(c),xq(h,c)))._onChange=[],n._applyFormState(l),n._setUpdateStrategy(c),n._initObservables(),n.updateValueAndValidity({onlySelf:!0,emitEvent:!!n.asyncValidator}),n}return W(t,[{key:"setValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=l,this._onChange.length&&!1!==h.emitModelToViewChange&&this._onChange.forEach(function(_){return _(c.value,!1!==h.emitViewToModelChange)}),this.updateValueAndValidity(h)}},{key:"patchValue",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(l,c)}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(l),this.markAsPristine(c),this.markAsUntouched(c),this.setValue(this.value,c),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(l){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(l){this._onChange.push(l)}},{key:"_unregisterOnChange",value:function(l){P5(this._onChange,l)}},{key:"registerOnDisabledChange",value:function(l){this._onDisabledChange.push(l)}},{key:"_unregisterOnDisabledChange",value:function(l){P5(this._onDisabledChange,l)}},{key:"_forEachChild",value:function(l){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(l){this._isBoxedValue(l)?(this.value=this._pendingValue=l.value,l.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=l}}]),t}(Dq),Aq=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,Mq(l),xq(c,l))).controls=n,h._initObservables(),h._setUpdateStrategy(l),h._setUpControls(),h.updateValueAndValidity({onlySelf:!0,emitEvent:!!h.asyncValidator}),h}return W(t,[{key:"registerControl",value:function(l,c){return this.controls[l]?this.controls[l]:(this.controls[l]=c,c.setParent(this),c._registerOnCollectionChange(this._onCollectionChange),c)}},{key:"addControl",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(l,c),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),delete this.controls[l],this.updateValueAndValidity({emitEvent:c.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),delete this.controls[l],c&&this.registerControl(l,c),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(l){return this.controls.hasOwnProperty(l)&&this.controls[l].enabled}},{key:"setValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(l),Object.keys(l).forEach(function(_){c._throwIfControlMissing(_),c.controls[_].setValue(l[_],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}},{key:"patchValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=l&&(Object.keys(l).forEach(function(_){c.controls[_]&&c.controls[_].patchValue(l[_],{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(h,_){h.reset(l[_],{onlySelf:!0,emitEvent:c.emitEvent})}),this._updatePristine(c),this._updateTouched(c),this.updateValueAndValidity(c)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(l,c,h){return l[h]=c instanceof I5?c.value:c.getRawValue(),l})}},{key:"_syncPendingControls",value:function(){var l=this._reduceChildren(!1,function(c,h){return!!h._syncPendingControls()||c});return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_throwIfControlMissing",value:function(l){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[l])throw new Error("Cannot find form control with name: ".concat(l,"."))}},{key:"_forEachChild",value:function(l){var c=this;Object.keys(this.controls).forEach(function(h){var _=c.controls[h];_&&l(_,h)})}},{key:"_setUpControls",value:function(){var l=this;this._forEachChild(function(c){c.setParent(l),c._registerOnCollectionChange(l._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(l){for(var c=0,h=Object.keys(this.controls);c0||this.disabled}},{key:"_checkAllValuesPresent",value:function(l){this._forEachChild(function(c,h){if(void 0===l[h])throw new Error("Must supply a value for form control with name: '".concat(h,"'."))})}}]),t}(Dq),kne=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,Mq(l),xq(c,l))).controls=n,h._initObservables(),h._setUpdateStrategy(l),h._setUpControls(),h.updateValueAndValidity({onlySelf:!0,emitEvent:!!h.asyncValidator}),h}return W(t,[{key:"at",value:function(l){return this.controls[l]}},{key:"push",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(l),this._registerControl(l),this.updateValueAndValidity({emitEvent:c.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(l,0,c),this._registerControl(c),this.updateValueAndValidity({emitEvent:h.emitEvent})}},{key:"removeAt",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),this.controls.splice(l,1),this.updateValueAndValidity({emitEvent:c.emitEvent})}},{key:"setControl",value:function(l,c){var h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),this.controls.splice(l,1),c&&(this.controls.splice(l,0,c),this._registerControl(c)),this.updateValueAndValidity({emitEvent:h.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(l),l.forEach(function(_,C){c._throwIfControlMissing(C),c.at(C).setValue(_,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h)}},{key:"patchValue",value:function(l){var c=this,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=l&&(l.forEach(function(_,C){c.at(C)&&c.at(C).patchValue(_,{onlySelf:!0,emitEvent:h.emitEvent})}),this.updateValueAndValidity(h))}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(h,_){h.reset(l[_],{onlySelf:!0,emitEvent:c.emitEvent})}),this._updatePristine(c),this._updateTouched(c),this.updateValueAndValidity(c)}},{key:"getRawValue",value:function(){return this.controls.map(function(l){return l instanceof I5?l.value:l.getRawValue()})}},{key:"clear",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(c){return c._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:l.emitEvent}))}},{key:"_syncPendingControls",value:function(){var l=this.controls.reduce(function(c,h){return!!h._syncPendingControls()||c},!1);return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_throwIfControlMissing",value:function(l){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(l))throw new Error("Cannot find form control at index ".concat(l))}},{key:"_forEachChild",value:function(l){this.controls.forEach(function(c,h){l(c,h)})}},{key:"_updateValue",value:function(){var l=this;this.value=this.controls.filter(function(c){return c.enabled||l.disabled}).map(function(c){return c.value})}},{key:"_anyControls",value:function(l){return this.controls.some(function(c){return c.enabled&&l(c)})}},{key:"_setUpControls",value:function(){var l=this;this._forEachChild(function(c){return l._registerControl(c)})}},{key:"_checkAllValuesPresent",value:function(l){this._forEachChild(function(c,h){if(void 0===l[h])throw new Error("Must supply a value for form control at index: ".concat(h,"."))})}},{key:"_allControlsDisabled",value:function(){var c,l=nn(this.controls);try{for(l.s();!(c=l.n()).done;)if(c.value.enabled)return!1}catch(_){l.e(_)}finally{l.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(l){l.setParent(this),l._registerOnCollectionChange(this._onCollectionChange)}}]),t}(Dq),Mne={provide:Yt,useExisting:Sn(function(){return Lc})},xP=function(){return Promise.resolve(null)}(),Lc=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this)).submitted=!1,h._directives=[],h.ngSubmit=new ye,h.form=new Aq({},de(l),_e(c)),h}return W(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(c){var h=this;xP.then(function(){var _=h._findContainer(c.path);c.control=_.registerControl(c.name,c.control),SP(c.control,c),c.control.updateValueAndValidity({emitEvent:!1}),h._directives.push(c)})}},{key:"getControl",value:function(c){return this.form.get(c.path)}},{key:"removeControl",value:function(c){var h=this;xP.then(function(){var _=h._findContainer(c.path);_&&_.removeControl(c.name),P5(h._directives,c)})}},{key:"addFormGroup",value:function(c){var h=this;xP.then(function(){var _=h._findContainer(c.path),C=new Aq({});IQ(C,c),_.registerControl(c.name,C),C.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(c){var h=this;xP.then(function(){var _=h._findContainer(c.path);_&&_.removeControl(c.name)})}},{key:"getFormGroup",value:function(c){return this.form.get(c.path)}},{key:"updateModel",value:function(c,h){var _=this;xP.then(function(){_.form.get(c.path).setValue(h)})}},{key:"setValue",value:function(c){this.control.setValue(c)}},{key:"onSubmit",value:function(c){return this.submitted=!0,RQ(this.form,this._directives),this.ngSubmit.emit(c),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(c),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(c){return c.pop(),c.length?this.form.get(c):this.form}}]),n}(Yt);return e.\u0275fac=function(t){return new(t||e)(N(b,10),N(w,10))},e.\u0275dir=ve({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){1&t&&ne("submit",function(c){return n.onSubmit(c)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Xe([Mne]),Pe]}),e}(),Dne={provide:Gt,useExisting:Sn(function(){return _r})},BQ=function(){return Promise.resolve(null)}(),_r=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){var C;return F(this,n),(C=t.call(this)).control=new I5,C._registered=!1,C.update=new ye,C._parent=l,C._setValidators(c),C._setAsyncValidators(h),C.valueAccessor=function(e,a){if(!a)return null;Array.isArray(a);var t=void 0,n=void 0,l=void 0;return a.forEach(function(c){c.constructor===g?t=c:function(e){return Object.getPrototypeOf(e.constructor)===r}(c)?n=c:l=c}),l||n||t||null}(It(C),_),C}return W(n,[{key:"ngOnChanges",value:function(c){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in c&&this._updateDisabled(c),function(e,a){if(!e.hasOwnProperty("model"))return!1;var t=e.model;return!!t.isFirstChange()||!Object.is(a,t.currentValue)}(c,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?function(e,a){return[].concat(Et(a.path),[e])}(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(c){this.viewModel=c,this.update.emit(c)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){SP(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(c){var h=this;BQ.then(function(){h.control.setValue(c,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(c){var h=this,_=c.isDisabled.currentValue,C=""===_||_&&"false"!==_;BQ.then(function(){C&&!h.control.disabled?h.control.disable():!C&&h.control.disabled&&h.control.enable()})}}]),n}(Gt);return e.\u0275fac=function(t){return new(t||e)(N(Yt,9),N(b,10),N(w,10),N(s,10))},e.\u0275dir=ve({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Xe([Dne]),Pe,on]}),e}(),Eq=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),Ene={provide:s,useExisting:Sn(function(){return zg}),multi:!0},zg=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return W(n,[{key:"writeValue",value:function(c){this.setProperty("value",null==c?"":c)}},{key:"registerOnChange",value:function(c){this.onChange=function(h){c(""==h?null:parseFloat(h))}}}]),n}(r);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,n){1&t&&ne("input",function(c){return n.onChange(c.target.value)})("blur",function(){return n.onTouched()})},features:[Xe([Ene]),Pe]}),e}(),HQ=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),Pq=new Ee("NgModelWithFormControlWarning"),Lne={provide:Yt,useExisting:Sn(function(){return yp})},yp=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this)).validators=l,h.asyncValidators=c,h.submitted=!1,h._onCollectionChange=function(){return h._updateDomValue()},h.directives=[],h.form=null,h.ngSubmit=new ye,h._setValidators(l),h._setAsyncValidators(c),h}return W(n,[{key:"ngOnChanges",value:function(c){this._checkFormPresent(),c.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(E5(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(c){var h=this.form.get(c.path);return SP(h,c),h.updateValueAndValidity({emitEvent:!1}),this.directives.push(c),h}},{key:"getControl",value:function(c){return this.form.get(c.path)}},{key:"removeControl",value:function(c){D5(c.control||null,c),P5(this.directives,c)}},{key:"addFormGroup",value:function(c){this._setUpFormContainer(c)}},{key:"removeFormGroup",value:function(c){this._cleanUpFormContainer(c)}},{key:"getFormGroup",value:function(c){return this.form.get(c.path)}},{key:"addFormArray",value:function(c){this._setUpFormContainer(c)}},{key:"removeFormArray",value:function(c){this._cleanUpFormContainer(c)}},{key:"getFormArray",value:function(c){return this.form.get(c.path)}},{key:"updateModel",value:function(c,h){this.form.get(c.path).setValue(h)}},{key:"onSubmit",value:function(c){return this.submitted=!0,RQ(this.form,this.directives),this.ngSubmit.emit(c),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(c),this.submitted=!1}},{key:"_updateDomValue",value:function(){var c=this;this.directives.forEach(function(h){var _=h.control,C=c.form.get(h.path);_!==C&&(D5(_||null,h),C instanceof I5&&(SP(C,h),h.control=C))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(c){var h=this.form.get(c.path);IQ(h,c),h.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(c){if(this.form){var h=this.form.get(c.path);h&&function(e,a){return E5(e,a)}(h,c)&&h.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){wq(this.form,this),this._oldForm&&E5(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(Yt);return e.\u0275fac=function(t){return new(t||e)(N(b,10),N(w,10))},e.\u0275dir=ve({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,n){1&t&&ne("submit",function(c){return n.onSubmit(c)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Xe([Lne]),Pe,on]}),e}();var qne={provide:b,useExisting:Sn(function(){return Iu}),multi:!0},Xne={provide:b,useExisting:Sn(function(){return R5}),multi:!0},Iu=function(){var e=function(){function a(){F(this,a),this._required=!1}return W(a,[{key:"required",get:function(){return this._required},set:function(n){this._required=null!=n&&!1!==n&&"false"!=="".concat(n),this._onChange&&this._onChange()}},{key:"validate",value:function(n){return this.required?P(n):null}},{key:"registerOnValidatorChange",value:function(n){this._onChange=n}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,n){2&t&&Ke("required",n.required?"":null)},inputs:{required:"required"},features:[Xe([qne])]}),e}(),R5=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return W(n,[{key:"validate",value:function(c){return this.required?O(c):null}}]),n}(Iu);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&Ke("required",n.required?"":null)},features:[Xe([Xne]),Pe]}),e}(),$ne={provide:b,useExisting:Sn(function(){return L5}),multi:!0},L5=function(){var e=function(){function a(){F(this,a),this._validator=j}return W(a,[{key:"ngOnChanges",value:function(n){"maxlength"in n&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(n){return this.enabled()?this._validator(n):null}},{key:"registerOnValidatorChange",value:function(n){this._onChange=n}},{key:"_createValidator",value:function(){this._validator=this.enabled()?B(function(e){return"number"==typeof e?e:parseInt(e,10)}(this.maxlength)):j}},{key:"enabled",value:function(){return null!=this.maxlength}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,n){2&t&&Ke("maxlength",n.enabled()?n.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Xe([$ne]),on]}),e}(),tJ=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[HQ]]}),e}(),Jne=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[tJ]}),e}(),ere=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"withConfig",value:function(n){return{ngModule:a,providers:[{provide:Pq,useValue:n.warnOnNgModelWithFormControl}]}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[tJ]}),e}();function tre(e,a){1&e&&Wt(0)}var Fq=["*"];function nre(e,a){}var rre=function(a){return{animationDuration:a}},ire=function(a,t){return{value:a,params:t}},are=["tabBodyWrapper"],ore=["tabHeader"];function sre(e,a){}function lre(e,a){1&e&&re(0,sre,0,0,"ng-template",9),2&e&&z("cdkPortalOutlet",J().$implicit.templateLabel)}function ure(e,a){1&e&&Z(0),2&e&&On(J().$implicit.textLabel)}function cre(e,a){if(1&e){var t=De();A(0,"div",6),ne("click",function(){var _=pe(t),C=_.$implicit,k=_.index,D=J(),I=Pn(1);return D._handleClick(C,I,k)})("cdkFocusChange",function(_){var k=pe(t).index;return J()._tabFocusChanged(_,k)}),A(1,"div",7),re(2,lre,1,1,"ng-template",8),re(3,ure,1,1,"ng-template",8),E(),E()}if(2&e){var n=a.$implicit,l=a.index,c=J();dt("mat-tab-label-active",c.selectedIndex==l),z("id",c._getTabLabelId(l))("disabled",n.disabled)("matRippleDisabled",n.disabled||c.disableRipple),Ke("tabIndex",c._getTabIndex(n,l))("aria-posinset",l+1)("aria-setsize",c._tabs.length)("aria-controls",c._getTabContentId(l))("aria-selected",c.selectedIndex==l)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),H(2),z("ngIf",n.templateLabel),H(1),z("ngIf",!n.templateLabel)}}function fre(e,a){if(1&e){var t=De();A(0,"mat-tab-body",10),ne("_onCentered",function(){return pe(t),J()._removeTabBodyWrapperHeight()})("_onCentering",function(_){return pe(t),J()._setTabBodyWrapperHeight(_)}),E()}if(2&e){var n=a.$implicit,l=a.index,c=J();dt("mat-tab-body-active",c.selectedIndex===l),z("id",c._getTabContentId(l))("content",n.content)("position",n.position)("origin",n.origin)("animationDuration",c.animationDuration),Ke("tabindex",null!=c.contentTabIndex&&c.selectedIndex===l?c.contentTabIndex:null)("aria-labelledby",c._getTabLabelId(l))}}var nJ=["tabListContainer"],rJ=["tabList"],iJ=["nextPaginator"],aJ=["previousPaginator"],hre=new Ee("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),F5=function(){var e=function(){function a(t,n,l,c){F(this,a),this._elementRef=t,this._ngZone=n,this._inkBarPositioner=l,this._animationMode=c}return W(a,[{key:"alignToElement",value:function(n){var l=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return l._setStyles(n)})}):this._setStyles(n)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(n){var l=this._inkBarPositioner(n),c=this._elementRef.nativeElement;c.style.left=l.left,c.style.width=l.width}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(hre),N(Un,8))},e.\u0275dir=ve({type:e,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,n){2&t&&dt("_mat-animation-noopable","NoopAnimations"===n._animationMode)}}),e}(),oJ=new Ee("MatTabContent"),sJ=new Ee("MatTabLabel"),Fc=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return n}(nE);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Xe([{provide:sJ,useExisting:e}]),Pe]}),e}(),vre=aa(function(){return function e(){F(this,e)}}()),lJ=new Ee("MAT_TAB_GROUP"),Ru=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this))._viewContainerRef=l,h._closestTabGroup=c,h.textLabel="",h._contentPortal=null,h._stateChanges=new qe,h.position=null,h.origin=null,h.isActive=!1,h}return W(n,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(c){this._setTemplateLabelInput(c)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(c){(c.hasOwnProperty("textLabel")||c.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new Ps(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(c){c&&(this._templateLabel=c)}}]),n}(vre);return e.\u0275fac=function(t){return new(t||e)(N($n),N(lJ,8))},e.\u0275cmp=Se({type:e,selectors:[["mat-tab"]],contentQueries:function(t,n,l){var c;1&t&&(Zt(l,sJ,5),Zt(l,oJ,7,Xn)),2&t&&(Ne(c=Le())&&(n.templateLabel=c.first),Ne(c=Le())&&(n._explicitContent=c.first))},viewQuery:function(t,n){var l;1&t&&wt(Xn,7),2&t&&Ne(l=Le())&&(n._implicitContent=l.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Pe,on],ngContentSelectors:Fq,decls:1,vars:0,template:function(t,n){1&t&&(rr(),re(0,tre,1,0,"ng-template"))},encapsulation:2}),e}(),gre={translateTab:Ei("translateTab",[Bn("center, void, left-origin-center, right-origin-center",gt({transform:"none"})),Bn("left",gt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Bn("right",gt({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),zn("* => left, * => right, left => center, right => center",Tn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),zn("void => left-origin-center",[gt({transform:"translate3d(-100%, 0, 0)"}),Tn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),zn("void => right-origin-center",[gt({transform:"translate3d(100%, 0, 0)"}),Tn("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},mre=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){var C;return F(this,n),(C=t.call(this,l,c,_))._host=h,C._centeringSub=Be.EMPTY,C._leavingSub=Be.EMPTY,C}return W(n,[{key:"ngOnInit",value:function(){var c=this;Ie(Oe(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe($r(this._host._isCenterPosition(this._host._position))).subscribe(function(h){h&&!c.hasAttached()&&c.attach(c._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){c.detach()})}},{key:"ngOnDestroy",value:function(){Ie(Oe(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(Os);return e.\u0275fac=function(t){return new(t||e)(N($i),N($n),N(Sn(function(){return uJ})),N(lt))},e.\u0275dir=ve({type:e,selectors:[["","matTabBodyHost",""]],features:[Pe]}),e}(),_re=function(){var e=function(){function a(t,n,l){var c=this;F(this,a),this._elementRef=t,this._dir=n,this._dirChangeSubscription=Be.EMPTY,this._translateTabComplete=new qe,this._onCentering=new ye,this._beforeCentering=new ye,this._afterLeavingCenter=new ye,this._onCentered=new ye(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(h){c._computePositionAnimationState(h),l.markForCheck()})),this._translateTabComplete.pipe(Xa(function(h,_){return h.fromState===_.fromState&&h.toState===_.toState})).subscribe(function(h){c._isCenterPosition(h.toState)&&c._isCenterPosition(c._position)&&c._onCentered.emit(),c._isCenterPosition(h.fromState)&&!c._isCenterPosition(c._position)&&c._afterLeavingCenter.emit()})}return W(a,[{key:"position",set:function(n){this._positionIndex=n,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(n){var l=this._isCenterPosition(n.toState);this._beforeCentering.emit(l),l&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(n){return"center"==n||"left-origin-center"==n||"right-origin-center"==n}},{key:"_computePositionAnimationState",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==n?"left":"right":this._positionIndex>0?"ltr"==n?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(n){var l=this._getLayoutDirection();return"ltr"==l&&n<=0||"rtl"==l&&n>0?"left-origin-center":"right-origin-center"}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Mr,8),N(Bt))},e.\u0275dir=ve({type:e,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),e}(),uJ=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){return F(this,n),t.call(this,l,c,h)}return n}(_re);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Mr,8),N(Bt))},e.\u0275cmp=Se({type:e,selectors:[["mat-tab-body"]],viewQuery:function(t,n){var l;1&t&&wt(Os,5),2&t&&Ne(l=Le())&&(n._portalHost=l.first)},hostAttrs:[1,"mat-tab-body"],features:[Pe],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,n){1&t&&(A(0,"div",0,1),ne("@translateTab.start",function(c){return n._onTranslateTabStarted(c)})("@translateTab.done",function(c){return n._translateTabComplete.next(c)}),re(2,nre,0,0,"ng-template",2),E()),2&t&&z("@translateTab",zf(3,ire,n._position,vl(1,rre,n.animationDuration)))},directives:[mre],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[gre.translateTab]}}),e}(),cJ=new Ee("MAT_TABS_CONFIG"),yre=0,bre=function e(){F(this,e)},Cre=Eu(El(function(){return function e(a){F(this,e),this._elementRef=a}}()),"primary"),wre=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){var C,k;return F(this,n),(C=t.call(this,l))._changeDetectorRef=c,C._animationMode=_,C._tabs=new Wo,C._indexToSelect=0,C._tabBodyWrapperHeight=0,C._tabsSubscription=Be.EMPTY,C._tabLabelSubscription=Be.EMPTY,C._selectedIndex=null,C.headerPosition="above",C.selectedIndexChange=new ye,C.focusChange=new ye,C.animationDone=new ye,C.selectedTabChange=new ye(!0),C._groupId=yre++,C.animationDuration=h&&h.animationDuration?h.animationDuration:"500ms",C.disablePagination=!(!h||null==h.disablePagination)&&h.disablePagination,C.dynamicHeight=!(!h||null==h.dynamicHeight)&&h.dynamicHeight,C.contentTabIndex=null!==(k=null==h?void 0:h.contentTabIndex)&&void 0!==k?k:null,C}return W(n,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(c){this._dynamicHeight=it(c)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(c){this._indexToSelect=Di(c,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(c){this._animationDuration=/^\d+$/.test(c)?c+"ms":c}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(c){this._contentTabIndex=Di(c,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(c){var h=this._elementRef.nativeElement;h.classList.remove("mat-background-".concat(this.backgroundColor)),c&&h.classList.add("mat-background-".concat(c)),this._backgroundColor=c}},{key:"ngAfterContentChecked",value:function(){var c=this,h=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=h){var _=null==this._selectedIndex;if(!_){this.selectedTabChange.emit(this._createChangeEvent(h));var C=this._tabBodyWrapper.nativeElement;C.style.minHeight=C.clientHeight+"px"}Promise.resolve().then(function(){c._tabs.forEach(function(k,D){return k.isActive=D===h}),_||(c.selectedIndexChange.emit(h),c._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(k,D){k.position=D-h,null!=c._selectedIndex&&0==k.position&&!k.origin&&(k.origin=h-c._selectedIndex)}),this._selectedIndex!==h&&(this._selectedIndex=h,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var c=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(c._clampTabIndex(c._indexToSelect)===c._selectedIndex)for(var _=c._tabs.toArray(),C=0;C<_.length;C++)if(_[C].isActive){c._indexToSelect=c._selectedIndex=C;break}c._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var c=this;this._allTabs.changes.pipe($r(this._allTabs)).subscribe(function(h){c._tabs.reset(h.filter(function(_){return _._closestTabGroup===c||!_._closestTabGroup})),c._tabs.notifyOnChanges()})}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"focusTab",value:function(c){var h=this._tabHeader;h&&(h.focusIndex=c)}},{key:"_focusChanged",value:function(c){this.focusChange.emit(this._createChangeEvent(c))}},{key:"_createChangeEvent",value:function(c){var h=new bre;return h.index=c,this._tabs&&this._tabs.length&&(h.tab=this._tabs.toArray()[c]),h}},{key:"_subscribeToTabLabels",value:function(){var c=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=ot.apply(void 0,Et(this._tabs.map(function(h){return h._stateChanges}))).subscribe(function(){return c._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(c){return Math.min(this._tabs.length-1,Math.max(c||0,0))}},{key:"_getTabLabelId",value:function(c){return"mat-tab-label-".concat(this._groupId,"-").concat(c)}},{key:"_getTabContentId",value:function(c){return"mat-tab-content-".concat(this._groupId,"-").concat(c)}},{key:"_setTabBodyWrapperHeight",value:function(c){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var h=this._tabBodyWrapper.nativeElement;h.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(h.style.height=c+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var c=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=c.clientHeight,c.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(c,h,_){c.disabled||(this.selectedIndex=h.focusIndex=_)}},{key:"_getTabIndex",value:function(c,h){return c.disabled?null:this.selectedIndex===h?0:-1}},{key:"_tabFocusChanged",value:function(c,h){c&&"mouse"!==c&&"touch"!==c&&(this._tabHeader.focusIndex=h)}}]),n}(Cre);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Bt),N(cJ,8),N(Un,8))},e.\u0275dir=ve({type:e,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[Pe]}),e}(),Nc=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){return F(this,n),t.call(this,l,c,h,_)}return n}(wre);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Bt),N(cJ,8),N(Un,8))},e.\u0275cmp=Se({type:e,selectors:[["mat-tab-group"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,Ru,5),2&t&&Ne(c=Le())&&(n._allTabs=c)},viewQuery:function(t,n){var l;1&t&&(wt(are,5),wt(ore,5)),2&t&&(Ne(l=Le())&&(n._tabBodyWrapper=l.first),Ne(l=Le())&&(n._tabHeader=l.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,n){2&t&&dt("mat-tab-group-dynamic-height",n.dynamicHeight)("mat-tab-group-inverted-header","below"===n.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Xe([{provide:lJ,useExisting:e}]),Pe],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,n){1&t&&(A(0,"mat-tab-header",0,1),ne("indexFocused",function(c){return n._focusChanged(c)})("selectFocusedIndex",function(c){return n.selectedIndex=c}),re(2,cre,4,14,"div",2),E(),A(3,"div",3,4),re(5,fre,1,9,"mat-tab-body",5),E()),2&t&&(z("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),H(2),z("ngForOf",n._tabs),H(1),dt("_mat-animation-noopable","NoopAnimations"===n._animationMode),H(2),z("ngForOf",n._tabs))},directives:function(){return[Tre,er,fJ,Ls,OE,Kt,Os,uJ]},styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),e}(),Sre=aa(function(){return function e(){F(this,e)}}()),fJ=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){var c;return F(this,n),(c=t.call(this)).elementRef=l,c}return W(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(Sre);return e.\u0275fac=function(t){return new(t||e)(N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,n){2&t&&(Ke("aria-disabled",!!n.disabled),dt("mat-tab-disabled",n.disabled))},inputs:{disabled:"disabled"},features:[Pe]}),e}(),dJ=tp({passive:!0}),pJ=function(){var e=function(){function a(t,n,l,c,h,_,C){var k=this;F(this,a),this._elementRef=t,this._changeDetectorRef=n,this._viewportRuler=l,this._dir=c,this._ngZone=h,this._platform=_,this._animationMode=C,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new qe,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new qe,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new ye,this.indexFocused=new ye,h.runOutsideAngular(function(){Tl(t.nativeElement,"mouseleave").pipe(zt(k._destroyed)).subscribe(function(){k._stopInterval()})})}return W(a,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(n){n=Di(n),this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}},{key:"ngAfterViewInit",value:function(){var n=this;Tl(this._previousPaginator.nativeElement,"touchstart",dJ).pipe(zt(this._destroyed)).subscribe(function(){n._handlePaginatorPress("before")}),Tl(this._nextPaginator.nativeElement,"touchstart",dJ).pipe(zt(this._destroyed)).subscribe(function(){n._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var n=this,l=this._dir?this._dir.change:ut("ltr"),c=this._viewportRuler.change(150),h=function(){n.updatePagination(),n._alignInkBarToSelectedTab()};this._keyManager=new ib(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(h):h(),ot(l,c,this._items.changes).pipe(zt(this._destroyed)).subscribe(function(){n._ngZone.run(function(){return Promise.resolve().then(h)}),n._keyManager.withHorizontalOrientation(n._getLayoutDirection())}),this._keyManager.change.pipe(zt(this._destroyed)).subscribe(function(_){n.indexFocused.emit(_),n._setTabFocus(_)})}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(n){if(!Bi(n))switch(n.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(n));break;default:this._keyManager.onKeydown(n)}}},{key:"_onContentChanges",value:function(){var n=this,l=this._elementRef.nativeElement.textContent;l!==this._currentTextContent&&(this._currentTextContent=l||"",this._ngZone.run(function(){n.updatePagination(),n._alignInkBarToSelectedTab(),n._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(n){!this._isValidIndex(n)||this.focusIndex===n||!this._keyManager||this._keyManager.setActiveItem(n)}},{key:"_isValidIndex",value:function(n){if(!this._items)return!0;var l=this._items?this._items.toArray()[n]:null;return!!l&&!l.disabled}},{key:"_setTabFocus",value:function(n){if(this._showPaginationControls&&this._scrollToLabel(n),this._items&&this._items.length){this._items.toArray()[n].focus();var l=this._tabListContainer.nativeElement,c=this._getLayoutDirection();l.scrollLeft="ltr"==c?0:l.scrollWidth-l.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var n=this.scrollDistance,l="ltr"===this._getLayoutDirection()?-n:n;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(l),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(n){this._scrollTo(n)}},{key:"_scrollHeader",value:function(n){return this._scrollTo(this._scrollDistance+("before"==n?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(n){this._stopInterval(),this._scrollHeader(n)}},{key:"_scrollToLabel",value:function(n){if(!this.disablePagination){var l=this._items?this._items.toArray()[n]:null;if(l){var k,D,c=this._tabListContainer.nativeElement.offsetWidth,h=l.elementRef.nativeElement,_=h.offsetLeft,C=h.offsetWidth;"ltr"==this._getLayoutDirection()?D=(k=_)+C:k=(D=this._tabList.nativeElement.offsetWidth-_)-C;var I=this.scrollDistance,L=this.scrollDistance+c;kL&&(this.scrollDistance+=D-L+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var n=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;n||(this.scrollDistance=0),n!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=n}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var n=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,l=n?n.elementRef.nativeElement:null;l?this._inkBar.alignToElement(l):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(n,l){var c=this;l&&null!=l.button&&0!==l.button||(this._stopInterval(),K3(650,100).pipe(zt(ot(this._stopScrolling,this._destroyed))).subscribe(function(){var h=c._scrollHeader(n),C=h.distance;(0===C||C>=h.maxScrollDistance)&&c._stopInterval()}))}},{key:"_scrollTo",value:function(n){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var l=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(l,n)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:l,distance:this._scrollDistance}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Bt),N(yo),N(Mr,8),N(ft),N(en),N(Un,8))},e.\u0275dir=ve({type:e,inputs:{disablePagination:"disablePagination"}}),e}(),xre=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){var I;return F(this,n),(I=t.call(this,l,c,h,_,C,k,D))._disableRipple=!1,I}return W(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(c){this._disableRipple=it(c)}},{key:"_itemSelected",value:function(c){c.preventDefault()}}]),n}(pJ);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Bt),N(yo),N(Mr,8),N(ft),N(en),N(Un,8))},e.\u0275dir=ve({type:e,inputs:{disableRipple:"disableRipple"},features:[Pe]}),e}(),Tre=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){return F(this,n),t.call(this,l,c,h,_,C,k,D)}return n}(xre);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Bt),N(yo),N(Mr,8),N(ft),N(en),N(Un,8))},e.\u0275cmp=Se({type:e,selectors:[["mat-tab-header"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,fJ,4),2&t&&Ne(c=Le())&&(n._items=c)},viewQuery:function(t,n){var l;1&t&&(wt(F5,7),wt(nJ,7),wt(rJ,7),wt(iJ,5),wt(aJ,5)),2&t&&(Ne(l=Le())&&(n._inkBar=l.first),Ne(l=Le())&&(n._tabListContainer=l.first),Ne(l=Le())&&(n._tabList=l.first),Ne(l=Le())&&(n._nextPaginator=l.first),Ne(l=Le())&&(n._previousPaginator=l.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,n){2&t&&dt("mat-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-tab-header-rtl","rtl"==n._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Pe],ngContentSelectors:Fq,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,n){1&t&&(rr(),A(0,"div",0,1),ne("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(c){return n._handlePaginatorPress("before",c)})("touchend",function(){return n._stopInterval()}),me(2,"div",2),E(),A(3,"div",3,4),ne("keydown",function(c){return n._handleKeydown(c)}),A(5,"div",5,6),ne("cdkObserveContent",function(){return n._onContentChanges()}),A(7,"div",7),Wt(8),E(),me(9,"mat-ink-bar"),E(),E(),A(10,"div",8,9),ne("mousedown",function(c){return n._handlePaginatorPress("after",c)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),me(12,"div",2),E()),2&t&&(dt("mat-tab-header-pagination-disabled",n._disableScrollBefore),z("matRippleDisabled",n._disableScrollBefore||n.disableRipple),H(5),dt("_mat-animation-noopable","NoopAnimations"===n._animationMode),H(5),dt("mat-tab-header-pagination-disabled",n._disableScrollAfter),z("matRippleDisabled",n._disableScrollAfter||n.disableRipple))},directives:[Ls,nb,F5],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),e}(),Ore=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Wa,$t,xg,Aa,ld,LE],$t]}),e}();function Ire(e,a){if(1&e){var t=De();A(0,"uds-field-text",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Rre(e,a){if(1&e){var t=De();A(0,"uds-field-autocomplete",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Lre(e,a){if(1&e){var t=De();A(0,"uds-field-textbox",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Fre(e,a){if(1&e){var t=De();A(0,"uds-field-numeric",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Nre(e,a){if(1&e){var t=De();A(0,"uds-field-password",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Vre(e,a){if(1&e){var t=De();A(0,"uds-field-hidden",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Bre(e,a){if(1&e){var t=De();A(0,"uds-field-choice",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Hre(e,a){if(1&e){var t=De();A(0,"uds-field-multichoice",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function zre(e,a){if(1&e){var t=De();A(0,"uds-field-editlist",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Ure(e,a){if(1&e){var t=De();A(0,"uds-field-checkbox",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Gre(e,a){if(1&e){var t=De();A(0,"uds-field-imgchoice",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function jre(e,a){if(1&e){var t=De();A(0,"uds-field-date",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}function Wre(e,a){if(1&e){var t=De();A(0,"uds-field-tags",2),ne("changed",function(c){return pe(t),J().changed.emit(c)}),E()}2&e&&z("field",J().field)}var gJ=function(){function e(){this.changed=new ye,this.udsGuiFieldType=Pl}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:14,vars:15,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"field","changed"]],template:function(t,n){1&t&&(A(0,"div",0),re(1,Ire,1,1,"uds-field-text",1),re(2,Rre,1,1,"uds-field-autocomplete",1),re(3,Lre,1,1,"uds-field-textbox",1),re(4,Fre,1,1,"uds-field-numeric",1),re(5,Nre,1,1,"uds-field-password",1),re(6,Vre,1,1,"uds-field-hidden",1),re(7,Bre,1,1,"uds-field-choice",1),re(8,Hre,1,1,"uds-field-multichoice",1),re(9,zre,1,1,"uds-field-editlist",1),re(10,Ure,1,1,"uds-field-checkbox",1),re(11,Gre,1,1,"uds-field-imgchoice",1),re(12,jre,1,1,"uds-field-date",1),re(13,Wre,1,1,"uds-field-tags",1),E()),2&t&&(z("ngSwitch",n.field.gui.type)("matTooltip",n.field.gui.tooltip),H(1),z("ngSwitchCase",n.udsGuiFieldType.TEXT),H(1),z("ngSwitchCase",n.udsGuiFieldType.TEXT_AUTOCOMPLETE),H(1),z("ngSwitchCase",n.udsGuiFieldType.TEXTBOX),H(1),z("ngSwitchCase",n.udsGuiFieldType.NUMERIC),H(1),z("ngSwitchCase",n.udsGuiFieldType.PASSWORD),H(1),z("ngSwitchCase",n.udsGuiFieldType.HIDDEN),H(1),z("ngSwitchCase",n.udsGuiFieldType.CHOICE),H(1),z("ngSwitchCase",n.udsGuiFieldType.MULTI_CHOICE),H(1),z("ngSwitchCase",n.udsGuiFieldType.EDITLIST),H(1),z("ngSwitchCase",n.udsGuiFieldType.CHECKBOX),H(1),z("ngSwitchCase",n.udsGuiFieldType.IMAGECHOICE),H(1),z("ngSwitchCase",n.udsGuiFieldType.DATE),H(1),z("ngSwitchCase",n.udsGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]}),e}();function Yre(e,a){1&e&&Z(0),2&e&&Ve(" ",J().$implicit," ")}function qre(e,a){if(1&e){var t=De();A(0,"uds-field",7),ne("changed",function(c){return pe(t),J(3).changed.emit(c)}),E()}2&e&&z("field",a.$implicit)}function Xre(e,a){if(1&e&&(A(0,"mat-tab"),re(1,Yre,1,1,"ng-template",4),A(2,"div",5),re(3,qre,1,1,"uds-field",6),E(),E()),2&e){var t=a.$implicit,n=J(2);H(3),z("ngForOf",n.fieldsByTab[t])}}function Zre(e,a){if(1&e&&(A(0,"mat-tab-group",2),re(1,Xre,4,1,"mat-tab",3),E()),2&e){var t=J();z("disableRipple",!0)("@.disabled",!0),H(1),z("ngForOf",t.tabs)}}function Kre(e,a){if(1&e){var t=De();A(0,"div"),A(1,"uds-field",7),ne("changed",function(c){return pe(t),J(2).changed.emit(c)}),E(),E()}if(2&e){var n=a.$implicit;H(1),z("field",n)}}function $re(e,a){1&e&&re(0,Kre,2,1,"div",3),2&e&&z("ngForOf",J().fields)}var Qre=django.gettext("Main"),Jre=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){var a=this;this.tabs=new Array,this.fieldsByTab={},this.fields.forEach(function(t){var n=void 0===t.gui.tab?Qre:t.gui.tab;a.tabs.includes(n)||(a.tabs.push(n),a.fieldsByTab[n]=new Array),a.fieldsByTab[n].push(t)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[[3,"disableRipple",4,"ngIf","ngIfElse"],["onlyone",""],[3,"disableRipple"],[4,"ngFor","ngForOf"],["mat-tab-label",""],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"field","changed"]],template:function(t,n){if(1&t&&(re(0,Zre,2,3,"mat-tab-group",0),re(1,$re,1,1,"ng-template",null,1,ml)),2&t){var l=Pn(2);z("ngIf",n.tabs.length>1)("ngIfElse",l)}},directives:[Kt,Nc,er,Ru,Fc,gJ],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap} .mat-form-field-wrapper{padding-bottom:1em} .mat-tab-label{height:32px!important}"]}),e}();function eie(e,a){if(1&e){var t=De();A(0,"button",10),ne("click",function(){return pe(t),J().customButtonClicked()}),Z(1),E()}if(2&e){var n=J();H(1),On(n.data.customButton)}}var $S,tie=function(){function e(a,t){this.dialogRef=a,this.data=t,this.onEvent=new ye(!0),this.saving=!1}return e.prototype.ngOnInit=function(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})},e.prototype.changed=function(a){this.onEvent.emit({type:"changed",data:a,dialog:this.dialogRef})},e.prototype.getFields=function(){var a={},t=[];return this.data.guiFields.forEach(function(n){var l=void 0!==n.values?n.values:n.value;if(n.gui.required&&0!==l&&(!l||l instanceof Array&&0===l.length)&&t.push(n.gui.label),"number"==typeof l){var c=parseInt((n.gui.minValue||987654321).toString(),10),h=parseInt((n.gui.maxValue||987654321).toString(),10);987654321!==c&&l= "+n.gui.minValue),987654321!==h&&l>h&&t.push(n.gui.label+" <= "+n.gui.maxValue),l=l.toString()}a[n.name]=l}),{data:a,errors:t}},e.prototype.save=function(){var a=this.getFields();a.errors.length>0?this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+a.errors.join(", ")):this.onEvent.emit({data:a.data,type:"save",dialog:this.dialogRef})},e.prototype.customButtonClicked=function(){var a=this.getFields();this.onEvent.emit({data:a.data,type:this.data.customButton,errors:a.errors,dialog:this.dialogRef})},e.\u0275fac=function(t){return new(t||e)(N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["mat-dialog-title","",3,"innerHtml"],["vc",""],["autocomplete","off"],[3,"fields","changed"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","","color","primary",3,"disabled","click"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(t,n){1&t&&(me(0,"h4",0),Uf(1,"safeHtml"),A(2,"mat-dialog-content",null,1),A(4,"form",2),A(5,"uds-form",3),ne("changed",function(c){return n.changed(c)}),E(),E(),E(),A(6,"mat-dialog-actions"),A(7,"div",4),A(8,"div",5),re(9,eie,2,1,"button",6),E(),A(10,"div",7),A(11,"button",8),ne("click",function(){return n.dialogRef.close()}),A(12,"uds-translate"),Z(13,"Discard & close"),E(),E(),A(14,"button",9),ne("click",function(){return n.save()}),A(15,"uds-translate"),Z(16,"Save"),E(),E(),E(),E(),E()),2&t&&(z("innerHtml",Gf(1,5,n.data.title),Si),H(5),z("fields",n.data.guiFields),H(4),z("ngIf",void 0!==n.data.customButton),H(2),z("disabled",n.saving),H(3),z("disabled",n.saving))},directives:[Yr,Fr,Eq,Nr,Lc,Jre,Qr,Kt,Rn,Hn,Ts],pipes:[b5],styles:["h4[_ngcontent-%COMP%]{margin-bottom:0}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%} uds-field{flex:1 100%}button.custom[_ngcontent-%COMP%]{background-color:#4682b4;color:#fff}"]}),e}(),nie=function(){function e(a){this.gui=a}return e.prototype.modalForm=function(a,t,n,l){void 0===n&&(n=null),t.sort(function(C,k){return C.gui.order>k.gui.order?1:-1});var c=null!=n;n=c?n:{},t.forEach(function(C){(!1===c||void 0===C.gui.rdonly)&&(C.gui.rdonly=!1),C.gui.type===Pl.TEXT&&C.gui.multiline&&(C.gui.type=Pl.TEXTBOX);var k=n[C.name];void 0!==k&&(k instanceof Array?(C.values=new Array,k.forEach(function(D){return C.values.push(D)})):C.value=k)});var h=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(tie,{position:{top:"64px"},width:h,data:{title:a,guiFields:t,customButton:l,gui:this.gui},disableClose:!0}).componentInstance.onEvent},e.prototype.typedForm=function(a,t,n,l,c,h,_){var C=this;_=_||{};var k=new ye,D=n?django.gettext("Test"):void 0,I={},L={},G=function(Y){L.hasOwnProperty(Y.name)&&""!==Y.value&&void 0!==Y.value&&C.executeCallback(a,Y,I)};return _.snack||(_.snack=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),a.table.rest.gui(h).subscribe(function(Y){_.snack.dismiss(),void 0!==l&&l.forEach(function(Q){Y.push(Q)}),Y.forEach(function(Q){I[Q.name]=Q,void 0!==Q.gui.fills&&(L[Q.name]=Q.gui.fills)}),C.modalForm(t,Y,c,D).subscribe(function(Q){switch(Q.data&&(Q.data.data_type=h),Q.type){case D:if(Q.errors.length>0)return void C.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+Q.errors.join(", "));C.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),a.table.rest.test(h,Q.data).subscribe(function(Ce){"ok"!==Ce?C.gui.snackbar.open(django.gettext("Test failed:")+" "+Ce,django.gettext("dismiss")):C.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(null===Q.data)for(var ie=0,fe=Y;ie"+l.join(", ")+"";this.gui.yesno(t,h,!0).subscribe(function(_){if(_){var C=c.length,k=function(){n.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()};c.forEach(function(D){a.table.rest.delete(D).subscribe(function(I){0==--C&&k()},function(I){0==--C&&k()})})}})},e.prototype.executeCallback=function(a,t,n,l){var c=this;void 0===l&&(l={});var h=new Array;t.gui.fills.parameters.forEach(function(_){h.push(_+"="+encodeURIComponent(n[_].value))}),a.table.rest.callback(t.gui.fills.callbackName,h.join("&")).subscribe(function(_){var C=new Array;_.forEach(function(k){var D=n[k.name];void 0!==D&&(void 0!==D.gui.fills&&C.push(D),D.gui.values.length=0,k.values.forEach(function(I){return D.gui.values.push(I)}),D.value||(D.value=k.values.length>0?k.values[0].id:""))}),C.forEach(function(k){void 0===l[k.name]&&(l[k.name]=!0,c.executeCallback(a,k,n,l))})})},e}(),iie=function(){function e(a,t){this.dialog=a,this.snackbar=t,this.forms=new nie(this)}return e.prototype.alert=function(a,t,n,l){void 0===n&&(n=0);var c=l||(window.innerWidth<800?"80%":"40%");return this.dialog.open(k5,{width:c,data:{title:a,body:t,autoclose:n,type:Ou.alert},disableClose:!0}).componentInstance.yesno},e.prototype.yesno=function(a,t,n){void 0===n&&(n=!1);var l=window.innerWidth<800?"80%":"40%";return this.dialog.open(k5,{width:l,data:{title:a,body:t,type:Ou.yesno,warnOnYes:n},disableClose:!0}).componentInstance.yesno},e.prototype.icon=function(a,t){return void 0===t&&(t="24px"),''},e}(),Ea=function(e){return e.NUMERIC="numeric",e.ALPHANUMERIC="alphanumeric",e.DATETIME="datetime",e.DATETIMESEC="datetimesec",e.DATE="date",e.TIME="time",e.ICON="iconType",e.CALLBACK="callback",e.DICTIONARY="dict",e.IMAGE="image",e}({}),Jr=function(e){return e[e.ALWAYS=0]="ALWAYS",e[e.SINGLE_SELECT=1]="SINGLE_SELECT",e[e.MULTI_SELECT=2]="MULTI_SELECT",e[e.ONLY_MENU=3]="ONLY_MENU",e[e.ACCELERATOR=4]="ACCELERATOR",e}({}),_J="provider",yJ="service",Nq="pool",Vq="user",CJ="transport",wJ="osmanager",Bq="calendar",SJ="poolgroup",oie={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),user:django.gettext("user"),group:django.gettext("group"),transport:django.gettext("transport"),osmanager:django.gettext("OS manager"),calendar:django.gettext("calendar"),poolgroup:django.gettext("pool group")},Il=function(){function e(a){this.router=a}return e.getGotoButton=function(a,t,n){return{id:a,html:'link'+django.gettext("Go to")+" "+oie[a]+"",type:Jr.ACCELERATOR,acceleratorProperties:[t,n]}},e.prototype.gotoProvider=function(a){this.router.navigate(void 0!==a?["providers",a]:["providers"])},e.prototype.gotoService=function(a,t){this.router.navigate(void 0!==t?["providers",a,"detail",t]:["providers",a,"detail"])},e.prototype.gotoServicePool=function(a){this.router.navigate(["pools","service-pools",a])},e.prototype.gotoServicePoolDetail=function(a){this.router.navigate(["pools","service-pools",a,"detail"])},e.prototype.gotoMetapool=function(a){this.router.navigate(["pools","meta-pools",a])},e.prototype.gotoMetapoolDetail=function(a){this.router.navigate(["pools","meta-pools",a,"detail"])},e.prototype.gotoCalendar=function(a){this.router.navigate(["pools","calendars",a])},e.prototype.gotoCalendarDetail=function(a){this.router.navigate(["pools","calendars",a,"detail"])},e.prototype.gotoAccount=function(a){this.router.navigate(["pools","accounts",a])},e.prototype.gotoAccountDetail=function(a){this.router.navigate(["pools","accounts",a,"detail"])},e.prototype.gotoPoolGroup=function(a){this.router.navigate(["pools","pool-groups",a=a||""])},e.prototype.gotoAuthenticator=function(a){this.router.navigate(["authenticators",a])},e.prototype.gotoAuthenticatorDetail=function(a){this.router.navigate(["authenticators",a,"detail"])},e.prototype.gotoUser=function(a,t){this.router.navigate(["authenticators",a,"detail","users",t])},e.prototype.gotoGroup=function(a,t){this.router.navigate(["authenticators",a,"detail","groups",t])},e.prototype.gotoTransport=function(a){this.router.navigate(["transports",a])},e.prototype.gotoOSManager=function(a){this.router.navigate(["osmanagers",a])},e.prototype.goto=function(a,t,n){var l=function(c){var h=t;if(n[c].split(".").forEach(function(_){return h=h[_]}),!h)throw new Error("not going :)");return h};try{switch(a){case _J:this.gotoProvider(l(0));break;case yJ:this.gotoService(l(0),l(1));break;case Nq:this.gotoServicePool(l(0));break;case"authenticator":this.gotoAuthenticator(l(0));break;case Vq:this.gotoUser(l(0),l(1));break;case"group":this.gotoGroup(l(0),l(1));break;case CJ:this.gotoTransport(l(0));break;case wJ:this.gotoOSManager(l(0));break;case Bq:this.gotoCalendar(l(0));break;case SJ:this.gotoPoolGroup(l(0))}}catch(c){}},e}(),kJ=new Set,MJ=function(){var e=function(){function a(t){F(this,a),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):lie}return W(a,[{key:"matchMedia",value:function(n){return this._platform.WEBKIT&&function(e){if(!kJ.has(e))try{$S||(($S=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild($S)),$S.sheet&&($S.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),kJ.add(e))}catch(a){console.error(a)}}(n),this._matchMedia(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en))},e.\u0275prov=We({factory:function(){return new e(ce(en))},token:e,providedIn:"root"}),e}();function lie(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var Hq=function(){var e=function(){function a(t,n){F(this,a),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new qe}return W(a,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(n){var l=this;return xJ(Sg(n)).some(function(h){return l._registerQuery(h).mql.matches})}},{key:"observe",value:function(n){var l=this,_=Ry(xJ(Sg(n)).map(function(C){return l._registerQuery(C).observable}));return(_=d1(_.pipe(or(1)),_.pipe(L9(1),mE(0)))).pipe(He(function(C){var k={matches:!1,breakpoints:{}};return C.forEach(function(D){var I=D.matches,L=D.query;k.matches=k.matches||I,k.breakpoints[L]=I}),k}))}},{key:"_registerQuery",value:function(n){var l=this;if(this._queries.has(n))return this._queries.get(n);var c=this._mediaMatcher.matchMedia(n),_={observable:new gn(function(C){var k=function(I){return l._zone.run(function(){return C.next(I)})};return c.addListener(k),function(){c.removeListener(k)}}).pipe($r(c),He(function(C){return{query:n,matches:C.matches}}),zt(this._destroySubject)),mql:c};return this._queries.set(n,_),_}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(MJ),ce(ft))},e.\u0275prov=We({factory:function(){return new e(ce(MJ),ce(ft))},token:e,providedIn:"root"}),e}();function xJ(e){return e.map(function(a){return a.split(",")}).reduce(function(a,t){return a.concat(t)}).map(function(a){return a.trim()})}function uie(e,a){if(1&e){var t=De();A(0,"div",1),A(1,"button",2),ne("click",function(){return pe(t),J().action()}),Z(2),E(),E()}if(2&e){var n=J();H(2),On(n.data.action)}}function cie(e,a){}var DJ=new Ee("MatSnackBarData"),N5=function e(){F(this,e),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},fie=Math.pow(2,31)-1,zq=function(){function e(a,t){var n=this;F(this,e),this._overlayRef=t,this._afterDismissed=new qe,this._afterOpened=new qe,this._onAction=new qe,this._dismissedByAction=!1,this.containerInstance=a,this.onAction().subscribe(function(){return n.dismiss()}),a._onExit.subscribe(function(){return n._finishDismiss()})}return W(e,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var n=this;this._durationTimeoutId=setTimeout(function(){return n.dismiss()},Math.min(t,fie))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),e}(),die=function(){var e=function(){function a(t,n){F(this,a),this.snackBarRef=t,this.data=n}return W(a,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(zq),N(DJ))},e.\u0275cmp=Se({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,n){1&t&&(A(0,"span"),Z(1),E(),re(2,uie,3,1,"div",0)),2&t&&(H(1),On(n.data.message),H(1),z("ngIf",n.hasAction))},directives:[Kt,Rn],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),e}(),hie={snackBarState:Ei("state",[Bn("void, hidden",gt({transform:"scale(0.8)",opacity:0})),Bn("visible",gt({transform:"scale(1)",opacity:1})),zn("* => visible",Tn("150ms cubic-bezier(0, 0, 0.2, 1)")),zn("* => void, * => hidden",Tn("75ms cubic-bezier(0.4, 0.0, 1, 1)",gt({opacity:0})))])},pie=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C){var k;return F(this,n),(k=t.call(this))._ngZone=l,k._elementRef=c,k._changeDetectorRef=h,k._platform=_,k.snackBarConfig=C,k._announceDelay=150,k._destroyed=!1,k._onAnnounce=new qe,k._onExit=new qe,k._onEnter=new qe,k._animationState="void",k.attachDomPortal=function(D){return k._assertNotAttached(),k._applySnackBarClasses(),k._portalOutlet.attachDomPortal(D)},k._live="assertive"!==C.politeness||C.announcementMessage?"off"===C.politeness?"off":"polite":"assertive",k._platform.FIREFOX&&("polite"===k._live&&(k._role="status"),"assertive"===k._live&&(k._role="alert")),k}return W(n,[{key:"attachComponentPortal",value:function(c){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(c)}},{key:"attachTemplatePortal",value:function(c){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(c)}},{key:"onAnimationEnd",value:function(c){var _=c.toState;if(("void"===_&&"void"!==c.fromState||"hidden"===_)&&this._completeExit(),"visible"===_){var C=this._onEnter;this._ngZone.run(function(){C.next(),C.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var c=this;this._ngZone.onMicrotaskEmpty.pipe(or(1)).subscribe(function(){c._onExit.next(),c._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var c=this._elementRef.nativeElement,h=this.snackBarConfig.panelClass;h&&(Array.isArray(h)?h.forEach(function(_){return c.classList.add(_)}):c.classList.add(h)),"center"===this.snackBarConfig.horizontalPosition&&c.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&c.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var c=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){c._announceTimeoutId=setTimeout(function(){var h=c._elementRef.nativeElement.querySelector("[aria-hidden]"),_=c._elementRef.nativeElement.querySelector("[aria-live]");if(h&&_){var C=null;c._platform.isBrowser&&document.activeElement instanceof HTMLElement&&h.contains(document.activeElement)&&(C=document.activeElement),h.removeAttribute("aria-hidden"),_.appendChild(h),null==C||C.focus(),c._onAnnounce.next(),c._onAnnounce.complete()}},c._announceDelay)})}}]),n}(Jy);return e.\u0275fac=function(t){return new(t||e)(N(ft),N(Ue),N(Bt),N(en),N(N5))},e.\u0275cmp=Se({type:e,selectors:[["snack-bar-container"]],viewQuery:function(t,n){var l;1&t&&wt(Os,7),2&t&&Ne(l=Le())&&(n._portalOutlet=l.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,n){1&t&&mv("@state.done",function(c){return n.onAnimationEnd(c)}),2&t&&Ba("@state",n._animationState)},features:[Pe],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,n){1&t&&(A(0,"div",0),re(1,cie,0,0,"ng-template",1),E(),me(2,"div")),2&t&&(H(2),Ke("aria-live",n._live)("role",n._role))},directives:[Os],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[hie.snackBarState]}}),e}(),AJ=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[fp,xg,Wa,Rc,$t],$t]}),e}(),EJ=new Ee("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new N5}}),gie=function(){var e=function(){function a(t,n,l,c,h,_){F(this,a),this._overlay=t,this._live=n,this._injector=l,this._breakpointObserver=c,this._parentSnackBar=h,this._defaultConfig=_,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=die,this.snackBarContainerComponent=pie,this.handsetCssClass="mat-snack-bar-handset"}return W(a,[{key:"_openedSnackBarRef",get:function(){var n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}},{key:"openFromComponent",value:function(n,l){return this._attach(n,l)}},{key:"openFromTemplate",value:function(n,l){return this._attach(n,l)}},{key:"open",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2?arguments[2]:void 0,h=Object.assign(Object.assign({},this._defaultConfig),c);return h.data={message:n,action:l},h.announcementMessage===n&&(h.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,h)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(n,l){var h=kn.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:N5,useValue:l}]}),_=new sd(this.snackBarContainerComponent,l.viewContainerRef,h),C=n.attach(_);return C.instance.snackBarConfig=l,C.instance}},{key:"_attach",value:function(n,l){var c=this,h=Object.assign(Object.assign(Object.assign({},new N5),this._defaultConfig),l),_=this._createOverlay(h),C=this._attachSnackBarContainer(_,h),k=new zq(C,_);if(n instanceof Xn){var D=new Ps(n,null,{$implicit:h.data,snackBarRef:k});k.instance=C.attachTemplatePortal(D)}else{var I=this._createInjector(h,k),L=new sd(n,void 0,I),G=C.attachComponentPortal(L);k.instance=G.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(zt(_.detachments())).subscribe(function(Y){var Q=_.overlayElement.classList;Y.matches?Q.add(c.handsetCssClass):Q.remove(c.handsetCssClass)}),h.announcementMessage&&C._onAnnounce.subscribe(function(){c._live.announce(h.announcementMessage,h.politeness)}),this._animateSnackBar(k,h),this._openedSnackBarRef=k,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(n,l){var c=this;n.afterDismissed().subscribe(function(){c._openedSnackBarRef==n&&(c._openedSnackBarRef=null),l.announcementMessage&&c._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),l.duration&&l.duration>0&&n.afterOpened().subscribe(function(){return n._dismissAfter(l.duration)})}},{key:"_createOverlay",value:function(n){var l=new up;l.direction=n.direction;var c=this._overlay.position().global(),h="rtl"===n.direction,_="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!h||"end"===n.horizontalPosition&&h,C=!_&&"center"!==n.horizontalPosition;return _?c.left("0"):C?c.right("0"):c.centerHorizontally(),"top"===n.verticalPosition?c.top("0"):c.bottom("0"),l.positionStrategy=c,this._overlay.create(l)}},{key:"_createInjector",value:function(n,l){return kn.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:zq,useValue:l},{provide:DJ,useValue:n.data}]})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(Ai),ce(iS),ce(kn),ce(Hq),ce(e,12),ce(EJ))},e.\u0275prov=We({factory:function(){return new e(ce(Ai),ce(iS),ce(uv),ce(Hq),ce(e,12),ce(EJ))},token:e,providedIn:AJ}),e}(),PJ="dark-theme",OJ="light-theme",At=function(){function e(a,t,n,l,c,h){this.http=a,this.router=t,this.dialog=n,this.snackbar=l,this.sanitizer=c,this.dateAdapter=h,this.user=new CW(udsData.profile),this.navigation=new Il(this.router),this.gui=new iie(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}return Object.defineProperty(e.prototype,"config",{get:function(){return udsData.config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"csrfField",{get:function(){return csrf.csrfField},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"csrfToken",{get:function(){return csrf.csrfToken},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"notices",{get:function(){return udsData.errors},enumerable:!1,configurable:!0}),e.prototype.restPath=function(a){return this.config.urls.rest+a},e.prototype.staticURL=function(a){return this.config.urls.static+a},e.prototype.logout=function(){window.location.href=this.config.urls.logout},e.prototype.gotoUser=function(){window.location.href=this.config.urls.user},e.prototype.putOnStorage=function(a,t){void 0!==typeof Storage&&sessionStorage.setItem(a,t)},e.prototype.getFromStorage=function(a){return void 0!==typeof Storage?sessionStorage.getItem(a):null},e.prototype.safeString=function(a){return this.sanitizer.bypassSecurityTrustHtml(a)},e.prototype.yesno=function(a){return a?django.gettext("yes"):django.gettext("no")},e.prototype.switchTheme=function(a){var t=document.getElementsByTagName("html")[0];[PJ,OJ].forEach(function(n){t.classList.contains(n)&&t.classList.remove(n)}),t.classList.add(a?PJ:OJ)},e.\u0275prov=We({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ce(dN),ce(Da),ce(Sb),ce(gie),ce(ed),ce(jr))},providedIn:"root"}),e}(),mie=function(){function e(a){this.api=a}return e.prototype.canActivate=function(a,t){return!!this.api.user.isStaff||(window.location.href=this.api.config.urls.user,!1)},e.\u0275prov=We({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ce(At))},providedIn:"root"}),e}(),Uq=function(e,a){return(Uq=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])})(e,a)};function Hi(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function t(){this.constructor=e}Uq(e,a),e.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}function Gq(e,a,t,n){return new(t||(t=Promise))(function(c,h){function _(D){try{k(n.next(D))}catch(I){h(I)}}function C(D){try{k(n.throw(D))}catch(I){h(I)}}function k(D){D.done?c(D.value):function(c){return c instanceof t?c:new t(function(h){h(c)})}(D.value).then(_,C)}k((n=n.apply(e,a||[])).next())})}var QS=function(e){return e[e.NONE=0]="NONE",e[e.READ=32]="READ",e[e.MANAGEMENT=64]="MANAGEMENT",e[e.ALL=96]="ALL",e}({}),oa=function(){function e(a,t,n){this.api=a,void 0===n&&(n={}),void 0===n.base&&(n.base=t);var l=function(c,h){return void 0===c?h:c};this.id=t,this.paths={base:n.base,get:l(n.get,n.base),log:l(n.log,n.base),put:l(n.put,n.base),test:l(n.test,n.base+"/test"),delete:l(n.delete,n.base),types:l(n.types,n.base+"/types"),gui:l(n.gui,n.base+"/gui"),tableInfo:l(n.tableInfo,n.base+"/tableinfo")},this.headers=(new Zh).set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}return e.prototype.get=function(a){return this.doGet(this.getPath(this.paths.get,a))},e.prototype.getLogs=function(a){return this.doGet(this.getPath(this.paths.log,a)+"/log")},e.prototype.overview=function(a){return this.get("overview"+(void 0!==a?"?filter="+a:""))},e.prototype.summary=function(a){return this.get("overview?summarize"+(void 0!==a?"&filter="+a:""))},e.prototype.put=function(a,t){var n=this;return this.api.http.put(this.getPath(this.paths.put,t),a,{headers:this.headers}).pipe(_o(function(l){return n.handleError(l,!0)}))},e.prototype.create=function(a){return this.put(a)},e.prototype.save=function(a,t){return this.put(a,t=void 0!==t?t:a.id)},e.prototype.test=function(a,t){var n=this;return this.api.http.post(this.getPath(this.paths.test,a),t,{headers:this.headers}).pipe(_o(function(l){return n.handleError(l)}))},e.prototype.delete=function(a){var t=this;return this.api.http.delete(this.getPath(this.paths.delete,a),{headers:this.headers}).pipe(_o(function(n){return t.handleError(n)}))},e.prototype.permision=function(){return this.api.user.isAdmin?QS.ALL:QS.NONE},e.prototype.getPermissions=function(a){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+a))},e.prototype.addPermission=function(a,t,n,l){var c=this,h=this.getPath("permissions/"+this.paths.base+"/"+a+"/"+t+"/add/"+n);return this.api.http.put(h,{perm:l},{headers:this.headers}).pipe(_o(function(C){return c.handleError(C)}))},e.prototype.revokePermission=function(a){var t=this,n=this.getPath("permissions/revoke");return this.api.http.put(n,{items:a},{headers:this.headers}).pipe(_o(function(c){return t.handleError(c)}))},e.prototype.types=function(){return this.doGet(this.getPath(this.paths.types))},e.prototype.gui=function(a){var t=this.getPath(this.paths.gui+(void 0!==a?"/"+a:""));return this.doGet(t)},e.prototype.callback=function(a,t){var n=this.getPath("gui/callback/"+a+"?"+t);return this.doGet(n)},e.prototype.tableInfo=function(){return this.doGet(this.getPath(this.paths.tableInfo))},e.prototype.detail=function(a,t){return new bie(this,a,t)},e.prototype.invoke=function(a,t){var n=a;return t&&(n=n+"?"+t),this.get(n)},e.prototype.getPath=function(a,t){return this.api.restPath(a+(void 0!==t?"/"+t:""))},e.prototype.doGet=function(a){var t=this;return this.api.http.get(a,{headers:this.headers}).pipe(_o(function(n){return t.handleError(n)}))},e.prototype.handleError=function(a,t){void 0===t&&(t=!1);var n;return n=a.error instanceof ErrorEvent?a.error.message:t?django.gettext("Error saving: ")+a.error:"Error "+a.status+": "+a.error,this.api.gui.alert(t?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),GA(n)},e}(),bie=function(e){function a(t,n,l,c){var h=e.call(this,t.api,[t.paths.base,n,l].join("/"))||this;return h.parentModel=t,h.parentId=n,h.model=l,h.perm=c,h}return Hi(a,e),a.prototype.permision=function(){return this.perm||QS.ALL},a}(oa),Cie=function(e){function a(t){var n=e.call(this,t,"providers")||this;return n.api=t,n}return Hi(a,e),a.prototype.allServices=function(){return this.get("allservices")},a.prototype.service=function(t){return this.get("service/"+t)},a.prototype.maintenance=function(t){return this.get(t+"/maintenance")},a}(oa),wie=function(e){function a(t){var n=e.call(this,t,"authenticators")||this;return n.api=t,n}return Hi(a,e),a.prototype.search=function(t,n,l,c){return void 0===c&&(c=12),this.get(t+"/search?type="+encodeURIComponent(n)+"&term="+encodeURIComponent(l)+"&limit="+c)},a}(oa),Sie=function(e){function a(t){var n=e.call(this,t,"osmanagers")||this;return n.api=t,n}return Hi(a,e),a}(oa),kie=function(e){function a(t){var n=e.call(this,t,"transports")||this;return n.api=t,n}return Hi(a,e),a}(oa),Mie=function(e){function a(t){var n=e.call(this,t,"networks")||this;return n.api=t,n}return Hi(a,e),a}(oa),xie=function(e){function a(t){var n=e.call(this,t,"servicespools")||this;return n.api=t,n}return Hi(a,e),a.prototype.setFallbackAccess=function(t,n){return this.get(t+"/setFallbackAccess?fallbackAccess="+n)},a.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},a.prototype.actionsList=function(t){return this.get(t+"/actionsList")},a.prototype.listAssignables=function(t){return this.get(t+"/listAssignables")},a.prototype.createFromAssignable=function(t,n,l){return this.get(t+"/createFromAssignable?user_id="+encodeURIComponent(n)+"&assignable_id="+encodeURIComponent(l))},a}(oa),Tie=function(e){function a(t){var n=e.call(this,t,"metapools")||this;return n.api=t,n}return Hi(a,e),a.prototype.setFallbackAccess=function(t,n){return this.get(t+"/setFallbackAccess?fallbackAccess="+n)},a.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},a}(oa),Die=function(e){function a(t){var n=e.call(this,t,"config")||this;return n.api=t,n}return Hi(a,e),a}(oa),Aie=function(e){function a(t){var n=e.call(this,t,"gallery/images")||this;return n.api=t,n}return Hi(a,e),a}(oa),Eie=function(e){function a(t){var n=e.call(this,t,"gallery/servicespoolgroups")||this;return n.api=t,n}return Hi(a,e),a}(oa),Pie=function(e){function a(t){var n=e.call(this,t,"system")||this;return n.api=t,n}return Hi(a,e),a.prototype.information=function(){return this.get("overview")},a.prototype.stats=function(t,n){var l="stats/"+t;return n&&(l+="/"+n),this.get(l)},a.prototype.flushCache=function(){return this.doGet(this.getPath("cache","flush"))},a}(oa),Oie=function(e){function a(t){var n=e.call(this,t,"reports")||this;return n.api=t,n}return Hi(a,e),a.prototype.types=function(){return ut([])},a}(oa),Iie=function(e){function a(t){var n=e.call(this,t,"calendars")||this;return n.api=t,n}return Hi(a,e),a}(oa),Rie=function(e){function a(t){var n=e.call(this,t,"accounts")||this;return n.api=t,n}return Hi(a,e),a.prototype.timemark=function(t){return this.get(t+"/timemark")},a}(oa),Lie=function(e){function a(t){var n=e.call(this,t,"proxies")||this;return n.api=t,n}return Hi(a,e),a}(oa),Fie=function(e){function a(t){var n=e.call(this,t,"actortokens")||this;return n.api=t,n}return Hi(a,e),a}(oa),Nie=function(e){function a(t){var n=e.call(this,t,"tunneltokens")||this;return n.api=t,n}return Hi(a,e),a}(oa),Vie=function(e){function a(t){var n=e.call(this,t,"mfa")||this;return n.api=t,n}return Hi(a,e),a}(oa),tn=function(){function e(a){this.api=a,this.providers=new Cie(a),this.authenticators=new wie(a),this.mfas=new Vie(a),this.osManagers=new Sie(a),this.transports=new kie(a),this.networks=new Mie(a),this.servicesPools=new xie(a),this.metaPools=new Tie(a),this.gallery=new Aie(a),this.servicesPoolGroups=new Eie(a),this.calendars=new Iie(a),this.accounts=new Rie(a),this.proxy=new Lie(a),this.system=new Pie(a),this.configuration=new Die(a),this.actorToken=new Fie(a),this.tunnelToken=new Nie(a),this.reports=new Oie(a)}return e.\u0275prov=We({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ce(At))},providedIn:"root"}),e}(),FJ=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],NJ=[django.gettext("January"),django.gettext("February"),django.gettext("March"),django.gettext("April"),django.gettext("May"),django.gettext("June"),django.gettext("July"),django.gettext("August"),django.gettext("September"),django.gettext("October"),django.gettext("November"),django.gettext("December")],VJ=function(e){var a=[];return e.forEach(function(t){a.push(t.substr(0,3))}),a},JS=function(e,a,t){return bp(e,a,t)},bp=function(e,a,t,n){n=n||{},a=a||new Date,(t=t||Gie).formats=t.formats||{};var l=a.getTime();return(n.utc||"number"==typeof n.timezone)&&(a=Bie(a)),"number"==typeof n.timezone&&(a=new Date(a.getTime()+6e4*n.timezone)),e.replace(/%([-_0]?.)/g,function(c,h){var _,C,k,D,I,L,G,Y;if(k=null,I=null,2===h.length){if("-"===(k=h[0]))I="";else if("_"===k)I=" ";else{if("0"!==k)return c;I="0"}h=h[1]}switch(h){case"A":return t.days[a.getDay()];case"a":return t.shortDays[a.getDay()];case"B":return t.months[a.getMonth()];case"b":return t.shortMonths[a.getMonth()];case"C":return Xo(Math.floor(a.getFullYear()/100),I);case"D":return bp(t.formats.D||"%m/%d/%y",a,t);case"d":return Xo(a.getDate(),I);case"e":return a.getDate();case"F":return bp(t.formats.F||"%Y-%m-%d",a,t);case"H":return Xo(a.getHours(),I);case"h":return t.shortMonths[a.getMonth()];case"I":return Xo(BJ(a),I);case"j":return G=new Date(a.getFullYear(),0,1),_=Math.ceil((a.getTime()-G.getTime())/864e5),Xo(_,3);case"k":return Xo(a.getHours(),void 0===I?" ":I);case"L":return Xo(Math.floor(l%1e3),3);case"l":return Xo(BJ(a),void 0===I?" ":I);case"M":return Xo(a.getMinutes(),I);case"m":return Xo(a.getMonth()+1,I);case"n":return"\n";case"o":return String(a.getDate())+Hie(a.getDate());case"P":case"p":return"";case"R":return bp(t.formats.R||"%H:%M",a,t);case"r":return bp(t.formats.r||"%I:%M:%S %p",a,t);case"S":return Xo(a.getSeconds(),I);case"s":return Math.floor(l/1e3);case"T":return bp(t.formats.T||"%H:%M:%S",a,t);case"t":return"\t";case"U":return Xo(HJ(a,"sunday"),I);case"u":return 0===(C=a.getDay())?7:C;case"v":return bp(t.formats.v||"%e-%b-%Y",a,t);case"W":return Xo(HJ(a,"monday"),I);case"w":return a.getDay();case"Y":return a.getFullYear();case"y":return(Y=String(a.getFullYear())).slice(Y.length-2);case"Z":return n.utc?"GMT":(L=a.toString().match(/\((\w+)\)/))&&L[1]||"";case"z":return n.utc?"+0000":((D="number"==typeof n.timezone?n.timezone:-a.getTimezoneOffset())<0?"-":"+")+Xo(Math.abs(D/60))+Xo(D%60);default:return h}})},Bie=function(e){var a=6e4*(e.getTimezoneOffset()||0);return new Date(e.getTime()+a)},Xo=function(e,a,t){"number"==typeof a&&(t=a,a="0"),a=null==a?"0":a,t=null==t?2:t;var n=String(e);if(a)for(;n.length12&&(a-=12),a},Hie=function(e){var a=e%10,t=e%100;if(t>=11&&t<=13||0===a||a>=4)return"th";switch(a){case 1:return"st";case 2:return"nd";case 3:return"rd"}},HJ=function(e,a){a=a||"sunday";var t=e.getDay();"monday"===a&&(0===t?t=6:t--);var n=new Date(e.getFullYear(),0,1),l=Math.floor((e.getTime()-n.getTime())/864e5);return Math.floor((l+7-t)/7)},zJ=function(e){return e.replace(/./g,function(a){switch(a){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+a;case"c":return"%FT%TZ";case"D":return"%a";case"e":return"%z";case"f":return"%I:%M";case"F":return"%F";case"h":case"g":return"%I";case"H":case"G":return"%H";case"i":return"%M";case"I":return"";case"j":return"%d";case"l":return"%A";case"L":return"";case"M":return"%b";case"n":return"%m";case"N":return"%b";case"o":return"%W";case"O":return"%z";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"S":case"t":return"";case"T":return"%Z";case"u":return"0";case"U":return"";case"z":return"%j";case"Z":return"z";default:return a}})},Lu=function(e,a,t){var n;if(void 0===t&&(t=null),"None"===a||null==a)a=7226578800,n=django.gettext("Never");else{var l=django.get_format(e);t&&(l+=t),n=JS(zJ(l),new Date(1e3*a))}return n},jq=function(e){return"yes"===e||!0===e||"true"===e||1===e},Gie={days:FJ,shortDays:VJ(FJ),months:NJ,shortMonths:VJ(NJ),AM:"AM",PM:"PM",am:"am",pm:"pm"},jie=Dt(79052),ek=Dt.n(jie),UJ=function(){if("undefined"!=typeof Map)return Map;function e(a,t){var n=-1;return a.some(function(l,c){return l[0]===t&&(n=c,!0)}),n}return function(){function a(){this.__entries__=[]}return Object.defineProperty(a.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),a.prototype.get=function(t){var n=e(this.__entries__,t),l=this.__entries__[n];return l&&l[1]},a.prototype.set=function(t,n){var l=e(this.__entries__,t);~l?this.__entries__[l][1]=n:this.__entries__.push([t,n])},a.prototype.delete=function(t){var n=this.__entries__,l=e(n,t);~l&&n.splice(l,1)},a.prototype.has=function(t){return!!~e(this.__entries__,t)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(t,n){void 0===n&&(n=null);for(var l=0,c=this.__entries__;l0},e.prototype.connect_=function(){!Wq||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Kie?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Wq||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(a){var t=a.propertyName,n=void 0===t?"":t;Zie.some(function(c){return!!~n.indexOf(c)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),GJ=function(a,t){for(var n=0,l=Object.keys(t);n0},e}(),YJ="undefined"!=typeof WeakMap?new WeakMap:new UJ,qJ=function e(a){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=$ie.getInstance(),n=new sae(a,t,this);YJ.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){qJ.prototype[e]=function(){var a;return(a=YJ.get(this))[e].apply(a,arguments)}});var uae=void 0!==B5.ResizeObserver?B5.ResizeObserver:qJ,cae=function(){function e(a){F(this,e),this.changes=a}return W(e,[{key:"notEmpty",value:function(t){if(this.changes[t]){var n=this.changes[t].currentValue;if(null!=n)return ut(n)}return Ar}},{key:"has",value:function(t){return this.changes[t]?ut(this.changes[t].currentValue):Ar}},{key:"notFirst",value:function(t){return this.changes[t]&&!this.changes[t].isFirstChange()?ut(this.changes[t].currentValue):Ar}},{key:"notFirstAndEmpty",value:function(t){if(this.changes[t]&&!this.changes[t].isFirstChange()){var n=this.changes[t].currentValue;if(null!=n)return ut(n)}return Ar}}],[{key:"of",value:function(t){return new e(t)}}]),e}(),XJ=new Ee("NGX_ECHARTS_CONFIG"),ZJ=function(){var e=function(){function a(t,n,l){F(this,a),this.el=n,this.ngZone=l,this.autoResize=!0,this.loadingType="default",this.chartInit=new ye,this.optionsError=new ye,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.echarts=t.echarts}return W(a,[{key:"ngOnChanges",value:function(n){var l=this,c=cae.of(n);c.notFirstAndEmpty("options").subscribe(function(h){return l.onOptionsChange(h)}),c.notFirstAndEmpty("merge").subscribe(function(h){return l.setOption(h)}),c.has("loading").subscribe(function(h){return l.toggleLoading(!!h)}),c.notFirst("theme").subscribe(function(){return l.refreshChart()})}},{key:"ngOnInit",value:function(){var n=this;this.autoResize&&(this.resizeSub=new uae(function(){n.animationFrameID=window.requestAnimationFrame(function(){return n.resize()})}),this.resizeSub.observe(this.el.nativeElement))}},{key:"ngOnDestroy",value:function(){this.resizeSub&&(this.resizeSub.unobserve(this.el.nativeElement),window.cancelAnimationFrame(this.animationFrameID)),this.dispose()}},{key:"ngAfterViewInit",value:function(){var n=this;setTimeout(function(){return n.initChart()})}},{key:"dispose",value:function(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}},{key:"resize",value:function(){this.chart&&this.chart.resize()}},{key:"toggleLoading",value:function(n){this.chart&&(n?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}},{key:"setOption",value:function(n,l){if(this.chart)try{this.chart.setOption(n,l)}catch(c){console.error(c),this.optionsError.emit(c)}}},{key:"refreshChart",value:function(){return Gq(this,void 0,void 0,ek().mark(function n(){return ek().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return this.dispose(),c.next=3,this.initChart();case 3:case"end":return c.stop()}},n,this)}))}},{key:"createChart",value:function(){var n=this,l=this.el.nativeElement;if(window&&window.getComputedStyle){var c=window.getComputedStyle(l,null).getPropertyValue("height");(!c||"0px"===c)&&(!l.style.height||"0px"===l.style.height)&&(l.style.height="400px")}return this.ngZone.runOutsideAngular(function(){return("function"==typeof n.echarts?n.echarts:function(){return Promise.resolve(n.echarts)})().then(function(_){return(0,_.init)(l,n.theme,n.initOpts)})})}},{key:"initChart",value:function(){return Gq(this,void 0,void 0,ek().mark(function n(){return ek().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.onOptionsChange(this.options);case 2:this.merge&&this.chart&&this.setOption(this.merge);case 3:case"end":return c.stop()}},n,this)}))}},{key:"onOptionsChange",value:function(n){return Gq(this,void 0,void 0,ek().mark(function l(){return ek().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(n){h.next=2;break}return h.abrupt("return");case 2:if(!this.chart){h.next=6;break}this.setOption(this.options,!0),h.next=11;break;case 6:return h.next=8,this.createChart();case 8:this.chart=h.sent,this.chartInit.emit(this.chart),this.setOption(this.options,!0);case 11:case"end":return h.stop()}},l,this)}))}},{key:"createLazyEvent",value:function(n){var l=this;return this.chartInit.pipe(Ta(function(c){return new gn(function(h){return c.on(n,function(_){return l.ngZone.run(function(){return h.next(_)})}),function(){l.chart&&(l.chart.isDisposed()||c.off(n))}})}))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(XJ),N(Ue),N(ft))},e.\u0275dir=ve({type:e,selectors:[["echarts"],["","echarts",""]],inputs:{autoResize:"autoResize",loadingType:"loadingType",options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartPieSelectChanged:"chartPieSelectChanged",chartPieSelected:"chartPieSelected",chartPieUnselected:"chartPieUnselected",chartMapSelectChanged:"chartMapSelectChanged",chartMapSelected:"chartMapSelected",chartMapUnselected:"chartMapUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartFocusNodeAdjacency:"chartFocusNodeAdjacency",chartUnfocusNodeAdjacency:"chartUnfocusNodeAdjacency",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[on]}),e}(),fae=function(){var e=function(){function a(){F(this,a)}return W(a,null,[{key:"forRoot",value:function(n){return{ngModule:a,providers:[{provide:XJ,useValue:n}]}}},{key:"forChild",value:function(){return{ngModule:a}}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[]]}),e}();function dae(e,a){if(1&e&&(A(0,"div",21),A(1,"div",11),me(2,"img",3),A(3,"div",12),Z(4),E(),E(),A(5,"div",13),A(6,"a",15),A(7,"uds-translate"),Z(8,"View service pools"),E(),E(),E(),E()),2&e){var t=J(2);H(2),z("src",t.api.staticURL("admin/img/icons/logs.png"),Lt),H(2),Ve(" ",t.data.restrained," ")}}function hae(e,a){if(1&e){var t=De();A(0,"div"),A(1,"div",8),A(2,"div",9),A(3,"div",10),A(4,"div",11),me(5,"img",3),A(6,"div",12),Z(7),E(),E(),A(8,"div",13),A(9,"a",14),A(10,"uds-translate"),Z(11,"View authenticators"),E(),E(),E(),E(),A(12,"div",10),A(13,"div",11),me(14,"img",3),A(15,"div",12),Z(16),E(),E(),A(17,"div",13),A(18,"a",15),A(19,"uds-translate"),Z(20,"View service pools"),E(),E(),E(),E(),A(21,"div",10),A(22,"div",11),me(23,"img",3),A(24,"div",12),Z(25),E(),E(),A(26,"div",13),A(27,"a",15),A(28,"uds-translate"),Z(29,"View service pools"),E(),E(),E(),E(),re(30,dae,9,2,"div",16),E(),A(31,"div",17),A(32,"div",18),A(33,"div",19),A(34,"uds-translate"),Z(35,"Assigned services chart"),E(),E(),A(36,"div",20),ne("chartInit",function(c){return pe(t),J().chartInit("assigned",c)}),E(),E(),A(37,"div",18),A(38,"div",19),A(39,"uds-translate"),Z(40,"In use services chart"),E(),E(),A(41,"div",20),ne("chartInit",function(c){return pe(t),J().chartInit("inuse",c)}),E(),E(),E(),E(),E()}if(2&e){var n=J();H(5),z("src",n.api.staticURL("admin/img/icons/authenticators.png"),Lt),H(2),Ve(" ",n.data.users," "),H(7),z("src",n.api.staticURL("admin/img/icons/pools.png"),Lt),H(2),Ve(" ",n.data.pools," "),H(7),z("src",n.api.staticURL("admin/img/icons/services.png"),Lt),H(2),Ve(" ",n.data.user_services," "),H(5),z("ngIf",n.data.restrained),H(6),z("options",n.assignedChartOpts),H(5),z("options",n.inuseChartOpts)}}function pae(e,a){1&e&&(A(0,"div",22),A(1,"div",23),A(2,"div",24),A(3,"uds-translate"),Z(4,"UDS Administration"),E(),E(),A(5,"div",25),A(6,"p"),A(7,"uds-translate"),Z(8,"You are accessing UDS Administration as staff member."),E(),E(),A(9,"p"),A(10,"uds-translate"),Z(11,"This means that you have restricted access to elements."),E(),E(),A(12,"p"),A(13,"uds-translate"),Z(14,"In order to increase your access privileges, please contact your local UDS administrator. "),E(),E(),me(15,"br"),A(16,"p"),A(17,"uds-translate"),Z(18,"Thank you."),E(),E(),E(),E(),E())}var vae=function(){function e(a,t){this.api=a,this.rest=t,this.data={},this.assignedChartInstance=null,this.assignedChartOpts={},this.inuseChartOpts={},this.inuseChartInstance=null}return e.prototype.onResize=function(a){this.assignedChartInstance&&this.assignedChartInstance.resize(),this.inuseChartInstance&&this.inuseChartInstance.resize()},e.prototype.ngOnInit=function(){var a=this;if(this.api.user.isAdmin){this.rest.system.information().subscribe(function(_){a.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",_.users).replace("#GRP_NUMBER#",_.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",_.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",_.user_services)},_.restrained_services_pools>0&&(a.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",_.restrained_services_pools))});for(var t=function(_){n.rest.system.stats(_).subscribe(function(C){var k={tooltip:{trigger:"axis"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:C.map(function(D){return Lu("SHORT_DATE_FORMAT",new Date(D.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:"assigned"===_?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{},data:C.map(function(D){return D.value})}]};"assigned"===_?a.assignedChartOpts=k:a.inuseChartOpts=k})},n=this,l=0,c=["assigned","inuse"];l enter",[gt({opacity:0,transform:"translateY(-5px)"}),Tn("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},nk=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e}),e}(),$J=new Ee("MatHint"),Br=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["mat-label"]]}),e}(),Fae=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["mat-placeholder"]]}),e}(),QJ=new Ee("MatPrefix"),JJ=new Ee("MatSuffix"),rk=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["","matSuffix",""]],features:[Xe([{provide:JJ,useExisting:e}])]}),e}(),eee=0,Vae=Eu(function(){return function e(a){F(this,e),this._elementRef=a}}(),"primary"),nee=new Ee("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ik=new Ee("MatFormField"),yr=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I){var L;return F(this,n),(L=t.call(this,l))._changeDetectorRef=c,L._dir=_,L._defaults=C,L._platform=k,L._ngZone=D,L._outlineGapCalculationNeededImmediately=!1,L._outlineGapCalculationNeededOnStable=!1,L._destroyed=new qe,L._showAlwaysAnimate=!1,L._subscriptAnimationState="",L._hintLabel="",L._hintLabelId="mat-hint-".concat(eee++),L._labelId="mat-form-field-label-".concat(eee++),L.floatLabel=L._getDefaultFloatLabelState(),L._animationsEnabled="NoopAnimations"!==I,L.appearance=C&&C.appearance?C.appearance:"legacy",L._hideRequiredMarker=!(!C||null==C.hideRequiredMarker)&&C.hideRequiredMarker,L}return W(n,[{key:"appearance",get:function(){return this._appearance},set:function(c){var h=this._appearance;this._appearance=c||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&h!==c&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(c){this._hideRequiredMarker=it(c)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(c){this._hintLabel=c,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(c){c!==this._floatLabel&&(this._floatLabel=c||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(c){this._explicitFormFieldControl=c}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var c=this;this._validateControlChild();var h=this._control;h.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(h.controlType)),h.stateChanges.pipe($r(null)).subscribe(function(){c._validatePlaceholders(),c._syncDescribedByIds(),c._changeDetectorRef.markForCheck()}),h.ngControl&&h.ngControl.valueChanges&&h.ngControl.valueChanges.pipe(zt(this._destroyed)).subscribe(function(){return c._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){c._ngZone.onStable.pipe(zt(c._destroyed)).subscribe(function(){c._outlineGapCalculationNeededOnStable&&c.updateOutlineGap()})}),ot(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){c._outlineGapCalculationNeededOnStable=!0,c._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe($r(null)).subscribe(function(){c._processHints(),c._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe($r(null)).subscribe(function(){c._syncDescribedByIds(),c._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(zt(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?c._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return c.updateOutlineGap()})}):c.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(c){var h=this._control?this._control.ngControl:null;return h&&h[c]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var c=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Tl(this._label.nativeElement,"transitionend").pipe(or(1)).subscribe(function(){c._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var c=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&c.push.apply(c,Et(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var h=this._hintChildren?this._hintChildren.find(function(C){return"start"===C.align}):null,_=this._hintChildren?this._hintChildren.find(function(C){return"end"===C.align}):null;h?c.push(h.id):this._hintLabel&&c.push(this._hintLabelId),_&&c.push(_.id)}else this._errorChildren&&c.push.apply(c,Et(this._errorChildren.map(function(C){return C.id})));this._control.setDescribedByIds(c)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var c=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&c&&c.children.length&&c.textContent.trim()&&this._platform.isBrowser){if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);var h=0,_=0,C=this._connectionContainerRef.nativeElement,k=C.querySelectorAll(".mat-form-field-outline-start"),D=C.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var I=C.getBoundingClientRect();if(0===I.width&&0===I.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var L=this._getStartEnd(I),G=c.children,Y=this._getStartEnd(G[0].getBoundingClientRect()),Q=0,ie=0;ie0?.75*Q+10:0}for(var fe=0;fe void",BE("@transformPanel",[QV()],{optional:!0}))]),transformPanel:Ei("transformPanel",[Bn("void",gt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Bn("showing",gt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Bn("showing-multiple",gt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),zn("void => *",Tn("120ms cubic-bezier(0, 0, 0.2, 1)")),zn("* => void",Tn("100ms 25ms linear",gt({opacity:0})))])},iee=0,oee=new Ee("mat-select-scroll-strategy"),$ae=new Ee("MAT_SELECT_CONFIG"),Qae={provide:oee,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Jae=function e(a,t){F(this,e),this.source=a,this.value=t},eoe=El(gp(aa(HS(function(){return function e(a,t,n,l,c){F(this,e),this._elementRef=a,this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=l,this.ngControl=c}}())))),see=new Ee("MatSelectTrigger"),toe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["mat-select-trigger"]],features:[Xe([{provide:see,useExisting:e}])]}),e}(),noe=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I,L,G,Y,Q,ie,fe){var se,be,Ce,je;return F(this,n),(se=t.call(this,C,_,D,I,G))._viewportRuler=l,se._changeDetectorRef=c,se._ngZone=h,se._dir=k,se._parentFormField=L,se._liveAnnouncer=ie,se._defaultOptions=fe,se._panelOpen=!1,se._compareWith=function($e,kt){return $e===kt},se._uid="mat-select-".concat(iee++),se._triggerAriaLabelledBy=null,se._destroy=new qe,se._onChange=function(){},se._onTouched=function(){},se._valueId="mat-select-value-".concat(iee++),se._panelDoneAnimatingStream=new qe,se._overlayPanelClass=(null===(be=se._defaultOptions)||void 0===be?void 0:be.overlayPanelClass)||"",se._focused=!1,se.controlType="mat-select",se._required=!1,se._multiple=!1,se._disableOptionCentering=null!==(je=null===(Ce=se._defaultOptions)||void 0===Ce?void 0:Ce.disableOptionCentering)&&void 0!==je&&je,se.ariaLabel="",se.optionSelectionChanges=Ly(function(){var $e=se.options;return $e?$e.changes.pipe($r($e),Ta(function(){return ot.apply(void 0,Et($e.map(function(kt){return kt.onSelectionChange})))})):se._ngZone.onStable.pipe(or(1),Ta(function(){return se.optionSelectionChanges}))}),se.openedChange=new ye,se._openedStream=se.openedChange.pipe(vr(function($e){return $e}),He(function(){})),se._closedStream=se.openedChange.pipe(vr(function($e){return!$e}),He(function(){})),se.selectionChange=new ye,se.valueChange=new ye,se.ngControl&&(se.ngControl.valueAccessor=It(se)),null!=(null==fe?void 0:fe.typeaheadDebounceInterval)&&(se._typeaheadDebounceInterval=fe.typeaheadDebounceInterval),se._scrollStrategyFactory=Q,se._scrollStrategy=se._scrollStrategyFactory(),se.tabIndex=parseInt(Y)||0,se.id=se.id,se}return W(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(c){this._placeholder=c,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(c){this._required=it(c),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(c){this._multiple=it(c)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(c){this._disableOptionCentering=it(c)}},{key:"compareWith",get:function(){return this._compareWith},set:function(c){this._compareWith=c,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(c){(c!==this._value||this._multiple&&Array.isArray(c))&&(this.options&&this._setSelectionByValue(c),this._value=c)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(c){this._typeaheadDebounceInterval=Di(c)}},{key:"id",get:function(){return this._id},set:function(c){this._id=c||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var c=this;this._selectionModel=new ip(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Xa(),zt(this._destroy)).subscribe(function(){return c._panelDoneAnimating(c.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var c=this;this._initKeyManager(),this._selectionModel.changed.pipe(zt(this._destroy)).subscribe(function(h){h.added.forEach(function(_){return _.select()}),h.removed.forEach(function(_){return _.deselect()})}),this.options.changes.pipe($r(null),zt(this._destroy)).subscribe(function(){c._resetOptions(),c._initializeSelection()})}},{key:"ngDoCheck",value:function(){var c=this._getTriggerAriaLabelledby();if(c!==this._triggerAriaLabelledBy){var h=this._elementRef.nativeElement;this._triggerAriaLabelledBy=c,c?h.setAttribute("aria-labelledby",c):h.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(c){c.disabled&&this.stateChanges.next(),c.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(c){this.value=c}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var c=this._selectionModel.selected.map(function(h){return h.viewValue});return this._isRtl()&&c.reverse(),c.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(c){this.disabled||(this.panelOpen?this._handleOpenKeydown(c):this._handleClosedKeydown(c))}},{key:"_handleClosedKeydown",value:function(c){var h=c.keyCode,_=40===h||38===h||37===h||39===h,C=13===h||32===h,k=this._keyManager;if(!k.isTyping()&&C&&!Bi(c)||(this.multiple||c.altKey)&&_)c.preventDefault(),this.open();else if(!this.multiple){var D=this.selected;k.onKeydown(c);var I=this.selected;I&&D!==I&&this._liveAnnouncer.announce(I.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(c){var h=this._keyManager,_=c.keyCode,C=40===_||38===_,k=h.isTyping();if(C&&c.altKey)c.preventDefault(),this.close();else if(k||13!==_&&32!==_||!h.activeItem||Bi(c))if(!k&&this._multiple&&65===_&&c.ctrlKey){c.preventDefault();var D=this.options.some(function(L){return!L.disabled&&!L.selected});this.options.forEach(function(L){L.disabled||(D?L.select():L.deselect())})}else{var I=h.activeItemIndex;h.onKeydown(c),this._multiple&&C&&c.shiftKey&&h.activeItem&&h.activeItemIndex!==I&&h.activeItem._selectViaInteraction()}else c.preventDefault(),h.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var c=this;this._overlayDir.positionChange.pipe(or(1)).subscribe(function(){c._changeDetectorRef.detectChanges(),c._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var c=this;Promise.resolve().then(function(){c._setSelectionByValue(c.ngControl?c.ngControl.value:c._value),c.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(c){var h=this;if(this._selectionModel.selected.forEach(function(C){return C.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&c)Array.isArray(c),c.forEach(function(C){return h._selectValue(C)}),this._sortValues();else{var _=this._selectValue(c);_?this._keyManager.updateActiveItem(_):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(c){var h=this,_=this.options.find(function(C){if(h._selectionModel.isSelected(C))return!1;try{return null!=C.value&&h._compareWith(C.value,c)}catch(k){return!1}});return _&&this._selectionModel.select(_),_}},{key:"_initKeyManager",value:function(){var c=this;this._keyManager=new wE(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(zt(this._destroy)).subscribe(function(){c.panelOpen&&(!c.multiple&&c._keyManager.activeItem&&c._keyManager.activeItem._selectViaInteraction(),c.focus(),c.close())}),this._keyManager.change.pipe(zt(this._destroy)).subscribe(function(){c._panelOpen&&c.panel?c._scrollOptionIntoView(c._keyManager.activeItemIndex||0):!c._panelOpen&&!c.multiple&&c._keyManager.activeItem&&c._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var c=this,h=ot(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(zt(h)).subscribe(function(_){c._onSelect(_.source,_.isUserInput),_.isUserInput&&!c.multiple&&c._panelOpen&&(c.close(),c.focus())}),ot.apply(void 0,Et(this.options.map(function(_){return _._stateChanges}))).pipe(zt(h)).subscribe(function(){c._changeDetectorRef.markForCheck(),c.stateChanges.next()})}},{key:"_onSelect",value:function(c,h){var _=this._selectionModel.isSelected(c);null!=c.value||this._multiple?(_!==c.selected&&(c.selected?this._selectionModel.select(c):this._selectionModel.deselect(c)),h&&this._keyManager.setActiveItem(c),this.multiple&&(this._sortValues(),h&&this.focus())):(c.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(c.value)),_!==this._selectionModel.isSelected(c)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var c=this;if(this.multiple){var h=this.options.toArray();this._selectionModel.sort(function(_,C){return c.sortComparator?c.sortComparator(_,C,h):h.indexOf(_)-h.indexOf(C)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(c){var h;h=this.multiple?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=h,this.valueChange.emit(h),this._onChange(h),this.selectionChange.emit(this._getChangeEvent(h)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var c;return!this._panelOpen&&!this.disabled&&(null===(c=this.options)||void 0===c?void 0:c.length)>0}},{key:"focus",value:function(c){this._elementRef.nativeElement.focus(c)}},{key:"_getPanelAriaLabelledby",value:function(){var c;if(this.ariaLabel)return null;var h=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId();return this.ariaLabelledby?(h?h+" ":"")+this.ariaLabelledby:h}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var c;if(this.ariaLabel)return null;var h=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId(),_=(h?h+" ":"")+this._valueId;return this.ariaLabelledby&&(_+=" "+this.ariaLabelledby),_}},{key:"_panelDoneAnimating",value:function(c){this.openedChange.emit(c)}},{key:"setDescribedByIds",value:function(c){this._ariaDescribedby=c.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(eoe);return e.\u0275fac=function(t){return new(t||e)(N(yo),N(Bt),N(ft),N(dd),N(Ue),N(Mr,8),N(Lc,8),N(yp,8),N(ik,8),N(Gt,10),Ci("tabindex"),N(oee),N(iS),N($ae,8))},e.\u0275dir=ve({type:e,viewQuery:function(t,n){var l;1&t&&(wt(Bae,5),wt(Hae,5),wt(PV,5)),2&t&&(Ne(l=Le())&&(n.trigger=l.first),Ne(l=Le())&&(n.panel=l.first),Ne(l=Le())&&(n._overlayDir=l.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Pe,on]}),e}(),$a=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._scrollTop=0,l._triggerFontSize=0,l._transformOrigin="top",l._offsetY=0,l._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],l}return W(n,[{key:"_calculateOverlayScroll",value:function(c,h,_){var C=this._getItemHeight();return Math.min(Math.max(0,C*c-h+C/2),_)}},{key:"ngOnInit",value:function(){var c=this;Ie(Oe(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(zt(this._destroy)).subscribe(function(){c.panelOpen&&(c._triggerRect=c.trigger.nativeElement.getBoundingClientRect(),c._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var c=this;Ie(Oe(n.prototype),"_canOpen",this).call(this)&&(Ie(Oe(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(or(1)).subscribe(function(){c._triggerFontSize&&c._overlayDir.overlayRef&&c._overlayDir.overlayRef.overlayElement&&(c._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(c._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(c){var h=jS(c,this.options,this.optionGroups),_=this._getItemHeight();this.panel.nativeElement.scrollTop=0===c&&1===h?0:Cb((c+h)*_,_,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(c){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),Ie(Oe(n.prototype),"_panelDoneAnimating",this).call(this,c)}},{key:"_getChangeEvent",value:function(c){return new Jae(this,c)}},{key:"_calculateOverlayOffsetX",value:function(){var k,c=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),h=this._viewportRuler.getViewportSize(),_=this._isRtl(),C=this.multiple?56:32;if(this.multiple)k=40;else if(this.disableOptionCentering)k=16;else{var D=this._selectionModel.selected[0]||this.options.first;k=D&&D.group?32:16}_||(k*=-1);var I=0-(c.left+k-(_?C:0)),L=c.right+k-h.width+(_?0:C);I>0?k+=I+8:L>0&&(k-=L+8),this._overlayDir.offsetX=Math.round(k),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(c,h,_){var I,C=this._getItemHeight(),k=(C-this._triggerRect.height)/2,D=Math.floor(256/C);return this.disableOptionCentering?0:(I=0===this._scrollTop?c*C:this._scrollTop===_?(c-(this._getItemCount()-D))*C+(C-(this._getItemCount()*C-256)%C):h-C/2,Math.round(-1*I-k))}},{key:"_checkOverlayWithinViewport",value:function(c){var h=this._getItemHeight(),_=this._viewportRuler.getViewportSize(),C=this._triggerRect.top-8,k=_.height-this._triggerRect.bottom-8,D=Math.abs(this._offsetY),L=Math.min(this._getItemCount()*h,256)-D-this._triggerRect.height;L>k?this._adjustPanelUp(L,k):D>C?this._adjustPanelDown(D,C,c):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(c,h){var _=Math.round(c-h);this._scrollTop-=_,this._offsetY-=_,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(c,h,_){var C=Math.round(c-h);if(this._scrollTop+=C,this._offsetY+=C,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=_)return this._scrollTop=_,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var D,c=this._getItemHeight(),h=this._getItemCount(),_=Math.min(h*c,256),k=h*c-_;D=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),D+=jS(D,this.options,this.optionGroups);var I=_/2;this._scrollTop=this._calculateOverlayScroll(D,I,k),this._offsetY=this._calculateOverlayOffsetY(D,I,k),this._checkOverlayWithinViewport(k)}},{key:"_getOriginBasedOnOption",value:function(){var c=this._getItemHeight(),h=(c-this._triggerRect.height)/2,_=Math.abs(this._offsetY)-h+c/2;return"50% ".concat(_,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(noe);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275cmp=Se({type:e,selectors:[["mat-select"]],contentQueries:function(t,n,l){var c;1&t&&(Zt(l,see,5),Zt(l,Pi,5),Zt(l,GS,5)),2&t&&(Ne(c=Le())&&(n.customTrigger=c.first),Ne(c=Le())&&(n.options=c),Ne(c=Le())&&(n.optionGroups=c))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,n){1&t&&ne("keydown",function(c){return n._handleKeydown(c)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&t&&(Ke("id",n.id)("tabindex",n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-describedby",n._ariaDescribedby||null)("aria-activedescendant",n._getAriaActiveDescendant()),dt("mat-select-disabled",n.disabled)("mat-select-invalid",n.errorState)("mat-select-required",n.required)("mat-select-empty",n.empty)("mat-select-multiple",n.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[Xe([{provide:nk,useExisting:e},{provide:Bg,useExisting:e}]),Pe],ngContentSelectors:qae,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,n){if(1&t&&(rr(Yae),A(0,"div",0,1),ne("click",function(){return n.toggle()}),A(3,"div",2),re(4,zae,2,1,"span",3),re(5,jae,3,2,"span",4),E(),A(6,"div",5),me(7,"div",6),E(),E(),re(8,Wae,4,14,"ng-template",7),ne("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&t){var l=Pn(1);Ke("aria-owns",n.panelOpen?n.id+"-panel":null),H(3),z("ngSwitch",n.empty),Ke("id",n._valueId),H(1),z("ngSwitchCase",!0),H(1),z("ngSwitchCase",!1),H(3),z("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",l)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayMinWidth",null==n._triggerRect?null:n._triggerRect.width)("cdkConnectedOverlayOffsetY",n._offsetY)}},directives:[O9,bu,Cu,PV,ED,Ts],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[ree.transformPanelWrap,ree.transformPanel]},changeDetection:0}),e}(),lee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Qae],imports:[[Wa,fp,WS,$t],lp,U5,WS,$t]}),e}(),roe={tooltipState:Ei("state",[Bn("initial, void, hidden",gt({opacity:0,transform:"scale(0)"})),Bn("visible",gt({transform:"scale(1)"})),zn("* => visible",Tn("200ms cubic-bezier(0, 0, 0.2, 1)",Dl([gt({opacity:0,transform:"scale(0)",offset:0}),gt({opacity:.5,transform:"scale(0.99)",offset:.5}),gt({opacity:1,transform:"scale(1)",offset:1})]))),zn("* => hidden",Tn("100ms cubic-bezier(0, 0, 0.2, 1)",gt({opacity:0})))])},uee="tooltip-panel",cee=tp({passive:!0}),fee=new Ee("mat-tooltip-scroll-strategy"),soe={provide:fee,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},loe=new Ee("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),coe=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,I,L,G){var Y=this;F(this,a),this._overlay=t,this._elementRef=n,this._scrollDispatcher=l,this._viewContainerRef=c,this._ngZone=h,this._platform=_,this._ariaDescriber=C,this._focusMonitor=k,this._dir=I,this._defaultOptions=L,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new qe,this._handleKeydown=function(Q){Y._isTooltipVisible()&&27===Q.keyCode&&!Bi(Q)&&(Q.preventDefault(),Q.stopPropagation(),Y._ngZone.run(function(){return Y.hide(0)}))},this._scrollStrategy=D,this._document=G,L&&(L.position&&(this.position=L.position),L.touchGestures&&(this.touchGestures=L.touchGestures)),I.change.pipe(zt(this._destroyed)).subscribe(function(){Y._overlayRef&&Y._updatePosition(Y._overlayRef)}),h.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",Y._handleKeydown)})}return W(a,[{key:"position",get:function(){return this._position},set:function(n){var l;n!==this._position&&(this._position=n,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(l=this._tooltipInstance)||void 0===l||l.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=it(n),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(n){var l=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=n?String(n).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){l._ariaDescriber.describe(l._elementRef.nativeElement,l.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(n){this._tooltipClass=n,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var n=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(zt(this._destroyed)).subscribe(function(l){l?"keyboard"===l&&n._ngZone.run(function(){return n.show()}):n._ngZone.run(function(){return n.hide(0)})})}},{key:"ngOnDestroy",value:function(){var n=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),n.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(l){var c=cr(l,2);n.removeEventListener(c[0],c[1],cee)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(n,this.message,"tooltip"),this._focusMonitor.stopMonitoring(n)}},{key:"show",value:function(){var n=this,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var c=this._createOverlay();this._detach(),this._portal=this._portal||new sd(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=c.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(zt(this._destroyed)).subscribe(function(){return n._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(l)}}},{key:"hide",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(n)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var n=this;if(this._overlayRef)return this._overlayRef;var l=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),c=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(l);return c.positionChanges.pipe(zt(this._destroyed)).subscribe(function(h){n._updateCurrentPositionClass(h.connectionPair),n._tooltipInstance&&h.scrollableViewProperties.isOverlayClipped&&n._tooltipInstance.isVisible()&&n._ngZone.run(function(){return n.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:c,panelClass:"".concat(this._cssClassPrefix,"-").concat(uee),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(zt(this._destroyed)).subscribe(function(){return n._detach()}),this._overlayRef.outsidePointerEvents().pipe(zt(this._destroyed)).subscribe(function(){var h;return null===(h=n._tooltipInstance)||void 0===h?void 0:h._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(n){var l=n.getConfig().positionStrategy,c=this._getOrigin(),h=this._getOverlayPosition();l.withPositions([this._addOffset(Object.assign(Object.assign({},c.main),h.main)),this._addOffset(Object.assign(Object.assign({},c.fallback),h.fallback))])}},{key:"_addOffset",value:function(n){return n}},{key:"_getOrigin",value:function(){var c,n=!this._dir||"ltr"==this._dir.value,l=this.position;"above"==l||"below"==l?c={originX:"center",originY:"above"==l?"top":"bottom"}:"before"==l||"left"==l&&n||"right"==l&&!n?c={originX:"start",originY:"center"}:("after"==l||"right"==l&&n||"left"==l&&!n)&&(c={originX:"end",originY:"center"});var h=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:h.x,originY:h.y}}}},{key:"_getOverlayPosition",value:function(){var c,n=!this._dir||"ltr"==this._dir.value,l=this.position;"above"==l?c={overlayX:"center",overlayY:"bottom"}:"below"==l?c={overlayX:"center",overlayY:"top"}:"before"==l||"left"==l&&n||"right"==l&&!n?c={overlayX:"end",overlayY:"center"}:("after"==l||"right"==l&&n||"left"==l&&!n)&&(c={overlayX:"start",overlayY:"center"});var h=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:h.x,overlayY:h.y}}}},{key:"_updateTooltipMessage",value:function(){var n=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(or(1),zt(this._destroyed)).subscribe(function(){n._tooltipInstance&&n._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(n){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=n,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(n,l){return"above"===this.position||"below"===this.position?"top"===l?l="bottom":"bottom"===l&&(l="top"):"end"===n?n="start":"start"===n&&(n="end"),{x:n,y:l}}},{key:"_updateCurrentPositionClass",value:function(n){var _,l=n.overlayY,c=n.originX;if((_="center"===l?this._dir&&"rtl"===this._dir.value?"end"===c?"left":"right":"start"===c?"left":"right":"bottom"===l&&"top"===n.originY?"above":"below")!==this._currentPosition){var C=this._overlayRef;if(C){var k="".concat(this._cssClassPrefix,"-").concat(uee,"-");C.removePanelClass(k+this._currentPosition),C.addPanelClass(k+_)}this._currentPosition=_}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var n=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){n._setupPointerExitEventsIfNeeded(),n.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){n._setupPointerExitEventsIfNeeded(),clearTimeout(n._touchstartTimeout),n._touchstartTimeout=setTimeout(function(){return n.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var l,n=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var c=[];if(this._platformSupportsMouseEvents())c.push(["mouseleave",function(){return n.hide()}],["wheel",function(_){return n._wheelListener(_)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var h=function(){clearTimeout(n._touchstartTimeout),n.hide(n._defaultOptions.touchendHideDelay)};c.push(["touchend",h],["touchcancel",h])}this._addListeners(c),(l=this._passiveListeners).push.apply(l,c)}}},{key:"_addListeners",value:function(n){var l=this;n.forEach(function(c){var h=cr(c,2);l._elementRef.nativeElement.addEventListener(h[0],h[1],cee)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(n){if(this._isTooltipVisible()){var l=this._document.elementFromPoint(n.clientX,n.clientY),c=this._elementRef.nativeElement;l!==c&&!c.contains(l)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var n=this.touchGestures;if("off"!==n){var l=this._elementRef.nativeElement,c=l.style;("on"===n||"INPUT"!==l.nodeName&&"TEXTAREA"!==l.nodeName)&&(c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none"),("on"===n||!l.draggable)&&(c.webkitUserDrag="none"),c.touchAction="none",c.webkitTapHighlightColor="transparent"}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(Ue),N(op),N($n),N(ft),N(en),N(FV),N(ia),N(void 0),N(Mr),N(void 0),N(lt))},e.\u0275dir=ve({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),dee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I,L,G,Y,Q){var ie;return F(this,n),(ie=t.call(this,l,c,h,_,C,k,D,I,L,G,Y,Q))._tooltipComponent=doe,ie}return n}(coe);return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(Ue),N(op),N($n),N(ft),N(en),N(FV),N(ia),N(fee),N(Mr,8),N(loe,8),N(lt))},e.\u0275dir=ve({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Pe]}),e}(),foe=function(){var e=function(){function a(t){F(this,a),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new qe}return W(a,[{key:"show",value:function(n){var l=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){l._visibility="visible",l._showTimeoutId=void 0,l._onShow(),l._markForCheck()},n)}},{key:"hide",value:function(n){var l=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){l._visibility="hidden",l._hideTimeoutId=void 0,l._markForCheck()},n)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(n){var l=n.toState;"hidden"===l&&!this.isVisible()&&this._onHide.next(),("visible"===l||"hidden"===l)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Bt))},e.\u0275dir=ve({type:e}),e}(),doe=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c){var h;return F(this,n),(h=t.call(this,l))._breakpointObserver=c,h._isHandset=h._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),h}return n}(foe);return e.\u0275fac=function(t){return new(t||e)(N(Bt),N(Hq))},e.\u0275cmp=Se({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,n){2&t&&Gr("zoom","visible"===n._visibility?1:null)},features:[Pe],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,n){var l;1&t&&(A(0,"div",0),ne("@state.start",function(){return n._animationStart()})("@state.done",function(h){return n._animationDone(h)}),Uf(1,"async"),Z(2),E()),2&t&&(dt("mat-tooltip-handset",null==(l=Gf(1,5,n._isHandset))?null:l.matches),z("ngClass",n.tooltipClass)("@state",n._visibility),H(2),On(n.message))},directives:[Ts],pipes:[Zw],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[roe.tooltipState]},changeDetection:0}),e}(),hee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[soe],imports:[[LE,Wa,fp,$t],$t,lp]}),e}();function hoe(e,a){if(1&e&&(A(0,"mat-option",19),Z(1),E()),2&e){var t=a.$implicit;z("value",t),H(1),Ve(" ",t," ")}}function poe(e,a){if(1&e){var t=De();A(0,"mat-form-field",16),A(1,"mat-select",17),ne("selectionChange",function(c){return pe(t),J(2)._changePageSize(c.value)}),re(2,hoe,2,2,"mat-option",18),E(),E()}if(2&e){var n=J(2);z("appearance",n._formFieldAppearance)("color",n.color),H(1),z("value",n.pageSize)("disabled",n.disabled)("aria-label",n._intl.itemsPerPageLabel),H(1),z("ngForOf",n._displayedPageSizeOptions)}}function voe(e,a){if(1&e&&(A(0,"div",20),Z(1),E()),2&e){var t=J(2);H(1),On(t.pageSize)}}function goe(e,a){if(1&e&&(A(0,"div",12),A(1,"div",13),Z(2),E(),re(3,poe,3,6,"mat-form-field",14),re(4,voe,2,1,"div",15),E()),2&e){var t=J();H(2),Ve(" ",t._intl.itemsPerPageLabel," "),H(1),z("ngIf",t._displayedPageSizeOptions.length>1),H(1),z("ngIf",t._displayedPageSizeOptions.length<=1)}}function moe(e,a){if(1&e){var t=De();A(0,"button",21),ne("click",function(){return pe(t),J().firstPage()}),va(),A(1,"svg",7),me(2,"path",22),E(),E()}if(2&e){var n=J();z("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),Ke("aria-label",n._intl.firstPageLabel)}}function _oe(e,a){if(1&e){var t=De();va(),t0(),A(0,"button",23),ne("click",function(){return pe(t),J().lastPage()}),va(),A(1,"svg",7),me(2,"path",24),E(),E()}if(2&e){var n=J();z("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),Ke("aria-label",n._intl.lastPageLabel)}}var kb=function(){var e=function a(){F(this,a),this.changes=new qe,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,n,l){if(0==l||0==n)return"0 of ".concat(l);var c=t*n,h=c<(l=Math.max(l,0))?Math.min(c+n,l):c+n;return"".concat(c+1," \u2013 ").concat(h," of ").concat(l)}};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),boe={provide:kb,deps:[[new oi,new Fo,kb]],useFactory:function(e){return e||new kb}},woe=new Ee("MAT_PAGINATOR_DEFAULT_OPTIONS"),Soe=aa(o5(function(){return function e(){F(this,e)}}())),koe=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _;if(F(this,n),(_=t.call(this))._intl=l,_._changeDetectorRef=c,_._pageIndex=0,_._length=0,_._pageSizeOptions=[],_._hidePageSize=!1,_._showFirstLastButtons=!1,_.page=new ye,_._intlChanges=l.changes.subscribe(function(){return _._changeDetectorRef.markForCheck()}),h){var C=h.pageSize,k=h.pageSizeOptions,D=h.hidePageSize,I=h.showFirstLastButtons;null!=C&&(_._pageSize=C),null!=k&&(_._pageSizeOptions=k),null!=D&&(_._hidePageSize=D),null!=I&&(_._showFirstLastButtons=I)}return _}return W(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(c){this._pageIndex=Math.max(Di(c),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(c){this._length=Di(c),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(c){this._pageSize=Math.max(Di(c),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(c){this._pageSizeOptions=(c||[]).map(function(h){return Di(h)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(c){this._hidePageSize=it(c)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(c){this._showFirstLastButtons=it(c)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var c=this.pageIndex;this.pageIndex++,this._emitPageEvent(c)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var c=this.pageIndex;this.pageIndex--,this._emitPageEvent(c)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var c=this.pageIndex;this.pageIndex=0,this._emitPageEvent(c)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var c=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(c)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var c=this.getNumberOfPages()-1;return this.pageIndex=D.length&&(I=0),D[I]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(Eoe);return e.\u0275fac=function(t){return new(t||e)(N(Aoe,8))},e.\u0275dir=ve({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Pe,on]}),e}(),Ug=YY.ENTERING+" "+WY.STANDARD_CURVE,ok={indicator:Ei("indicator",[Bn("active-asc, asc",gt({transform:"translateY(0px)"})),Bn("active-desc, desc",gt({transform:"translateY(10px)"})),zn("active-asc <=> active-desc",Tn(Ug))]),leftPointer:Ei("leftPointer",[Bn("active-asc, asc",gt({transform:"rotate(-45deg)"})),Bn("active-desc, desc",gt({transform:"rotate(45deg)"})),zn("active-asc <=> active-desc",Tn(Ug))]),rightPointer:Ei("rightPointer",[Bn("active-asc, asc",gt({transform:"rotate(45deg)"})),Bn("active-desc, desc",gt({transform:"rotate(-45deg)"})),zn("active-asc <=> active-desc",Tn(Ug))]),arrowOpacity:Ei("arrowOpacity",[Bn("desc-to-active, asc-to-active, active",gt({opacity:1})),Bn("desc-to-hint, asc-to-hint, hint",gt({opacity:.54})),Bn("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",gt({opacity:0})),zn("* => asc, * => desc, * => active, * => hint, * => void",Tn("0ms")),zn("* <=> *",Tn(Ug))]),arrowPosition:Ei("arrowPosition",[zn("* => desc-to-hint, * => desc-to-active",Tn(Ug,Dl([gt({transform:"translateY(-25%)"}),gt({transform:"translateY(0)"})]))),zn("* => hint-to-desc, * => active-to-desc",Tn(Ug,Dl([gt({transform:"translateY(0)"}),gt({transform:"translateY(25%)"})]))),zn("* => asc-to-hint, * => asc-to-active",Tn(Ug,Dl([gt({transform:"translateY(25%)"}),gt({transform:"translateY(0)"})]))),zn("* => hint-to-asc, * => active-to-asc",Tn(Ug,Dl([gt({transform:"translateY(0)"}),gt({transform:"translateY(-25%)"})]))),Bn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",gt({transform:"translateY(0)"})),Bn("hint-to-desc, active-to-desc, desc",gt({transform:"translateY(-25%)"})),Bn("hint-to-asc, active-to-asc, asc",gt({transform:"translateY(25%)"}))]),allowChildren:Ei("allowChildren",[zn("* <=> *",[BE("@*",QV(),{optional:!0})])])},W5=function(){var e=function a(){F(this,a),this.changes=new qe};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Ioe={provide:W5,deps:[[new oi,new Fo,W5]],useFactory:function(e){return e||new W5}},Roe=aa(function(){return function e(){F(this,e)}}()),pee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this))._intl=l,D._changeDetectorRef=c,D._sort=h,D._columnDef=_,D._focusMonitor=C,D._elementRef=k,D._showIndicatorHint=!1,D._viewState={},D._arrowDirection="",D._disableViewStateAnimation=!1,D.arrowPosition="after",D._handleStateChanges(),D}return W(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(c){this._disableClear=it(c)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var c=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(h){var _=!!h;_!==c._showIndicatorHint&&(c._setIndicatorHintVisible(_),c._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(c){this._isDisabled()&&c||(this._showIndicatorHint=c,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(c){this._viewState=c||{},this._disableViewStateAnimation&&(this._viewState={toState:c.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(c){!this._isDisabled()&&(32===c.keyCode||13===c.keyCode)&&(c.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var c=this._viewState.fromState;return(c?"".concat(c,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var c=this;this._rerenderSubscription=ot(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){c._isSorted()&&(c._updateArrowDirection(),("hint"===c._viewState.toState||"active"===c._viewState.toState)&&(c._disableViewStateAnimation=!0),c._setAnimationTransitionState({fromState:c._arrowDirection,toState:"active"}),c._showIndicatorHint=!1),!c._isSorted()&&c._viewState&&"active"===c._viewState.toState&&(c._disableViewStateAnimation=!1,c._setAnimationTransitionState({fromState:"active",toState:c._arrowDirection})),c._changeDetectorRef.markForCheck()})}}]),n}(Roe);return e.\u0275fac=function(t){return new(t||e)(N(W5),N(Bt),N(DP,8),N("MAT_SORT_HEADER_COLUMN_DEF",8),N(ia),N(Ue))},e.\u0275cmp=Se({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,n){1&t&&ne("click",function(){return n._handleClick()})("keydown",function(c){return n._handleKeydown(c)})("mouseenter",function(){return n._setIndicatorHintVisible(!0)})("mouseleave",function(){return n._setIndicatorHintVisible(!1)}),2&t&&(Ke("aria-sort",n._getAriaSortAttribute()),dt("mat-sort-header-disabled",n._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Pe],attrs:xoe,ngContentSelectors:Doe,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,n){1&t&&(rr(),A(0,"div",0),A(1,"div",1),Wt(2),E(),re(3,Toe,6,6,"div",2),E()),2&t&&(dt("mat-sort-header-sorted",n._isSorted())("mat-sort-header-position-before","before"==n.arrowPosition),Ke("tabindex",n._isDisabled()?null:0),H(3),z("ngIf",n._renderArrow()))},directives:[Kt],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[ok.indicator,ok.leftPointer,ok.rightPointer,ok.arrowOpacity,ok.arrowPosition,ok.allowChildren]},changeDetection:0}),e}(),Loe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Ioe],imports:[[Wa,$t]]}),e}(),Foe=[[["caption"]],[["colgroup"],["col"]]],Noe=["caption","colgroup, col"];function Yq(e){return function(a){ae(n,a);var t=ue(n);function n(){var l;F(this,n);for(var c=arguments.length,h=new Array(c),_=0;_4&&void 0!==arguments[4])||arguments[4],h=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],_=arguments.length>6?arguments[6]:void 0;F(this,e),this._isNativeHtmlTable=a,this._stickCellCss=t,this.direction=n,this._coalescedStyleScheduler=l,this._isBrowser=c,this._needsPositionStickyOnElement=h,this._positionListener=_,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(t,"-border-elem-top"),bottom:"".concat(t,"-border-elem-bottom"),left:"".concat(t,"-border-elem-left"),right:"".concat(t,"-border-elem-right")}}return W(e,[{key:"clearStickyPositioning",value:function(t,n){var _,l=this,c=[],h=nn(t);try{for(h.s();!(_=h.n()).done;){var C=_.value;if(C.nodeType===C.ELEMENT_NODE){c.push(C);for(var k=0;k3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(n.some(function(Y){return Y})||l.some(function(Y){return Y}))){var _=t[0],C=_.children.length,k=this._getCellWidths(_,h),D=this._getStickyStartColumnPositions(k,n),I=this._getStickyEndColumnPositions(k,l),L=n.lastIndexOf(!0),G=l.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var se,Y="rtl"===c.direction,Q=Y?"right":"left",ie=Y?"left":"right",fe=nn(t);try{for(fe.s();!(se=fe.n()).done;)for(var be=se.value,Ce=0;Ce1&&void 0!==arguments[1])||arguments[1];if(!n&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var l=[],c=t.children,h=0;h0;h--)n[h]&&(l[h]=c,c+=t[h]);return l}}]),e}(),tX=new Ee("CDK_SPL"),Z5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N($n),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","rowOutlet",""]]}),e}(),K5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N($n),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),$5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N($n),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),Q5=function(){var e=function a(t,n){F(this,a),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(N($n),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),J5=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,I,L){F(this,a),this._differs=t,this._changeDetectorRef=n,this._elementRef=l,this._dir=h,this._platform=C,this._viewRepeater=k,this._coalescedStyleScheduler=D,this._viewportRuler=I,this._stickyPositioningListener=L,this._onDestroy=new qe,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new ye,this.viewChange=new xa({start:0,end:Number.MAX_VALUE}),c||this._elementRef.nativeElement.setAttribute("role","table"),this._document=_,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return W(a,[{key:"trackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"dataSource",get:function(){return this._dataSource},set:function(n){this._dataSource!==n&&this._switchDataSource(n)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(n){this._multiTemplateDataRows=it(n),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(n){this._fixedLayout=it(n),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var n=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(l,c){return n.trackBy?n.trackBy(c.dataIndex,c.data):c}),this._viewportRuler.change().pipe(zt(this._onDestroy)).subscribe(function(){n._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var l=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||l,this._forceRecalculateCellWidths=l,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Y1(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var n=this;this._renderRows=this._getAllRenderRows();var l=this._dataDiffer.diff(this._renderRows);if(!l)return this._updateNoDataRow(),void this.contentChanged.next();var c=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(l,c,function(h,_,C){return n._getEmbeddedViewArgs(h.item,C)},function(h){return h.item.data},function(h){1===h.operation&&h.context&&n._renderCellTemplateForItem(h.record.item.rowDef,h.context)}),this._updateRowIndexContext(),l.forEachIdentityChange(function(h){c.get(h.currentIndex).context.$implicit=h.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(n){this._customColumnDefs.add(n)}},{key:"removeColumnDef",value:function(n){this._customColumnDefs.delete(n)}},{key:"addRowDef",value:function(n){this._customRowDefs.add(n)}},{key:"removeRowDef",value:function(n){this._customRowDefs.delete(n)}},{key:"addHeaderRowDef",value:function(n){this._customHeaderRowDefs.add(n),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(n){this._customHeaderRowDefs.delete(n),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(n){this._customFooterRowDefs.add(n),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(n){this._customFooterRowDefs.delete(n),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(n){this._customNoDataRow=n}},{key:"updateStickyHeaderRowStyles",value:function(){var n=this._getRenderedRows(this._headerRowOutlet),c=this._elementRef.nativeElement.querySelector("thead");c&&(c.style.display=n.length?"":"none");var h=this._headerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["top"]),this._stickyStyler.stickRows(n,h,"top"),this._headerRowDefs.forEach(function(_){return _.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var n=this._getRenderedRows(this._footerRowOutlet),c=this._elementRef.nativeElement.querySelector("tfoot");c&&(c.style.display=n.length?"":"none");var h=this._footerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["bottom"]),this._stickyStyler.stickRows(n,h,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,h),this._footerRowDefs.forEach(function(_){return _.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var n=this,l=this._getRenderedRows(this._headerRowOutlet),c=this._getRenderedRows(this._rowOutlet),h=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(Et(l),Et(c),Et(h)),["left","right"]),this._stickyColumnStylesNeedReset=!1),l.forEach(function(_,C){n._addStickyColumnStyles([_],n._headerRowDefs[C])}),this._rowDefs.forEach(function(_){for(var C=[],k=0;k0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(l,c){return n._renderRow(n._headerRowOutlet,l,c)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var n=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(l,c){return n._renderRow(n._footerRowOutlet,l,c)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(n,l){var c=this,h=Array.from(l.columns||[]).map(function(k){return c._columnDefsByName.get(k)}),_=h.map(function(k){return k.sticky}),C=h.map(function(k){return k.stickyEnd});this._stickyStyler.updateStickyColumns(n,_,C,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(n){for(var l=[],c=0;c3&&void 0!==arguments[3]?arguments[3]:{},_=n.viewContainer.createEmbeddedView(l.template,h,c);return this._renderCellTemplateForItem(l,h),_}},{key:"_renderCellTemplateForItem",value:function(n,l){var h,c=nn(this._getCellTemplates(n));try{for(c.s();!(h=c.n()).done;)wp.mostRecentCellOutlet&&wp.mostRecentCellOutlet._viewContainer.createEmbeddedView(h.value,l)}catch(C){c.e(C)}finally{c.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var n=this._rowOutlet.viewContainer,l=0,c=n.length;l0&&void 0!==arguments[0]?arguments[0]:[];return F(this,t),(n=a.call(this))._renderData=new xa([]),n._filter=new xa(""),n._internalPageChanges=new qe,n._renderChangesSubscription=null,n.sortingDataAccessor=function(c,h){var _=c[h];if(U3(_)){var C=Number(_);return CL?Q=1:I0)){var _=Math.ceil(h.length/h.pageSize)-1||0,C=Math.min(h.pageIndex,_);C!==h.pageIndex&&(h.pageIndex=C,c._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var l;null===(l=this._renderChangesSubscription)||void 0===l||l.unsubscribe(),this._renderChangesSubscription=null}}]),t}(qA));function cse(e){return e instanceof Date&&!isNaN(+e)}function oH(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg,t=cse(e),n=t?+e-a.now():Math.abs(e);return function(l){return l.lift(new fse(n,a))}}var fse=function(){function e(a,t){F(this,e),this.delay=a,this.scheduler=t}return W(e,[{key:"call",value:function(t,n){return n.subscribe(new dse(t,this.delay,this.scheduler))}}]),e}(),dse=function(e){ae(t,e);var a=ue(t);function t(n,l,c){var h;return F(this,t),(h=a.call(this,n)).delay=l,h.scheduler=c,h.queue=[],h.active=!1,h.errored=!1,h}return W(t,[{key:"_schedule",value:function(l){this.active=!0,this.destination.add(l.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:l}))}},{key:"scheduleNotification",value:function(l){if(!0!==this.errored){var c=this.scheduler,h=new hse(c.now()+this.delay,l);this.queue.push(h),!1===this.active&&this._schedule(c)}}},{key:"_next",value:function(l){this.scheduleNotification(qy.createNext(l))}},{key:"_error",value:function(l){this.errored=!0,this.queue=[],this.destination.error(l),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(qy.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(l){for(var c=l.source,h=c.queue,_=l.scheduler,C=l.destination;h.length>0&&h[0].time-_.now()<=0;)h.shift().notification.observe(C);if(h.length>0){var k=Math.max(0,h[0].time-_.now());this.schedule(l,k)}else this.unsubscribe(),c.active=!1}}]),t}(Ze),hse=function e(a,t){F(this,e),this.time=a,this.notification=t},Cee=tp({passive:!0}),wee=function(){var e=function(){function a(t,n){F(this,a),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return W(a,[{key:"monitor",value:function(n){var l=this;if(!this._platform.isBrowser)return Ar;var c=bc(n),h=this._monitoredElements.get(c);if(h)return h.subject;var _=new qe,C="cdk-text-field-autofilled",k=function(I){"cdk-text-field-autofill-start"!==I.animationName||c.classList.contains(C)?"cdk-text-field-autofill-end"===I.animationName&&c.classList.contains(C)&&(c.classList.remove(C),l._ngZone.run(function(){return _.next({target:I.target,isAutofilled:!1})})):(c.classList.add(C),l._ngZone.run(function(){return _.next({target:I.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){c.addEventListener("animationstart",k,Cee),c.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(c,{subject:_,unlisten:function(){c.removeEventListener("animationstart",k,Cee)}}),_}},{key:"stopMonitoring",value:function(n){var l=bc(n),c=this._monitoredElements.get(l);c&&(c.unlisten(),c.subject.complete(),l.classList.remove("cdk-text-field-autofill-monitored"),l.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(l))}},{key:"ngOnDestroy",value:function(){var n=this;this._monitoredElements.forEach(function(l,c){return n.stopMonitoring(c)})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(en),ce(ft))},e.\u0275prov=We({factory:function(){return new e(ce(en),ce(ft))},token:e,providedIn:"root"}),e}(),See=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[ep]]}),e}(),kee=new Ee("MAT_INPUT_VALUE_ACCESSOR"),vse=["button","checkbox","file","hidden","image","radio","range","reset","submit"],gse=0,mse=HS(function(){return function e(a,t,n,l){F(this,e),this._defaultErrorStateMatcher=a,this._parentForm=t,this._parentFormGroup=n,this.ngControl=l}}()),zi=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I,L,G){var Y;F(this,n),(Y=t.call(this,k,_,C,h))._elementRef=l,Y._platform=c,Y._autofillMonitor=I,Y._formField=G,Y._uid="mat-input-".concat(gse++),Y.focused=!1,Y.stateChanges=new qe,Y.controlType="mat-input",Y.autofilled=!1,Y._disabled=!1,Y._required=!1,Y._type="text",Y._readonly=!1,Y._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(fe){return j1().has(fe)});var Q=Y._elementRef.nativeElement,ie=Q.nodeName.toLowerCase();return Y._inputValueAccessor=D||Q,Y._previousNativeValue=Y.value,Y.id=Y.id,c.IOS&&L.runOutsideAngular(function(){l.nativeElement.addEventListener("keyup",function(fe){var se=fe.target;!se.value&&0===se.selectionStart&&0===se.selectionEnd&&(se.setSelectionRange(1,1),se.setSelectionRange(0,0))})}),Y._isServer=!Y._platform.isBrowser,Y._isNativeSelect="select"===ie,Y._isTextarea="textarea"===ie,Y._isInFormField=!!G,Y._isNativeSelect&&(Y.controlType=Q.multiple?"mat-native-select-multiple":"mat-native-select"),Y}return W(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(c){this._disabled=it(c),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(c){this._id=c||this._uid}},{key:"required",get:function(){return this._required},set:function(c){this._required=it(c)}},{key:"type",get:function(){return this._type},set:function(c){this._type=c||"text",this._validateType(),!this._isTextarea&&j1().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(c){c!==this.value&&(this._inputValueAccessor.value=c,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(c){this._readonly=it(c)}},{key:"ngAfterViewInit",value:function(){var c=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(h){c.autofilled=h.isAutofilled,c.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(c){this._elementRef.nativeElement.focus(c)}},{key:"_focusChanged",value:function(c){c!==this.focused&&(this.focused=c,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var c,h,_=(null===(h=null===(c=this._formField)||void 0===c?void 0:c._hideControlPlaceholder)||void 0===h?void 0:h.call(c))?null:this.placeholder;if(_!==this._previousPlaceholder){var C=this._elementRef.nativeElement;this._previousPlaceholder=_,_?C.setAttribute("placeholder",_):C.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var c=this._elementRef.nativeElement.value;this._previousNativeValue!==c&&(this._previousNativeValue=c,this.stateChanges.next())}},{key:"_validateType",value:function(){vse.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var c=this._elementRef.nativeElement.validity;return c&&c.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var c=this._elementRef.nativeElement,h=c.options[0];return this.focused||c.multiple||!this.empty||!!(c.selectedIndex>-1&&h&&h.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(c){c.length?this._elementRef.nativeElement.setAttribute("aria-describedby",c.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(mse);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(en),N(Gt,10),N(Lc,8),N(yp,8),N(dd),N(kee,10),N(wee),N(ft),N(ik,8))},e.\u0275dir=ve({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,n){1&t&&ne("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&t&&(Ki("disabled",n.disabled)("required",n.required),Ke("id",n.id)("data-placeholder",n.placeholder)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required),dt("mat-input-server",n._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[Xe([{provide:nk,useExisting:e}]),Pe,on]}),e}(),_se=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[dd],imports:[[See,U5,$t],See,U5]}),e}(),yse=["searchSelectInput"],bse=["innerSelectSearch"];function Cse(e,a){if(1&e){var t=De();A(0,"button",6),ne("click",function(){return pe(t),J()._reset(!0)}),A(1,"i",7),Z(2,"close"),E(),E()}}var wse=function(e){return{"mat-select-search-inner-multiple":e}},Vc=function(){function e(a,t){this.matSelect=a,this.changeDetectorRef=t,this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.clearSearchInput=!0,this.disableInitialFocus=!1,this.changed=new ye,this.overlayClassSet=!1,this.change=new ye,this._onDestroy=new qe}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var a=this,t="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(t):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,t]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[t]=!0):this.matSelect.panelClass=t,this.matSelect.openedChange.pipe(oH(1),zt(this._onDestroy)).subscribe(function(n){n?(a.getWidth(),a.disableInitialFocus||a._focus()):a.clearSearchInput&&a._reset()}),this.matSelect.openedChange.pipe(or(1)).pipe(zt(this._onDestroy)).subscribe(function(){a._options=a.matSelect.options,a._options.changes.pipe(zt(a._onDestroy)).subscribe(function(){var n=a.matSelect._keyManager;n&&a.matSelect.panelOpen&&setTimeout(function(){n.setFirstItemActive(),a.getWidth()},1)})}),this.change.pipe(zt(this._onDestroy)).subscribe(function(){a.changeDetectorRef.detectChanges()}),this.initMultipleHandling()},e.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},e.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){a.setOverlayClass()}),this.matSelect.openedChange.pipe(or(1),zt(this._onDestroy)).subscribe(function(){a.matSelect.options.changes.pipe(zt(a._onDestroy)).subscribe(function(){a.changeDetectorRef.markForCheck()})})},e.prototype._handleKeydown=function(a){(a.key&&1===a.key.length||a.keyCode>=65&&a.keyCode<=90||a.keyCode>=48&&a.keyCode<=57||32===a.keyCode)&&a.stopPropagation()},e.prototype.writeValue=function(a){a!==this._value&&(this._value=a,this.change.emit(a))},e.prototype.onInputChange=function(a){a.value!==this._value&&(this.initMultiSelectedValues(),this._value=a.value,this.changed.emit(a.value),this.change.emit(a.value))},e.prototype.onBlur=function(a){this.writeValue(a.value)},e.prototype._focus=function(){if(this.searchSelectInput&&this.matSelect.panel){var a=this.matSelect.panel.nativeElement,t=a.scrollTop;this.searchSelectInput.nativeElement.focus(),a.scrollTop=t}},e.prototype._reset=function(a){!this.searchSelectInput||(this.searchSelectInput.nativeElement.value="",this.onInputChange(""),a&&this._focus())},e.prototype.initMultiSelectedValues=function(){this.matSelect.multiple&&!this._value&&(this.previousSelectedValues=this.matSelect.options.filter(function(a){return a.selected}).map(function(a){return a.value}))},e.prototype.setOverlayClass=function(){var a=this;this.overlayClassSet||(this.matSelect.openedChange.pipe(zt(this._onDestroy)).subscribe(function(n){if(n){for(var l=a.searchSelectInput.nativeElement,c=void 0;l=l.parentElement;)if(l.classList.contains("cdk-overlay-pane")){c=l;break}c&&c.classList.add("cdk-overlay-pane-select-search")}}),this.overlayClassSet=!0)},e.prototype.initMultipleHandling=function(){var a=this;this.matSelect.valueChange.pipe(zt(this._onDestroy)).subscribe(function(t){if(a.matSelect.multiple){var n=!1;if(a._value&&a._value.length&&a.previousSelectedValues&&Array.isArray(a.previousSelectedValues)){(!t||!Array.isArray(t))&&(t=[]);var l=a.matSelect.options.map(function(c){return c.value});a.previousSelectedValues.forEach(function(c){-1===t.indexOf(c)&&-1===l.indexOf(c)&&(t.push(c),n=!0)})}n&&a.matSelect._onChange(t),a.previousSelectedValues=t}})},e.prototype.getWidth=function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var t,a=this.innerSelectSearch.nativeElement;a=a.parentElement;)if(a.classList.contains("mat-select-panel")){t=a;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}},e.\u0275fac=function(t){return new(t||e)(N($a),N(Bt))},e.\u0275cmp=Se({type:e,selectors:[["uds-mat-select-search"]],viewQuery:function(t,n){if(1&t&&(wt(yse,7,Ue),wt(bse,7,Ue)),2&t){var l=void 0;Ne(l=Le())&&(n.searchSelectInput=l.first),Ne(l=Le())&&(n.innerSelectSearch=l.first)}},inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",disableInitialFocus:"disableInitialFocus"},outputs:{changed:"changed"},features:[Xe([{provide:s,useExisting:Sn(function(){return e}),multi:!0}])],decls:6,vars:5,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["matInput","","autocomplete","off",1,"mat-select-search-input",3,"placeholder","keydown","input","blur"],["searchSelectInput",""],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[1,"material-icons"]],template:function(t,n){1&t&&(me(0,"input",0),A(1,"div",1,2),A(3,"input",3,4),ne("keydown",function(c){return n._handleKeydown(c)})("input",function(c){return n.onInputChange(c.target)})("blur",function(c){return n.onBlur(c.target)}),E(),re(5,Cse,3,0,"button",5),E()),2&t&&(H(1),z("ngClass",vl(3,wse,n.matSelect.multiple)),H(2),z("placeholder",n.placeholderLabel),H(2),z("ngIf",n.value))},directives:[zi,Ts,Kt,Rn],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:0}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 36px 16px 16px;box-sizing:border-box}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px} .cdk-overlay-pane-select-search{margin-top:-50px}"],changeDetection:0}),e}();function Sse(e,a){1&e&&(A(0,"uds-translate"),Z(1,"New user permission for"),E())}function kse(e,a){1&e&&(A(0,"uds-translate"),Z(1,"New group permission for"),E())}function Mse(e,a){if(1&e&&(A(0,"mat-option",11),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),On(t.text)}}function xse(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",12),ne("changed",function(l){return pe(t),J().filterUser=l}),E()}}function Tse(e,a){if(1&e&&(A(0,"mat-option",11),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),On(t.text)}}function Dse(e,a){if(1&e&&(A(0,"mat-option",11),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),On(t.text)}}var Ase=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.data=l,this.filterUser="",this.authenticators=[],this.entities=[],this.permissions=[{id:"1",text:django.gettext("Read only")},{id:"2",text:django.gettext("Full Access")}],this.authenticator="",this.entity="",this.permission="1",this.onSave=new ye(!0)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"50%";return a.gui.dialog.open(e,{width:l,data:{type:t,item:n},disableClose:!0}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.summary().subscribe(function(t){t.forEach(function(n){a.authenticators.push({id:n.id,text:n.name})})})},e.prototype.changeAuth=function(a){var t=this;this.entities.length=0,this.entity="",this.rest.authenticators.detail(a,this.data.type+"s").summary().subscribe(function(n){n.forEach(function(l){t.entities.push({id:l.id,text:l.name})})})},e.prototype.save=function(){this.onSave.emit({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()},e.prototype.filteredEntities=function(){var a=this,t=new Array;return this.entities.forEach(function(n){(!a.filterUser||n.text.toLocaleLowerCase().includes(a.filterUser.toLocaleLowerCase()))&&t.push(n)}),t},e.prototype.getFieldLabel=function(a){return"user"===a?django.gettext("User"):"group"===a?django.gettext("Group"):"auth"===a?django.gettext("Authenticator"):django.gettext("Permission")},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["titleGroup",""],[1,"container"],[3,"placeholder","ngModel","valueChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,Sse,2,0,"uds-translate",1),me(2,"b",2),re(3,kse,2,0,"ng-template",null,3,ml),E(),A(5,"mat-dialog-content"),A(6,"div",4),A(7,"mat-form-field"),A(8,"mat-select",5),ne("valueChange",function(h){return n.changeAuth(h)})("ngModelChange",function(h){return n.authenticator=h}),re(9,Mse,2,2,"mat-option",6),E(),E(),A(10,"mat-form-field"),A(11,"mat-select",7),ne("ngModelChange",function(h){return n.entity=h}),re(12,xse,1,0,"uds-mat-select-search",8),re(13,Tse,2,2,"mat-option",6),E(),E(),A(14,"mat-form-field"),A(15,"mat-select",7),ne("ngModelChange",function(h){return n.permission=h}),re(16,Dse,2,2,"mat-option",6),E(),E(),E(),E(),A(17,"mat-dialog-actions"),A(18,"button",9),A(19,"uds-translate"),Z(20,"Cancel"),E(),E(),A(21,"button",10),ne("click",function(){return n.save()}),A(22,"uds-translate"),Z(23,"Ok"),E(),E(),E()),2&t){var l=Pn(4);H(1),z("ngIf","user"===n.data.type)("ngIfElse",l),H(1),z("innerHTML",n.data.item.name,Si),H(6),z("placeholder",n.getFieldLabel("auth"))("ngModel",n.authenticator),H(1),z("ngForOf",n.authenticators),H(2),z("placeholder",n.getFieldLabel(n.data.type))("ngModel",n.entity),H(1),z("ngIf",n.entities.length>10),H(1),z("ngForOf",n.filteredEntities()),H(2),z("placeholder",n.getFieldLabel("perm"))("ngModel",n.permission),H(1),z("ngForOf",n.permissions)}},directives:[Yr,Kt,Fr,yr,$a,Mt,_r,er,Qr,Rn,Lr,Hn,Pi,Vc],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function Ese(e,a){if(1&e){var t=De();A(0,"div",11),A(1,"div",12),Z(2),E(),A(3,"div",13),Z(4),A(5,"a",14),ne("click",function(){var h=pe(t).$implicit;return J(2).revokePermission(h)}),A(6,"i",15),Z(7,"close"),E(),E(),E(),E()}if(2&e){var n=a.$implicit;H(2),Cv(" ",n.entity_name,"@",n.auth_name," "),H(2),Ve(" ",n.perm_name," \xa0")}}function Pse(e,a){if(1&e){var t=De();A(0,"div",7),A(1,"div",8),A(2,"div",9),ne("click",function(c){var _=pe(t).$implicit;return J().newPermission(_),c.preventDefault()}),A(3,"uds-translate"),Z(4,"New permission..."),E(),E(),re(5,Ese,8,3,"div",10),E(),E()}if(2&e){var n=a.$implicit;H(5),z("ngForOf",n)}}var Ose=function(e,a){return[e,a]},Ise=function(){function e(a,t,n){this.api=a,this.dialogRef=t,this.data=n,this.userPermissions=[],this.groupPermissions=[]}return e.launch=function(a,t,n){var l=window.innerWidth<800?"90%":"60%";a.gui.dialog.open(e,{width:l,data:{rest:t,item:n},disableClose:!1})},e.prototype.ngOnInit=function(){this.reload()},e.prototype.reload=function(){var a=this;this.data.rest.getPermissions(this.data.item.id).subscribe(function(t){a.updatePermissions(t)})},e.prototype.updatePermissions=function(a){var t=this;this.userPermissions.length=0,this.groupPermissions.length=0,a.forEach(function(n){"user"===n.type?t.userPermissions.push(n):t.groupPermissions.push(n)})},e.prototype.revokePermission=function(a){var t=this;this.api.gui.yesno(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+a.entity_name+"@"+a.auth_name+" "+a.perm_name+"").subscribe(function(n){n&&t.data.rest.revokePermission([a.id]).subscribe(function(l){t.reload()})})},e.prototype.newPermission=function(a){var t=this,n=a===this.userPermissions?"user":"group";Ase.launch(this.api,n,this.data.item).subscribe(function(l){t.data.rest.addPermission(t.data.item.id,n+"s",l.entity,l.permissision).subscribe(function(c){t.reload()})})},e.\u0275fac=function(t){return new(t||e)(N(At),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-permissions-form"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],["class","content",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"content"],[1,"perms"],[1,"perm","new",3,"click"],["class","perm",4,"ngFor","ngForOf"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),Z(2,"Permissions for"),E(),Z(3,"\xa0"),me(4,"b",1),E(),A(5,"mat-dialog-content"),A(6,"div",2),A(7,"uds-translate",3),Z(8,"Users"),E(),A(9,"uds-translate",3),Z(10,"Groups"),E(),E(),A(11,"div",4),re(12,Pse,6,1,"div",5),E(),E(),A(13,"mat-dialog-actions"),A(14,"button",6),A(15,"uds-translate"),Z(16,"Ok"),E(),E(),E()),2&t&&(H(4),z("innerHTML",n.data.item.name,Si),H(8),z("ngForOf",zf(2,Ose,n.userPermissions,n.groupPermissions)))},directives:[Yr,Hn,Fr,er,Qr,Rn,Lr],styles:['.titles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-bottom:.4rem}.title[_ngcontent-%COMP%]{font-size:1.4rem}.permissions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.perms[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;margin-bottom:1rem;margin-right:1rem;padding:.5rem}.perm[_ngcontent-%COMP%]{font-family:"Courier New",Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.perm[_ngcontent-%COMP%]:hover:not(.new){background-color:#333;color:#fff;cursor:default}.owner[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.new[_ngcontent-%COMP%]{color:#00f;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:#00f;cursor:pointer}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}']}),e}(),sX=Dt(99595),Tee=function(e){return void 0!==e.changingThisBreaksApplicationSecurity&&(e=e.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(e=""+e).replace('"','""')+'"'},Dee=function(e){var a="";e.columns.forEach(function(n){a+=Tee(n.title)+","}),a=a.slice(0,-1)+"\r\n",e.dataSource.data.forEach(function(n){e.columns.forEach(function(l){var c=n[l.name];switch(l.type){case Ea.DATE:c=Lu("SHORT_DATE_FORMAT",c);break;case Ea.DATETIME:c=Lu("SHORT_DATETIME_FORMAT",c);break;case Ea.DATETIMESEC:c=Lu("SHORT_DATE_FORMAT",c," H:i:s");break;case Ea.TIME:c=Lu("TIME_FORMAT",c)}a+=Tee(c)+","}),a=a.slice(0,-1)+"\r\n"});var t=new Blob([a],{type:"text/csv"});setTimeout(function(){(0,sX.saveAs)(t,e.title+".csv")},100)},Lse=function(){function e(a,t){F(this,e),this._document=t;var n=this._textarea=this._document.createElement("textarea"),l=n.style;l.position="fixed",l.top=l.opacity="0",l.left="-999em",n.setAttribute("aria-hidden","true"),n.value=a,this._document.body.appendChild(n)}return W(e,[{key:"copy",value:function(){var t=this._textarea,n=!1;try{if(t){var l=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),n=this._document.execCommand("copy"),l&&l.focus()}}catch(c){}return n}},{key:"destroy",value:function(){var t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}]),e}(),Aee=function(){var e=function(){function a(t){F(this,a),this._document=t}return W(a,[{key:"copy",value:function(n){var l=this.beginCopy(n),c=l.copy();return l.destroy(),c}},{key:"beginCopy",value:function(n){return new Lse(n,this._document)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(lt))},e.\u0275prov=We({factory:function(){return new e(ce(lt))},token:e,providedIn:"root"}),e}(),Vse=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}();function Bse(e,a){if(1&e&&(va(),me(0,"circle",3)),2&e){var t=J();Gr("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Ke("r",t._getCircleRadius())}}function Hse(e,a){if(1&e&&(va(),me(0,"circle",3)),2&e){var t=J();Gr("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),Ke("r",t._getCircleRadius())}}var jse=Eu(function(){return function e(a){F(this,e),this._elementRef=a}}(),"primary"),Pee=new Ee("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),Oee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C){var k;F(this,n),(k=t.call(this,l))._document=h,k._diameter=100,k._value=0,k._fallbackAnimation=!1,k.mode="determinate";var D=n._diameters;return k._spinnerAnimationLabel=k._getSpinnerAnimationLabel(),D.has(h.head)||D.set(h.head,new Set([100])),k._fallbackAnimation=c.EDGE||c.TRIDENT,k._noopAnimations="NoopAnimations"===_&&!!C&&!C._forceAnimations,C&&(C.diameter&&(k.diameter=C.diameter),C.strokeWidth&&(k.strokeWidth=C.strokeWidth)),k}return W(n,[{key:"diameter",get:function(){return this._diameter},set:function(c){this._diameter=Di(c),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(c){this._strokeWidth=Di(c)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(c){this._value=Math.max(0,Math.min(100,Di(c)))}},{key:"ngOnInit",value:function(){var c=this._elementRef.nativeElement;this._styleRoot=W1(c)||this._document.head,this._attachStyleNode();var h="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");c.classList.add(h)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var c=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(c," ").concat(c)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var c=this._styleRoot,h=this._diameter,_=n._diameters,C=_.get(c);if(!C||!C.has(h)){var k=this._document.createElement("style");k.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),k.textContent=this._getAnimationText(),c.appendChild(k),C||(C=new Set,_.set(c,C)),C.add(h)}}},{key:"_getAnimationText",value:function(){var c=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*c)).replace(/END_VALUE/g,"".concat(.2*c)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),n}(jse);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(en),N(lt,8),N(Un,8),N(Pee))},e.\u0275cmp=Se({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,n){2&t&&(Ke("aria-valuemin","determinate"===n.mode?0:null)("aria-valuemax","determinate"===n.mode?100:null)("aria-valuenow","determinate"===n.mode?n.value:null)("mode",n.mode),Gr("width",n.diameter,"px")("height",n.diameter,"px"),dt("_mat-animation-noopable",n._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[Pe],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,n){1&t&&(va(),A(0,"svg",0),re(1,Bse,1,9,"circle",1),re(2,Hse,1,7,"circle",2),E()),2&t&&(Gr("width",n.diameter,"px")("height",n.diameter,"px"),z("ngSwitch","indeterminate"===n.mode),Ke("viewBox",n._getViewBox()),H(1),z("ngSwitchCase",!0),H(1),z("ngSwitchCase",!1))},directives:[bu,Cu],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),e._diameters=new WeakMap,e}(),qse=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t,Wa],$t]}),e}(),Xse=["mat-menu-item",""];function Zse(e,a){1&e&&(va(),A(0,"svg",2),me(1,"polygon",3),E())}var Iee=["*"];function Kse(e,a){if(1&e){var t=De();A(0,"div",0),ne("keydown",function(c){return pe(t),J()._handleKeydown(c)})("click",function(){return pe(t),J().closed.emit("click")})("@transformMenu.start",function(c){return pe(t),J()._onAnimationStart(c)})("@transformMenu.done",function(c){return pe(t),J()._onAnimationDone(c)}),A(1,"div",1),Wt(2),E(),E()}if(2&e){var n=J();z("id",n.panelId)("ngClass",n._classList)("@transformMenu",n._panelAnimationState),Ke("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var sH={transformMenu:Ei("transformMenu",[Bn("void",gt({opacity:0,transform:"scale(0.8)"})),zn("void => enter",Tn("120ms cubic-bezier(0, 0, 0.2, 1)",gt({opacity:1,transform:"scale(1)"}))),zn("* => void",Tn("100ms 25ms linear",gt({opacity:0})))]),fadeInItems:Ei("fadeInItems",[Bn("showing",gt({opacity:1})),zn("void => *",[gt({opacity:0}),Tn("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ree=new Ee("MatMenuContent"),$se=function(){var e=function(){function a(t,n,l,c,h,_,C){F(this,a),this._template=t,this._componentFactoryResolver=n,this._appRef=l,this._injector=c,this._viewContainerRef=h,this._document=_,this._changeDetectorRef=C,this._attached=new qe}return W(a,[{key:"attach",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new Ps(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new tE(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var l=this._template.elementRef.nativeElement;l.parentNode.insertBefore(this._outlet.outletElement,l),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,n),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Xn),N($i),N(lc),N(kn),N($n),N(lt),N(Bt))},e.\u0275dir=ve({type:e,selectors:[["ng-template","matMenuContent",""]],features:[Xe([{provide:Ree,useExisting:e}])]}),e}(),uX=new Ee("MAT_MENU_PANEL"),Qse=El(aa(function(){return function e(){F(this,e)}}())),PP=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C){var k;return F(this,n),(k=t.call(this))._elementRef=l,k._focusMonitor=h,k._parentMenu=_,k._changeDetectorRef=C,k.role="menuitem",k._hovered=new qe,k._focused=new qe,k._highlighted=!1,k._triggersSubmenu=!1,_&&_.addItem&&_.addItem(It(k)),k}return W(n,[{key:"focus",value:function(c,h){this._focusMonitor&&c?this._focusMonitor.focusVia(this._getHostElement(),c,h):this._getHostElement().focus(h),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(c){this.disabled&&(c.preventDefault(),c.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var c,h,_=this._elementRef.nativeElement.cloneNode(!0),C=_.querySelectorAll("mat-icon, .material-icons"),k=0;k0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(or(1)).subscribe(function(){return n._focusFirstItem(l)}):this._focusFirstItem(l)}},{key:"_focusFirstItem",value:function(n){var l=this._keyManager;if(l.setFocusOrigin(n).setFirstItemActive(),!l.activeItem&&this._directDescendantItems.length)for(var c=this._directDescendantItems.first._getHostElement().parentElement;c;){if("menu"===c.getAttribute("role")){c.focus();break}c=c.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(n){var l=this,c=Math.min(this._baseElevation+n,24),h="".concat(this._elevationPrefix).concat(c),_=Object.keys(this._classList).find(function(C){return C.startsWith(l._elevationPrefix)});(!_||_===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[h]=!0,this._previousElevation=h)}},{key:"setPositionClasses",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,c=this._classList;c["mat-menu-before"]="before"===n,c["mat-menu-after"]="after"===n,c["mat-menu-above"]="above"===l,c["mat-menu-below"]="below"===l}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(n){this._animationDone.next(n),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(n){this._isAnimating=!0,"enter"===n.toState&&0===this._keyManager.activeItemIndex&&(n.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var n=this;this._allItems.changes.pipe($r(this._allItems)).subscribe(function(l){n._directDescendantItems.reset(l.filter(function(c){return c._parentMenu===n})),n._directDescendantItems.notifyOnChanges()})}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(Lee))},e.\u0275dir=ve({type:e,contentQueries:function(t,n,l){var c;1&t&&(Zt(l,Ree,5),Zt(l,PP,5),Zt(l,PP,4)),2&t&&(Ne(c=Le())&&(n.lazyContent=c.first),Ne(c=Le())&&(n._allItems=c),Ne(c=Le())&&(n.items=c))},viewQuery:function(t,n){var l;1&t&&wt(Xn,5),2&t&&Ne(l=Le())&&(n.templateRef=l.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),Fee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _;return F(this,n),(_=t.call(this,l,c,h))._elevationPrefix="mat-elevation-z",_._baseElevation=4,_}return n}(OP);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(Lee))},e.\u0275cmp=Se({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,n){2&t&&Ke("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Xe([{provide:uX,useExisting:e}]),Pe],ngContentSelectors:Iee,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,n){1&t&&(rr(),re(0,Kse,3,6,"ng-template"))},directives:[Ts],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[sH.transformMenu,sH.fadeInItems]},changeDetection:0}),e}(),Nee=new Ee("mat-menu-scroll-strategy"),Vee={provide:Nee,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Hee=tp({passive:!0}),zee=function(){var e=function(){function a(t,n,l,c,h,_,C,k){var D=this;F(this,a),this._overlay=t,this._element=n,this._viewContainerRef=l,this._menuItemInstance=_,this._dir=C,this._focusMonitor=k,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Be.EMPTY,this._hoverSubscription=Be.EMPTY,this._menuCloseSubscription=Be.EMPTY,this._handleTouchStart=function(I){AE(I)||(D._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new ye,this.onMenuOpen=this.menuOpened,this.menuClosed=new ye,this.onMenuClose=this.menuClosed,this._scrollStrategy=c,this._parentMaterialMenu=h instanceof OP?h:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,Hee),_&&(_._triggersSubmenu=this.triggersSubmenu())}return W(a,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(n){this.menu=n}},{key:"menu",get:function(){return this._menu},set:function(n){var l=this;n!==this._menu&&(this._menu=n,this._menuCloseSubscription.unsubscribe(),n&&(this._menuCloseSubscription=n.close.subscribe(function(c){l._destroyMenu(c),("click"===c||"tab"===c)&&l._parentMaterialMenu&&l._parentMaterialMenu.closed.emit(c)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Hee),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var n=this;if(!this._menuOpen){this._checkMenu();var l=this._createOverlay(),c=l.getConfig();this._setPosition(c.positionStrategy),c.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,l.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return n.closeMenu()}),this._initMenu(),this.menu instanceof OP&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(n,l){this._focusMonitor&&n?this._focusMonitor.focusVia(this._element,n,l):this._element.nativeElement.focus(l)}},{key:"updatePosition",value:function(){var n;null===(n=this._overlayRef)||void 0===n||n.updatePosition()}},{key:"_destroyMenu",value:function(n){var l=this;if(this._overlayRef&&this.menuOpen){var c=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===n||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,c instanceof OP?(c._resetAnimation(),c.lazyContent?c._animationDone.pipe(vr(function(h){return"void"===h.toState}),or(1),zt(c.lazyContent._attached)).subscribe({next:function(){return c.lazyContent.detach()},complete:function(){return l._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),c.lazyContent&&c.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var n=0,l=this.menu.parentMenu;l;)n++,l=l.parentMenu;this.menu.setElevation(n)}}},{key:"_setIsMenuOpen",value:function(n){this._menuOpen=n,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(n)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var n=this._getOverlayConfig();this._subscribeToPositions(n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new up({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(n){var l=this;this.menu.setPositionClasses&&n.positionChanges.subscribe(function(c){l.menu.setPositionClasses("start"===c.connectionPair.overlayX?"after":"before","top"===c.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(n){var c=cr("before"===this.menu.xPosition?["end","start"]:["start","end"],2),h=c[0],_=c[1],k=cr("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),D=k[0],I=k[1],L=D,G=I,Y=h,Q=_,ie=0;this.triggersSubmenu()?(Q=h="before"===this.menu.xPosition?"start":"end",_=Y="end"===h?"start":"end",ie="bottom"===D?8:-8):this.menu.overlapTrigger||(L="top"===D?"bottom":"top",G="top"===I?"bottom":"top"),n.withPositions([{originX:h,originY:L,overlayX:Y,overlayY:D,offsetY:ie},{originX:_,originY:L,overlayX:Q,overlayY:D,offsetY:ie},{originX:h,originY:G,overlayX:Y,overlayY:I,offsetY:-ie},{originX:_,originY:G,overlayX:Q,overlayY:I,offsetY:-ie}])}},{key:"_menuClosingActions",value:function(){var n=this,l=this._overlayRef.backdropClick(),c=this._overlayRef.detachments();return ot(l,this._parentMaterialMenu?this._parentMaterialMenu.closed:ut(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(vr(function(C){return C!==n._menuItemInstance}),vr(function(){return n._menuOpen})):ut(),c)}},{key:"_handleMousedown",value:function(n){ab(n)||(this._openedBy=0===n.button?"mouse":void 0,this.triggersSubmenu()&&n.preventDefault())}},{key:"_handleKeydown",value:function(n){var l=n.keyCode;(13===l||32===l)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===l&&"ltr"===this.dir||37===l&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(n){this.triggersSubmenu()?(n.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var n=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(vr(function(l){return l===n._menuItemInstance&&!l.disabled}),oH(0,BA)).subscribe(function(){n._openedBy="mouse",n.menu instanceof OP&&n.menu._isAnimating?n.menu._animationDone.pipe(or(1),oH(0,BA),zt(n._parentMaterialMenu._hovered())).subscribe(function(){return n.openMenu()}):n.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Ps(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ai),N(Ue),N($n),N(Nee),N(uX,8),N(PP,10),N(Mr,8),N(ia))},e.\u0275dir=ve({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,n){1&t&&ne("mousedown",function(c){return n._handleMousedown(c)})("keydown",function(c){return n._handleKeydown(c)})("click",function(c){return n._handleClick(c)}),2&t&&Ke("aria-expanded",n.menuOpen||null)("aria-controls",n.menuOpen?n.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),Uee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Vee],imports:[$t]}),e}(),nle=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[Vee],imports:[[Wa,$t,Aa,fp,Uee],lp,$t,Uee]}),e}(),rle=function(){var e=function(){function a(){F(this,a),this._vertical=!1,this._inset=!1}return W(a,[{key:"vertical",get:function(){return this._vertical},set:function(n){this._vertical=it(n)}},{key:"inset",get:function(){return this._inset},set:function(n){this._inset=it(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,n){2&t&&(Ke("aria-orientation",n.vertical?"vertical":"horizontal"),dt("mat-divider-vertical",n.vertical)("mat-divider-horizontal",!n.vertical)("mat-divider-inset",n.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,n){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),e}(),ile=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t],$t]}),e}(),ale=function(){function e(){}return e.prototype.transform=function(a,t){return a.sort(void 0===t?function(l,c){return l>c?1:-1}:function(l,c){return l[t]>c[t]?1:-1})},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=ji({name:"sort",type:e,pure:!0}),e}(),ole=["trigger"];function sle(e,a){1&e&&me(0,"img",36),2&e&&z("src",J().icon,Lt)}function lle(e,a){if(1&e){var t=De();A(0,"button",46),ne("click",function(){var _=pe(t).$implicit,C=J(5);return C.newAction.emit({param:_,table:C})}),E()}if(2&e){var n=a.$implicit,l=J(5);z("innerHTML",l.api.safeString(l.api.gui.icon(n.icon)+n.name),Si)}}function ule(e,a){if(1&e&&(vt(0),A(1,"button",42),Z(2),E(),A(3,"mat-menu",43,44),re(5,lle,1,1,"button",45),Uf(6,"sort"),E(),xn()),2&e){var t=a.$implicit,n=Pn(4);H(1),z("matMenuTriggerFor",n),H(1),On(t.key),H(1),z("overlapTrigger",!1),H(2),z("ngForOf",iw(6,4,t.value,"name"))}}function cle(e,a){if(1&e&&(vt(0),A(1,"mat-menu",37,38),re(3,ule,7,7,"ng-container",39),Uf(4,"keyvalue"),E(),A(5,"a",40),A(6,"i",17),Z(7,"insert_drive_file"),E(),A(8,"span",41),A(9,"uds-translate"),Z(10,"New"),E(),E(),A(11,"i",17),Z(12,"arrow_drop_down"),E(),E(),xn()),2&e){var t=Pn(2),n=J(3);H(1),z("overlapTrigger",!1),H(2),z("ngForOf",Gf(4,3,n.grpTypes)),H(2),z("matMenuTriggerFor",t)}}function fle(e,a){if(1&e){var t=De();A(0,"button",46),ne("click",function(){var _=pe(t).$implicit,C=J(4);return C.newAction.emit({param:_,table:C})}),E()}if(2&e){var n=a.$implicit,l=J(4);z("innerHTML",l.api.safeString(l.api.gui.icon(n.icon)+n.name),Si)}}function dle(e,a){if(1&e&&(vt(0),A(1,"mat-menu",37,38),re(3,fle,1,1,"button",45),Uf(4,"sort"),E(),A(5,"a",40),A(6,"i",17),Z(7,"insert_drive_file"),E(),A(8,"span",41),A(9,"uds-translate"),Z(10,"New"),E(),E(),A(11,"i",17),Z(12,"arrow_drop_down"),E(),E(),xn()),2&e){var t=Pn(2),n=J(3);H(1),z("overlapTrigger",!1),H(2),z("ngForOf",iw(4,3,n.oTypes,"name")),H(2),z("matMenuTriggerFor",t)}}function hle(e,a){if(1&e&&(vt(0),re(1,cle,13,5,"ng-container",8),re(2,dle,13,6,"ng-container",8),xn()),2&e){var t=J(2);H(1),z("ngIf",t.newGrouped),H(1),z("ngIf",!t.newGrouped)}}function ple(e,a){if(1&e){var t=De();vt(0),A(1,"a",47),ne("click",function(){pe(t);var l=J(2);return l.newAction.emit({param:void 0,table:l})}),A(2,"i",17),Z(3,"insert_drive_file"),E(),A(4,"span",41),A(5,"uds-translate"),Z(6,"New"),E(),E(),E(),xn()}}function vle(e,a){if(1&e&&(vt(0),re(1,hle,3,2,"ng-container",8),re(2,ple,7,0,"ng-container",8),xn()),2&e){var t=J();H(1),z("ngIf",void 0!==t.oTypes&&0!==t.oTypes.length),H(1),z("ngIf",void 0!==t.oTypes&&0===t.oTypes.length)}}function gle(e,a){if(1&e){var t=De();vt(0),A(1,"a",48),ne("click",function(){pe(t);var c=J();return c.emitIfSelection(c.editAction)}),A(2,"i",17),Z(3,"edit"),E(),A(4,"span",41),A(5,"uds-translate"),Z(6,"Edit"),E(),E(),E(),xn()}if(2&e){var n=J();H(1),z("disabled",1!==n.selection.selected.length)}}function mle(e,a){if(1&e){var t=De();vt(0),A(1,"a",48),ne("click",function(){return pe(t),J().permissions()}),A(2,"i",17),Z(3,"perm_identity"),E(),A(4,"span",41),A(5,"uds-translate"),Z(6,"Permissions"),E(),E(),E(),xn()}if(2&e){var n=J();H(1),z("disabled",1!==n.selection.selected.length)}}function _le(e,a){if(1&e){var t=De();A(0,"a",50),ne("click",function(){var _=pe(t).$implicit;return J(2).emitCustom(_)}),E()}if(2&e){var n=a.$implicit;z("disabled",J(2).isCustomDisabled(n))("innerHTML",n.html,Si)}}function yle(e,a){if(1&e&&(vt(0),re(1,_le,1,2,"a",49),xn()),2&e){var t=J();H(1),z("ngForOf",t.getcustomButtons())}}function ble(e,a){if(1&e){var t=De();vt(0),A(1,"a",51),ne("click",function(){return pe(t),J().export()}),A(2,"i",17),Z(3,"import_export"),E(),A(4,"span",41),A(5,"uds-translate"),Z(6,"Export"),E(),E(),E(),xn()}}function Cle(e,a){if(1&e){var t=De();vt(0),A(1,"a",52),ne("click",function(){pe(t);var c=J();return c.emitIfSelection(c.deleteAction,!0)}),A(2,"i",17),Z(3,"delete_forever"),E(),A(4,"span",41),A(5,"uds-translate"),Z(6,"Delete"),E(),E(),E(),xn()}if(2&e){var n=J();H(1),z("disabled",n.selection.isEmpty())}}function wle(e,a){if(1&e){var t=De();A(0,"button",53),ne("click",function(){pe(t);var l=J();return l.filterText="",l.applyFilter()}),A(1,"i",17),Z(2,"close"),E(),E()}}function Sle(e,a){1&e&&me(0,"mat-header-cell")}function kle(e,a){1&e&&(A(0,"i",17),Z(1,"check_box"),E())}function Mle(e,a){1&e&&(A(0,"i",17),Z(1,"check_box_outline_blank"),E())}function xle(e,a){if(1&e){var t=De();A(0,"mat-cell",56),ne("click",function(_){var k=pe(t).$implicit;return J(2).clickRow(k,_)}),re(1,kle,2,0,"i",57),re(2,Mle,2,0,"ng-template",null,58,ml),E()}if(2&e){var n=a.$implicit,l=Pn(3),c=J(2);H(1),z("ngIf",c.selection.isSelected(n))("ngIfElse",l)}}function Tle(e,a){1&e&&(vt(0,54),re(1,Sle,1,0,"mat-header-cell",22),re(2,xle,4,2,"mat-cell",55),xn())}function Dle(e,a){1&e&&me(0,"mat-header-cell")}function Ale(e,a){if(1&e){var t=De();A(0,"mat-cell"),A(1,"div",59),ne("click",function(l){var h=pe(t).$implicit,_=J();return _.detailAction.emit({param:h,table:_}),l.stopPropagation()}),A(2,"i",17),Z(3,"subdirectory_arrow_right"),E(),E(),E()}}function Ele(e,a){if(1&e&&(A(0,"mat-header-cell",63),Z(1),E()),2&e){var t=J().$implicit;H(1),On(t.title)}}function Ple(e,a){if(1&e){var t=De();A(0,"mat-cell",64),ne("click",function(_){var k=pe(t).$implicit;return J(2).clickRow(k,_)})("contextmenu",function(_){var k=pe(t).$implicit,D=J().$implicit;return J().onContextMenu(k,D,_)}),me(1,"div",65),E()}if(2&e){var n=a.$implicit,l=J().$implicit,c=J();H(1),z("innerHtml",c.getRowColumn(n,l),Si)}}function Ole(e,a){1&e&&(vt(0,60),re(1,Ele,2,1,"mat-header-cell",61),re(2,Ple,2,1,"mat-cell",62),xn()),2&e&&il("matColumnDef",a.$implicit.name)}function Ile(e,a){1&e&&me(0,"mat-header-row")}function Rle(e,a){if(1&e&&me(0,"mat-row",66),2&e){var t=a.$implicit;z("ngClass",J().rowClass(t))}}function Lle(e,a){if(1&e&&(A(0,"div",67),Z(1),A(2,"uds-translate"),Z(3,"Selected items"),E(),E()),2&e){var t=J();H(1),Ve(" ",t.selection.selected.length," ")}}function Fle(e,a){if(1&e){var t=De();A(0,"button",71),ne("click",function(){return pe(t),J(2).copyToClipboard()}),A(1,"i",72),Z(2,"content_copy"),E(),A(3,"uds-translate"),Z(4,"Copy"),E(),E()}}function Nle(e,a){if(1&e){var t=De();A(0,"button",71),ne("click",function(){pe(t);var l=J().item,c=J();return c.detailAction.emit({param:l,table:c})}),A(1,"i",72),Z(2,"subdirectory_arrow_right"),E(),A(3,"uds-translate"),Z(4,"Detail"),E(),E()}}function Vle(e,a){if(1&e){var t=De();A(0,"button",71),ne("click",function(){pe(t);var l=J(2);return l.emitIfSelection(l.editAction)}),A(1,"i",72),Z(2,"edit"),E(),A(3,"uds-translate"),Z(4,"Edit"),E(),E()}}function Ble(e,a){if(1&e){var t=De();A(0,"button",71),ne("click",function(){return pe(t),J(2).permissions()}),A(1,"i",72),Z(2,"perm_identity"),E(),A(3,"uds-translate"),Z(4,"Permissions"),E(),E()}}function Hle(e,a){if(1&e){var t=De();A(0,"button",73),ne("click",function(){var _=pe(t).$implicit;return J(2).emitCustom(_)}),E()}if(2&e){var n=a.$implicit;z("disabled",J(2).isCustomDisabled(n))("innerHTML",n.html,Si)}}function zle(e,a){if(1&e){var t=De();A(0,"button",74),ne("click",function(){pe(t);var l=J(2);return l.emitIfSelection(l.deleteAction)}),A(1,"i",72),Z(2,"delete_forever"),E(),A(3,"uds-translate"),Z(4,"Delete"),E(),E()}}function Ule(e,a){if(1&e){var t=De();A(0,"button",73),ne("click",function(){var _=pe(t).$implicit;return J(3).emitCustom(_)}),E()}if(2&e){var n=a.$implicit;z("disabled",J(3).isCustomDisabled(n))("innerHTML",n.html,Si)}}function Gle(e,a){if(1&e&&(vt(0),me(1,"mat-divider"),re(2,Ule,1,2,"button",69),xn()),2&e){var t=J(2);H(2),z("ngForOf",t.getCustomAccelerators())}}function jle(e,a){if(1&e&&(re(0,Fle,5,0,"button",68),re(1,Nle,5,0,"button",68),re(2,Vle,5,0,"button",68),re(3,Ble,5,0,"button",68),re(4,Hle,1,2,"button",69),re(5,zle,5,0,"button",70),re(6,Gle,3,1,"ng-container",8)),2&e){var t=J();z("ngIf",!0===t.allowCopy),H(1),z("ngIf",t.detailAction.observers.length>0),H(1),z("ngIf",t.editAction.observers.length>0),H(1),z("ngIf",!0===t.hasPermissions),H(1),z("ngForOf",t.getCustomMenu()),H(1),z("ngIf",t.deleteAction.observers.length>0),H(1),z("ngIf",t.hasAccelerators)}}var Wle=function(){return[5,10,25,100,1e3]},Hr=function(){function e(a,t){this.api=a,this.clipboard=t,this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.loaded=new ye,this.rowSelected=new ye,this.newAction=new ye,this.editAction=new ye,this.deleteAction=new ye,this.customButtonAction=new ye,this.detailAction=new ye,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.rowStyleInfo=null,this.dataSource=new bee([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.contextMenuPosition={x:"0px",y:"0px"},this.filterText=""}return e.prototype.ngOnInit=function(){var a=this;this.hasCustomButtons=void 0!==this.customButtons&&0!==this.customButtons.length&&0!==this.customButtonAction.observers.length&&this.getcustomButtons().length>0,this.hasAccelerators=this.getCustomAccelerators().length>0,this.hasButtons=this.hasCustomButtons||0!==this.detailAction.observers.length||0!==this.editAction.observers.length||this.hasPermissions||0!==this.deleteAction.observers.length,this.hasActions=this.hasButtons||void 0!==this.customButtons&&this.customButtons.length>0,this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=function(n,l){if(!(l in n))return"";var c=n[l];return"number"==typeof c?c:"string"==typeof c?c.toLocaleLowerCase():(null===c&&(c=7226578800),c.changingThisBreaksApplicationSecurity&&(c=c.changingThisBreaksApplicationSecurity),(""+c).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=function(n,l){try{a.columns.forEach(function(c){if((""+n[c.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(l))throw Error()})}catch(c){return!0}return!1},this.dataSource.sort.active=this.api.getFromStorage(this.tableId+"sort-column")||"name",this.dataSource.sort.direction=this.api.getFromStorage(this.tableId+"sort-direction")||"asc",this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.selection=new ip(!0===this.multiSelect,[]);var t=this.rest.permision();0==(t&QS.MANAGEMENT)&&(this.newAction.observers.length=0,this.editAction.observers.length=0,this.deleteAction.observers.length=0,this.customButtonAction.observers.length=0),t!==QS.ALL&&(this.hasPermissions=!1),void 0!==this.icon&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png")),this.rest.types().subscribe(function(n){a.rest.tableInfo().subscribe(function(l){a.initialize(l,n)})})},e.prototype.initialize=function(a,t){var n=this;this.oTypes=t,this.types=new Map,this.grpTypes=new Map,t.forEach(function(c){n.types.set(c.type,c),void 0!==c.group&&(n.grpTypes.has(c.group)||n.grpTypes.set(c.group,[]),n.grpTypes.get(c.group).push(c))}),this.rowStyleInfo=void 0!==a["row-style"]&&void 0!==a["row-style"].field?a["row-style"]:null,this.title=a.title,this.subtitle=a.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");var l=[];a.fields.forEach(function(c){for(var h in c)if(c.hasOwnProperty(h)){var _=c[h];l.push({name:h,title:_.title,type:void 0===_.type?Ea.ALPHANUMERIC:_.type,dict:_.dict}),(void 0===_.visible||_.visible)&&n.displayedColumns.push(h)}}),this.columns=l,this.detailAction.observers.length>0&&this.displayedColumns.push("detail-column"),this.overview()},e.prototype.overview=function(){var a=this;this.loading||(this.selection.clear(),this.dataSource.data=[],this.loading=!0,this.rest.overview().subscribe(function(t){a.loading=!1,void 0!==a.onItem&&t.forEach(function(n){a.onItem(n)}),a.dataSource.data=t,a.loaded.emit({param:a.firstLoad,table:a}),a.firstLoad=!1},function(t){a.loading=!1}))},e.prototype.getcustomButtons=function(){return this.customButtons?this.customButtons.filter(function(a){return a.type!==Jr.ONLY_MENU&&a.type!==Jr.ACCELERATOR}):[]},e.prototype.getCustomMenu=function(){return this.customButtons?this.customButtons.filter(function(a){return a.type!==Jr.ACCELERATOR}):[]},e.prototype.getCustomAccelerators=function(){return this.customButtons?this.customButtons.filter(function(a){return a.type===Jr.ACCELERATOR}):[]},e.prototype.getRowColumn=function(a,t){var n=a[t.name];switch(t.type){case Ea.IMAGE:return this.api.safeString(this.api.gui.icon(n,"48px"));case Ea.DATE:n=Lu("SHORT_DATE_FORMAT",n);break;case Ea.DATETIME:n=Lu("SHORT_DATETIME_FORMAT",n);break;case Ea.TIME:n=Lu("TIME_FORMAT",n);break;case Ea.DATETIMESEC:n=Lu("SHORT_DATE_FORMAT",n," H:i:s");break;case Ea.ICON:try{n=this.api.gui.icon(this.types.get(a.type).icon)+n}catch(l){}return this.api.safeString(n);case Ea.CALLBACK:break;case Ea.DICTIONARY:try{n=t.dict[n]}catch(l){n=""}}return n},e.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},e.prototype.sortChanged=function(a){this.api.putOnStorage(this.tableId+"sort-column",a.active),this.api.putOnStorage(this.tableId+"sort-direction",a.direction)},e.prototype.copyToClipboard=function(){this.clipboard.copy(this.clipValue||"")},e.prototype.rowClass=function(a){var t=[];return this.selection.isSelected(a)&&t.push("selected"),null!==this.rowStyleInfo&&t.push(this.rowStyleInfo.prefix+a[this.rowStyleInfo.field]),t},e.prototype.emitIfSelection=function(a,t){void 0===t&&(t=!1);var n=this.selection.selected.length;n>0&&(!0===t||1===n)&&a.emit({table:this,param:n})},e.prototype.isCustomDisabled=function(a){switch(a.type){case void 0:case Jr.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===a.disabled;case Jr.MULTI_SELECT:return this.selection.isEmpty()||!0===a.disabled;default:return!1}},e.prototype.emitCustom=function(a){!this.selection.selected.length&&a.type!==Jr.ALWAYS||(a.type===Jr.ACCELERATOR?this.api.navigation.goto(a.id,this.selection.selected[0],a.acceleratorProperties):this.customButtonAction.emit({param:a,table:this}))},e.prototype.clickRow=function(a,t){var n=(new Date).getTime();if((this.detailAction.observers.length||this.editAction.observers.length)&&Math.abs(this.lastClickInfo.x-t.x)<16&&Math.abs(this.lastClickInfo.y-t.y)<16&&n-this.lastClickInfo.time<250)return this.selection.clear(),this.selection.select(a),void(this.detailAction.observers.length?this.detailAction.emit({param:a,table:this}):this.emitIfSelection(this.editAction,!1));this.lastClickInfo={time:n,x:t.x,y:t.y},this.doSelect(a,t)},e.prototype.doSelect=function(a,t){if(t.ctrlKey)this.lastSel=a,this.selection.toggle(a);else if(t.shiftKey){if(this.selection.isEmpty())this.selection.toggle(a);else if(this.selection.clear(),this.lastSel!==a)for(var n=!1,c=0,h=this.dataSource.sortData(this.dataSource.data,this.dataSource.sort);c/,"")),this.clipValue=""+l,this.hasActions&&(this.selection.clear(),this.selection.select(a),this.contextMenuPosition.x=n.clientX+"px",this.contextMenuPosition.y=n.clientY+"px",this.contextMenu.menuData={item:a},this.contextMenu.openMenu())},e.prototype.selectElement=function(a,t){var n=this;this.dataSource.sortData(this.dataSource.data,this.dataSource.sort).forEach(function(c,h){if(c[a]===t){var _=Math.floor(h/n.paginator.pageSize);n.selection.select(c),n.paginator.pageIndex=_,n.paginator.page.next({pageIndex:_,pageSize:n.paginator.pageSize,length:n.paginator.length})}})},e.prototype.export=function(){Dee(this)},e.prototype.permissions=function(){!this.selection.selected.length||Ise.launch(this.api,this.rest,this.selection.selected[0])},e.prototype.keyDown=function(a){switch(a.keyCode){case 36:this.paginator.firstPage(),a.preventDefault();break;case 35:this.paginator.lastPage(),a.preventDefault();break;case 39:this.paginator.nextPage(),a.preventDefault();break;case 37:this.paginator.previousPage(),a.preventDefault()}},e.\u0275fac=function(t){return new(t||e)(N(At),N(Aee))},e.\u0275cmp=Se({type:e,selectors:[["uds-table"]],viewQuery:function(t,n){if(1&t&&(wt(ole,7),wt(j5,7),wt(DP,7)),2&t){var l=void 0;Ne(l=Le())&&(n.contextMenu=l.first),Ne(l=Le())&&(n.paginator=l.first),Ne(l=Le())&&(n.sort=l.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},decls:50,vars:28,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src",4,"ngIf"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],[4,"ngIf"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],[1,"material-icons"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],["matColumnDef","selection-column",4,"ngIf"],["matColumnDef","detail-column"],[4,"matHeaderCellDef"],[4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],["class","selection",4,"ngIf"],[2,"position","fixed",3,"matMenuTriggerFor"],["trigger","matMenuTrigger"],["contextMenu","matMenu"],["matMenuContent",""],[3,"src"],[1,"wide-menu",3,"overlapTrigger"],["newMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"matMenuTriggerFor"],[1,"button-text"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["sub_menu","matMenu"],["mat-menu-item","",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"innerHTML","click"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-raised-button","",3,"disabled","innerHTML","click"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","warn",3,"disabled","click"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["matColumnDef","selection-column"],[3,"click",4,"matCellDef"],[3,"click"],["class","material-icons",4,"ngIf","ngIfElse"],["uncheck",""],[1,"detail-launcher",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"click","contextmenu",4,"matCellDef"],["mat-sort-header",""],[3,"click","contextmenu"],[3,"innerHtml"],[3,"ngClass"],[1,"selection"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","","class","menu-warn",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","spaced"],["mat-menu-item","",3,"disabled","innerHTML","click"],["mat-menu-item","",1,"menu-warn",3,"click"]],template:function(t,n){if(1&t&&(A(0,"div",0),A(1,"div",1),A(2,"div",2),re(3,sle,1,1,"img",3),Z(4),E(),A(5,"div",4),Z(6),E(),E(),A(7,"div",5),A(8,"div",6),A(9,"div",7),re(10,vle,3,2,"ng-container",8),re(11,gle,7,1,"ng-container",8),re(12,mle,7,1,"ng-container",8),re(13,yle,2,1,"ng-container",8),re(14,ble,7,0,"ng-container",8),re(15,Cle,7,1,"ng-container",8),E(),A(16,"div",9),A(17,"div",10),A(18,"uds-translate"),Z(19,"Filter"),E(),Z(20,"\xa0 "),A(21,"mat-form-field"),A(22,"input",11),ne("keyup",function(){return n.applyFilter()})("ngModelChange",function(h){return n.filterText=h}),E(),re(23,wle,3,0,"button",12),E(),E(),A(24,"div",13),me(25,"mat-paginator",14),E(),A(26,"div",15),A(27,"a",16),ne("click",function(){return n.overview()}),A(28,"i",17),Z(29,"autorenew"),E(),E(),E(),E(),E(),A(30,"div",18),ne("keydown",function(h){return n.keyDown(h)}),A(31,"mat-table",19),ne("matSortChange",function(h){return n.sortChanged(h)}),re(32,Tle,3,0,"ng-container",20),vt(33,21),re(34,Dle,1,0,"mat-header-cell",22),re(35,Ale,4,0,"mat-cell",23),xn(),re(36,Ole,3,1,"ng-container",24),re(37,Ile,1,0,"mat-header-row",25),re(38,Rle,1,1,"mat-row",26),E(),A(39,"div",27),A(40,"div",28),me(41,"mat-progress-spinner",29),E(),E(),E(),A(42,"div",30),Z(43," \xa0 "),re(44,Lle,4,1,"div",31),E(),E(),me(45,"div",32,33),A(47,"mat-menu",null,34),re(49,jle,7,7,"ng-template",35),E(),E()),2&t){var l=Pn(48);H(3),z("ngIf",void 0!==n.icon),H(1),Ve(" ",n.title," "),H(2),Ve(" ",n.subtitle," "),H(4),z("ngIf",n.newAction.observers.length>0),H(1),z("ngIf",n.editAction.observers.length>0),H(1),z("ngIf",!0===n.hasPermissions),H(1),z("ngIf",n.hasCustomButtons),H(1),z("ngIf",!0===n.allowExport),H(1),z("ngIf",n.deleteAction.observers.length>0),H(7),z("ngModel",n.filterText),H(1),z("ngIf",n.filterText),H(2),z("pageSize",n.pageSize)("hidePageSize",!0)("pageSizeOptions",rw(27,Wle))("showFirstLastButtons",!0),H(6),z("dataSource",n.dataSource),H(1),z("ngIf",n.hasButtons),H(4),z("ngForOf",n.columns),H(1),z("matHeaderRowDef",n.displayedColumns),H(1),z("matRowDefColumns",n.displayedColumns),H(1),z("hidden",!n.loading),H(5),z("ngIf",n.hasButtons&&n.selection.selected.length>0),H(1),Gr("left",n.contextMenuPosition.x)("top",n.contextMenuPosition.y),z("matMenuTriggerFor",l)}},directives:[Kt,Hn,yr,zi,g,Mt,_r,j5,mp,nX,DP,rH,nH,tH,er,rX,iX,Oee,zee,Fee,$se,PP,Rn,rk,iH,aH,pee,aX,oX,Ts,rle],pipes:[ID,ale],styles:['.mat-badge-content[_ngcontent-%COMP%]{font-weight:600;font-size:12px;font-family:Roboto,"Helvetica Neue",sans-serif}.mat-badge-small[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:9px}.mat-badge-large[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:24px}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2[_ngcontent-%COMP%], .mat-title[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3[_ngcontent-%COMP%], .mat-subheading-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:400 16px / 28px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4[_ngcontent-%COMP%], .mat-subheading-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font:400 15px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 calc(14px * .83) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 calc(14px * .67) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-body-strong[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-small[_ngcontent-%COMP%], .mat-caption[_ngcontent-%COMP%]{font:400 12px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-display-4[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-4[_ngcontent-%COMP%]{font:300 112px / 112px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-3[_ngcontent-%COMP%]{font:400 56px / 56px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-2[_ngcontent-%COMP%]{font:400 45px / 48px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-1[_ngcontent-%COMP%]{font:400 34px / 40px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-mini-fab[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-button-toggle[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500}.mat-card-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{font-size:20px}.mat-card-subtitle[_ngcontent-%COMP%], .mat-card-content[_ngcontent-%COMP%]{font-size:14px}.mat-checkbox[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-checkbox-layout[_ngcontent-%COMP%] .mat-checkbox-label[_ngcontent-%COMP%]{line-height:24px}.mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-chip[_ngcontent-%COMP%] .mat-chip-trailing-icon.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-remove.mat-icon[_ngcontent-%COMP%]{font-size:18px}.mat-table[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-header-cell[_ngcontent-%COMP%]{font-size:12px;font-weight:500}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:14px}.mat-calendar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-calendar-body[_ngcontent-%COMP%]{font-size:13px}.mat-calendar-body-label[_ngcontent-%COMP%], .mat-calendar-period-button[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-calendar-table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:11px;font-weight:400}.mat-dialog-title[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-expansion-panel-header[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field[_ngcontent-%COMP%]{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.34375em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:150%;line-height:1.125}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{height:1.5em;width:1.5em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:1.125em;line-height:1.125}.mat-form-field-infix[_ngcontent-%COMP%]{padding:.5em 0;border-top:.84375em solid transparent}.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper[_ngcontent-%COMP%]{top:-.84375em;padding-top:.84375em}.mat-form-field-label[_ngcontent-%COMP%]{top:1.34375em}.mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.34375em}.mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.7916666667em)}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);-ms-transform:translateY(-1.28125em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);-ms-transform:translateY(-1.28124em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);-ms-transform:translateY(-1.28123em) scale(.75);width:133.3333533333%}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.28125em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{margin-top:.5416666667em;top:calc(100% - 1.6666666667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.25em 0 .75em}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:1em 0}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}input.mat-input-element[_ngcontent-%COMP%]{margin-top:-.0625em}.mat-menu-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:400}.mat-paginator[_ngcontent-%COMP%], .mat-paginator-page-size[_ngcontent-%COMP%] .mat-select-trigger[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px}.mat-radio-button[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select-trigger[_ngcontent-%COMP%]{height:1.125em}.mat-slide-toggle-content[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-step-label[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.mat-step-sub-label-error[_ngcontent-%COMP%]{font-weight:normal}.mat-step-label-error[_ngcontent-%COMP%]{font-size:14px}.mat-step-label-selected[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-tab-group[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-toolbar[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0}.mat-tooltip[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset[_ngcontent-%COMP%]{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:16px}.mat-optgroup-label[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-simple-snackbar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px}.mat-simple-snackbar-action[_ngcontent-%COMP%]{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tree-node[_ngcontent-%COMP%], .mat-nested-tree-node[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale(0)}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%], .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{-webkit-animation:cdk-text-field-autofill-start 0s 1ms;animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){-webkit-animation:cdk-text-field-autofill-end 0s 1ms;animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1em;margin-bottom:1em}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.4rem}.buttons[_ngcontent-%COMP%] .mat-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#fafafa;color:#000}button.mat-menu-item[_ngcontent-%COMP%]{height:32px;line-height:32px}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:flex-end}mat-cell[_ngcontent-%COMP%]:first-of-type, mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:.5rem}mat-row[_ngcontent-%COMP%]:hover{background-color:#a0b0d0;cursor:pointer}mat-table[_ngcontent-%COMP%]{width:100%;font-weight:300}.mat-column-detail-column[_ngcontent-%COMP%]{max-width:1.5rem;justify-content:center;color:#000!important;padding-right:.5rem}.detail-launcher[_ngcontent-%COMP%]{display:none}.mat-row[_ngcontent-%COMP%]:hover .detail-launcher[_ngcontent-%COMP%]{display:block}.mat-column-selection-column[_ngcontent-%COMP%]{max-width:2rem;justify-content:center;color:#000!important}.menu-warn[_ngcontent-%COMP%]{color:red}.menu-link[_ngcontent-%COMP%]{color:#00f}.loading[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center} .mat-menu-panel{min-height:48px} .mat-paginator-range-label{min-width:6em} .dark-theme .mat-paginator-container{background-color:#303030} .dark-theme .buttons .mat-raised-button:hover:not([disabled]){background-color:#303030;color:#fff} .dark-theme .mat-column-detail-column{color:#fff!important} .dark-theme .mat-column-selection-column{color:#fff!important} .dark-theme .menu-warn{color:red} .dark-theme .menu-link{color:#00f}']}),e}(),Gee='pause'+django.gettext("Maintenance")+"",Yle='pause'+django.gettext("Exit maintenance mode")+"",qle='pause'+django.gettext("Enter maintenance mode")+"",jee=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.cButtons=[{id:"maintenance",html:Gee,type:Jr.SINGLE_SELECT}]}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New provider"),!0)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit provider"),!0)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete provider"))},e.prototype.onMaintenance=function(a){var t=this,n=a.table.selection.selected[0],l=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.yesno(django.gettext("Maintenance mode for")+" "+n.name,l).subscribe(function(c){c&&t.rest.providers.maintenance(n.id).subscribe(function(){a.table.overview()})})},e.prototype.onRowSelect=function(a){var t=a.table;this.customButtons[0].html=t.selection.selected.length>1||0===t.selection.selected.length?Gee:t.selection.selected[0].maintenance_mode?Yle:qle},e.prototype.onDetail=function(a){this.api.navigation.gotoService(a.param.id)},e.prototype.processElement=function(a){a.maintenance_state=a.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))},e.\u0275fac=function(t){return new(t||e)(N(gr),N(tn),N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-services"]],decls:1,vars:7,consts:[["tableId","service-providers","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("customButtonAction",function(c){return n.onMaintenance(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("rowSelected",function(c){return n.onRowSelect(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.providers)("onItem",n.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Hr],styles:[".row-maintenance-true>mat-cell{color:orange!important} .mat-column-services_count, .mat-column-user_services_count, .mat-column-maintenance_state{max-width:7rem;justify-content:center}"]}),e}(),Mb=function(){function e(a,t,n,l){this.title=a,this.data=t,this.columns=n,this.id=l,this.columnsDefinition=Array.from(n,function(c){var h={};return h[c.field]={visible:!0,title:c.title,type:void 0===c.type?Ea.ALPHANUMERIC:c.type},h})}return e.prototype.get=function(a){return Ar},e.prototype.getLogs=function(a){return Ar},e.prototype.overview=function(a){return"function"==typeof this.data?this.data():ut([])},e.prototype.summary=function(a){return this.overview()},e.prototype.put=function(a,t){return Ar},e.prototype.create=function(a){return Ar},e.prototype.save=function(a,t){return Ar},e.prototype.test=function(a,t){return Ar},e.prototype.delete=function(a){return Ar},e.prototype.permision=function(){return QS.ALL},e.prototype.getPermissions=function(a){return Ar},e.prototype.addPermission=function(a,t,n,l){return Ar},e.prototype.revokePermission=function(a){return Ar},e.prototype.types=function(){return ut([])},e.prototype.gui=function(a){return Ar},e.prototype.callback=function(a,t){return Ar},e.prototype.tableInfo=function(){return ut({fields:this.columnsDefinition,title:this.title})},e.prototype.detail=function(a,t){return null},e.prototype.invoke=function(a,t){return Ar},e}();function Xle(e,a){if(1&e){var t=De();A(0,"button",24),ne("click",function(){pe(t);var l=J();return l.filterText="",l.applyFilter()}),A(1,"i",8),Z(2,"close"),E(),E()}}function Zle(e,a){if(1&e&&(A(0,"mat-header-cell",28),Z(1),E()),2&e){var t=J().$implicit;H(1),On(t)}}function Kle(e,a){if(1&e&&(A(0,"mat-cell"),me(1,"div",29),E()),2&e){var t=a.$implicit,n=J().$implicit,l=J();H(1),z("innerHtml",l.getRowColumn(t,n),Si)}}function $le(e,a){1&e&&(vt(0,25),re(1,Zle,2,1,"mat-header-cell",26),re(2,Kle,2,1,"mat-cell",27),xn()),2&e&&z("matColumnDef",a.$implicit)}function Qle(e,a){1&e&&me(0,"mat-header-row")}function Jle(e,a){if(1&e&&me(0,"mat-row",30),2&e){var t=a.$implicit;z("ngClass",J().rowClass(t))}}var eue=function(){return[5,10,25,100,1e3]},ck=function(){function e(a){this.api=a,this.pageSize=10,this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new bee([]),this.selection=new ip}return e.prototype.ngOnInit=function(){var a=this;this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sort.active=this.api.getFromStorage("logs-sort-column")||"date",this.dataSource.sort.direction=this.api.getFromStorage("logs-sort-direction")||"desc",this.displayedColumns.forEach(function(t){a.columns.push({name:t,title:t,type:"date"===t?Ea.DATETIMESEC:Ea.ALPHANUMERIC})}),this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()},e.prototype.overview=function(){var a=this;this.rest.getLogs(this.itemId).subscribe(function(t){a.dataSource.data=t})},e.prototype.selectElement=function(a,t){},e.prototype.getRowColumn=function(a,t){var n=a[t];return"date"===t?n=Lu("SHORT_DATE_FORMAT",n," H:i:s"):"level"===t&&(n=function(e){return{1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"}[e]||"OTHER"}(n)),n},e.prototype.rowClass=function(a){return["level-"+a.level]},e.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},e.prototype.sortChanged=function(a){this.api.putOnStorage("logs-sort-column",a.active),this.api.putOnStorage("logs-sort-direction",a.direction)},e.prototype.export=function(){Dee(this)},e.prototype.keyDown=function(a){switch(a.keyCode){case 36:this.paginator.firstPage(),a.preventDefault();break;case 35:this.paginator.lastPage(),a.preventDefault();break;case 39:this.paginator.nextPage(),a.preventDefault();break;case 37:this.paginator.previousPage(),a.preventDefault()}},e.\u0275fac=function(t){return new(t||e)(N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-logs-table"]],viewQuery:function(t,n){if(1&t&&(wt(j5,7),wt(DP,7)),2&t){var l=void 0;Ne(l=Le())&&(n.paginator=l.first),Ne(l=Le())&&(n.sort=l.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:36,vars:12,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"click"],[1,"material-icons"],[1,"button-text"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""],[3,"innerHtml"],[3,"ngClass"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"div",2),me(3,"img",3),Z(4," \xa0"),A(5,"uds-translate"),Z(6,"Logs"),E(),E(),E(),A(7,"div",4),A(8,"div",5),A(9,"div",6),A(10,"a",7),ne("click",function(){return n.export()}),A(11,"i",8),Z(12,"import_export"),E(),A(13,"span",9),A(14,"uds-translate"),Z(15,"Export"),E(),E(),E(),E(),A(16,"div",10),A(17,"div",11),A(18,"uds-translate"),Z(19,"Filter"),E(),Z(20,"\xa0 "),A(21,"mat-form-field"),A(22,"input",12),ne("keyup",function(){return n.applyFilter()})("ngModelChange",function(c){return n.filterText=c}),E(),re(23,Xle,3,0,"button",13),E(),E(),A(24,"div",14),me(25,"mat-paginator",15),E(),A(26,"div",16),A(27,"a",17),ne("click",function(){return n.overview()}),A(28,"i",8),Z(29,"autorenew"),E(),E(),E(),E(),E(),A(30,"div",18),ne("keydown",function(c){return n.keyDown(c)}),A(31,"mat-table",19),ne("matSortChange",function(c){return n.sortChanged(c)}),re(32,$le,3,1,"ng-container",20),re(33,Qle,1,0,"mat-header-row",21),re(34,Jle,1,1,"mat-row",22),E(),E(),me(35,"div",23),E(),E()),2&t&&(H(3),z("src",n.api.staticURL("admin/img/icons/logs.png"),Lt),H(19),z("ngModel",n.filterText),H(1),z("ngIf",n.filterText),H(2),z("pageSize",n.pageSize)("hidePageSize",!0)("pageSizeOptions",rw(11,eue))("showFirstLastButtons",!0),H(6),z("dataSource",n.dataSource),H(1),z("ngForOf",n.displayedColumns),H(1),z("matHeaderRowDef",n.displayedColumns),H(1),z("matRowDefColumns",n.displayedColumns))},directives:[Hn,mp,yr,zi,g,Mt,_r,Kt,j5,nX,DP,er,rX,iX,Rn,rk,rH,nH,tH,iH,pee,aH,aX,oX,Ts],styles:[".header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{max-width:160px}.mat-column-level[_ngcontent-%COMP%]{max-width:96px;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:128px} .level-60000>.mat-cell{color:#ff1e1e!important} .level-50000>.mat-cell{color:#ff1e1e!important} .level-40000>.mat-cell{color:#d65014!important}"]}),e}();function tue(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Services pools"),E())}function nue(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Logs"),E())}var rue=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],iue=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.customButtons=[Il.getGotoButton(Nq,"id")],this.services=l.services,this.service=l.service}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:n,services:t},disableClose:!1})},e.prototype.ngOnInit=function(){var a=this;this.servicePools=new Mb(django.gettext("Service pools"),function(){return a.services.invoke(a.service.id+"/servicesPools")},rue,this.service.id+"infopsls")},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-information"]],decls:17,vars:8,consts:[["mat-dialog-title",""],["mat-tab-label",""],[3,"rest","customButtons","pageSize"],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),Z(2,"Information for"),E(),Z(3),E(),A(4,"mat-dialog-content"),A(5,"mat-tab-group"),A(6,"mat-tab"),re(7,tue,2,0,"ng-template",1),me(8,"uds-table",2),E(),A(9,"mat-tab"),re(10,nue,2,0,"ng-template",1),A(11,"div",3),me(12,"uds-logs-table",4),E(),E(),E(),E(),A(13,"mat-dialog-actions"),A(14,"button",5),A(15,"uds-translate"),Z(16,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.service.name,"\n"),H(5),z("rest",n.servicePools)("customButtons",n.customButtons)("pageSize",6),H(4),z("rest",n.services)("itemId",n.service.id)("tableId","serviceInfo-d-log"+n.service.id)("pageSize",5))},directives:[Yr,Hn,Fr,Nc,Ru,Fc,Hr,ck,Qr,Rn,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-column-count[_ngcontent-%COMP%], .mat-column-image[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{max-width:7rem;justify-content:center}.navigation[_ngcontent-%COMP%]{margin-top:1rem;display:flex;justify-content:flex-end;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}"]}),e}();function aue(e,a){if(1&e&&(A(0,"div",3),me(1,"div",4),me(2,"div",5),E()),2&e){var t=a.$implicit;H(1),z("innerHTML",t.gui.label,Si),H(1),z("innerHTML",t.value,Si)}}var lH=function(){function e(a){this.api=a,this.displayables=null}return e.prototype.ngOnInit=function(){this.processFields()},e.prototype.processFields=function(){var a=this;if(!this.gui||!this.value)return[];var t=this.gui.filter(function(n){return n.gui.type!==Pl.HIDDEN});t.forEach(function(n){var l=a.value[n.name];switch(n.gui.type){case Pl.CHECKBOX:n.value=l?django.gettext("Yes"):django.gettext("No");break;case Pl.PASSWORD:n.value=django.gettext("(hidden)");break;case Pl.CHOICE:var c=M5.locateChoice(l,n);n.value=c.text;break;case Pl.MULTI_CHOICE:n.value=django.gettext("Selected items :")+l.length;break;case Pl.IMAGECHOICE:c=M5.locateChoice(l,n),n.value=a.api.safeString(a.api.gui.icon(c.img)+" "+c.text);break;default:n.value=l}(""===n.value||null==n.value)&&(n.value="(empty)")}),this.displayables=t},e.\u0275fac=function(t){return new(t||e)(N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),re(2,aue,3,2,"div",2),E(),me(3,"div"),E()),2&t&&(H(2),z("ngForOf",n.displayables))},directives:[er],styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:bold;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]}),e}();function oue(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Summary"),E())}function sue(e,a){if(1&e&&me(0,"uds-information",15),2&e){var t=J(2);z("value",t.provider)("gui",t.gui)}}function lue(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Services"),E())}function uue(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Usage"),E())}function cue(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Logs"),E())}function fue(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return pe(t),J().selectedTab=c}),A(3,"mat-tab"),re(4,oue,2,0,"ng-template",9),A(5,"div",10),re(6,sue,1,2,"uds-information",11),E(),E(),A(7,"mat-tab"),re(8,lue,2,0,"ng-template",9),A(9,"div",10),A(10,"uds-table",12),ne("newAction",function(c){return pe(t),J().onNewService(c)})("editAction",function(c){return pe(t),J().onEditService(c)})("deleteAction",function(c){return pe(t),J().onDeleteService(c)})("customButtonAction",function(c){return pe(t),J().onInformation(c)})("loaded",function(c){return pe(t),J().onLoad(c)}),E(),E(),E(),A(11,"mat-tab"),re(12,uue,2,0,"ng-template",9),A(13,"div",10),A(14,"uds-table",13),ne("deleteAction",function(c){return pe(t),J().onDeleteUsage(c)}),E(),E(),E(),A(15,"mat-tab"),re(16,cue,2,0,"ng-template",9),A(17,"div",10),me(18,"uds-logs-table",14),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("selectedIndex",n.selectedTab)("@.disabled",!0),H(4),z("ngIf",n.provider&&n.gui),H(4),z("rest",n.services)("multiSelect",!0)("allowExport",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)("tableId","providers-d-services"+n.provider.id),H(4),z("rest",n.usage)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size)("tableId","providers-d-usage"+n.provider.id),H(4),z("rest",n.services.parentModel)("itemId",n.provider.id)("tableId","providers-d-log"+n.provider.id)}}var due=function(e){return["/providers",e]},Wee=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Jr.ONLY_MENU}],this.provider=null,this.selectedTab=1}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("provider");this.services=this.rest.providers.detail(t,"services"),this.usage=this.rest.providers.detail(t,"usage"),this.services.parentModel.get(t).subscribe(function(n){a.provider=n,a.services.parentModel.gui(n.type).subscribe(function(l){a.gui=l})})},e.prototype.onInformation=function(a){iue.launch(this.api,this.services,a.table.selection.selected[0])},e.prototype.onNewService=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New service"),!1)},e.prototype.onEditService=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit service"),!1)},e.prototype.onDeleteService=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete service"))},e.prototype.onDeleteUsage=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete user service"))},e.prototype.onLoad=function(a){if(!0===a.param){var t=this.route.snapshot.paramMap.get("service");if(void 0!==t){this.selectedTab=1;var n=a.table;n.dataSource.data.forEach(function(l){l.id===t&&n.selection.select(l)})}}},e.\u0275fac=function(t){return new(t||e)(N(gr),N(tn),N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-services-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"rest","multiSelect","allowExport","customButtons","pageSize","tableId","newAction","editAction","deleteAction","customButtonAction","loaded"],["icon","usage",3,"rest","multiSelect","allowExport","pageSize","tableId","deleteAction"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),Z(4,"arrow_back"),E(),E(),Z(5," \xa0"),me(6,"img",4),Z(7),E(),re(8,fue,19,17,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,due,n.services.parentId)),H(4),z("src",n.api.staticURL("admin/img/icons/services.png"),Lt),H(1),Ve(" \xa0",null==n.provider?null:n.provider.name," "),H(1),z("ngIf",null!==n.provider))},directives:[xl,Kt,Nc,Ru,Fc,Hr,ck,Hn,lH],styles:[""]}),e}(),Yee=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("authenticator")},e.prototype.onDetail=function(a){this.api.navigation.gotoAuthenticatorDetail(a.param.id)},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Authenticator"),!0)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Authenticator"),!0)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Authenticator"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))},e.prototype.processElement=function(a){a.visible=this.api.yesno(a.visible)},e.\u0275fac=function(t){return new(t||e)(N(At),N(gr),N(tn))},e.\u0275cmp=Se({type:e,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",n.processElement)("pageSize",n.api.config.admin.page_size))},directives:[Hr],styles:[""]}),e}(),hue=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("authenticator")},e.prototype.onDetail=function(a){this.api.navigation.gotoAuthenticatorDetail(a.param.id)},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Authenticator"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Authenticator"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Authenticator"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))},e.prototype.processElement=function(a){a.visible=this.api.yesno(a.visible)},e.\u0275fac=function(t){return new(t||e)(N(At),N(gr),N(tn))},e.\u0275cmp=Se({type:e,selectors:[["uds-mfas"]],decls:2,vars:6,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.mfas)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",n.processElement)("pageSize",n.api.config.admin.page_size))},directives:[Hr],styles:[""]}),e}(),pue=["panel"];function vue(e,a){if(1&e&&(A(0,"div",0,1),Wt(2),E()),2&e){var t=a.id,n=J();z("id",n.id)("ngClass",n._classList),Ke("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(t))}}var gue=["*"],mue=0,_ue=function e(a,t){F(this,e),this.source=a,this.option=t},yue=El(function(){return function e(){F(this,e)}}()),qee=new Ee("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),Cue=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_){var C;return F(this,n),(C=t.call(this))._changeDetectorRef=l,C._elementRef=c,C._activeOptionChanges=Be.EMPTY,C.showPanel=!1,C._isOpen=!1,C.displayWith=null,C.optionSelected=new ye,C.opened=new ye,C.closed=new ye,C.optionActivated=new ye,C._classList={},C.id="mat-autocomplete-".concat(mue++),C.inertGroups=(null==_?void 0:_.SAFARI)||!1,C._autoActiveFirstOption=!!h.autoActiveFirstOption,C}return W(n,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(c){this._autoActiveFirstOption=it(c)}},{key:"classList",set:function(c){this._classList=c&&c.length?G3(c).reduce(function(h,_){return h[_]=!0,h},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var c=this;this._keyManager=new wE(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(h){c.optionActivated.emit({source:c,option:c.options.toArray()[h]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(c){this.panel&&(this.panel.nativeElement.scrollTop=c)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(c){var h=new _ue(this,c);this.optionSelected.emit(h)}},{key:"_getPanelAriaLabelledby",value:function(c){return this.ariaLabel?null:this.ariaLabelledby?(c?c+" ":"")+this.ariaLabelledby:c}},{key:"_setVisibilityClasses",value:function(c){c[this._visibleClass]=this.showPanel,c[this._hiddenClass]=!this.showPanel}}]),n}(yue);return e.\u0275fac=function(t){return new(t||e)(N(Bt),N(Ue),N(qee),N(en))},e.\u0275dir=ve({type:e,viewQuery:function(t,n){var l;1&t&&(wt(Xn,7),wt(pue,5)),2&t&&(Ne(l=Le())&&(n.template=l.first),Ne(l=Le())&&(n.panel=l.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Pe]}),e}(),cX=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._visibleClass="mat-autocomplete-visible",l._hiddenClass="mat-autocomplete-hidden",l}return n}(Cue);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275cmp=Se({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(t,n,l){var c;1&t&&(Zt(l,GS,5),Zt(l,Pi,5)),2&t&&(Ne(c=Le())&&(n.optionGroups=c),Ne(c=Le())&&(n.options=c))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[Xe([{provide:Bg,useExisting:e}]),Pe],ngContentSelectors:gue,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,n){1&t&&(rr(),re(0,vue,3,4,"ng-template"))},directives:[Ts],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),e}(),Xee=new Ee("mat-autocomplete-scroll-strategy"),kue={provide:Xee,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Mue={provide:s,useExisting:Sn(function(){return uH}),multi:!0},xue=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D,I,L){var G=this;F(this,a),this._element=t,this._overlay=n,this._viewContainerRef=l,this._zone=c,this._changeDetectorRef=h,this._dir=C,this._formField=k,this._document=D,this._viewportRuler=I,this._defaults=L,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Be.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new qe,this._windowBlurHandler=function(){G._canOpenOnNextFocus=G._document.activeElement!==G._element.nativeElement||G.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Ly(function(){return G.autocomplete&&G.autocomplete.options?ot.apply(void 0,Et(G.autocomplete.options.map(function(Y){return Y.onSelectionChange}))):G._zone.onStable.pipe(or(1),Ta(function(){return G.optionSelections}))}),this._scrollStrategy=_}return W(a,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(n){this._autocompleteDisabled=it(n)}},{key:"ngAfterViewInit",value:function(){var n=this,l=this._getWindow();void 0!==l&&this._zone.runOutsideAngular(function(){return l.addEventListener("blur",n._windowBlurHandler)})}},{key:"ngOnChanges",value:function(n){n.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var n=this._getWindow();void 0!==n&&n.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var n=this;return ot(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(vr(function(){return n._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(vr(function(){return n._overlayAttached})):ut()).pipe(He(function(l){return l instanceof d5?l:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var n=this;return ot(Tl(this._document,"click"),Tl(this._document,"auxclick"),Tl(this._document,"touchend")).pipe(vr(function(l){var c=rp(l),h=n._formField?n._formField._elementRef.nativeElement:null,_=n.connectedTo?n.connectedTo.elementRef.nativeElement:null;return n._overlayAttached&&c!==n._element.nativeElement&&(!h||!h.contains(c))&&(!_||!_.contains(c))&&!!n._overlayRef&&!n._overlayRef.overlayElement.contains(c)}))}},{key:"writeValue",value:function(n){var l=this;Promise.resolve(null).then(function(){return l._setTriggerValue(n)})}},{key:"registerOnChange",value:function(n){this._onChange=n}},{key:"registerOnTouched",value:function(n){this._onTouched=n}},{key:"setDisabledState",value:function(n){this._element.nativeElement.disabled=n}},{key:"_handleKeydown",value:function(n){var l=n.keyCode;if(27===l&&!Bi(n)&&n.preventDefault(),this.activeOption&&13===l&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){var c=this.autocomplete._keyManager.activeItem,h=38===l||40===l;this.panelOpen||9===l?this.autocomplete._keyManager.onKeydown(n):h&&this._canOpen()&&this.openPanel(),(h||this.autocomplete._keyManager.activeItem!==c)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(n){var l=n.target,c=l.value;"number"===l.type&&(c=""==c?null:parseFloat(c)),this._previousValue!==c&&(this._previousValue=c,this._onChange(c),this._canOpen()&&this._document.activeElement===n.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(n?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var n=this;return ot(this._zone.onStable.pipe(or(1)),this.autocomplete.options.changes.pipe(Ya(function(){return n._positionStrategy.reapplyLastPosition()}),oH(0))).pipe(Ta(function(){var h=n.panelOpen;return n._resetActiveItem(),n.autocomplete._setVisibility(),n.panelOpen&&(n._overlayRef.updatePosition(),h!==n.panelOpen&&n.autocomplete.opened.emit()),n.panelClosingActions}),or(1)).subscribe(function(h){return n._setValueAndClose(h)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(n){var l=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(n):n,c=null!=l?l:"";this._formField?this._formField._control.value=c:this._element.nativeElement.value=c,this._previousValue=c}},{key:"_setValueAndClose",value:function(n){n&&n.source&&(this._clearPreviousSelectedOption(n.source),this._setTriggerValue(n.source.value),this._onChange(n.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(n.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(n){this.autocomplete.options.forEach(function(l){l!==n&&l.selected&&l.deselect()})}},{key:"_attachOverlay",value:function(){var l,n=this,c=this._overlayRef;c?(this._positionStrategy.setOrigin(this._getConnectedElement()),c.updateSize({width:this._getPanelWidth()})):(this._portal=new Ps(this.autocomplete.template,this._viewContainerRef,{id:null===(l=this._formField)||void 0===l?void 0:l.getLabelId()}),c=this._overlay.create(this._getOverlayConfig()),this._overlayRef=c,c.keydownEvents().subscribe(function(_){(27===_.keyCode&&!Bi(_)||38===_.keyCode&&Bi(_,"altKey"))&&(n._resetActiveItem(),n._closeKeyEventStream.next(),_.stopPropagation(),_.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){n.panelOpen&&c&&c.updateSize({width:n._getPanelWidth()})})),c&&!c.hasAttached()&&(c.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var h=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&h!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var n;return new up({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(n=this._defaults)||void 0===n?void 0:n.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var n=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(n),this._positionStrategy=n,n}},{key:"_setStrategyPositions",value:function(n){var _,l=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],c=this._aboveClass,h=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:c},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:c}];_="above"===this.position?h:"below"===this.position?l:[].concat(l,h),n.withPositions(_)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var n=this.autocomplete;n.autoActiveFirstOption?n._keyManager.setFirstItemActive():n._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var n=this._element.nativeElement;return!n.readOnly&&!n.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var n;return(null===(n=this._document)||void 0===n?void 0:n.defaultView)||window}},{key:"_scrollToOption",value:function(n){var l=this.autocomplete,c=jS(n,l.options,l.optionGroups);if(0===n&&1===c)l._setScrollTop(0);else if(l.panel){var h=l.options.toArray()[n];if(h){var _=h._getHostElement(),C=Cb(_.offsetTop,_.offsetHeight,l._getScrollTop(),l.panel.nativeElement.offsetHeight);l._setScrollTop(C)}}}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Ai),N($n),N(ft),N(Bt),N(Xee),N(Mr,8),N(ik,9),N(lt,8),N(yo),N(qee,8))},e.\u0275dir=ve({type:e,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[on]}),e}(),uH=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){var l;return F(this,n),(l=t.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",l}return n}(xue);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,n){1&t&&ne("focusin",function(){return n._handleFocus()})("blur",function(){return n._onTouched()})("input",function(c){return n._handleInput(c)})("keydown",function(c){return n._handleKeydown(c)}),2&t&&Ke("autocomplete",n.autocompleteAttribute)("role",n.autocompleteDisabled?null:"combobox")("aria-autocomplete",n.autocompleteDisabled?null:"list")("aria-activedescendant",n.panelOpen&&n.activeOption?n.activeOption.id:null)("aria-expanded",n.autocompleteDisabled?null:n.panelOpen.toString())("aria-owns",n.autocompleteDisabled||!n.panelOpen||null==n.autocomplete?null:n.autocomplete.id)("aria-haspopup",!n.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[Xe([Mue]),Pe]}),e}(),Tue=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[kue],imports:[[fp,WS,$t,Wa],lp,WS,$t]}),e}();function Due(e,a){if(1&e&&(A(0,"div"),A(1,"uds-translate"),Z(2,"Edit user"),E(),Z(3),E()),2&e){var t=J();H(3),Ve(" ",t.user.name," ")}}function Aue(e,a){1&e&&(A(0,"uds-translate"),Z(1,"New user"),E())}function Eue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),Z(2),E(),A(3,"input",19),ne("ngModelChange",function(c){return pe(t),J().user.name=c}),E(),E()}if(2&e){var n=J();H(2),Ve(" ",n.authenticator.type_info.userNameLabel," "),H(1),z("ngModel",n.user.name)("disabled",n.user.id)}}function Pue(e,a){if(1&e&&(A(0,"mat-option",22),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Cv(" ",t.id," (",t.name,") ")}}function Oue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),Z(2),E(),A(3,"input",20),ne("ngModelChange",function(h){return pe(t),J().user.name=h})("input",function(h){return pe(t),J().filterUser(h)}),E(),A(4,"mat-autocomplete",null,21),re(6,Pue,2,3,"mat-option",16),E(),E()}if(2&e){var n=Pn(5),l=J();H(2),Ve(" ",l.authenticator.type_info.userNameLabel," "),H(1),z("ngModel",l.user.name)("matAutocomplete",n),H(3),z("ngForOf",l.users)}}function Iue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),Z(2),E(),A(3,"input",23),ne("ngModelChange",function(c){return pe(t),J().user.password=c}),E(),E()}if(2&e){var n=J();H(2),Ve(" ",n.authenticator.type_info.passwordLabel," "),H(1),z("ngModel",n.user.password)}}function Rue(e,a){if(1&e&&(A(0,"mat-option",22),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}var Zee=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.users=[],this.authenticator=l.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",groups:[]},void 0!==l.user&&(this.user.id=l.user.id,this.user.name=l.user.name)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:t,user:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.detail(this.authenticator.id,"groups").overview().subscribe(function(t){a.groups=t}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).subscribe(function(t){a.user=t,a.user.role=t.is_admin?"admin":t.staff_member?"staff":"user"},function(t){a.dialogRef.close()})},e.prototype.roleChanged=function(a){this.user.is_admin="admin"===a,this.user.staff_member="admin"===a||"staff"===a},e.prototype.filterUser=function(a){var t=this;this.rest.authenticators.search(this.authenticator.id,"user",a.target.value,100).subscribe(function(l){t.users.length=0,l.forEach(function(c){t.users.push(c)})})},e.prototype.save=function(){var a=this;this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).subscribe(function(t){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-new-user"]],decls:60,vars:11,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],[4,"ngIf"],["type","text","matInput","","autocomplete","new-real_name",3,"ngModel","ngModelChange"],["type","text","matInput","","autocomplete","new-comments",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["value","B"],[3,"ngModel","ngModelChange","valueChange"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","","autocomplete","new-username",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value"],["type","password","matInput","","autocomplete","new-password",3,"ngModel","ngModelChange"]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,Due,4,1,"div",1),re(2,Aue,2,0,"ng-template",null,2,ml),E(),A(4,"mat-dialog-content"),A(5,"div",3),re(6,Eue,4,3,"mat-form-field",4),re(7,Oue,7,4,"mat-form-field",4),A(8,"mat-form-field"),A(9,"mat-label"),A(10,"uds-translate"),Z(11,"Real name"),E(),E(),A(12,"input",5),ne("ngModelChange",function(h){return n.user.real_name=h}),E(),E(),A(13,"mat-form-field"),A(14,"mat-label"),A(15,"uds-translate"),Z(16,"Comments"),E(),E(),A(17,"input",6),ne("ngModelChange",function(h){return n.user.comments=h}),E(),E(),A(18,"mat-form-field"),A(19,"mat-label"),A(20,"uds-translate"),Z(21,"State"),E(),E(),A(22,"mat-select",7),ne("ngModelChange",function(h){return n.user.state=h}),A(23,"mat-option",8),A(24,"uds-translate"),Z(25,"Enabled"),E(),E(),A(26,"mat-option",9),A(27,"uds-translate"),Z(28,"Disabled"),E(),E(),A(29,"mat-option",10),A(30,"uds-translate"),Z(31,"Blocked"),E(),E(),E(),E(),A(32,"mat-form-field"),A(33,"mat-label"),A(34,"uds-translate"),Z(35,"Role"),E(),E(),A(36,"mat-select",11),ne("ngModelChange",function(h){return n.user.role=h})("valueChange",function(h){return n.roleChanged(h)}),A(37,"mat-option",12),A(38,"uds-translate"),Z(39,"Admin"),E(),E(),A(40,"mat-option",13),A(41,"uds-translate"),Z(42,"Staff member"),E(),E(),A(43,"mat-option",14),A(44,"uds-translate"),Z(45,"User"),E(),E(),E(),E(),re(46,Iue,4,2,"mat-form-field",4),A(47,"mat-form-field"),A(48,"mat-label"),A(49,"uds-translate"),Z(50,"Groups"),E(),E(),A(51,"mat-select",15),ne("ngModelChange",function(h){return n.user.groups=h}),re(52,Rue,2,2,"mat-option",16),E(),E(),E(),E(),A(53,"mat-dialog-actions"),A(54,"button",17),A(55,"uds-translate"),Z(56,"Cancel"),E(),E(),A(57,"button",18),ne("click",function(){return n.save()}),A(58,"uds-translate"),Z(59,"Ok"),E(),E(),E()),2&t){var l=Pn(3);H(1),z("ngIf",n.user.id)("ngIfElse",l),H(5),z("ngIf",!1===n.authenticator.type_info.canSearchUsers||n.user.id),H(1),z("ngIf",!0===n.authenticator.type_info.canSearchUsers&&!n.user.id),H(5),z("ngModel",n.user.real_name),H(5),z("ngModel",n.user.comments),H(5),z("ngModel",n.user.state),H(14),z("ngModel",n.user.role),H(10),z("ngIf",n.authenticator.type_info.needsPassword),H(5),z("ngModel",n.user.groups),H(1),z("ngForOf",n.groups)}},directives:[Yr,Kt,Fr,yr,Br,Hn,zi,g,Mt,_r,$a,Pi,er,Qr,Rn,Lr,uH,cX],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),Lue=["thumbContainer"],Fue=["toggleBar"],Nue=["input"],Vue=function(a){return{enterDuration:a}},Bue=["*"],Hue=new Ee("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),zue=0,Uue={provide:s,useExisting:Sn(function(){return fk}),multi:!0},Gue=function e(a,t){F(this,e),this.source=a,this.checked=t},jue=gp(Eu(El(aa(function(){return function e(a){F(this,e),this._elementRef=a}}())))),fk=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this,l))._focusMonitor=c,D._changeDetectorRef=h,D.defaults=C,D._onChange=function(I){},D._onTouched=function(){},D._uniqueId="mat-slide-toggle-".concat(++zue),D._required=!1,D._checked=!1,D.name=null,D.id=D._uniqueId,D.labelPosition="after",D.ariaLabel=null,D.ariaLabelledby=null,D.change=new ye,D.toggleChange=new ye,D.tabIndex=parseInt(_)||0,D.color=D.defaultColor=C.color||"accent",D._noopAnimations="NoopAnimations"===k,D}return W(n,[{key:"required",get:function(){return this._required},set:function(c){this._required=it(c)}},{key:"checked",get:function(){return this._checked},set:function(c){this._checked=it(c),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var c=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(h){"keyboard"===h||"program"===h?c._inputElement.nativeElement.focus():h||Promise.resolve().then(function(){return c._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(c){c.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(c){c.stopPropagation()}},{key:"writeValue",value:function(c){this.checked=!!c}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(c,h){h?this._focusMonitor.focusVia(this._inputElement,h,c):this._inputElement.nativeElement.focus(c)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new Gue(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),n}(jue);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ia),N(Bt),Ci("tabindex"),N(Hue),N(Un,8))},e.\u0275cmp=Se({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(t,n){var l;1&t&&(wt(Lue,5),wt(Fue,5),wt(Nue,5)),2&t&&(Ne(l=Le())&&(n._thumbEl=l.first),Ne(l=Le())&&(n._thumbBarEl=l.first),Ne(l=Le())&&(n._inputElement=l.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,n){2&t&&(Ki("id",n.id),Ke("tabindex",n.disabled?null:-1)("aria-label",null)("aria-labelledby",null),dt("mat-checked",n.checked)("mat-disabled",n.disabled)("mat-slide-toggle-label-before","before"==n.labelPosition)("_mat-animation-noopable",n._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked",ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Xe([Uue]),Pe],ngContentSelectors:Bue,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,n){if(1&t&&(rr(),A(0,"label",0,1),A(2,"div",2,3),A(4,"input",4,5),ne("change",function(_){return n._onChangeEvent(_)})("click",function(_){return n._onInputClick(_)}),E(),A(6,"div",6,7),me(8,"div",8),A(9,"div",9),me(10,"div",10),E(),E(),E(),A(11,"span",11,12),ne("cdkObserveContent",function(){return n._onLabelTextChange()}),A(13,"span",13),Z(14,"\xa0"),E(),Wt(15),E(),E()),2&t){var l=Pn(1),c=Pn(12);Ke("for",n.inputId),H(2),dt("mat-slide-toggle-bar-no-side-margin",!c.textContent||!c.textContent.trim()),H(2),z("id",n.inputId)("required",n.required)("tabIndex",n.tabIndex)("checked",n.checked)("disabled",n.disabled),Ke("name",n.name)("aria-checked",n.checked.toString())("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),H(5),z("matRippleTrigger",l)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",vl(18,Vue,n._noopAnimations?0:150))}},directives:[Ls,nb],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),e}(),Wue={provide:b,useExisting:Sn(function(){return Kee}),multi:!0},Kee=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return n}(R5);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275dir=ve({type:e,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[Xe([Wue]),Pe]}),e}(),$ee=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),Yue=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$ee,Aa,$t,ld],$ee,$t]}),e}();function que(e,a){if(1&e&&(A(0,"div"),A(1,"uds-translate"),Z(2,"Edit group"),E(),Z(3),E()),2&e){var t=J();H(3),Ve(" ",t.group.name," ")}}function Xue(e,a){1&e&&(A(0,"uds-translate"),Z(1,"New group"),E())}function Zue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),Z(2),E(),A(3,"input",13),ne("ngModelChange",function(c){return pe(t),J(2).group.name=c}),E(),E()}if(2&e){var n=J(2);H(2),Ve(" ",n.authenticator.type_info.groupNameLabel," "),H(1),z("ngModel",n.group.name)("disabled",n.group.id)}}function Kue(e,a){if(1&e&&(A(0,"mat-option",17),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Cv(" ",t.id," (",t.name,") ")}}function $ue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),Z(2),E(),A(3,"input",14),ne("ngModelChange",function(h){return pe(t),J(2).group.name=h})("input",function(h){return pe(t),J(2).filterGroup(h)}),E(),A(4,"mat-autocomplete",null,15),re(6,Kue,2,3,"mat-option",16),E(),E()}if(2&e){var n=Pn(5),l=J(2);H(2),Ve(" ",l.authenticator.type_info.groupNameLabel," "),H(1),z("ngModel",l.group.name)("matAutocomplete",n),H(3),z("ngForOf",l.fltrGroup)}}function Que(e,a){if(1&e&&(vt(0),re(1,Zue,4,3,"mat-form-field",12),re(2,$ue,7,4,"mat-form-field",12),xn()),2&e){var t=J();H(1),z("ngIf",!1===t.authenticator.type_info.canSearchGroups||t.group.id),H(1),z("ngIf",!0===t.authenticator.type_info.canSearchGroups&&!t.group.id)}}function Jue(e,a){if(1&e){var t=De();A(0,"mat-form-field"),A(1,"mat-label"),A(2,"uds-translate"),Z(3,"Meta group name"),E(),E(),A(4,"input",13),ne("ngModelChange",function(c){return pe(t),J().group.name=c}),E(),E()}if(2&e){var n=J();H(4),z("ngModel",n.group.name)("disabled",n.group.id)}}function ece(e,a){if(1&e&&(A(0,"mat-option",17),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function tce(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),A(3,"uds-translate"),Z(4,"Service Pools"),E(),E(),A(5,"mat-select",18),ne("ngModelChange",function(c){return pe(t),J().group.pools=c}),re(6,ece,2,2,"mat-option",16),E(),E(),xn()}if(2&e){var n=J();H(5),z("ngModel",n.group.pools),H(1),z("ngForOf",n.servicePools)}}function nce(e,a){if(1&e&&(A(0,"mat-option",17),Z(1),E()),2&e){var t=J().$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function rce(e,a){if(1&e&&(vt(0),re(1,nce,2,2,"mat-option",22),xn()),2&e){var t=a.$implicit;H(1),z("ngIf","group"===t.type)}}function ice(e,a){if(1&e){var t=De();A(0,"div",19),A(1,"span",20),A(2,"uds-translate"),Z(3,"Match mode"),E(),E(),A(4,"mat-slide-toggle",6),ne("ngModelChange",function(c){return pe(t),J().group.meta_if_any=c}),Z(5),E(),E(),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),Z(9,"Selected Groups"),E(),E(),A(10,"mat-select",18),ne("ngModelChange",function(c){return pe(t),J().group.groups=c}),re(11,rce,2,1,"ng-container",21),E(),E()}if(2&e){var n=J();H(4),z("ngModel",n.group.meta_if_any),H(1),Ve(" ",n.getMatchValue()," "),H(5),z("ngModel",n.group.groups),H(1),z("ngForOf",n.groups)}}var Qee=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.fltrGroup=[],this.authenticator=l.authenticator,this.group={id:void 0,type:l.groupType,name:"",comments:"",meta_if_any:!1,state:"A",groups:[],pools:[]},void 0!==l.group&&(this.group.id=l.group.id,this.group.type=l.group.type,this.group.name=l.group.name)}return e.launch=function(a,t,n,l){var c=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:t,groupType:n,group:l},disableClose:!0}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this,t=this.rest.authenticators.detail(this.authenticator.id,"groups");void 0!==this.group.id&&t.get(this.group.id).subscribe(function(n){a.group=n},function(n){a.dialogRef.close()}),"meta"===this.group.type?t.summary().subscribe(function(n){return a.groups=n}):this.rest.servicesPools.summary().subscribe(function(n){return a.servicePools=n})},e.prototype.filterGroup=function(a){var t=this;this.rest.authenticators.search(this.authenticator.id,"group",a.target.value,100).subscribe(function(l){t.fltrGroup.length=0,l.forEach(function(c){t.fltrGroup.push(c)})})},e.prototype.getMatchValue=function(){return this.group.meta_if_any?django.gettext("Any"):django.gettext("All")},e.prototype.save=function(){var a=this;this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).subscribe(function(t){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-new-group"]],decls:35,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],["metafirst",""],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["metasecond",""],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-match"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,que,4,1,"div",1),re(2,Xue,2,0,"ng-template",null,2,ml),E(),A(4,"mat-dialog-content"),A(5,"div",3),re(6,Que,3,2,"ng-container",1),re(7,Jue,5,2,"ng-template",null,4,ml),A(9,"mat-form-field"),A(10,"mat-label"),A(11,"uds-translate"),Z(12,"Comments"),E(),E(),A(13,"input",5),ne("ngModelChange",function(C){return n.group.comments=C}),E(),E(),A(14,"mat-form-field"),A(15,"mat-label"),A(16,"uds-translate"),Z(17,"State"),E(),E(),A(18,"mat-select",6),ne("ngModelChange",function(C){return n.group.state=C}),A(19,"mat-option",7),A(20,"uds-translate"),Z(21,"Enabled"),E(),E(),A(22,"mat-option",8),A(23,"uds-translate"),Z(24,"Disabled"),E(),E(),E(),E(),re(25,tce,7,2,"ng-container",1),re(26,ice,12,4,"ng-template",null,9,ml),E(),E(),A(28,"mat-dialog-actions"),A(29,"button",10),A(30,"uds-translate"),Z(31,"Cancel"),E(),E(),A(32,"button",11),ne("click",function(){return n.save()}),A(33,"uds-translate"),Z(34,"Ok"),E(),E(),E()),2&t){var l=Pn(3),c=Pn(8),h=Pn(27);H(1),z("ngIf",n.group.id)("ngIfElse",l),H(5),z("ngIf","group"===n.group.type)("ngIfElse",c),H(7),z("ngModel",n.group.comments),H(5),z("ngModel",n.group.state),H(7),z("ngIf","group"===n.group.type)("ngIfElse",h)}},directives:[Yr,Kt,Fr,yr,Br,Hn,zi,g,Mt,_r,$a,Pi,Qr,Rn,Lr,uH,cX,er,fk],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}();function ace(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Groups"),E())}function oce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,ace,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.group)("pageSize",6)}}function sce(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Services Pools"),E())}function lce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,sce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.servicesPools)("pageSize",6)}}function uce(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Assigned Services"),E())}function cce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,uce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.userServices)("pageSize",6)}}var fce=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],dce=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],hce=[{field:"unique_id",title:django.gettext("Unique ID")},{field:"friendly_name",title:django.gettext("Friendly Name")},{field:"in_use",title:django.gettext("In Use")},{field:"ip",title:django.gettext("IP")},{field:"pool",title:django.gettext("Services Pool")}],pce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.users=l.users,this.user=l.user}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:t,user:n},disableClose:!1})},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).subscribe(function(t){a.group=new Mb(django.gettext("Groups"),function(){return a.rest.authenticators.detail(a.users.parentId,"groups").overview().pipe(He(function(h){return h.filter(function(_){return t.groups.includes(_.id)})}))},fce,a.user.id+"infogrp"),a.servicesPools=new Mb(django.gettext("Services Pools"),function(){return a.users.invoke(a.user.id+"/servicesPools")},dce,a.user.id+"infopool"),a.userServices=new Mb(django.gettext("Assigned services"),function(){return a.users.invoke(a.user.id+"/userServices").pipe(He(function(h){return h.map(function(_){return _.in_use=a.api.yesno(_.in_use),_})}))},hce,a.user.id+"userservpool")})},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-user-information"]],decls:13,vars:4,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),Z(2,"Information for"),E(),Z(3),E(),A(4,"mat-dialog-content"),A(5,"mat-tab-group"),re(6,oce,3,2,"mat-tab",1),re(7,lce,3,2,"mat-tab",1),re(8,cce,3,2,"mat-tab",1),E(),E(),A(9,"mat-dialog-actions"),A(10,"button",2),A(11,"uds-translate"),Z(12,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.user.name,"\n"),H(3),z("ngIf",n.group),H(1),z("ngIf",n.servicesPools),H(1),z("ngIf",n.userServices))},directives:[Yr,Hn,Fr,Nc,Kt,Qr,Rn,Lr,Ru,Fc,Hr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function vce(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Services Pools"),E())}function gce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,vce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.servicesPools)("pageSize",6)}}function mce(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Users"),E())}function _ce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,mce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.users)("pageSize",6)}}function yce(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Groups"),E())}function bce(e,a){if(1&e&&(A(0,"mat-tab"),re(1,yce,2,0,"ng-template",3),me(2,"uds-table",4),E()),2&e){var t=J();H(2),z("rest",t.groups)("pageSize",6)}}var Cce=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],wce=[{field:"name",title:django.gettext("Name")},{field:"real_name",title:django.gettext("Real Name")},{field:"state",title:django.gettext("state")},{field:"last_access",title:django.gettext("Last access"),type:Ea.DATETIME}],Sce=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],kce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.data=l}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:n,groups:t},disableClose:!1})},e.prototype.ngOnInit=function(){var a=this,t=this.rest.authenticators.detail(this.data.groups.parentId,"groups");this.servicesPools=new Mb(django.gettext("Service pools"),function(){return t.invoke(a.data.group.id+"/servicesPools")},Cce,this.data.group.id+"infopls"),this.users=new Mb(django.gettext("Users"),function(){return t.invoke(a.data.group.id+"/users").pipe(He(function(h){return h.map(function(_){return _.state="A"===_.state?django.gettext("Enabled"):"I"===_.state?django.gettext("Disabled"):django.gettext("Blocked"),_})}))},wce,this.data.group.id+"infousr"),"meta"===this.data.group.type&&(this.groups=new Mb(django.gettext("Groups"),function(){return t.overview().pipe(He(function(h){return h.filter(function(_){return a.data.group.groups.includes(_.id)})}))},Sce,this.data.group.id+"infogrps"))},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-group-information"]],decls:12,vars:3,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),Z(2,"Information for"),E(),E(),A(3,"mat-dialog-content"),A(4,"mat-tab-group"),re(5,gce,3,2,"mat-tab",1),re(6,_ce,3,2,"mat-tab",1),re(7,bce,3,2,"mat-tab",1),E(),E(),A(8,"mat-dialog-actions"),A(9,"button",2),A(10,"uds-translate"),Z(11,"Ok"),E(),E(),E()),2&t&&(H(5),z("ngIf",n.servicesPools),H(1),z("ngIf",n.users),H(1),z("ngIf",n.groups))},directives:[Yr,Hn,Fr,Nc,Kt,Qr,Rn,Lr,Ru,Fc,Hr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function Mce(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Summary"),E())}function xce(e,a){if(1&e&&me(0,"uds-information",16),2&e){var t=J(2);z("value",t.authenticator)("gui",t.gui)}}function Tce(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Users"),E())}function Dce(e,a){if(1&e){var t=De();A(0,"uds-table",17),ne("loaded",function(c){return pe(t),J(2).onLoad(c)})("newAction",function(c){return pe(t),J(2).onNewUser(c)})("editAction",function(c){return pe(t),J(2).onEditUser(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteUser(c)})("customButtonAction",function(c){return pe(t),J(2).onUserInformation(c)}),E()}if(2&e){var n=J(2);z("rest",n.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+n.authenticator.id)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)}}function Ace(e,a){if(1&e){var t=De();A(0,"uds-table",18),ne("loaded",function(c){return pe(t),J(2).onLoad(c)})("editAction",function(c){return pe(t),J(2).onEditUser(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteUser(c)})("customButtonAction",function(c){return pe(t),J(2).onUserInformation(c)}),E()}if(2&e){var n=J(2);z("rest",n.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+n.authenticator.id)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)}}function Ece(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Groups"),E())}function Pce(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Logs"),E())}function Oce(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return pe(t),J().selectedTab=c}),A(3,"mat-tab"),re(4,Mce,2,0,"ng-template",9),A(5,"div",10),re(6,xce,1,2,"uds-information",11),E(),E(),A(7,"mat-tab"),re(8,Tce,2,0,"ng-template",9),A(9,"div",10),re(10,Dce,1,6,"uds-table",12),re(11,Ace,1,6,"uds-table",13),E(),E(),A(12,"mat-tab"),re(13,Ece,2,0,"ng-template",9),A(14,"div",10),A(15,"uds-table",14),ne("loaded",function(c){return pe(t),J().onLoad(c)})("newAction",function(c){return pe(t),J().onNewGroup(c)})("editAction",function(c){return pe(t),J().onEditGroup(c)})("deleteAction",function(c){return pe(t),J().onDeleteGroup(c)})("customButtonAction",function(c){return pe(t),J().onGroupInformation(c)}),E(),E(),E(),A(16,"mat-tab"),re(17,Pce,2,0,"ng-template",9),A(18,"div",10),me(19,"uds-logs-table",15),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("selectedIndex",n.selectedTab)("@.disabled",!0),H(4),z("ngIf",n.authenticator&&n.gui),H(4),z("ngIf",n.authenticator.type_info.canCreateUsers),H(1),z("ngIf",!n.authenticator.type_info.canCreateUsers),H(4),z("rest",n.groups)("multiSelect",!0)("allowExport",!0)("customButtons",n.customButtons)("tableId","authenticators-d-groups"+n.authenticator.id)("pageSize",n.api.config.admin.page_size),H(4),z("rest",n.rest.authenticators)("itemId",n.authenticator.id)("tableId","authenticators-d-log"+n.authenticator.id)}}var Ice=function(e){return["/authenticators",e]},fX=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:Jr.ONLY_MENU}],this.authenticator=null,this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("authenticator");this.users=this.rest.authenticators.detail(t,"users"),this.groups=this.rest.authenticators.detail(t,"groups"),this.rest.authenticators.get(t).subscribe(function(n){a.authenticator=n,a.rest.authenticators.gui(n.type).subscribe(function(l){a.gui=l})})},e.prototype.onLoad=function(a){if(!0===a.param){var t=this.route.snapshot.paramMap.get("user"),n=this.route.snapshot.paramMap.get("group");a.table.selectElement("id",t||n)}},e.prototype.processElement=function(a){a.maintenance_state=a.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},e.prototype.onNewUser=function(a){Zee.launch(this.api,this.authenticator).subscribe(function(t){return a.table.overview()})},e.prototype.onEditUser=function(a){Zee.launch(this.api,this.authenticator,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteUser=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete user"))},e.prototype.onNewGroup=function(a){Qee.launch(this.api,this.authenticator,a.param.type).subscribe(function(t){return a.table.overview()})},e.prototype.onEditGroup=function(a){Qee.launch(this.api,this.authenticator,a.param.type,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteGroup=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete group"))},e.prototype.onUserInformation=function(a){pce.launch(this.api,this.users,a.table.selection.selected[0])},e.prototype.onGroupInformation=function(a){kce.launch(this.api,this.groups,a.table.selection.selected[0])},e.\u0275fac=function(t){return new(t||e)(N(gr),N(tn),N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-authenticators-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),Z(4,"arrow_back"),E(),E(),Z(5," \xa0"),me(6,"img",4),Z(7),E(),re(8,Oce,20,14,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,Ice,n.authenticator?n.authenticator.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/services.png"),Lt),H(1),Ve(" \xa0",null==n.authenticator?null:n.authenticator.name," "),H(1),z("ngIf",n.authenticator))},directives:[xl,Kt,Nc,Ru,Fc,Hr,ck,Hn,lH],styles:[""]}),e}(),Jee=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("osmanager")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New OS Manager"),!1)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit OS Manager"),!1)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete OS Manager"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))},e.\u0275fac=function(t){return new(t||e)(N(At),N(gr),N(tn))},e.\u0275cmp=Se({type:e,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Hr],styles:[""]}),e}(),ete=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("transport")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Transport"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Transport"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Transport"))},e.prototype.processElement=function(a){try{a.allowed_oss=a.allowed_oss.map(function(t){return t.id}).join(", ")}catch(t){a.allowed_oss=""}},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))},e.\u0275fac=function(t){return new(t||e)(N(At),N(gr),N(tn))},e.\u0275cmp=Se({type:e,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",n.processElement)("pageSize",n.api.config.admin.page_size))},directives:[Hr],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),e}(),tte=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("network")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Network"),!1)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Network"),!1)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Network"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("network"))},e.\u0275fac=function(t){return new(t||e)(N(At),N(gr),N(tn))},e.\u0275cmp=Se({type:e,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Hr],styles:[""]}),e}(),nte=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("proxy")},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New Proxy"),!0)},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit Proxy"),!0)},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete Proxy"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("proxy"))},e.\u0275fac=function(t){return new(t||e)(N(At),N(gr),N(tn))},e.\u0275cmp=Se({type:e,selectors:[["uds-proxies"]],decls:2,vars:5,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.proxy)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Hr],styles:[""]}),e}(),rte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[Il.getGotoButton(_J,"provider_id"),Il.getGotoButton(yJ,"provider_id","service_id"),Il.getGotoButton(wJ,"osmanager_id"),Il.getGotoButton(SJ,"pool_group_id")],this.editing=!1}return e.prototype.ngOnInit=function(){},e.prototype.onChange=function(a){var t=this,n=["initial_srvs","cache_l1_srvs","max_srvs"];if(null===a.on||"service_id"===a.on.field.name){if(""===a.all.service_id.value)return a.all.osmanager_id.gui.values.length=0,void n.forEach(function(l){return a.all[l].gui.rdonly=!0});this.rest.providers.service(a.all.service_id.value).subscribe(function(l){a.all.allow_users_reset.gui.rdonly=!l.info.can_reset,a.all.osmanager_id.gui.values.length=0,t.editing||(a.all.osmanager_id.gui.rdonly=!l.info.needs_manager),!0===l.info.needs_manager?t.rest.osManagers.overview().subscribe(function(c){c.forEach(function(h){h.servicesTypes.forEach(function(_){l.info.servicesTypeProvided.includes(_)&&a.all.osmanager_id.gui.values.push({id:h.id,text:h.name})})}),a.all.osmanager_id.value=a.all.osmanager_id.gui.values.length>0?a.all.osmanager_id.value||a.all.osmanager_id.gui.values[0].id:""}):(a.all.osmanager_id.gui.values.push({id:"",text:django.gettext("(This service does not requires an OS Manager)")}),a.all.osmanager_id.value=""),n.forEach(function(c){return a.all[c].gui.rdonly=!l.info.uses_cache}),a.all.cache_l2_srvs.gui.rdonly=!1===l.info.uses_cache||!1===l.info.uses_cache_l2,a.all.publish_on_save&&(a.all.publish_on_save.gui.rdonly=!l.info.needs_publication)}),n.forEach(function(l){a.all[l].gui.rdonly=!0})}},e.prototype.onNew=function(a){var t=this;this.editing=!1,this.api.gui.forms.typedNewForm(a,django.gettext("New service Pool"),!1,[{name:"publish_on_save",value:!0,gui:{label:django.gettext("Publish on creation"),tooltip:django.gettext("If selected, will initiate the publication inmediatly after creation"),type:Pl.CHECKBOX,order:150,defvalue:"true"}}]).subscribe(function(n){return t.onChange(n)})},e.prototype.onEdit=function(a){var t=this;this.editing=!0,this.api.gui.forms.typedEditForm(a,django.gettext("Edit Service Pool"),!1).subscribe(function(n){return t.onChange(n)})},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete service pool"))},e.prototype.processElement=function(a){a.visible=this.api.yesno(a.visible),a.show_transports=this.api.yesno(a.show_transports),a.restrained?(a.name='warning '+this.api.gui.icon(a.info.icon)+a.name,a.state="T"):(a.name=this.api.gui.icon(a.info.icon)+a.name,a.meta_member.length>0&&(a.state="V")),a.name=this.api.safeString(a.name),a.pool_group_name=this.api.safeString(this.api.gui.icon(a.pool_group_thumb)+a.pool_group_name)},e.prototype.onDetail=function(a){this.api.navigation.gotoServicePoolDetail(a.param.id)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))},e.\u0275fac=function(t){return new(t||e)(N(gr),N(tn),N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools"]],decls:1,vars:7,consts:[["icon","pools",3,"rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",n.processElement)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Hr],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-state, .mat-column-usage{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:10rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-cell{color:#d65014!important}"]}),e}();function Rce(e,a){if(1&e&&(A(0,"mat-option",8),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function Lce(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",9),ne("changed",function(l){return pe(t),J().userFilter=l}),E()}}function Fce(e,a){if(1&e&&(A(0,"mat-option",8),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}var ite=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.auths=[],this.users=[],this.userFilter="",this.userService=l.userService,this.userServices=l.userServices}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:t,userServices:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.rest.authenticators.summary().subscribe(function(t){a.auths=t,a.authChanged()})},e.prototype.changeAuth=function(a){this.userId="",this.authChanged()},e.prototype.filteredUsers=function(){var a=this;if(!this.userFilter)return this.users;var t=new Array;return this.users.forEach(function(n){(""===a.userFilter||n.name.toLocaleLowerCase().includes(a.userFilter.toLocaleLowerCase()))&&t.push(n)}),t},e.prototype.save=function(){var a=this;""!==this.userId&&""!==this.authId?this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},e.prototype.authChanged=function(){var a=this;this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(t){a.users=t})},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),Z(2,"Change owner of assigned service"),E(),E(),A(3,"mat-dialog-content"),A(4,"div",1),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),Z(8,"Authenticator"),E(),E(),A(9,"mat-select",2),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),re(10,Rce,2,2,"mat-option",3),E(),E(),A(11,"mat-form-field"),A(12,"mat-label"),A(13,"uds-translate"),Z(14,"User"),E(),E(),A(15,"mat-select",4),ne("ngModelChange",function(c){return n.userId=c}),re(16,Lce,1,0,"uds-mat-select-search",5),re(17,Fce,2,2,"mat-option",3),E(),E(),E(),E(),A(18,"mat-dialog-actions"),A(19,"button",6),A(20,"uds-translate"),Z(21,"Cancel"),E(),E(),A(22,"button",7),ne("click",function(){return n.save()}),A(23,"uds-translate"),Z(24,"Ok"),E(),E(),E()),2&t&&(H(9),z("ngModel",n.authId),H(1),z("ngForOf",n.auths),H(5),z("ngModel",n.userId),H(1),z("ngIf",n.users.length>10),H(1),z("ngForOf",n.filteredUsers()))},directives:[Yr,Hn,Fr,yr,Br,$a,Mt,_r,er,Kt,Qr,Rn,Lr,Pi,Vc],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function Nce(e,a){1&e&&(A(0,"uds-translate"),Z(1,"New access rule for"),E())}function Vce(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Edit access rule for"),E())}function Bce(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Default fallback access for"),E())}function Hce(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",11),ne("changed",function(l){return pe(t),J(2).calendarsFilter=l}),E()}}function zce(e,a){if(1&e&&(A(0,"mat-option",12),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function Uce(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),A(3,"uds-translate"),Z(4,"Priority"),E(),E(),A(5,"input",8),ne("ngModelChange",function(c){return pe(t),J().accessRule.priority=c}),E(),E(),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),Z(9,"Calendar"),E(),E(),A(10,"mat-select",3),ne("ngModelChange",function(c){return pe(t),J().accessRule.calendarId=c}),re(11,Hce,1,0,"uds-mat-select-search",9),re(12,zce,2,2,"mat-option",10),E(),E(),xn()}if(2&e){var n=J();H(5),z("ngModel",n.accessRule.priority),H(5),z("ngModel",n.accessRule.calendarId),H(1),z("ngIf",n.calendars.length>10),H(1),z("ngForOf",n.filtered(n.calendars,n.calendarsFilter))}}var cH=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.calendars=[],this.calendarsFilter="",this.pool=l.pool,this.model=l.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},l.accessRule&&(this.accessRule.id=l.accessRule.id)}return e.launch=function(a,t,n,l){var c=window.innerWidth<800?"80%":"60%";return a.gui.dialog.open(e,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:t,model:n,accessRule:l},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.calendars.summary().subscribe(function(t){a.calendars=t}),void 0!==this.accessRule.id&&-1!==this.accessRule.id?this.model.get(this.accessRule.id).subscribe(function(t){a.accessRule=t}):-1===this.accessRule.id&&this.model.parentModel.getFallbackAccess(this.pool.id).subscribe(function(t){return a.accessRule.access=t})},e.prototype.filtered=function(a,t){return t?a.filter(function(n){return n.name.toLocaleLowerCase().includes(t.toLocaleLowerCase())}):a},e.prototype.save=function(){var a=this,t=function(){a.dialogRef.close(),a.onSave.emit(!0)};-1!==this.accessRule.id?this.model.save(this.accessRule).subscribe(t):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).subscribe(t)},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModel","ngModelChange"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"h4",0),re(1,Nce,2,0,"uds-translate",1),re(2,Vce,2,0,"uds-translate",1),re(3,Bce,2,0,"uds-translate",1),Z(4),E(),A(5,"mat-dialog-content"),A(6,"div",2),re(7,Uce,13,4,"ng-container",1),A(8,"mat-form-field"),A(9,"mat-label"),A(10,"uds-translate"),Z(11,"Action"),E(),E(),A(12,"mat-select",3),ne("ngModelChange",function(c){return n.accessRule.access=c}),A(13,"mat-option",4),Z(14," ALLOW "),E(),A(15,"mat-option",5),Z(16," DENY "),E(),E(),E(),E(),E(),A(17,"mat-dialog-actions"),A(18,"button",6),A(19,"uds-translate"),Z(20,"Cancel"),E(),E(),A(21,"button",7),ne("click",function(){return n.save()}),A(22,"uds-translate"),Z(23,"Ok"),E(),E(),E()),2&t&&(H(1),z("ngIf",void 0===n.accessRule.id),H(1),z("ngIf",void 0!==n.accessRule.id&&-1!==n.accessRule.id),H(1),z("ngIf",-1===n.accessRule.id),H(1),Ve(" ",n.pool.name,"\n"),H(3),z("ngIf",-1!==n.accessRule.id),H(5),z("ngModel",n.accessRule.access))},directives:[Yr,Kt,Fr,yr,Br,Hn,$a,Mt,_r,Pi,Qr,Rn,Lr,zi,zg,g,er,Vc],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function Gce(e,a){if(1&e&&(A(0,"mat-option",8),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function jce(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",9),ne("changed",function(l){return pe(t),J().groupFilter=l}),E()}}function Wce(e,a){if(1&e&&(vt(0),Z(1),xn()),2&e){var t=J().$implicit;H(1),Ve(" (",t.comments,")")}}function Yce(e,a){if(1&e&&(A(0,"mat-option",8),Z(1),re(2,Wce,2,1,"ng-container",10),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name,""),H(1),z("ngIf",t.comments)}}var ate=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.model=null,this.auths=[],this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=l.pool,this.model=l.model}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:t,model:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.summary().subscribe(function(t){a.auths=t,a.authChanged()})},e.prototype.changeAuth=function(a){this.groupId="",this.authChanged()},e.prototype.filteredGroups=function(){var a=this;return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(function(t){return t.name.toLocaleLowerCase().includes(a.groupFilter.toLocaleLowerCase())})},e.prototype.save=function(){var a=this;""!==this.groupId&&""!==this.authId?this.model.create({id:this.groupId}).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"))},e.prototype.authChanged=function(){var a=this;""!==this.authId&&this.rest.authenticators.detail(this.authId,"groups").summary().subscribe(function(t){a.groups=t})},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-add-group"]],decls:26,vars:6,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"],[4,"ngIf"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),Z(2,"New group for"),E(),Z(3),E(),A(4,"mat-dialog-content"),A(5,"div",1),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),Z(9,"Authenticator"),E(),E(),A(10,"mat-select",2),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),re(11,Gce,2,2,"mat-option",3),E(),E(),A(12,"mat-form-field"),A(13,"mat-label"),A(14,"uds-translate"),Z(15,"Group"),E(),E(),A(16,"mat-select",4),ne("ngModelChange",function(c){return n.groupId=c}),re(17,jce,1,0,"uds-mat-select-search",5),re(18,Yce,3,3,"mat-option",3),E(),E(),E(),E(),A(19,"mat-dialog-actions"),A(20,"button",6),A(21,"uds-translate"),Z(22,"Cancel"),E(),E(),A(23,"button",7),ne("click",function(){return n.save()}),A(24,"uds-translate"),Z(25,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.pool.name,"\n"),H(7),z("ngModel",n.authId),H(1),z("ngForOf",n.auths),H(5),z("ngModel",n.groupId),H(1),z("ngIf",n.groups.length>10),H(1),z("ngForOf",n.filteredGroups()))},directives:[Yr,Hn,Fr,yr,Br,$a,Mt,_r,er,Kt,Qr,Rn,Lr,Pi,Vc],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}();function qce(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",7),ne("changed",function(l){return pe(t),J().transportsFilter=l}),E()}}function Xce(e,a){if(1&e&&(vt(0),Z(1),xn()),2&e){var t=J().$implicit;H(1),Ve(" (",t.comments,")")}}function Zce(e,a){if(1&e&&(A(0,"mat-option",8),Z(1),re(2,Xce,2,1,"ng-container",9),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name,""),H(1),z("ngIf",t.comments)}}var Kce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.transports.summary().subscribe(function(t){a.transports=t.filter(function(n){return a.servicePool.info.allowedProtocols.includes(n.protocol)})})},e.prototype.filteredTransports=function(){var a=this;return this.transportsFilter?this.transports.filter(function(t){return t.name.toLocaleLowerCase().includes(a.transportsFilter.toLocaleLowerCase())}):this.transports},e.prototype.save=function(){var a=this;""!==this.transportId?this.rest.servicesPools.detail(this.servicePool.id,"transports").create({id:this.transportId}).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"))},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-add-transport"]],decls:20,vars:4,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[4,"ngIf"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),Z(2,"New transport for"),E(),Z(3),E(),A(4,"mat-dialog-content"),A(5,"div",1),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),Z(9,"Transport"),E(),E(),A(10,"mat-select",2),ne("ngModelChange",function(c){return n.transportId=c}),re(11,qce,1,0,"uds-mat-select-search",3),re(12,Zce,3,3,"mat-option",4),E(),E(),E(),E(),A(13,"mat-dialog-actions"),A(14,"button",5),A(15,"uds-translate"),Z(16,"Cancel"),E(),E(),A(17,"button",6),ne("click",function(){return n.save()}),A(18,"uds-translate"),Z(19,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.servicePool.name,"\n"),H(7),z("ngModel",n.transportId),H(1),z("ngIf",n.transports.length>10),H(1),z("ngForOf",n.filteredTransports()))},directives:[Yr,Hn,Fr,yr,Br,$a,Mt,_r,Kt,er,Qr,Rn,Lr,Vc,Pi],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),$ce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.reason="",this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){},e.prototype.save=function(){var a=this;this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-new-publication"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),Z(2,"New publication for"),E(),Z(3),E(),A(4,"mat-dialog-content"),A(5,"div",1),A(6,"mat-form-field"),A(7,"mat-label"),A(8,"uds-translate"),Z(9,"Comments"),E(),E(),A(10,"input",2),ne("ngModelChange",function(c){return n.reason=c}),E(),E(),E(),E(),A(11,"mat-dialog-actions"),A(12,"button",3),A(13,"uds-translate"),Z(14,"Cancel"),E(),E(),A(15,"button",4),ne("click",function(){return n.save()}),A(16,"uds-translate"),Z(17,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.servicePool.name,"\n"),H(7),z("ngModel",n.reason))},directives:[Yr,Hn,Fr,yr,Br,zi,g,Mt,_r,Qr,Rn,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),Qce=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1})},e.prototype.ngOnInit=function(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-publications-changelog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["icon","publications",3,"rest","allowExport","tableId"],["changeLog",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),Z(2,"Changelog of"),E(),Z(3),E(),A(4,"mat-dialog-content"),me(5,"uds-table",1,2),E(),A(7,"mat-dialog-actions"),A(8,"button",3),A(9,"uds-translate"),Z(10,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.servicePool.name,"\n"),H(2),z("rest",n.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+n.servicePool.id))},directives:[Yr,Hn,Fr,Hr,Qr,Rn,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function Jce(e,a){1&e&&(vt(0),A(1,"uds-translate"),Z(2,"Edit action for"),E(),xn())}function efe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"New action for"),E())}function tfe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",14),ne("changed",function(l){return pe(t),J().calendarsFilter=l}),E()}}function nfe(e,a){if(1&e&&(A(0,"mat-option",15),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function rfe(e,a){if(1&e&&(A(0,"mat-option",15),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.description," ")}}function ife(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",14),ne("changed",function(l){return pe(t),J(2).transportsFilter=l}),E()}}function afe(e,a){if(1&e&&(A(0,"mat-option",15),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function ofe(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),A(3,"uds-translate"),Z(4,"Transport"),E(),E(),A(5,"mat-select",4),ne("ngModelChange",function(c){return pe(t),J().paramValue=c}),re(6,ife,1,0,"uds-mat-select-search",5),re(7,afe,2,2,"mat-option",6),E(),E(),xn()}if(2&e){var n=J();H(5),z("ngModel",n.paramValue),H(1),z("ngIf",n.transports.length>10),H(1),z("ngForOf",n.filtered(n.transports,n.transportsFilter))}}function sfe(e,a){if(1&e&&(A(0,"mat-option",15),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function lfe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",14),ne("changed",function(l){return pe(t),J(2).groupsFilter=l}),E()}}function ufe(e,a){if(1&e&&(A(0,"mat-option",15),Z(1),E()),2&e){var t=a.$implicit;z("value",J(2).authenticator+"@"+t.id),H(1),Ve(" ",t.name," ")}}function cfe(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),A(3,"uds-translate"),Z(4,"Authenticator"),E(),E(),A(5,"mat-select",10),ne("ngModelChange",function(c){return pe(t),J().authenticator=c})("valueChange",function(c){return pe(t),J().changedAuthenticator(c)}),re(6,sfe,2,2,"mat-option",6),E(),E(),A(7,"mat-form-field"),A(8,"mat-label"),A(9,"uds-translate"),Z(10,"Group"),E(),E(),A(11,"mat-select",4),ne("ngModelChange",function(c){return pe(t),J().paramValue=c}),re(12,lfe,1,0,"uds-mat-select-search",5),re(13,ufe,2,2,"mat-option",6),E(),E(),xn()}if(2&e){var n=J();H(5),z("ngModel",n.authenticator),H(1),z("ngForOf",n.authenticators),H(5),z("ngModel",n.paramValue),H(1),z("ngIf",n.groups.length>10),H(1),z("ngForOf",n.filtered(n.groups,n.groupsFilter))}}function ffe(e,a){if(1&e){var t=De();vt(0),A(1,"div",8),A(2,"span",16),Z(3),E(),Z(4,"\xa0 "),A(5,"mat-slide-toggle",4),ne("ngModelChange",function(c){return pe(t),J().paramValue=c}),E(),E(),xn()}if(2&e){var n=J();H(3),On(n.parameter.description),H(2),z("ngModel",n.paramValue)}}function dfe(e,a){if(1&e){var t=De();vt(0),A(1,"mat-form-field"),A(2,"mat-label"),Z(3),E(),A(4,"input",17),ne("ngModelChange",function(c){return pe(t),J().paramValue=c}),E(),E(),xn()}if(2&e){var n=J();H(3),Ve(" ",n.parameter.description," "),H(1),z("type",n.parameter.type)("ngModel",n.paramValue)}}var hfe=function(){return["transport","group","bool"]},ote=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.calendars=[],this.actionList=[],this.authenticators=[],this.transports=[],this.groups=[],this.paramsDict={},this.calendarsFilter="",this.groupsFilter="",this.transportsFilter="",this.authenticator="",this.parameter={},this.paramValue="",this.servicePool=l.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendarId:"",atStart:!0,eventsOffset:0,params:{}},void 0!==l.scheduledAction&&(this.scheduledAction.id=l.scheduledAction.id)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t,scheduledAction:n},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.authenticators.summary().subscribe(function(t){return a.authenticators=t}),this.rest.transports.summary().subscribe(function(t){return a.transports=t}),this.rest.calendars.summary().subscribe(function(t){return a.calendars=t}),this.rest.servicesPools.actionsList(this.servicePool.id).subscribe(function(t){a.actionList=t,a.actionList.forEach(function(n){a.paramsDict[n.id]=n.params[0]}),void 0!==a.scheduledAction.id&&a.rest.servicesPools.detail(a.servicePool.id,"actions").get(a.scheduledAction.id).subscribe(function(n){a.scheduledAction=n,a.changedAction(a.scheduledAction.action)})})},e.prototype.filtered=function(a,t){return t?a.filter(function(n){return n.name.toLocaleLowerCase().includes(t.toLocaleLowerCase())}):a},e.prototype.changedAction=function(a){if(this.parameter=this.paramsDict[a],void 0!==this.parameter&&(this.paramValue=this.scheduledAction.params[this.parameter.name],void 0===this.paramValue&&(this.paramValue=!1!==this.parameter.default&&(this.parameter.default||"")),"group"===this.parameter.type)){var t=this.paramValue.split("@");2!==t.length&&(t=["",""]),this.authenticator=t[0],this.changedAuthenticator(this.authenticator)}},e.prototype.changedAuthenticator=function(a){var t=this;!a||this.rest.authenticators.detail(a,"groups").summary().subscribe(function(n){return t.groups=n})},e.prototype.save=function(){var a=this;this.scheduledAction.params={},this.parameter&&(this.scheduledAction.params[this.parameter.name]=this.paramValue),this.rest.servicesPools.detail(this.servicePool.id,"actions").save(this.scheduledAction).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-scheduled-action"]],decls:42,vars:16,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["editTitle",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-atstart"],[3,"ngModel","ngModelChange","valueChange"],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[1,"label"],["matInput","",3,"type","ngModel","ngModelChange"]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,Jce,3,0,"ng-container",1),re(2,efe,2,0,"ng-template",null,2,ml),Z(4),E(),A(5,"mat-dialog-content"),A(6,"div",3),A(7,"mat-form-field"),A(8,"mat-label"),A(9,"uds-translate"),Z(10,"Calendar"),E(),E(),A(11,"mat-select",4),ne("ngModelChange",function(h){return n.scheduledAction.calendarId=h}),re(12,tfe,1,0,"uds-mat-select-search",5),re(13,nfe,2,2,"mat-option",6),E(),E(),A(14,"mat-form-field"),A(15,"mat-label"),A(16,"uds-translate"),Z(17,"Events offset (minutes)"),E(),E(),A(18,"input",7),ne("ngModelChange",function(h){return n.scheduledAction.eventsOffset=h}),E(),E(),A(19,"div",8),A(20,"span",9),A(21,"uds-translate"),Z(22,"At the beginning of the interval?"),E(),E(),A(23,"mat-slide-toggle",4),ne("ngModelChange",function(h){return n.scheduledAction.atStart=h}),Z(24),E(),E(),A(25,"mat-form-field"),A(26,"mat-label"),A(27,"uds-translate"),Z(28,"Action"),E(),E(),A(29,"mat-select",10),ne("ngModelChange",function(h){return n.scheduledAction.action=h})("valueChange",function(h){return n.changedAction(h)}),re(30,rfe,2,2,"mat-option",6),E(),E(),re(31,ofe,8,3,"ng-container",11),re(32,cfe,14,5,"ng-container",11),re(33,ffe,6,2,"ng-container",11),re(34,dfe,5,3,"ng-container",11),E(),E(),A(35,"mat-dialog-actions"),A(36,"button",12),A(37,"uds-translate"),Z(38,"Cancel"),E(),E(),A(39,"button",13),ne("click",function(){return n.save()}),A(40,"uds-translate"),Z(41,"Ok"),E(),E(),E()),2&t){var l=Pn(3);H(1),z("ngIf",void 0!==n.scheduledAction.id)("ngIfElse",l),H(3),Ve(" ",n.servicePool.name,"\n"),H(7),z("ngModel",n.scheduledAction.calendarId),H(1),z("ngIf",n.calendars.length>10),H(1),z("ngForOf",n.filtered(n.calendars,n.calendarsFilter)),H(5),z("ngModel",n.scheduledAction.eventsOffset),H(5),z("ngModel",n.scheduledAction.atStart),H(1),Ve(" ",n.api.yesno(n.scheduledAction.atStart)," "),H(5),z("ngModel",n.scheduledAction.action),H(1),z("ngForOf",n.actionList),H(1),z("ngIf","transport"===(null==n.parameter?null:n.parameter.type)),H(1),z("ngIf","group"===(null==n.parameter?null:n.parameter.type)),H(1),z("ngIf","bool"===(null==n.parameter?null:n.parameter.type)),H(1),z("ngIf",(null==n.parameter?null:n.parameter.type)&&!rw(15,hfe).includes(n.parameter.type))}},directives:[Yr,Kt,Fr,yr,Br,Hn,$a,Mt,_r,er,zi,zg,g,fk,Qr,Rn,Lr,Vc,Pi],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.label-atstart[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}(),dX=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.userService=l.userService,this.model=l.model}return e.launch=function(a,t,n){var l=window.innerWidth<800?"80%":"60%";a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:t,model:n},disableClose:!1})},e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-userservices-log"]],decls:10,vars:4,consts:[["mat-dialog-title",""],[3,"rest","itemId","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),Z(2,"Logs of"),E(),Z(3),E(),A(4,"mat-dialog-content"),me(5,"uds-logs-table",1),E(),A(6,"mat-dialog-actions"),A(7,"button",2),A(8,"uds-translate"),Z(9,"Ok"),E(),E(),E()),2&t&&(H(3),Ve(" ",n.userService.name,"\n"),H(2),z("rest",n.model)("itemId",n.userService.id)("tableId","servicePools-d-uslog"+n.userService.id))},directives:[Yr,Hn,Fr,ck,Qr,Rn,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}();function pfe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",8),ne("changed",function(l){return pe(t),J().assignablesServicesFilter=l}),E()}}function vfe(e,a){if(1&e&&(A(0,"mat-option",9),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.text," ")}}function gfe(e,a){if(1&e&&(A(0,"mat-option",9),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}function mfe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",8),ne("changed",function(l){return pe(t),J().userFilter=l}),E()}}function _fe(e,a){if(1&e&&(A(0,"mat-option",9),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}var yfe=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.servicePool=l.servicePool}return e.launch=function(a,t){var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.authId="",this.userId="",this.rest.authenticators.summary().subscribe(function(t){a.auths=t,a.authChanged()}),this.rest.servicesPools.listAssignables(this.servicePool.id).subscribe(function(t){a.assignablesServices=t})},e.prototype.changeAuth=function(a){this.userId="",this.authChanged()},e.prototype.filteredUsers=function(){var a=this;if(!this.userFilter)return this.users;var t=new Array;return this.users.forEach(function(n){n.name.toLocaleLowerCase().includes(a.userFilter.toLocaleLowerCase())&&t.push(n)}),t},e.prototype.filteredAssignables=function(){var a=this;if(!this.assignablesServicesFilter)return this.assignablesServices;var t=new Array;return this.assignablesServices.forEach(function(n){n.text.toLocaleLowerCase().includes(a.assignablesServicesFilter.toLocaleLowerCase())&&t.push(n)}),t},e.prototype.save=function(){var a=this;""!==this.userId&&""!==this.authId?this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).subscribe(function(t){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},e.prototype.authChanged=function(){var a=this;this.authId&&this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(t){a.users=t})},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange","selectionChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"h4",0),A(1,"uds-translate"),Z(2,"Assign service to user manually"),E(),E(),A(3,"mat-dialog-content"),A(4,"div",1),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),Z(8,"Service"),E(),E(),A(9,"mat-select",2),ne("ngModelChange",function(c){return n.serviceId=c}),re(10,pfe,1,0,"uds-mat-select-search",3),re(11,vfe,2,2,"mat-option",4),E(),E(),A(12,"mat-form-field"),A(13,"mat-label"),A(14,"uds-translate"),Z(15,"Authenticator"),E(),E(),A(16,"mat-select",5),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),re(17,gfe,2,2,"mat-option",4),E(),E(),A(18,"mat-form-field"),A(19,"mat-label"),A(20,"uds-translate"),Z(21,"User"),E(),E(),A(22,"mat-select",2),ne("ngModelChange",function(c){return n.userId=c}),re(23,mfe,1,0,"uds-mat-select-search",3),re(24,_fe,2,2,"mat-option",4),E(),E(),E(),E(),A(25,"mat-dialog-actions"),A(26,"button",6),A(27,"uds-translate"),Z(28,"Cancel"),E(),E(),A(29,"button",7),ne("click",function(){return n.save()}),A(30,"uds-translate"),Z(31,"Ok"),E(),E(),E()),2&t&&(H(9),z("ngModel",n.serviceId),H(1),z("ngIf",n.assignablesServices.length>10),H(1),z("ngForOf",n.filteredAssignables()),H(5),z("ngModel",n.authId),H(1),z("ngForOf",n.auths),H(5),z("ngModel",n.userId),H(1),z("ngIf",n.users.length>10),H(1),z("ngForOf",n.filteredUsers()))},directives:[Yr,Hn,Fr,yr,Br,$a,Mt,_r,Kt,er,Qr,Rn,Lr,Vc,Pi],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),e}(),bfe=function(){function e(a){this.rest=a,this.chart=null}return e.prototype.onResize=function(a){this.chart&&this.chart.resize()},e.prototype.ngOnInit=function(){var a=this;this.rest.system.stats("complete",this.poolUuid).subscribe(function(t){a.options={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:t.assigned.map(function(n){return Lu("SHORT_DATETIME_FORMAT",new Date(n.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.assigned.map(function(n){return n.value})},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:t.cached.map(function(n){return n.value})},{name:django.gettext("In use"),type:"line",smooth:!0,data:t.inuse.map(function(n){return n.value})}]}})},e.prototype.chartInit=function(a){this.chart=a},e.\u0275fac=function(t){return new(t||e)(N(tn))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-charts"]],hostBindings:function(t,n){1&t&&ne("resize",function(c){return n.onResize(c)},!1,A0)},inputs:{poolUuid:"poolUuid"},decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","","theme","dark-digerati",3,"options","chartInit"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),ne("chartInit",function(c){return n.chartInit(c)}),E(),E()),2&t&&(H(1),z("options",n.options))},directives:[ZJ],styles:[""]}),e}();function Cfe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Summary"),E())}function wfe(e,a){if(1&e&&me(0,"uds-information",21),2&e){var t=J(2);z("value",t.servicePool)("gui",t.gui)}}function Sfe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Assigned services"),E())}function kfe(e,a){if(1&e){var t=De();A(0,"uds-table",22),ne("customButtonAction",function(c){return pe(t),J(2).onCustomAssigned(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteAssigned(c)}),E()}if(2&e){var n=J(2);z("rest",n.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",n.processsAssignedElement)("tableId","servicePools-d-services"+n.servicePool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size)}}function Mfe(e,a){if(1&e){var t=De();A(0,"uds-table",23),ne("customButtonAction",function(c){return pe(t),J(2).onCustomAssigned(c)})("newAction",function(c){return pe(t),J(2).onNewAssigned(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteAssigned(c)}),E()}if(2&e){var n=J(2);z("rest",n.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",n.processsAssignedElement)("tableId","servicePools-d-services"+n.servicePool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size)}}function xfe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Cache"),E())}function Tfe(e,a){if(1&e){var t=De();A(0,"mat-tab"),re(1,xfe,2,0,"ng-template",9),A(2,"div",10),A(3,"uds-table",24),ne("customButtonAction",function(c){return pe(t),J(2).onCustomCached(c)})("deleteAction",function(c){return pe(t),J(2).onDeleteCache(c)}),E(),E(),E()}if(2&e){var n=J(2);H(3),z("rest",n.cache)("multiSelect",!0)("allowExport",!0)("onItem",n.processsCacheElement)("tableId","servicePools-d-cache"+n.servicePool.id)("customButtons",n.customButtonsCachedServices)("pageSize",n.api.config.admin.page_size)}}function Dfe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Groups"),E())}function Afe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Transports"),E())}function Efe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Publications"),E())}function Pfe(e,a){if(1&e){var t=De();A(0,"mat-tab"),re(1,Efe,2,0,"ng-template",9),A(2,"div",10),A(3,"uds-table",25),ne("customButtonAction",function(c){return pe(t),J(2).onCustomPublication(c)})("newAction",function(c){return pe(t),J(2).onNewPublication(c)})("rowSelected",function(c){return pe(t),J(2).onPublicationRowSelect(c)}),E(),E(),E()}if(2&e){var n=J(2);H(3),z("rest",n.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+n.servicePool.id)("customButtons",n.customButtonsPublication)("pageSize",n.api.config.admin.page_size)}}function Ofe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Scheduled actions"),E())}function Ife(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Access calendars"),E())}function Rfe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Charts"),E())}function Lfe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Logs"),E())}function Ffe(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),ne("selectedIndexChange",function(h){return pe(t),J().selectedTab=h}),A(3,"mat-tab"),re(4,Cfe,2,0,"ng-template",9),A(5,"div",10),re(6,wfe,1,2,"uds-information",11),E(),E(),A(7,"mat-tab"),re(8,Sfe,2,0,"ng-template",9),A(9,"div",10),re(10,kfe,1,7,"uds-table",12),re(11,Mfe,1,7,"ng-template",null,13,ml),E(),E(),re(13,Tfe,4,7,"mat-tab",14),A(14,"mat-tab"),re(15,Dfe,2,0,"ng-template",9),A(16,"div",10),A(17,"uds-table",15),ne("newAction",function(h){return pe(t),J().onNewGroup(h)})("deleteAction",function(h){return pe(t),J().onDeleteGroup(h)}),E(),E(),E(),A(18,"mat-tab"),re(19,Afe,2,0,"ng-template",9),A(20,"div",10),A(21,"uds-table",16),ne("newAction",function(h){return pe(t),J().onNewTransport(h)})("deleteAction",function(h){return pe(t),J().onDeleteTransport(h)}),E(),E(),E(),re(22,Pfe,4,6,"mat-tab",14),A(23,"mat-tab"),re(24,Ofe,2,0,"ng-template",9),A(25,"div",10),A(26,"uds-table",17),ne("customButtonAction",function(h){return pe(t),J().onCustomScheduleAction(h)})("newAction",function(h){return pe(t),J().onNewScheduledAction(h)})("editAction",function(h){return pe(t),J().onEditScheduledAction(h)})("deleteAction",function(h){return pe(t),J().onDeleteScheduledAction(h)}),E(),E(),E(),A(27,"mat-tab"),re(28,Ife,2,0,"ng-template",9),A(29,"div",10),A(30,"uds-table",18),ne("newAction",function(h){return pe(t),J().onNewAccessCalendar(h)})("editAction",function(h){return pe(t),J().onEditAccessCalendar(h)})("deleteAction",function(h){return pe(t),J().onDeleteAccessCalendar(h)})("loaded",function(h){return pe(t),J().onAccessCalendarLoad(h)}),E(),E(),E(),A(31,"mat-tab"),re(32,Rfe,2,0,"ng-template",9),A(33,"div",10),me(34,"uds-service-pools-charts",19),E(),E(),A(35,"mat-tab"),re(36,Lfe,2,0,"ng-template",9),A(37,"div",10),me(38,"uds-logs-table",20),E(),E(),E(),E(),E()}if(2&e){var n=Pn(12),l=J();H(2),z("selectedIndex",l.selectedTab)("@.disabled",!0),H(4),z("ngIf",l.servicePool&&l.gui),H(4),z("ngIf",!1===l.servicePool.info.must_assign_manually)("ngIfElse",n),H(3),z("ngIf",l.cache),H(4),z("rest",l.groups)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonsGroups)("tableId","servicePools-d-groups"+l.servicePool.id)("pageSize",l.api.config.admin.page_size),H(4),z("rest",l.transports)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonsTransports)("tableId","servicePools-d-transports"+l.servicePool.id)("pageSize",l.api.config.admin.page_size),H(1),z("ngIf",l.publications),H(4),z("rest",l.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+l.servicePool.id)("customButtons",l.customButtonsScheduledAction)("onItem",l.processsCalendarOrScheduledElement)("pageSize",l.api.config.admin.page_size),H(4),z("rest",l.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonAccessCalendars)("tableId","servicePools-d-access"+l.servicePool.id)("onItem",l.processsCalendarOrScheduledElement)("pageSize",l.api.config.admin.page_size),H(4),z("poolUuid",l.servicePool.id),H(4),z("rest",l.rest.servicesPools)("itemId",l.servicePool.id)("tableId","servicePools-d-log"+l.servicePool.id)("pageSize",l.api.config.admin.page_size)}}var Nfe=function(e){return["/pools","service-pools",e]},hX='event'+django.gettext("Logs")+"",Vfe='computer'+django.gettext("VNC")+"",Bfe='schedule'+django.gettext("Launch now")+"",ste='perm_identity'+django.gettext("Change owner")+"",Hfe='perm_identity'+django.gettext("Assign service")+"",zfe='cancel'+django.gettext("Cancel")+"",Ufe='event'+django.gettext("Changelog")+"",lte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtonsScheduledAction=[{id:"launch-action",html:Bfe,type:Jr.SINGLE_SELECT},Il.getGotoButton(Bq,"calendarId")],this.customButtonAccessCalendars=[Il.getGotoButton(Bq,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:ste,type:Jr.SINGLE_SELECT},{id:"log",html:hX,type:Jr.SINGLE_SELECT},Il.getGotoButton(Vq,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:hX,type:Jr.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:zfe,type:Jr.SINGLE_SELECT},{id:"changelog",html:Ufe,type:Jr.ALWAYS}],this.customButtonsGroups=[Il.getGotoButton("group","auth_id","id")],this.customButtonsTransports=[Il.getGotoButton(CJ,"id")],this.servicePool=null,this.gui=null,this.selectedTab=1}return e.cleanInvalidSelections=function(a){return a.table.selection.selected.filter(function(t){return["E","R","M","S","C"].includes(t.state)}).forEach(function(t){return a.table.selection.deselect(t)}),a.table.selection.isEmpty()},e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("pool");this.assignedServices=this.rest.servicesPools.detail(t,"services"),this.groups=this.rest.servicesPools.detail(t,"groups"),this.transports=this.rest.servicesPools.detail(t,"transports"),this.scheduledActions=this.rest.servicesPools.detail(t,"actions"),this.accessCalendars=this.rest.servicesPools.detail(t,"access"),this.rest.servicesPools.get(t).subscribe(function(n){a.servicePool=n,a.cache=a.servicePool.info.uses_cache?a.rest.servicesPools.detail(t,"cache"):null,a.publications=a.servicePool.info.needs_publication?a.rest.servicesPools.detail(t,"publications"):null,a.api.config.admin.vnc_userservices&&a.customButtonsAssignedServices.push({id:"vnc",html:Vfe,type:Jr.ONLY_MENU}),a.servicePool.info.can_list_assignables&&a.customButtonsAssignedServices.push({id:"assign-service",html:Hfe,type:Jr.ALWAYS}),a.rest.servicesPools.gui().subscribe(function(l){a.gui=l.filter(function(c){return!(!1===a.servicePool.info.uses_cache&&["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"].includes(c.name)||!1===a.servicePool.info.uses_cache_l2&&"cache_l2_srvs"===c.name||!1===a.servicePool.info.needs_manager&&"osmanager_id"===c.name)})})})},e.prototype.onNewAssigned=function(a){},e.prototype.vnc=function(a){var n=new Blob(["[connection]\nhost="+a.ip+"\nport=5900\n"],{type:"application/extension-vnc"});setTimeout(function(){(0,sX.saveAs)(n,a.ip+".vnc")},100)},e.prototype.onCustomAssigned=function(a){var t=a.table.selection.selected[0];if("change-owner"===a.param.id){if(["E","R","M","S","C"].includes(t.state))return;ite.launch(this.api,t,this.assignedServices).subscribe(function(n){return a.table.overview()})}else"log"===a.param.id?dX.launch(this.api,t,this.assignedServices):"assign-service"===a.param.id?yfe.launch(this.api,this.servicePool).subscribe(function(n){return a.table.overview()}):"vnc"===a.param.id&&this.vnc(t)},e.prototype.onCustomCached=function(a){"log"===a.param.id&&dX.launch(this.api,a.table.selection.selected[0],this.cache)},e.prototype.processsAssignedElement=function(a){a.in_use=this.api.yesno(a.in_use),a.origState=a.state,"U"===a.state&&(a.state=""!==a.os_state&&"U"!==a.os_state?"Z":"U")},e.prototype.onDeleteAssigned=function(a){e.cleanInvalidSelections(a)||this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned service"))},e.prototype.onDeleteCache=function(a){e.cleanInvalidSelections(a)||this.api.gui.forms.deleteForm(a,django.gettext("Delete cached service"))},e.prototype.processsCacheElement=function(a){a.origState=a.state,"U"===a.state&&(a.state=""!==a.os_state&&"U"!==a.os_state?"Z":"U")},e.prototype.onNewGroup=function(a){ate.launch(this.api,this.servicePool,this.groups).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteGroup=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned group"))},e.prototype.onNewTransport=function(a){Kce.launch(this.api,this.servicePool).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteTransport=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned transport"))},e.prototype.onNewPublication=function(a){$ce.launch(this.api,this.servicePool).subscribe(function(t){a.table.overview()})},e.prototype.onPublicationRowSelect=function(a){1===a.table.selection.selected.length&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(a.table.selection.selected[0].state))},e.prototype.onCustomPublication=function(a){var t=this;"cancel-publication"===a.param.id?this.api.gui.yesno(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).subscribe(function(n){n&&t.publications.invoke(a.table.selection.selected[0].id+"/cancel").subscribe(function(l){t.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()})}):"changelog"===a.param.id&&Qce.launch(this.api,this.servicePool)},e.prototype.onNewScheduledAction=function(a){ote.launch(this.api,this.servicePool).subscribe(function(t){return a.table.overview()})},e.prototype.onEditScheduledAction=function(a){ote.launch(this.api,this.servicePool,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteScheduledAction=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete scheduled action"))},e.prototype.onCustomScheduleAction=function(a){var t=this;this.api.gui.yesno(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).subscribe(function(n){n&&t.scheduledActions.invoke(a.table.selection.selected[0].id+"/execute").subscribe(function(){t.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()})})},e.prototype.onNewAccessCalendar=function(a){cH.launch(this.api,this.servicePool,this.accessCalendars).subscribe(function(t){return a.table.overview()})},e.prototype.onEditAccessCalendar=function(a){cH.launch(this.api,this.servicePool,this.accessCalendars,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteAccessCalendar=function(a){-1!==a.table.selection.selected[0].id?this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(a)},e.prototype.onAccessCalendarLoad=function(a){var t=this;this.rest.servicesPools.getFallbackAccess(this.servicePool.id).subscribe(function(n){var l=a.table.dataSource.data.filter(function(c){return!0});l.push({id:-1,calendar:"-",priority:t.api.safeString('10000000FallBack'),access:n}),a.table.dataSource.data=l})},e.prototype.processsCalendarOrScheduledElement=function(a){a.name=a.calendar,a.atStart=this.api.yesno(a.atStart)},e.\u0275fac=function(t){return new(t||e)(N(gr),N(tn),N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-service-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction",4,"ngIf","ngIfElse"],["manually_assigned",""],[4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","transports",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","customButtonAction","newAction","editAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","newAction","editAction","deleteAction","loaded"],[3,"poolUuid"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","newAction","deleteAction"],["icon","cached",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","publications",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","newAction","rowSelected"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),Z(4,"arrow_back"),E(),E(),Z(5," \xa0"),me(6,"img",4),Z(7),E(),re(8,Ffe,39,38,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,Nfe,n.servicePool?n.servicePool.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/pools.png"),Lt),H(1),Ve(" \xa0",null==n.servicePool?null:n.servicePool.name," "),H(1),z("ngIf",null!==n.servicePool))},directives:[xl,Kt,Nc,Ru,Fc,Hr,bfe,ck,Hn,lH],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-revision, .mat-column-cache_level, .mat-column-in_use, .mat-column-priority{max-width:7rem;justify-content:center} .mat-column-creation_date, .mat-column-state_date, .mat-column-publish_date, .mat-column-trans_type, .mat-column-access{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word} .row-state-S>.mat-cell{color:gray!important} .row-state-C>.mat-cell{color:gray!important} .row-state-E>.mat-cell{color:red!important} .row-state-R>.mat-cell{color:orange!important}"]}),e}(),ute=function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New meta pool"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit meta pool"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete meta pool"))},e.prototype.onDetail=function(a){this.api.navigation.gotoMetapoolDetail(a.param.id)},e.prototype.processElement=function(a){a.visible=this.api.yesno(a.visible),a.name=this.api.safeString(this.api.gui.icon(a.thumb)+a.name),a.pool_group_name=this.api.safeString(this.api.gui.icon(a.pool_group_thumb)+a.pool_group_name)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))},e.\u0275fac=function(t){return new(t||e)(N(At),N(gr),N(tn))},e.\u0275cmp=Se({type:e,selectors:[["uds-meta-pools"]],decls:2,vars:6,consts:[["icon","metas",3,"rest","multiSelect","allowExport","onItem","hasPermissions","pageSize","detailAction","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("detailAction",function(c){return n.onDetail(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Hr],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-pool_group_name{max-width:7rem;justify-content:center}"]}),e}();function Gfe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"New member pool"),E())}function jfe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Edit member pool"),E())}function Wfe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",11),ne("changed",function(l){return pe(t),J().servicePoolsFilter=l}),E()}}function Yfe(e,a){if(1&e&&(A(0,"mat-option",12),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.name," ")}}var cte=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.servicePools=[],this.servicePoolsFilter="",this.model=l.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},l.memberPool&&(this.memberPool.id=l.memberPool.id)}return e.launch=function(a,t,n){var l=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:l,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:n,model:t},disableClose:!1}).componentInstance.onSave},e.prototype.ngOnInit=function(){var a=this;this.rest.servicesPools.summary().subscribe(function(t){return a.servicePools=t}),this.memberPool.id&&this.model.get(this.memberPool.id).subscribe(function(t){return a.memberPool=t})},e.prototype.filtered=function(a,t){return t?a.filter(function(n){return n.name.toLocaleLowerCase().includes(t.toLocaleLowerCase())}):a},e.prototype.save=function(){var a=this;this.memberPool.pool_id?this.model.save(this.memberPool).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"))},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"h4",0),re(1,Gfe,2,0,"uds-translate",1),re(2,jfe,2,0,"uds-translate",1),E(),A(3,"mat-dialog-content"),A(4,"div",2),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),Z(8,"Priority"),E(),E(),A(9,"input",3),ne("ngModelChange",function(c){return n.memberPool.priority=c}),E(),E(),A(10,"mat-form-field"),A(11,"mat-label"),A(12,"uds-translate"),Z(13,"Service pool"),E(),E(),A(14,"mat-select",4),ne("ngModelChange",function(c){return n.memberPool.pool_id=c}),re(15,Wfe,1,0,"uds-mat-select-search",5),re(16,Yfe,2,2,"mat-option",6),E(),E(),A(17,"div",7),A(18,"span",8),A(19,"uds-translate"),Z(20,"Enabled?"),E(),E(),A(21,"mat-slide-toggle",4),ne("ngModelChange",function(c){return n.memberPool.enabled=c}),Z(22),E(),E(),E(),E(),A(23,"mat-dialog-actions"),A(24,"button",9),A(25,"uds-translate"),Z(26,"Cancel"),E(),E(),A(27,"button",10),ne("click",function(){return n.save()}),A(28,"uds-translate"),Z(29,"Ok"),E(),E(),E()),2&t&&(H(1),z("ngIf",!(null!=n.memberPool&&n.memberPool.id)),H(1),z("ngIf",null==n.memberPool?null:n.memberPool.id),H(7),z("ngModel",n.memberPool.priority),H(5),z("ngModel",n.memberPool.pool_id),H(1),z("ngIf",n.servicePools.length>10),H(1),z("ngForOf",n.filtered(n.servicePools,n.servicePoolsFilter)),H(5),z("ngModel",n.memberPool.enabled),H(1),Ve(" ",n.api.yesno(n.memberPool.enabled)," "))},directives:[Yr,Kt,Fr,yr,Br,Hn,zi,zg,g,Mt,_r,$a,er,fk,Qr,Rn,Lr,Vc,Pi],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}();function qfe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Summary"),E())}function Xfe(e,a){if(1&e&&me(0,"uds-information",17),2&e){var t=J(2);z("value",t.metaPool)("gui",t.gui)}}function Zfe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Service pools"),E())}function Kfe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Assigned services"),E())}function $fe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Groups"),E())}function Qfe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Access calendars"),E())}function Jfe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Logs"),E())}function ede(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return pe(t),J().selectedTab=c}),A(3,"mat-tab"),re(4,qfe,2,0,"ng-template",9),A(5,"div",10),re(6,Xfe,1,2,"uds-information",11),E(),E(),A(7,"mat-tab"),re(8,Zfe,2,0,"ng-template",9),A(9,"div",10),A(10,"uds-table",12),ne("newAction",function(c){return pe(t),J().onNewMemberPool(c)})("editAction",function(c){return pe(t),J().onEditMemberPool(c)})("deleteAction",function(c){return pe(t),J().onDeleteMemberPool(c)}),E(),E(),E(),A(11,"mat-tab"),re(12,Kfe,2,0,"ng-template",9),A(13,"div",10),A(14,"uds-table",13),ne("customButtonAction",function(c){return pe(t),J().onCustomAssigned(c)})("deleteAction",function(c){return pe(t),J().onDeleteAssigned(c)}),E(),E(),E(),A(15,"mat-tab"),re(16,$fe,2,0,"ng-template",9),A(17,"div",10),A(18,"uds-table",14),ne("newAction",function(c){return pe(t),J().onNewGroup(c)})("deleteAction",function(c){return pe(t),J().onDeleteGroup(c)}),E(),E(),E(),A(19,"mat-tab"),re(20,Qfe,2,0,"ng-template",9),A(21,"div",10),A(22,"uds-table",15),ne("newAction",function(c){return pe(t),J().onNewAccessCalendar(c)})("editAction",function(c){return pe(t),J().onEditAccessCalendar(c)})("deleteAction",function(c){return pe(t),J().onDeleteAccessCalendar(c)})("loaded",function(c){return pe(t),J().onAccessCalendarLoad(c)}),E(),E(),E(),A(23,"mat-tab"),re(24,Jfe,2,0,"ng-template",9),A(25,"div",10),me(26,"uds-logs-table",16),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("selectedIndex",n.selectedTab)("@.disabled",!0),H(4),z("ngIf",n.metaPool&&n.gui),H(4),z("rest",n.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("customButtons",n.customButtons)("tableId","metaPools-d-members"+n.metaPool.id)("pageSize",n.api.config.admin.page_size),H(4),z("rest",n.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+n.metaPool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size),H(4),z("rest",n.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+n.metaPool.id)("pageSize",n.api.config.admin.page_size),H(4),z("rest",n.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+n.metaPool.id)("pageSize",n.api.config.admin.page_size)("onItem",n.processsCalendarItem),H(4),z("rest",n.rest.metaPools)("itemId",n.metaPool.id)("tableId","metaPools-d-log"+n.metaPool.id)("pageSize",n.api.config.admin.page_size)}}var tde=function(e){return["/pools","meta-pools",e]},nde=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.customButtons=[Il.getGotoButton(Nq,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:ste,type:Jr.SINGLE_SELECT},{id:"log",html:hX,type:Jr.SINGLE_SELECT},Il.getGotoButton(Vq,"owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("metapool");this.rest.metaPools.get(t).subscribe(function(n){a.metaPool=n,a.rest.metaPools.gui().subscribe(function(l){a.gui=l}),a.memberPools=a.rest.metaPools.detail(t,"pools"),a.memberUserServices=a.rest.metaPools.detail(t,"services"),a.groups=a.rest.metaPools.detail(t,"groups"),a.accessCalendars=a.rest.metaPools.detail(t,"access")})},e.prototype.onNewMemberPool=function(a){cte.launch(this.api,this.memberPools).subscribe(function(){return a.table.overview()})},e.prototype.onEditMemberPool=function(a){cte.launch(this.api,this.memberPools,a.table.selection.selected[0]).subscribe(function(){return a.table.overview()})},e.prototype.onDeleteMemberPool=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Remove member pool"))},e.prototype.onCustomAssigned=function(a){var t=a.table.selection.selected[0];if("change-owner"===a.param.id){if(["E","R","M","S","C"].includes(t.state))return;ite.launch(this.api,t,this.memberUserServices).subscribe(function(n){return a.table.overview()})}else"log"===a.param.id&&dX.launch(this.api,t,this.memberUserServices)},e.prototype.onDeleteAssigned=function(a){lte.cleanInvalidSelections(a)||this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned service"))},e.prototype.onNewGroup=function(a){ate.launch(this.api,this.metaPool.id,this.groups).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteGroup=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete assigned group"))},e.prototype.onNewAccessCalendar=function(a){cH.launch(this.api,this.metaPool,this.accessCalendars).subscribe(function(t){return a.table.overview()})},e.prototype.onEditAccessCalendar=function(a){cH.launch(this.api,this.metaPool,this.accessCalendars,a.table.selection.selected[0]).subscribe(function(t){return a.table.overview()})},e.prototype.onDeleteAccessCalendar=function(a){console.log("ID",a.table.selection.selected[0].id),-1!==a.table.selection.selected[0].id?this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(a)},e.prototype.onAccessCalendarLoad=function(a){var t=this;this.rest.metaPools.getFallbackAccess(this.metaPool.id).subscribe(function(n){var l=a.table.dataSource.data.filter(function(c){return!0});l.push({id:-1,calendar:"-",priority:t.api.safeString('10000000FallBack'),access:n}),a.table.dataSource.data=l})},e.prototype.processElement=function(a){a.enabled=this.api.yesno(a.enabled)},e.prototype.processsCalendarItem=function(a){a.name=a.calendar,a.atStart=this.api.yesno(a.atStart)},e.\u0275fac=function(t){return new(t||e)(N(gr),N(tn),N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-meta-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","customButtons","tableId","pageSize","newAction","editAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","groups",3,"rest","multiSelect","allowExport","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","pageSize","onItem","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),Z(4,"arrow_back"),E(),E(),Z(5," \xa0"),me(6,"img",4),Z(7),E(),re(8,ede,27,31,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,tde,n.metaPool?n.metaPool.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/metas.png"),Lt),H(1),Ve(" ",null==n.metaPool?null:n.metaPool.name," "),H(1),z("ngIf",n.metaPool))},directives:[xl,Kt,Nc,Ru,Fc,Hr,ck,Hn,lH],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),e}(),fte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New pool group"),!1).subscribe(function(t){return a.table.overview()})},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit pool group"),!1).subscribe(function(t){return a.table.overview()})},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete pool group"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))},e.\u0275fac=function(t){return new(t||e)(N(gr),N(tn),N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",n.api.config.admin.page_size)},directives:[Hr],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),e}(),dte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New calendar"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit calendar"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar"))},e.prototype.onDetail=function(a){this.api.navigation.gotoCalendarDetail(a.param.id)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))},e.\u0275fac=function(t){return new(t||e)(N(gr),N(tn),N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size)},directives:[Hr],styles:[""]}),e}(),rde=["mat-calendar-body",""];function ide(e,a){if(1&e&&(A(0,"tr",2),A(1,"td",3),Z(2),E(),E()),2&e){var t=J();H(1),Gr("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Ke("colspan",t.numCols),H(1),Ve(" ",t.label," ")}}function ade(e,a){if(1&e&&(A(0,"td",3),Z(1),E()),2&e){var t=J(2);Gr("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),Ke("colspan",t._firstRowOffset),H(1),Ve(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function ode(e,a){if(1&e){var t=De();A(0,"td",7),ne("click",function(C){var D=pe(t).$implicit;return J(2)._cellClicked(D,C)}),A(1,"div",8),Z(2),E(),me(3,"div",9),E()}if(2&e){var n=a.$implicit,l=a.index,c=J().index,h=J();Gr("width",h._cellWidth)("padding-top",h._cellPadding)("padding-bottom",h._cellPadding),dt("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",h._isActiveCell(c,l))("mat-calendar-body-range-start",h._isRangeStart(n.compareValue))("mat-calendar-body-range-end",h._isRangeEnd(n.compareValue))("mat-calendar-body-in-range",h._isInRange(n.compareValue))("mat-calendar-body-comparison-bridge-start",h._isComparisonBridgeStart(n.compareValue,c,l))("mat-calendar-body-comparison-bridge-end",h._isComparisonBridgeEnd(n.compareValue,c,l))("mat-calendar-body-comparison-start",h._isComparisonStart(n.compareValue))("mat-calendar-body-comparison-end",h._isComparisonEnd(n.compareValue))("mat-calendar-body-in-comparison-range",h._isInComparisonRange(n.compareValue))("mat-calendar-body-preview-start",h._isPreviewStart(n.compareValue))("mat-calendar-body-preview-end",h._isPreviewEnd(n.compareValue))("mat-calendar-body-in-preview",h._isInPreview(n.compareValue)),z("ngClass",n.cssClasses)("tabindex",h._isActiveCell(c,l)?0:-1),Ke("data-mat-row",c)("data-mat-col",l)("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-selected",h._isSelected(n.compareValue)),H(1),dt("mat-calendar-body-selected",h._isSelected(n.compareValue))("mat-calendar-body-comparison-identical",h._isComparisonIdentical(n.compareValue))("mat-calendar-body-today",h.todayValue===n.compareValue),H(1),Ve(" ",n.displayValue," ")}}function sde(e,a){if(1&e&&(A(0,"tr",4),re(1,ade,2,6,"td",5),re(2,ode,4,46,"td",6),E()),2&e){var t=a.$implicit,n=a.index,l=J();H(1),z("ngIf",0===n&&l._firstRowOffset),H(1),z("ngForOf",t)}}function lde(e,a){if(1&e&&(A(0,"th",5),A(1,"abbr",6),Z(2),E(),E()),2&e){var t=a.$implicit;Ke("aria-label",t.long),H(1),Ke("title",t.long),H(1),On(t.narrow)}}var hte=["*"];function ude(e,a){}function cde(e,a){if(1&e){var t=De();A(0,"mat-month-view",5),ne("activeDateChange",function(c){return pe(t),J().activeDate=c})("_userSelection",function(c){return pe(t),J()._dateSelected(c)}),E()}if(2&e){var n=J();z("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)}}function fde(e,a){if(1&e){var t=De();A(0,"mat-year-view",6),ne("activeDateChange",function(c){return pe(t),J().activeDate=c})("monthSelected",function(c){return pe(t),J()._monthSelectedInYearView(c)})("selectedChange",function(c){return pe(t),J()._goToDateInView(c,"month")}),E()}if(2&e){var n=J();z("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function dde(e,a){if(1&e){var t=De();A(0,"mat-multi-year-view",7),ne("activeDateChange",function(c){return pe(t),J().activeDate=c})("yearSelected",function(c){return pe(t),J()._yearSelectedInMultiYearView(c)})("selectedChange",function(c){return pe(t),J()._goToDateInView(c,"year")}),E()}if(2&e){var n=J();z("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function hde(e,a){}var pde=["button"];function vde(e,a){1&e&&(va(),A(0,"svg",3),me(1,"path",4),E())}var gde=[[["","matDatepickerToggleIcon",""]]],mde=["[matDatepickerToggleIcon]"],IP=function(){var e=function(){function a(){F(this,a),this.changes=new qe,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return W(a,[{key:"formatYearRange",value:function(n,l){return"".concat(n," \u2013 ").concat(l)}}]),a}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=We({factory:function(){return new e},token:e,providedIn:"root"}),e}(),pX=function e(a,t,n,l){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:a,_=arguments.length>6?arguments[6]:void 0;F(this,e),this.value=a,this.displayValue=t,this.ariaLabel=n,this.enabled=l,this.cssClasses=c,this.compareValue=h,this.rawValue=_},dk=function(){var e=function(){function a(t,n){var l=this;F(this,a),this._elementRef=t,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new ye,this.previewChange=new ye,this._enterHandler=function(c){if(l._skipNextFocus&&"focus"===c.type)l._skipNextFocus=!1;else if(c.target&&l.isRange){var h=l._getCellFromElement(c.target);h&&l._ngZone.run(function(){return l.previewChange.emit({value:h.enabled?h:null,event:c})})}},this._leaveHandler=function(c){null!==l.previewEnd&&l.isRange&&c.target&&vX(c.target)&&l._ngZone.run(function(){return l.previewChange.emit({value:null,event:c})})},n.runOutsideAngular(function(){var c=t.nativeElement;c.addEventListener("mouseenter",l._enterHandler,!0),c.addEventListener("focus",l._enterHandler,!0),c.addEventListener("mouseleave",l._leaveHandler,!0),c.addEventListener("blur",l._leaveHandler,!0)})}return W(a,[{key:"_cellClicked",value:function(n,l){n.enabled&&this.selectedValueChange.emit({value:n.value,event:l})}},{key:"_isSelected",value:function(n){return this.startValue===n||this.endValue===n}},{key:"ngOnChanges",value:function(n){var l=n.numCols,c=this.rows,h=this.numCols;(n.rows||l)&&(this._firstRowOffset=c&&c.length&&c[0].length?h-c[0].length:0),(n.cellAspectRatio||l||!this._cellPadding)&&(this._cellPadding="".concat(50*this.cellAspectRatio/h,"%")),(l||!this._cellWidth)&&(this._cellWidth="".concat(100/h,"%"))}},{key:"ngOnDestroy",value:function(){var n=this._elementRef.nativeElement;n.removeEventListener("mouseenter",this._enterHandler,!0),n.removeEventListener("focus",this._enterHandler,!0),n.removeEventListener("mouseleave",this._leaveHandler,!0),n.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(n,l){var c=n*this.numCols+l;return n&&(c-=this._firstRowOffset),c==this.activeCell}},{key:"_focusActiveCell",value:function(){var n=this,l=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){n._ngZone.onStable.pipe(or(1)).subscribe(function(){var c=n._elementRef.nativeElement.querySelector(".mat-calendar-body-active");c&&(l||(n._skipNextFocus=!0),c.focus())})})}},{key:"_isRangeStart",value:function(n){return gX(n,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(n){return mX(n,this.startValue,this.endValue)}},{key:"_isInRange",value:function(n){return _X(n,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(n){return gX(n,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(n,l,c){if(!this._isComparisonStart(n)||this._isRangeStart(n)||!this._isInRange(n))return!1;var h=this.rows[l][c-1];if(!h){var _=this.rows[l-1];h=_&&_[_.length-1]}return h&&!this._isRangeEnd(h.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(n,l,c){if(!this._isComparisonEnd(n)||this._isRangeEnd(n)||!this._isInRange(n))return!1;var h=this.rows[l][c+1];if(!h){var _=this.rows[l+1];h=_&&_[0]}return h&&!this._isRangeStart(h.compareValue)}},{key:"_isComparisonEnd",value:function(n){return mX(n,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(n){return _X(n,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(n){return this.comparisonStart===this.comparisonEnd&&n===this.comparisonStart}},{key:"_isPreviewStart",value:function(n){return gX(n,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(n){return mX(n,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(n){return _X(n,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(n){var l;if(vX(n)?l=n:vX(n.parentNode)&&(l=n.parentNode),l){var c=l.getAttribute("data-mat-row"),h=l.getAttribute("data-mat-col");if(c&&h)return this.rows[parseInt(c)][parseInt(h)]}return null}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft))},e.\u0275cmp=Se({type:e,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[on],attrs:rde,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,n){1&t&&(re(0,ide,3,6,"tr",0),re(1,sde,3,2,"tr",1)),2&t&&(z("ngIf",n._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),e}();function vX(e){return"TD"===e.nodeName}function gX(e,a,t){return null!==t&&a!==t&&e=a&&e===t}function _X(e,a,t,n){return n&&null!==a&&null!==t&&a!==t&&e>=a&&e<=t}var wo=function e(a,t){F(this,e),this.start=a,this.end=t},Gg=function(){var e=function(){function a(t,n){F(this,a),this.selection=t,this._adapter=n,this._selectionChanged=new qe,this.selectionChanged=this._selectionChanged,this.selection=t}return W(a,[{key:"updateSelection",value:function(n,l){var c=this.selection;this.selection=n,this._selectionChanged.next({selection:n,source:l,oldValue:c})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(n){return this._adapter.isDateInstance(n)&&this._adapter.isValid(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(ce(void 0),ce(jr))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),Cde=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l){return F(this,n),t.call(this,null,l)}return W(n,[{key:"add",value:function(c){Ie(Oe(n.prototype),"updateSelection",this).call(this,c,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}},{key:"clone",value:function(){var c=new n(this._adapter);return c.updateSelection(this.selection,this),c}}]),n}(Gg);return e.\u0275fac=function(t){return new(t||e)(ce(jr))},e.\u0275prov=We({token:e,factory:e.\u0275fac}),e}(),pte={provide:Gg,deps:[[new oi,new Fo,Gg],jr],useFactory:function(e,a){return e||new Cde(a)}},fH=new Ee("MAT_DATE_RANGE_SELECTION_STRATEGY"),vte=function(){var e=function(){function a(t,n,l,c,h){F(this,a),this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=l,this._dir=c,this._rangeStrategy=h,this._rerenderSubscription=Be.EMPTY,this.selectedChange=new ye,this._userSelection=new ye,this.activeDateChange=new ye,this._activeDate=this._dateAdapter.today()}return W(a,[{key:"activeDate",get:function(){return this._activeDate},set:function(n){var l=this._activeDate,c=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(c,this.minDate,this.maxDate),this._hasSameMonthAndYear(l,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n instanceof wo?n:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(n){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"maxDate",get:function(){return this._maxDate},set:function(n){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"ngAfterContentInit",value:function(){var n=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe($r(null)).subscribe(function(){return n._init()})}},{key:"ngOnChanges",value:function(n){var l=n.comparisonStart||n.comparisonEnd;l&&!l.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(n){var C,k,l=n.value,c=this._dateAdapter.getYear(this.activeDate),h=this._dateAdapter.getMonth(this.activeDate),_=this._dateAdapter.createDate(c,h,l);this._selected instanceof wo?(C=this._getDateInCurrentMonth(this._selected.start),k=this._getDateInCurrentMonth(this._selected.end)):C=k=this._getDateInCurrentMonth(this._selected),(C!==l||k!==l)&&this.selectedChange.emit(_),this._userSelection.emit({value:_,event:n.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}},{key:"_handleCalendarBodyKeydown",value:function(n){var l=this._activeDate,c=this._isRtl();switch(n.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=n.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=n.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&n.preventDefault());case 27:return void(null!=this._previewEnd&&!Bi(n)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:n}),n.preventDefault(),n.stopPropagation()));default:return}this._dateAdapter.compareDate(l,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),n.preventDefault()}},{key:"_handleCalendarBodyKeyup",value:function(n){(32===n.keyCode||13===n.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:n}),this._selectionKeyPressed=!1)}},{key:"_init",value:function(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(n)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(n){this._matCalendarBody._focusActiveCell(n)}},{key:"_previewChanged",value:function(n){var c=n.value;if(this._rangeStrategy){var _=this._rangeStrategy.createPreview(c?c.rawValue:null,this.selected,n.event);this._previewStart=this._getCellCompareValue(_.start),this._previewEnd=this._getCellCompareValue(_.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var n=this._dateAdapter.getFirstDayOfWeek(),l=this._dateAdapter.getDayOfWeekNames("narrow"),h=this._dateAdapter.getDayOfWeekNames("long").map(function(_,C){return{long:_,narrow:l[C]}});this._weekdays=h.slice(n).concat(h.slice(0,n))}},{key:"_createWeekCells",value:function(){var n=this._dateAdapter.getNumDaysInMonth(this.activeDate),l=this._dateAdapter.getDateNames();this._weeks=[[]];for(var c=0,h=this._firstWeekOffset;c=0)&&(!this.maxDate||this._dateAdapter.compareDate(n,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(n))}},{key:"_getDateInCurrentMonth",value:function(n){return n&&this._hasSameMonthAndYear(n,this.activeDate)?this._dateAdapter.getDate(n):null}},{key:"_hasSameMonthAndYear",value:function(n,l){return!(!n||!l||this._dateAdapter.getMonth(n)!=this._dateAdapter.getMonth(l)||this._dateAdapter.getYear(n)!=this._dateAdapter.getYear(l))}},{key:"_getCellCompareValue",value:function(n){if(n){var l=this._dateAdapter.getYear(n),c=this._dateAdapter.getMonth(n),h=this._dateAdapter.getDate(n);return new Date(l,c,h).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(n){n instanceof wo?(this._rangeStart=this._getCellCompareValue(n.start),this._rangeEnd=this._getCellCompareValue(n.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(n),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}},{key:"_canSelect",value:function(n){return!this.dateFilter||this.dateFilter(n)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Bt),N(Pu,8),N(jr,8),N(Mr,8),N(fH,8))},e.\u0275cmp=Se({type:e,selectors:[["mat-month-view"]],viewQuery:function(t,n){var l;1&t&&wt(dk,5),2&t&&Ne(l=Le())&&(n._matCalendarBody=l.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[on],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"mat-calendar-abbr"]],template:function(t,n){1&t&&(A(0,"table",0),A(1,"thead",1),A(2,"tr"),re(3,lde,3,3,"th",2),E(),A(4,"tr"),me(5,"th",3),E(),E(),A(6,"tbody",4),ne("selectedValueChange",function(c){return n._dateSelected(c)})("previewChange",function(c){return n._previewChanged(c)})("keyup",function(c){return n._handleCalendarBodyKeyup(c)})("keydown",function(c){return n._handleCalendarBodyKeydown(c)}),E(),E()),2&t&&(H(3),z("ngForOf",n._weekdays),H(3),z("label",n._monthLabel)("rows",n._weeks)("todayValue",n._todayDate)("startValue",n._rangeStart)("endValue",n._rangeEnd)("comparisonStart",n._comparisonRangeStart)("comparisonEnd",n._comparisonRangeEnd)("previewStart",n._previewStart)("previewEnd",n._previewEnd)("isRange",n._isRange)("labelMinRequiredCells",3)("activeCell",n._dateAdapter.getDate(n.activeDate)-1))},directives:[er,dk],encapsulation:2,changeDetection:0}),e}(),gte=function(){var e=function(){function a(t,n,l){F(this,a),this._changeDetectorRef=t,this._dateAdapter=n,this._dir=l,this._rerenderSubscription=Be.EMPTY,this.selectedChange=new ye,this.yearSelected=new ye,this.activeDateChange=new ye,this._activeDate=this._dateAdapter.today()}return W(a,[{key:"activeDate",get:function(){return this._activeDate},set:function(n){var l=this._activeDate,c=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(c,this.minDate,this.maxDate),mte(this._dateAdapter,l,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n instanceof wo?n:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n)),this._setSelectedYear(n)}},{key:"minDate",get:function(){return this._minDate},set:function(n){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"maxDate",get:function(){return this._maxDate},set:function(n){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"ngAfterContentInit",value:function(){var n=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe($r(null)).subscribe(function(){return n._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var n=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var c=this._dateAdapter.getYear(this._activeDate)-RP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var h=0,_=[];h<24;h++)_.push(c+h),4==_.length&&(this._years.push(_.map(function(C){return n._createCellForYear(C)})),_=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(n){var l=n.value;this.yearSelected.emit(this._dateAdapter.createDate(l,0,1));var c=this._dateAdapter.getMonth(this.activeDate),h=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(l,c,1));this.selectedChange.emit(this._dateAdapter.createDate(l,c,Math.min(this._dateAdapter.getDate(this.activeDate),h)))}},{key:"_handleCalendarBodyKeydown",value:function(n){var l=this._activeDate,c=this._isRtl();switch(n.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-RP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-RP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(l,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),n.preventDefault()}},{key:"_handleCalendarBodyKeyup",value:function(n){(32===n.keyCode||13===n.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:n}),this._selectionKeyPressed=!1)}},{key:"_getActiveCell",value:function(){return RP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(n){var l=this._dateAdapter.createDate(n,0,1),c=this._dateAdapter.getYearName(l),h=this.dateClass?this.dateClass(l,"multi-year"):void 0;return new pX(n,c,c,this._shouldEnableYear(n),h)}},{key:"_shouldEnableYear",value:function(n){if(null==n||this.maxDate&&n>this._dateAdapter.getYear(this.maxDate)||this.minDate&&nc||n===c&&l>h}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(n,l){if(this.minDate){var c=this._dateAdapter.getYear(this.minDate),h=this._dateAdapter.getMonth(this.minDate);return n enter-dropdown",Tn("120ms cubic-bezier(0, 0, 0.2, 1)",Dl([gt({opacity:0,transform:"scale(1, 0.8)"}),gt({opacity:1,transform:"scale(1, 1)"})]))),zn("void => enter-dialog",Tn("150ms cubic-bezier(0, 0, 0.2, 1)",Dl([gt({opacity:0,transform:"scale(0.7)"}),gt({transform:"none",opacity:1})]))),zn("* => void",Tn("100ms linear",gt({opacity:0})))]),fadeInCalendar:Ei("fadeInCalendar",[Bn("void",gt({opacity:0})),Bn("enter",gt({opacity:1})),zn("void => *",Tn("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},Ode=0,Cte=new Ee("mat-datepicker-scroll-strategy"),Rde={provide:Cte,deps:[Ai],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Lde=Eu(function(){return function e(a){F(this,e),this._elementRef=a}}()),Fde=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;return F(this,n),(D=t.call(this,l))._changeDetectorRef=c,D._globalModel=h,D._dateAdapter=_,D._rangeSelectionStrategy=C,D._subscriptions=new Be,D._animationDone=new qe,D._actionsPortal=null,D._closeButtonText=k.closeCalendarLabel,D}return W(n,[{key:"ngOnInit",value:function(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}},{key:"ngAfterViewInit",value:function(){var c=this;this._subscriptions.add(this.datepicker.stateChanges.subscribe(function(){c._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(c){var h=this._model.selection,_=c.value,C=h instanceof wo;if(C&&this._rangeSelectionStrategy){var k=this._rangeSelectionStrategy.selectionFinished(_,h,c.event);this._model.updateSelection(k,this)}else _&&(C||!this._dateAdapter.sameDate(_,h))&&this._model.add(_);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model.selection}},{key:"_applyPendingSelection",value:function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}]),n}(Lde);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Bt),N(Gg),N(jr),N(fH,8),N(IP))},e.\u0275cmp=Se({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(t,n){var l;1&t&&wt(CX,5),2&t&&Ne(l=Le())&&(n._calendar=l.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,n){1&t&&mv("@transformPanel.done",function(){return n._animationDone.next()}),2&t&&(Ba("@transformPanel",n._animationState),dt("mat-datepicker-content-touch",n.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[Pe],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"mat-calendar",1),ne("yearSelected",function(c){return n.datepicker._selectYear(c)})("monthSelected",function(c){return n.datepicker._selectMonth(c)})("viewChanged",function(c){return n.datepicker._viewChanged(c)})("_userSelection",function(c){return n._handleUserSelection(c)}),E(),re(2,hde,0,0,"ng-template",2),A(3,"button",3),ne("focus",function(){return n._closeButtonFocused=!0})("blur",function(){return n._closeButtonFocused=!1})("click",function(){return n.datepicker.close()}),Z(4),E(),E()),2&t&&(dt("mat-datepicker-content-container-with-actions",n._actionsPortal),H(1),z("id",n.datepicker.id)("ngClass",n.datepicker.panelClass)("startAt",n.datepicker.startAt)("startView",n.datepicker.startView)("minDate",n.datepicker._getMinDate())("maxDate",n.datepicker._getMaxDate())("dateFilter",n.datepicker._getDateFilter())("headerComponent",n.datepicker.calendarHeaderComponent)("selected",n._getSelected())("dateClass",n.datepicker.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)("@fadeInCalendar","enter"),H(1),z("cdkPortalOutlet",n._actionsPortal),H(1),dt("cdk-visually-hidden",!n._closeButtonFocused),z("color",n.color||"primary"),H(1),On(n._closeButtonText))},directives:[UV,CX,Ts,Os,Rn],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[bte.transformPanel,bte.fadeInCalendar]},changeDetection:0}),e}(),xb=function(){var e=function(){function a(t,n,l,c,h,_,C,k,D){F(this,a),this._overlay=n,this._ngZone=l,this._viewContainerRef=c,this._dateAdapter=_,this._dir=C,this._model=D,this._inputStateChanges=Be.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new ye,this.monthSelected=new ye,this.viewChanged=new ye(!0),this.openedStream=new ye,this.closedStream=new ye,this._opened=!1,this.id="mat-datepicker-".concat(Ode++),this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this.stateChanges=new qe,this._scrollStrategy=h}return W(a,[{key:"startAt",get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)},set:function(n){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"color",get:function(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)},set:function(n){this._color=n}},{key:"touchUi",get:function(){return this._touchUi},set:function(n){this._touchUi=it(n)}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(n){var l=it(n);l!==this._disabled&&(this._disabled=l,this.stateChanges.next(void 0))}},{key:"restoreFocus",get:function(){return this._restoreFocus},set:function(n){this._restoreFocus=it(n)}},{key:"panelClass",get:function(){return this._panelClass},set:function(n){this._panelClass=G3(n)}},{key:"opened",get:function(){return this._opened},set:function(n){it(n)?this.open():this.close()}},{key:"_getMinDate",value:function(){return this.datepickerInput&&this.datepickerInput.min}},{key:"_getMaxDate",value:function(){return this.datepickerInput&&this.datepickerInput.max}},{key:"_getDateFilter",value:function(){return this.datepickerInput&&this.datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(n){var l=n.xPosition||n.yPosition;if(l&&!l.firstChange&&this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;c instanceof hE&&(this._setConnectedPositions(c),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}},{key:"select",value:function(n){this._model.add(n)}},{key:"_selectYear",value:function(n){this.yearSelected.emit(n)}},{key:"_selectMonth",value:function(n){this.monthSelected.emit(n)}},{key:"_viewChanged",value:function(n){this.viewChanged.emit(n)}},{key:"registerInput",value:function(n){var l=this;return this._inputStateChanges.unsubscribe(),this.datepickerInput=n,this._inputStateChanges=n.stateChanges.subscribe(function(){return l.stateChanges.next(void 0)}),this._model}},{key:"registerActions",value:function(n){this._actionsPortal=n}},{key:"removeActions",value:function(n){n===this._actionsPortal&&(this._actionsPortal=null)}},{key:"open",value:function(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Ky(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var n=this;if(this._opened){if(this._componentRef){var l=this._componentRef.instance;l._startExitAnimation(),l._animationDone.pipe(or(1)).subscribe(function(){return n._destroyOverlay()})}var c=function(){n._opened&&(n._opened=!1,n.closedStream.emit(),n._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(c)):c()}}},{key:"_applyPendingSelection",value:function(){var n,l;null===(l=null===(n=this._componentRef)||void 0===n?void 0:n.instance)||void 0===l||l._applyPendingSelection()}},{key:"_forwardContentValues",value:function(n){n.datepicker=this,n.color=this.color,n._actionsPortal=this._actionsPortal}},{key:"_openOverlay",value:function(){var n=this;this._destroyOverlay();var l=this.touchUi,c=this.datepickerInput.getOverlayLabelId(),h=new sd(Fde,this._viewContainerRef),_=this._overlayRef=this._overlay.create(new up({positionStrategy:l?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[l?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:l?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-".concat(l?"dialog":"popup")})),C=_.overlayElement;C.setAttribute("role","dialog"),c&&C.setAttribute("aria-labelledby",c),l&&C.setAttribute("aria-modal","true"),this._getCloseStream(_).subscribe(function(k){k&&k.preventDefault(),n.close()}),this._componentRef=_.attach(h),this._forwardContentValues(this._componentRef.instance),l||this._ngZone.onStable.pipe(or(1)).subscribe(function(){return _.updatePosition()})}},{key:"_destroyOverlay",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}},{key:"_getDialogStrategy",value:function(){return this._overlay.position().global().centerHorizontally().centerVertically()}},{key:"_getDropdownStrategy",value:function(){var n=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(n)}},{key:"_setConnectedPositions",value:function(n){var l="end"===this.xPosition?"end":"start",c="start"===l?"end":"start",h="above"===this.yPosition?"bottom":"top",_="top"===h?"bottom":"top";return n.withPositions([{originX:l,originY:_,overlayX:l,overlayY:h},{originX:l,originY:h,overlayX:l,overlayY:_},{originX:c,originY:_,overlayX:c,overlayY:h},{originX:c,originY:h,overlayX:c,overlayY:_}])}},{key:"_getCloseStream",value:function(n){var l=this;return ot(n.backdropClick(),n.detachments(),n.keydownEvents().pipe(vr(function(c){return 27===c.keyCode&&!Bi(c)||l.datepickerInput&&Bi(c,"altKey")&&38===c.keyCode})))}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Ai),N(ft),N($n),N(Cte),N(jr,8),N(Mr,8),N(lt,8),N(Gg))},e.\u0275dir=ve({type:e,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[on]}),e}(),wte=function(){var e=function(a){ae(n,a);var t=ue(n);function n(){return F(this,n),t.apply(this,arguments)}return n}(xb);return e.\u0275fac=function(){var a;return function(n){return(a||(a=Xt(e)))(n||e)}}(),e.\u0275cmp=Se({type:e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Xe([pte,{provide:xb,useExisting:e}]),Pe],decls:0,vars:0,template:function(t,n){},encapsulation:2,changeDetection:0}),e}(),dH=function e(a,t){F(this,e),this.target=a,this.targetElement=t,this.value=this.target.value},Ste=function(){var e=function(){function a(t,n,l){var c=this;F(this,a),this._elementRef=t,this._dateAdapter=n,this._dateFormats=l,this.dateChange=new ye,this.dateInput=new ye,this.stateChanges=new qe,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=Be.EMPTY,this._localeSubscription=Be.EMPTY,this._parseValidator=function(){return c._lastValueValid?null:{matDatepickerParse:{text:c._elementRef.nativeElement.value}}},this._filterValidator=function(h){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(h.value));return!_||c._matchesFilter(_)?null:{matDatepickerFilter:!0}},this._minValidator=function(h){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(h.value)),C=c._getMinDate();return!C||!_||c._dateAdapter.compareDate(C,_)<=0?null:{matDatepickerMin:{min:C,actual:_}}},this._maxValidator=function(h){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(h.value)),C=c._getMaxDate();return!C||!_||c._dateAdapter.compareDate(C,_)>=0?null:{matDatepickerMax:{max:C,actual:_}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(function(){c._assignValueProgrammatically(c.value)})}return W(a,[{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(n){this._assignValueProgrammatically(n)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(n){var l=it(n),c=this._elementRef.nativeElement;this._disabled!==l&&(this._disabled=l,this.stateChanges.next(void 0)),l&&this._isInitialized&&c.blur&&c.blur()}},{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(n){var l=this;this._model=n,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(c){if(l._shouldHandleChangeEvent(c)){var h=l._getValueFromModel(c.selection);l._lastValueValid=l._isValidValue(h),l._cvaOnChange(h),l._onTouched(),l._formatValue(h),l.dateInput.emit(new dH(l,l._elementRef.nativeElement)),l.dateChange.emit(new dH(l,l._elementRef.nativeElement))}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(n){(function(e,a){for(var n=0,l=Object.keys(e);n2&&void 0!==arguments[2]&&arguments[2],_=arguments.length>3&&void 0!==arguments[3]&&arguments[3];!this.multiple&&this.selected&&!n.checked&&(this.selected.checked=!1),this._selectionModel?l?this._selectionModel.select(n):this._selectionModel.deselect(n):_=!0,_?Promise.resolve().then(function(){return c._updateModelValue(h)}):this._updateModelValue(h)}},{key:"_isSelected",value:function(n){return this._selectionModel&&this._selectionModel.isSelected(n)}},{key:"_isPrechecked",value:function(n){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(function(l){return null!=n.value&&l===n.value}):n.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(n){var l=this;this._rawValue=n,this._buttonToggles&&(this.multiple&&n?(Array.isArray(n),this._clearSelection(),n.forEach(function(c){return l._selectValue(c)})):(this._clearSelection(),this._selectValue(n)))}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach(function(n){return n.checked=!1})}},{key:"_selectValue",value:function(n){var l=this._buttonToggles.find(function(c){return null!=c.value&&c.value===n});l&&(l.checked=!0,this._selectionModel.select(l))}},{key:"_updateModelValue",value:function(n){n&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Bt),N(Tte,8))},e.\u0275dir=ve({type:e,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,Ote,5),2&t&&Ne(c=Le())&&(n._buttonToggles=c)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,n){2&t&&(Ke("aria-disabled",n.disabled),dt("mat-button-toggle-vertical",n.vertical)("mat-button-toggle-group-appearance-standard","standard"===n.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Xe([qde,{provide:Dte,useExisting:e}])]}),e}(),Xde=El(function(){return function e(){F(this,e)}}()),Ote=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k){var D;F(this,n),(D=t.call(this))._changeDetectorRef=c,D._elementRef=h,D._focusMonitor=_,D._isSingleSelector=!1,D._checked=!1,D.ariaLabelledby=null,D._disabled=!1,D.change=new ye;var I=Number(C);return D.tabIndex=I||0===I?I:null,D.buttonToggleGroup=l,D.appearance=k&&k.appearance?k.appearance:"standard",D}return W(n,[{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(c){this._appearance=c}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(c){var h=it(c);h!==this._checked&&(this._checked=h,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(c){this._disabled=it(c)}},{key:"ngOnInit",value:function(){var c=this.buttonToggleGroup;this._isSingleSelector=c&&!c.multiple,this.id=this.id||"mat-button-toggle-".concat(Ate++),this._isSingleSelector&&(this.name=c.name),c&&(c._isPrechecked(this)?this.checked=!0:c._isSelected(this)!==this._checked&&c._syncButtonToggle(this,this._checked))}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var c=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),c&&c._isSelected(this)&&c._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(c){this._buttonElement.nativeElement.focus(c)}},{key:"_onButtonClick",value:function(){var c=!!this._isSingleSelector||!this._checked;c!==this._checked&&(this._checked=c,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new Ete(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),n}(Xde);return e.\u0275fac=function(t){return new(t||e)(N(Dte,8),N(Bt),N(Ue),N(ia),Ci("tabindex"),N(Tte,8))},e.\u0275cmp=Se({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(t,n){var l;1&t&&wt(Wde,5),2&t&&Ne(l=Le())&&(n._buttonElement=l.first)},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(t,n){1&t&&ne("focus",function(){return n.focus()}),2&t&&(Ke("aria-label",null)("aria-labelledby",null)("id",n.id)("name",null),dt("mat-button-toggle-standalone",!n.buttonToggleGroup)("mat-button-toggle-checked",n.checked)("mat-button-toggle-disabled",n.disabled)("mat-button-toggle-appearance-standard","standard"===n.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[Pe],ngContentSelectors:Yde,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,n){if(1&t&&(rr(),A(0,"button",0,1),ne("click",function(){return n._onButtonClick()}),A(2,"span",2),Wt(3),E(),E(),me(4,"span",3),me(5,"span",4)),2&t){var l=Pn(1);z("id",n.buttonId)("disabled",n.disabled||null),Ke("tabindex",n.disabled?-1:n.tabIndex)("aria-pressed",n.checked)("name",n.name||null)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby),H(5),z("matRippleTrigger",l)("matRippleDisabled",n.disableRipple||n.disabled)}},directives:[Ls],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),e}(),Zde=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t,Aa],$t]}),e}();function Kde(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Edit rule"),E())}function $de(e,a){1&e&&(A(0,"uds-translate"),Z(1,"New rule"),E())}function Qde(e,a){if(1&e&&(A(0,"mat-option",22),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.value," ")}}function Jde(e,a){if(1&e&&(A(0,"mat-option",22),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.value," ")}}function ehe(e,a){if(1&e&&(A(0,"mat-button-toggle",22),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.value," ")}}function the(e,a){if(1&e){var t=De();A(0,"div",23),A(1,"span",24),A(2,"uds-translate"),Z(3,"Weekdays"),E(),E(),A(4,"mat-button-toggle-group",25),ne("ngModelChange",function(c){return pe(t),J().wDays=c}),re(5,ehe,2,2,"mat-button-toggle",8),E(),E()}if(2&e){var n=J();H(4),z("ngModel",n.wDays),H(1),z("ngForOf",n.weekDays)}}function nhe(e,a){if(1&e){var t=De();A(0,"mat-form-field",9),A(1,"mat-label"),A(2,"uds-translate"),Z(3,"Repeat every"),E(),E(),A(4,"input",6),ne("ngModelChange",function(c){return pe(t),J().rule.interval=c}),E(),A(5,"div",26),Z(6),E(),E()}if(2&e){var n=J();H(4),z("ngModel",n.rule.interval),H(2),Ve("\xa0",n.frequency(),"")}}var vH={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")]},gH={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},Ite=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],Rte=function(e,a){void 0===a&&(a=!1);for(var t=new Array,n=0;n<7;n++)1&e&&t.push(Ite[n].substr(0,a?100:3)),e>>=1;return t.length?t.join(", "):django.gettext("(no days)")},Lte=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.dunits=Object.keys(gH).map(function(c){return{id:c,value:gH[c]}}),this.freqs=Object.keys(vH).map(function(c){return{id:c,value:vH[c][2]}}),this.weekDays=Ite.map(function(c,h){return{id:1<0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+gH[this.rule.duration_unit]:django.gettext("with no duration")}return a.replace("$FIELD",n)},e.prototype.save=function(){var a=this;this.rules.save(this.rule).subscribe(function(){a.dialogRef.close(),a.onSave.emit(!0)})},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-calendar-rule"]],decls:73,vars:21,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"oneThird"],["matInput","","type","time",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","ngModelChange"],["matSuffix","",3,"for"],["startDatePicker",""],["matInput","",3,"matDatepicker","ngModel","placeholder","ngModelChange"],["endDatePicker",""],[1,"weekdays"],[3,"ngModel","ngModelChange","valueChange"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModel","ngModelChange"],["matSuffix",""]],template:function(t,n){if(1&t&&(A(0,"h4",0),re(1,Kde,2,0,"uds-translate",1),re(2,$de,2,0,"uds-translate",1),E(),A(3,"mat-dialog-content"),A(4,"div",2),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),Z(8,"Name"),E(),E(),A(9,"input",3),ne("ngModelChange",function(_){return n.rule.name=_}),E(),E(),A(10,"mat-form-field"),A(11,"mat-label"),A(12,"uds-translate"),Z(13,"Comments"),E(),E(),A(14,"input",3),ne("ngModelChange",function(_){return n.rule.comments=_}),E(),E(),A(15,"h3"),A(16,"uds-translate"),Z(17,"Event"),E(),E(),A(18,"mat-form-field",4),A(19,"mat-label"),A(20,"uds-translate"),Z(21,"Start time"),E(),E(),A(22,"input",5),ne("ngModelChange",function(_){return n.startTime=_}),E(),E(),A(23,"mat-form-field",4),A(24,"mat-label"),A(25,"uds-translate"),Z(26,"Duration"),E(),E(),A(27,"input",6),ne("ngModelChange",function(_){return n.rule.duration=_}),E(),E(),A(28,"mat-form-field",4),A(29,"mat-label"),A(30,"uds-translate"),Z(31,"Duration units"),E(),E(),A(32,"mat-select",7),ne("ngModelChange",function(_){return n.rule.duration_unit=_}),re(33,Qde,2,2,"mat-option",8),E(),E(),A(34,"h3"),Z(35," Repetition "),E(),A(36,"mat-form-field",9),A(37,"mat-label"),A(38,"uds-translate"),Z(39," Start date "),E(),E(),A(40,"input",10),ne("ngModelChange",function(_){return n.startDate=_}),E(),me(41,"mat-datepicker-toggle",11),me(42,"mat-datepicker",null,12),E(),A(44,"mat-form-field",9),A(45,"mat-label"),A(46,"uds-translate"),Z(47," Repeat until date "),E(),E(),A(48,"input",13),ne("ngModelChange",function(_){return n.endDate=_}),E(),me(49,"mat-datepicker-toggle",11),me(50,"mat-datepicker",null,14),E(),A(52,"div",15),A(53,"mat-form-field",9),A(54,"mat-label"),A(55,"uds-translate"),Z(56,"Frequency"),E(),E(),A(57,"mat-select",16),ne("ngModelChange",function(_){return n.rule.frequency=_})("valueChange",function(){return n.rule.interval=1}),re(58,Jde,2,2,"mat-option",8),E(),E(),re(59,the,6,2,"div",17),re(60,nhe,7,2,"mat-form-field",18),E(),A(61,"h3"),A(62,"uds-translate"),Z(63,"Summary"),E(),E(),A(64,"div",19),Z(65),E(),E(),E(),A(66,"mat-dialog-actions"),A(67,"button",20),A(68,"uds-translate"),Z(69,"Cancel"),E(),E(),A(70,"button",21),ne("click",function(){return n.save()}),A(71,"uds-translate"),Z(72,"Ok"),E(),E(),E()),2&t){var l=Pn(43),c=Pn(51);H(1),z("ngIf",n.rule.id),H(1),z("ngIf",!n.rule.id),H(7),z("ngModel",n.rule.name),H(5),z("ngModel",n.rule.comments),H(8),z("ngModel",n.startTime),H(5),z("ngModel",n.rule.duration),H(5),z("ngModel",n.rule.duration_unit),H(1),z("ngForOf",n.dunits),H(7),z("matDatepicker",l)("ngModel",n.startDate),H(1),z("for",l),H(7),z("matDatepicker",c)("ngModel",n.endDate)("placeholder",n.FOREVER_STRING),H(1),z("for",c),H(8),z("ngModel",n.rule.frequency),H(1),z("ngForOf",n.freqs),H(1),z("ngIf","WEEKDAYS"===n.rule.frequency),H(1),z("ngIf","WEEKDAYS"!==n.rule.frequency),H(5),Ve(" ",n.summary()," "),H(5),z("disabled",null!==n.updateRuleData()||""===n.rule.name)}},directives:[Yr,Kt,Fr,yr,Br,Hn,zi,g,Mt,_r,zg,$a,er,hH,Mte,rk,wte,Qr,Rn,Lr,Pi,Pte,Ote],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#23238580;color:#fff}"]}),e}();function ihe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Rules"),E())}function ahe(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),A(3,"mat-tab"),re(4,ihe,2,0,"ng-template",9),A(5,"div",10),A(6,"uds-table",11),ne("newAction",function(c){return pe(t),J().onNewRule(c)})("editAction",function(c){return pe(t),J().onEditRule(c)})("deleteAction",function(c){return pe(t),J().onDeleteRule(c)}),E(),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("@.disabled",!0),H(4),z("rest",n.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("tableId","calendars-d-rules"+n.calendar.id)("pageSize",n.api.config.admin.page_size)}}var ohe=function(e){return["/pools","calendars",e]},she=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("calendar");this.rest.calendars.get(t).subscribe(function(n){a.calendar=n,a.calendarRules=a.rest.calendars.detail(n.id,"rules")})},e.prototype.onNewRule=function(a){Lte.launch(this.api,this.calendarRules).subscribe(function(){return a.table.overview()})},e.prototype.onEditRule=function(a){Lte.launch(this.api,this.calendarRules,a.table.selection.selected[0]).subscribe(function(){return a.table.overview()})},e.prototype.onDeleteRule=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete calendar rule"))},e.prototype.processElement=function(a){!function(e){e.interval="WEEKDAYS"===e.frequency?Rte(e.interval):e.interval+" "+vH[e.frequency][django.pluralidx(e.interval)],e.duration=e.duration+" "+gH[e.duration_unit]}(a)},e.\u0275fac=function(t){return new(t||e)(N(gr),N(tn),N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","pageSize","newAction","editAction","deleteAction"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),Z(4,"arrow_back"),E(),E(),Z(5," \xa0"),me(6,"img",4),Z(7),E(),re(8,ahe,7,7,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,ohe,n.calendar?n.calendar.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/calendars.png"),Lt),H(1),Ve(" ",null==n.calendar?null:n.calendar.name," "),H(1),z("ngIf",n.calendar))},directives:[xl,Kt,Nc,Ru,Fc,Hr,Hn],styles:[".mat-column-start, .mat-column-end{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-interval, .mat-column-duration{max-width:11rem}"]}),e}(),lhe='event'+django.gettext("Set time mark")+"",Fte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n,this.cButtons=[{id:"timemark",html:lhe,type:Jr.SINGLE_SELECT}]}return e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),e.prototype.onNew=function(a){this.api.gui.forms.typedNewForm(a,django.gettext("New account"))},e.prototype.onEdit=function(a){this.api.gui.forms.typedEditForm(a,django.gettext("Edit account"))},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete account"))},e.prototype.onTimeMark=function(a){var t=this,n=a.table.selection.selected[0];this.api.gui.yesno(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).subscribe(function(l){l&&t.rest.accounts.timemark(n.id).subscribe(function(){t.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),a.table.overview()})})},e.prototype.onDetail=function(a){this.api.navigation.gotoAccountDetail(a.param.id)},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("account"))},e.prototype.processElement=function(a){a.time_mark=78793200===a.time_mark?django.gettext("No time mark"):Lu("SHORT_DATE_FORMAT",a.time_mark)},e.\u0275fac=function(t){return new(t||e)(N(gr),N(tn),N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem","customButtonAction","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("customButtonAction",function(c){return n.onTimeMark(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)("onItem",n.processElement)},directives:[Hr],styles:[""]}),e}();function uhe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Account usage"),E())}function che(e,a){if(1&e){var t=De();A(0,"div",6),A(1,"div",7),A(2,"mat-tab-group",8),A(3,"mat-tab"),re(4,uhe,2,0,"ng-template",9),A(5,"div",10),A(6,"uds-table",11),ne("deleteAction",function(c){return pe(t),J().onDeleteUsage(c)}),E(),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("@.disabled",!0),H(4),z("rest",n.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("tableId","account-d-usage"+n.account.id)}}var fhe=function(e){return["/pools","accounts",e]},dhe=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){var a=this,t=this.route.snapshot.paramMap.get("account");this.rest.accounts.get(t).subscribe(function(n){a.account=n,a.accountUsage=a.rest.accounts.detail(n.id,"usage")})},e.prototype.onDeleteUsage=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete account usage"))},e.prototype.processElement=function(a){a.running=this.api.yesno(a.running)},e.\u0275fac=function(t){return new(t||e)(N(gr),N(tn),N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"rest","multiSelect","allowExport","onItem","tableId","deleteAction"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),A(2,"a",2),A(3,"i",3),Z(4,"arrow_back"),E(),E(),Z(5," \xa0"),me(6,"img",4),Z(7),E(),re(8,che,7,6,"div",5),E()),2&t&&(H(2),z("routerLink",vl(4,fhe,n.account?n.account.id:"")),H(4),z("src",n.api.staticURL("admin/img/icons/accounts.png"),Lt),H(1),Ve(" ",null==n.account?null:n.account.name," "),H(1),z("ngIf",n.account))},directives:[xl,Kt,Nc,Ru,Fc,Hr,Hn],styles:[""]}),e}();function hhe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"New image for"),E())}function phe(e,a){1&e&&(A(0,"uds-translate"),Z(1,"Edit for"),E())}var Nte=function(){function e(a,t,n,l){this.api=a,this.rest=t,this.dialogRef=n,this.onSave=new ye(!0),this.preview="",this.image={id:void 0,data:"",name:""},l.image&&(this.image.id=l.image.id)}return e.launch=function(a,t){void 0===t&&(t=null);var n=window.innerWidth<800?"60%":"40%";return a.gui.dialog.open(e,{width:n,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:t},disableClose:!0}).componentInstance.onSave},e.prototype.onFileChanged=function(a){var t=this,n=a.target.files[0];if(n.size>262144)this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));else if(["image/jpeg","image/png","image/gif"].includes(n.type)){var l=new FileReader;l.onload=function(c){var h=l.result;t.preview=h,t.image.data=h.substr(h.indexOf("base64,")+7),t.image.name||(t.image.name=n.name)},l.readAsDataURL(n)}else this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"))},e.prototype.ngOnInit=function(){var a=this;this.image.id&&this.rest.gallery.get(this.image.id).subscribe(function(t){switch(a.image=t,a.image.data.substr(2)){case"iV":a.preview="data:image/png;base64,"+a.image.data;break;case"/9":a.preview="data:image/jpeg;base64,"+a.image.data;break;default:a.preview="data:image/gif;base64,"+a.image.data}})},e.prototype.background=function(){var a=this.api.config.image_size[0],t=this.api.config.image_size[1],n={"width.px":a,"height.px":t,"background-size":a+"px "+t+"px"};return this.preview&&(n["background-image"]="url("+this.preview+")"),n},e.prototype.save=function(){var a=this;this.image.name&&this.image.data?this.rest.gallery.save(this.image).subscribe(function(){a.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),a.dialogRef.close(),a.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"))},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["fileInput",""],["matInput","","type","text",3,"hidden","click"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,n){if(1&t){var l=De();A(0,"h4",0),re(1,hhe,2,0,"uds-translate",1),re(2,phe,2,0,"uds-translate",1),E(),A(3,"mat-dialog-content"),A(4,"div",2),A(5,"mat-form-field"),A(6,"mat-label"),A(7,"uds-translate"),Z(8,"Image name"),E(),E(),A(9,"input",3),ne("ngModelChange",function(h){return n.image.name=h}),E(),E(),A(10,"input",4,5),ne("change",function(h){return n.onFileChanged(h)}),E(),A(12,"mat-form-field"),A(13,"mat-label"),A(14,"uds-translate"),Z(15,"Image (click to change)"),E(),E(),A(16,"input",6),ne("click",function(){return pe(l),Pn(11).click()}),E(),A(17,"div",7),ne("click",function(){return pe(l),Pn(11).click()}),me(18,"div",8),E(),E(),A(19,"div",9),A(20,"uds-translate"),Z(21,' For optimal results, use "squared" images. '),E(),A(22,"uds-translate"),Z(23," The image will be resized on upload to "),E(),Z(24),E(),E(),E(),A(25,"mat-dialog-actions"),A(26,"button",10),A(27,"uds-translate"),Z(28,"Cancel"),E(),E(),A(29,"button",11),ne("click",function(){return n.save()}),A(30,"uds-translate"),Z(31,"Ok"),E(),E(),E()}2&t&&(H(1),z("ngIf",!n.image.id),H(1),z("ngIf",n.image.id),H(7),z("ngModel",n.image.name),H(7),z("hidden",!0),H(2),z("ngStyle",n.background()),H(6),Cv(" ",n.api.config.image_size[0],"x",n.api.config.image_size[1]," "))},directives:[Yr,Kt,Fr,yr,Br,Hn,zi,g,Mt,_r,NF,Qr,Rn,Lr],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;width:100%}.image-preview[_ngcontent-%COMP%]{background-color:#0000004d}"]}),e}(),Vte=function(){function e(a,t,n){this.route=a,this.rest=t,this.api=n}return e.prototype.ngOnInit=function(){},e.prototype.onNew=function(a){Nte.launch(this.api).subscribe(function(){return a.table.overview()})},e.prototype.onEdit=function(a){Nte.launch(this.api,a.table.selection.selected[0]).subscribe(function(){return a.table.overview()})},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete image"))},e.prototype.onLoad=function(a){!0===a.param&&a.table.selectElement("id",this.route.snapshot.paramMap.get("image"))},e.\u0275fac=function(t){return new(t||e)(N(gr),N(tn),N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),E()),2&t&&z("rest",n.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",n.api.config.admin.page_size)},directives:[Hr],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),e}(),vhe='assessment'+django.gettext("Generate report")+"",Bte=function(){function e(a,t){this.rest=a,this.api=t,this.customButtons=[{id:"genreport",html:vhe,type:Jr.SINGLE_SELECT}]}return e.prototype.ngOnInit=function(){},e.prototype.generateReport=function(a){var t=this,n=new ye;n.subscribe(function(l){t.api.gui.snackbar.open(django.gettext("Generating report...")),t.rest.reports.save(l,a.table.selection.selected[0].id).subscribe(function(c){for(var h=c.encoded?window.atob(c.data):c.data,_=h.length,C=new Uint8Array(_),k=0;k<_;k++)C[k]=h.charCodeAt(k);var D=new Blob([C],{type:c.mime_type});t.api.gui.snackbar.open(django.gettext("Report finished"),django.gettext("dismiss"),{duration:2e3}),setTimeout(function(){(0,sX.saveAs)(D,c.filename)},100)})}),this.api.gui.forms.typedForm(a,django.gettext("Generate report"),!1,[],void 0,a.table.selection.selected[0].id,{save:n})},e.\u0275fac=function(t){return new(t||e)(N(tn),N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-reports"]],decls:1,vars:6,consts:[["icon","reports",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction"]],template:function(t,n){1&t&&(A(0,"uds-table",0),ne("customButtonAction",function(c){return n.generateReport(c)}),E()),2&t&&z("rest",n.rest.reports)("multiSelect",!1)("allowExport",!1)("hasPermissions",!1)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Hr],styles:[".mat-column-group{max-width:16rem} .mat-column-name{max-width:32rem}"]}),e}();function ghe(e,a){1&e&&Z(0),2&e&&Ve(" ",J().$implicit," ")}function mhe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),Z(3),E(),A(4,"input",18),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("type",c.config[l][n].crypt?"password":"text")("ngModel",c.config[l][n].value)}}function _he(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),Z(3),E(),A(4,"textarea",19),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("ngModel",c.config[l][n].value)}}function yhe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),Z(3),E(),A(4,"input",20),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("ngModel",c.config[l][n].value)}}function bhe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"div",21),A(2,"span",22),Z(3),E(),A(4,"mat-slide-toggle",23),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),Z(5),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("ngModel",c.config[l][n].value),H(1),Ve(" ",c.api.yesno(c.config[l][n].value)," ")}}function Che(e,a){if(1&e&&(A(0,"mat-option",25),Z(1),E()),2&e){var t=a.$implicit;z("value",t),H(1),Ve(" ",t," ")}}function whe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),Z(3),E(),A(4,"mat-select",23),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),re(5,Che,2,2,"mat-option",24),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),Ve(" ",n," "),H(1),z("ngModel",c.config[l][n].value),H(1),z("ngForOf",c.config[l][n].params)}}function She(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),Z(3),E(),A(4,"input",26),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("ngModel",c.config[l][n].value)}}function khe(e,a){1&e&&un(0)}function Mhe(e,a){if(1&e){var t=De();A(0,"div"),A(1,"mat-form-field"),A(2,"mat-label"),Z(3),E(),A(4,"input",27),ne("ngModelChange",function(_){pe(t);var C=J(2).$implicit,k=J().$implicit;return J(2).config[k][C].value=_}),E(),E(),E()}if(2&e){var n=J(2).$implicit,l=J().$implicit,c=J(2);H(3),On(n),H(1),z("ngModel",c.config[l][n].value)}}function xhe(e,a){if(1&e&&(vt(0,15),re(1,mhe,5,3,"div",16),re(2,_he,5,2,"div",16),re(3,yhe,5,2,"div",16),re(4,bhe,6,3,"div",16),re(5,whe,6,3,"div",16),re(6,She,5,2,"div",16),re(7,khe,1,0,"ng-container",16),re(8,Mhe,5,2,"div",17),xn()),2&e){var t=J().$implicit,n=J().$implicit;z("ngSwitch",J(2).config[n][t].type),H(1),z("ngSwitchCase",0),H(1),z("ngSwitchCase",1),H(1),z("ngSwitchCase",2),H(1),z("ngSwitchCase",3),H(1),z("ngSwitchCase",4),H(1),z("ngSwitchCase",5),H(1),z("ngSwitchCase",6)}}function The(e,a){if(1&e&&(A(0,"div",13),re(1,xhe,9,8,"ng-container",14),E()),2&e){var t=a.$implicit,n=J().$implicit,l=J(2);H(1),z("ngIf",l.config[n][t])}}function Dhe(e,a){if(1&e&&(A(0,"mat-tab"),re(1,ghe,1,1,"ng-template",10),A(2,"div",11),re(3,The,2,1,"div",12),E(),E()),2&e){var t=a.$implicit,n=J(2);H(3),z("ngForOf",n.configElements(t))}}function Ahe(e,a){if(1&e){var t=De();A(0,"div",4),A(1,"div",5),A(2,"mat-tab-group",6),re(3,Dhe,4,1,"mat-tab",7),E(),A(4,"div",8),A(5,"button",9),ne("click",function(){return pe(t),J().save()}),A(6,"uds-translate"),Z(7,"Save"),E(),E(),E(),E(),E()}if(2&e){var n=J();H(2),z("@.disabled",!0),H(1),z("ngForOf",n.sections())}}var Hte=["UDS","Security"],zte=["UDS ID"],Ihe=[{path:"",canActivate:[mie],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:vae},{path:"providers",component:jee},{path:"providers/:provider/detail",component:Wee},{path:"providers/:provider",component:jee},{path:"providers/:provider/detail/:service",component:Wee},{path:"authenticators",component:Yee},{path:"authenticators/:authenticator/detail",component:fX},{path:"authenticators/:authenticator",component:Yee},{path:"authenticators/:authenticator/detail/groups/:group",component:fX},{path:"authenticators/:authenticator/detail/users/:user",component:fX},{path:"mfas",component:hue},{path:"osmanagers",component:Jee},{path:"osmanagers/:osmanager",component:Jee},{path:"transports",component:ete},{path:"transports/:transport",component:ete},{path:"networks",component:tte},{path:"networks/:network",component:tte},{path:"proxies",component:nte},{path:"proxies/:proxy",component:nte},{path:"pools/service-pools",component:rte},{path:"pools/service-pools/:pool",component:rte},{path:"pools/service-pools/:pool/detail",component:lte},{path:"pools/meta-pools",component:ute},{path:"pools/meta-pools/:metapool",component:ute},{path:"pools/meta-pools/:metapool/detail",component:nde},{path:"pools/pool-groups",component:fte},{path:"pools/pool-groups/:poolgroup",component:fte},{path:"pools/calendars",component:dte},{path:"pools/calendars/:calendar",component:dte},{path:"pools/calendars/:calendar/detail",component:she},{path:"pools/accounts",component:Fte},{path:"pools/accounts/:account",component:Fte},{path:"pools/accounts/:account/detail",component:dhe},{path:"tools/gallery",component:Vte},{path:"tools/gallery/:image",component:Vte},{path:"tools/reports",component:Bte},{path:"tools/reports/:report",component:Bte},{path:"tools/configuration",component:function(){function e(a,t){this.rest=a,this.api=t}return e.prototype.ngOnInit=function(){var a=this;this.rest.configuration.overview().subscribe(function(t){for(var n in a.config=t,a.config)if(a.config.hasOwnProperty(n))for(var l in a.config[n])if(a.config[n].hasOwnProperty(l)){var c=a.config[n][l];c.crypt?c.value='\u20acfa{}#42123~#||23|\xdf\xf0\u0111\xe6"':3===c.type&&(c.value=!!["1",1,!0].includes(c.value)),c.original_value=c.value}})},e.prototype.sections=function(){var a=[];for(var t in this.config)this.config.hasOwnProperty(t)&&!Hte.includes(t)&&a.push(t);return(a=a.sort(function(n,l){return n.localeCompare(l)})).unshift.apply(a,Hte),a},e.prototype.configElements=function(a){var t=[],n=this.config[a];if(n)for(var l in n)n.hasOwnProperty(l)&&("UDS"!==a||!zte.includes(l))&&t.push(l);return t=t.sort(function(c,h){return c.localeCompare(h)}),"UDS"===a&&t.unshift.apply(t,zte),t},e.prototype.save=function(){var a=this,t={};for(var n in this.config)if(this.config.hasOwnProperty(n))for(var l in this.config[n])if(this.config[n].hasOwnProperty(l)){var c=this.config[n][l];if(c.original_value!==c.value){c.original_value=c.value,t[n]||(t[n]={});var h=c.value;3===c.type&&(h=["1",1,!0].includes(c.value)?"1":"0"),t[n][l]={value:h}}}this.rest.configuration.save(t).subscribe(function(){a.api.gui.snackbar.open(django.gettext("Configuration saved"),django.gettext("dismiss"),{duration:2e3})})},e.\u0275fac=function(t){return new(t||e)(N(tn),N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-configuration"]],decls:7,vars:2,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],[4,"ngFor","ngForOf"],[1,"config-footer"],["mat-raised-button","","color","primary",3,"click"],["mat-tab-label",""],[1,"content"],["class","field",4,"ngFor","ngForOf"],[1,"field"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["matInput","",3,"type","ngModel","ngModelChange"],["matInput","",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"slider-label"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","type","text","readonly","readonly",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"div",1),me(2,"img",2),Z(3,"\xa0"),A(4,"uds-translate"),Z(5,"UDS Configuration"),E(),E(),re(6,Ahe,8,2,"div",3),E()),2&t&&(H(2),z("src",n.api.staticURL("admin/img/icons/configuration.png"),Lt),H(4),z("ngIf",n.config))},directives:[Hn,Kt,Nc,er,Rn,Ru,Fc,bu,Cu,ED,yr,Br,zi,g,Mt,_r,zg,fk,$a,Pi],styles:[".content[_ngcontent-%COMP%]{margin-top:2rem}.field[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.field[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:50%}.mat-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]}),e}()},{path:"tools/tokens/actor",component:function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))},e.\u0275fac=function(t){return new(t||e)(N(At),N(gr),N(tn))},e.\u0275cmp=Se({type:e,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("deleteAction",function(c){return n.onDelete(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size))},directives:[Hr],styles:[""]}),e}()},{path:"tools/tokens/tunnel",component:function(){function e(a,t,n){this.api=a,this.route=t,this.rest=n}return e.prototype.ngOnInit=function(){},e.prototype.onDelete=function(a){this.api.gui.forms.deleteForm(a,django.gettext("Delete tunnel token - USE WITH EXTREME CAUTION!!!"))},e.\u0275fac=function(t){return new(t||e)(N(At),N(gr),N(tn))},e.\u0275cmp=Se({type:e,selectors:[["uds-tunnel-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(t,n){1&t&&(A(0,"div"),A(1,"uds-table",0),ne("deleteAction",function(c){return n.onDelete(c)}),E(),E()),2&t&&(H(1),z("rest",n.rest.tunnelToken)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size))},directives:[Hr],styles:[""]}),e}()}]},{path:"**",redirectTo:"summary"}],Rhe=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[FA.forRoot(Ihe,{relativeLinkResolution:"legacy"})],FA]}),e}(),jte=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),Yhe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Aa,$t,ld,jte],$t,jte]}),e}(),qhe=["*"],Wte=new Ee("MatChipRemove"),Yte=new Ee("MatChipAvatar"),qte=new Ee("MatChipTrailingIcon"),Zhe=gp(Eu(El(function e(a){F(this,e),this._elementRef=a}),"primary"),-1),mH=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D,I){var L;return F(this,n),(L=t.call(this,l))._ngZone=c,L._changeDetectorRef=C,L._hasFocus=!1,L.chipListSelectable=!0,L._chipListMultiple=!1,L._chipListDisabled=!1,L._selected=!1,L._selectable=!0,L._disabled=!1,L._removable=!0,L._onFocus=new qe,L._onBlur=new qe,L.selectionChange=new ye,L.destroyed=new ye,L.removed=new ye,L._addHostClassName(),L._chipRippleTarget=k.createElement("div"),L._chipRippleTarget.classList.add("mat-chip-ripple"),L._elementRef.nativeElement.appendChild(L._chipRippleTarget),L._chipRipple=new gP(It(L),c,L._chipRippleTarget,h),L._chipRipple.setupTriggerEvents(l),L.rippleConfig=_||{},L._animationsDisabled="NoopAnimations"===D,L.tabIndex=null!=I&&parseInt(I)||-1,L}return W(n,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(c){var h=it(c);h!==this._selected&&(this._selected=h,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(c){this._value=c}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(c){this._selectable=it(c)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(c){this._disabled=it(c)}},{key:"removable",get:function(){return this._removable},set:function(c){this._removable=it(c)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var c="mat-basic-chip",h=this._elementRef.nativeElement;h.hasAttribute(c)||h.tagName.toLowerCase()===c?h.classList.add(c):h.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(c),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(c){this.disabled?c.preventDefault():c.stopPropagation()}},{key:"_handleKeydown",value:function(c){if(!this.disabled)switch(c.keyCode){case 46:case 8:this.remove(),c.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),c.preventDefault()}}},{key:"_blur",value:function(){var c=this;this._ngZone.onStable.pipe(or(1)).subscribe(function(){c._ngZone.run(function(){c._hasFocus=!1,c._onBlur.next({chip:c})})})}},{key:"_dispatchSelectionChange",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:c,selected:this._selected})}}]),n}(Zhe);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(ft),N(en),N(US,8),N(Bt),N(lt),N(Un,8),Ci("tabindex"))},e.\u0275dir=ve({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,n,l){var c;1&t&&(Zt(l,Yte,5),Zt(l,qte,5),Zt(l,Wte,5)),2&t&&(Ne(c=Le())&&(n.avatar=c.first),Ne(c=Le())&&(n.trailingIcon=c.first),Ne(c=Le())&&(n.removeIcon=c.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,n){1&t&&ne("click",function(c){return n._handleClick(c)})("keydown",function(c){return n._handleKeydown(c)})("focus",function(){return n.focus()})("blur",function(){return n._blur()}),2&t&&(Ke("tabindex",n.disabled?null:n.tabIndex)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString())("aria-selected",n.ariaSelected),dt("mat-chip-selected",n.selected)("mat-chip-with-avatar",n.avatar)("mat-chip-with-trailing-icon",n.trailingIcon||n.removeIcon)("mat-chip-disabled",n.disabled)("_mat-animation-noopable",n._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Pe]}),e}(),Xte=function(){var e=function(){function a(t,n){F(this,a),this._parentChip=t,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}return W(a,[{key:"_handleClick",value:function(n){var l=this._parentChip;l.removable&&!l.disabled&&l.remove(),n.stopPropagation()}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(mH),N(Ue))},e.\u0275dir=ve({type:e,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,n){1&t&&ne("click",function(c){return n._handleClick(c)})},features:[Xe([{provide:Wte,useExisting:e}])]}),e}(),Zte=new Ee("mat-chips-default-options"),Qhe=HS(function(){return function e(a,t,n,l){F(this,e),this._defaultErrorStateMatcher=a,this._parentForm=t,this._parentFormGroup=n,this.ngControl=l}}()),Jhe=0,epe=function e(a,t){F(this,e),this.source=a,this.value=t},Kte=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h,_,C,k,D){var I;return F(this,n),(I=t.call(this,k,_,C,D))._elementRef=l,I._changeDetectorRef=c,I._dir=h,I.controlType="mat-chip-list",I._lastDestroyedChipIndex=null,I._destroyed=new qe,I._uid="mat-chip-list-".concat(Jhe++),I._tabIndex=0,I._userTabIndex=null,I._onTouched=function(){},I._onChange=function(){},I._multiple=!1,I._compareWith=function(L,G){return L===G},I._required=!1,I._disabled=!1,I.ariaOrientation="horizontal",I._selectable=!0,I.change=new ye,I.valueChange=new ye,I.ngControl&&(I.ngControl.valueAccessor=It(I)),I}return W(n,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(c){this._multiple=it(c),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(c){this._compareWith=c,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(c){this.writeValue(c),this._value=c}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(c){this._required=it(c),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(c){this._placeholder=c,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(c){this._disabled=it(c),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(c){var h=this;this._selectable=it(c),this.chips&&this.chips.forEach(function(_){return _.chipListSelectable=h._selectable})}},{key:"tabIndex",set:function(c){this._userTabIndex=c,this._tabIndex=c}},{key:"chipSelectionChanges",get:function(){return ot.apply(void 0,Et(this.chips.map(function(c){return c.selectionChange})))}},{key:"chipFocusChanges",get:function(){return ot.apply(void 0,Et(this.chips.map(function(c){return c._onFocus})))}},{key:"chipBlurChanges",get:function(){return ot.apply(void 0,Et(this.chips.map(function(c){return c._onBlur})))}},{key:"chipRemoveChanges",get:function(){return ot.apply(void 0,Et(this.chips.map(function(c){return c.destroyed})))}},{key:"ngAfterContentInit",value:function(){var c=this;this._keyManager=new ib(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(zt(this._destroyed)).subscribe(function(h){return c._keyManager.withHorizontalOrientation(h)}),this._keyManager.tabOut.pipe(zt(this._destroyed)).subscribe(function(){c._allowFocusEscape()}),this.chips.changes.pipe($r(null),zt(this._destroyed)).subscribe(function(){c.disabled&&Promise.resolve().then(function(){c._syncChipsState()}),c._resetChips(),c._initializeSelection(),c._updateTabIndex(),c._updateFocusForDestroyedChips(),c.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new ip(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(c){this._chipInput=c,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",c.id)}},{key:"setDescribedByIds",value:function(c){this._ariaDescribedby=c.join(" ")}},{key:"writeValue",value:function(c){this.chips&&this._setSelectionByValue(c,!1)}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this.stateChanges.next()}},{key:"onContainerClick",value:function(c){this._originatesFromChip(c)||this.focus()}},{key:"focus",value:function(c){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(c),this.stateChanges.next()))}},{key:"_focusInput",value:function(c){this._chipInput&&this._chipInput.focus(c)}},{key:"_keydown",value:function(c){var h=c.target;h&&h.classList.contains("mat-chip")&&(this._keyManager.onKeydown(c),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var c=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(c)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(c){return c>=0&&c1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(k){return k.deselect()}),Array.isArray(c))c.forEach(function(k){return h._selectValue(k,_)}),this._sortValues();else{var C=this._selectValue(c,_);C&&_&&this._keyManager.setActiveItem(C)}}},{key:"_selectValue",value:function(c){var h=this,_=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],C=this.chips.find(function(k){return null!=k.value&&h._compareWith(k.value,c)});return C&&(_?C.selectViaInteraction():C.select(),this._selectionModel.select(C)),C}},{key:"_initializeSelection",value:function(){var c=this;Promise.resolve().then(function(){(c.ngControl||c._value)&&(c._setSelectionByValue(c.ngControl?c.ngControl.value:c._value,!1),c.stateChanges.next())})}},{key:"_clearSelection",value:function(c){this._selectionModel.clear(),this.chips.forEach(function(h){h!==c&&h.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var c=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(h){h.selected&&c._selectionModel.select(h)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(c){var h;h=Array.isArray(this.selected)?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=h,this.change.emit(new epe(this,h)),this.valueChange.emit(h),this._onChange(h),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var c=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){c.focused||c._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var c=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){c._tabIndex=c._userTabIndex||0,c._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var c=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(h){h.source.selected?c._selectionModel.select(h.source):c._selectionModel.deselect(h.source),c.multiple||c.chips.forEach(function(_){!c._selectionModel.isSelected(_)&&_.selected&&_.deselect()}),h.isUserInput&&c._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var c=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(h){var _=c.chips.toArray().indexOf(h.chip);c._isValidIndex(_)&&c._keyManager.updateActiveItem(_),c.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){c._blur(),c.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var c=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(h){var _=h.chip,C=c.chips.toArray().indexOf(h.chip);c._isValidIndex(C)&&_._hasFocus&&(c._lastDestroyedChipIndex=C)})}},{key:"_originatesFromChip",value:function(c){for(var h=c.target;h&&h!==this._elementRef.nativeElement;){if(h.classList.contains("mat-chip"))return!0;h=h.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(c){return c._hasFocus})}},{key:"_syncChipsState",value:function(){var c=this;this.chips&&this.chips.forEach(function(h){h._chipListDisabled=c._disabled,h._chipListMultiple=c.multiple})}}]),n}(Qhe);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Bt),N(Mr,8),N(Lc,8),N(yp,8),N(dd),N(Gt,10))},e.\u0275cmp=Se({type:e,selectors:[["mat-chip-list"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,mH,5),2&t&&Ne(c=Le())&&(n.chips=c)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,n){1&t&&ne("focus",function(){return n.focus()})("blur",function(){return n._blur()})("keydown",function(c){return n._keydown(c)}),2&t&&(Ki("id",n._uid),Ke("tabindex",n.disabled?null:n._tabIndex)("aria-describedby",n._ariaDescribedby||null)("aria-required",n.role?n.required:null)("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-multiselectable",n.multiple)("role",n.role)("aria-orientation",n.ariaOrientation),dt("mat-chip-list-disabled",n.disabled)("mat-chip-list-invalid",n.errorState)("mat-chip-list-required",n.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[Xe([{provide:nk,useExisting:e}]),Pe],ngContentSelectors:qhe,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,n){1&t&&(rr(),A(0,"div",0),Wt(1),E())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),e}(),tpe=0,$te=function(){var e=function(){function a(t,n){F(this,a),this._elementRef=t,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new ye,this.placeholder="",this.id="mat-chip-list-input-".concat(tpe++),this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return W(a,[{key:"chipList",set:function(n){n&&(this._chipList=n,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(n){this._addOnBlur=it(n)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(n){this._disabled=it(n)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(n){if(n){if(9===n.keyCode&&!Bi(n,"shiftKey")&&this._chipList._allowFocusEscape(),8===n.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void n.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(n)}},{key:"_keyup",value:function(n){!this._focusLastChipOnBackspace&&8===n.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,n.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(n){!this.inputElement.value&&!!n&&this._chipList._keydown(n),(!n||this._isSeparatorKey(n))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==n||n.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(n){this.inputElement.focus(n)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(n){return!Bi(n)&&new Set(this.separatorKeyCodes).has(n.keyCode)}}]),a}();return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(Zte))},e.\u0275dir=ve({type:e,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,n){1&t&&ne("keydown",function(c){return n._keydown(c)})("keyup",function(c){return n._keyup(c)})("blur",function(){return n._blur()})("focus",function(){return n._focus()})("input",function(){return n._onInput()}),2&t&&(Ki("id",n.id),Ke("disabled",n.disabled||null)("placeholder",n.placeholder||null)("aria-invalid",n._chipList&&n._chipList.ngControl?n._chipList.ngControl.invalid:null)("aria-required",n._chipList&&n._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[on]}),e}(),npe={separatorKeyCodes:[13]},rpe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[dd,{provide:Zte,useValue:npe}],imports:[[$t]]}),e}(),upe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({}),e}(),kpe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[Wa,$t,upe,xg]]}),e}(),Mpe=["*",[["mat-toolbar-row"]]],xpe=["*","mat-toolbar-row"],Tpe=Eu(function(){return function e(a){F(this,e),this._elementRef=a}}()),Dpe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=ve({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),Ape=function(){var e=function(a){ae(n,a);var t=ue(n);function n(l,c,h){var _;return F(this,n),(_=t.call(this,l))._platform=c,_._document=h,_}return W(n,[{key:"ngAfterViewInit",value:function(){var c=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return c._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(Tpe);return e.\u0275fac=function(t){return new(t||e)(N(Ue),N(en),N(lt))},e.\u0275cmp=Se({type:e,selectors:[["mat-toolbar"]],contentQueries:function(t,n,l){var c;1&t&&Zt(l,Dpe,5),2&t&&Ne(c=Le())&&(n._toolbarRows=c)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,n){2&t&&dt("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Pe],ngContentSelectors:xpe,decls:2,vars:0,template:function(t,n){1&t&&(rr(Mpe),Wt(0),Wt(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),Epe=function(){var e=function a(){F(this,a)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({imports:[[$t],$t]}),e}(),Ppe=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=pt({providers:[{provide:nee,useValue:{floatLabel:"always"}},{provide:hP,useValue:udsData.language}],imports:[Wa,Jne,ere,Epe,Rc,nle,hee,kpe,m5,U5,_se,lee,jde,nq,sse,Moe,Loe,qse,Yhe,Ore,rpe,Zde,Yue,Tue,AJ,ile,Vse]}),e}();function Ope(e,a){if(1&e){var t=De();A(0,"button",6),ne("click",function(){var h=pe(t).$implicit;return J().changeLang(h)}),Z(1),E()}if(2&e){var n=a.$implicit;H(1),On(n.name)}}function Ipe(e,a){if(1&e&&(A(0,"button",12),A(1,"i",7),Z(2,"face"),E(),Z(3),E()),2&e){var t=J();z("matMenuTriggerFor",Pn(7)),H(3),On(t.api.user.user)}}function Rpe(e,a){if(1&e&&(A(0,"button",18),Z(1),A(2,"i",7),Z(3,"arrow_drop_down"),E(),E()),2&e){var t=J();z("matMenuTriggerFor",Pn(7)),H(1),Ve("",t.api.user.user," ")}}var Lpe=function(){function e(a){this.api=a,this.isNavbarCollapsed=!0;var t=a.config.language;this.langs=[];for(var n=0,l=a.config.available_languages;n .mat-button[_ngcontent-%COMP%]{padding-left:1.5rem}.submenu2[_ngcontent-%COMP%] > .mat-button[_ngcontent-%COMP%]{padding-left:1.8rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em 0 0} .dark-theme .sidebar{box-shadow:0 16px 38px -12px #3030308f,0 4px 25px #3030301f,0 8px 10px -5px #30303033} .dark-theme .sidebar:hover .sidebar-link{color:#fff!important}']}),e}();function Hpe(e,a){1&e&&me(0,"div",1),2&e&&z("innerHTML",J().messages,Si)}var zpe=function(){function e(a){this.api=a,this.messages="",this.visible=!1}return e.prototype.ngOnInit=function(){var a=this;if(this.api.notices.length>0){var n='
';this.messages='
'+n+this.api.notices.map(function(l){return l.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1")}).join("
"+n)+"
",this.api.gui.alert("",this.messages,0,"80%").subscribe(function(){a.visible=!0})}},e.\u0275fac=function(t){return new(t||e)(N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(t,n){1&t&&re(0,Hpe,1,1,"div",0),2&t&&z("ngIf",n.visible)},directives:[Kt],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:steelblue;border-radius:3px;box-shadow:#00000024 0 4px 20px,#465d9c66 0 7px 10px -5px;box-sizing:border-box;color:#fff;margin:1rem 2rem 0;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]}),e}(),Upe=function(){function e(){}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(t,n){1&t&&(A(0,"div"),Z(1,"\xa9 2012-2022 "),A(2,"a",0),Z(3,"Virtual Cable S.L.U."),E(),E())},styles:['.mat-badge-content[_ngcontent-%COMP%]{font-weight:600;font-size:12px;font-family:Roboto,"Helvetica Neue",sans-serif}.mat-badge-small[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:9px}.mat-badge-large[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:24px}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2[_ngcontent-%COMP%], .mat-title[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3[_ngcontent-%COMP%], .mat-subheading-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:400 16px / 28px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4[_ngcontent-%COMP%], .mat-subheading-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font:400 15px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 calc(14px * .83) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 calc(14px * .67) / 20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-body-strong[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-small[_ngcontent-%COMP%], .mat-caption[_ngcontent-%COMP%]{font:400 12px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-display-4[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-4[_ngcontent-%COMP%]{font:300 112px / 112px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-3[_ngcontent-%COMP%]{font:400 56px / 56px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-2[_ngcontent-%COMP%]{font:400 45px / 48px Roboto,"Helvetica Neue",sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-1[_ngcontent-%COMP%]{font:400 34px / 40px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-button[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-mini-fab[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-button-toggle[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500}.mat-card-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{font-size:20px}.mat-card-subtitle[_ngcontent-%COMP%], .mat-card-content[_ngcontent-%COMP%]{font-size:14px}.mat-checkbox[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-checkbox-layout[_ngcontent-%COMP%] .mat-checkbox-label[_ngcontent-%COMP%]{line-height:24px}.mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-chip[_ngcontent-%COMP%] .mat-chip-trailing-icon.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-remove.mat-icon[_ngcontent-%COMP%]{font-size:18px}.mat-table[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-header-cell[_ngcontent-%COMP%]{font-size:12px;font-weight:500}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:14px}.mat-calendar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-calendar-body[_ngcontent-%COMP%]{font-size:13px}.mat-calendar-body-label[_ngcontent-%COMP%], .mat-calendar-period-button[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-calendar-table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:11px;font-weight:400}.mat-dialog-title[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-expansion-panel-header[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content[_ngcontent-%COMP%]{font:400 14px / 20px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field[_ngcontent-%COMP%]{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.34375em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:150%;line-height:1.125}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{height:1.5em;width:1.5em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:1.125em;line-height:1.125}.mat-form-field-infix[_ngcontent-%COMP%]{padding:.5em 0;border-top:.84375em solid transparent}.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper[_ngcontent-%COMP%]{top:-.84375em;padding-top:.84375em}.mat-form-field-label[_ngcontent-%COMP%]{top:1.34375em}.mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.34375em}.mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.7916666667em)}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);-ms-transform:translateY(-1.28125em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);-ms-transform:translateY(-1.28124em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);-ms-transform:translateY(-1.28123em) scale(.75);width:133.3333533333%}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.28125em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{margin-top:.5416666667em;top:calc(100% - 1.6666666667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.25em 0 .75em}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:1em 0}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}input.mat-input-element[_ngcontent-%COMP%]{margin-top:-.0625em}.mat-menu-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:400}.mat-paginator[_ngcontent-%COMP%], .mat-paginator-page-size[_ngcontent-%COMP%] .mat-select-trigger[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px}.mat-radio-button[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select-trigger[_ngcontent-%COMP%]{height:1.125em}.mat-slide-toggle-content[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-step-label[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.mat-step-sub-label-error[_ngcontent-%COMP%]{font-weight:normal}.mat-step-label-error[_ngcontent-%COMP%]{font-size:14px}.mat-step-label-selected[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-tab-group[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-toolbar[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:500 20px / 32px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal;margin:0}.mat-tooltip[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset[_ngcontent-%COMP%]{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-option[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:16px}.mat-optgroup-label[_ngcontent-%COMP%]{font:500 14px / 24px Roboto,"Helvetica Neue",sans-serif;letter-spacing:normal}.mat-simple-snackbar[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px}.mat-simple-snackbar-action[_ngcontent-%COMP%]{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree[_ngcontent-%COMP%]{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tree-node[_ngcontent-%COMP%], .mat-nested-tree-node[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale(0)}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%], .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{-webkit-animation:cdk-text-field-autofill-start 0s 1ms;animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){-webkit-animation:cdk-text-field-autofill-end 0s 1ms;animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%]{position:relative}.mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:#000} .dark-theme div, .dark-theme a{color:#fff}']}),e}(),Gpe=function(){function e(a){this.api=a,this.title="UDS Admin",this.blackTheme=!1}return e.prototype.handleKeyboardEvent=function(a){a.altKey&&a.ctrlKey&&"b"===a.key&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))},e.prototype.ngOnInit=function(){this.api.switchTheme(this.blackTheme)},e.\u0275fac=function(t){return new(t||e)(N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-root"]],hostBindings:function(t,n){1&t&&ne("keydown",function(c){return n.handleKeyboardEvent(c)},!1,E0)},decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,n){1&t&&(me(0,"uds-navbar"),me(1,"uds-sidebar"),A(2,"div",0),A(3,"div",1),me(4,"uds-notices"),me(5,"router-outlet"),E(),A(6,"div",2),me(7,"uds-footer"),E(),E())},directives:[Lpe,Bpe,zpe,Wy,Upe],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 56px - 8px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),e}(),jpe=function(e){function a(){var t=e.call(this)||this;return t.itemsPerPageLabel=django.gettext("Items per page"),t}return Hi(a,e),a.\u0275prov=We({token:a,factory:a.\u0275fac=function(n){return new(n||a)}}),a}(kb),Wpe=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:7,consts:[["appearance","standard"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","autocomplete","ngModelChange","change"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),Z(2),E(),A(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("maxlength",n.field.gui.length||128)("autocomplete","new-"+n.field.name))},directives:[yr,Br,zi,g,Mt,_r,Iu,L5],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),e}();function Ype(e,a){if(1&e&&(A(0,"mat-option",4),Z(1),E()),2&e){var t=a.$implicit;z("value",t),H(1),Ve(" ",t," ")}}var qpe=function(){function e(){this.changed=new ye,this.values=[]}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,this.values=this.field.gui.values.map(function(a){return a.text})},e.prototype._filter=function(){var a=this.field.value.toLowerCase();return this.values.filter(function(t){return t.toLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:9,consts:[["appearance","standard"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete","ngModelChange","change"],[3,"value"]],template:function(t,n){if(1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),Z(2),E(),A(3,"mat-autocomplete",null,1),re(5,Ype,2,2,"mat-option",2),E(),A(6,"input",3),ne("ngModelChange",function(h){return n.field.value=h})("change",function(){return n.changed.emit(n)}),E(),E()),2&t){var l=Pn(4);H(2),Ve(" ",n.field.gui.label," "),H(3),z("ngForOf",n._filter()),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("maxlength",n.field.gui.length||128)("matAutocomplete",l)("autocomplete","new-"+n.field.name)}},directives:[yr,Br,cX,er,zi,g,uH,Mt,_r,Iu,L5,Pi],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),e}(),Xpe=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){!this.field.value&&0!==this.field.value&&(this.field.value=this.field.gui.defvalue)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","number",3,"ngModel","placeholder","required","disabled","ngModelChange","change"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),Z(2),E(),A(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly))},directives:[yr,Br,zi,zg,g,Mt,_r,Iu],styles:[""]}),e}(),Zpe=function(){function e(){this.changed=new ye,this.passwordType="password"}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[["appearance","standard","floatLabel","always"],["matInput","","autocomplete","new-password",3,"ngModel","placeholder","required","disabled","type","ngModelChange","change"],["mat-button","","matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),Z(2),E(),A(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),E(),A(4,"a",2),ne("click",function(){return n.passwordType="text"===n.passwordType?"password":"text"}),A(5,"i",3),Z(6,"remove_red_eye"),E(),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("type",n.passwordType))},directives:[yr,Br,zi,g,Mt,_r,Iu,mp,rk],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),e}(),Kpe=function(){function e(){}return e.prototype.ngOnInit=function(){(""===this.field.value||void 0===this.field.value)&&(this.field.value=this.field.gui.defvalue)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(t,n){},styles:[""]}),e}(),$pe=function(){function e(){}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","auto"],["matInput","","type","text",3,"ngModel","placeholder","required","readonly","ngModelChange"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),Z(2),E(),A(3,"textarea",1),ne("ngModelChange",function(c){return n.field.value=c}),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",n.field.gui.required)("readonly",n.field.gui.rdonly))},directives:[yr,Br,zi,g,Mt,_r,Iu],styles:[""]}),e}();function Qpe(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",3),ne("changed",function(l){return pe(t),J().filter=l}),E()}}function Jpe(e,a){if(1&e&&(A(0,"mat-option",4),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.text," ")}}var eve=function(){function e(){this.changed=new ye,this.filter=""}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>0&&(this.field.value=this.field.gui.values[0].id),this.field.value=""+this.field.value},e.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var a=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(t){return t.text.toLocaleLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[[3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"mat-form-field"),A(1,"mat-label"),Z(2),E(),A(3,"mat-select",0),ne("ngModelChange",function(c){return n.field.value=c})("valueChange",function(){return n.changed.emit(n)}),re(4,Qpe,1,0,"uds-mat-select-search",1),re(5,Jpe,2,2,"mat-option",2),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(1),z("ngIf",n.field.gui.values.length>10),H(1),z("ngForOf",n.filteredValues()))},directives:[yr,Br,$a,Mt,_r,Iu,Kt,er,Vc,Pi],styles:[""]}),e}();function tve(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",3),ne("changed",function(l){return pe(t),J().filter=l}),E()}}function nve(e,a){if(1&e&&(A(0,"mat-option",4),Z(1),E()),2&e){var t=a.$implicit;z("value",t.id),H(1),Ve(" ",t.text," ")}}var rve=function(){function e(){this.changed=new ye,this.filter=""}return e.prototype.ngOnInit=function(){this.field.value=void 0,void 0!==this.field.values?this.field.values.forEach(function(a,t,n){n[t]=""+a.id}):this.field.values=new Array},e.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var a=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(t){return t.text.toLocaleLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[["multiple","",3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"mat-form-field"),A(1,"mat-label"),Z(2),E(),A(3,"mat-select",0),ne("ngModelChange",function(c){return n.field.values=c})("valueChange",function(){return n.changed.emit(n)}),re(4,tve,1,0,"uds-mat-select-search",1),re(5,nve,2,2,"mat-option",2),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("ngModel",n.field.values)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(1),z("ngIf",n.field.gui.values.length>10),H(1),z("ngForOf",n.filteredValues()))},directives:[yr,Br,$a,Mt,_r,Iu,Kt,er,Vc,Pi],styles:[""]}),e}();function ive(e,a){if(1&e){var t=De();A(0,"div",12),A(1,"div",13),Z(2),E(),A(3,"div",14),Z(4," \xa0"),A(5,"a",15),ne("click",function(){var h=pe(t).index;return J().removeElement(h)}),A(6,"i",16),Z(7,"close"),E(),E(),E(),E()}if(2&e){var n=a.$implicit;H(2),Ve(" ",n," ")}}var ave=function(){function e(a,t,n,l){var c=this;this.api=a,this.rest=t,this.dialogRef=n,this.data=l,this.values=[],this.input="",this.onSave=new ye(!0),this.data.values.forEach(function(h){return c.values.push(h)})}return e.launch=function(a,t,n){var l=window.innerWidth<800?"50%":"30%";return a.gui.dialog.open(e,{width:l,data:{title:t,values:n},disableClose:!0}).componentInstance.onSave},e.prototype.addElements=function(){var a=this;this.input.split(",").forEach(function(t){a.values.push(t)}),this.input=""},e.prototype.checkKey=function(a){"Enter"===a.code&&this.addElements()},e.prototype.removeAll=function(){this.values.length=0},e.prototype.removeElement=function(a){this.values.splice(a,1)},e.prototype.save=function(){var a=this;this.data.values.length=0,this.values.forEach(function(t){return a.data.values.push(t)}),this.onSave.emit(this.values),this.dialogRef.close()},e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)(N(At),N(tn),N(Er),N(Wr))},e.\u0275cmp=Se({type:e,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","",1,"material-icons",3,"click"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(t,n){1&t&&(A(0,"h4",0),Z(1),E(),A(2,"mat-dialog-content"),A(3,"div",1),A(4,"div",2),re(5,ive,8,1,"div",3),E(),A(6,"div",4),A(7,"button",5),ne("click",function(){return n.removeAll()}),A(8,"uds-translate"),Z(9,"Remove all"),E(),E(),E(),A(10,"div",6),A(11,"mat-form-field",7),A(12,"input",8),ne("keyup",function(c){return n.checkKey(c)})("ngModelChange",function(c){return n.input=c}),E(),A(13,"button",9),ne("click",function(){return n.addElements()}),A(14,"uds-translate"),Z(15,"Add"),E(),E(),E(),E(),E(),E(),A(16,"mat-dialog-actions"),A(17,"button",10),A(18,"uds-translate"),Z(19,"Cancel"),E(),E(),A(20,"button",11),ne("click",function(){return n.save()}),A(21,"uds-translate"),Z(22,"Ok"),E(),E(),E()),2&t&&(H(1),Ve(" ",n.data.title,"\n"),H(4),z("ngForOf",n.values),H(7),z("ngModel",n.input))},directives:[Yr,Fr,er,Rn,Hn,yr,zi,g,Mt,_r,rk,Qr,Lr],styles:['.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between;justify-self:center}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem}.input[_ngcontent-%COMP%]{margin:0 1rem}.elem[_ngcontent-%COMP%]{font-family:"Courier New",Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.elem[_ngcontent-%COMP%]:hover{background-color:#333;color:#fff;cursor:default}.val[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}']}),e}(),ove=function(){function e(a){this.api=a,this.changed=new ye}return e.prototype.ngOnInit=function(){},e.prototype.launch=function(){var a=this;void 0===this.field.values&&(this.field.values=[]),ave.launch(this.api,this.field.gui.label,this.field.values).subscribe(function(t){a.changed.emit({field:a.field})})},e.prototype.getValue=function(){if(void 0===this.field.values)return"";var a=this.field.values.filter(function(t,n,l){return n<5}).join(", ");return this.field.values.length>5&&(a+=django.gettext(", (%i more items)").replace("%i",""+(this.field.values.length-5))),a},e.\u0275fac=function(t){return new(t||e)(N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled","click"]],template:function(t,n){1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),Z(2),E(),A(3,"input",1),ne("click",function(){return n.launch()}),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("readonly",!0)("value",n.getValue())("placeholder",n.field.gui.tooltip)("disabled",!0===n.field.gui.rdonly))},directives:[yr,Br,zi],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),e}(),sve=function(){function e(){this.changed=new ye}return e.prototype.ngOnInit=function(){this.field.value=function(e){return""===e||null==e}(this.field.value)?jq(this.field.gui.defvalue):jq(this.field.value)},e.prototype.getValue=function(){return jq(this.field.value)?django.gettext("Yes"):django.gettext("No")},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:5,vars:5,consts:[[1,"mat-form-field-infix"],[1,"label"],[3,"ngModel","required","disabled","ngModelChange","change"]],template:function(t,n){1&t&&(A(0,"div",0),A(1,"span",1),Z(2),E(),A(3,"mat-slide-toggle",2),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),Z(4),E(),E()),2&t&&(H(2),On(n.field.gui.label),H(1),z("ngModel",n.field.value)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(1),Ve(" ",n.getValue()," "))},directives:[fk,Kee,Mt,_r,Iu],styles:[".label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0px 0px;white-space:nowrap}"]}),e}();function lve(e,a){if(1&e&&me(0,"div",5),2&e){var t=J().$implicit;z("innerHTML",J().asIcon(t),Si)}}function uve(e,a){if(1&e&&(A(0,"div"),re(1,lve,1,1,"div",4),E()),2&e){var t=a.$implicit,n=J();H(1),z("ngIf",t.id==n.field.value)}}function cve(e,a){if(1&e){var t=De();A(0,"uds-mat-select-search",6),ne("changed",function(l){return pe(t),J().filter=l}),E()}}function fve(e,a){if(1&e&&(A(0,"mat-option",7),me(1,"div",5),E()),2&e){var t=a.$implicit,n=J();z("value",t.id),H(1),z("innerHTML",n.asIcon(t),Si)}}var dve=function(){function e(a){this.api=a,this.changed=new ye,this.filter=""}return e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>=0&&(this.field.value=this.field.gui.values[0].id)},e.prototype.asIcon=function(a){return this.api.safeString(this.api.gui.icon(a.img)+a.text)},e.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var a=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(t){return t.text.toLocaleLowerCase().includes(a)})},e.\u0275fac=function(t){return new(t||e)(N(At))},e.\u0275cmp=Se({type:e,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"placeholder","ngModel","required","disabled","valueChange","ngModelChange"],[4,"ngFor","ngForOf"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"changed"],[3,"value"]],template:function(t,n){1&t&&(A(0,"mat-form-field"),A(1,"mat-label"),Z(2),E(),A(3,"mat-select",0),ne("valueChange",function(){return n.changed.emit(n)})("ngModelChange",function(c){return n.field.value=c}),A(4,"mat-select-trigger"),re(5,uve,2,1,"div",1),E(),re(6,cve,1,0,"uds-mat-select-search",2),re(7,fve,2,2,"mat-option",3),E(),E()),2&t&&(H(2),Ve(" ",n.field.gui.label," "),H(1),z("placeholder",n.field.gui.tooltip)("ngModel",n.field.value)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),H(2),z("ngForOf",n.field.gui.values),H(1),z("ngIf",n.field.gui.values.length>10),H(1),z("ngForOf",n.filteredValues()))},directives:[yr,Br,$a,Mt,_r,Iu,toe,er,Kt,Vc,Pi],styles:[""]}),e}(),hve=function(){function e(){this.changed=new ye,this.value=new Date}return Object.defineProperty(e.prototype,"date",{get:function(){return this.value},set:function(a){this.value!==a&&(this.value=a,this.field.value=JS("%Y-%m-%d",this.value))},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,"2000-01-01"===this.field.value?this.field.value=JS("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=JS("%Y-12-31"));var a=this.field.value.split("-");3===a.length&&(this.value=new Date(+a[0],+a[1]-1,+a[2]))},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","placeholder","disabled","ngModelChange"],["matSuffix","",3,"for"],["endDatePicker",""]],template:function(t,n){if(1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),Z(2),E(),A(3,"input",1),ne("ngModelChange",function(h){return n.date=h}),E(),me(4,"mat-datepicker-toggle",2),me(5,"mat-datepicker",null,3),E()),2&t){var l=Pn(6);H(2),Ve(" ",n.field.gui.label," "),H(1),z("matDatepicker",l)("ngModel",n.date)("placeholder",n.field.gui.tooltip)("disabled",!0===n.field.gui.rdonly),H(1),z("for",l)}},directives:[yr,Br,zi,hH,g,Mt,_r,Mte,rk,wte],styles:[""]}),e}();function pve(e,a){if(1&e){var t=De();A(0,"mat-chip",5),ne("removed",function(){var _=pe(t).$implicit;return J().remove(_)}),Z(1),A(2,"i",6),Z(3,"cancel"),E(),E()}if(2&e){var n=a.$implicit,l=J();z("selectable",!1)("removable",!0!==l.field.gui.rdonly),H(1),Ve(" ",n," ")}}var a,t,n,vve=function(){function e(){this.changed=new ye,this.separatorKeysCodes=[13,188]}return e.prototype.ngOnInit=function(){void 0===this.field.values&&(this.field.values=new Array,this.field.value=void 0),this.field.values.forEach(function(a,t,n){""===a.trim()&&n.splice(t,1)})},e.prototype.add=function(a){var t=a.input,n=a.value;(n||"").trim()&&this.field.values.push(n.trim()),t&&(t.value="")},e.prototype.remove=function(a){var t=this.field.values.indexOf(a);t>=0&&this.field.values.splice(t,1)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Se({type:e,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:8,consts:[["appearance","standard","floatLabel","always"],[3,"selectable","disabled","change"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],[3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[3,"selectable","removable","removed"],["matChipRemove","",1,"material-icons"]],template:function(t,n){if(1&t&&(A(0,"mat-form-field",0),A(1,"mat-label"),Z(2),E(),A(3,"mat-chip-list",1,2),ne("change",function(){return n.changed.emit(n)}),re(5,pve,4,3,"mat-chip",3),A(6,"input",4),ne("matChipInputTokenEnd",function(h){return n.add(h)}),E(),E(),E()),2&t){var l=Pn(4);H(2),Ve(" ",n.field.gui.label," "),H(1),z("selectable",!1)("disabled",!0===n.field.gui.rdonly),H(2),z("ngForOf",n.field.values),H(1),z("placeholder",n.field.gui.tooltip)("matChipInputFor",l)("matChipInputSeparatorKeyCodes",n.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},directives:[yr,Br,Kte,er,$te,mH,Xte],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),e}(),gve=(Dt(41419),function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e,bootstrap:[Gpe]}),e.\u0275inj=pt({providers:[At,tn,{provide:kb,useClass:jpe}],imports:[[QD,kN,Rhe,UY,Ppe,fae.forRoot({echarts:function(){return Promise.resolve().then(Dt.bind(Dt,38175))}})]]}),e}());a=[bu,dee,Cu,Wpe,qpe,$pe,Xpe,Zpe,Kpe,eve,rve,ove,sve,dve,hve,vve],t=[],(n=gJ.\u0275cmp).directiveDefs=function(){return a.map(Vl)},n.pipeDefs=function(){return t.map(xk)},function(){if(oc)throw new Error("Cannot enable prod mode after platform setup.");XT=!1}(),vj().bootstrapModule(gve).catch(function(e){return console.log(e)})},79052:function(Zo,sr,Dt){Zo.exports=Dt(45579)}},function(Zo){Zo(Zo.s=16608)}]); \ No newline at end of file diff --git a/server/src/uds/static/admin/translations-fakejs.js b/server/src/uds/static/admin/translations-fakejs.js index 8e2d90eef..bec98b400 100644 --- a/server/src/uds/static/admin/translations-fakejs.js +++ b/server/src/uds/static/admin/translations-fakejs.js @@ -73,44 +73,6 @@ gettext("October"); gettext("November"); gettext("December"); gettext("Never"); -gettext("Pool"); -gettext("State"); -gettext("User Services"); -gettext("Name"); -gettext("Real Name"); -gettext("state"); -gettext("Last access"); -gettext("Group"); -gettext("Comments"); -gettext("Enabled"); -gettext("Disabled"); -gettext("Blocked"); -gettext("Service pools"); -gettext("Users"); -gettext("Groups"); -gettext("Any"); -gettext("All"); -gettext("Group"); -gettext("Comments"); -gettext("Pool"); -gettext("State"); -gettext("User Services"); -gettext("Unique ID"); -gettext("Friendly Name"); -gettext("In Use"); -gettext("IP"); -gettext("Services Pool"); -gettext("Groups"); -gettext("Services Pools"); -gettext("Assigned services"); -gettext("Information"); -gettext("In Maintenance"); -gettext("Active"); -gettext("Delete user"); -gettext("Delete group"); -gettext("New Authenticator"); -gettext("Edit Authenticator"); -gettext("Delete Authenticator"); gettext("New Network"); gettext("Edit Network"); gettext("Delete Network"); @@ -266,6 +228,47 @@ gettext("Report finished"); gettext("dismiss"); gettext("Generate report"); gettext("Delete tunnel token - USE WITH EXTREME CAUTION!!!"); +gettext("Pool"); +gettext("State"); +gettext("User Services"); +gettext("Name"); +gettext("Real Name"); +gettext("state"); +gettext("Last access"); +gettext("Group"); +gettext("Comments"); +gettext("Enabled"); +gettext("Disabled"); +gettext("Blocked"); +gettext("Service pools"); +gettext("Users"); +gettext("Groups"); +gettext("Any"); +gettext("All"); +gettext("Group"); +gettext("Comments"); +gettext("Pool"); +gettext("State"); +gettext("User Services"); +gettext("Unique ID"); +gettext("Friendly Name"); +gettext("In Use"); +gettext("IP"); +gettext("Services Pool"); +gettext("Groups"); +gettext("Services Pools"); +gettext("Assigned services"); +gettext("Information"); +gettext("In Maintenance"); +gettext("Active"); +gettext("Delete user"); +gettext("Delete group"); +gettext("New Authenticator"); +gettext("Edit Authenticator"); +gettext("Delete Authenticator"); +gettext("New Authenticator"); +gettext("Edit Authenticator"); +gettext("Delete Authenticator"); gettext("Error saving: "); gettext("Error saving element"); gettext("Error handling your request"); @@ -311,7 +314,9 @@ gettext("User mode"); gettext("Logout"); gettext("Summary"); gettext("Services"); +gettext("Authentication"); gettext("Authenticators"); +gettext("Multi Factor"); gettext("Os Managers"); gettext("Connectivity"); gettext("Transports"); @@ -331,47 +336,6 @@ gettext("Actor"); gettext("Tunnel"); gettext("Configuration"); gettext("Flush Cache"); -gettext("Information for"); -gettext("Services Pools"); -gettext("Users"); -gettext("Groups"); -gettext("Ok"); -gettext("Edit group"); -gettext("New group"); -gettext("Meta group name"); -gettext("Comments"); -gettext("State"); -gettext("Enabled"); -gettext("Disabled"); -gettext("Service Pools"); -gettext("Match mode"); -gettext("Selected Groups"); -gettext("Cancel"); -gettext("Ok"); -gettext("Edit user"); -gettext("New user"); -gettext("Real name"); -gettext("Comments"); -gettext("State"); -gettext("Enabled"); -gettext("Disabled"); -gettext("Blocked"); -gettext("Role"); -gettext("Admin"); -gettext("Staff member"); -gettext("User"); -gettext("Groups"); -gettext("Cancel"); -gettext("Ok"); -gettext("Information for"); -gettext("Groups"); -gettext("Services Pools"); -gettext("Assigned Services"); -gettext("Ok"); -gettext("Summary"); -gettext("Users"); -gettext("Groups"); -gettext("Logs"); gettext("Account usage"); gettext("Edit rule"); gettext("New rule"); @@ -490,3 +454,44 @@ gettext("For optimal results, use "squared" images."); gettext("The image will be resized on upload to"); gettext("Cancel"); gettext("Ok"); +gettext("Information for"); +gettext("Services Pools"); +gettext("Users"); +gettext("Groups"); +gettext("Ok"); +gettext("Edit group"); +gettext("New group"); +gettext("Meta group name"); +gettext("Comments"); +gettext("State"); +gettext("Enabled"); +gettext("Disabled"); +gettext("Service Pools"); +gettext("Match mode"); +gettext("Selected Groups"); +gettext("Cancel"); +gettext("Ok"); +gettext("Edit user"); +gettext("New user"); +gettext("Real name"); +gettext("Comments"); +gettext("State"); +gettext("Enabled"); +gettext("Disabled"); +gettext("Blocked"); +gettext("Role"); +gettext("Admin"); +gettext("Staff member"); +gettext("User"); +gettext("Groups"); +gettext("Cancel"); +gettext("Ok"); +gettext("Information for"); +gettext("Groups"); +gettext("Services Pools"); +gettext("Assigned Services"); +gettext("Ok"); +gettext("Summary"); +gettext("Users"); +gettext("Groups"); +gettext("Logs"); diff --git a/server/src/uds/templates/uds/admin/index.html b/server/src/uds/templates/uds/admin/index.html index 623ff10bf..8fa29c129 100644 --- a/server/src/uds/templates/uds/admin/index.html +++ b/server/src/uds/templates/uds/admin/index.html @@ -99,7 +99,7 @@ - + \ No newline at end of file From aaa421686213e099f271a093a6c0248c7dde9055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Thu, 23 Jun 2022 20:24:56 +0200 Subject: [PATCH 11/15] Fixed MFA & Added remember me --- server/src/uds/REST/methods/authenticators.py | 1 + server/src/uds/REST/methods/mfas.py | 22 ++++- server/src/uds/core/mfas/mfa.py | 19 ++-- ...623_1555.py => 0043_auto_20220623_1934.py} | 5 +- server/src/uds/models/mfa.py | 8 +- .../uds/static/admin/translations-fakejs.js | 18 ++-- server/src/uds/static/modern/main-es2015.js | 2 +- server/src/uds/static/modern/main-es5.js | 2 +- .../uds/static/modern/translations-fakejs.js | 1 + server/src/uds/templates/uds/admin/index.html | 2 +- server/src/uds/web/forms/MFAForm.py | 6 +- server/src/uds/web/views/modern.py | 86 ++++++++++++++++--- 12 files changed, 129 insertions(+), 43 deletions(-) rename server/src/uds/migrations/{0043_auto_20220623_1555.py => 0043_auto_20220623_1934.py} (86%) diff --git a/server/src/uds/REST/methods/authenticators.py b/server/src/uds/REST/methods/authenticators.py index 7805b3da2..30ba08bff 100644 --- a/server/src/uds/REST/methods/authenticators.py +++ b/server/src/uds/REST/methods/authenticators.py @@ -152,6 +152,7 @@ class Authenticators(ModelHandler): 'tags': [tag.tag for tag in item.tags.all()], 'comments': item.comments, 'priority': item.priority, + 'mfa_id': item.mfa.uuid if item.mfa else '', 'visible': item.visible, 'small_name': item.small_name, 'users_count': item.users.count(), diff --git a/server/src/uds/REST/methods/mfas.py b/server/src/uds/REST/methods/mfas.py index f1ec76350..a7af3bc77 100644 --- a/server/src/uds/REST/methods/mfas.py +++ b/server/src/uds/REST/methods/mfas.py @@ -49,7 +49,7 @@ logger = logging.getLogger(__name__) class MFA(ModelHandler): model = models.MFA - save_fields = ['name', 'comments', 'tags', 'cache_device'] + save_fields = ['name', 'comments', 'tags', 'remember_device'] table_title = _('Multi Factor Authentication') table_fields = [ @@ -74,7 +74,7 @@ class MFA(ModelHandler): self.addField( localGui, { - 'name': 'cache_device', + 'name': 'remember_device', 'value': '0', 'minValue': '0', 'label': gettext('Device Caching'), @@ -85,6 +85,21 @@ class MFA(ModelHandler): 'order': 111, }, ) + self.addField( + localGui, + { + 'name': 'validity', + 'value': '5', + 'minValue': '0', + 'label': gettext('MFA code validity'), + 'tooltip': gettext( + 'Time in minutes to allow MFA code to be used.' + ), + 'type': gui.InputField.NUMERIC_TYPE, + 'order': 112, + }, + + ) return localGui @@ -93,7 +108,8 @@ class MFA(ModelHandler): return { 'id': item.uuid, 'name': item.name, - 'cache_device': item.cache_device, + 'remember_device': item.remember_device, + 'validity': item.validity, 'tags': [tag.tag for tag in item.tags.all()], 'comments': item.comments, 'type': type_.type(), diff --git a/server/src/uds/core/mfas/mfa.py b/server/src/uds/core/mfas/mfa.py index 5f79caf73..d923460bc 100644 --- a/server/src/uds/core/mfas/mfa.py +++ b/server/src/uds/core/mfas/mfa.py @@ -78,10 +78,10 @@ class MFA(Module): # : Cache time for the generated MFA code # : this means that the code will be valid for this time, and will not # : be resent to the user until the time expires. - # : This value is in seconds + # : This value is in minutes # : Note: This value is used by default "process" methos, but you can # : override it in your own implementation. - cacheTime: typing.ClassVar[int] = 300 + cacheTime: typing.ClassVar[int] = 5 def __init__(self, environment: 'Environment', values: Module.ValuesType): super().__init__(environment, values) @@ -124,7 +124,7 @@ class MFA(Module): """ raise NotImplementedError('sendCode method not implemented') - def process(self, userId: str, identifier: str) -> None: + def process(self, userId: str, identifier: str, validity: typing.Optional[int] = None) -> None: """ This method will be invoked from the MFA form, to send the MFA code to the user. The identifier where to send the code, will be obtained from "mfaIdentifier" method. @@ -132,10 +132,11 @@ class MFA(Module): """ # try to get the stored code data: typing.Any = self.storage.getPickle(userId) + validity = validity if validity is not None else self.validity() * 60 try: - if data: + if data and validity: # if we have a stored code, check if it's still valid - if data[0] + datetime.timedelta(seconds=self.cacheTime) < getSqlDatetime(): + if data[0] + datetime.timedelta(seconds=validity) < getSqlDatetime(): # if it's still valid, just return without sending a new one return except Exception: @@ -150,7 +151,7 @@ class MFA(Module): # Send the code to the user self.sendCode(code) - def validate(self, userId: str, identifier: str, code: str) -> None: + def validate(self, userId: str, identifier: str, code: str, validity: typing.Optional[int] = None) -> None: """ If this method is provided by an authenticator, the user will be allowed to enter a MFA code You must raise an "exceptions.MFAError" if the code is not valid. @@ -158,8 +159,14 @@ class MFA(Module): # Validate the code try: err = _('Invalid MFA code') + data = self.storage.getPickle(userId) if data and len(data) == 2: + validity = validity if validity is not None else self.validity() * 60 + if validity and data[0] + datetime.timedelta(seconds=validity) > getSqlDatetime(): + # if it is no more valid, raise an error + raise exceptions.MFAError('MFA Code expired') + # Check if the code is valid if data[1] == code: # Code is valid, remove it from storage diff --git a/server/src/uds/migrations/0043_auto_20220623_1555.py b/server/src/uds/migrations/0043_auto_20220623_1934.py similarity index 86% rename from server/src/uds/migrations/0043_auto_20220623_1555.py rename to server/src/uds/migrations/0043_auto_20220623_1934.py index 8247d7c01..9973ad858 100644 --- a/server/src/uds/migrations/0043_auto_20220623_1555.py +++ b/server/src/uds/migrations/0043_auto_20220623_1934.py @@ -1,4 +1,4 @@ -# Generated by Django 3.2.10 on 2022-06-23 15:55 +# Generated by Django 3.2.10 on 2022-06-23 19:34 from django.db import migrations, models import django.db.models.deletion @@ -20,7 +20,8 @@ class Migration(migrations.Migration): ('data_type', models.CharField(max_length=128)), ('data', models.TextField(default='')), ('comments', models.CharField(max_length=256)), - ('cache_device', models.IntegerField(default=0)), + ('remember_device', models.IntegerField(default=0)), + ('validity', models.IntegerField(default=0)), ('tags', models.ManyToManyField(to='uds.Tag')), ], options={ diff --git a/server/src/uds/models/mfa.py b/server/src/uds/models/mfa.py index 0805d0f63..ac0a994eb 100644 --- a/server/src/uds/models/mfa.py +++ b/server/src/uds/models/mfa.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # -# Copyright (c) 2012-2019 Virtual Cable S.L. +# Copyright (c) 2012-2022 Virtual Cable S.L.U. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, @@ -12,7 +12,7 @@ # * Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. -# * Neither the name of Virtual Cable S.L. nor the names of its contributors +# * Neither the name of Virtual Cable S.L.U. nor the names of its contributors # may be used to endorse or promote products derived from this software # without specific prior written permission. # @@ -55,7 +55,8 @@ class MFA(ManagedObjectModel, TaggingMixin): # type: ignore objects: 'models.BaseManager[MFA]' authenticators: 'models.manager.RelatedManager[Authenticator]' - cache_device = models.IntegerField(default=0) # Time to cache the device MFA in hours + remember_device = models.IntegerField(default=0) # Time to remember the device MFA in hours + validity = models.IntegerField(default=0) # Limit of time for this MFA to be used, in seconds def getInstance( self, values: typing.Optional[typing.Dict[str, str]] = None @@ -78,7 +79,6 @@ class MFA(ManagedObjectModel, TaggingMixin): # type: ignore return mfas.factory().lookup(self.data_type) or mfas.MFA - def __str__(self) -> str: return "{0} of type {1} (id:{2})".format(self.name, self.data_type, self.id) diff --git a/server/src/uds/static/admin/translations-fakejs.js b/server/src/uds/static/admin/translations-fakejs.js index bec98b400..0ca8a3e5f 100644 --- a/server/src/uds/static/admin/translations-fakejs.js +++ b/server/src/uds/static/admin/translations-fakejs.js @@ -228,6 +228,11 @@ gettext("Report finished"); gettext("dismiss"); gettext("Generate report"); gettext("Delete tunnel token - USE WITH EXTREME CAUTION!!!"); +gettext("Information"); +gettext("In Maintenance"); +gettext("Active"); +gettext("Delete user"); +gettext("Delete group"); gettext("Pool"); gettext("State"); gettext("User Services"); @@ -258,11 +263,6 @@ gettext("Services Pool"); gettext("Groups"); gettext("Services Pools"); gettext("Assigned services"); -gettext("Information"); -gettext("In Maintenance"); -gettext("Active"); -gettext("Delete user"); -gettext("Delete group"); gettext("New Authenticator"); gettext("Edit Authenticator"); gettext("Delete Authenticator"); @@ -454,6 +454,10 @@ gettext("For optimal results, use "squared" images."); gettext("The image will be resized on upload to"); gettext("Cancel"); gettext("Ok"); +gettext("Summary"); +gettext("Users"); +gettext("Groups"); +gettext("Logs"); gettext("Information for"); gettext("Services Pools"); gettext("Users"); @@ -491,7 +495,3 @@ gettext("Groups"); gettext("Services Pools"); gettext("Assigned Services"); gettext("Ok"); -gettext("Summary"); -gettext("Users"); -gettext("Groups"); -gettext("Logs"); diff --git a/server/src/uds/static/modern/main-es2015.js b/server/src/uds/static/modern/main-es2015.js index 09dd28b67..fbfb9648e 100644 --- a/server/src/uds/static/modern/main-es2015.js +++ b/server/src/uds/static/modern/main-es2015.js @@ -1 +1 @@ -(self.webpackChunkuds=self.webpackChunkuds||[]).push([[179],{8255:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=8255,t.exports=e},7238:function(t,e,n){"use strict";n.d(e,{l3:function(){return r},_j:function(){return i},LC:function(){return s},ZN:function(){return g},jt:function(){return a},pV:function(){return p},F4:function(){return h},IO:function(){return f},vP:function(){return l},SB:function(){return u},oB:function(){return c},eR:function(){return d},X$:function(){return o},ZE:function(){return _},k1:function(){return y}});class i{}class s{}const r="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function u(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t){return{type:5,steps:t}}function d(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function p(t=null){return{type:9,options:t}}function f(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function m(t){Promise.resolve(null).then(t)}class g{constructor(t=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=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){m(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?m(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const y="!"},9238:function(t,e,n){"use strict";n.d(e,{rt:function(){return et},s1:function(){return R},$s:function(){return T},Em:function(){return D},tE:function(){return W},qV:function(){return B},qm:function(){return tt},Kd:function(){return G},X6:function(){return U},yG:function(){return Z}});var i=n(8583),s=n(3018),r=n(9765),o=n(5319),a=n(6215),l=n(5917),c=n(6461),u=n(3342),h=n(4395),d=n(5435),p=n(8002),f=n(5257),m=n(3653),g=n(7519),_=n(6782),y=n(9490),b=n(521),v=n(8553);function w(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const C="cdk-describedby-message-container",x="cdk-describedby-message",E="cdk-describedby-host";let S=0;const k=new Map;let O=null,T=(()=>{class t{constructor(t){this._document=t}describe(t,e,n){if(!this._canBeDescribed(t,e))return;const i=A(e,n);"string"!=typeof e?(P(e),k.set(i,{messageElement:e,referenceCount:0})):k.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}removeDescription(t,e,n){if(!e||!this._isElementNode(t))return;const i=A(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){const t=k.get(i);t&&0===t.referenceCount&&this._deleteMessageElement(i)}O&&0===O.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll(`[${E}]`);for(let e=0;e0!=t.indexOf(x));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=k.get(e);(function(t,e,n){const i=w(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))})(t,"aria-describedby",n.messageElement.id),t.setAttribute(E,""),n.referenceCount++}_removeMessageReference(t,e){const n=k.get(e);n.referenceCount--,function(t,e,n){const i=w(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(E)}_isElementDescribedByMessage(t,e){const n=w(t,"aria-describedby"),i=k.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.K0))},token:t,providedIn:"root"}),t})();function A(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function P(t){t.id||(t.id=`${x}-${S++}`)}class I{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new r.xQ,this._typeaheadSubscription=o.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new r.xQ,this.change=new r.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,u.b)(t=>this._pressedLetters.push(t)),(0,h.b)(t),(0,d.h)(()=>this._pressedLetters.length>0),(0,p.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.Mf:return void this.tabOut.next();case c.JH:if(this._vertical&&n){this.setNextItemActive();break}return;case c.LH:if(this._vertical&&n){this.setPreviousItemActive();break}return;case c.SV:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.oh:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.Sd:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case c.uR:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||(0,c.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.A&&e<=c.Z||e>=c.xE&&e<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class R extends I{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class D extends I{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let M=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}(function(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(t));if(e&&(-1===F(e)||!this.isVisible(e)))return!1;let n=t.nodeName.toLowerCase(),i=F(t);return t.hasAttribute("contenteditable")?-1!==i:!("iframe"===n||"object"===n||this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==i:"video"===n?-1!==i&&(null!==i||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||L(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4))},token:t,providedIn:"root"}),t})();function L(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function F(t){if(!L(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class N{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(t)}}let B=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new N(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(M),s.LFG(s.R0b),s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(M),s.LFG(s.R0b),s.LFG(i.K0))},token:t,providedIn:"root"}),t})();function U(t){return 0===t.offsetX&&0===t.offsetY}function Z(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&∈const q=new s.OlP("cdk-input-modality-detector-options"),j={ignoreKeys:[c.zL,c.jx,c.b2,c.MW,c.JU]},V=(0,b.i$)({passive:!0,capture:!0});let H=(()=>{class t{constructor(t,e,n,i){this._platform=t,this._mostRecentTarget=null,this._modality=new a.X(null),this._lastTouchMs=0,this._onKeydown=t=>{var e,n;(null===(n=null===(e=this._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some(e=>e===t.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,b.sA)(t))},this._onMousedown=t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(U(t)?"keyboard":"mouse"),this._mostRecentTarget=(0,b.sA)(t))},this._onTouchstart=t=>{Z(t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,b.sA)(t))},this._options=Object.assign(Object.assign({},j),i),this.modalityDetected=this._modality.pipe((0,m.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,g.x)()),t.isBrowser&&e.runOutsideAngular(()=>{n.addEventListener("keydown",this._onKeydown,V),n.addEventListener("mousedown",this._onMousedown,V),n.addEventListener("touchstart",this._onTouchstart,V)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,V),document.removeEventListener("mousedown",this._onMousedown,V),document.removeEventListener("touchstart",this._onTouchstart,V))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4),s.LFG(s.R0b),s.LFG(i.K0),s.LFG(q,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4),s.LFG(s.R0b),s.LFG(i.K0),s.LFG(q,8))},token:t,providedIn:"root"}),t})();const z=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Y=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let G=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),n=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,n,i,s){this._ngZone=t,this._platform=e,this._inputModalityDetector=n,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new r.xQ,this._rootNodeFocusAndBlurListener=t=>{const e=(0,b.sA)(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=i,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,e=!1){const n=(0,y.fI)(t);if(!this._platform.isBrowser||1!==n.nodeType)return(0,l.of)(null);const i=(0,b.kV)(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new r.xQ,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=(0,y.fI)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=(0,y.fI)(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOrigin(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOrigin(t,e=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&e,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,e){const n=this._elementInfo.get(e),i=(0,b.sA)(t);!n||!n.checkChildren&&e!==i||this._originChanged(e,this._getFocusOrigin(i),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,$),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,$)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,_.R)(this._stopInputModalityDetector)).subscribe(t=>{this._setOrigin(t,!0)}))}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,$),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,$),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(b.t4),s.LFG(H),s.LFG(i.K0,8),s.LFG(K,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(b.t4),s.LFG(H),s.LFG(i.K0,8),s.LFG(K,8))},token:t,providedIn:"root"}),t})();const Q="cdk-high-contrast-black-on-white",J="cdk-high-contrast-white-on-black",X="cdk-high-contrast-active";let tt=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(X),t.remove(Q),t.remove(J),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(X),t.add(Q)):2===e&&(t.add(X),t.add(J))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4),s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4),s.LFG(i.K0))},token:t,providedIn:"root"}),t})(),et=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(tt))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ud,v.Q8]]}),t})()},946:function(t,e,n){"use strict";n.d(e,{vT:function(){return a},Is:function(){return o}});var i=n(3018),s=n(8583);const r=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,i.f3M)(s.K0)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.vpe,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(r,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(r,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},8345:function(t,e,n){"use strict";n.d(e,{P3:function(){return l},Ov:function(){return u},A8:function(){return h},eX:function(){return c},k:function(){return d},Z9:function(){return a}});var i=n(5639),s=n(5917),r=n(9765),o=n(3018);function a(t){return t&&"function"==typeof t.connect}class l extends class{}{constructor(t){super(),this._data=t}connect(){return(0,i.b)(this._data)?this._data:(0,s.of)(this._data)}disconnect(){}}class c{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,s){t.forEachOperation((t,r,o)=>{let a,l;null==t.previousIndex?(a=this._insertView(()=>n(t,r,o),o,e,i(t)),l=a?1:0):null==o?(this._detachAndCacheView(r,e),l=3):(a=this._moveView(r,o,e,i(t)),l=2),s&&s({context:null==a?void 0:a.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,n,i){const s=this._insertViewFromCache(e,n);if(s)return void(s.context.$implicit=i);const r=t();return n.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(t,e){const n=e.detach(t);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const s=n.get(t);return n.move(s,e),s.context.$implicit=i,s}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let h=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const d=new o.OlP("_ViewRepeater")},6461:function(t,e,n){"use strict";n.d(e,{A:function(){return y},zL:function(){return a},jx:function(){return o},JH:function(){return m},uR:function(){return u},K5:function(){return s},hY:function(){return l},Sd:function(){return h},oh:function(){return d},b2:function(){return w},MW:function(){return v},aO:function(){return _},SV:function(){return f},JU:function(){return r},L_:function(){return c},Mf:function(){return i},LH:function(){return p},Z:function(){return b},xE:function(){return g},Vb:function(){return C}});const i=9,s=13,r=16,o=17,a=18,l=27,c=32,u=35,h=36,d=37,p=38,f=39,m=40,g=48,_=57,y=65,b=90,v=91,w=224;function C(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},8553:function(t,e,n){"use strict";n.d(e,{wD:function(){return u},yq:function(){return c},Q8:function(){return h}});var i=n(9490),s=n(3018),r=n(7574),o=n(9765),a=n(4395);let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=(0,i.fI)(t);return new r.y(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.xQ,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(l))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(l))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,i.Ig)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=(0,i.su)(t),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,a.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[l]}),t})()},625:function(t,e,n){"use strict";n.d(e,{pI:function(){return J},xu:function(){return Q},aV:function(){return K},X_:function(){return O},Xj:function(){return L},U8:function(){return tt}});var i=n(9243),s=n(3018),r=n(521),o=n(946),a=n(8583),l=n(9490),c=n(7636),u=n(9765),h=n(5319),d=n(6682),p=n(7393);class f{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new m(t,this.predicate,this.inclusive))}}class m extends p.L{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}var g=n(5257),_=n(6782),y=n(6461);const b=(0,r.Mq)();class v{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=(0,l.HM)(-this._previousScrollPosition.left),t.style.top=(0,l.HM)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),b&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),b&&(e.scrollBehavior=i,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class w{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class C{enable(){}disable(){}attach(){}}function x(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function E(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class S{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();x(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let k=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new C,this.close=t=>new w(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new v(this._viewportRuler,this._document),this.reposition=t=>new S(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.mF),s.LFG(i.rL),s.LFG(s.R0b),s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.mF),s.LFG(i.rL),s.LFG(s.R0b),s.LFG(a.K0))},token:t,providedIn:"root"}),t})();class O{constructor(t){if(this.scrollStrategy=new C,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class T{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class A{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let P=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends P{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),R=(()=>{class t extends P{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=(0,r.sA)(t),n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0),s.LFG(r.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0),s.LFG(r.t4))},token:t,providedIn:"root"}),t})();const D="undefined"!=typeof window?window:{},M=void 0!==D.__karma__&&!!D.__karma__||void 0!==D.jasmine&&!!D.jasmine||void 0!==D.jest&&!!D.jest||void 0!==D.Mocha&&!!D.Mocha;let L=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||M){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new u.xQ,this._outsidePointerEvents=new u.xQ,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=(0,l.HM)(this._config.width),t.height=(0,l.HM)(this._config.height),t.minWidth=(0,l.HM)(this._config.minWidth),t.minHeight=(0,l.HM)(this._config.minHeight),t.maxWidth=(0,l.HM)(this._config.maxWidth),t.maxHeight=(0,l.HM)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(!t)return;let e,n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;(0,l.Eq)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe((0,_.R)((0,d.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const N="cdk-overlay-connected-position-bounding-box",B=/([A-Za-z%]+)$/;class U{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new u.xQ,this._resizeSubscription=h.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(N),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Z(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(N),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){const s=j(e);let{x:r,y:o}=t,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(r+=a),l&&(o+=l);let c=0-o,u=o+s.height-n.height,h=this._subtractOverflows(s.width,0-r,r+s.width-n.width),d=this._subtractOverflows(s.height,c,u),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=q(this._overlayRef.getConfig().minHeight),o=q(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=j(e),s=this._viewportRect,r=Math.max(t.x+i.width-s.width,0),o=Math.max(t.y+i.height-s.height,0),a=Math.max(s.top-n.top-t.y,0),l=Math.max(s.left-n.left-t.x,0);let c=0,u=0;return c=i.width<=s.width?l||-r:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=(0,l.HM)(n.height),i.top=(0,l.HM)(n.top),i.bottom=(0,l.HM)(n.bottom),i.width=(0,l.HM)(n.width),i.left=(0,l.HM)(n.left),i.right=(0,l.HM)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=(0,l.HM)(t)),s&&(i.maxWidth=(0,l.HM)(s))}this._lastBoundingBoxSize=n,Z(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Z(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Z(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();Z(n,this._getExactOverlayY(e,t,i)),Z(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=(0,l.HM)(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=(0,l.HM)(r.maxWidth):s&&(n.maxWidth="")),Z(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=(0,l.HM)(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=(0,l.HM)(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:E(t,n),isOriginOutsideView:x(t,n),isOverlayClipped:E(e,n),isOverlayOutsideView:x(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&(0,l.Eq)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function Z(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function q(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(B);return n&&"px"!==n?null:parseFloat(e)}return t||null}function j(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class V{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new U(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new T(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const H="cdk-global-overlay-wrapper";class z{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(H),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(H),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Y=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new z}connectedTo(t,e,n){return new V(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new U(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.rL),s.LFG(a.K0),s.LFG(r.t4),s.LFG(L))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.rL),s.LFG(a.K0),s.LFG(r.t4),s.LFG(L))},token:t,providedIn:"root"}),t})(),G=0,K=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new O(t);return s.direction=s.direction||this._directionality.value,new F(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+G++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new c.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(k),s.LFG(L),s.LFG(s._Vd),s.LFG(Y),s.LFG(I),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(o.Is),s.LFG(a.Ye),s.LFG(R))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const $=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],W=new s.OlP("cdk-connected-overlay-scroll-strategy");let Q=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),J=(()=>{class t{constructor(t,e,n,i,r){this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.vpe,this.positionChange=new s.vpe,this.attach=new s.vpe,this.detach=new s.vpe,this.overlayKeydown=new s.vpe,this.overlayOutsideClick=new s.vpe,this._templatePortal=new c.UE(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,l.Ig)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=(0,l.Ig)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=(0,l.Ig)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=(0,l.Ig)(t)}get push(){return this._push}set push(t){this._push=(0,l.Ig)(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=$);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode===y.hY&&!this.disableClose&&!(0,y.Vb)(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new O({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return n=>n.lift(new f(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(K),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(W),s.Y36(o.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.TTD]}),t})();const X={provide:W,deps:[K],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[K,X],imports:[[o.vT,c.eL,i.Cl],i.Cl]}),t})()},521:function(t,e,n){"use strict";n.d(e,{t4:function(){return a},ud:function(){return l},sA:function(){return v},ht:function(){return b},kV:function(){return y},_i:function(){return _},qK:function(){return u},i$:function(){return m},Mq:function(){return g}});var i=n(3018),s=n(8583);let r;try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(w){r=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,s.NF)(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&&!r)&&"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)(i.LFG(i.Lbi))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(i.Lbi))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(c),o;let t=document.createElement("input");return o=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let h,d,p,f;function m(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function g(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if("scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p}function _(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function y(t){if(function(){if(null==f){const t="undefined"!=typeof document?document.head:null;f=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function b(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function v(t){return t.composedPath?t.composedPath()[0]:t.target}},7636:function(t,e,n){"use strict";n.d(e,{en:function(){return c},Pl:function(){return h},C5:function(){return o},u0:function(){return u},eL:function(){return d},UE:function(){return a}});var i=n(3018),s=n(8583);class r{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class o extends r{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class a extends r{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class l extends r{constructor(t){super(),this.element=t instanceof i.SBq?t.nativeElement:t}}class c{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof o?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class u extends c{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let h=(()=>{class t extends c{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(s.K0))},t.\u0275dir=i.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},9243:function(t,e,n){"use strict";n.d(e,{ZD:function(){return y},mF:function(){return g},Cl:function(){return b},rL:function(){return _}});var i=n(9490),s=n(3018),r=n(6465),o=n(6102);new class extends o.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});var a=n(9765),l=n(5917),c=n(7574),u=n(2759);n(4581);n(5319),n(5639),n(7393),new class extends o.v{}(class extends r.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}),n(1593),n(7971),n(8858),n(7519);var h=n(628),d=n(5435),p=(n(6782),n(9761),n(3190),n(521)),f=n(8583),m=n(946);n(8345);let g=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new a.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new c.y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe((0,h.e)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,l.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,d.h)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=(0,i.fI)(e),s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return(0,u.R)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(p.t4),s.LFG(f.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(p.t4),s.LFG(f.K0,8))},token:t,providedIn:"root"}),t})(),_=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new a.xQ,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe((0,h.e)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(p.t4),s.LFG(s.R0b),s.LFG(f.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(p.t4),s.LFG(s.R0b),s.LFG(f.K0,8))},token:t,providedIn:"root"}),t})(),y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[m.vT,p.ud,y],m.vT,y]}),t})()},9490:function(t,e,n){"use strict";n.d(e,{Eq:function(){return o},Ig:function(){return s},HM:function(){return a},fI:function(){return l},su:function(){return r}});var i=n(3018);function s(t){return null!=t&&"false"!=`${t}`}function r(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function o(t){return Array.isArray(t)?t:[t]}function a(t){return null==t?"":"string"==typeof t?t:`${t}px`}function l(t){return t instanceof i.SBq?t.nativeElement:t}},8583:function(t,e,n){"use strict";n.d(e,{mr:function(){return v},Ov:function(){return Y},ez:function(){return G},K0:function(){return l},Do:function(){return C},V_:function(){return h},Ye:function(){return x},S$:function(){return y},mk:function(){return I},sg:function(){return D},O5:function(){return L},RF:function(){return U},n9:function(){return Z},ED:function(){return q},b0:function(){return w},lw:function(){return c},EM:function(){return W},JF:function(){return X},NF:function(){return $},w_:function(){return a},bD:function(){return K},q:function(){return r},Mx:function(){return P},HT:function(){return o}});var i=n(3018);let s=null;function r(){return s}function o(t){s||(s=t)}class a{}const l=new i.OlP("DocumentToken");let c=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return(0,i.LFG)(d)}const h=new i.OlP("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return r().getBaseHref(this._doc)}onPopState(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(l))},t.\u0275prov=(0,i.Yz7)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d((0,i.LFG)(l))}function m(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function _(t){return t&&"?"!==t[0]?"?"+t:t}let y=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:b,token:t,providedIn:"root"}),t})();function b(t){const e=(0,i.LFG)(l).location;return new w((0,i.LFG)(c),e&&e.origin||"")}const v=new i.OlP("appBaseHref");let w=(()=>{class t extends y{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+_(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+_(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+_(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(v,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t extends y{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+_(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+_(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(v,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t{constructor(t,e){this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(S(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+_(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,S(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(y),i.LFG(c))},t.normalizeQueryParams=_,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=(0,i.Yz7)({factory:E,token:t,providedIn:"root"}),t})();function E(){return new x((0,i.LFG)(y),(0,i.LFG)(c))}function S(t){return t.replace(/\/index.html$/,"")}var k=(()=>((k=k||{})[k.Zero=0]="Zero",k[k.One=1]="One",k[k.Two=2]="Two",k[k.Few=3]="Few",k[k.Many=4]="Many",k[k.Other=5]="Other",k))();const O=i.kL8;class T{}let A=(()=>{class t extends T{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(O(e||this.locale)(t)){case k.Zero:return"zero";case k.One:return"one";case k.Two:return"two";case k.Few:return"few";case k.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.soG))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function P(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let I=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class R{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 D=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(t){return t.name||typeof t}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new R(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new M(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new M(t,s);e.push(r)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class M{constructor(t,e){this.record=t,this.view=e}}let L=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new F,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){N("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){N("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class F{constructor(){this.$implicit=null,this.ngIf=null}}function N(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.AaK)(e)}'.`)}class B{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let U=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new B(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(U,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),q=(()=>{class t{constructor(t,e,n){n._addDefault(new B(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(U,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})();class j{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class V{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const H=new V,z=new j;let Y=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,i.QGY)(e))return H;if((0,i.F4k)(e))return z;throw function(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,i.AaK)(t)}'`)}(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO,16))},t.\u0275pipe=i.Yjl({name:"async",type:t,pure:!1}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:T,useClass:A}]}),t})();const K="browser";function $(t){return t===K}let W=(()=>{class t{}return t.\u0275prov=(0,i.Yz7)({token:t,providedIn:"root",factory:()=>new Q((0,i.LFG)(l),window)}),t})();class Q{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=J(this.window.history)||J(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function J(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class X{}},1841:function(t,e,n){"use strict";n.d(e,{eN:function(){return P},JF:function(){return V}});var i=n(8583),s=n(3018),r=n(5917),o=n(7574),a=n(4612),l=n(5435),c=n(8002);class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return g(t)}encodeValue(t){return g(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const f=/%(\d[a-f0-9])/gi,m={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function g(t){return encodeURIComponent(t).replace(f,(t,e)=>{var n;return null!==(n=m[e])&&void 0!==n?n:t})}function _(t){return`${t}`}class y{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new y({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(_(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(_(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class b{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function v(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function w(t){return"undefined"!=typeof Blob&&t instanceof Blob}function C(t){return"undefined"!=typeof FormData&&t instanceof FormData}class x{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new b),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new x(n,i,r,{params:c,headers:l,context:u,reportProgress:a,responseType:s,withCredentials:o})}}var E=(()=>((E=E||{})[E.Sent=0]="Sent",E[E.UploadProgress=1]="UploadProgress",E[E.ResponseHeader=2]="ResponseHeader",E[E.DownloadProgress=3]="DownloadProgress",E[E.Response=4]="Response",E[E.User=5]="User",E))();class S{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class k extends S{constructor(t={}){super(t),this.type=E.ResponseHeader}clone(t={}){return new k({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class O extends S{constructor(t={}){super(t),this.type=E.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new O({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class T extends S{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function A(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let P=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof x)i=t;else{let s,r;s=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(r=n.params instanceof y?n.params:new y({fromObject:n.params})),i=new x(t,e,void 0!==n.body?n.body:null,{headers:s,context:n.context,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=(0,r.of)(i).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof x||"events"===n.observe)return s;const o=s.pipe((0,l.h)(t=>t instanceof O));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe((0,c.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe((0,c.U)(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new y).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,A(n,e))}post(t,e,n={}){return this.request("POST",t,A(n,e))}put(t,e,n={}){return this.request("PUT",t,A(n,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(u))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class I{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const R=new s.OlP("HTTP_INTERCEPTORS");let D=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const M=/^\)\]\}',?\n/;let L=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new k({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(M,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new O({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new T({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new T({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:E.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&!!n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:E.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:E.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const F=new s.OlP("XSRF_COOKIE_NAME"),N=new s.OlP("XSRF_HEADER_NAME");class B{}let U=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0),s.LFG(s.Lbi),s.LFG(F))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null!==i&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(B),s.LFG(N))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),q=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(R,[]);this.chain=t.reduceRight((t,e)=>new I(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Z,useClass:D}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:F,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Z,{provide:R,useExisting:Z,multi:!0},{provide:B,useClass:U},{provide:F,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[P,{provide:u,useClass:q},L,{provide:h,useExisting:L}],imports:[[j.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},3018:function(t,e,n){"use strict";n.d(e,{deG:function(){return un},tb:function(){return tc},AFp:function(){return $l},ip1:function(){return Gl},CZH:function(){return Kl},hGG:function(){return Gc},z2F:function(){return Nc},sBO:function(){return Wa},Sil:function(){return hc},_Vd:function(){return va},EJc:function(){return ic},SBq:function(){return Ea},qLn:function(){return Di},vpe:function(){return Tl},gxx:function(){return wr},tBr:function(){return Ln},XFs:function(){return R},OlP:function(){return cn},zs3:function(){return Fr},ZZ4:function(){return Va},aQg:function(){return za},soG:function(){return nc},YKP:function(){return ol},v3s:function(){return Uc},h0i:function(){return rl},PXZ:function(){return Rc},R0b:function(){return fc},FiY:function(){return Fn},Lbi:function(){return Xl},g9A:function(){return Jl},n_E:function(){return Pl},Qsj:function(){return Oa},FYo:function(){return ka},JOm:function(){return Fi},Tiy:function(){return Aa},q3G:function(){return Ei},tp0:function(){return Nn},EAV:function(){return jc},Rgc:function(){return el},dDg:function(){return wc},DyG:function(){return hn},GfV:function(){return Pa},s_b:function(){return ll},ifc:function(){return B},eFA:function(){return Dc},G48:function(){return Ac},Gpc:function(){return m},f3M:function(){return Pn},X6Q:function(){return Tc},_c5:function(){return zc},VLi:function(){return Ec},c2e:function(){return ec},zSh:function(){return xr},wAp:function(){return ra},vHH:function(){return y},EiD:function(){return Ci},mCW:function(){return oi},qzn:function(){return $n},JVY:function(){return Qn},pB0:function(){return ei},eBb:function(){return Xn},L6k:function(){return Jn},LAX:function(){return ti},cg1:function(){return na},Tjo:function(){return Hc},kL8:function(){return ia},yhl:function(){return Wn},dqk:function(){return V},sIi:function(){return Yr},CqO:function(){return po},QGY:function(){return uo},F4k:function(){return ho},RDi:function(){return Tt},AaK:function(){return d},z3N:function(){return Kn},qOj:function(){return Br},TTD:function(){return vt},_Bn:function(){return ga},xp6:function(){return xs},uIk:function(){return Wr},Tol:function(){return Do},Gre:function(){return Wo},ekj:function(){return Ro},Suo:function(){return jl},Xpm:function(){return tt},lG2:function(){return at},Yz7:function(){return x},cJS:function(){return E},oAB:function(){return st},Yjl:function(){return lt},Y36:function(){return eo},_UZ:function(){return oo},BQk:function(){return lo},ynx:function(){return ao},qZA:function(){return ro},TgZ:function(){return so},EpF:function(){return co},n5z:function(){return sn},Ikx:function(){return Qo},LFG:function(){return An},$8M:function(){return on},NdJ:function(){return fo},CRH:function(){return Vl},kcU:function(){return Ce},O4$:function(){return we},oxw:function(){return bo},ALo:function(){return Sl},lcZ:function(){return kl},Hsn:function(){return Co},F$t:function(){return wo},Q6J:function(){return no},s9C:function(){return xo},VKq:function(){return xl},iGM:function(){return Zl},MAs:function(){return to},CHM:function(){return Gt},oJD:function(){return Si},LSH:function(){return ki},kYT:function(){return rt},Udp:function(){return Io},WFA:function(){return mo},d8E:function(){return Jo},YNc:function(){return Xr},_uU:function(){return zo},Oqu:function(){return Yo},hij:function(){return Go},AsE:function(){return Ko},lnq:function(){return $o},Gf:function(){return ql}});var i=n(9765),s=n(5319),r=n(7574),o=n(6682),a=n(2441);var l=n(1307);function c(){return new i.xQ}function u(t){for(let e in t)if(t[e]===u)return e;throw Error("Could not find renamed property on target object.")}function h(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function d(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(d).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function p(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const f=u({__forward_ref__:u});function m(t){return t.__forward_ref__=m,t.toString=function(){return d(this())},t}function g(t){return _(t)?t():t}function _(t){return"function"==typeof t&&t.hasOwnProperty(f)&&t.__forward_ref__===m}class y extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function b(t){return"string"==typeof t?t:null==t?"":String(t)}function v(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():b(t)}function w(t,e){const n=e?` in ${e}`:"";throw new y("201",`No provider for ${v(t)} found${n}`)}function C(t,e){null==t&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${n} ${i} ${e} <=Actual]`))}(e,t,null,"!=")}function x(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function E(t){return{providers:t.providers||[],imports:t.imports||[]}}function S(t){return k(t,T)||k(t,P)}function k(t,e){return t.hasOwnProperty(e)?t[e]:null}function O(t){return t&&(t.hasOwnProperty(A)||t.hasOwnProperty(I))?t[A]:null}const T=u({"\u0275prov":u}),A=u({"\u0275inj":u}),P=u({ngInjectableDef:u}),I=u({ngInjectorDef:u});var R=(()=>((R=R||{})[R.Default=0]="Default",R[R.Host=1]="Host",R[R.Self=2]="Self",R[R.SkipSelf=4]="SkipSelf",R[R.Optional=8]="Optional",R))();let D;function M(t){const e=D;return D=t,e}function L(t,e,n){const i=S(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&R.Optional?null:void 0!==e?e:void w(d(t),"Injector")}function F(t){return{toString:t}.toString()}var N=(()=>((N=N||{})[N.OnPush=0]="OnPush",N[N.Default=1]="Default",N))(),B=(()=>((B=B||{})[B.Emulated=0]="Emulated",B[B.None=2]="None",B[B.ShadowDom=3]="ShadowDom",B))();const U="undefined"!=typeof globalThis&&globalThis,Z="undefined"!=typeof window&&window,q="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,V=U||j||Z||q,H={},z=[],Y=u({"\u0275cmp":u}),G=u({"\u0275dir":u}),K=u({"\u0275pipe":u}),$=u({"\u0275mod":u}),W=u({"\u0275loc":u}),Q=u({"\u0275fac":u}),J=u({__NG_ELEMENT_ID__:u});let X=0;function tt(t){return F(()=>{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===N.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||z,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||B.Emulated,id:"c",styles:t.styles||z,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=X++,n.inputs=ot(t.inputs,e),n.outputs=ot(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(et):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(nt):null,n})}function et(t){return ct(t)||function(t){return t[G]||null}(t)}function nt(t){return function(t){return t[K]||null}(t)}const it={};function st(t){return F(()=>{const e={type:t.type,bootstrap:t.bootstrap||z,declarations:t.declarations||z,imports:t.imports||z,exports:t.exports||z,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(it[t.id]=t.type),e})}function rt(t,e){return F(()=>{const n=ut(t,!0);n.declarations=e.declarations||z,n.imports=e.imports||z,n.exports=e.exports||z})}function ot(t,e){if(null==t)return H;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const at=tt;function lt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ct(t){return t[Y]||null}function ut(t,e){const n=t[$]||null;if(!n&&!0===e)throw new Error(`Type ${d(t)} does not have '\u0275mod' property.`);return n}function ht(t){return Array.isArray(t)&&"object"==typeof t[1]}function dt(t){return Array.isArray(t)&&!0===t[1]}function pt(t){return 0!=(8&t.flags)}function ft(t){return 2==(2&t.flags)}function mt(t){return 1==(1&t.flags)}function gt(t){return null!==t.template}function _t(t){return 0!=(512&t[2])}function yt(t,e){return t.hasOwnProperty(Q)?t[Q]:null}class bt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function vt(){return wt}function wt(t){return t.type.prototype.ngOnChanges&&(t.setInput=xt),Ct}function Ct(){const t=St(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===H)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function xt(t,e,n,i){const s=St(t)||function(t,e){return t[Et]=e}(t,{previous:H,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new bt(l&&l.currentValue,e,o===H),t[i]=e}vt.ngInherit=!0;const Et="__ngSimpleChanges__";function St(t){return t[Et]||null}const kt="http://www.w3.org/2000/svg";let Ot;function Tt(t){Ot=t}function At(){return void 0!==Ot?Ot:"undefined"!=typeof document?document:void 0}function Pt(t){return!!t.listen}const It={createRenderer:(t,e)=>At()};function Rt(t){for(;Array.isArray(t);)t=t[0];return t}function Dt(t,e){return Rt(e[t])}function Mt(t,e){return Rt(e[t.index])}function Lt(t,e){return t.data[e]}function Ft(t,e){return t[e]}function Nt(t,e){const n=e[t];return ht(n)?n:n[0]}function Bt(t){return 4==(4&t[2])}function Ut(t){return 128==(128&t[2])}function Zt(t,e){return null==e?null:t[e]}function qt(t){t[18]=0}function jt(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Vt={lFrame:fe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ht(){return Vt.bindingsEnabled}function zt(){return Vt.lFrame.lView}function Yt(){return Vt.lFrame.tView}function Gt(t){return Vt.lFrame.contextLView=t,t[8]}function Kt(){let t=$t();for(;null!==t&&64===t.type;)t=t.parent;return t}function $t(){return Vt.lFrame.currentTNode}function Wt(t,e){const n=Vt.lFrame;n.currentTNode=t,n.isParent=e}function Qt(){return Vt.lFrame.isParent}function Jt(){Vt.lFrame.isParent=!1}function Xt(){return Vt.isInCheckNoChangesMode}function te(t){Vt.isInCheckNoChangesMode=t}function ee(){const t=Vt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ne(){return Vt.lFrame.bindingIndex}function ie(){return Vt.lFrame.bindingIndex++}function se(t){const e=Vt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function re(t,e){const n=Vt.lFrame;n.bindingIndex=n.bindingRootIndex=t,oe(e)}function oe(t){Vt.lFrame.currentDirectiveIndex=t}function ae(t){const e=Vt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function le(){return Vt.lFrame.currentQueryIndex}function ce(t){Vt.lFrame.currentQueryIndex=t}function ue(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function he(t,e,n){if(n&R.SkipSelf){let i=e,s=t;for(;!(i=i.parent,null!==i||n&R.Host||(i=ue(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;e=i,t=s}const i=Vt.lFrame=pe();return i.currentTNode=e,i.lView=t,!0}function de(t){const e=pe(),n=t[1];Vt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function pe(){const t=Vt.lFrame,e=null===t?null:t.child;return null===e?fe(t):e}function fe(t){const e={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=e),e}function me(){const t=Vt.lFrame;return Vt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ge=me;function _e(){const t=me();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 ye(){return Vt.lFrame.selectedIndex}function be(t){Vt.lFrame.selectedIndex=t}function ve(){const t=Vt.lFrame;return Lt(t.tView,t.selectedIndex)}function we(){Vt.lFrame.currentNamespace=kt}function Ce(){Vt.lFrame.currentNamespace=null}function xe(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}class Ae{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Pe(t,e,n){const i=Pt(t);let s=0;for(;se){o=r-1;break}}}for(;r>16}(t),i=e;for(;n>0;)i=i[15],n--;return i}let Be=!0;function Ue(t){const e=Be;return Be=t,e}let Ze=0;function qe(t,e){const n=Ve(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,je(i.data,t),je(e,null),je(i.blueprint,null));const s=He(t,e),r=t.injectorIndex;if(Le(s)){const t=Fe(s),n=Ne(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function je(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ve(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function He(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function ze(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(i=n[J]),null==i&&(i=n[J]=Ze++);const s=255&i;e.data[t+(s>>5)]|=1<=0?255&e:We:e}(n);if("function"==typeof r){if(!he(e,t,i))return i&R.Host?Ye(s,n,i):Ge(e,n,i,s);try{const t=r(i);if(null!=t||i&R.Optional)return t;w(n)}finally{ge()}}else if("number"==typeof r){let s=null,o=Ve(t,e),a=-1,l=i&R.Host?e[16][6]:null;for((-1===o||i&R.SkipSelf)&&(a=-1===o?He(t,e):e[o+8],-1!==a&&en(i,!1)?(s=e[1],o=Fe(a),e=Ne(a,e)):o=-1);-1!==o;){const t=e[1];if(tn(r,o,t.data)){const t=Qe(o,e,n,s,i,l);if(t!==$e)return t}a=e[o+8],-1!==a&&en(i,e[1].data[o+8]===l)&&tn(r,o,e)?(s=t,o=Fe(a),e=Ne(a,e)):o=-1}}}return Ge(e,n,i,s)}const $e={};function We(){return new nn(Kt(),zt())}function Qe(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=Je(a,o,n,null==i?ft(a)&&Be:i!=o&&0!=(3&a.type),s&R.Host&&r===a);return null!==l?Xe(e,o,l,a):$e}function Je(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,u=s?a+c:t.directiveEnd;for(let h=i?a:a+c;h=l&&t.type===n)return h}if(s){const t=o[l];if(t&>(t)&&t.type===n)return l}return null}function Xe(t,e,n,i){let s=t[n];const r=e.data;if(function(t){return t instanceof Ae}(s)){const o=s;o.resolving&&function(t,e){throw new y("200",`Circular dependency in DI detected for ${t}`)}(v(r[n]));const a=Ue(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?M(o.injectImpl):null;he(t,i,R.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=wt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&M(l),Ue(a),o.resolving=!1,ge()}}return s}function tn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Q]||rn(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Q]||rn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function rn(t){return _(t)?()=>{const e=rn(g(t));return e&&e()}:yt(t)}function on(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty(an)?t[an]:Object.defineProperty(t,an,{value:[]})[an];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class cn{constructor(t,e){this._desc=t,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 un=new cn("AnalyzeForEntryComponents"),hn=Function;function dn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?pn(t,e):e(t))}function fn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function mn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function gn(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function yn(t,e){const n=bn(t,e);if(n>=0)return t[1|n]}function bn(t,e){return function(t,e,n){let i=0,s=t.length>>n;for(;s!==i;){const r=i+(s-i>>1),o=t[r<e?s=r:i=r+1}return~(s< ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):d(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(xn,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t[Cn]=null,t}const Ln=Rn(ln("Inject",t=>({token:t})),-1),Fn=Rn(ln("Optional"),8),Nn=Rn(ln("SkipSelf"),4);let Bn,Un;function Zn(t){var e;return(null===(e=function(){if(void 0===Bn&&(Bn=null,V.trustedTypes))try{Bn=V.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Bn}())||void 0===e?void 0:e.createHTML(t))||t}function qn(t){var e;return(null===(e=function(){if(void 0===Un&&(Un=null,V.trustedTypes))try{Un=V.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Un}())||void 0===e?void 0:e.createHTML(t))||t}class jn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Vn extends jn{getTypeName(){return"HTML"}}class Hn extends jn{getTypeName(){return"Style"}}class zn extends jn{getTypeName(){return"Script"}}class Yn extends jn{getTypeName(){return"URL"}}class Gn extends jn{getTypeName(){return"ResourceURL"}}function Kn(t){return t instanceof jn?t.changingThisBreaksApplicationSecurity:t}function $n(t,e){const n=Wn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Wn(t){return t instanceof jn&&t.getTypeName()||null}function Qn(t){return new Vn(t)}function Jn(t){return new Hn(t)}function Xn(t){return new zn(t)}function ti(t){return new Yn(t)}function ei(t){return new Gn(t)}class ni{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Zn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class ii{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Zn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Zn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0oi(t.trim())).join(", ")),this.buf.push(" ",e,'="',vi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();di.hasOwnProperty(e)&&!ci.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(vi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const yi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bi=/([^\#-~ |!])/g;function vi(t){return t.replace(/&/g,"&").replace(yi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(bi,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let wi;function Ci(t,e){let n=null;try{wi=wi||function(t){const e=new ii(t);return function(){try{return!!(new window.DOMParser).parseFromString(Zn(""),"text/html")}catch(t){return!1}}()?new ni(e):e}(t);let i=e?String(e):"";n=wi.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=wi.getInertBodyElement(i)}while(i!==r);return Zn((new _i).sanitizeChildren(xi(n)||n))}finally{if(n){const t=xi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function xi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ei=(()=>((Ei=Ei||{})[Ei.NONE=0]="NONE",Ei[Ei.HTML=1]="HTML",Ei[Ei.STYLE=2]="STYLE",Ei[Ei.SCRIPT=3]="SCRIPT",Ei[Ei.URL=4]="URL",Ei[Ei.RESOURCE_URL=5]="RESOURCE_URL",Ei))();function Si(t){const e=Oi();return e?qn(e.sanitize(Ei.HTML,t)||""):$n(t,"HTML")?qn(Kn(t)):Ci(At(),b(t))}function ki(t){const e=Oi();return e?e.sanitize(Ei.URL,t)||"":$n(t,"URL")?Kn(t):oi(b(t))}function Oi(){const t=zt();return t&&t[12]}const Ti="__ngContext__";function Ai(t,e){t[Ti]=e}function Pi(t){const e=function(t){return t[Ti]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ii(t){return t.ngOriginalError}function Ri(t,...e){t.error(...e)}class Di{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=(s=t)&&s.ngErrorLogger||Ri;var s;i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?t.ngDebugContext||this._findContext(Ii(t)):null}_findOriginalError(t){let e=t&&Ii(t);for(;e&&Ii(e);)e=Ii(e);return e||null}}const Mi=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(V))();function Li(t){return t instanceof Function?t():t}var Fi=(()=>((Fi=Fi||{})[Fi.Important=1]="Important",Fi[Fi.DashCase=2]="DashCase",Fi))();function Ni(t,e){return undefined(t,e)}function Bi(t){const e=t[3];return dt(e)?e[3]:e}function Ui(t){return qi(t[13])}function Zi(t){return qi(t[4])}function qi(t){for(;null!==t&&!dt(t);)t=t[4];return t}function ji(t,e,n,i,s){if(null!=i){let r,o=!1;dt(i)?r=i:ht(i)&&(o=!0,i=i[0]);const a=Rt(i);0===t&&null!==n?null==s?Wi(e,n,a):$i(e,n,a,s||null,!0):1===t&&null!==n?$i(e,n,a,s||null,!0):2===t?function(t,e,n){const i=Ji(t,e);i&&function(t,e,n,i){Pt(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==Rt(n)&&ji(e,t,i,r,s);for(let o=10;o0&&(t[n-1][4]=i[4]);const r=mn(t,10+e);!function(t,e){os(t,e,e[11],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Yi(t,e){if(!(256&e[2])){const n=e[11];Pt(n)&&n.destroyNode&&os(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Gi(t[1],t);for(;e;){let n=null;if(ht(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ht(e)&&Gi(e[1],e),e=e[3];null===e&&(e=t),ht(e)&&Gi(e[1],e),n=e&&e[4]}e=n}}(e)}}function Gi(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?i[s=l]():i[s=-l].unsubscribe(),r+=2}else{const t=i[s=n[r+1]];n[r].call(t)}if(null!==i){for(let t=s+1;tr?"":s[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==us(e,c,0)||2&i&&c!==t){if(gs(i))return!1;o=!0}}}}else{if(!o&&!gs(i)&&!gs(l))return!1;if(o&&gs(l))continue;o=!1,i=l|1&i}}return gs(i)||o}function gs(t){return 0==(1&t)}function _s(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""!==s&&!gs(o)&&(e+=vs(r,s),s=""),i=o,r=r||!gs(i);n++}return""!==s&&(e+=vs(r,s)),e}const Cs={};function xs(t){Es(Yt(),zt(),ye()+t,Xt())}function Es(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ee(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Se(e,i,0,n)}be(n)}function Ss(t,e){return t<<17|e<<2}function ks(t){return t>>17&32767}function Os(t){return 2|t}function Ts(t){return(131068&t)>>2}function As(t,e){return-131069&t|e<<2}function Ps(t){return 1|t}function Is(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i20&&Es(t,e,20,Xt()),n(i,s)}finally{be(r)}}function Us(t,e,n){if(pt(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function $s(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ws(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Qs(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&or(n)}}function or(t){for(let n=Ui(t);null!==n;n=Zi(n))for(let t=10;t0&&or(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&or(i)}}function ar(t,e){const n=Nt(e,t),i=n[1];(function(t,e){for(let n=e.length;nPromise.resolve(null))();function fr(t){return t[7]||(t[7]=[])}function mr(t){return t.cleanup||(t.cleanup=[])}function gr(t,e,n){return(null===t||gt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function _r(t,e){const n=t[9],i=n?n.get(Di,null):null;i&&i.handleError(e)}function yr(t,e,n,i,s){for(let r=0;rthis.processProvider(n,t,e)),pn([t],t=>this.processInjectorType(t,[],s)),this.records.set(wr,Rr(void 0,this));const r=this.records.get(xr);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:d(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=vn,n=R.Default){this.assertNotDestroyed();const i=On(this),s=M(void 0);try{if(!(n&R.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof cn)&&S(t);e=n&&this.injectableDefInScope(n)?Rr(Pr(t),Er):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&R.Self?Or():this.parent).get(t,e=n&R.Optional&&e===vn?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Cn]=o[Cn]||[]).unshift(d(t)),i)throw o;return Mn(o,t,"R3InjectorError",this.source)}throw o}finally{M(s),On(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(d(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=g(t)))return!1;let i=O(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=O(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{pn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||z))}}this.injectorDefTypes.add(r);const a=yt(r)||(()=>new r);this.records.set(r,Rr(a,Er));const l=i.providers;if(null!=l&&!o){const e=t;pn(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=Mr(t=g(t))?t:g(t&&t.provide);const s=Dr(r=t)?Rr(void 0,r.useValue):Rr(Ir(r),Er);var r;if(Mr(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Rr(void 0,Er,!0),e.factory=()=>In(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){return e.value===Er&&(e.value=Sr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value;var n}injectableDefInScope(t){if(!t.providedIn)return!1;const e=g(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Pr(t){const e=S(t),n=null!==e?e.factory:yt(t);if(null!==n)return n;if(t instanceof cn)throw new Error(`Token ${d(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=gn(e,"?");throw new Error(`Can't resolve all parameters for ${d(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[T]||t[P]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" 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 "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Ir(t,e,n){let i;if(Mr(t)){const e=g(t);return yt(e)||Pr(e)}if(Dr(t))i=()=>g(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...In(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>An(g(t.useExisting));else{const e=g(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return yt(e)||Pr(e);i=()=>new e(...In(t.deps))}return i}function Rr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Dr(t){return null!==t&&"object"==typeof t&&Sn in t}function Mr(t){return"function"==typeof t}const Lr=function(t,e,n){return function(t,e=null,n=null,i){const s=Tr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};class Fr{static create(t,e){return Array.isArray(t)?Lr(t,e,""):Lr(t.providers,t.parent,t.name||"")}}function Nr(t,e){xe(Pi(t)[1],Kt())}function Br(t){let e=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const i=[t];for(;e;){let s;if(gt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=Ur(t.inputs),e.declaredInputs=Ur(t.declaredInputs),e.outputs=Ur(t.outputs);const n=s.hostBindings;n&&jr(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&Zr(t,r),o&&qr(t,o),h(t.inputs,s.inputs),h(t.declaredInputs,s.declaredInputs),h(t.outputs,s.outputs),gt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=De(s.hostAttrs,n=De(n,s.hostAttrs))}}(i)}function Ur(t){return t===H?{}:t===z?[]:t}function Zr(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function qr(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function jr(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}Fr.THROW_IF_NOT_FOUND=vn,Fr.NULL=new Cr,Fr.\u0275prov=x({token:Fr,providedIn:"any",factory:()=>An(wr)}),Fr.__NG_ELEMENT_ID__=-1;let Vr=null;function Hr(){if(!Vr){const t=V.Symbol;if(t&&t.iterator)Vr=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Rt(t[i.index])):i.index;if(Pt(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,d=!1;else{r=yo(i,e,u,r,!1);const t=n.listen(f,s,r);h.push(r,t),c&&c.push(s,g,m,m+1)}}else r=yo(i,e,u,r,!0),f.addEventListener(s,r,o),h.push(r),c&&c.push(s,g,m,o)}else r=yo(i,e,u,r,!1);const p=i.outputs;let f;if(d&&null!==p&&(f=p[s])){const t=f.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Vt.lFrame.contextLView))[8]}(t)}function vo(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Oo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function To(t){return t.substring(Oo.key,Oo.keyEnd)}function Ao(t,e){const n=Oo.textEnd;return n===e?-1:(e=Oo.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Oo.key=e,n),Po(t,e,n))}function Po(t,e,n){for(;e=0;n=Ao(e,n))_n(t,To(e),!0)}function Lo(t,e,n,i){const s=zt(),r=Yt(),o=se(2);r.firstUpdatePass&&Bo(r,t,o,i),e!==Cs&&Kr(s,o,e)&&qo(r,r.data[ye()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=d(Kn(t)))),t}(e,n),i,o)}function Fo(t,e,n,i){const s=Yt(),r=se(2);s.firstUpdatePass&&Bo(s,null,r,i);const o=zt();if(n!==Cs&&Kr(o,r,n)){const a=s.data[ye()];if(Ho(a,i)&&!No(s,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=p(t,n||"")),io(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===Cs&&(s=z);let l=0,c=0,u=0=t.expandoStartIndex}function Bo(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[ye()],o=No(t,n);Ho(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=ae(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=Zo(n=Uo(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=Uo(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Ts(i))return t[ks(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Uo(null,t,e,n[1],i),n=Zo(n,e.attrs,i),function(t,e,n,i){t[ks(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=ks(t[a+1]);t[i+1]=Ss(e,a),0!==e&&(t[e+1]=As(t[e+1],i)),t[a+1]=function(t,e){return 131071&t|e<<17}(t[a+1],i)}else t[i+1]=Ss(a,0),0!==a&&(t[a+1]=As(t[a+1],i)),a=i;else t[i+1]=Ss(l,0),0===a?a=i:t[l+1]=As(t[l+1],i),l=i;u&&(t[i+1]=Os(t[i+1])),So(t,c,i,!0),So(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&bn(r,e)>=0&&(n[i+1]=Ps(n[i+1]))}(e,c,t,i,r),o=Ss(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function Uo(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let u=n[s+1];u===Cs&&(u=c?z:void 0);let h=c?yn(u,i):l===i?u:void 0;if(r&&!Vo(h)&&(h=yn(e,i)),Vo(h)&&(a=h,o))return a;const d=t[s+1];s=o?ks(d):Ts(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=yn(t,i))}return a}function Vo(t){return void 0!==t}function Ho(t,e){return 0!=(t.flags&(e?16:32))}function zo(t,e=""){const n=zt(),i=Yt(),s=t+20,r=i.firstCreatePass?Ds(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return Pt(t)?t.createText(e):t.createTextNode(e)}(n[11],e);es(i,n,o,r),Wt(r,!1)}function Yo(t){return Go("",t,""),Yo}function Go(t,e,n){const i=zt(),s=Qr(i,t,e,n);return s!==Cs&&br(i,ye(),s),Go}function Ko(t,e,n,i,s){const r=zt(),o=function(t,e,n,i,s,r){const o=$r(t,ne(),n,s);return se(2),o?e+b(n)+i+b(s)+r:Cs}(r,t,e,n,i,s);return o!==Cs&&br(r,ye(),o),Ko}function $o(t,e,n,i,s,r,o){const a=zt(),l=Jr(a,t,e,n,i,s,r,o);return l!==Cs&&br(a,ye(),l),$o}function Wo(t,e,n){Fo(_n,Mo,Qr(zt(),t,e,n),!0)}function Qo(t,e,n){const i=zt();return Kr(i,ie(),e)&&Ys(Yt(),ve(),i,t,e,i[11],n,!0),Qo}function Jo(t,e,n){const i=zt();if(Kr(i,ie(),e)){const s=Yt(),r=ve();Ys(s,r,i,t,e,gr(ae(s.data),r,i),n,!0)}return Jo}const Xo=void 0;var ta=["en",[["a","p"],["AM","PM"],Xo],[["AM","PM"],Xo,Xo],[["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"]],Xo,[["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"]],Xo,[["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}",Xo,"{1} 'at' {0}",Xo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ea={};function na(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=sa(e);if(n)return n;const i=e.split("-")[0];if(n=sa(i),n)return n;if("en"===i)return ta;throw new Error(`Missing locale data for the locale "${t}".`)}function ia(t){return na(t)[ra.PluralCase]}function sa(t){return t in ea||(ea[t]=V.ng&&V.ng.common&&V.ng.common.locales&&V.ng.common.locales[t]),ea[t]}var ra=(()=>((ra=ra||{})[ra.LocaleId=0]="LocaleId",ra[ra.DayPeriodsFormat=1]="DayPeriodsFormat",ra[ra.DayPeriodsStandalone=2]="DayPeriodsStandalone",ra[ra.DaysFormat=3]="DaysFormat",ra[ra.DaysStandalone=4]="DaysStandalone",ra[ra.MonthsFormat=5]="MonthsFormat",ra[ra.MonthsStandalone=6]="MonthsStandalone",ra[ra.Eras=7]="Eras",ra[ra.FirstDayOfWeek=8]="FirstDayOfWeek",ra[ra.WeekendRange=9]="WeekendRange",ra[ra.DateFormat=10]="DateFormat",ra[ra.TimeFormat=11]="TimeFormat",ra[ra.DateTimeFormat=12]="DateTimeFormat",ra[ra.NumberSymbols=13]="NumberSymbols",ra[ra.NumberFormats=14]="NumberFormats",ra[ra.CurrencyCode=15]="CurrencyCode",ra[ra.CurrencySymbol=16]="CurrencySymbol",ra[ra.CurrencyName=17]="CurrencyName",ra[ra.Currencies=18]="Currencies",ra[ra.Directionality=19]="Directionality",ra[ra.PluralCase=20]="PluralCase",ra[ra.ExtraData=21]="ExtraData",ra))();const oa="en-US";let aa=oa;function la(t){C(t,"Expected localeId to be defined"),"string"==typeof t&&(aa=t.toLowerCase().replace(/_/g,"-"))}function ca(t,e,n,i,s){if(t=g(t),Array.isArray(t))for(let r=0;r>20;if(Mr(t)||!t.multi){const i=new Ae(l,s,eo),p=da(a,e,s?u:u+d,h);-1===p?(ze(qe(c,o),r,a),ua(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=da(a,e,u+d,h),f=da(a,e,u,u+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){ze(qe(c,o),r,a);const u=function(t,e,n,i,s){const r=new Ae(t,n,eo);return r.multi=[],r.index=e,r.componentProviders=0,ha(r,s,i&&!n),r}(s?fa:pa,n.length,s,i,l);!s&&g&&(n[f].providerFactory=u),ua(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else ua(r,t,p>-1?p:f,ha(n[s?f:p],l,!s&&i));!s&&i&&g&&n[f].componentProviders++}}}function ua(t,e,n,i){const s=Mr(e);if(s||function(t){return!!t.useClass}(e)){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function ha(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function da(t,e,n,i){for(let s=n;s{n.providersResolver=(n,i)=>function(t,e,n){const i=Yt();if(i.firstCreatePass){const s=gt(t);ca(n,i.data,i.blueprint,s,!0),ca(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class _a{}const ya="ngComponent";class ba{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${d(t)}. Did you add it to @NgModule.entryComponents?`);return e[ya]=t,e}(t)}}class va{}function wa(...t){}function Ca(t,e){return new Ea(Mt(t,e))}va.NULL=new ba;const xa=function(){return Ca(Kt(),zt())};let Ea=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=xa,t})();function Sa(t){return t instanceof Ea?t.nativeElement:t}class ka{}let Oa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ta(),t})();const Ta=function(){const t=zt(),e=Nt(Kt().index,t);return function(t){return t[11]}(ht(e)?e:t)};let Aa=(()=>{class t{}return t.\u0275prov=x({token:t,providedIn:"root",factory:()=>null}),t})();class Pa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ia=new Pa("12.2.4");class Ra{constructor(){}supports(t){return Yr(t)}create(t){return new Ma(t)}}const Da=(t,e)=>e;class Ma{constructor(t){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=t||Da}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):t=this._addAfter(new La(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Na),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Na),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class La{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Fa{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Na{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Fa,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ba(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new qa(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class qa{constructor(t){this.key=t,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 ja(){return new Va([new Ra])}let Va=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||ja()),deps:[[t,new Nn,new Fn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${function(t){return t.name||typeof t}(t)}'`)}}return t.\u0275prov=x({token:t,providedIn:"root",factory:ja}),t})();function Ha(){return new za([new Ua])}let za=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ha()),deps:[[t,new Nn,new Fn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=x({token:t,providedIn:"root",factory:Ha}),t})();function Ya(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(Rt(r)),dt(r))for(let t=10;t-1&&(zi(t,n),mn(e,n))}this._attachedToViewContainer=!1}Yi(this._lView[1],this._lView)}onDestroy(t){Hs(this._lView[1],this._lView,null,t)}markForCheck(){cr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ur(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){te(!0);try{ur(t,e,n)}finally{te(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,os(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ka extends Ga{constructor(t){super(t),this._view=t}detectChanges(){hr(this._view)}checkNoChanges(){!function(t){te(!0);try{hr(t)}finally{te(!1)}}(this._view)}get context(){return null}}const $a=function(t){return function(t,e,n){if(ft(t)&&!n){const n=Nt(t.index,e);return new Ga(n,n)}return 47&t.type?new Ga(e[16],e):null}(Kt(),zt(),16==(16&t))};let Wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=$a,t})();const Qa=[new Ua],Ja=new Va([new Ra]),Xa=new za(Qa),tl=function(){return sl(Kt(),zt())};let el=(()=>{class t{}return t.__NG_ELEMENT_ID__=tl,t})();const nl=el,il=class extends nl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Rs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Ls(e,n,t),new Ga(n)}};function sl(t,e){return 4&t.type?new il(e,t,Ca(t,e)):null}class rl{}class ol{}const al=function(){return pl(Kt(),zt())};let ll=(()=>{class t{}return t.__NG_ELEMENT_ID__=al,t})();const cl=ll,ul=class extends cl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Ca(this._hostTNode,this._hostLView)}get injector(){return new nn(this._hostTNode,this._hostLView)}get parentInjector(){const t=He(this._hostTNode,this._hostLView);if(Le(t)){const e=Ne(t,this._hostLView),n=Fe(t);return new nn(e[1].data[n+8],e)}return new nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=hl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(rl,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(dt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new ul(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=10+i,r=n.length;i>0&&(n[s-1][4]=e),iMi});class yl extends _a{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ws).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return gl(this.componentDef.inputs)}get outputs(){return gl(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,fl,s);return r!==fl||i===fl?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(ka,It),o=s.get(Aa,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Pt(t))return t.selectRootElement(e,n===B.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Vi(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?kt:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h=function(t,e){return{components:[],scheduler:t||Mi,clean:pr,playerHandler:e||null,flags:0}}(),d=Vs(0,null,null,1,0,null,null,null,null,null),p=Rs(null,d,h,u,null,null,r,a,o,s);let f,m;de(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=Ds(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(vr(a,l,!0),null!==t&&(Pe(s,t,l),null!==a.classes&&cs(s,t,a.classes),null!==a.styles&&ls(s,t,a.styles)));const c=i.createRenderer(t,e),u=Rs(n,js(e),null,e.onPush?64:16,n[20],a,i,c,r||null,null);return o.firstCreatePass&&(ze(qe(a,n),o,e.type),Ws(o,a),Js(a,n.length,1)),lr(n,u),n[20]=u}(c,this.componentDef,p,r,a);if(c)if(n)Pe(a,c,["ng-version",Ia.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i0&&cs(a,c,e.join(" "))}if(m=Lt(d,20),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Kt();e.contentQueries(1,o,t.directiveStart)}const a=Kt();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(be(a.index),Ks(n[1],a,0,a.directiveStart,a.directiveEnd,e),$s(e,o)),o}(t,this.componentDef,p,h,[Nr]),Ls(d,p,null)}finally{_e()}return new bl(this.componentType,f,Ca(m,p),p,m)}}class bl extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Ka(i),this.componentType=t}get injector(){return new nn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const vl=new Map;class wl extends rl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ml(this);const n=ut(t),i=t[W]||null;i&&la(i),this._bootstrapComponents=Li(n.bootstrap),this._r3Injector=Tr(t,e,[{provide:rl,useValue:this},{provide:va,useValue:this.componentFactoryResolver}],d(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Fr.THROW_IF_NOT_FOUND,n=R.Default){return t===Fr||t===rl||t===wr?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Cl extends ol{constructor(t){super(),this.moduleType=t,null!==ut(t)&&function(t){const e=new Set;!function t(n){const i=ut(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${d(e)} vs ${d(e.name)}`)}(s,vl.get(s),n),vl.set(s,n));const r=Li(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new wl(this.moduleType,t)}}function xl(t,e,n,i){return El(zt(),ee(),t,e,n,i)}function El(t,e,n,i,s,r){const o=e+n;return Kr(t,o,s)?function(t,e,n){return t[e]=n}(t,o+1,r?i.call(r,s):i(s)):function(t,e){const n=t[e];return n===Cs?void 0:n}(t,o+1)}function Sl(t,e){const n=Yt();let i;const s=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new y("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=yt(i.type)),o=M(eo);try{const t=Ue(!1),e=r();return Ue(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,zt(),s,e),e}finally{M(o)}}function kl(t,e,n){const i=t+20,s=zt(),r=Ft(s,i);return function(t,e){zr.isWrapped(e)&&(e=zr.unwrap(e),t[ne()]=Cs);return e}(s,function(t,e){return t[1].data[e].pure}(s,i)?El(s,ee(),e,r.transform,n,r):r.transform(n))}function Ol(t){return e=>{setTimeout(t,void 0,e)}}const Tl=class extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,r,o;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),l=null===(r=e.error)||void 0===r?void 0:r.bind(e),c=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(l=Ol(l),a&&(a=Ol(a)),c&&(c=Ol(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof s.w&&t.add(u),u}};function Al(){return this._results[Hr()]()}class Pl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Hr(),n=Pl.prototype;n[e]||(n[e]=Al)}get changes(){return this._changes||(this._changes=new Tl)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=dn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=wa,this.reject=wa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(An(Gl,8))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const $l=new cn("AppId"),Wl={provide:$l,useFactory:function(){return`${Ql()}${Ql()}${Ql()}`},deps:[]};function Ql(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Jl=new cn("Platform Initializer"),Xl=new cn("Platform ID"),tc=new cn("appBootstrapListener");let ec=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const nc=new cn("LocaleId"),ic=new cn("DefaultCurrencyCode");class sc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const rc=function(t){return new Cl(t)},oc=rc,ac=function(t){return Promise.resolve(rc(t))},lc=function(t){const e=rc(t),n=Li(ut(t).declarations).reduce((t,e)=>{const n=ct(e);return n&&t.push(new yl(n)),t},[]);return new sc(e,n)},cc=lc,uc=function(t){return Promise.resolve(lc(t))};let hc=(()=>{class t{constructor(){this.compileModuleSync=oc,this.compileModuleAsync=ac,this.compileModuleAndAllComponentsSync=cc,this.compileModuleAndAllComponentsAsync=uc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();const dc=(()=>Promise.resolve(0))();function pc(t){"undefined"==typeof Zone?dc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class fc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Tl(!1),this.onMicrotaskEmpty=new Tl(!1),this.onStable=new Tl(!1),this.onError=new Tl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=V.requestAnimationFrame,e=V.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(V,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,_c(t),t.isCheckStableRunning=!0,gc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),_c(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,r,o,a)=>{try{return yc(t),n.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),bc(t)}},onInvoke:(n,i,s,r,o,a,l)=>{try{return yc(t),n.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),bc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,_c(t),gc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!fc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(fc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,mc,wa,wa);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const mc={};function gc(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 _c(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function yc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bc(t){t._nesting--,gc(t)}class vc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Tl,this.onMicrotaskEmpty=new Tl,this.onStable=new Tl,this.onError=new Tl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let wc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{fc.assertNotInAngularZone(),pc(()=>{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())pc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!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(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(An(fc))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})(),Cc=(()=>{class t{constructor(){this._applications=new Map,Sc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Sc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();class xc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Ec(t){Sc=t}let Sc=new xc,kc=!0,Oc=!1;function Tc(){return Oc=!0,kc}function Ac(){if(Oc)throw new Error("Cannot enable prod mode after platform setup.");kc=!1}let Pc;const Ic=new cn("AllowMultipleToken");class Rc{constructor(t,e){this.name=t,this.token=e}}function Dc(t,e,n=[]){const i=`Platform: ${e}`,s=new cn(i);return(e=[])=>{let r=Mc();if(!r||r.injector.get(Ic,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:xr,useValue:"platform"});!function(t){if(Pc&&!Pc.destroyed&&!Pc.injector.get(Ic,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Pc=t.get(Lc);const e=t.get(Jl,null);e&&e.forEach(t=>t())}(Fr.create({providers:t,name:i}))}return function(t){const e=Mc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Mc(){return Pc&&!Pc.destroyed?Pc:null}let Lc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new vc:("zone.js"===t?void 0:t)||new fc({enableLongStackTrace:Tc(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:fc,useValue:n}];return n.run(()=>{const s=Fr.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(s),o=r.injector.get(Di,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{o.handleError(t)}});r.onDestroy(()=>{Bc(this._modules,r),t.unsubscribe()})}),function(t,n,i){try{const e=i();return uo(e)?e.catch(e=>{throw n.runOutsideAngular(()=>t.handleError(e)),e}):e}catch(e){throw n.runOutsideAngular(()=>t.handleError(e)),e}}(o,n,()=>{const t=r.injector.get(Kl);return t.runInitializers(),t.donePromise.then(()=>(la(r.injector.get(nc,oa)||oa),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=Fc({},e);return function(t,e,n){const i=new Cl(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Nc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${d(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(An(Fr))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function Fc(t,e){return Array.isArray(e)?e.reduce(Fc,t):Object.assign(Object.assign({},t),e)}let Nc=(()=>{class t{constructor(t,e,n,i,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=s,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 u=new r.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),h=new r.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{fc.assertNotInAngularZone(),pc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{fc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=(0,o.T)(u,h.pipe(t=>(0,l.x)()(function(t,e){return function(e){let n;n="function"==typeof t?t:function(){return t};const i=Object.create(e,a.N);return i.source=e,i.subjectFactory=n,i}}(c)(t))))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof _a?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=function(t){return t.isBoundToModule}(n)?void 0:this._injector.get(rl),s=n.create(Fr.NULL,[],e||n.selector,i),r=s.location.nativeElement,o=s.injector.get(wc,null),a=o&&s.injector.get(Cc);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Bc(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Bc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(tc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(An(fc),An(Fr),An(Di),An(va),An(Kl))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function Bc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Uc{}class Zc{}const qc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let jc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||qc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(8255)(e).then(t=>t[i]).then(t=>Vc(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>Vc(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(An(hc),An(Zc,8))},t.\u0275prov=x({token:t,factory:t.\u0275fac}),t})();function Vc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Hc=function(t){return null},zc=Dc(null,"core",[{provide:Xl,useValue:"unknown"},{provide:Lc,deps:[Fr]},{provide:Cc,deps:[]},{provide:ec,deps:[]}]),Yc=[{provide:Nc,useClass:Nc,deps:[fc,Fr,Di,va,Kl]},{provide:_l,deps:[fc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Kl,useClass:Kl,deps:[[new Fn,Gl]]},{provide:hc,useClass:hc,deps:[]},Wl,{provide:Va,useFactory:function(){return Ja},deps:[]},{provide:za,useFactory:function(){return Xa},deps:[]},{provide:nc,useFactory:function(t){return la(t=t||"undefined"!=typeof $localize&&$localize.locale||oa),t},deps:[[new Ln(nc),new Fn,new Nn]]},{provide:ic,useValue:"USD"}];let Gc=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(An(Nc))},t.\u0275mod=st({type:t}),t.\u0275inj=E({providers:Yc}),t})()},665:function(t,e,n){"use strict";n.d(e,{Zs:function(){return ct},sg:function(){return rt},u5:function(){return ht},Cf:function(){return h},JU:function(){return u},a5:function(){return A},JL:function(){return P},F:function(){return et},_Y:function(){return nt}});var i=n(3018),s=(n(8583),n(7574)),r=n(9796),o=n(8002),a=n(1555),l=n(4402);function c(t,e){return new s.y(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a{u||(u=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,(r===i||!u)&&(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}const u=new i.OlP("NgValueAccessor");const h=new i.OlP("NgValidators"),d=new i.OlP("NgAsyncValidators");function p(t){return null!=t}function f(t){const e=(0,i.QGY)(t)?(0,l.D)(t):t;return(0,i.CqO)(e),e}function m(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function g(t,e){return e.map(e=>e(t))}function _(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function y(t){return null!=t?function(t){if(!t)return null;const e=t.filter(p);return 0==e.length?null:function(t){return m(g(t,e))}}(_(t)):null}function b(t){return null!=t?function(t){if(!t)return null;const e=t.filter(p);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if((0,r.k)(e))return c(e,null);if((0,a.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&(0,r.k)(t[0])?t[0]:t,null).pipe((0,o.U)(t=>e(...t)))}return c(t,null)}(g(t,e).map(f)).pipe((0,o.U)(m))}}(_(t)):null}function v(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function w(t){return t._rawValidators}function C(t){return t._rawAsyncValidators}function x(t){return t?Array.isArray(t)?t:[t]:[]}function E(t,e){return Array.isArray(t)?t.includes(e):t===e}function S(t,e){const n=x(e);return x(t).forEach(t=>{E(n,t)||n.push(t)}),n}function k(t,e){return x(e).filter(e=>!E(t,e))}let O=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=y(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=b(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t}),t})(),T=(()=>{class t extends O{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();class A extends O{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let P=(()=>{class t extends class{constructor(t){this._cd=t}is(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(T,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[i.qOj]}),t})();function I(t,e){M(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&F(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&F(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function R(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),L(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function D(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function M(t,e){const n=w(t);null!==e.validator?t.setValidators(v(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const i=C(t);null!==e.asyncValidator?t.setAsyncValidators(v(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const s=()=>t.updateValueAndValidity();D(e._rawValidators,s),D(e._rawAsyncValidators,s)}function L(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=w(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.validator);s.length!==i.length&&(n=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const i=C(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.asyncValidator);s.length!==i.length&&(n=!0,t.setAsyncValidators(s))}}}const i=()=>{};return D(e._rawValidators,i),D(e._rawAsyncValidators,i),n}function F(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function N(t,e){M(t,e)}function B(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function U(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Z="VALID",q="INVALID",j="PENDING",V="DISABLED";function H(t){return(K(t)?t.validators:t)||null}function z(t){return Array.isArray(t)?y(t):t||null}function Y(t,e){return(K(e)?e.asyncValidators:t)||null}function G(t){return Array.isArray(t)?b(t):t||null}function K(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ${constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=z(this._rawValidators),this._composedAsyncValidatorFn=G(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Z}get invalid(){return this.status===q}get pending(){return this.status==j}get disabled(){return this.status===V}get enabled(){return this.status!==V}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=z(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=G(t)}addValidators(t){this.setValidators(S(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(S(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(k(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(k(t,this._rawAsyncValidators))}hasValidator(t){return E(this._rawValidators,t)}hasAsyncValidator(t){return E(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=j,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=V,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Z,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Z||this.status===j)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?V:Z}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=j,this._hasOwnPendingAsyncValidator=!0;const e=f(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let i=t;return e.forEach(t=>{i=i instanceof Q?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof J&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?V:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(j)?j:this._anyControlsHaveStatus(q)?q:Z}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){K(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class W extends ${constructor(t=null,e,n){super(H(e),Y(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){U(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){U(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Q extends ${constructor(t,e,n){super(H(e),Y(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof W?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class J extends ${constructor(t,e,n){super(H(e),Y(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof W?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const X={provide:T,useExisting:(0,i.Gpc)(()=>et)},tt=(()=>Promise.resolve(null))();let et=(()=>{class t extends T{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.vpe,this.form=new Q({},y(t),b(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){tt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),I(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){tt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),U(this._directives,t)})}addFormGroup(t){tt.then(()=>{const e=this._findContainer(t.path),n=new Q({});N(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){tt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){tt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,B(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h,10),i.Y36(d,10))},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([X]),i.qOj]}),t})(),nt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),it=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const st={provide:T,useExisting:(0,i.Gpc)(()=>rt)};let rt=(()=>{class t extends T{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(L(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return I(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){R(t.control||null,t,!1),U(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,B(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(R(e||null,t),n instanceof W&&(I(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);N(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return L(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){M(this.form,this),this._oldForm&&L(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h,10),i.Y36(d,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([st]),i.qOj,i.TTD]}),t})();const ot={provide:h,useExisting:(0,i.Gpc)(()=>lt),multi:!0},at={provide:h,useExisting:(0,i.Gpc)(()=>ct),multi:!0};let lt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?function(t){return function(t){return null==t||0===t.length}(t.value)?{required:!0}:null}(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[i._Bn([ot])]}),t})(),ct=(()=>{class t extends lt{validate(t){return this.required?function(t){return!0===t.value?null:{required:!0}}(t):null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},features:[i._Bn([at]),i.qOj]}),t})(),ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[it]]}),t})(),ht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[ut]}),t})()},1095:function(t,e,n){"use strict";n.d(e,{zs:function(){return p},lW:function(){return d},ot:function(){return f}});var i=n(2458),s=n(6237),r=n(3018),o=n(9238);const a=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",u=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],h=(0,i.pj)((0,i.Id)((0,i.Kr)(class{constructor(t){this._elementRef=t}})));let d=(()=>{class t extends h{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of u)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(o.tE),r.Y36(s.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&r.Gf(i.wG,5),2&t){let t;r.iGM(t=r.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(r.uIk("disabled",e.disabled||null),r.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1),r._UZ(3,"span",2)),2&t&&(r.xp6(2),r.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[c],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t extends d{constructor(t,e,n){super(e,t,n)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(o.tE),r.Y36(r.SBq),r.Y36(s.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._haltDisabledEvents(t)}),2&t&&(r.uIk("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),r.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[r.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1),r._UZ(3,"span",2)),2&t&&(r.xp6(2),r.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[c],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[i.si,i.BQ],i.BQ]}),t})()},2458:function(t,e,n){"use strict";n.d(e,{rD:function(){return S},K7:function(){return q},HF:function(){return N},BQ:function(){return b},ey:function(){return z},Ng:function(){return K},wG:function(){return D},si:function(){return M},CB:function(){return Y},jH:function(){return G},pj:function(){return w},Kr:function(){return C},Id:function(){return v},FD:function(){return E},sb:function(){return x}});var i=n(3018),s=n(9238),r=n(946);const o=new i.GfV("12.2.4");var a=n(8583),l=n(9490),c=n(9765),u=n(521),h=n(6237),d=n(6461);function p(t,e){if(1&t&&i._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=i.oxw();i.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function f(t,e){if(1&t&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.hij("(",t.group.label,")")}}const m=["*"],g=new i.GfV("12.2.4"),_=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let y,b=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checkIsEnabled(t){return!(!(0,i.X6Q)()||this._isTestEnv())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&g.full!==o.full&&console.warn("The Angular Material version ("+g.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.qm),i.LFG(_,8),i.LFG(a.K0))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[r.vT],r.vT]}),t})();function v(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}}}function w(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function C(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,l.Ig)(t)}}}function x(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?(0,l.su)(t):this.defaultTabIndex}}}function E(t){return class extends t{constructor(...t){super(...t),this.stateChanges=new c.xQ,this.errorState=!1}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}try{y="undefined"!=typeof Intl}catch($){y=!1}let S=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();class k{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const O={enterDuration:225,exitDuration:150},T=(0,u.i$)({passive:!0}),A=["mousedown","touchstart"],P=["mouseup","mouseleave","touchend","touchcancel"];class I{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=(0,l.fI)(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},O),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new k(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,!n.persistent&&(!t||!this._isPointerDown)&&u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},O),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=(0,l.fI)(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(A))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(P),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=(0,s.X6)(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,T)})})}_removeTriggerEvents(){this._triggerElement&&(A.forEach(t=>{this._triggerElement.removeEventListener(t,this,T)}),this._pointerUpEventsRegistered&&P.forEach(t=>{this._triggerElement.removeEventListener(t,this,T)}))}}const R=new i.OlP("mat-ripple-global-options");let D=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new I(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(u.t4),i.Y36(R,8),i.Y36(h.Qb,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[b,u.ud],b]}),t})(),L=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h.Qb,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[b]]}),t})();const N=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),B=v(class{});let U=0,Z=(()=>{class t extends B{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+U++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(N,8))},t.\u0275dir=i.lG2({type:t,inputs:{label:"label"},features:[i.qOj]}),t})();const q=new i.OlP("MatOptgroup");let j=0;class V{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let H=(()=>{class t{constructor(t,e,n,s){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+j++,this.onSelectionChange=new i.vpe,this._stateChanges=new c.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===d.K5||t.keyCode===d.L_)&&!(0,d.Vb)(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new V(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(void 0),i.Y36(Z))},t.\u0275dir=i.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),z=(()=>{class t extends H{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(N,8),i.Y36(q,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(i.Ikx("id",e.id),i.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:m,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,p,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,f,2,1,"span",2),i._UZ(4,"div",3)),2&t&&(i.Q6J("ngIf",e.multiple),i.xp6(3),i.Q6J("ngIf",e.group&&e.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.O5,D,L],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function Y(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;en+i?Math.max(0,t-i+e):n}let K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[M,a.ez,b,F]]}),t})()},2238:function(t,e,n){"use strict";n.d(e,{WI:function(){return O},uw:function(){return R},H8:function(){return N},ZT:function(){return M},xY:function(){return F},Is:function(){return U},so:function(){return S},uh:function(){return L}});var i=n(625),s=n(7636),r=n(3018),o=n(2458),a=n(946),l=n(8583),c=n(9765),u=n(1439),h=n(5917),d=n(5435),p=n(5257),f=n(9761),m=n(521),g=n(7238),_=n(6461),y=n(9238);function b(t,e){}class v{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const w={dialogContainer:(0,g.X$)("dialogContainer",[(0,g.SB)("void, exit",(0,g.oB)({opacity:0,transform:"scale(0.7)"})),(0,g.SB)("enter",(0,g.oB)({transform:"none"})),(0,g.eR)("* => enter",(0,g.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,g.oB)({transform:"none",opacity:1}))),(0,g.eR)("* => void, * => exit",(0,g.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,g.oB)({opacity:0})))])};let C=(()=>{class t extends s.en{constructor(t,e,n,i,s,o){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=s,this._focusMonitor=o,this._animationStateChanged=new r.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=(0,m.ht)(),n=this._elementRef.nativeElement;(!e||e===this._document.body||e===n||n.contains(e))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,m.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=(0,m.ht)();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(y.qV),r.Y36(r.sBO),r.Y36(l.K0,8),r.Y36(v),r.Y36(y.tE))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&r.Gf(s.Pl,7),2&t){let t;r.iGM(t=r.CRH())&&(e._portalOutlet=t.first)}},features:[r.qOj]}),t})(),x=(()=>{class t extends C{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&r.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(r.Ikx("id",e._id),r.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),r.d8E("@dialogContainer",e._state))},features:[r.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&r.YNc(0,b,0,0,"ng-template",0)},directives:[s.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[w.dialogContainer]}}),t})(),E=0;class S{constructor(t,e,n="mat-dialog-"+E++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new c.xQ,this._afterClosed=new c.xQ,this._beforeClosed=new c.xQ,this._state=0,e._id=n,e._animationStateChanged.pipe((0,d.h)(t=>"opened"===t.state),(0,p.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,d.h)(t=>"closed"===t.state),(0,p.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,d.h)(t=>t.keyCode===_.hY&&!this.disableClose&&!(0,_.Vb)(t))).subscribe(t=>{t.preventDefault(),k(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():k(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,d.h)(t=>"closing"===t.state),(0,p.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function k(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const O=new r.OlP("MatDialogData"),T=new r.OlP("mat-dialog-default-options"),A=new r.OlP("mat-dialog-scroll-strategy"),P={provide:A,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.block()}};let I=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new c.xQ,this._afterOpenedAtThisLevel=new c.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,u.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,f.O)(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new v)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),s=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=r.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:v,useValue:e}]}),i=new s.C5(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const o=new this._dialogRefConstructor(n,e,i.id);if(t instanceof r.Rgc)e.attachTemplatePortal(new s.UE(t,null,{$implicit:i.data,dialogRef:o}));else{const n=this._createInjector(i,o,e),r=e.attachComponentPortal(new s.C5(t,i.viewContainerRef,n));o.componentInstance=r.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return t.direction&&(!i||!i.get(a.Is,null,r.XFs.Optional))&&s.push({provide:a.Is,useValue:{value:t.direction,change:(0,h.of)()}}),r.zs3.create({parent:i||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i!==t&&"SCRIPT"!==i.nodeName&&"STYLE"!==i.nodeName&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(i.aV),r.Y36(r.zs3),r.Y36(void 0),r.Y36(void 0),r.Y36(i.Xj),r.Y36(void 0),r.Y36(r.DyG),r.Y36(r.DyG),r.Y36(r.OlP))},t.\u0275dir=r.lG2({type:t}),t})(),R=(()=>{class t extends I{constructor(t,e,n,i,s,r,o){super(t,e,i,r,o,s,S,x,O)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.aV),r.LFG(r.zs3),r.LFG(l.Ye,8),r.LFG(T,8),r.LFG(A),r.LFG(t,12),r.LFG(i.Xj))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),D=0,M=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=B(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){k(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(S,8),r.Y36(r.SBq),r.Y36(R))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._onButtonClick(t)}),2&t&&r.uIk("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[r.TTD]}),t})(),L=(()=>{class t{constructor(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+D++}ngOnInit(){this._dialogRef||(this._dialogRef=B(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(S,8),r.Y36(r.SBq),r.Y36(R))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&r.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function B(t,e){let n=t.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(t=>t.id===n.id):null}let U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[R,P],imports:[[i.U8,s.eL,o.BQ],o.BQ]}),t})()},8295:function(t,e,n){"use strict";n.d(e,{G_:function(){return G},o2:function(){return Y},KE:function(){return K},Eo:function(){return N},lN:function(){return $},hX:function(){return U},R9:function(){return V}});var i=n(8553),s=n(8583),r=n(3018),o=n(2458),a=n(9490),l=n(9765),c=n(6682),u=n(2759),h=n(9761),d=n(6782),p=n(5257),f=n(7238),m=n(6237),g=n(946),_=n(521);const y=["underline"],b=["connectionContainer"],v=["inputContainer"],w=["label"];function C(t,e){1&t&&(r.ynx(0),r.TgZ(1,"div",14),r._UZ(2,"div",15),r._UZ(3,"div",16),r._UZ(4,"div",17),r.qZA(),r.TgZ(5,"div",18),r._UZ(6,"div",15),r._UZ(7,"div",16),r._UZ(8,"div",17),r.qZA(),r.BQk())}function x(t,e){1&t&&(r.TgZ(0,"div",19),r.Hsn(1,1),r.qZA())}function E(t,e){if(1&t&&(r.ynx(0),r.Hsn(1,2),r.TgZ(2,"span"),r._uU(3),r.qZA(),r.BQk()),2&t){const t=r.oxw(2);r.xp6(3),r.Oqu(t._control.placeholder)}}function S(t,e){1&t&&r.Hsn(0,3,["*ngSwitchCase","true"])}function k(t,e){1&t&&(r.TgZ(0,"span",23),r._uU(1," *"),r.qZA())}function O(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"label",20,21),r.NdJ("cdkObserveContent",function(){return r.CHM(t),r.oxw().updateOutlineGap()}),r.YNc(2,E,4,1,"ng-container",12),r.YNc(3,S,1,0,"ng-content",12),r.YNc(4,k,2,0,"span",22),r.qZA()}if(2&t){const t=r.oxw();r.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),r.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),r.uIk("for",t._control.id)("aria-owns",t._control.id),r.xp6(2),r.Q6J("ngSwitchCase",!1),r.xp6(1),r.Q6J("ngSwitchCase",!0),r.xp6(1),r.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function T(t,e){1&t&&(r.TgZ(0,"div",24),r.Hsn(1,4),r.qZA())}function A(t,e){if(1&t&&(r.TgZ(0,"div",25,26),r._UZ(2,"span",27),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function P(t,e){if(1&t&&(r.TgZ(0,"div"),r.Hsn(1,5),r.qZA()),2&t){const t=r.oxw();r.Q6J("@transitionMessages",t._subscriptAnimationState)}}function I(t,e){if(1&t&&(r.TgZ(0,"div",31),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.Q6J("id",t._hintLabelId),r.xp6(1),r.Oqu(t.hintLabel)}}function R(t,e){if(1&t&&(r.TgZ(0,"div",28),r.YNc(1,I,2,2,"div",29),r.Hsn(2,6),r._UZ(3,"div",30),r.Hsn(4,7),r.qZA()),2&t){const t=r.oxw();r.Q6J("@transitionMessages",t._subscriptAnimationState),r.xp6(1),r.Q6J("ngIf",t.hintLabel)}}const D=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],M=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],L=new r.OlP("MatError"),F={transitionMessages:(0,f.X$)("transitionMessages",[(0,f.SB)("enter",(0,f.oB)({opacity:1,transform:"translateY(0%)"})),(0,f.eR)("void => enter",[(0,f.oB)({opacity:0,transform:"translateY(-5px)"}),(0,f.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t}),t})();const B=new r.OlP("MatHint");let U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-label"]]}),t})(),Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const q=new r.OlP("MatPrefix"),j=new r.OlP("MatSuffix");let V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","matSuffix",""]],features:[r._Bn([{provide:j,useExisting:t}])]}),t})(),H=0;const z=(0,o.pj)(class{constructor(t){this._elementRef=t}},"primary"),Y=new r.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),G=new r.OlP("MatFormField");let K=(()=>{class t extends z{constructor(t,e,n,i,s,r,o,a){super(t),this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+H++,this._labelId="mat-form-field-label-"+H++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=(0,a.Ig)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe((0,h.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,d.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,c.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,u.R)(this._label.nativeElement,"transitionend").pipe((0,p.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[s.ez,o.BQ,i.Q8],o.BQ]}),t})()},9983:function(t,e,n){"use strict";n.d(e,{Nt:function(){return y},c:function(){return b}});var i=n(521),s=n(3018),r=n(9490),o=n(9193),a=n(9765);n(2759),n(628),n(6782),n(8583);const l=(0,i.i$)({passive:!0});let c=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return o.E;const e=(0,r.fI)(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new a.xQ,s="cdk-text-field-autofilled",c=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",c,l),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",c,l)}}),i}stopMonitoring(t){const e=(0,r.fI)(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.t4),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.t4),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ud]]}),t})();var h=n(2458),d=n(8295),p=n(665);const f=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),m=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g=0;const _=(0,h.FD)(class{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}});let y=(()=>{class t extends _{constructor(t,e,n,s,r,o,l,c,u,h){super(o,s,r,n),this._elementRef=t,this._platform=e,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+g++,this.focused=!1,this.stateChanges=new a.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>(0,i.qK)().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=l||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&u.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;!e.value&&0===e.selectionStart&&0===e.selectionEnd&&(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&(0,i.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=(0,r.Ig)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){m.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(i.t4),s.Y36(p.a5,10),s.Y36(p.F,8),s.Y36(p.sg,8),s.Y36(h.rD),s.Y36(f,10),s.Y36(c),s.Y36(s.R0b),s.Y36(d.G_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),s.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s._Bn([{provide:d.Eo,useExisting:t}]),s.qOj,s.TTD]}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[h.rD],imports:[[u,d.lN,h.BQ],u,d.lN]}),t})()},7441:function(t,e,n){"use strict";n.d(e,{gD:function(){return H},LD:function(){return z}});var i=n(625),s=n(8583),r=n(3018),o=n(2458),a=n(8295),l=n(9243),c=n(9238),u=n(9490),h=n(8345),d=n(6461),p=n(9765),f=n(1439),m=n(6682),g=n(9761),_=n(3190),y=n(5257),b=n(5435),v=n(8002),w=n(7519),C=n(6782),x=n(7238),E=n(946),S=n(665);const k=["trigger"],O=["panel"];function T(t,e){if(1&t&&(r.TgZ(0,"span",8),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.placeholder)}}function A(t,e){if(1&t&&(r.TgZ(0,"span",12),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Oqu(t.triggerValue)}}function P(t,e){1&t&&r.Hsn(0,0,["*ngSwitchCase","true"])}function I(t,e){if(1&t&&(r.TgZ(0,"span",9),r.YNc(1,A,2,1,"span",10),r.YNc(2,P,1,0,"ng-content",11),r.qZA()),2&t){const t=r.oxw();r.Q6J("ngSwitch",!!t.customTrigger),r.xp6(2),r.Q6J("ngSwitchCase",!0)}}function R(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",13),r.TgZ(1,"div",14,15),r.NdJ("@transformPanel.done",function(e){return r.CHM(t),r.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return r.CHM(t),r.oxw()._handleKeydown(e)}),r.Hsn(3,1),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@transformPanelWrap",void 0),r.xp6(1),r.Gre("mat-select-panel ",t._getPanelTheme(),""),r.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),r.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),r.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const D=[[["mat-select-trigger"]],"*"],M=["mat-select-trigger","*"],L={transformPanelWrap:(0,x.X$)("transformPanelWrap",[(0,x.eR)("* => void",(0,x.IO)("@transformPanel",[(0,x.pV)()],{optional:!0}))]),transformPanel:(0,x.X$)("transformPanel",[(0,x.SB)("void",(0,x.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,x.SB)("showing",(0,x.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,x.SB)("showing-multiple",(0,x.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,x.eR)("void => *",(0,x.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,x.eR)("* => void",(0,x.jt)("100ms 25ms linear",(0,x.oB)({opacity:0})))])};let F=0;const N=new r.OlP("mat-select-scroll-strategy"),B=new r.OlP("MAT_SELECT_CONFIG"),U={provide:N,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class Z{constructor(t,e){this.source=t,this.value=e}}const q=(0,o.Kr)((0,o.sb)((0,o.Id)((0,o.FD)(class{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}})))),j=new r.OlP("MatSelectTrigger");let V=(()=>{class t extends q{constructor(t,e,n,i,s,o,a,l,c,u,h,d,w,C){var x,E,S;super(s,i,a,l,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=o,this._parentFormField=c,this._liveAnnouncer=w,this._defaultOptions=C,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+F++,this._triggerAriaLabelledBy=null,this._destroy=new p.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+F++,this._panelDoneAnimatingStream=new p.xQ,this._overlayPanelClass=(null===(x=this._defaultOptions)||void 0===x?void 0:x.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(S=null===(E=this._defaultOptions)||void 0===E?void 0:E.disableOptionCentering)&&void 0!==S&&S,this.ariaLabel="",this.optionSelectionChanges=(0,f.P)(()=>{const t=this.options;return t?t.changes.pipe((0,g.O)(t),(0,_.w)(()=>(0,m.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,y.q)(1),(0,_.w)(()=>this.optionSelectionChanges))}),this.openedChange=new r.vpe,this._openedStream=this.openedChange.pipe((0,b.h)(t=>t),(0,v.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,b.h)(t=>!t),(0,v.U)(()=>{})),this.selectionChange=new r.vpe,this.valueChange=new r.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==C?void 0:C.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=C.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=(0,u.Ig)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,u.Ig)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=(0,u.Ig)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=(0,u.su)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,w.x)(),(0,C.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,C.R)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe((0,g.O)(null),(0,C.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=e===d.JH||e===d.LH||e===d.oh||e===d.SV,i=e===d.K5||e===d.L_,s=this._keyManager;if(!s.isTyping()&&i&&!(0,d.Vb)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=n===d.JH||n===d.LH,s=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(s||n!==d.K5&&n!==d.L_||!e.activeItem||(0,d.Vb)(t))if(!s&&this._multiple&&n===d.A&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,y.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new c.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,C.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,C.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=(0,m.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,C.R)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,m.T)(...this.options.map(t=>t._stateChanges)).pipe((0,C.R)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(l.rL),r.Y36(r.sBO),r.Y36(r.R0b),r.Y36(o.rD),r.Y36(r.SBq),r.Y36(E.Is,8),r.Y36(S.F,8),r.Y36(S.sg,8),r.Y36(a.G_,8),r.Y36(S.a5,10),r.$8M("tabindex"),r.Y36(N),r.Y36(c.Kd),r.Y36(B,8))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&(r.Gf(k,5),r.Gf(O,5),r.Gf(i.pI,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.trigger=t.first),r.iGM(t=r.CRH())&&(e.panel=t.first),r.iGM(t=r.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[r.qOj,r.TTD]}),t})(),H=(()=>{class t extends V{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,C.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,y.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=(0,o.CB)(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=0===t&&1===e?0:(0,o.jH)((t+e)*n,n,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new Z(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),o=t.right+s-e.width+(n?0:i);r>0?s+=r+8:o>0&&(s-=o+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(256/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>i?this._adjustPanelDown(r,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=(0,o.CB)(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(r.Suo(n,j,5),r.Suo(n,o.ey,5),r.Suo(n,o.K7,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.customTrigger=t.first),r.iGM(t=r.CRH())&&(e.options=t),r.iGM(t=r.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&r.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(r.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),r.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[r._Bn([{provide:a.Eo,useExisting:t},{provide:o.HF,useExisting:t}]),r.qOj],ngContentSelectors:M,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(r.F$t(D),r.TgZ(0,"div",0,1),r.NdJ("click",function(){return e.toggle()}),r.TgZ(3,"div",2),r.YNc(4,T,2,1,"span",3),r.YNc(5,I,3,2,"span",4),r.qZA(),r.TgZ(6,"div",5),r._UZ(7,"div",6),r.qZA(),r.qZA(),r.YNc(8,R,4,14,"ng-template",7),r.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=r.MAs(1);r.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),r.xp6(3),r.Q6J("ngSwitch",e.empty),r.uIk("id",e._valueId),r.xp6(1),r.Q6J("ngSwitchCase",!0),r.xp6(1),r.Q6J("ngSwitchCase",!1),r.xp6(3),r.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[i.xu,s.RF,s.n9,i.pI,s.ED,s.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[L.transformPanelWrap,L.transformPanel]},changeDetection:0}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[U],imports:[[s.ez,i.U8,o.Ng,o.BQ],l.ZD,a.lN,o.Ng,o.BQ]}),t})()},6237:function(t,e,n){"use strict";n.d(e,{Qb:function(){return De},PW:function(){return Ne}});var i=n(3018),s=n(9075),r=n(7238);function o(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function l(t){switch(t.length){case 0:return new r.ZN;case 1:return t[0];default:return new r.ZE(t)}}function c(t,e,n,i,s={},o={}){const a=[],l=[];let c=-1,u=null;if(i.forEach(t=>{const n=t.offset,i=n==c,h=i&&u||{};Object.keys(t).forEach(n=>{let i=n,l=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),l){case r.k1:l=s[n];break;case r.l3:l=o[n];break;default:l=e.normalizeStyleValue(n,i,l,a)}h[i]=l}),i||l.push(h),u=h,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function u(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&h(n,"start",t)));break;case"done":t.onDone(()=>i(n&&h(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&h(n,"destroy",t)))}}function h(t,e,n){const i=n.totalTime,s=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function d(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function p(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function f(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let m=(t,e)=>!1,g=(t,e)=>!1,_=(t,e,n)=>[];const y=a();(y||"undefined"!=typeof Element)&&(m=o()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),g=(()=>{if(y||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):g}})(),_=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let k=(()=>{class t{validateStyleProperty(t){return w(t)}matchesElement(t,e){return C(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,o=[],a){return new r.ZN(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class O{}O.NOOP=new k;const T="ng-enter",A="ng-leave",P="ng-trigger",I=".ng-trigger",R="ng-animating",D=".ng-animating";function M(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:L(parseFloat(e[1]),e[2])}function L(t,e){switch(e){case"s":return 1e3*t;default:return t}}function F(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=L(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=L(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function N(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function B(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else N(t,n);return n}function U(t,e,n){return n?e+":"+n+";":""}function Z(t){let e="";for(let n=0;n{const s=$(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),a()&&Z(t))}function j(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=$(e);t.style[n]=""}),a()&&Z(t))}function V(t){return Array.isArray(t)?1==t.length?t[0]:(0,r.vP)(t):t}const H=new RegExp("{{\\s*(.+?)\\s*}}","g");function z(t){let e=[];if("string"==typeof t){let n;for(;n=H.exec(t);)e.push(n[1]);H.lastIndex=0}return e}function Y(t,e,n){const i=t.toString(),s=i.replace(H,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),s=""),s.toString()});return s==i?t:s}function G(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const K=/-+([a-z0-9])/g;function $(t){return t.replace(K,(...t)=>t[1].toUpperCase())}function W(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Q(t,e){return 0===t||0===e}function J(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(st(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&e.push(st(o,s))}(t,n,e)):n.push(t),n}const nt=new Set(["true","1"]),it=new Set(["false","0"]);function st(t,e){const n=nt.has(t)||it.has(t),i=nt.has(e)||it.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?nt.has(t):it.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?nt.has(e):it.has(e)),o&&a}}const rt=new RegExp("s*:selfs*,?","g");function ot(t,e,n){return new at(t).build(e,n)}class at{constructor(t){this._driver=t}build(t,e){const n=new lt(e);return this._resetContextStyleTimingState(n),X(this,V(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(ct(t)){const e=t;Object.keys(e).forEach(t=>{z(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=G(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=X(this,V(t.animation),e);return{type:1,matchers:et(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:ut(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>X(this,t,e)),options:ut(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=X(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:ut(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return ht(F(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ht(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||F(i,e),ht(n.duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let i,s=t.styles?t.styles:(0,r.oB)({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};n.easing&&(t.easing=n.easing),s=(0,r.oB)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(s,e);a.isEmptyStep=o,i=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==r.l3?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(ct(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=z(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c0&&i{const r=u>0?i==h?1:u*i:s[i],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:X(this,V(t.animation),e),options:ut(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ut(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ut(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(rt,"")),[t=t.replace(/@\*/g,I).replace(/@\w+/g,t=>I+"-"+t.substr(1)).replace(/:animating/g,D),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,p(e.collectedStyles,e.currentQuerySelector,{});const o=X(this,V(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:ut(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:F(t.timings,e.errors,!0);return{type:12,animation:X(this,V(t.animation),e),timings:n,options:null}}}class lt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ct(t){return!Array.isArray(t)&&"object"==typeof t}function ut(t){return t?(t=N(t)).params&&(t.params=function(t){return t?N(t):null}(t.params)):t={},t}function ht(t,e,n){return{duration:t,delay:e,easing:n}}function dt(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class pt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ft=new RegExp(":enter","g"),mt=new RegExp(":leave","g");function gt(t,e,n,i,s,r={},o={},a,l,c=[]){return(new _t).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class _t{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new pt;const u=new bt(t,e,l,i,s,c,[]);u.options=a,u.currentTimeline.setStyles([r],null,u.errors,a),X(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[dt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?M(n.duration):null,r=null!=n.delay?M(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),X(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=yt);const t=M(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>X(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?M(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),X(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return F(e.params?Y(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?M(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=yt);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),X(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;X(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const yt={};class bt{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new vt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=M(n.duration)),null!=n.delay&&(i.delay=M(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{(!e||!t.hasOwnProperty(n))&&(t[n]=Y(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new bt(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=yt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new wt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(ft,"."+this._enterClassName)).replace(mt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return!s&&0==o.length&&r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class vt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new vt(this._driver,t,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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||r.l3,this._currentKeyframe[t]=r.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},o=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=r.l3})):B(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=Y(o[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:r.l3),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,o)=>{const a=B(s,!0);Object.keys(a).forEach(n=>{const i=a[n];i==r.k1?t.add(n):i==r.l3&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const s=t.size?G(t.values()):[],o=e.size?G(e.values()):[];if(n){const t=i[0],e=N(t);t.offset=0,e.offset=1,i=[t,e]}return dt(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class wt extends vt{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=B(t[0],!1);a.offset=0,s.push(a);const l=B(t[0],!1);l.offset=Ct(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=B(t[i],!1);o.offset=Ct((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return dt(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function Ct(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class xt{}class Et extends xt{normalizePropertyName(t,e){return $(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(St[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const St=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function kt(t,e,n,i,s,r,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const Ot={};class Tt{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||Ot,d=this.buildStyles(n,o&&o.params||Ot,u),f=a&&a.params||Ot,m=this.buildStyles(i,f,u),g=new Set,_=new Map,y=new Map,b="void"===i,v={params:Object.assign(Object.assign({},h),f)},w=c?[]:gt(t,e,this.ast.animation,s,r,d,m,v,l,u);let C=0;if(w.forEach(t=>{C=Math.max(t.duration+t.delay,C)}),u.length)return kt(e,this._triggerName,n,i,b,d,m,[],[],_,y,C,u);w.forEach(t=>{const n=t.element,i=p(_,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=p(y,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&g.add(n)});const x=G(g.values());return kt(e,this._triggerName,n,i,b,d,m,w,x,_,y,C)}}class At{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},i=N(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Y(r,i,e));const o=this.normalizer.normalizePropertyName(t,e);r=this.normalizer.normalizeStyleValue(t,o,r,e),n[o]=r})}}),n}}class Pt{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new At(t.style,t.options&&t.options.params||{},n)}),It(this.states,"true","1"),It(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Tt(t,e,this.states))}),this.fallbackTransition=function(t,e,n){return new Tt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},e)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function It(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Rt=new pt;class Dt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=ot(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=c(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let o;const a=new Map;if(s?(o=gt(this._driver,e,s,T,A,{},{},n,Rt,i),o.forEach(t=>{const e=p(a,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);a.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,r.l3)})});const c=l(o.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const s=d(e,"","","");return u(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Mt="ng-animate-queued",Lt="ng-animate-disabled",Ft=".ng-animate-disabled",Nt=[],Bt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ut={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zt="__ng_removed";class qt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=N(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const jt="void",Vt=new qt(jt);class Ht{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Jt(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=p(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=p(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Jt(t,P),Jt(t,P+"-"+e),a[e]=Vt),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new Yt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Jt(t,P),Jt(t,P+"-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new qt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Vt),l.value!==jt&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s{j(t,n),q(t,i)})}return}const c=p(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:r,isFallbackTransition:h}),h||(Jt(t,Mt),r.onStart(()=>{Xt(t,Mt)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,I,!0);n.forEach(t=>{if(t[Zt])return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,jt,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&l(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const s=e.name;if(i.has(s))return;i.add(s);const r=this._triggers[s].fallbackTransition,o=n[s]||Vt,a=new qt(jt),l=new Yt(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t[Zt];(!i||i===Bt)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Jt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=d(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,u(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class zt{constructor(t,e,n){this.bodyNode=t,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Ht(t,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[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Jt(t,Lt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Xt(t,Lt))}removeNode(t,e,n,i){if(Gt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e[Zt]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Gt(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,I,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,D,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return l(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Zt];if(e&&e.setForRemoval){if(t[Zt]=Bt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Ft)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Ft,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?l(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new pt,i=[],s=new Map,o=[],a=new Map,c=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n=T+_++;g.set(e,n),t.forEach(t=>Jt(t,n))});const y=[],b=new Set,v=new Set;for(let r=0;rb.add(t)):v.add(t))}const w=new Map,C=Wt(f,Array.from(b));C.forEach((t,e)=>{const n=A+_++;w.set(e,n),t.forEach(t=>Jt(t,n))}),t.push(()=>{m.forEach((t,e)=>{const n=g.get(e);t.forEach(t=>Xt(t,n))}),C.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Xt(t,n))}),y.forEach(t=>{this.processLeaveNode(t)})});const x=[],E=[];for(let r=this._namespaceList.length-1;r>=0;r--)this._namespaceList[r].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(x.push(e),this.collectedEnterElements.length){const t=s[Zt];if(t&&t.setForMove)return void e.destroy()}const r=!d||!this.driver.containsElement(d,s),l=w.get(s),h=g.get(s),f=this._buildInstruction(t,n,h,l,r);if(f.errors&&f.errors.length)E.push(f);else{if(r)return e.onStart(()=>j(s,f.fromStyles)),e.onDestroy(()=>q(s,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>j(s,f.fromStyles)),e.onDestroy(()=>q(s,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),o.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>p(a,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(E.length){const t=[];E.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),x.forEach(t=>t.destroy()),this.reportError(t)}const S=new Map,k=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(k.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,S))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{p(S,e,[]).push(t),t.destroy()})});const O=y.filter(t=>ne(t,c,u)),P=new Map;$t(P,this.driver,v,u,r.l3).forEach(t=>{ne(t,c,u)&&O.push(t)});const I=new Map;m.forEach((t,e)=>{$t(I,this.driver,new Set(t),c,r.k1)}),O.forEach(t=>{const e=P.get(t),n=I.get(t);P.set(t,Object.assign(Object.assign({},e),n))});const R=[],M=[],L={};o.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(h.has(e))return r.onDestroy(()=>q(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=L;if(k.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=k.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>k.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,S,s,I,P);if(r.setRealPlayer(n),t===L)R.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=l(e)),i.push(r)}}else j(e,o.fromStyles),r.onDestroy(()=>q(e,o.toStyles)),M.push(r),h.has(e)&&i.push(r)}),M.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=l(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let r=0;r!t.destroyed);i.length?te(this,t,i):this.processLeaveNode(t)}return y.length=0,R.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),R}elementContainsData(t,e){let n=!1;const i=e[Zt];return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==jt;e.forEach(e=>{e.queued||!t&&e.triggerName!=i||r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=p(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}j(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,o){const a=e.triggerName,u=e.element,h=[],d=new Set,f=new Set,m=e.timelines.map(e=>{const l=e.element;d.add(l);const p=l[Zt];if(p&&p.removedBeforeQueried)return new r.ZN(e.duration,e.delay);const m=l!==u,g=function(t){const e=[];return ee(t,e),e}((n.get(l)||Nt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===l),_=s.get(l),y=o.get(l),b=c(0,this._normalizer,0,e.keyframes,_,y),v=this._buildPlayer(e,b,g);if(e.subTimeline&&i&&f.add(l),m){const e=new Yt(t,a,l);e.setRealPlayer(v),h.push(e)}return v});h.forEach(t=>{p(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),d.forEach(t=>Jt(t,R));const g=l(m);return g.onDestroy(()=>{d.forEach(t=>Xt(t,R)),q(u,e.toStyles)}),f.forEach(t=>{p(i,t,[]).push(g)}),g}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new r.ZN(t.duration,t.delay)}}class Yt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new r.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>u(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){p(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Gt(t){return t&&1===t.nodeType}function Kt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function $t(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Kt(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);(!n||0==n.length)&&(i[Zt]=Ut,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Kt(t,r[a++])),o}function Wt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}const Qt="$$classes";function Jt(t,e){if(t.classList)t.classList.add(e);else{let n=t[Qt];n||(n=t[Qt]={}),n[e]=!0}}function Xt(t,e){if(t.classList)t.classList.remove(e);else{let n=t[Qt];n&&delete n[e]}}function te(t,e,n){l(n).onDone(()=>t.processLeaveNode(e))}function ee(t,e){for(let n=0;ns.add(t)):e.set(t,i),n.delete(t),!0}class ie{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new zt(t,e,n),this._timelineEngine=new Dt(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=ot(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e,n){return new Pt(t,e,n)}(i,e,this._normalizer),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=f(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=f(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function se(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=oe(e[0]),e.length>1&&(i=oe(e[e.length-1]))):e&&(n=oe(e)),n||i?new re(t,n,i):null}class re{constructor(t,e,n){this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;let i=re.initialStylesByElement.get(t);i||re.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(re.initialStylesByElement.delete(this._element),this._startStyles&&(j(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}function oe(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){(function(t,e){const n=ge(t,"").trim();let i=0;n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),fe(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=ge(t,"").split(","),i=pe(n,e);i>=0&&(n.splice(i,1),me(t,"",n.join(",")))}(this._element,this._name))}}function he(t,e,n){me(t,"PlayState",n,de(t,e))}function de(t,e){const n=ge(t,"");return n.indexOf(",")>0?pe(n.split(","),e):pe([n],e)}function pe(t,e){for(let n=0;n=0)return n;return-1}function fe(t,e,n){n?t.removeEventListener(ce,e):t.addEventListener(ce,e)}function me(t,e,n,i){const s=le+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function ge(t,e){return t.style[le+e]||""}class _e{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ue(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:tt(this.element,n))})}this.currentSnapshot=t}}class ye extends r.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=S(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class be{constructor(){this._count=0}validateStyleProperty(t){return w(t)}matchesElement(t,e){return C(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>S(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=`${s}}\n`}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){const a=r.filter(t=>t instanceof _e),l={};Q(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"==n||"easing"==n||(e[n]=t[n])})}),e}(e=J(t,e,l));if(0==n)return new ye(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(h);const d=se(t,e),p=new _e(t,e,u,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class ve{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,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(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:tt(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class we{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Ce().toString()),this._cssKeyframesDriver=new be}validateStyleProperty(t){return w(t)}matchesElement(t,e){return C(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof ve);Q(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=se(t,e=J(t,e=e.map(t=>B(t,!1)),l));return new ve(t,e,a,u)}}function Ce(){return o()&&Element.prototype.animate||{}}var xe=n(8583);let Ee=(()=>{class t extends r._j{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?(0,r.vP)(t):t;return Oe(this._renderer,null,e,"register",[n]),new Se(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(xe.K0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Se extends r.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new ke(this._id,t,e||{},this._renderer)}}class ke{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Oe(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Oe(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}const Te="@.disabled";let Ae=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Pe("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new Ie(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(ie),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Pe{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&e==Te?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Ie extends Pe{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==Te?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Re=(()=>{class t extends ie{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(xe.K0),i.LFG(O),i.LFG(xt))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const De=new i.OlP("AnimationModuleType"),Me=[{provide:r._j,useClass:Ee},{provide:xt,useFactory:function(){return new Et}},{provide:ie,useClass:Re},{provide:i.FYo,useFactory:function(t,e,n){return new Ae(t,e,n)},deps:[s.se,ie,i.R0b]}],Le=[{provide:O,useFactory:function(){return"function"==typeof Ce()?new we:new be}},{provide:De,useValue:"BrowserAnimations"},...Me],Fe=[{provide:O,useClass:k},{provide:De,useValue:"NoopAnimations"},...Me];let Ne=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Fe:Le}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:Le,imports:[s.b2]}),t})()},9075:function(t,e,n){"use strict";n.d(e,{b2:function(){return N},H7:function(){return D},q6:function(){return L},se:function(){return x}});var i=n(8583),s=n(3018);class r extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class o extends r{static makeCurrent(){(0,i.HT)(new o)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(l=l||document.querySelector("base"),l?l.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,i.Mx)(document.cookie,t)}}let a,l=null;const c=new s.OlP("TRANSITION_ID"),u=[{provide:s.ip1,useFactory:function(t,e,n){return()=>{n.get(s.CZH).donePromise.then(()=>{const n=(0,i.q)(),s=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let t=0;t{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?(0,i.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new s.OlP("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t extends g{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(y),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(y))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function y(t){(0,i.q)().remove(t)}const b={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},v=/%COMP%/g;function w(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let x=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new E(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new S(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case s.ifc.ShadowDom:return new k(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=w(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f),s.LFG(_),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class E{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(b[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=b[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=b[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,n,i&s.JOm.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,C(n)):this.eventManager.addEventListener(t,e,C(n))}}class S extends E{constructor(t,e,n,i){super(t),this.component=n;const s=w(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(v,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(v,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class k extends E{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=w(i.id,i.styles,[]);for(let r=0;r{class t extends m{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const T=["alt","control","meta","shift"],A={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},P={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"},I={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let R=(()=>{class t extends m{constructor(t){super(t)}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(()=>(0,i.q)().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(T.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&P.hasOwnProperty(e)&&(e=P[e]))}return A[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),T.forEach(i=>{i!=n&&I[i](t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(M)},token:t,providedIn:"root"}),t})(),M=(()=>{class t extends D{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return function(t){return new M(t.get(i.K0))}((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const L=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:i.bD},{provide:s.g9A,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),F=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:p,useClass:O,multi:!0,deps:[i.K0,s.R0b,s.Lbi]},{provide:p,useClass:R,multi:!0,deps:[i.K0]},[],{provide:x,useClass:x,deps:[f,_,s.AFp]},{provide:s.FYo,useExisting:x},{provide:g,useExisting:_},{provide:_,useClass:_,deps:[i.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:f,useClass:f,deps:[p,s.R0b]},{provide:i.JF,useClass:d,deps:[]},[]];let N=(()=>{class t{constructor(t){if(t)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:s.AFp,useValue:e.appId},{provide:c,useExisting:s.AFp},u]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:F,imports:[i.ez,s.hGG]}),t})();"undefined"!=typeof window&&window},8741:function(t,e,n){"use strict";n.d(e,{gz:function(){return se},F0:function(){return On},rH:function(){return An},yS:function(){return Pn},Bz:function(){return jn},lC:function(){return Rn}});var i=n(8583),s=n(3018);const r=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var o=n(4402),a=n(5917),l=n(6215),c=n(739),u=n(7574),h=n(8071),d=n(1439),p=n(9193),f=n(2441),m=n(9765),g=n(7393);function _(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new y(t,e,n))}}class y{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new b(t,this.accumulator,this.seed,this.hasSeed))}}class b extends g.L{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}var v=n(5345);function w(t){return function(e){const n=new C(t),i=e.lift(n);return n.caught=i}}class C{constructor(t){this.selector=t}call(t,e){return e.subscribe(new x(t,this.selector,this.caught))}}class x extends v.Ds{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new v.IY(this);this.add(i);const s=(0,v.ft)(n,i);s!==i&&this.add(s)}}}var E=n(5435),S=n(7108);function k(t){return function(e){return 0===t?(0,p.c)():e.lift(new O(t))}}class O{constructor(t){if(this.total=t,this.total<0)throw new S.W}call(t,e){return e.subscribe(new T(t,this.total))}}class T extends g.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;se.lift(new P(t))}class P{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new I(t,this.errorFactory))}}class I extends g.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function R(){return new r}function D(t=null){return e=>e.lift(new M(t))}class M{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new L(t,this.defaultValue))}}class L extends g.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var F=n(4487),N=n(5257);function B(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,E.h)((e,n)=>t(e,n,i)):F.y,(0,N.q)(1),n?D(e):A(()=>new r))}var U=n(5319);class Z{constructor(t){this.callback=t}call(t,e){return e.subscribe(new q(t,this.callback))}}class q extends g.L{constructor(t,e){super(t),this.add(new U.w(e))}}var j=n(8002),V=n(3190),H=n(9761),z=n(4612),Y=n(9773),G=n(3342),K=n(1307),$=n(3282);class W{constructor(t,e){this.id=t,this.url=e}}class Q extends W{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class J extends W{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class X extends W{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class tt extends W{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class et extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nt extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class it extends W{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class st extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rt extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ot{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class at{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class lt{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ct{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ut{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ht{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dt{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const pt="primary";class ft{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function mt(t){return new ft(t)}const gt="ngNavigationCancelingError";function _t(t){const e=Error("NavigationCancelingError: "+t);return e[gt]=!0,e}function yt(t,e,n){const i=n.path.split("/");if(i.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function wt(t){return Array.prototype.concat.apply([],t)}function Ct(t){return t.length>0?t[t.length-1]:null}function xt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Et(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,a.of)(t)}const St={exact:function t(e,n,i){if(!Mt(e.segments,n.segments)||!Pt(e.segments,n.segments,i)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const s in n.children)if(!e.children[s]||!t(e.children[s],n.children[s],i))return!1;return!0},subset:Tt},kt={exact:function(t,e){return bt(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>vt(t[n],e[n]))},ignored:()=>!0};function Ot(t,e,n){return St[n.paths](t.root,e.root,n.matrixParams)&&kt[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function Tt(t,e,n){return At(t,e,e.segments,n)}function At(t,e,n,i){if(t.segments.length>n.length){const s=t.segments.slice(0,n.length);return!(!Mt(s,n)||e.hasChildren()||!Pt(s,n,i))}if(t.segments.length===n.length){if(!Mt(t.segments,n)||!Pt(t.segments,n,i))return!1;for(const n in e.children)if(!t.children[n]||!Tt(t.children[n],e.children[n],i))return!1;return!0}{const s=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!(Mt(t.segments,s)&&Pt(t.segments,s,i)&&t.children[pt])&&At(t.children[pt],e,r,i)}}function Pt(t,e,n){return e.every((e,i)=>kt[n](t[i].parameters,e.parameters))}class It{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mt(this.queryParams)),this._queryParamMap}toString(){return Nt.serialize(this)}}class Rt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,xt(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bt(this)}}class Dt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=mt(this.parameters)),this._parameterMap}toString(){return zt(this)}}function Mt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Lt{}class Ft{parse(t){const e=new Wt(t);return new It(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${Ut(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${qt(e)}=${qt(t)}`).join("&"):`${qt(e)}=${qt(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Nt=new Ft;function Bt(t){return t.segments.map(t=>zt(t)).join("/")}function Ut(t,e){if(!t.hasChildren())return Bt(t);if(e){const e=t.children[pt]?Ut(t.children[pt],!1):"",n=[];return xt(t.children,(t,e)=>{e!==pt&&n.push(`${e}:${Ut(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return xt(t.children,(t,i)=>{i===pt&&(n=n.concat(e(t,i)))}),xt(t.children,(t,i)=>{i!==pt&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===pt?[Ut(t.children[pt],!1)]:[`${n}:${Ut(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[pt]?`${Bt(t)}/${e[0]}`:`${Bt(t)}/(${e.join("//")})`}}function Zt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qt(t){return Zt(t).replace(/%3B/gi,";")}function jt(t){return Zt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vt(t){return decodeURIComponent(t)}function Ht(t){return Vt(t.replace(/\+/g,"%20"))}function zt(t){return`${jt(t.path)}${function(t){return Object.keys(t).map(e=>`;${jt(e)}=${jt(t[e])}`).join("")}(t.parameters)}`}const Yt=/^[^\/()?;=#]+/;function Gt(t){const e=t.match(Yt);return e?e[0]:""}const Kt=/^[^=?&#]+/,$t=/^[^?&#]+/;class Wt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Rt([],{}):new Rt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[pt]=new Rt(t,e)),n}parseSegment(){const t=Gt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Dt(Vt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Gt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Gt(this.remaining);t&&(n=t,this.capture(n))}t[Vt(e)]=Vt(n)}parseQueryParam(t){const e=function(t){const e=t.match(Kt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match($t);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Ht(e),s=Ht(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Gt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=pt);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r[pt]:new Rt([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Qt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Jt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Jt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Xt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Xt(t,this._root).map(t=>t.value)}}function Jt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Jt(t,n);if(e)return e}return null}function Xt(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Xt(t,n);if(i.length)return i.unshift(e),i}return[]}class te{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function ee(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class ne extends Qt{constructor(t,e){super(t),this.snapshot=e,le(this,t)}toString(){return this.snapshot.toString()}}function ie(t,e){const n=function(t,e){const n=new oe([],{},{},"",{},pt,e,null,t.root,-1,{});return new ae("",new te(n,[]))}(t,e),i=new l.X([new Dt("",{})]),s=new l.X({}),r=new l.X({}),o=new l.X({}),a=new l.X(""),c=new se(i,s,o,a,r,pt,e,n.root);return c.snapshot=n.root,new ne(new te(c,[]),n)}class se{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}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((0,j.U)(t=>mt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,j.U)(t=>mt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function re(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class oe{constructor(t,e,n,i,s,r,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}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=mt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ae extends Qt{constructor(t,e){super(e),this.url=t,le(this,e)}toString(){return ce(this._root)}}function le(t,e){e.value._routerState=t,e.children.forEach(e=>le(t,e))}function ce(t){const e=t.children.length>0?` { ${t.children.map(ce).join(", ")} } `:"";return`${t.value}${e}`}function ue(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,bt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),bt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nbt(t.parameters,e[n].parameters))}(t.url,e.url)&&!(!t.parent!=!e.parent)&&(!t.parent||he(t.parent,e.parent))}function de(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return de(t,e,i);return de(t,e)})}(t,e,n);return new te(i,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return pe(e,t),t}}const n=function(t){return new se(new l.X(t.url),new l.X(t.params),new l.X(t.queryParams),new l.X(t.fragment),new l.X(t.data),t.outlet,t.component,t)}(e.value),i=e.children.map(e=>de(t,e));return new te(n,i)}}function pe(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new It(n.root===t?e:_e(n.root,t,e),r,s)}function _e(t,e,n){const i={};return xt(t.children,(t,s)=>{i[s]=t===e?n:_e(t,e,n)}),new Rt(t.segments,i)}class ye{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&fe(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(me);if(i&&i!==Ct(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class be{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function ve(t,e,n){if(t||(t=new Rt([],{})),0===t.segments.length&&t.hasChildren())return we(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return r;const e=t.segments[s],o=n[i];if(me(o))break;const a=`${o}`,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!Se(a,l,e))return r;i+=2}else{if(!Se(a,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(s[i]=ve(t.children[i],e,n))}),xt(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new Rt(t.segments,s)}}function Ce(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=Ce(new Rt([],{}),0,t))}),e}function Ee(t){const e={};return xt(t,(t,n)=>e[n]=`${t}`),e}function Se(t,e,n){return t==n.path&&bt(e,n.parameters)}class ke{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),ue(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=ee(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),xt(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,s=ee(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=ee(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new ht(t.value.snapshot))}),t.children.length&&this.forwardEvent(new ct(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(ue(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Oe(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Oe(t){ue(t.value),t.children.forEach(Oe)}class Te{constructor(t,e){this.routes=t,this.module=e}}function Ae(t){return"function"==typeof t}function Pe(t){return t instanceof It}const Ie=Symbol("INITIAL_VALUE");function Re(){return(0,V.w)(t=>(0,c.aj)(t.map(t=>t.pipe((0,N.q)(1),(0,H.O)(Ie)))).pipe(_((t,e)=>{let n=!1;return e.reduce((t,i,s)=>t!==Ie?t:(i===Ie&&(n=!0),n||!1!==i&&s!==e.length-1&&!Pe(i)?t:i),t)},Ie),(0,E.h)(t=>t!==Ie),(0,j.U)(t=>Pe(t)?t:!0===t),(0,N.q)(1)))}let De=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[Rn]},encapsulation:2}),t})();function Me(t,e=""){for(let n=0;nBe(t)===e);return n.push(...t.filter(t=>Be(t)!==e)),n}const Ze={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function qe(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Ze):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||yt)(n,t,e);if(!s)return Object.assign({},Ze);const r={};xt(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function je(t,e,n,i,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Ve(t,e,n)&&Be(n)!==pt)}(t,n,i)){const s=new Rt(e,function(t,e,n,i){const s={};s[pt]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&Be(r)!==pt){const n=new Rt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Be(r)]=n}return s}(t,e,i,new Rt(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Ve(t,e,n))}(t,n,i)){const r=new Rt(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(Ve(t,n,a)&&!s[Be(a)]){const n=new Rt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Be(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Rt(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Ve(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function He(t,e,n,i){return!!(Be(t)===i||i!==pt&&Ve(e,n,t))&&("**"===t.path||qe(e,t,n).matched)}function ze(t,e,n){return 0===e.length&&!t.children[n]}class Ye{constructor(t){this.segmentGroup=t||null}}class Ge{constructor(t){this.urlTree=t}}function Ke(t){return new u.y(e=>e.error(new Ye(t)))}function $e(t){return new u.y(e=>e.error(new Ge(t)))}function We(t){return new u.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Qe{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=je(this.urlTree.root,[],[],this.config).segmentGroup,e=new Rt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,pt).pipe((0,j.U)(t=>this.createUrlTree(Je(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(w(t=>{if(t instanceof Ge)return this.allowRedirects=!1,this.match(t.urlTree);throw t instanceof Ye?this.noMatchError(t):t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,pt).pipe((0,j.U)(e=>this.createUrlTree(Je(e),t.queryParams,t.fragment))).pipe(w(t=>{throw t instanceof Ye?this.noMatchError(t):t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Rt([],{[pt]:t}):t;return new It(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,j.U)(t=>new Rt([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const s of Object.keys(n.children))"primary"===s?i.unshift(s):i.push(s);return(0,o.D)(i).pipe((0,z.b)(i=>{const s=n.children[i],r=Ue(e,i);return this.expandSegmentGroup(t,r,s,i).pipe((0,j.U)(t=>({segment:t,outlet:i})))}),_((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,E.h)((e,n)=>t(e,n,i)):F.y,k(1),n?D(e):A(()=>new r))}())}expandSegment(t,e,n,i,s,l){return(0,o.D)(n).pipe((0,z.b)(r=>this.expandSegmentAgainstRoute(t,e,n,r,i,s,l).pipe(w(t=>{if(t instanceof Ye)return(0,a.of)(null);throw t}))),B(t=>!!t),w((t,n)=>{if(t instanceof r||"EmptyError"===t.name){if(ze(e,i,s))return(0,a.of)(new Rt([],{}));throw new Ye(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return He(i,e,s,r)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):Ke(e):Ke(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?$e(s):this.lineralizeSegments(n,s).pipe((0,Y.zg)(n=>{const s=new Rt(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=qe(e,i,s);if(!o)return Ke(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?$e(u):this.lineralizeSegments(i,u).pipe((0,Y.zg)(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,a.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,j.U)(t=>(n._loadedConfig=t,new Rt(i,{})))):(0,a.of)(new Rt(i,{}));const{matched:r,consumedSegments:o,lastChild:l}=qe(e,n,i);if(!r)return Ke(e);const c=i.slice(l);return this.getChildConfig(t,n,i).pipe((0,Y.zg)(t=>{const i=t.module,r=t.routes,{segmentGroup:l,slicedSegments:u}=je(e,o,c,r),h=new Rt(l.segments,l.children);if(0===u.length&&h.hasChildren())return this.expandChildren(i,r,h).pipe((0,j.U)(t=>new Rt(o,t)));if(0===r.length&&0===u.length)return(0,a.of)(new Rt(o,{}));const d=Be(n)===s;return this.expandSegment(i,h,r,u,d?pt:s,!0).pipe((0,j.U)(t=>new Rt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?(0,a.of)(new Te(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,a.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,Y.zg)(n=>{return n?this.configLoader.load(t.injector,e).pipe((0,j.U)(t=>(e._loadedConfig=t,t))):(i=e,new u.y(t=>t.error(_t(`Cannot load children because the guard of the route "path: '${i.path}'" returned false`))));var i})):(0,a.of)(new Te([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return(0,a.of)(!0);const s=i.map(i=>{const s=t.get(i);let r;if((o=s)&&Ae(o.canLoad))r=s.canLoad(e,n);else{if(!Ae(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}var o;return Et(r)});return(0,a.of)(s).pipe(Re(),(0,G.b)(t=>{if(!Pe(t))return;const e=_t(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,j.U)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,a.of)(n);if(i.numberOfChildren>1||!i.children[pt])return We(t.redirectTo);i=i.children[pt]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new It(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return xt(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return xt(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new Rt(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function Je(t){const e={};for(const n of Object.keys(t.children)){const i=Je(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children[pt]){const e=t.children[pt];return new Rt(t.segments.concat(e.segments),e.children)}return t}(new Rt(t.segments,e))}class Xe{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class tn{constructor(t,e){this.component=t,this.route=e}}function en(t,e,n){const i=t._root;return sn(i,e?e._root:null,n,[i.value])}function nn(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function sn(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=ee(e);return t.children.forEach(t=>{(function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Mt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Mt(t.url,e.url)||!bt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!he(t,e)||!bt(t.queryParams,e.queryParams);case"paramsChange":default:return!he(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Xe(i)):(r.data=o.data,r._resolvedData=o._resolvedData),sn(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new tn(a.outlet.component,o))}else o&&rn(e,a,s),s.canActivateChecks.push(new Xe(i)),sn(t,null,r.component?a?a.children:null:n,i,s)})(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),xt(r,(t,e)=>rn(t,n.getContext(e),s)),s}function rn(t,e,n){const i=ee(t),s=t.value;xt(i,(t,i)=>{rn(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new tn(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class on{}function an(t){return new u.y(e=>e.error(t))}class ln{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=je(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,pt);if(null===e)return null;const n=new oe([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},pt,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new te(n,e),s=new ae(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=re(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const i=e.children[s],r=Ue(t,s),o=this.processSegmentGroup(r,i,s);if(null===o)return null;n.push(...o)}const i=un(n);return i.sort((t,e)=>t.value.outlet===pt?-1:e.value.outlet===pt?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,i);if(null!==t)return t}return ze(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!He(t,e,n,i))return null;let s,r=[],o=[];if("**"===t.path){const i=n.length>0?Ct(n).parameters:{};s=new oe(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,pn(t),Be(t),t.component,t,hn(e),dn(e)+n.length,fn(t))}else{const i=qe(e,t,n);if(!i.matched)return null;r=i.consumedSegments,o=n.slice(i.lastChild),s=new oe(r,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,pn(t),Be(t),t.component,t,hn(e),dn(e)+r.length,fn(t))}const a=(u=t).children?u.children:u.loadChildren?u._loadedConfig.routes:[],{segmentGroup:l,slicedSegments:c}=je(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);var u;if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new te(s,t)]}if(0===a.length&&0===c.length)return[new te(s,[])];const h=Be(t)===i,d=this.processSegment(a,l,c,h?pt:i);return null===d?null:[new te(s,d)]}}function cn(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function un(t){const e=[],n=new Set;for(const i of t){if(!cn(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=un(i.children);e.push(new te(i.value,t))}return e.filter(t=>!n.has(t))}function hn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function dn(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function pn(t){return t.data||{}}function fn(t){return t.resolve||{}}function mn(t){return(0,V.w)(e=>{const n=t(e);return n?(0,o.D)(n).pipe((0,j.U)(()=>e)):(0,a.of)(e)})}class gn extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const _n=new s.OlP("ROUTES");class yn{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe((0,j.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new Te(wt(i.injector.get(_n,void 0,s.XFs.Self|s.XFs.Optional)).map(Ne),i)}),w(t=>{throw e._loader$=void 0,t}));return e._loader$=new f.c(n,()=>new m.xQ).pipe((0,K.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):Et(t()).pipe((0,Y.zg)(t=>t instanceof s.YKP?(0,a.of)(t):(0,o.D)(this.compiler.compileModuleAsync(t))))}}class bn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new vn,this.attachRef=null}}class vn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new bn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class wn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Cn(t){throw t}function xn(t,e,n){return e.parse("/")}function En(t,e){return(0,a.of)(null)}const Sn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},kn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let On=(()=>{class t{constructor(t,e,n,i,r,o,a,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new m.xQ,this.errorHandler=Cn,this.malformedUriErrorHandler=xn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:En,afterPreactivation:En},this.urlHandlingStrategy=new wn,this.routeReuseStrategy=new gn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=r.get(s.h0i),this.console=r.get(s.c2e);const u=r.get(s.R0b);this.isNgZoneEnabled=u instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new It(new Rt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new yn(o,a,t=>this.triggerEvent(new ot(t)),t=>this.triggerEvent(new at(t))),this.routerState=ie(this.currentUrlTree,this.rootComponentType),this.transitions=new l.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe((0,E.h)(t=>0!==t.id),(0,j.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,V.w)(t=>{let n=!1,i=!1;return(0,a.of)(t).pipe((0,G.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,V.w)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString(),s=("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl);if(Tn(t.source)&&(this.browserUrlTree=t.rawUrl),s)return(0,a.of)(t).pipe((0,V.w)(t=>{const n=this.transitions.getValue();return e.next(new Q(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?p.E:Promise.resolve(t)}),function(t,e,n,i){return(0,V.w)(s=>function(t,e,n,i,s){return new Qe(t,e,n,i,s).apply()}(t,e,n,s.extractedUrl,i).pipe((0,j.U)(t=>Object.assign(Object.assign({},s),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,G.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,s,r){return(0,Y.zg)(o=>function(t,e,n,s,r="emptyOnly",o="legacy"){try{const i=new ln(t,e,n,s,r,o).recognize();return null===i?an(new on):(0,a.of)(i)}catch(i){return an(i)}}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),s,r).pipe((0,j.U)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,G.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new et(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,l=new Q(n,this.serializeUrl(i),s,r);e.next(l);const c=ie(i,this.rootComponentType).snapshot;return(0,a.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.E}),mn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),(0,G.b)(t=>{const e=new nt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,j.U)(t=>Object.assign(Object.assign({},t),{guards:en(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,Y.zg)(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:l}}=n;return 0===l.length&&0===r.length?(0,a.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return(0,o.D)(t).pipe((0,Y.zg)(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return(0,a.of)(!0);const o=r.map(r=>{const o=nn(r,e,s);let a;if(function(t){return t&&Ae(t.canDeactivate)}(o))a=Et(o.canDeactivate(t,e,n,i));else{if(!Ae(o))throw new Error("Invalid CanDeactivate guard");a=Et(o(t,e,n,i))}return a.pipe(B())});return(0,a.of)(o).pipe(Re())}(t.component,t.route,n,e,i)),B(t=>!0!==t,!0))}(l,i,s,t).pipe((0,Y.zg)(n=>n&&function(t){return"boolean"==typeof t}(n)?function(t,e,n,i){return(0,o.D)(e).pipe((0,z.b)(e=>(0,h.z)(function(t,e){return null!==t&&e&&e(new lt(t)),(0,a.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new ut(t)),(0,a.of)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>(0,d.P)(()=>{const s=e.guards.map(s=>{const r=nn(s,e.node,n);let o;if(function(t){return t&&Ae(t.canActivateChild)}(r))o=Et(r.canActivateChild(i,t));else{if(!Ae(r))throw new Error("Invalid CanActivateChild guard");o=Et(r(i,t))}return o.pipe(B())});return(0,a.of)(s).pipe(Re())}));return(0,a.of)(s).pipe(Re())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return(0,a.of)(!0);const s=i.map(i=>(0,d.P)(()=>{const s=nn(i,e,n);let r;if(function(t){return t&&Ae(t.canActivate)}(s))r=Et(s.canActivate(e,t));else{if(!Ae(s))throw new Error("Invalid CanActivate guard");r=Et(s(e,t))}return r.pipe(B())}));return(0,a.of)(s).pipe(Re())}(t,e.route,n))),B(t=>!0!==t,!0))}(i,r,t,e):(0,a.of)(n)),(0,j.U)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,G.b)(t=>{if(Pe(t.guardsResult)){const e=_t(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new it(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,E.h)(t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1)),mn(t=>{if(t.guards.canActivateChecks.length)return(0,a.of)(t).pipe((0,G.b)(t=>{const e=new st(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,V.w)(t=>{let e=!1;return(0,a.of)(t).pipe(function(t,e){return(0,Y.zg)(n=>{const{targetSnapshot:i,guards:{canActivateChecks:s}}=n;if(!s.length)return(0,a.of)(n);let r=0;return(0,o.D)(s).pipe((0,z.b)(n=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return(0,a.of)({});const r={};return(0,o.D)(s).pipe((0,Y.zg)(s=>function(t,e,n,i){const s=nn(t,e,i);return Et(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe((0,G.b)(t=>{r[s]=t}))),k(1),(0,Y.zg)(()=>Object.keys(r).length===s.length?(0,a.of)(r):p.E))}(t._resolve,t,e,i).pipe((0,j.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),re(t,n).resolve),null)))}(n.route,i,t,e)),(0,G.b)(()=>r++),k(1),(0,Y.zg)(t=>r===s.length?(0,a.of)(n):p.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,G.b)({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}))}),(0,G.b)(t=>{const e=new rt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),mn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),(0,j.U)(t=>{const e=function(t,e,n){const i=de(t,e._root,n?n._root:void 0);return new ne(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,G.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),((t,e,n)=>(0,j.U)(i=>(new ke(e,i.targetRouterState,i.currentRouterState,n).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,t=>this.triggerEvent(t)),(0,G.b)({next(){n=!0},complete(){n=!0}}),function(t){return e=>e.lift(new Z(t))}(()=>{if(!n&&!i){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}this.currentNavigation=null}),w(n=>{if(i=!0,function(t){return t&&t[gt]}(n)){const i=Pe(n.url);i||(this.navigated=!0,this.restoreHistory(t,!0));const s=new X(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),i={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Tn(t.source)};this.scheduleNavigation(e,"imperative",null,i,{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.restoreHistory(t,!0);const i=new tt(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}return p.E}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return e.transitionId!==t.transitionId||!n||!("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Me(t),this.config=t.map(Ne),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(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,s){if(0===n.length)return ge(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ye(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return xt(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new ye(n,e,i)}(n);if(r.toRoot())return ge(e.root,new Rt([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new be(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new be(t,t===e.root,0)}const i=fe(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new be(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?we(o.segmentGroup,o.index,r.commands):ve(o.segmentGroup,o.index,r.commands);return ge(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Pe(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new J(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){var r,o;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l=Tn(e)&&a&&!Tn(a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&c)return Promise.resolve(!0);let u,h,d;s?(u=s.resolve,h=s.reject,d=s.promise):d=new Promise((t,e)=>{u=t,h=e});const p=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.\u0275routerPageId?n.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(r=this.browserPageId)&&void 0!==r?r:0:(null!==(o=this.browserPageId)&&void 0!==o?o:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:u,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}restoreHistory(t,e=!1){var n,i;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new X(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(Lt),s.LFG(vn),s.LFG(i.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Tn(t){return"imperative"!==t}let An=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new m.xQ,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(On),s.Y36(se),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})(),Pn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new m.xQ,this.subscription=t.events.subscribe(t=>{t instanceof J&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,s){if(0!==t||e||n||i||s||"string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(On),s.Y36(se),s.Y36(i.S$))},t.\u0275dir=s.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Ikx("href",e.href,s.LSH),s.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})();function In(t){return""===t||!!t}let Rn=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=i||pt,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.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 t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new Dn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(vn),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Dn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===se?this.route:t===vn?this.childContexts:this.parent.get(t,e)}}class Mn{}class Ln{preload(t,e){return(0,a.of)(null)}}let Fn=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new yn(e,n,e=>t.triggerEvent(new ot(e)),e=>t.triggerEvent(new at(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,E.h)(t=>t instanceof J),(0,z.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return(0,o.D)(n).pipe((0,$.J)(),(0,j.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,a.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,Y.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(On),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(Mn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Nn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Q?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof J&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof dt&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new dt(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(On),s.LFG(i.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Bn=new s.OlP("ROUTER_CONFIGURATION"),Un=new s.OlP("ROUTER_FORROOT_GUARD"),Zn=[i.Ye,{provide:Lt,useClass:Ft},{provide:On,useFactory:function(t,e,n,i,s,r,o,a={},l,c){const u=new On(null,t,e,n,i,s,r,wt(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[Lt,vn,i.Ye,s.zs3,s.v3s,s.Sil,_n,Bn,[class{},new s.FiY],[class{},new s.FiY]]},vn,{provide:se,useFactory:function(t){return t.routerState.root},deps:[On]},{provide:s.v3s,useClass:s.EAV},Fn,Ln,class{preload(t,e){return e().pipe(w(()=>(0,a.of)(null)))}},{provide:Bn,useValue:{enableTracing:!1}}];function qn(){return new s.PXZ("Router",On)}let jn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Zn,Yn(e),{provide:Un,useFactory:zn,deps:[[On,new s.FiY,new s.tp0]]},{provide:Bn,useValue:n||{}},{provide:i.S$,useFactory:Hn,deps:[i.lw,[new s.tBr(i.mr),new s.FiY],Bn]},{provide:Nn,useFactory:Vn,deps:[On,i.EM,Bn]},{provide:Mn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ln},{provide:s.PXZ,multi:!0,useFactory:qn},[Gn,{provide:s.ip1,multi:!0,useFactory:Kn,deps:[Gn]},{provide:Wn,useFactory:$n,deps:[Gn]},{provide:s.tb,multi:!0,useExisting:Wn}]]}}static forChild(e){return{ngModule:t,providers:[Yn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Un,8),s.LFG(On,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function Vn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Nn(t,e,n)}function Hn(t,e,n={}){return n.useHash?new i.Do(t,e):new i.b0(t,e)}function zn(t){return"guarded"}function Yn(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:_n,multi:!0,useValue:t}]}let Gn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new m.xQ}appInitializer(){return this.injector.get(i.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(On),i=this.injector.get(Bn);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,a.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Bn),n=this.injector.get(Fn),i=this.injector.get(Nn),r=this.injector.get(On),o=this.injector.get(s.z2F);t===o.components[0]&&(("enabledNonBlocking"===e.initialNavigation||void 0===e.initialNavigation)&&r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Kn(t){return t.appInitializer.bind(t)}function $n(t){return t.bootstrapListener.bind(t)}const Wn=new s.OlP("Router Initializer")},6215:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});var i=n(9765),s=n(7971);class r extends i.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(t){super.next(this._value=t)}}},1593:function(t,e,n){"use strict";n.d(e,{P:function(){return o}});var i=n(9193),s=n(5917),r=n(7574);class o{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return t=this.error,new r.y(e=>e.error(t));case"C":return(0,i.c)()}var t;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new o("N",t):o.undefinedValueNotification}static createError(t){return new o("E",void 0,t)}static createComplete(){return o.completeNotification}}o.completeNotification=new o("C"),o.undefinedValueNotification=new o("N",void 0)},7574:function(t,e,n){"use strict";n.d(e,{y:function(){return c}});var i=n(7393),s=n(9181),r=n(6490),o=n(6554),a=n(4487);var l=n(2494);let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof i.L)return t;if(t[s.b])return t[s.b]()}return t||e||n?new i.L(t,e,n):new i.L(r.c)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof i.L?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.L](){return this}pipe(...t){return 0===t.length?this:function(t){return 0===t.length?a.y:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}(t)(this)}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=l.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},6490:function(t,e,n){"use strict";n.d(e,{c:function(){return r}});var i=n(2494),s=n(4449);const r={closed:!0,next(t){},error(t){if(i.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},9765:function(t,e,n){"use strict";n.d(e,{Yc:function(){return c},xQ:function(){return u}});var i=n(7574),s=n(7393),r=n(5319),o=n(7971),a=n(8858),l=n(9181);class c extends s.L{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends i.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.b](){return new c(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.N;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;snew h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):r.w.EMPTY}}},8858:function(t,e,n){"use strict";n.d(e,{W:function(){return s}});var i=n(5319);class s extends i.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},7393:function(t,e,n){"use strict";n.d(e,{L:function(){return c}});var i=n(9105),s=n(6490),r=n(5319),o=n(9181),a=n(2494),l=n(4449);class c extends r.w{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.b](){return this}static create(t,e,n){const i=new c(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends c{constructor(t,e,n,r){super(),this._parentSubscriber=t;let o,a=this;(0,i.m)(e)?o=e:e&&(o=e.next,n=e.error,r=e.complete,e!==s.c&&(a=Object.create(e),(0,i.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.v;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,l.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,l.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw n;(0,l.z)(n)}}__tryOrSetError(t,e,n){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):((0,l.z)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},5319:function(t,e,n){"use strict";n.d(e,{w:function(){return a}});var i=n(9796),s=n(1555),r=n(9105);const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class a{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof a)e.remove(this);else if(null!==e)for(let i=0;it.concat(e instanceof o?e.errors:e),[])}a.EMPTY=((l=new a).closed=!0,l)},2494:function(t,e,n){"use strict";n.d(e,{v:function(){return s}});let i=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},5345:function(t,e,n){"use strict";n.d(e,{IY:function(){return o},Ds:function(){return a},ft:function(){return l}});var i=n(7393),s=n(7574),r=n(7444);class o extends i.L{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends i.L{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function l(t,e){if(e.closed)return;if(t instanceof s.y)return t.subscribe(e);let n;try{n=(0,r.s)(t)(e)}catch(i){e.error(i)}return n}},2441:function(t,e,n){"use strict";n.d(e,{c:function(){return a},N:function(){return l}});var i=n(9765),s=n(7574),r=n(5319),o=n(1307);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new r.w,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed&&(this._connection=null,t=r.w.EMPTY)),t}refCount(){return(0,o.x)()(this)}}const l=(()=>{const t=a.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 c extends i.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},739:function(t,e,n){"use strict";n.d(e,{aj:function(){return p}});var i=n(4869),s=n(9796),r=n(7393);class o extends r.L{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class a extends r.L{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var l=n(7444),c=n(7574);function u(t,e,n,i,s=new a(t,n,i)){if(!s.closed)return e instanceof c.y?e.subscribe(s):(0,l.s)(e)(s)}var h=n(6693);const d={};function p(...t){let e,n;return(0,i.K)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,h.n)(t,n).lift(new f(e))}class f{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new m(t,this.resultSelector))}}class m extends o{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(d),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{let n;try{n=t()}catch(i){return void e.error(i)}return(n?(0,s.D)(n):(0,r.c)()).subscribe(e)})}},9193:function(t,e,n){"use strict";n.d(e,{E:function(){return s},c:function(){return r}});var i=n(7574);const s=new i.y(t=>t.complete());function r(t){return t?function(t){return new i.y(e=>t.schedule(()=>e.complete()))}(t):s}},4402:function(t,e,n){"use strict";n.d(e,{D:function(){return h}});var i=n(7574),s=n(7444),r=n(5319),o=n(6554),a=n(4087),l=n(377),c=n(4072),u=n(9489);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.L]}(t))return function(t,e){return new i.y(n=>{const i=new r.w;return i.add(e.schedule(()=>{const s=t[o.L]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if((0,c.t)(t))return function(t,e){return new i.y(n=>{const i=new r.w;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if((0,u.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[l.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.y(n=>{const i=new r.w;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[l.hZ](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.y?t:new i.y((0,s.s)(t))}},6693:function(t,e,n){"use strict";n.d(e,{n:function(){return o}});var i=n(7574),s=n(5015),r=n(4087);function o(t,e){return e?(0,r.r)(t,e):new i.y((0,s.V)(t))}},2759:function(t,e,n){"use strict";n.d(e,{R:function(){return a}});var i=n(7574),s=n(9796),r=n(9105),o=n(8002);function a(t,e,n,c){return(0,r.m)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe((0,o.U)(t=>(0,s.k)(t)?c(...t):c(t))):new i.y(i=>{l(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function l(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.y?t[0]:(0,r.J)(e)((0,o.n)(t,n))}},5917:function(t,e,n){"use strict";n.d(e,{of:function(){return o}});var i=n(4869),s=n(6693),r=n(4087);function o(...t){let e=t[t.length-1];return(0,i.K)(e)?(t.pop(),(0,r.r)(t,e)):(0,s.n)(t)}},628:function(t,e,n){"use strict";n.d(e,{e:function(){return h}});var i=n(3637),s=n(5345);class r{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new o(t,this.durationSelector))}}class o extends s.Ds{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=(0,s.ft)(n,new s.IY(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,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(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n(7574),l=n(6561),c=n(4869);function u(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function h(t,e=i.P){return function(t){return function(e){return e.lift(new r(t))}}(()=>function(t=0,e,n){let s=-1;return(0,l.k)(e)?s=Number(e)<1?1:Number(e):(0,c.K)(e)&&(n=e),(0,c.K)(n)||(n=i.P),new a.y(e=>{const i=(0,l.k)(t)?t:+t-n.now();return n.schedule(u,i,{index:0,period:s,subscriber:e})})}(t,e))}},4612:function(t,e,n){"use strict";n.d(e,{b:function(){return s}});var i=n(9773);function s(t,e){return(0,i.zg)(t,e,1)}},4395:function(t,e,n){"use strict";n.d(e,{b:function(){return r}});var i=n(7393),s=n(3637);function r(t,e=s.P){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.L{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},7519:function(t,e,n){"use strict";n.d(e,{x:function(){return s}});var i=n(7393);function s(t,e){return n=>n.lift(new r(t,e))}class r{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends i.L{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},5435:function(t,e,n){"use strict";n.d(e,{h:function(){return s}});var i=n(7393);function s(t,e){return function(n){return n.lift(new r(t,e))}}class r{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},8002:function(t,e,n){"use strict";n.d(e,{U:function(){return s}});var i=n(7393);function s(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new r(t,e))}}class r{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},3282:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});var i=n(9773),s=n(4487);function r(t=Number.POSITIVE_INFINITY){return(0,i.zg)(s.y,t)}},9773:function(t,e,n){"use strict";n.d(e,{zg:function(){return o}});var i=n(8002),s=n(4402),r=n(5345);function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(o((n,r)=>(0,s.D)(t(n,r)).pipe((0,i.U)((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends r.Ds{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1307:function(t,e,n){"use strict";n.d(e,{x:function(){return s}});var i=n(7393);function s(){return function(t){return t.lift(new r(t))}}class r{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new o(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class o extends i.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}},3653:function(t,e,n){"use strict";n.d(e,{T:function(){return s}});var i=n(7393);function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.total=t}call(t,e){return e.subscribe(new o(t,this.total))}}class o extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},9761:function(t,e,n){"use strict";n.d(e,{O:function(){return r}});var i=n(8071),s=n(4869);function r(...t){const e=t[t.length-1];return(0,s.K)(e)?(t.pop(),n=>(0,i.z)(t,n,e)):e=>(0,i.z)(t,e)}},3190:function(t,e,n){"use strict";n.d(e,{w:function(){return o}});var i=n(8002),s=n(4402),r=n(5345);function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,r)=>(0,s.D)(t(n,r)).pipe((0,i.U)((t,i)=>e(n,t,r,i))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends r.Ds{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new r.IY(this),i=this.destination;i.add(n),this.innerSubscription=(0,r.ft)(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},5257:function(t,e,n){"use strict";n.d(e,{q:function(){return o}});var i=n(7393),s=n(7108),r=n(9193);function o(t){return e=>0===t?(0,r.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},6782:function(t,e,n){"use strict";n.d(e,{R:function(){return s}});var i=n(5345);function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.notifier=t}call(t,e){const n=new o(t),s=(0,i.ft)(this.notifier,new i.IY(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class o extends i.Ds{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},3342:function(t,e,n){"use strict";n.d(e,{b:function(){return o}});var i=n(7393);function s(){}var r=n(9105);function o(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends i.L{constructor(t,e,n,i){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=n||s,this._tapComplete=i||s,(0,r.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},4087:function(t,e,n){"use strict";n.d(e,{r:function(){return r}});var i=n(7574),s=n(5319);function r(t,e){return new i.y(n=>{const i=new s.w;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},6465:function(t,e,n){"use strict";n.d(e,{o:function(){return r}});var i=n(5319);class s extends i.w{constructor(t,e){super()}schedule(t,e=0){return this}}class r extends s{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},6102:function(t,e,n){"use strict";n.d(e,{v:function(){return s}});let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class s extends i{constructor(t,e=i.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},4581:function(t,e,n){"use strict";n.d(e,{E:function(){return u}});let i=1;const s=Promise.resolve(),r={};function o(t){return t in r&&(delete r[t],!0)}const a={setImmediate(t){const e=i++;return r[e]=!0,s.then(()=>o(e)&&t()),e},clearImmediate(t){o(t)}};var l=n(6465),c=n(6102);const u=new class extends c.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}})},3637:function(t,e,n){"use strict";n.d(e,{P:function(){return s}});var i=n(6465);const s=new(n(6102).v)(i.o)},377:function(t,e,n){"use strict";n.d(e,{hZ:function(){return i}});const i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:function(t,e,n){"use strict";n.d(e,{W:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},7971:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4449:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,{z:function(){return i}})},4487:function(t,e,n){"use strict";function i(t){return t}n.d(e,{y:function(){return i}})},9796:function(t,e,n){"use strict";n.d(e,{k:function(){return i}});const i=Array.isArray||(t=>t&&"number"==typeof t.length)},9489:function(t,e,n){"use strict";n.d(e,{z:function(){return i}});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},9105:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,{m:function(){return i}})},6561:function(t,e,n){"use strict";n.d(e,{k:function(){return s}});var i=n(9796);function s(t){return!(0,i.k)(t)&&t-parseFloat(t)+1>=0}},1555:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,{K:function(){return i}})},5639:function(t,e,n){"use strict";n.d(e,{b:function(){return s}});var i=n(7574);function s(t){return!!t&&(t instanceof i.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},4072:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:function(){return i}})},4869:function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,{K:function(){return i}})},7444:function(t,e,n){"use strict";n.d(e,{s:function(){return u}});var i=n(5015),s=n(4449),r=n(377),o=n(6554),a=n(9489),l=n(4072),c=n(1555);const u=t=>{if(t&&"function"==typeof t[o.L])return(t=>e=>{const n=t[o.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if((0,a.z)(t))return(0,i.V)(t);if((0,l.t)(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,s.z),e))(t);if(t&&"function"==typeof t[r.hZ])return(t=>e=>{const n=t[r.hZ]();for(;;){let t;try{t=n.next()}catch(i){return e.error(i),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const e=`You provided ${(0,c.K)(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}}},5015:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});const i=t=>e=>{for(let n=0,i=t.length;n{class t{constructor(t){this.sanitizer=t}transform(t,e){return t=(t=(t=t.replace(/<\s*script\s*/gi,"")).replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,"")).replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s.H7,16))},t.\u0275pipe=i.Yjl({name:"safeHtml",type:t,pure:!0}),t})()},3183:function(t,e,n){"use strict";n.d(e,{h:function(){return y}});var i=n(2238),s=n(7574),r=n(3637),o=n(6561);function a(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var l=n(3018),c=n(8583),u=n(1095),h=n(7918),d=n(6498);function p(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().close()}),l.TgZ(1,"uds-translate"),l._uU(2,"Close"),l.qZA(),l._uU(3),l.qZA()}if(2&t){const t=l.oxw();l.xp6(3),l.Oqu(t.extra)}}function f(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().yes()}),l.TgZ(1,"uds-translate"),l._uU(2,"Yes"),l.qZA(),l.qZA()}}function m(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().no()}),l.TgZ(1,"uds-translate"),l._uU(2,"No"),l.qZA(),l.qZA()}}var g=(()=>{return(t=g||(g={}))[t.alert=0]="alert",t[t.yesno=1]="yesno",g;var t})();let _=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.subscription=null,this.resetCallbacks(),this.yesno=new s.y(t=>{this.yes=()=>{t.next(!0),t.complete()},this.no=()=>{t.next(!1),t.complete()},this.close=()=>{this.doClose(),t.next(!1),t.complete()};const e=this;return{unsubscribe:()=>e.resetCallbacks()}})}resetCallbacks(){this.yes=this.no=()=>this.close(),this.close=()=>this.doClose()}closed(){null!==this.subscription&&this.subscription.unsubscribe()}doClose(){this.dialogRef.close()}setExtra(t){this.extra=" ("+Math.floor(t/1e3)+" "+django.gettext("seconds")+") "}initAlert(){this.data.autoclose>0?(this.dialogRef.afterClosed().subscribe(t=>{this.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(t=0,e=r.P){return(!(0,o.k)(t)||t<0)&&(t=0),(!e||"function"!=typeof e.schedule)&&(e=r.P),new s.y(n=>(n.add(e.schedule(a,t,{subscriber:n,counter:0,period:t})),n))}(1e3).subscribe(t=>{const e=this.data.autoclose-1e3*(t+1);this.setExtra(e),e<=0&&this.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(t=>{this.closed()}),this.subscription=this.data.checkClose.subscribe(t=>{window.setTimeout(()=>{this.doClose()})}))}initYesNo(){}ngOnInit(){this.data.type===g.yesno?this.initYesNo():this.initAlert()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(i.so),l.Y36(i.WI))},t.\u0275cmp=l.Xpm({type:t,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"]],template:function(t,e){1&t&&(l._UZ(0,"h4",0),l.ALo(1,"safeHtml"),l._UZ(2,"mat-dialog-content",1),l.ALo(3,"safeHtml"),l.TgZ(4,"mat-dialog-actions"),l.YNc(5,p,4,1,"button",2),l.YNc(6,f,3,0,"button",2),l.YNc(7,m,3,0,"button",2),l.qZA()),2&t&&(l.Q6J("innerHtml",l.lcZ(1,5,e.data.title),l.oJD),l.xp6(2),l.Q6J("innerHTML",l.lcZ(3,7,e.data.body),l.oJD),l.xp6(3),l.Q6J("ngIf",0===e.data.type),l.xp6(1),l.Q6J("ngIf",1===e.data.type),l.xp6(1),l.Q6J("ngIf",1===e.data.type))},directives:[i.uh,i.xY,i.H8,c.O5,u.lW,i.ZT,h.P],pipes:[d.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t})(),y=(()=>{class t{constructor(t){this.dialog=t}alert(t,e,n=0,i=null){const s=window.innerWidth<800?"80%":"40%";return this.dialog.open(_,{width:s,data:{title:t,body:e,autoclose:n,checkClose:i,type:g.alert},disableClose:!0})}yesno(t,e){const n=window.innerWidth<800?"80%":"40%";return this.dialog.open(_,{width:n,data:{title:t,body:e,type:g.yesno},disableClose:!0}).componentInstance.yesno}}return t.\u0275fac=function(e){return new(e||t)(l.LFG(i.uw))},t.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac}),t})()},2870:function(t,e,n){"use strict";n.d(e,{S:function(){return s}});var i=n(7574);let s=(()=>{class t{constructor(t){this.api=t,this.delay=t.config.launcher_wait_time}launchURL(e){let n="init";const s=t=>{let e=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof t?e=t:403===t.status&&(e=django.gettext("Your session has expired. Please, login again")),window.setTimeout(()=>{this.showAlert(django.gettext("Error"),e,5e3),403===t.status&&window.setTimeout(()=>{this.api.logout()},5e3)})};if("udsa://"===e.substring(0,7)){const t=e.split("//")[1].split("/"),r=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new i.y(e=>{let i=0;const o=()=>{r.componentInstance&&this.api.status(t[0],t[1]).subscribe(t=>{"ready"===t.status?(i?Date.now()-i>5*this.delay&&(r.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),r.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(i=Date.now(),r.componentInstance.data.title=django.gettext("Service ready"),r.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(o,this.delay)):"accessed"===t.status?(r.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),e.next(!0),e.complete()):"running"===t.status?window.setTimeout(o,this.delay):(e.next(!0),e.complete(),s())},t=>{e.next(!0),e.complete(),s(t)})},a=()=>{if("init"===n)window.setTimeout(a,this.delay);else{if("error"===n||"stop"===n)return;window.setTimeout(o)}};window.setTimeout(a)}));this.api.enabler(t[0],t[1]).subscribe(t=>{if(t.error)n="error",this.api.gui.alert(django.gettext("Error launching service"),t.error);else{if(t.url.startsWith("/"))return r.componentInstance&&r.componentInstance.close(),n="stop",void this.launchURL(t.url);"https:"===window.location.protocol&&(t.url=t.url.replace("uds://","udss://")),n="enabled",this.doLaunch(t.url)}},t=>{this.api.logout()})}else{const n=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new i.y(i=>{const r=()=>{n.componentInstance&&this.api.transportUrl(e).subscribe(e=>{if(e.url)if(i.next(!0),i.complete(),-1!==e.url.indexOf("o_s_w=")){const t=/(.*)&o_s_w=.*/.exec(e.url);window.location.href=t[1]}else{let n="global";if(-1!==e.url.indexOf("o_n_w=")){const t=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(e.url);t&&(n=t[2],e.url=t[1])}t.transportsWindow[n]&&t.transportsWindow[n].close(),t.transportsWindow[n]=window.open(e.url,"uds_trans_"+n)}else e.running?window.setTimeout(r,this.delay):(i.next(!0),i.complete(),s(e.error))},t=>{i.next(!0),i.complete(),s(t)})};window.setTimeout(r)}))}}showAlert(t,e,n,i=null){return this.api.gui.alert(django.gettext("Launching service"),'

'+t+'

'+e+"

",n,i)}doLaunch(t){let e=document.getElementById("hiddenUdsLauncherIFrame");if(null===e){const t=document.createElement("div");t.id="testID",t.innerHTML='',document.body.appendChild(t),e=document.getElementById("hiddenUdsLauncherIFrame")}e.contentWindow.location.href=t}}return t.transportsWindow={},t})()},4902:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G:function(){return LoginComponent}});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3018),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(665),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8295),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9983),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8583),_angular_material_button__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1095),_angular_material_select__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7441),_angular_material_core__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2458),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template(t,e){if(1&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&t){const t=e.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",t.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",t.name," ")}}function LoginComponent_div_22_Template(t,e){if(1&t){const t=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(1,"mat-form-field",17),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(2,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(e){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(t),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(e.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()}if(2&t){const t=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",t.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",t.auths)}}let LoginComponent=(()=>{class LoginComponent{constructor(t){this.api=t,this.title="UDS Enterprise",this.title=t.config.site_name,this.auths=t.config.authenticators.slice(0),this.auths.sort((t,e)=>t.priority-e.priority)}ngOnInit(){document.getElementById("loginform").action=this.api.config.urls.login;const t=document.getElementById("token");t.name=this.api.csrfField,t.value=this.api.csrfToken,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}changeAuth(auth){this.auth.value=auth;const doCustomAuth=data=>{eval(data)};for(const t of this.auths)t.id===auth&&t.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml(t.id).subscribe(t=>doCustomAuth(t)))}launch(){return document.getElementById("loginform").submit(),!0}}return LoginComponent.\u0275fac=function(t){return new(t||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return e.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(2,"input",2),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(10,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(11,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(12,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(17,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(18,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(24,"button",15),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",e.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",e.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",e.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,e.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_button__WEBPACK_IMPORTED_MODULE_7__.lW,_angular_material_select__WEBPACK_IMPORTED_MODULE_8__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_9__.ey],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent})()},7918:function(t,e,n){"use strict";n.d(e,{P:function(){return s}});var i=n(3018);let s=(()=>{class t{constructor(t){this.el=t}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t,selectors:[["uds-translate"]]}),t})()},3513:function(t,e,n){"use strict";n.d(e,{n:function(){return i}});class i{constructor(t){this.user=t.user,this.role=t.role,this.admin=t.admin}get isStaff(){return"staff"===this.role||"admin"===this.role}get isAdmin(){return"admin"===this.role}get isLogged(){return null!=this.user}get isRestricted(){return"restricted"===this.role}}},7540:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return UDSApiService}});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3018),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1841),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3183),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8741);let UDSApiService=(()=>{class UDSApiService{constructor(t,e,n){this.http=t,this.gui=e,this.router=n,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get staffInfo(){return udsData.info}get plugins(){return udsData.plugins}get actors(){return udsData.actors}get errors(){return udsData.errors}enabler(t,e){const n=this.config.urls.enabler.replace("param1",t).replace("param2",e);return this.http.get(n)}status(t,e){const n=this.config.urls.status.replace("param1",t).replace("param2",e);return this.http.get(n)}action(t,e){const n=this.config.urls.action.replace("param1",e).replace("param2",t);return this.http.get(n)}transportUrl(t){return this.http.get(t)}galleryImageURL(t){return this.config.urls.galleryImage.replace("param1",t)}transportIconURL(t){return this.config.urls.transportIcon.replace("param1",t)}staticURL(t){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+t:"/static/"+t}getServicesInformation(){return this.http.get(this.config.urls.services)}getErrorInformation(t){return this.http.get(this.config.urls.error.replace("9999",t))}executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}gotoAdmin(){window.location.href=this.config.urls.admin}logout(){window.location.href=this.config.urls.logout}launchURL(t){this.plugin.launchURL(t)}getAuthCustomHtml(t){return this.http.get(this.config.urls.customAuth+t,{responseType:"text"})}}return UDSApiService.\u0275fac=function(t){return new(t||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService})()},2340:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i={production:!0}},6445:function(t,e,n){"use strict";var i=n(9075),s=n(3018),r=n(9490),o=n(9765),a=n(739),l=n(8071),c=n(7574),u=n(5257),h=n(3653),d=n(4395),p=n(8002),f=n(9761),m=n(6782),g=n(521);let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const y=new Set;let b,v=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):w}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!y.has(t))try{b||(b=document.createElement("style"),b.setAttribute("type","text/css"),document.head.appendChild(b)),b.sheet&&(b.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),y.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(g.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(g.t4))},token:t,providedIn:"root"}),t})();function w(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let C=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new o.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return x((0,r.Eq)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=x((0,r.Eq)(t)).map(t=>this._registerQuery(t).observable);let n=(0,a.aj)(e);return n=(0,l.z)(n.pipe((0,u.q)(1)),n.pipe((0,h.T)(1),(0,d.b)(0))),n.pipe((0,p.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new c.y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe((0,f.O)(e),(0,p.U)(({matches:e})=>({query:t,matches:e})),(0,m.R)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(v),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(v),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})();function x(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var E=n(1841),S=n(8741),k=n(7540);let O=(()=>{class t{constructor(t){this.api=t}canActivate(t,e){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(k.n))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var T=n(4902),A=n(7918),P=n(8583);function I(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().download(e.url)}),s.TgZ(1,"div",7),s._UZ(2,"img",8),s.qZA(),s.TgZ(3,"div",9),s._uU(4),s.qZA(),s.TgZ(5,"div",10),s._uU(6),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.Tol(n.css(t)),s.xp6(2),s.Q6J("src",n.img(t.name),s.LSH),s.xp6(2),s.lnq(" ",n.legacy(t)," ",t.name," (",t.url.split(".").pop(),") "),s.xp6(2),s.hij(" ",t.description," ")}}let R=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}download(t){window.location.href=t}img(t){return this.api.staticURL("modern/img/"+t+".png")}css(t){const e=["plugin"];return t.legacy&&e.push("legacy"),e}legacy(t){return t.legacy?"Legacy":""}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h1"),s.TgZ(4,"uds-translate"),s._uU(5,"UDS Client"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"div",3),s.YNc(7,I,7,7,"div",4),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"ul"),s.TgZ(10,"li"),s.TgZ(11,"uds-translate"),s._uU(12,"Download UDS client for your platform"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(7),s.Q6J("ngForOf",e.api.plugins))},directives:[A.P,P.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem}"]}),t})();var D=n(6498);function M(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().download(e.url)}),s.TgZ(1,"div",7),s._UZ(2,"img",8),s.qZA(),s._UZ(3,"div",9),s.ALo(4,"safeHtml"),s._UZ(5,"div",10),s.ALo(6,"safeHtml"),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.Tol(n.css(t.name)),s.xp6(2),s.Q6J("src",n.img(t.name),s.LSH),s.xp6(1),s.Q6J("innerHTML",s.lcZ(4,5,t.name),s.oJD),s.xp6(2),s.Q6J("innerHTML",s.lcZ(6,7,t.description),s.oJD)}}let L=(()=>{class t{constructor(t){this.api=t}ngOnInit(){this.actors=[];const t=[];this.api.actors.forEach(e=>{e.name.includes("legacy")?t.push(e):this.actors.push(e)}),t.forEach(t=>{this.actors.push(t)})}download(t){window.location.href=t}img(t){const e=t.split(".").pop().toLowerCase();let n="Linux";return"exe"===e?n="Windows":"pkg"===e&&(n="MacOS"),this.api.staticURL("modern/img/"+n+".png")}css(t){const e=["actor"];return t.toLowerCase().includes("legacy")&&e.push("legacy"),e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h1"),s.TgZ(4,"uds-translate"),s._uU(5,"Downloads"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"div",3),s.YNc(7,M,7,9,"div",4),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"ul"),s.TgZ(10,"li"),s.TgZ(11,"uds-translate"),s._uU(12,"Always download the UDS actor matching your platform"),s.qZA(),s.qZA(),s.TgZ(13,"li"),s.TgZ(14,"uds-translate"),s._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(7),s.Q6J("ngForOf",e.actors))},directives:[A.P,P.sg],pipes:[D.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:bold;overflow:hidden}"]}),t})();var F=n(5319),N=n(8345);let B=0;const U=new s.OlP("CdkAccordion");let Z=(()=>{class t{constructor(){this._stateChanges=new o.xQ,this._openCloseAllActions=new o.xQ,this.id="cdk-accordion-"+B++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=(0,r.Ig)(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[s._Bn([{provide:U,useExisting:t}]),s.TTD]}),t})(),q=0,j=(()=>{class t{constructor(t,e,n){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=n,this._openCloseAllSubscription=F.w.EMPTY,this.closed=new s.vpe,this.opened=new s.vpe,this.destroyed=new s.vpe,this.expandedChange=new s.vpe,this.id="cdk-accordion-child-"+q++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=n.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=(0,r.Ig)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(U,12),s.Y36(s.sBO),s.Y36(N.A8))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[s._Bn([{provide:U,useValue:void 0}])]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();var H=n(7636),z=n(2458),Y=n(9238),G=n(7519),K=n(5435),$=n(6461),W=n(6237),Q=n(9193),J=n(6682),X=n(7238);const tt=["body"];function et(t,e){}const nt=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],it=["mat-expansion-panel-header","*","mat-action-row"];function st(t,e){if(1&t&&s._UZ(0,"span",2),2&t){const t=s.oxw();s.Q6J("@indicatorRotate",t._getExpandedState())}}const rt=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],ot=["mat-panel-title","mat-panel-description","*"],at=new s.OlP("MAT_ACCORDION"),lt="225ms cubic-bezier(0.4,0.0,0.2,1)",ct={indicatorRotate:(0,X.X$)("indicatorRotate",[(0,X.SB)("collapsed, void",(0,X.oB)({transform:"rotate(0deg)"})),(0,X.SB)("expanded",(0,X.oB)({transform:"rotate(180deg)"})),(0,X.eR)("expanded <=> collapsed, void => collapsed",(0,X.jt)(lt))]),bodyExpansion:(0,X.X$)("bodyExpansion",[(0,X.SB)("collapsed, void",(0,X.oB)({height:"0px",visibility:"hidden"})),(0,X.SB)("expanded",(0,X.oB)({height:"*",visibility:"visible"})),(0,X.eR)("expanded <=> collapsed, void => collapsed",(0,X.jt)(lt))])};let ut=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),ht=0;const dt=new s.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let pt=(()=>{class t extends j{constructor(t,e,n,i,r,a,l){super(t,e,n),this._viewContainerRef=i,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new s.vpe,this.afterCollapse=new s.vpe,this._inputChanges=new o.xQ,this._headerId="mat-expansion-panel-header-"+ht++,this._bodyAnimationDone=new o.xQ,this.accordion=t,this._document=r,this._bodyAnimationDone.pipe((0,G.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=(0,r.Ig)(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,f.O)(null),(0,K.h)(()=>this.expanded&&!this._portal),(0,u.q)(1)).subscribe(()=>{this._portal=new H.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(at,12),s.Y36(s.sBO),s.Y36(N.A8),s.Y36(s.s_b),s.Y36(P.K0),s.Y36(W.Qb,8),s.Y36(dt,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,ut,5),2&t){let t;s.iGM(t=s.CRH())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&s.Gf(tt,5),2&t){let t;s.iGM(t=s.CRH())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[s._Bn([{provide:at,useValue:void 0}]),s.qOj,s.TTD],ngContentSelectors:it,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(s.F$t(nt),s.Hsn(0),s.TgZ(1,"div",0,1),s.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),s.TgZ(3,"div",2),s.Hsn(4,1),s.YNc(5,et,0,0,"ng-template",3),s.qZA(),s.Hsn(6,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),s.uIk("aria-labelledby",e._headerId),s.xp6(4),s.Q6J("cdkPortalOutlet",e._portal))},directives:[H.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ct.bodyExpansion]},changeDetection:0}),t})();class ft{}const mt=(0,z.sb)(ft);let gt=(()=>{class t extends mt{constructor(t,e,n,i,s,r,o){super(),this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=i,this._animationMode=r,this._parentChangeSubscription=F.w.EMPTY;const a=t.accordion?t.accordion._stateChanges.pipe((0,K.h)(t=>!(!t.hideToggle&&!t.togglePosition))):Q.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,J.T)(t.opened,t.closed,a,t._inputChanges.pipe((0,K.h)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe((0,K.h)(()=>t._containsFocus())).subscribe(()=>n.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case $.L_:case $.K5:(0,$.Vb)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(pt,1),s.Y36(s.SBq),s.Y36(Y.tE),s.Y36(s.sBO),s.Y36(dt,8),s.Y36(W.Qb,8),s.$8M("tabindex"))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.uIk("id",e.panel._headerId)("tabindex",e.tabIndex)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),s.Udp("height",e._getHeaderHeight()),s.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[s.qOj],ngContentSelectors:ot,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(s.F$t(rt),s.TgZ(0,"span",0),s.Hsn(1),s.Hsn(2,1),s.Hsn(3,2),s.qZA(),s.YNc(4,st,1,1,"span",1)),2&t&&(s.xp6(4),s.Q6J("ngIf",e._showToggle()))},directives:[P.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[ct.indicatorRotate]},changeDetection:0}),t})(),_t=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),yt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),bt=(()=>{class t extends Z{constructor(){super(...arguments),this._ownHeaders=new s.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=(0,r.Ig)(t)}ngAfterContentInit(){this._headers.changes.pipe((0,f.O)(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Y.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,gt,5),2&t){let t;s.iGM(t=s.CRH())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[s._Bn([{provide:at,useExisting:t}]),s.qOj]}),t})(),vt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[P.ez,z.BQ,V,H.eL]]}),t})();function wt(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"uds-translate"),s._uU(2,"Detected proxy ip"),s.qZA(),s._uU(3),s.qZA()),2&t){const t=s.oxw(2);s.xp6(3),s.hij(": ",t.api.staffInfo.ip_proxy,"")}}function Ct(t,e){if(1&t&&(s.TgZ(0,"li"),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function xt(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function Et(t,e){if(1&t&&(s.TgZ(0,"div",1),s.TgZ(1,"h1"),s.TgZ(2,"uds-translate"),s._uU(3,"Information"),s.qZA(),s.qZA(),s.TgZ(4,"mat-accordion"),s.TgZ(5,"mat-expansion-panel"),s.TgZ(6,"mat-expansion-panel-header",2),s.TgZ(7,"mat-panel-title"),s._uU(8," IPs "),s.qZA(),s.TgZ(9,"mat-panel-description"),s.TgZ(10,"uds-translate"),s._uU(11,"Client IP"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(12,"ol"),s.TgZ(13,"li"),s.TgZ(14,"uds-translate"),s._uU(15,"Client IP"),s.qZA(),s._uU(16),s.qZA(),s.YNc(17,wt,4,1,"li",3),s.qZA(),s.qZA(),s.TgZ(18,"mat-expansion-panel"),s.TgZ(19,"mat-expansion-panel-header",2),s.TgZ(20,"mat-panel-title"),s.TgZ(21,"uds-translate"),s._uU(22,"Transports"),s.qZA(),s.qZA(),s.TgZ(23,"mat-panel-description"),s.TgZ(24,"uds-translate"),s._uU(25,"UDS transports for this client"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(26,"ol"),s.YNc(27,Ct,2,1,"li",4),s.qZA(),s.qZA(),s.TgZ(28,"mat-expansion-panel"),s.TgZ(29,"mat-expansion-panel-header",2),s.TgZ(30,"mat-panel-title"),s.TgZ(31,"uds-translate"),s._uU(32,"Networks"),s.qZA(),s.qZA(),s.TgZ(33,"mat-panel-description"),s.TgZ(34,"uds-translate"),s._uU(35,"UDS networks for this IP"),s.qZA(),s.qZA(),s.qZA(),s.YNc(36,xt,2,1,"span",4),s._uU(37,"\xa0 "),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(16),s.hij(": ",t.api.staffInfo.ip,""),s.xp6(1),s.Q6J("ngIf",t.api.staffInfo.ip_proxy!==t.api.staffInfo.ip),s.xp6(10),s.Q6J("ngForOf",t.api.staffInfo.transports),s.xp6(9),s.Q6J("ngForOf",t.api.staffInfo.networks)}}let St=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(t,e){1&t&&s.YNc(0,Et,38,4,"div",0),2&t&&s.Q6J("ngIf",e.api.staffInfo)},directives:[P.O5,A.P,bt,pt,gt,yt,_t,P.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4}"]}),t})();var kt=n(2759),Ot=n(3342),Tt=n(8295),At=n(9983);const Pt=["input"];let It=(()=>{class t{constructor(){this.updateEvent=new s.vpe}ngAfterViewInit(){(0,kt.R)(this.input.nativeElement,"keyup").pipe((0,K.h)(Boolean),(0,d.b)(600),(0,G.x)(),(0,Ot.b)(()=>this.update(this.input.nativeElement.value))).subscribe()}update(t){this.updateEvent.emit(t.toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-filter"]],viewQuery:function(t,e){if(1&t&&s.Gf(Pt,7),2&t){let t;s.iGM(t=s.CRH())&&(e.input=t.first)}},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-form-field",1),s.TgZ(2,"mat-label"),s.TgZ(3,"uds-translate"),s._uU(4,"Filter"),s.qZA(),s.qZA(),s._UZ(5,"input",2,3),s.TgZ(7,"i",4),s._uU(8,"search"),s.qZA(),s.qZA(),s.qZA())},directives:[Tt.KE,Tt.hX,A.P,At.Nt,Tt.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),t})();var Rt=n(5917),Dt=n(4581),Mt=n(3190),Lt=n(3637),Ft=n(7393),Nt=n(1593);function Bt(t,e=Lt.P){const n=function(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-e.now():Math.abs(t);return t=>t.lift(new Ut(n,e))}class Ut{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Zt(t,this.delay,this.scheduler))}}class Zt extends Ft.L{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Zt.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new qt(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Nt.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Nt.P.createComplete()),this.unsubscribe()}}class qt{constructor(t,e){this.time=t,this.notification=e}}var jt=n(625),Vt=n(9243),Ht=n(946);const zt=["mat-menu-item",""];function Yt(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",2),s._UZ(1,"polygon",3),s.qZA())}const Gt=["*"];function Kt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.NdJ("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)})("click",function(){return s.CHM(t),s.oxw().closed.emit("click")})("@transformMenu.start",function(e){return s.CHM(t),s.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return s.CHM(t),s.oxw()._onAnimationDone(e)}),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),s.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const $t={transformMenu:(0,X.X$)("transformMenu",[(0,X.SB)("void",(0,X.oB)({opacity:0,transform:"scale(0.8)"})),(0,X.eR)("void => enter",(0,X.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,X.oB)({opacity:1,transform:"scale(1)"}))),(0,X.eR)("* => void",(0,X.jt)("100ms 25ms linear",(0,X.oB)({opacity:0})))]),fadeInItems:(0,X.X$)("fadeInItems",[(0,X.SB)("showing",(0,X.oB)({opacity:1})),(0,X.eR)("void => *",[(0,X.oB)({opacity:0}),(0,X.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Wt=new s.OlP("MatMenuContent"),Qt=new s.OlP("MAT_MENU_PANEL"),Jt=(0,z.Kr)((0,z.Id)(class{}));let Xt=(()=>{class t extends Jt{constructor(t,e,n,i,s){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new o.xQ,this._focused=new o.xQ,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.n_E,this._tabSubscription=F.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new o.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+ee++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=(0,r.Ig)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,r.Ig)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Y.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,f.O)(this._directDescendantItems),(0,Mt.w)(t=>(0,J.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,f.O)(this._directDescendantItems),(0,Mt.w)(t=>(0,J.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case $.hY:(0,$.Vb)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case $.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case $.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(e===$.LH||e===$.JH)&&n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,u.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=Math.min(this._baseElevation+t,24),n=`${this._elevationPrefix}${e}`,i=Object.keys(this._classList).find(t=>t.startsWith(this._elevationPrefix));(!i||i===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[n]=!0,this._previousElevation=n)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,f.O)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(te))},t.\u0275dir=s.lG2({type:t,contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,Wt,5),s.Suo(n,Xt,5),s.Suo(n,Xt,4)),2&t){let t;s.iGM(t=s.CRH())&&(e.lazyContent=t.first),s.iGM(t=s.CRH())&&(e._allItems=t),s.iGM(t=s.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(s.Rgc,5),2&t){let t;s.iGM(t=s.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),ie=(()=>{class t extends ne{constructor(t,e,n){super(t,e,n),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(te))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&s.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[s._Bn([{provide:Qt,useExisting:t}]),s.qOj],ngContentSelectors:Gt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,Kt,3,6,"ng-template"))},directives:[P.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[$t.transformMenu,$t.fadeInItems]},changeDetection:0}),t})();const se=new s.OlP("mat-menu-scroll-strategy"),re={provide:se,deps:[jt.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},oe=(0,g.i$)({passive:!0});let ae=(()=>{class t{constructor(t,e,n,i,r,o,a,l){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=o,this._dir=a,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=F.w.EMPTY,this._hoverSubscription=F.w.EMPTY,this._menuCloseSubscription=F.w.EMPTY,this._handleTouchStart=t=>{(0,Y.yG)(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new s.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=r instanceof ne?r:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,oe),o&&(o._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,oe),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ne&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===t||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,e instanceof ne?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,K.h)(t=>"void"===t.toState),(0,u.q)(1),(0,m.R)(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new jt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[i,s],[a,l]=[e,n],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(r="top"===i?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:r,overlayX:l,overlayY:i,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Rt.of)(),i=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,K.h)(t=>t!==this._menuItemInstance),(0,K.h)(()=>this._menuOpen)):(0,Rt.of)();return(0,J.T)(t,n,i,e)}_handleMousedown(t){(0,Y.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;(e===$.K5||e===$.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===$.SV&&"ltr"===this.dir||e===$.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,K.h)(t=>t===this._menuItemInstance&&!t.disabled),Bt(0,Dt.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ne&&this.menu._isAnimating?this.menu._animationDone.pipe((0,u.q)(1),Bt(0,Dt.E),(0,m.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new H.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(se),s.Y36(Qt,8),s.Y36(Xt,10),s.Y36(Ht.Is,8),s.Y36(Y.tE))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&s.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),le=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[re],imports:[z.BQ]}),t})(),ce=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[re],imports:[[P.ez,z.BQ,z.si,jt.U8,le],Vt.ZD,z.BQ,le]}),t})();const ue={tooltipState:(0,X.X$)("state",[(0,X.SB)("initial, void, hidden",(0,X.oB)({opacity:0,transform:"scale(0)"})),(0,X.SB)("visible",(0,X.oB)({transform:"scale(1)"})),(0,X.eR)("* => visible",(0,X.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,X.F4)([(0,X.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,X.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,X.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,X.eR)("* => hidden",(0,X.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,X.oB)({opacity:0})))])},he="tooltip-panel",de=(0,g.i$)({passive:!0}),pe=new s.OlP("mat-tooltip-scroll-strategy"),fe={provide:pe,deps:[jt.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},me=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let ge=(()=>{class t{constructor(t,e,n,i,s,r,a,l,c,u,h,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=r,this._ariaDescriber=a,this._focusMonitor=l,this._dir=u,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new o.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===$.hY&&!(0,$.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=d,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,m.R)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,de)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new H.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe((0,m.R)(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-${he}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,m.R)(this._destroyed)).subscribe(()=>{var t;return null===(t=this._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,u.q)(1),(0,m.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:n,originY:i}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===n?"left":"right":"start"===n?"left":"right":"bottom"===e&&"top"===i?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-${he}-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,de)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e!==n&&!n.contains(e)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),("on"===t||!e.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(Vt.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(g.t4),s.Y36(Y.$s),s.Y36(Y.tE),s.Y36(void 0),s.Y36(Ht.Is),s.Y36(void 0),s.Y36(P.K0))},t.\u0275dir=s.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),_e=(()=>{class t extends ge{constructor(t,e,n,i,s,r,o,a,l,c,u,h){super(t,e,n,i,s,r,o,a,l,c,u,h),this._tooltipComponent=be}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(Vt.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(g.t4),s.Y36(Y.$s),s.Y36(Y.tE),s.Y36(pe),s.Y36(Ht.Is,8),s.Y36(me,8),s.Y36(P.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),t})(),ye=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new o.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"===e&&!this.isVisible()&&this._onHide.next(),("visible"===e||"hidden"===e)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t}),t})(),be=(()=>{class t extends ye{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(C))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){2&t&&s.Udp("zoom","visible"===e._visibility?1:null)},features:[s.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.TgZ(0,"div",0),s.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),s.ALo(1,"async"),s._uU(2),s.qZA()),2&t){let t;s.ekj("mat-tooltip-handset",null==(t=s.lcZ(1,5,e._isHandset))?null:t.matches),s.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),s.xp6(2),s.Oqu(e.message)}},directives:[P.mk],pipes:[P.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ue.tooltipState]},changeDetection:0}),t})(),ve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[fe],imports:[[Y.rt,P.ez,jt.U8,z.BQ],z.BQ,Vt.ZD]}),t})();var we=n(1095);function Ce(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(2).launch(e)}),s.TgZ(1,"div",15),s._UZ(2,"img",9),s._uU(3),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw(2);s.xp6(2),s.Q6J("src",n.getTransportIcon(t.id),s.LSH),s.xp6(1),s.hij(" ",t.name," ")}}function xe(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).action("release")}),s.TgZ(1,"i",16),s._uU(2,"delete"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4," Release service"),s.qZA(),s.qZA()}}function Ee(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).action("reset")}),s.TgZ(1,"i",16),s._uU(2,"refresh"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4," Reset service"),s.qZA(),s.qZA()}}function Se(t,e){if(1&t&&(s.TgZ(0,"button",17),s.TgZ(1,"uds-translate"),s._uU(2,"Connections"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(2);s.Q6J("matMenuTriggerFor",t)}}function ke(t,e){if(1&t&&(s.TgZ(0,"button",17),s.TgZ(1,"uds-translate"),s._uU(2,"Actions"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(5);s.Q6J("matMenuTriggerFor",t)}}function Oe(t,e){if(1&t&&(s.TgZ(0,"button",18),s.TgZ(1,"i",16),s._uU(2,"menu"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(9);s.Q6J("matMenuTriggerFor",t)}}function Te(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"mat-menu",null,1),s.YNc(3,Ce,4,2,"button",2),s.qZA(),s.TgZ(4,"mat-menu",null,3),s.YNc(6,xe,5,0,"button",4),s.YNc(7,Ee,5,0,"button",4),s.qZA(),s.TgZ(8,"mat-menu",null,5),s.YNc(10,Se,3,1,"button",6),s.YNc(11,ke,3,1,"button",6),s.qZA(),s.TgZ(12,"div",7),s.TgZ(13,"div",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().launch(null)}),s._UZ(14,"img",9),s.qZA(),s.TgZ(15,"div",10),s.TgZ(16,"span",11),s._uU(17),s.qZA(),s.qZA(),s.TgZ(18,"div",12),s.YNc(19,Oe,3,1,"button",13),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.Q6J("ngForOf",t.service.transports),s.xp6(3),s.Q6J("ngIf",t.service.allow_users_remove),s.xp6(1),s.Q6J("ngIf",t.service.allow_users_reset),s.xp6(3),s.Q6J("ngIf",t.showTransportsMenu()),s.xp6(1),s.Q6J("ngIf",t.hasActions()),s.xp6(1),s.Q6J("ngClass",t.serviceClass)("matTooltipDisabled",""===t.serviceTooltip)("matTooltip",t.serviceTooltip),s.xp6(2),s.Q6J("src",t.serviceImage,s.LSH),s.xp6(2),s.Q6J("ngClass",t.serviceNameClass),s.xp6(1),s.Oqu(t.serviceName),s.xp6(2),s.Q6J("ngIf",t.hasMenu())}}let Ae=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}get serviceImage(){return this.api.galleryImageURL(this.service.imageId)}get serviceName(){let t=this.service.visual_name;return t.length>32&&(t=t.substring(0,29)+"..."),t}get serviceTooltip(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}get serviceClass(){const t=["service"];return null!=this.service.to_be_replaced?t.push("tobereplaced"):this.service.maintenance?t.push("maintenance"):this.service.not_accesible?t.push("forbidden"):this.service.in_use&&t.push("inuse"),t.length>1&&t.push("alert"),t}get serviceNameClass(){const t=[],e=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return e>=16&&t.push("small-"+e.toString()),t}getTransportIcon(t){return this.api.transportIconURL(t)}hasActions(){return this.service.allow_users_remove||this.service.allow_users_reset}showTransportsMenu(){return this.service.transports.length>1&&this.service.show_transports}hasMenu(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}notifyNotLaunching(t){this.api.gui.alert('

'+django.gettext("Launcher")+"

",t)}launch(t){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){const t=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching('

'+django.gettext("This service is currently not accesible due to schedule restrictions.")+'

'+t+'

')}else(null===t||!1===this.service.show_transports)&&(t=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(t.link)}action(t){const e=("release"===t?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,n="release"===t?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(e,django.gettext("Are you sure?")).subscribe(i=>{i&&this.api.action(t,this.service.id).subscribe(t=>{t&&this.api.gui.alert(e,n)})})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(t,e){1&t&&s.YNc(0,Te,20,12,"div",0),2&t&&s.Q6J("ngIf",e.service.transports.length>0)},directives:[P.O5,ie,P.sg,P.mk,_e,Xt,A.P,ae,we.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:rgba(0,0,0,.22);display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22)}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;border-radius:1px;background-color:rgba(255,255,255,.8)}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:"Material Icons";font-weight:normal;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"}']}),t})();function Pe(t,e){1&t&&s._UZ(0,"uds-service",8),2&t&&s.Q6J("service",e.$implicit)}function Ie(t,e){if(1&t&&(s.TgZ(0,"mat-expansion-panel",1),s.TgZ(1,"mat-expansion-panel-header",2),s.TgZ(2,"mat-panel-title"),s.TgZ(3,"div",3),s._UZ(4,"img",4),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"mat-panel-description",5),s._uU(7),s.qZA(),s.qZA(),s.TgZ(8,"div",6),s.YNc(9,Pe,1,1,"uds-service",7),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.Q6J("expanded",t.expanded),s.xp6(1),s.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),s.xp6(3),s.Q6J("src",t.groupImage,s.LSH),s.xp6(1),s.hij(" ",t.group.name,""),s.xp6(2),s.hij(" ",t.group.comments," "),s.xp6(2),s.Q6J("ngForOf",t.sortedServices)}}let Re=(()=>{class t{constructor(t){this.api=t,this.expanded=!1}ngOnInit(){}get groupImage(){return this.api.galleryImageURL(this.group.imageUuid)}get hasVisibleServices(){return this.services.length>0}get sortedServices(){return this.services.sort((t,e)=>t.name>e.name?1:t.name{class t{constructor(t){this.api=t,this.servicesInformation={autorun:!1,ip:"",nets:"",services:[],transports:""}}update(t){this.updateServices(t)}ngOnInit(){this.api.config.urls.launch?this.api.logout():this.loadServices()}autorun(){if(this.servicesInformation.autorun&&1===this.servicesInformation.services.length){if(!this.servicesInformation.services[0].maintenance)return this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(this.servicesInformation.services[0].transports[0].link),!0;this.api.gui.alert(django.gettext("Warning"),django.gettext("Service is in maintenance and cannot be executed"))}return!1}loadServices(){this.api.user.isRestricted&&this.api.logout(),this.api.getServicesInformation().subscribe(t=>{this.servicesInformation=t,this.autorun(),this.updateServices()})}updateServices(t=""){this.group=[];let e=null;this.servicesInformation.services.filter(e=>!t||e.visual_name.toLowerCase().includes(t)||e.group.name.toLowerCase().includes(t)).sort((t,e)=>t.group.priority!==e.group.priority?t.group.priority-e.group.priority:t.group.id>e.group.id?1:t.group.id{(null===e||t.group.id!==e.group.id)&&(null!==e&&this.group.push(e),e=new Fe(t.group)),e.services.push(t)}),null!==e&&this.group.push(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-services-page"]],decls:6,vars:3,consts:[[3,"updateEvent",4,"ngIf"],[1,"services-groups"],[3,"services","group","expanded",4,"ngFor","ngForOf"],[3,"updateEvent"],[3,"services","group","expanded"]],template:function(t,e){1&t&&(s.YNc(0,De,1,0,"uds-filter",0),s.TgZ(1,"div",1),s.TgZ(2,"mat-accordion"),s.YNc(3,Me,1,3,"uds-services-group",2),s.qZA(),s.qZA(),s.YNc(4,Le,1,0,"uds-filter",0),s._UZ(5,"uds-staff-info")),2&t&&(s.Q6J("ngIf",e.servicesInformation.services.length>=e.api.config.min_for_filter&&e.api.config.site_filter_on_top),s.xp6(3),s.Q6J("ngForOf",e.group),s.xp6(1),s.Q6J("ngIf",e.servicesInformation.services.length>=e.api.config.min_for_filter&&!e.api.config.site_filter_on_top))},directives:[P.O5,bt,P.sg,St,It,Re],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),t})(),Be=(()=>{class t{constructor(t,e){this.api=t,this.route=e}ngOnInit(){this.getError()}getError(){const t=this.route.snapshot.paramMap.get("id");"19"===t&&(this.returnUrl="/mfa"),this.error="",this.api.getErrorInformation(t).subscribe(t=>{this.error=t.error})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n),s.Y36(S.gz))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-error"]],decls:14,vars:2,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],["mat-raised-button","","color","warn",3,"routerLink"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.O4$(),s.TgZ(2,"svg",2),s._UZ(3,"path",3),s.qZA(),s.TgZ(4,"svg",4),s._UZ(5,"path",5),s.qZA(),s.qZA(),s.kcU(),s.TgZ(6,"h1",6),s.TgZ(7,"uds-translate"),s._uU(8,"An error has occurred"),s.qZA(),s.qZA(),s.TgZ(9,"p",7),s._uU(10),s.qZA(),s.TgZ(11,"a",8),s.TgZ(12,"uds-translate"),s._uU(13,"Return"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(10),s.hij(" ",e.error," "),s.xp6(1),s.Q6J("routerLink",e.returnUrl))},directives:[A.P,we.zs,S.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),t})(),Ue=(()=>{class t{constructor(t){this.api=t,this.year=(new Date).getFullYear()}ngOnInit(){this.year<2021&&(this.year=2021)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-about"]],decls:45,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1"),s._uU(2),s.qZA(),s.TgZ(3,"h3"),s.TgZ(4,"a",1),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"h4"),s.TgZ(7,"uds-translate"),s._uU(8,"You can access UDS Open Source code at"),s.qZA(),s.TgZ(9,"a",2),s._uU(10,"OpenUDS github repository"),s.qZA(),s.qZA(),s.TgZ(11,"div",3),s.TgZ(12,"h2"),s.TgZ(13,"uds-translate"),s._uU(14,"UDS has been developed using these components:"),s.qZA(),s.qZA(),s.TgZ(15,"ul"),s.TgZ(16,"li"),s.TgZ(17,"a",4),s._uU(18,"Python"),s.qZA(),s.qZA(),s.TgZ(19,"li"),s.TgZ(20,"a",5),s._uU(21,"TypeScript"),s.qZA(),s.qZA(),s.TgZ(22,"li"),s.TgZ(23,"a",6),s._uU(24,"Django"),s.qZA(),s.qZA(),s.TgZ(25,"li"),s.TgZ(26,"a",7),s._uU(27,"Angular"),s.qZA(),s.qZA(),s.TgZ(28,"li"),s.TgZ(29,"a",8),s._uU(30,"Guacamole"),s.qZA(),s.qZA(),s.TgZ(31,"li"),s.TgZ(32,"a",9),s._uU(33,"weasyprint"),s.qZA(),s.qZA(),s.TgZ(34,"li"),s.TgZ(35,"a",10),s._uU(36,"Crystal project icons"),s.qZA(),s.qZA(),s.TgZ(37,"li"),s.TgZ(38,"a",11),s._uU(39,"Flattr Icons"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(40,"p"),s.TgZ(41,"small"),s._uU(42,"* "),s.TgZ(43,"uds-translate"),s._uU(44,"If you find that we missed any component, please let us know"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.AsE("Universal Desktop Services ",e.api.config.version," build ",e.api.config.version_stamp,""),s.xp6(3),s.hij(" \xa9 2012-",e.year," Virtual Cable S.L.U."))},directives:[A.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:normal}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px}"]}),t})(),Ze=(()=>{class t{constructor(t){this.api=t}ngOnInit(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"h1"),s.TgZ(3,"uds-translate"),s._uU(4,"UDS Service launcher"),s.qZA(),s.qZA(),s.TgZ(5,"h4"),s.TgZ(6,"uds-translate"),s._uU(7,"The service you have requested is being launched."),s.qZA(),s.qZA(),s.TgZ(8,"h5"),s.TgZ(9,"uds-translate"),s._uU(10,"Please, note that reloading this page will not work."),s.qZA(),s.qZA(),s.TgZ(11,"h5"),s.TgZ(12,"uds-translate"),s._uU(13,"To relaunch service, you will have to do it from origin."),s.qZA(),s.qZA(),s.TgZ(14,"h6"),s.TgZ(15,"uds-translate"),s._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),s.qZA(),s.qZA(),s.TgZ(17,"h6"),s.TgZ(18,"uds-translate"),s._uU(19,"You can obtain it from the"),s.qZA(),s._uU(20,"\xa0"),s.TgZ(21,"a",2),s.TgZ(22,"uds-translate"),s._uU(23,"UDS Client download page"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA())},directives:[A.P,S.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:rgba(0,0,0,.22);padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:normal}"]}),t})();var qe=n(665);const je=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:Ne,canActivate:[O]},{path:"login",component:T.G},{path:"login/:id",component:T.G},{path:"mfa",component:(()=>{class t{constructor(t){this.api=t}ngOnInit(){document.getElementById("mfaform").action=this.api.config.urls.mfa,this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}launch(){return document.getElementById("mfaform").submit(),!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-mfa"]],decls:17,vars:2,consts:[["id","mfaform","method","post",3,"ngSubmit"],[1,"mfa-container"],[1,"mfa-brand"],[3,"src"],[1,"mfa-info"],[1,"mfa-form"],[1,"mfa-field"],["appearance","standard"],["matInput","","id","code","name","code","value","","required","","autofocus",""],[1,"mfa-button"],["mat-stroked-button","","color","primary","type","submit"]],template:function(t,e){1&t&&(s.TgZ(0,"form",0),s.NdJ("ngSubmit",function(){return e.launch()}),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s._UZ(3,"img",3),s.qZA(),s.TgZ(4,"div",4),s.TgZ(5,"uds-translate"),s._uU(6,"Login Verification"),s.qZA(),s.qZA(),s.TgZ(7,"div",5),s.TgZ(8,"div",6),s.TgZ(9,"mat-form-field",7),s.TgZ(10,"mat-label"),s._uU(11),s.qZA(),s._UZ(12,"input",8),s.qZA(),s.qZA(),s.TgZ(13,"div",9),s.TgZ(14,"button",10),s.TgZ(15,"uds-translate"),s._uU(16,"Submit"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Q6J("src",e.api.staticURL("modern/img/login-img.png"),s.LSH),s.xp6(8),s.hij(" ",e.api.config.mfa.label," "))},directives:[qe._Y,qe.JL,qe.F,A.P,Tt.KE,Tt.hX,At.Nt,we.lW],styles:[".mfa-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.mfa-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.mfa-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.mfa-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.mfa-form[_ngcontent-%COMP%]{min-width:80%}}"]}),t})()},{path:"client-download",component:R},{path:"downloads",component:L,canActivate:[O]},{path:"error/:id",component:Be},{path:"about",component:Ue},{path:"ticket/launcher",component:Ze},{path:"**",redirectTo:"services"}];let Ve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[S.Bz.forRoot(je,{relativeLinkResolution:"legacy"})],S.Bz]}),t})();var He=n(8553);let ze=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),Ye=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[z.si,z.BQ,He.Q8,ze],z.BQ,ze]}),t})();var Ge=n(2238),Ke=n(7441);const $e=["*",[["mat-toolbar-row"]]],We=["*","mat-toolbar-row"],Qe=(0,z.pj)(class{constructor(t){this._elementRef=t}});let Je=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),Xe=(()=>{class t extends Qe{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(g.t4),s.Y36(P.K0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,Je,5),2&t){let t;s.iGM(t=s.CRH())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.qOj],ngContentSelectors:We,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t($e),s.Hsn(0),s.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),tn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[z.BQ],z.BQ]}),t})(),en=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:Tt.o2,useValue:{floatLabel:"always"}}],imports:[qe.u5,tn,we.ot,ce,ve,vt,Ge.Is,Tt.lN,At.c,Ke.LD,Ye]}),t})();function nn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(2).changeLang(e)}),s._uU(1),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.name)}}function sn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).admin()}),s.TgZ(1,"i",23),s._uU(2,"dashboard"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4,"Dashboard"),s.qZA(),s.qZA()}}function rn(t,e){1&t&&(s.TgZ(0,"button",28),s.TgZ(1,"i",23),s._uU(2,"file_download"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4,"Downloads"),s.qZA(),s.qZA())}function on(t,e){if(1&t&&(s.TgZ(0,"button",14),s._uU(1),s.qZA()),2&t){s.oxw();const t=s.MAs(8),e=s.oxw();s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.Oqu(e.api.user.user)}}function an(t,e){if(1&t&&(s.TgZ(0,"button",25),s._uU(1),s.TgZ(2,"i",23),s._uU(3,"arrow_drop_down"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(8),e=s.oxw();s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",e.api.user.user," ")}}function ln(t,e){if(1&t){const t=s.EpF();s.ynx(0),s.TgZ(1,"form",1),s._UZ(2,"input",2),s._UZ(3,"input",3),s.qZA(),s.TgZ(4,"mat-menu",null,4),s.YNc(6,nn,2,1,"button",5),s.qZA(),s.TgZ(7,"mat-menu",null,6),s.YNc(9,sn,5,0,"button",7),s.YNc(10,rn,5,0,"button",8),s.TgZ(11,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().logout()}),s.TgZ(12,"i",10),s._uU(13,"exit_to_app"),s.qZA(),s.TgZ(14,"uds-translate"),s._uU(15,"Logout"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(16,"mat-menu",11,12),s.YNc(18,on,2,2,"button",13),s.TgZ(19,"button",14),s._uU(20),s.qZA(),s.TgZ(21,"button",15),s.TgZ(22,"uds-translate"),s._uU(23,"UDS Client"),s.qZA(),s.qZA(),s.TgZ(24,"button",16),s.TgZ(25,"uds-translate"),s._uU(26,"About"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(27,"mat-toolbar",17),s.TgZ(28,"button",18),s._UZ(29,"img",19),s._uU(30),s.qZA(),s._UZ(31,"span",20),s.TgZ(32,"div",21),s.TgZ(33,"button",22),s.TgZ(34,"i",23),s._uU(35,"file_download"),s.qZA(),s.TgZ(36,"uds-translate"),s._uU(37,"UDS Client"),s.qZA(),s.qZA(),s.TgZ(38,"button",24),s.TgZ(39,"i",23),s._uU(40,"info"),s.qZA(),s.TgZ(41,"uds-translate"),s._uU(42,"About"),s.qZA(),s.qZA(),s.TgZ(43,"button",25),s._uU(44),s.TgZ(45,"i",23),s._uU(46,"arrow_drop_down"),s.qZA(),s.qZA(),s.YNc(47,an,4,2,"button",26),s.qZA(),s.TgZ(48,"div",27),s.TgZ(49,"button",25),s.TgZ(50,"i",23),s._uU(51,"menu"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.BQk()}if(2&t){const t=s.MAs(5),e=s.MAs(17),n=s.oxw();s.xp6(1),s.s9C("action",n.api.config.urls.changeLang,s.LSH),s.xp6(1),s.s9C("name",n.api.csrfField),s.s9C("value",n.api.csrfToken),s.xp6(1),s.s9C("value",n.lang.id),s.xp6(3),s.Q6J("ngForOf",n.langs),s.xp6(3),s.Q6J("ngIf",n.api.user.isStaff),s.xp6(1),s.Q6J("ngIf",n.api.user.isStaff),s.xp6(8),s.Q6J("ngIf",n.api.user.isLogged),s.xp6(1),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",n.lang.name," "),s.xp6(9),s.Q6J("src",n.api.staticURL("modern/img/udsicon.png"),s.LSH),s.xp6(1),s.hij(" ",n.api.config.site_logo_name," "),s.xp6(13),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",n.lang.name," "),s.xp6(3),s.Q6J("ngIf",n.api.user.isLogged),s.xp6(2),s.Q6J("matMenuTriggerFor",e)}}let cn=(()=>{class t{constructor(t){this.api=t,this.style="";const e=t.config.language;this.langs=[];for(const n of t.config.available_languages)n.id===e?this.lang=n:this.langs.push(n)}ngOnInit(){}changeLang(t){return this.lang=t,document.getElementById("id_language").attributes.value.value=t.id,document.getElementById("form_language").submit(),!1}admin(){this.api.gotoAdmin()}logout(){this.api.logout()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(t,e){1&t&&s.YNc(0,ln,52,16,"ng-container",0),2&t&&s.Q6J("ngIf",""===e.api.config.urls.launch)},directives:[P.O5,qe._Y,qe.JL,qe.F,ie,P.sg,Xt,A.P,ae,S.rH,Xe,we.lW],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),t})(),un=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(k.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"a",0),s._uU(2),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Q6J("href",e.api.config.site_copyright_link,s.LSH),s.xp6(1),s.Oqu(e.api.config.site_copyright_info))},styles:[""]}),t})(),hn=(()=>{class t{constructor(){this.title="uds"}ngOnInit(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-root"]],decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,e){1&t&&(s._UZ(0,"uds-navbar"),s.TgZ(1,"div",0),s.TgZ(2,"div",1),s._UZ(3,"router-outlet"),s.qZA(),s.TgZ(4,"div",2),s._UZ(5,"uds-footer"),s.qZA(),s.qZA())},directives:[cn,S.lC,un],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),t})();var dn=n(3183);let pn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t,bootstrap:[hn]}),t.\u0275inj=s.cJS({providers:[k.n,dn.h],imports:[[i.b2,_,E.JF,Ve,W.PW,en]]}),t})();n(2340).N.production&&(0,s.G48)(),i.q6().bootstrapModule(pn).catch(t=>console.log(t))}},function(t){t(t.s=6445)}]); \ No newline at end of file +(self.webpackChunkuds=self.webpackChunkuds||[]).push([[179],{8255:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=8255,t.exports=e},7238:function(t,e,n){"use strict";n.d(e,{l3:function(){return r},_j:function(){return i},LC:function(){return s},ZN:function(){return g},jt:function(){return a},pV:function(){return p},F4:function(){return h},IO:function(){return f},vP:function(){return l},SB:function(){return u},oB:function(){return c},eR:function(){return d},X$:function(){return o},ZE:function(){return _},k1:function(){return y}});class i{}class s{}const r="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function u(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t){return{type:5,steps:t}}function d(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function p(t=null){return{type:9,options:t}}function f(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function m(t){Promise.resolve(null).then(t)}class g{constructor(t=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=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){m(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?m(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const y="!"},9238:function(t,e,n){"use strict";n.d(e,{rt:function(){return et},s1:function(){return R},$s:function(){return T},Em:function(){return D},tE:function(){return W},qV:function(){return B},qm:function(){return tt},Kd:function(){return G},X6:function(){return U},yG:function(){return Z}});var i=n(8583),s=n(3018),r=n(9765),o=n(5319),a=n(6215),l=n(5917),c=n(6461),u=n(3342),h=n(4395),d=n(5435),p=n(8002),f=n(5257),m=n(3653),g=n(7519),_=n(6782),y=n(9490),b=n(521),v=n(8553);function w(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const x="cdk-describedby-message-container",C="cdk-describedby-message",E="cdk-describedby-host";let k=0;const S=new Map;let A=null,T=(()=>{class t{constructor(t){this._document=t}describe(t,e,n){if(!this._canBeDescribed(t,e))return;const i=O(e,n);"string"!=typeof e?(P(e),S.set(i,{messageElement:e,referenceCount:0})):S.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}removeDescription(t,e,n){if(!e||!this._isElementNode(t))return;const i=O(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){const t=S.get(i);t&&0===t.referenceCount&&this._deleteMessageElement(i)}A&&0===A.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll(`[${E}]`);for(let e=0;e0!=t.indexOf(C));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=S.get(e);(function(t,e,n){const i=w(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))})(t,"aria-describedby",n.messageElement.id),t.setAttribute(E,""),n.referenceCount++}_removeMessageReference(t,e){const n=S.get(e);n.referenceCount--,function(t,e,n){const i=w(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(E)}_isElementDescribedByMessage(t,e){const n=w(t,"aria-describedby"),i=S.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.K0))},token:t,providedIn:"root"}),t})();function O(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function P(t){t.id||(t.id=`${C}-${k++}`)}class I{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new r.xQ,this._typeaheadSubscription=o.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new r.xQ,this.change=new r.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,u.b)(t=>this._pressedLetters.push(t)),(0,h.b)(t),(0,d.h)(()=>this._pressedLetters.length>0),(0,p.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.Mf:return void this.tabOut.next();case c.JH:if(this._vertical&&n){this.setNextItemActive();break}return;case c.LH:if(this._vertical&&n){this.setPreviousItemActive();break}return;case c.SV:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.oh:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.Sd:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case c.uR:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||(0,c.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.A&&e<=c.Z||e>=c.xE&&e<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class R extends I{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class D extends I{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let M=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}(function(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(t));if(e&&(-1===F(e)||!this.isVisible(e)))return!1;let n=t.nodeName.toLowerCase(),i=F(t);return t.hasAttribute("contenteditable")?-1!==i:!("iframe"===n||"object"===n||this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==i:"video"===n?-1!==i&&(null!==i||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||L(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4))},token:t,providedIn:"root"}),t})();function L(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function F(t){if(!L(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class N{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(t)}}let B=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new N(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(M),s.LFG(s.R0b),s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(M),s.LFG(s.R0b),s.LFG(i.K0))},token:t,providedIn:"root"}),t})();function U(t){return 0===t.offsetX&&0===t.offsetY}function Z(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&∈const q=new s.OlP("cdk-input-modality-detector-options"),j={ignoreKeys:[c.zL,c.jx,c.b2,c.MW,c.JU]},V=(0,b.i$)({passive:!0,capture:!0});let H=(()=>{class t{constructor(t,e,n,i){this._platform=t,this._mostRecentTarget=null,this._modality=new a.X(null),this._lastTouchMs=0,this._onKeydown=t=>{var e,n;(null===(n=null===(e=this._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some(e=>e===t.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,b.sA)(t))},this._onMousedown=t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(U(t)?"keyboard":"mouse"),this._mostRecentTarget=(0,b.sA)(t))},this._onTouchstart=t=>{Z(t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,b.sA)(t))},this._options=Object.assign(Object.assign({},j),i),this.modalityDetected=this._modality.pipe((0,m.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,g.x)()),t.isBrowser&&e.runOutsideAngular(()=>{n.addEventListener("keydown",this._onKeydown,V),n.addEventListener("mousedown",this._onMousedown,V),n.addEventListener("touchstart",this._onTouchstart,V)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,V),document.removeEventListener("mousedown",this._onMousedown,V),document.removeEventListener("touchstart",this._onTouchstart,V))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4),s.LFG(s.R0b),s.LFG(i.K0),s.LFG(q,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4),s.LFG(s.R0b),s.LFG(i.K0),s.LFG(q,8))},token:t,providedIn:"root"}),t})();const z=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Y=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let G=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),n=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,n,i,s){this._ngZone=t,this._platform=e,this._inputModalityDetector=n,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new r.xQ,this._rootNodeFocusAndBlurListener=t=>{const e=(0,b.sA)(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=i,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,e=!1){const n=(0,y.fI)(t);if(!this._platform.isBrowser||1!==n.nodeType)return(0,l.of)(null);const i=(0,b.kV)(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new r.xQ,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=(0,y.fI)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=(0,y.fI)(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOrigin(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOrigin(t,e=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&e,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,e){const n=this._elementInfo.get(e),i=(0,b.sA)(t);!n||!n.checkChildren&&e!==i||this._originChanged(e,this._getFocusOrigin(i),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,$),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,$)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,_.R)(this._stopInputModalityDetector)).subscribe(t=>{this._setOrigin(t,!0)}))}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,$),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,$),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(b.t4),s.LFG(H),s.LFG(i.K0,8),s.LFG(K,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(b.t4),s.LFG(H),s.LFG(i.K0,8),s.LFG(K,8))},token:t,providedIn:"root"}),t})();const Q="cdk-high-contrast-black-on-white",J="cdk-high-contrast-white-on-black",X="cdk-high-contrast-active";let tt=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(X),t.remove(Q),t.remove(J),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(X),t.add(Q)):2===e&&(t.add(X),t.add(J))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4),s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4),s.LFG(i.K0))},token:t,providedIn:"root"}),t})(),et=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(tt))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ud,v.Q8]]}),t})()},946:function(t,e,n){"use strict";n.d(e,{vT:function(){return a},Is:function(){return o}});var i=n(3018),s=n(8583);const r=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,i.f3M)(s.K0)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.vpe,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(r,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(r,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},8345:function(t,e,n){"use strict";n.d(e,{P3:function(){return l},Ov:function(){return u},A8:function(){return h},eX:function(){return c},k:function(){return d},Z9:function(){return a}});var i=n(5639),s=n(5917),r=n(9765),o=n(3018);function a(t){return t&&"function"==typeof t.connect}class l extends class{}{constructor(t){super(),this._data=t}connect(){return(0,i.b)(this._data)?this._data:(0,s.of)(this._data)}disconnect(){}}class c{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,s){t.forEachOperation((t,r,o)=>{let a,l;null==t.previousIndex?(a=this._insertView(()=>n(t,r,o),o,e,i(t)),l=a?1:0):null==o?(this._detachAndCacheView(r,e),l=3):(a=this._moveView(r,o,e,i(t)),l=2),s&&s({context:null==a?void 0:a.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,n,i){const s=this._insertViewFromCache(e,n);if(s)return void(s.context.$implicit=i);const r=t();return n.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(t,e){const n=e.detach(t);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const s=n.get(t);return n.move(s,e),s.context.$implicit=i,s}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let h=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const d=new o.OlP("_ViewRepeater")},6461:function(t,e,n){"use strict";n.d(e,{A:function(){return y},zL:function(){return a},jx:function(){return o},JH:function(){return m},uR:function(){return u},K5:function(){return s},hY:function(){return l},Sd:function(){return h},oh:function(){return d},b2:function(){return w},MW:function(){return v},aO:function(){return _},SV:function(){return f},JU:function(){return r},L_:function(){return c},Mf:function(){return i},LH:function(){return p},Z:function(){return b},xE:function(){return g},Vb:function(){return x}});const i=9,s=13,r=16,o=17,a=18,l=27,c=32,u=35,h=36,d=37,p=38,f=39,m=40,g=48,_=57,y=65,b=90,v=91,w=224;function x(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},8553:function(t,e,n){"use strict";n.d(e,{wD:function(){return u},yq:function(){return c},Q8:function(){return h}});var i=n(9490),s=n(3018),r=n(7574),o=n(9765),a=n(4395);let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=(0,i.fI)(t);return new r.y(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.xQ,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(l))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(l))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,i.Ig)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=(0,i.su)(t),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,a.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[l]}),t})()},625:function(t,e,n){"use strict";n.d(e,{pI:function(){return J},xu:function(){return Q},aV:function(){return K},X_:function(){return A},Xj:function(){return L},U8:function(){return tt}});var i=n(9243),s=n(3018),r=n(521),o=n(946),a=n(8583),l=n(9490),c=n(7636),u=n(9765),h=n(5319),d=n(6682),p=n(7393);class f{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new m(t,this.predicate,this.inclusive))}}class m extends p.L{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}var g=n(5257),_=n(6782),y=n(6461);const b=(0,r.Mq)();class v{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=(0,l.HM)(-this._previousScrollPosition.left),t.style.top=(0,l.HM)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),b&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),b&&(e.scrollBehavior=i,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class w{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class x{enable(){}disable(){}attach(){}}function C(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function E(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class k{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();C(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let S=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new x,this.close=t=>new w(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new v(this._viewportRuler,this._document),this.reposition=t=>new k(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.mF),s.LFG(i.rL),s.LFG(s.R0b),s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.mF),s.LFG(i.rL),s.LFG(s.R0b),s.LFG(a.K0))},token:t,providedIn:"root"}),t})();class A{constructor(t){if(this.scrollStrategy=new x,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class T{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class O{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let P=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends P{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),R=(()=>{class t extends P{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=(0,r.sA)(t),n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0),s.LFG(r.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0),s.LFG(r.t4))},token:t,providedIn:"root"}),t})();const D="undefined"!=typeof window?window:{},M=void 0!==D.__karma__&&!!D.__karma__||void 0!==D.jasmine&&!!D.jasmine||void 0!==D.jest&&!!D.jest||void 0!==D.Mocha&&!!D.Mocha;let L=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||M){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new u.xQ,this._outsidePointerEvents=new u.xQ,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=(0,l.HM)(this._config.width),t.height=(0,l.HM)(this._config.height),t.minWidth=(0,l.HM)(this._config.minWidth),t.minHeight=(0,l.HM)(this._config.minHeight),t.maxWidth=(0,l.HM)(this._config.maxWidth),t.maxHeight=(0,l.HM)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(!t)return;let e,n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;(0,l.Eq)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe((0,_.R)((0,d.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const N="cdk-overlay-connected-position-bounding-box",B=/([A-Za-z%]+)$/;class U{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new u.xQ,this._resizeSubscription=h.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(N),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Z(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(N),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){const s=j(e);let{x:r,y:o}=t,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(r+=a),l&&(o+=l);let c=0-o,u=o+s.height-n.height,h=this._subtractOverflows(s.width,0-r,r+s.width-n.width),d=this._subtractOverflows(s.height,c,u),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=q(this._overlayRef.getConfig().minHeight),o=q(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=j(e),s=this._viewportRect,r=Math.max(t.x+i.width-s.width,0),o=Math.max(t.y+i.height-s.height,0),a=Math.max(s.top-n.top-t.y,0),l=Math.max(s.left-n.left-t.x,0);let c=0,u=0;return c=i.width<=s.width?l||-r:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=(0,l.HM)(n.height),i.top=(0,l.HM)(n.top),i.bottom=(0,l.HM)(n.bottom),i.width=(0,l.HM)(n.width),i.left=(0,l.HM)(n.left),i.right=(0,l.HM)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=(0,l.HM)(t)),s&&(i.maxWidth=(0,l.HM)(s))}this._lastBoundingBoxSize=n,Z(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Z(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Z(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();Z(n,this._getExactOverlayY(e,t,i)),Z(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=(0,l.HM)(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=(0,l.HM)(r.maxWidth):s&&(n.maxWidth="")),Z(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=(0,l.HM)(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=(0,l.HM)(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:E(t,n),isOriginOutsideView:C(t,n),isOverlayClipped:E(e,n),isOverlayOutsideView:C(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&(0,l.Eq)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function Z(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function q(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(B);return n&&"px"!==n?null:parseFloat(e)}return t||null}function j(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class V{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new U(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new T(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const H="cdk-global-overlay-wrapper";class z{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(H),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(H),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Y=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new z}connectedTo(t,e,n){return new V(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new U(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.rL),s.LFG(a.K0),s.LFG(r.t4),s.LFG(L))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.rL),s.LFG(a.K0),s.LFG(r.t4),s.LFG(L))},token:t,providedIn:"root"}),t})(),G=0,K=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new A(t);return s.direction=s.direction||this._directionality.value,new F(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+G++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new c.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(S),s.LFG(L),s.LFG(s._Vd),s.LFG(Y),s.LFG(I),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(o.Is),s.LFG(a.Ye),s.LFG(R))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const $=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],W=new s.OlP("cdk-connected-overlay-scroll-strategy");let Q=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),J=(()=>{class t{constructor(t,e,n,i,r){this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.vpe,this.positionChange=new s.vpe,this.attach=new s.vpe,this.detach=new s.vpe,this.overlayKeydown=new s.vpe,this.overlayOutsideClick=new s.vpe,this._templatePortal=new c.UE(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,l.Ig)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=(0,l.Ig)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=(0,l.Ig)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=(0,l.Ig)(t)}get push(){return this._push}set push(t){this._push=(0,l.Ig)(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=$);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode===y.hY&&!this.disableClose&&!(0,y.Vb)(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new A({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return n=>n.lift(new f(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(K),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(W),s.Y36(o.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.TTD]}),t})();const X={provide:W,deps:[K],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[K,X],imports:[[o.vT,c.eL,i.Cl],i.Cl]}),t})()},521:function(t,e,n){"use strict";n.d(e,{t4:function(){return a},ud:function(){return l},sA:function(){return v},ht:function(){return b},kV:function(){return y},_i:function(){return _},qK:function(){return u},i$:function(){return m},Mq:function(){return g}});var i=n(3018),s=n(8583);let r;try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(w){r=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,s.NF)(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&&!r)&&"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)(i.LFG(i.Lbi))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(i.Lbi))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(c),o;let t=document.createElement("input");return o=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let h,d,p,f;function m(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function g(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if("scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p}function _(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function y(t){if(function(){if(null==f){const t="undefined"!=typeof document?document.head:null;f=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function b(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function v(t){return t.composedPath?t.composedPath()[0]:t.target}},7636:function(t,e,n){"use strict";n.d(e,{en:function(){return c},Pl:function(){return h},C5:function(){return o},u0:function(){return u},eL:function(){return d},UE:function(){return a}});var i=n(3018),s=n(8583);class r{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class o extends r{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class a extends r{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class l extends r{constructor(t){super(),this.element=t instanceof i.SBq?t.nativeElement:t}}class c{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof o?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class u extends c{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let h=(()=>{class t extends c{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(s.K0))},t.\u0275dir=i.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},9243:function(t,e,n){"use strict";n.d(e,{ZD:function(){return y},mF:function(){return g},Cl:function(){return b},rL:function(){return _}});var i=n(9490),s=n(3018),r=n(6465),o=n(6102);new class extends o.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});var a=n(9765),l=n(5917),c=n(7574),u=n(2759);n(4581);n(5319),n(5639),n(7393),new class extends o.v{}(class extends r.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}),n(1593),n(7971),n(8858),n(7519);var h=n(628),d=n(5435),p=(n(6782),n(9761),n(3190),n(521)),f=n(8583),m=n(946);n(8345);let g=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new a.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new c.y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe((0,h.e)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,l.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,d.h)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=(0,i.fI)(e),s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return(0,u.R)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(p.t4),s.LFG(f.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(p.t4),s.LFG(f.K0,8))},token:t,providedIn:"root"}),t})(),_=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new a.xQ,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe((0,h.e)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(p.t4),s.LFG(s.R0b),s.LFG(f.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(p.t4),s.LFG(s.R0b),s.LFG(f.K0,8))},token:t,providedIn:"root"}),t})(),y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[m.vT,p.ud,y],m.vT,y]}),t})()},9490:function(t,e,n){"use strict";n.d(e,{Eq:function(){return o},Ig:function(){return s},HM:function(){return a},fI:function(){return l},su:function(){return r}});var i=n(3018);function s(t){return null!=t&&"false"!=`${t}`}function r(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function o(t){return Array.isArray(t)?t:[t]}function a(t){return null==t?"":"string"==typeof t?t:`${t}px`}function l(t){return t instanceof i.SBq?t.nativeElement:t}},8583:function(t,e,n){"use strict";n.d(e,{mr:function(){return v},Ov:function(){return Y},ez:function(){return G},K0:function(){return l},Do:function(){return x},V_:function(){return h},Ye:function(){return C},S$:function(){return y},mk:function(){return I},sg:function(){return D},O5:function(){return L},RF:function(){return U},n9:function(){return Z},ED:function(){return q},b0:function(){return w},lw:function(){return c},EM:function(){return W},JF:function(){return X},NF:function(){return $},w_:function(){return a},bD:function(){return K},q:function(){return r},Mx:function(){return P},HT:function(){return o}});var i=n(3018);let s=null;function r(){return s}function o(t){s||(s=t)}class a{}const l=new i.OlP("DocumentToken");let c=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return(0,i.LFG)(d)}const h=new i.OlP("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return r().getBaseHref(this._doc)}onPopState(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(l))},t.\u0275prov=(0,i.Yz7)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d((0,i.LFG)(l))}function m(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function _(t){return t&&"?"!==t[0]?"?"+t:t}let y=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:b,token:t,providedIn:"root"}),t})();function b(t){const e=(0,i.LFG)(l).location;return new w((0,i.LFG)(c),e&&e.origin||"")}const v=new i.OlP("appBaseHref");let w=(()=>{class t extends y{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+_(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+_(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+_(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(v,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t extends y{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+_(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+_(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(v,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e){this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(k(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+_(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,k(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(y),i.LFG(c))},t.normalizeQueryParams=_,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=(0,i.Yz7)({factory:E,token:t,providedIn:"root"}),t})();function E(){return new C((0,i.LFG)(y),(0,i.LFG)(c))}function k(t){return t.replace(/\/index.html$/,"")}var S=(()=>((S=S||{})[S.Zero=0]="Zero",S[S.One=1]="One",S[S.Two=2]="Two",S[S.Few=3]="Few",S[S.Many=4]="Many",S[S.Other=5]="Other",S))();const A=i.kL8;class T{}let O=(()=>{class t extends T{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(A(e||this.locale)(t)){case S.Zero:return"zero";case S.One:return"one";case S.Two:return"two";case S.Few:return"few";case S.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.soG))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function P(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let I=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class R{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 D=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(t){return t.name||typeof t}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new R(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new M(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new M(t,s);e.push(r)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class M{constructor(t,e){this.record=t,this.view=e}}let L=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new F,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){N("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){N("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class F{constructor(){this.$implicit=null,this.ngIf=null}}function N(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.AaK)(e)}'.`)}class B{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let U=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new B(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(U,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),q=(()=>{class t{constructor(t,e,n){n._addDefault(new B(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(U,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})();class j{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class V{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const H=new V,z=new j;let Y=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,i.QGY)(e))return H;if((0,i.F4k)(e))return z;throw function(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,i.AaK)(t)}'`)}(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO,16))},t.\u0275pipe=i.Yjl({name:"async",type:t,pure:!1}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:T,useClass:O}]}),t})();const K="browser";function $(t){return t===K}let W=(()=>{class t{}return t.\u0275prov=(0,i.Yz7)({token:t,providedIn:"root",factory:()=>new Q((0,i.LFG)(l),window)}),t})();class Q{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=J(this.window.history)||J(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function J(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class X{}},1841:function(t,e,n){"use strict";n.d(e,{eN:function(){return P},JF:function(){return V}});var i=n(8583),s=n(3018),r=n(5917),o=n(7574),a=n(4612),l=n(5435),c=n(8002);class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return g(t)}encodeValue(t){return g(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const f=/%(\d[a-f0-9])/gi,m={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function g(t){return encodeURIComponent(t).replace(f,(t,e)=>{var n;return null!==(n=m[e])&&void 0!==n?n:t})}function _(t){return`${t}`}class y{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new y({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(_(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(_(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class b{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function v(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function w(t){return"undefined"!=typeof Blob&&t instanceof Blob}function x(t){return"undefined"!=typeof FormData&&t instanceof FormData}class C{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new b),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new C(n,i,r,{params:c,headers:l,context:u,reportProgress:a,responseType:s,withCredentials:o})}}var E=(()=>((E=E||{})[E.Sent=0]="Sent",E[E.UploadProgress=1]="UploadProgress",E[E.ResponseHeader=2]="ResponseHeader",E[E.DownloadProgress=3]="DownloadProgress",E[E.Response=4]="Response",E[E.User=5]="User",E))();class k{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class S extends k{constructor(t={}){super(t),this.type=E.ResponseHeader}clone(t={}){return new S({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class A extends k{constructor(t={}){super(t),this.type=E.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new A({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class T extends k{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function O(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let P=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof C)i=t;else{let s,r;s=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(r=n.params instanceof y?n.params:new y({fromObject:n.params})),i=new C(t,e,void 0!==n.body?n.body:null,{headers:s,context:n.context,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=(0,r.of)(i).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof C||"events"===n.observe)return s;const o=s.pipe((0,l.h)(t=>t instanceof A));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe((0,c.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe((0,c.U)(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new y).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,O(n,e))}post(t,e,n={}){return this.request("POST",t,O(n,e))}put(t,e,n={}){return this.request("PUT",t,O(n,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(u))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class I{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const R=new s.OlP("HTTP_INTERCEPTORS");let D=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const M=/^\)\]\}',?\n/;let L=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new S({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(M,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new A({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new T({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new T({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:E.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&!!n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:E.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:E.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const F=new s.OlP("XSRF_COOKIE_NAME"),N=new s.OlP("XSRF_HEADER_NAME");class B{}let U=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0),s.LFG(s.Lbi),s.LFG(F))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null!==i&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(B),s.LFG(N))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),q=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(R,[]);this.chain=t.reduceRight((t,e)=>new I(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Z,useClass:D}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:F,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Z,{provide:R,useExisting:Z,multi:!0},{provide:B,useClass:U},{provide:F,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[P,{provide:u,useClass:q},L,{provide:h,useExisting:L}],imports:[[j.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},3018:function(t,e,n){"use strict";n.d(e,{deG:function(){return un},tb:function(){return tc},AFp:function(){return $l},ip1:function(){return Gl},CZH:function(){return Kl},hGG:function(){return Gc},z2F:function(){return Nc},sBO:function(){return Wa},Sil:function(){return hc},_Vd:function(){return va},EJc:function(){return ic},SBq:function(){return Ea},qLn:function(){return Di},vpe:function(){return Tl},gxx:function(){return wr},tBr:function(){return Ln},XFs:function(){return R},OlP:function(){return cn},zs3:function(){return Fr},ZZ4:function(){return Va},aQg:function(){return za},soG:function(){return nc},YKP:function(){return ol},v3s:function(){return Uc},h0i:function(){return rl},PXZ:function(){return Rc},R0b:function(){return fc},FiY:function(){return Fn},Lbi:function(){return Xl},g9A:function(){return Jl},n_E:function(){return Pl},Qsj:function(){return Aa},FYo:function(){return Sa},JOm:function(){return Fi},Tiy:function(){return Oa},q3G:function(){return Ei},tp0:function(){return Nn},EAV:function(){return jc},Rgc:function(){return el},dDg:function(){return wc},DyG:function(){return hn},GfV:function(){return Pa},s_b:function(){return ll},ifc:function(){return B},eFA:function(){return Dc},G48:function(){return Oc},Gpc:function(){return m},f3M:function(){return Pn},X6Q:function(){return Tc},_c5:function(){return zc},VLi:function(){return Ec},c2e:function(){return ec},zSh:function(){return Cr},wAp:function(){return ra},vHH:function(){return y},EiD:function(){return xi},mCW:function(){return oi},qzn:function(){return $n},JVY:function(){return Qn},pB0:function(){return ei},eBb:function(){return Xn},L6k:function(){return Jn},LAX:function(){return ti},cg1:function(){return na},Tjo:function(){return Hc},kL8:function(){return ia},yhl:function(){return Wn},dqk:function(){return V},sIi:function(){return Yr},CqO:function(){return po},QGY:function(){return uo},F4k:function(){return ho},RDi:function(){return Tt},AaK:function(){return d},z3N:function(){return Kn},qOj:function(){return Br},TTD:function(){return vt},_Bn:function(){return ga},xp6:function(){return Cs},uIk:function(){return Wr},Tol:function(){return Do},Gre:function(){return Wo},ekj:function(){return Ro},Suo:function(){return jl},Xpm:function(){return tt},lG2:function(){return at},Yz7:function(){return C},cJS:function(){return E},oAB:function(){return st},Yjl:function(){return lt},Y36:function(){return eo},_UZ:function(){return oo},BQk:function(){return lo},ynx:function(){return ao},qZA:function(){return ro},TgZ:function(){return so},EpF:function(){return co},n5z:function(){return sn},Ikx:function(){return Qo},LFG:function(){return On},$8M:function(){return on},NdJ:function(){return fo},CRH:function(){return Vl},kcU:function(){return xe},O4$:function(){return we},oxw:function(){return bo},ALo:function(){return kl},lcZ:function(){return Sl},Hsn:function(){return xo},F$t:function(){return wo},Q6J:function(){return no},s9C:function(){return Co},VKq:function(){return Cl},iGM:function(){return Zl},MAs:function(){return to},CHM:function(){return Gt},oJD:function(){return ki},LSH:function(){return Si},kYT:function(){return rt},Udp:function(){return Io},WFA:function(){return mo},d8E:function(){return Jo},YNc:function(){return Xr},_uU:function(){return zo},Oqu:function(){return Yo},hij:function(){return Go},AsE:function(){return Ko},lnq:function(){return $o},Gf:function(){return ql}});var i=n(9765),s=n(5319),r=n(7574),o=n(6682),a=n(2441);var l=n(1307);function c(){return new i.xQ}function u(t){for(let e in t)if(t[e]===u)return e;throw Error("Could not find renamed property on target object.")}function h(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function d(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(d).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function p(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const f=u({__forward_ref__:u});function m(t){return t.__forward_ref__=m,t.toString=function(){return d(this())},t}function g(t){return _(t)?t():t}function _(t){return"function"==typeof t&&t.hasOwnProperty(f)&&t.__forward_ref__===m}class y extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function b(t){return"string"==typeof t?t:null==t?"":String(t)}function v(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():b(t)}function w(t,e){const n=e?` in ${e}`:"";throw new y("201",`No provider for ${v(t)} found${n}`)}function x(t,e){null==t&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${n} ${i} ${e} <=Actual]`))}(e,t,null,"!=")}function C(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function E(t){return{providers:t.providers||[],imports:t.imports||[]}}function k(t){return S(t,T)||S(t,P)}function S(t,e){return t.hasOwnProperty(e)?t[e]:null}function A(t){return t&&(t.hasOwnProperty(O)||t.hasOwnProperty(I))?t[O]:null}const T=u({"\u0275prov":u}),O=u({"\u0275inj":u}),P=u({ngInjectableDef:u}),I=u({ngInjectorDef:u});var R=(()=>((R=R||{})[R.Default=0]="Default",R[R.Host=1]="Host",R[R.Self=2]="Self",R[R.SkipSelf=4]="SkipSelf",R[R.Optional=8]="Optional",R))();let D;function M(t){const e=D;return D=t,e}function L(t,e,n){const i=k(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&R.Optional?null:void 0!==e?e:void w(d(t),"Injector")}function F(t){return{toString:t}.toString()}var N=(()=>((N=N||{})[N.OnPush=0]="OnPush",N[N.Default=1]="Default",N))(),B=(()=>((B=B||{})[B.Emulated=0]="Emulated",B[B.None=2]="None",B[B.ShadowDom=3]="ShadowDom",B))();const U="undefined"!=typeof globalThis&&globalThis,Z="undefined"!=typeof window&&window,q="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,V=U||j||Z||q,H={},z=[],Y=u({"\u0275cmp":u}),G=u({"\u0275dir":u}),K=u({"\u0275pipe":u}),$=u({"\u0275mod":u}),W=u({"\u0275loc":u}),Q=u({"\u0275fac":u}),J=u({__NG_ELEMENT_ID__:u});let X=0;function tt(t){return F(()=>{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===N.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||z,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||B.Emulated,id:"c",styles:t.styles||z,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=X++,n.inputs=ot(t.inputs,e),n.outputs=ot(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(et):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(nt):null,n})}function et(t){return ct(t)||function(t){return t[G]||null}(t)}function nt(t){return function(t){return t[K]||null}(t)}const it={};function st(t){return F(()=>{const e={type:t.type,bootstrap:t.bootstrap||z,declarations:t.declarations||z,imports:t.imports||z,exports:t.exports||z,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(it[t.id]=t.type),e})}function rt(t,e){return F(()=>{const n=ut(t,!0);n.declarations=e.declarations||z,n.imports=e.imports||z,n.exports=e.exports||z})}function ot(t,e){if(null==t)return H;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const at=tt;function lt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ct(t){return t[Y]||null}function ut(t,e){const n=t[$]||null;if(!n&&!0===e)throw new Error(`Type ${d(t)} does not have '\u0275mod' property.`);return n}function ht(t){return Array.isArray(t)&&"object"==typeof t[1]}function dt(t){return Array.isArray(t)&&!0===t[1]}function pt(t){return 0!=(8&t.flags)}function ft(t){return 2==(2&t.flags)}function mt(t){return 1==(1&t.flags)}function gt(t){return null!==t.template}function _t(t){return 0!=(512&t[2])}function yt(t,e){return t.hasOwnProperty(Q)?t[Q]:null}class bt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function vt(){return wt}function wt(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ct),xt}function xt(){const t=kt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===H)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Ct(t,e,n,i){const s=kt(t)||function(t,e){return t[Et]=e}(t,{previous:H,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new bt(l&&l.currentValue,e,o===H),t[i]=e}vt.ngInherit=!0;const Et="__ngSimpleChanges__";function kt(t){return t[Et]||null}const St="http://www.w3.org/2000/svg";let At;function Tt(t){At=t}function Ot(){return void 0!==At?At:"undefined"!=typeof document?document:void 0}function Pt(t){return!!t.listen}const It={createRenderer:(t,e)=>Ot()};function Rt(t){for(;Array.isArray(t);)t=t[0];return t}function Dt(t,e){return Rt(e[t])}function Mt(t,e){return Rt(e[t.index])}function Lt(t,e){return t.data[e]}function Ft(t,e){return t[e]}function Nt(t,e){const n=e[t];return ht(n)?n:n[0]}function Bt(t){return 4==(4&t[2])}function Ut(t){return 128==(128&t[2])}function Zt(t,e){return null==e?null:t[e]}function qt(t){t[18]=0}function jt(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Vt={lFrame:fe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ht(){return Vt.bindingsEnabled}function zt(){return Vt.lFrame.lView}function Yt(){return Vt.lFrame.tView}function Gt(t){return Vt.lFrame.contextLView=t,t[8]}function Kt(){let t=$t();for(;null!==t&&64===t.type;)t=t.parent;return t}function $t(){return Vt.lFrame.currentTNode}function Wt(t,e){const n=Vt.lFrame;n.currentTNode=t,n.isParent=e}function Qt(){return Vt.lFrame.isParent}function Jt(){Vt.lFrame.isParent=!1}function Xt(){return Vt.isInCheckNoChangesMode}function te(t){Vt.isInCheckNoChangesMode=t}function ee(){const t=Vt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ne(){return Vt.lFrame.bindingIndex}function ie(){return Vt.lFrame.bindingIndex++}function se(t){const e=Vt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function re(t,e){const n=Vt.lFrame;n.bindingIndex=n.bindingRootIndex=t,oe(e)}function oe(t){Vt.lFrame.currentDirectiveIndex=t}function ae(t){const e=Vt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function le(){return Vt.lFrame.currentQueryIndex}function ce(t){Vt.lFrame.currentQueryIndex=t}function ue(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function he(t,e,n){if(n&R.SkipSelf){let i=e,s=t;for(;!(i=i.parent,null!==i||n&R.Host||(i=ue(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;e=i,t=s}const i=Vt.lFrame=pe();return i.currentTNode=e,i.lView=t,!0}function de(t){const e=pe(),n=t[1];Vt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function pe(){const t=Vt.lFrame,e=null===t?null:t.child;return null===e?fe(t):e}function fe(t){const e={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=e),e}function me(){const t=Vt.lFrame;return Vt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ge=me;function _e(){const t=me();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 ye(){return Vt.lFrame.selectedIndex}function be(t){Vt.lFrame.selectedIndex=t}function ve(){const t=Vt.lFrame;return Lt(t.tView,t.selectedIndex)}function we(){Vt.lFrame.currentNamespace=St}function xe(){Vt.lFrame.currentNamespace=null}function Ce(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}class Oe{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Pe(t,e,n){const i=Pt(t);let s=0;for(;se){o=r-1;break}}}for(;r>16}(t),i=e;for(;n>0;)i=i[15],n--;return i}let Be=!0;function Ue(t){const e=Be;return Be=t,e}let Ze=0;function qe(t,e){const n=Ve(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,je(i.data,t),je(e,null),je(i.blueprint,null));const s=He(t,e),r=t.injectorIndex;if(Le(s)){const t=Fe(s),n=Ne(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function je(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ve(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function He(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function ze(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(i=n[J]),null==i&&(i=n[J]=Ze++);const s=255&i;e.data[t+(s>>5)]|=1<=0?255&e:We:e}(n);if("function"==typeof r){if(!he(e,t,i))return i&R.Host?Ye(s,n,i):Ge(e,n,i,s);try{const t=r(i);if(null!=t||i&R.Optional)return t;w(n)}finally{ge()}}else if("number"==typeof r){let s=null,o=Ve(t,e),a=-1,l=i&R.Host?e[16][6]:null;for((-1===o||i&R.SkipSelf)&&(a=-1===o?He(t,e):e[o+8],-1!==a&&en(i,!1)?(s=e[1],o=Fe(a),e=Ne(a,e)):o=-1);-1!==o;){const t=e[1];if(tn(r,o,t.data)){const t=Qe(o,e,n,s,i,l);if(t!==$e)return t}a=e[o+8],-1!==a&&en(i,e[1].data[o+8]===l)&&tn(r,o,e)?(s=t,o=Fe(a),e=Ne(a,e)):o=-1}}}return Ge(e,n,i,s)}const $e={};function We(){return new nn(Kt(),zt())}function Qe(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=Je(a,o,n,null==i?ft(a)&&Be:i!=o&&0!=(3&a.type),s&R.Host&&r===a);return null!==l?Xe(e,o,l,a):$e}function Je(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,u=s?a+c:t.directiveEnd;for(let h=i?a:a+c;h=l&&t.type===n)return h}if(s){const t=o[l];if(t&>(t)&&t.type===n)return l}return null}function Xe(t,e,n,i){let s=t[n];const r=e.data;if(function(t){return t instanceof Oe}(s)){const o=s;o.resolving&&function(t,e){throw new y("200",`Circular dependency in DI detected for ${t}`)}(v(r[n]));const a=Ue(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?M(o.injectImpl):null;he(t,i,R.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=wt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&M(l),Ue(a),o.resolving=!1,ge()}}return s}function tn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Q]||rn(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Q]||rn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function rn(t){return _(t)?()=>{const e=rn(g(t));return e&&e()}:yt(t)}function on(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty(an)?t[an]:Object.defineProperty(t,an,{value:[]})[an];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class cn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=C({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const un=new cn("AnalyzeForEntryComponents"),hn=Function;function dn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?pn(t,e):e(t))}function fn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function mn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function gn(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function yn(t,e){const n=bn(t,e);if(n>=0)return t[1|n]}function bn(t,e){return function(t,e,n){let i=0,s=t.length>>n;for(;s!==i;){const r=i+(s-i>>1),o=t[r<e?s=r:i=r+1}return~(s< ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):d(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(Cn,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t[xn]=null,t}const Ln=Rn(ln("Inject",t=>({token:t})),-1),Fn=Rn(ln("Optional"),8),Nn=Rn(ln("SkipSelf"),4);let Bn,Un;function Zn(t){var e;return(null===(e=function(){if(void 0===Bn&&(Bn=null,V.trustedTypes))try{Bn=V.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Bn}())||void 0===e?void 0:e.createHTML(t))||t}function qn(t){var e;return(null===(e=function(){if(void 0===Un&&(Un=null,V.trustedTypes))try{Un=V.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Un}())||void 0===e?void 0:e.createHTML(t))||t}class jn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Vn extends jn{getTypeName(){return"HTML"}}class Hn extends jn{getTypeName(){return"Style"}}class zn extends jn{getTypeName(){return"Script"}}class Yn extends jn{getTypeName(){return"URL"}}class Gn extends jn{getTypeName(){return"ResourceURL"}}function Kn(t){return t instanceof jn?t.changingThisBreaksApplicationSecurity:t}function $n(t,e){const n=Wn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Wn(t){return t instanceof jn&&t.getTypeName()||null}function Qn(t){return new Vn(t)}function Jn(t){return new Hn(t)}function Xn(t){return new zn(t)}function ti(t){return new Yn(t)}function ei(t){return new Gn(t)}class ni{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Zn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class ii{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Zn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Zn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0oi(t.trim())).join(", ")),this.buf.push(" ",e,'="',vi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();di.hasOwnProperty(e)&&!ci.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(vi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const yi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bi=/([^\#-~ |!])/g;function vi(t){return t.replace(/&/g,"&").replace(yi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(bi,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let wi;function xi(t,e){let n=null;try{wi=wi||function(t){const e=new ii(t);return function(){try{return!!(new window.DOMParser).parseFromString(Zn(""),"text/html")}catch(t){return!1}}()?new ni(e):e}(t);let i=e?String(e):"";n=wi.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=wi.getInertBodyElement(i)}while(i!==r);return Zn((new _i).sanitizeChildren(Ci(n)||n))}finally{if(n){const t=Ci(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Ci(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ei=(()=>((Ei=Ei||{})[Ei.NONE=0]="NONE",Ei[Ei.HTML=1]="HTML",Ei[Ei.STYLE=2]="STYLE",Ei[Ei.SCRIPT=3]="SCRIPT",Ei[Ei.URL=4]="URL",Ei[Ei.RESOURCE_URL=5]="RESOURCE_URL",Ei))();function ki(t){const e=Ai();return e?qn(e.sanitize(Ei.HTML,t)||""):$n(t,"HTML")?qn(Kn(t)):xi(Ot(),b(t))}function Si(t){const e=Ai();return e?e.sanitize(Ei.URL,t)||"":$n(t,"URL")?Kn(t):oi(b(t))}function Ai(){const t=zt();return t&&t[12]}const Ti="__ngContext__";function Oi(t,e){t[Ti]=e}function Pi(t){const e=function(t){return t[Ti]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ii(t){return t.ngOriginalError}function Ri(t,...e){t.error(...e)}class Di{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=(s=t)&&s.ngErrorLogger||Ri;var s;i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?t.ngDebugContext||this._findContext(Ii(t)):null}_findOriginalError(t){let e=t&&Ii(t);for(;e&&Ii(e);)e=Ii(e);return e||null}}const Mi=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(V))();function Li(t){return t instanceof Function?t():t}var Fi=(()=>((Fi=Fi||{})[Fi.Important=1]="Important",Fi[Fi.DashCase=2]="DashCase",Fi))();function Ni(t,e){return undefined(t,e)}function Bi(t){const e=t[3];return dt(e)?e[3]:e}function Ui(t){return qi(t[13])}function Zi(t){return qi(t[4])}function qi(t){for(;null!==t&&!dt(t);)t=t[4];return t}function ji(t,e,n,i,s){if(null!=i){let r,o=!1;dt(i)?r=i:ht(i)&&(o=!0,i=i[0]);const a=Rt(i);0===t&&null!==n?null==s?Wi(e,n,a):$i(e,n,a,s||null,!0):1===t&&null!==n?$i(e,n,a,s||null,!0):2===t?function(t,e,n){const i=Ji(t,e);i&&function(t,e,n,i){Pt(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==Rt(n)&&ji(e,t,i,r,s);for(let o=10;o0&&(t[n-1][4]=i[4]);const r=mn(t,10+e);!function(t,e){os(t,e,e[11],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Yi(t,e){if(!(256&e[2])){const n=e[11];Pt(n)&&n.destroyNode&&os(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Gi(t[1],t);for(;e;){let n=null;if(ht(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ht(e)&&Gi(e[1],e),e=e[3];null===e&&(e=t),ht(e)&&Gi(e[1],e),n=e&&e[4]}e=n}}(e)}}function Gi(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?i[s=l]():i[s=-l].unsubscribe(),r+=2}else{const t=i[s=n[r+1]];n[r].call(t)}if(null!==i){for(let t=s+1;tr?"":s[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==us(e,c,0)||2&i&&c!==t){if(gs(i))return!1;o=!0}}}}else{if(!o&&!gs(i)&&!gs(l))return!1;if(o&&gs(l))continue;o=!1,i=l|1&i}}return gs(i)||o}function gs(t){return 0==(1&t)}function _s(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""!==s&&!gs(o)&&(e+=vs(r,s),s=""),i=o,r=r||!gs(i);n++}return""!==s&&(e+=vs(r,s)),e}const xs={};function Cs(t){Es(Yt(),zt(),ye()+t,Xt())}function Es(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ee(e,i,n)}else{const i=t.preOrderHooks;null!==i&&ke(e,i,0,n)}be(n)}function ks(t,e){return t<<17|e<<2}function Ss(t){return t>>17&32767}function As(t){return 2|t}function Ts(t){return(131068&t)>>2}function Os(t,e){return-131069&t|e<<2}function Ps(t){return 1|t}function Is(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i20&&Es(t,e,20,Xt()),n(i,s)}finally{be(r)}}function Us(t,e,n){if(pt(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function $s(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ws(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Qs(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&or(n)}}function or(t){for(let n=Ui(t);null!==n;n=Zi(n))for(let t=10;t0&&or(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&or(i)}}function ar(t,e){const n=Nt(e,t),i=n[1];(function(t,e){for(let n=e.length;nPromise.resolve(null))();function fr(t){return t[7]||(t[7]=[])}function mr(t){return t.cleanup||(t.cleanup=[])}function gr(t,e,n){return(null===t||gt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function _r(t,e){const n=t[9],i=n?n.get(Di,null):null;i&&i.handleError(e)}function yr(t,e,n,i,s){for(let r=0;rthis.processProvider(n,t,e)),pn([t],t=>this.processInjectorType(t,[],s)),this.records.set(wr,Rr(void 0,this));const r=this.records.get(Cr);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:d(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=vn,n=R.Default){this.assertNotDestroyed();const i=An(this),s=M(void 0);try{if(!(n&R.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof cn)&&k(t);e=n&&this.injectableDefInScope(n)?Rr(Pr(t),Er):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&R.Self?Ar():this.parent).get(t,e=n&R.Optional&&e===vn?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[xn]=o[xn]||[]).unshift(d(t)),i)throw o;return Mn(o,t,"R3InjectorError",this.source)}throw o}finally{M(s),An(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(d(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=g(t)))return!1;let i=A(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=A(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{pn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||z))}}this.injectorDefTypes.add(r);const a=yt(r)||(()=>new r);this.records.set(r,Rr(a,Er));const l=i.providers;if(null!=l&&!o){const e=t;pn(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=Mr(t=g(t))?t:g(t&&t.provide);const s=Dr(r=t)?Rr(void 0,r.useValue):Rr(Ir(r),Er);var r;if(Mr(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Rr(void 0,Er,!0),e.factory=()=>In(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){return e.value===Er&&(e.value=kr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value;var n}injectableDefInScope(t){if(!t.providedIn)return!1;const e=g(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Pr(t){const e=k(t),n=null!==e?e.factory:yt(t);if(null!==n)return n;if(t instanceof cn)throw new Error(`Token ${d(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=gn(e,"?");throw new Error(`Can't resolve all parameters for ${d(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[T]||t[P]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" 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 "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Ir(t,e,n){let i;if(Mr(t)){const e=g(t);return yt(e)||Pr(e)}if(Dr(t))i=()=>g(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...In(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>On(g(t.useExisting));else{const e=g(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return yt(e)||Pr(e);i=()=>new e(...In(t.deps))}return i}function Rr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Dr(t){return null!==t&&"object"==typeof t&&kn in t}function Mr(t){return"function"==typeof t}const Lr=function(t,e,n){return function(t,e=null,n=null,i){const s=Tr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};class Fr{static create(t,e){return Array.isArray(t)?Lr(t,e,""):Lr(t.providers,t.parent,t.name||"")}}function Nr(t,e){Ce(Pi(t)[1],Kt())}function Br(t){let e=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const i=[t];for(;e;){let s;if(gt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=Ur(t.inputs),e.declaredInputs=Ur(t.declaredInputs),e.outputs=Ur(t.outputs);const n=s.hostBindings;n&&jr(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&Zr(t,r),o&&qr(t,o),h(t.inputs,s.inputs),h(t.declaredInputs,s.declaredInputs),h(t.outputs,s.outputs),gt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=De(s.hostAttrs,n=De(n,s.hostAttrs))}}(i)}function Ur(t){return t===H?{}:t===z?[]:t}function Zr(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function qr(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function jr(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}Fr.THROW_IF_NOT_FOUND=vn,Fr.NULL=new xr,Fr.\u0275prov=C({token:Fr,providedIn:"any",factory:()=>On(wr)}),Fr.__NG_ELEMENT_ID__=-1;let Vr=null;function Hr(){if(!Vr){const t=V.Symbol;if(t&&t.iterator)Vr=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Rt(t[i.index])):i.index;if(Pt(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,d=!1;else{r=yo(i,e,u,r,!1);const t=n.listen(f,s,r);h.push(r,t),c&&c.push(s,g,m,m+1)}}else r=yo(i,e,u,r,!0),f.addEventListener(s,r,o),h.push(r),c&&c.push(s,g,m,o)}else r=yo(i,e,u,r,!1);const p=i.outputs;let f;if(d&&null!==p&&(f=p[s])){const t=f.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Vt.lFrame.contextLView))[8]}(t)}function vo(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Ao={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function To(t){return t.substring(Ao.key,Ao.keyEnd)}function Oo(t,e){const n=Ao.textEnd;return n===e?-1:(e=Ao.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Ao.key=e,n),Po(t,e,n))}function Po(t,e,n){for(;e=0;n=Oo(e,n))_n(t,To(e),!0)}function Lo(t,e,n,i){const s=zt(),r=Yt(),o=se(2);r.firstUpdatePass&&Bo(r,t,o,i),e!==xs&&Kr(s,o,e)&&qo(r,r.data[ye()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=d(Kn(t)))),t}(e,n),i,o)}function Fo(t,e,n,i){const s=Yt(),r=se(2);s.firstUpdatePass&&Bo(s,null,r,i);const o=zt();if(n!==xs&&Kr(o,r,n)){const a=s.data[ye()];if(Ho(a,i)&&!No(s,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=p(t,n||"")),io(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===xs&&(s=z);let l=0,c=0,u=0=t.expandoStartIndex}function Bo(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[ye()],o=No(t,n);Ho(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=ae(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=Zo(n=Uo(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=Uo(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Ts(i))return t[Ss(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Uo(null,t,e,n[1],i),n=Zo(n,e.attrs,i),function(t,e,n,i){t[Ss(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=Ss(t[a+1]);t[i+1]=ks(e,a),0!==e&&(t[e+1]=Os(t[e+1],i)),t[a+1]=function(t,e){return 131071&t|e<<17}(t[a+1],i)}else t[i+1]=ks(a,0),0!==a&&(t[a+1]=Os(t[a+1],i)),a=i;else t[i+1]=ks(l,0),0===a?a=i:t[l+1]=Os(t[l+1],i),l=i;u&&(t[i+1]=As(t[i+1])),ko(t,c,i,!0),ko(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&bn(r,e)>=0&&(n[i+1]=Ps(n[i+1]))}(e,c,t,i,r),o=ks(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function Uo(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let u=n[s+1];u===xs&&(u=c?z:void 0);let h=c?yn(u,i):l===i?u:void 0;if(r&&!Vo(h)&&(h=yn(e,i)),Vo(h)&&(a=h,o))return a;const d=t[s+1];s=o?Ss(d):Ts(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=yn(t,i))}return a}function Vo(t){return void 0!==t}function Ho(t,e){return 0!=(t.flags&(e?16:32))}function zo(t,e=""){const n=zt(),i=Yt(),s=t+20,r=i.firstCreatePass?Ds(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return Pt(t)?t.createText(e):t.createTextNode(e)}(n[11],e);es(i,n,o,r),Wt(r,!1)}function Yo(t){return Go("",t,""),Yo}function Go(t,e,n){const i=zt(),s=Qr(i,t,e,n);return s!==xs&&br(i,ye(),s),Go}function Ko(t,e,n,i,s){const r=zt(),o=function(t,e,n,i,s,r){const o=$r(t,ne(),n,s);return se(2),o?e+b(n)+i+b(s)+r:xs}(r,t,e,n,i,s);return o!==xs&&br(r,ye(),o),Ko}function $o(t,e,n,i,s,r,o){const a=zt(),l=Jr(a,t,e,n,i,s,r,o);return l!==xs&&br(a,ye(),l),$o}function Wo(t,e,n){Fo(_n,Mo,Qr(zt(),t,e,n),!0)}function Qo(t,e,n){const i=zt();return Kr(i,ie(),e)&&Ys(Yt(),ve(),i,t,e,i[11],n,!0),Qo}function Jo(t,e,n){const i=zt();if(Kr(i,ie(),e)){const s=Yt(),r=ve();Ys(s,r,i,t,e,gr(ae(s.data),r,i),n,!0)}return Jo}const Xo=void 0;var ta=["en",[["a","p"],["AM","PM"],Xo],[["AM","PM"],Xo,Xo],[["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"]],Xo,[["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"]],Xo,[["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}",Xo,"{1} 'at' {0}",Xo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ea={};function na(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=sa(e);if(n)return n;const i=e.split("-")[0];if(n=sa(i),n)return n;if("en"===i)return ta;throw new Error(`Missing locale data for the locale "${t}".`)}function ia(t){return na(t)[ra.PluralCase]}function sa(t){return t in ea||(ea[t]=V.ng&&V.ng.common&&V.ng.common.locales&&V.ng.common.locales[t]),ea[t]}var ra=(()=>((ra=ra||{})[ra.LocaleId=0]="LocaleId",ra[ra.DayPeriodsFormat=1]="DayPeriodsFormat",ra[ra.DayPeriodsStandalone=2]="DayPeriodsStandalone",ra[ra.DaysFormat=3]="DaysFormat",ra[ra.DaysStandalone=4]="DaysStandalone",ra[ra.MonthsFormat=5]="MonthsFormat",ra[ra.MonthsStandalone=6]="MonthsStandalone",ra[ra.Eras=7]="Eras",ra[ra.FirstDayOfWeek=8]="FirstDayOfWeek",ra[ra.WeekendRange=9]="WeekendRange",ra[ra.DateFormat=10]="DateFormat",ra[ra.TimeFormat=11]="TimeFormat",ra[ra.DateTimeFormat=12]="DateTimeFormat",ra[ra.NumberSymbols=13]="NumberSymbols",ra[ra.NumberFormats=14]="NumberFormats",ra[ra.CurrencyCode=15]="CurrencyCode",ra[ra.CurrencySymbol=16]="CurrencySymbol",ra[ra.CurrencyName=17]="CurrencyName",ra[ra.Currencies=18]="Currencies",ra[ra.Directionality=19]="Directionality",ra[ra.PluralCase=20]="PluralCase",ra[ra.ExtraData=21]="ExtraData",ra))();const oa="en-US";let aa=oa;function la(t){x(t,"Expected localeId to be defined"),"string"==typeof t&&(aa=t.toLowerCase().replace(/_/g,"-"))}function ca(t,e,n,i,s){if(t=g(t),Array.isArray(t))for(let r=0;r>20;if(Mr(t)||!t.multi){const i=new Oe(l,s,eo),p=da(a,e,s?u:u+d,h);-1===p?(ze(qe(c,o),r,a),ua(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=da(a,e,u+d,h),f=da(a,e,u,u+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){ze(qe(c,o),r,a);const u=function(t,e,n,i,s){const r=new Oe(t,n,eo);return r.multi=[],r.index=e,r.componentProviders=0,ha(r,s,i&&!n),r}(s?fa:pa,n.length,s,i,l);!s&&g&&(n[f].providerFactory=u),ua(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else ua(r,t,p>-1?p:f,ha(n[s?f:p],l,!s&&i));!s&&i&&g&&n[f].componentProviders++}}}function ua(t,e,n,i){const s=Mr(e);if(s||function(t){return!!t.useClass}(e)){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function ha(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function da(t,e,n,i){for(let s=n;s{n.providersResolver=(n,i)=>function(t,e,n){const i=Yt();if(i.firstCreatePass){const s=gt(t);ca(n,i.data,i.blueprint,s,!0),ca(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class _a{}const ya="ngComponent";class ba{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${d(t)}. Did you add it to @NgModule.entryComponents?`);return e[ya]=t,e}(t)}}class va{}function wa(...t){}function xa(t,e){return new Ea(Mt(t,e))}va.NULL=new ba;const Ca=function(){return xa(Kt(),zt())};let Ea=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Ca,t})();function ka(t){return t instanceof Ea?t.nativeElement:t}class Sa{}let Aa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ta(),t})();const Ta=function(){const t=zt(),e=Nt(Kt().index,t);return function(t){return t[11]}(ht(e)?e:t)};let Oa=(()=>{class t{}return t.\u0275prov=C({token:t,providedIn:"root",factory:()=>null}),t})();class Pa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ia=new Pa("12.2.4");class Ra{constructor(){}supports(t){return Yr(t)}create(t){return new Ma(t)}}const Da=(t,e)=>e;class Ma{constructor(t){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=t||Da}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):t=this._addAfter(new La(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Na),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Na),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class La{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Fa{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Na{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Fa,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ba(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new qa(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class qa{constructor(t){this.key=t,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 ja(){return new Va([new Ra])}let Va=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||ja()),deps:[[t,new Nn,new Fn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${function(t){return t.name||typeof t}(t)}'`)}}return t.\u0275prov=C({token:t,providedIn:"root",factory:ja}),t})();function Ha(){return new za([new Ua])}let za=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ha()),deps:[[t,new Nn,new Fn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=C({token:t,providedIn:"root",factory:Ha}),t})();function Ya(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(Rt(r)),dt(r))for(let t=10;t-1&&(zi(t,n),mn(e,n))}this._attachedToViewContainer=!1}Yi(this._lView[1],this._lView)}onDestroy(t){Hs(this._lView[1],this._lView,null,t)}markForCheck(){cr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ur(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){te(!0);try{ur(t,e,n)}finally{te(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,os(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ka extends Ga{constructor(t){super(t),this._view=t}detectChanges(){hr(this._view)}checkNoChanges(){!function(t){te(!0);try{hr(t)}finally{te(!1)}}(this._view)}get context(){return null}}const $a=function(t){return function(t,e,n){if(ft(t)&&!n){const n=Nt(t.index,e);return new Ga(n,n)}return 47&t.type?new Ga(e[16],e):null}(Kt(),zt(),16==(16&t))};let Wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=$a,t})();const Qa=[new Ua],Ja=new Va([new Ra]),Xa=new za(Qa),tl=function(){return sl(Kt(),zt())};let el=(()=>{class t{}return t.__NG_ELEMENT_ID__=tl,t})();const nl=el,il=class extends nl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Rs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Ls(e,n,t),new Ga(n)}};function sl(t,e){return 4&t.type?new il(e,t,xa(t,e)):null}class rl{}class ol{}const al=function(){return pl(Kt(),zt())};let ll=(()=>{class t{}return t.__NG_ELEMENT_ID__=al,t})();const cl=ll,ul=class extends cl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return xa(this._hostTNode,this._hostLView)}get injector(){return new nn(this._hostTNode,this._hostLView)}get parentInjector(){const t=He(this._hostTNode,this._hostLView);if(Le(t)){const e=Ne(t,this._hostLView),n=Fe(t);return new nn(e[1].data[n+8],e)}return new nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=hl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(rl,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(dt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new ul(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=10+i,r=n.length;i>0&&(n[s-1][4]=e),iMi});class yl extends _a{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ws).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return gl(this.componentDef.inputs)}get outputs(){return gl(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,fl,s);return r!==fl||i===fl?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(Sa,It),o=s.get(Oa,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Pt(t))return t.selectRootElement(e,n===B.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Vi(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?St:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h=function(t,e){return{components:[],scheduler:t||Mi,clean:pr,playerHandler:e||null,flags:0}}(),d=Vs(0,null,null,1,0,null,null,null,null,null),p=Rs(null,d,h,u,null,null,r,a,o,s);let f,m;de(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=Ds(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(vr(a,l,!0),null!==t&&(Pe(s,t,l),null!==a.classes&&cs(s,t,a.classes),null!==a.styles&&ls(s,t,a.styles)));const c=i.createRenderer(t,e),u=Rs(n,js(e),null,e.onPush?64:16,n[20],a,i,c,r||null,null);return o.firstCreatePass&&(ze(qe(a,n),o,e.type),Ws(o,a),Js(a,n.length,1)),lr(n,u),n[20]=u}(c,this.componentDef,p,r,a);if(c)if(n)Pe(a,c,["ng-version",Ia.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i0&&cs(a,c,e.join(" "))}if(m=Lt(d,20),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Kt();e.contentQueries(1,o,t.directiveStart)}const a=Kt();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(be(a.index),Ks(n[1],a,0,a.directiveStart,a.directiveEnd,e),$s(e,o)),o}(t,this.componentDef,p,h,[Nr]),Ls(d,p,null)}finally{_e()}return new bl(this.componentType,f,xa(m,p),p,m)}}class bl extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Ka(i),this.componentType=t}get injector(){return new nn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const vl=new Map;class wl extends rl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ml(this);const n=ut(t),i=t[W]||null;i&&la(i),this._bootstrapComponents=Li(n.bootstrap),this._r3Injector=Tr(t,e,[{provide:rl,useValue:this},{provide:va,useValue:this.componentFactoryResolver}],d(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Fr.THROW_IF_NOT_FOUND,n=R.Default){return t===Fr||t===rl||t===wr?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class xl extends ol{constructor(t){super(),this.moduleType=t,null!==ut(t)&&function(t){const e=new Set;!function t(n){const i=ut(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${d(e)} vs ${d(e.name)}`)}(s,vl.get(s),n),vl.set(s,n));const r=Li(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new wl(this.moduleType,t)}}function Cl(t,e,n,i){return El(zt(),ee(),t,e,n,i)}function El(t,e,n,i,s,r){const o=e+n;return Kr(t,o,s)?function(t,e,n){return t[e]=n}(t,o+1,r?i.call(r,s):i(s)):function(t,e){const n=t[e];return n===xs?void 0:n}(t,o+1)}function kl(t,e){const n=Yt();let i;const s=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new y("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=yt(i.type)),o=M(eo);try{const t=Ue(!1),e=r();return Ue(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,zt(),s,e),e}finally{M(o)}}function Sl(t,e,n){const i=t+20,s=zt(),r=Ft(s,i);return function(t,e){zr.isWrapped(e)&&(e=zr.unwrap(e),t[ne()]=xs);return e}(s,function(t,e){return t[1].data[e].pure}(s,i)?El(s,ee(),e,r.transform,n,r):r.transform(n))}function Al(t){return e=>{setTimeout(t,void 0,e)}}const Tl=class extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,r,o;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),l=null===(r=e.error)||void 0===r?void 0:r.bind(e),c=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(l=Al(l),a&&(a=Al(a)),c&&(c=Al(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof s.w&&t.add(u),u}};function Ol(){return this._results[Hr()]()}class Pl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Hr(),n=Pl.prototype;n[e]||(n[e]=Ol)}get changes(){return this._changes||(this._changes=new Tl)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=dn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=wa,this.reject=wa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(On(Gl,8))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();const $l=new cn("AppId"),Wl={provide:$l,useFactory:function(){return`${Ql()}${Ql()}${Ql()}`},deps:[]};function Ql(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Jl=new cn("Platform Initializer"),Xl=new cn("Platform ID"),tc=new cn("appBootstrapListener");let ec=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();const nc=new cn("LocaleId"),ic=new cn("DefaultCurrencyCode");class sc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const rc=function(t){return new xl(t)},oc=rc,ac=function(t){return Promise.resolve(rc(t))},lc=function(t){const e=rc(t),n=Li(ut(t).declarations).reduce((t,e)=>{const n=ct(e);return n&&t.push(new yl(n)),t},[]);return new sc(e,n)},cc=lc,uc=function(t){return Promise.resolve(lc(t))};let hc=(()=>{class t{constructor(){this.compileModuleSync=oc,this.compileModuleAsync=ac,this.compileModuleAndAllComponentsSync=cc,this.compileModuleAndAllComponentsAsync=uc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();const dc=(()=>Promise.resolve(0))();function pc(t){"undefined"==typeof Zone?dc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class fc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Tl(!1),this.onMicrotaskEmpty=new Tl(!1),this.onStable=new Tl(!1),this.onError=new Tl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=V.requestAnimationFrame,e=V.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(V,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,_c(t),t.isCheckStableRunning=!0,gc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),_c(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,r,o,a)=>{try{return yc(t),n.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),bc(t)}},onInvoke:(n,i,s,r,o,a,l)=>{try{return yc(t),n.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),bc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,_c(t),gc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!fc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(fc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,mc,wa,wa);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const mc={};function gc(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 _c(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function yc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bc(t){t._nesting--,gc(t)}class vc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Tl,this.onMicrotaskEmpty=new Tl,this.onStable=new Tl,this.onError=new Tl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let wc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{fc.assertNotInAngularZone(),pc(()=>{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())pc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!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(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(On(fc))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})(),xc=(()=>{class t{constructor(){this._applications=new Map,kc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return kc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();class Cc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Ec(t){kc=t}let kc=new Cc,Sc=!0,Ac=!1;function Tc(){return Ac=!0,Sc}function Oc(){if(Ac)throw new Error("Cannot enable prod mode after platform setup.");Sc=!1}let Pc;const Ic=new cn("AllowMultipleToken");class Rc{constructor(t,e){this.name=t,this.token=e}}function Dc(t,e,n=[]){const i=`Platform: ${e}`,s=new cn(i);return(e=[])=>{let r=Mc();if(!r||r.injector.get(Ic,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Cr,useValue:"platform"});!function(t){if(Pc&&!Pc.destroyed&&!Pc.injector.get(Ic,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Pc=t.get(Lc);const e=t.get(Jl,null);e&&e.forEach(t=>t())}(Fr.create({providers:t,name:i}))}return function(t){const e=Mc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Mc(){return Pc&&!Pc.destroyed?Pc:null}let Lc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new vc:("zone.js"===t?void 0:t)||new fc({enableLongStackTrace:Tc(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:fc,useValue:n}];return n.run(()=>{const s=Fr.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(s),o=r.injector.get(Di,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{o.handleError(t)}});r.onDestroy(()=>{Bc(this._modules,r),t.unsubscribe()})}),function(t,n,i){try{const e=i();return uo(e)?e.catch(e=>{throw n.runOutsideAngular(()=>t.handleError(e)),e}):e}catch(e){throw n.runOutsideAngular(()=>t.handleError(e)),e}}(o,n,()=>{const t=r.injector.get(Kl);return t.runInitializers(),t.donePromise.then(()=>(la(r.injector.get(nc,oa)||oa),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=Fc({},e);return function(t,e,n){const i=new xl(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Nc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${d(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(On(Fr))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();function Fc(t,e){return Array.isArray(e)?e.reduce(Fc,t):Object.assign(Object.assign({},t),e)}let Nc=(()=>{class t{constructor(t,e,n,i,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=s,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 u=new r.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),h=new r.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{fc.assertNotInAngularZone(),pc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{fc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=(0,o.T)(u,h.pipe(t=>(0,l.x)()(function(t,e){return function(e){let n;n="function"==typeof t?t:function(){return t};const i=Object.create(e,a.N);return i.source=e,i.subjectFactory=n,i}}(c)(t))))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof _a?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=function(t){return t.isBoundToModule}(n)?void 0:this._injector.get(rl),s=n.create(Fr.NULL,[],e||n.selector,i),r=s.location.nativeElement,o=s.injector.get(wc,null),a=o&&s.injector.get(xc);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Bc(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Bc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(tc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(On(fc),On(Fr),On(Di),On(va),On(Kl))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();function Bc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Uc{}class Zc{}const qc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let jc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||qc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(8255)(e).then(t=>t[i]).then(t=>Vc(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>Vc(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(On(hc),On(Zc,8))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();function Vc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Hc=function(t){return null},zc=Dc(null,"core",[{provide:Xl,useValue:"unknown"},{provide:Lc,deps:[Fr]},{provide:xc,deps:[]},{provide:ec,deps:[]}]),Yc=[{provide:Nc,useClass:Nc,deps:[fc,Fr,Di,va,Kl]},{provide:_l,deps:[fc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Kl,useClass:Kl,deps:[[new Fn,Gl]]},{provide:hc,useClass:hc,deps:[]},Wl,{provide:Va,useFactory:function(){return Ja},deps:[]},{provide:za,useFactory:function(){return Xa},deps:[]},{provide:nc,useFactory:function(t){return la(t=t||"undefined"!=typeof $localize&&$localize.locale||oa),t},deps:[[new Ln(nc),new Fn,new Nn]]},{provide:ic,useValue:"USD"}];let Gc=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(On(Nc))},t.\u0275mod=st({type:t}),t.\u0275inj=E({providers:Yc}),t})()},665:function(t,e,n){"use strict";n.d(e,{Zs:function(){return ct},sg:function(){return rt},u5:function(){return ht},Cf:function(){return h},JU:function(){return u},a5:function(){return O},JL:function(){return P},F:function(){return et},_Y:function(){return nt}});var i=n(3018),s=(n(8583),n(7574)),r=n(9796),o=n(8002),a=n(1555),l=n(4402);function c(t,e){return new s.y(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a{u||(u=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,(r===i||!u)&&(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}const u=new i.OlP("NgValueAccessor");const h=new i.OlP("NgValidators"),d=new i.OlP("NgAsyncValidators");function p(t){return null!=t}function f(t){const e=(0,i.QGY)(t)?(0,l.D)(t):t;return(0,i.CqO)(e),e}function m(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function g(t,e){return e.map(e=>e(t))}function _(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function y(t){return null!=t?function(t){if(!t)return null;const e=t.filter(p);return 0==e.length?null:function(t){return m(g(t,e))}}(_(t)):null}function b(t){return null!=t?function(t){if(!t)return null;const e=t.filter(p);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if((0,r.k)(e))return c(e,null);if((0,a.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&(0,r.k)(t[0])?t[0]:t,null).pipe((0,o.U)(t=>e(...t)))}return c(t,null)}(g(t,e).map(f)).pipe((0,o.U)(m))}}(_(t)):null}function v(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function w(t){return t._rawValidators}function x(t){return t._rawAsyncValidators}function C(t){return t?Array.isArray(t)?t:[t]:[]}function E(t,e){return Array.isArray(t)?t.includes(e):t===e}function k(t,e){const n=C(e);return C(t).forEach(t=>{E(n,t)||n.push(t)}),n}function S(t,e){return C(e).filter(e=>!E(t,e))}let A=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=y(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=b(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t}),t})(),T=(()=>{class t extends A{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();class O extends A{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let P=(()=>{class t extends class{constructor(t){this._cd=t}is(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(T,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[i.qOj]}),t})();function I(t,e){M(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&F(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&F(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function R(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),L(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function D(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function M(t,e){const n=w(t);null!==e.validator?t.setValidators(v(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const i=x(t);null!==e.asyncValidator?t.setAsyncValidators(v(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const s=()=>t.updateValueAndValidity();D(e._rawValidators,s),D(e._rawAsyncValidators,s)}function L(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=w(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.validator);s.length!==i.length&&(n=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const i=x(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.asyncValidator);s.length!==i.length&&(n=!0,t.setAsyncValidators(s))}}}const i=()=>{};return D(e._rawValidators,i),D(e._rawAsyncValidators,i),n}function F(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function N(t,e){M(t,e)}function B(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function U(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Z="VALID",q="INVALID",j="PENDING",V="DISABLED";function H(t){return(K(t)?t.validators:t)||null}function z(t){return Array.isArray(t)?y(t):t||null}function Y(t,e){return(K(e)?e.asyncValidators:t)||null}function G(t){return Array.isArray(t)?b(t):t||null}function K(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ${constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=z(this._rawValidators),this._composedAsyncValidatorFn=G(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Z}get invalid(){return this.status===q}get pending(){return this.status==j}get disabled(){return this.status===V}get enabled(){return this.status!==V}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=z(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=G(t)}addValidators(t){this.setValidators(k(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(k(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(S(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(S(t,this._rawAsyncValidators))}hasValidator(t){return E(this._rawValidators,t)}hasAsyncValidator(t){return E(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=j,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=V,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Z,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Z||this.status===j)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?V:Z}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=j,this._hasOwnPendingAsyncValidator=!0;const e=f(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let i=t;return e.forEach(t=>{i=i instanceof Q?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof J&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?V:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(j)?j:this._anyControlsHaveStatus(q)?q:Z}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){K(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class W extends ${constructor(t=null,e,n){super(H(e),Y(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){U(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){U(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Q extends ${constructor(t,e,n){super(H(e),Y(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof W?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class J extends ${constructor(t,e,n){super(H(e),Y(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof W?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const X={provide:T,useExisting:(0,i.Gpc)(()=>et)},tt=(()=>Promise.resolve(null))();let et=(()=>{class t extends T{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.vpe,this.form=new Q({},y(t),b(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){tt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),I(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){tt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),U(this._directives,t)})}addFormGroup(t){tt.then(()=>{const e=this._findContainer(t.path),n=new Q({});N(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){tt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){tt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,B(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h,10),i.Y36(d,10))},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([X]),i.qOj]}),t})(),nt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),it=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const st={provide:T,useExisting:(0,i.Gpc)(()=>rt)};let rt=(()=>{class t extends T{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(L(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return I(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){R(t.control||null,t,!1),U(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,B(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(R(e||null,t),n instanceof W&&(I(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);N(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return L(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){M(this.form,this),this._oldForm&&L(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h,10),i.Y36(d,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([st]),i.qOj,i.TTD]}),t})();const ot={provide:h,useExisting:(0,i.Gpc)(()=>lt),multi:!0},at={provide:h,useExisting:(0,i.Gpc)(()=>ct),multi:!0};let lt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?function(t){return function(t){return null==t||0===t.length}(t.value)?{required:!0}:null}(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[i._Bn([ot])]}),t})(),ct=(()=>{class t extends lt{validate(t){return this.required?function(t){return!0===t.value?null:{required:!0}}(t):null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},features:[i._Bn([at]),i.qOj]}),t})(),ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[it]]}),t})(),ht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[ut]}),t})()},1095:function(t,e,n){"use strict";n.d(e,{zs:function(){return p},lW:function(){return d},ot:function(){return f}});var i=n(2458),s=n(6237),r=n(3018),o=n(9238);const a=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",u=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],h=(0,i.pj)((0,i.Id)((0,i.Kr)(class{constructor(t){this._elementRef=t}})));let d=(()=>{class t extends h{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of u)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(o.tE),r.Y36(s.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&r.Gf(i.wG,5),2&t){let t;r.iGM(t=r.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(r.uIk("disabled",e.disabled||null),r.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1),r._UZ(3,"span",2)),2&t&&(r.xp6(2),r.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[c],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t extends d{constructor(t,e,n){super(e,t,n)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(o.tE),r.Y36(r.SBq),r.Y36(s.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._haltDisabledEvents(t)}),2&t&&(r.uIk("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),r.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[r.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1),r._UZ(3,"span",2)),2&t&&(r.xp6(2),r.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[c],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[i.si,i.BQ],i.BQ]}),t})()},2458:function(t,e,n){"use strict";n.d(e,{rD:function(){return k},K7:function(){return q},HF:function(){return N},BQ:function(){return b},ey:function(){return z},Ng:function(){return K},wG:function(){return D},si:function(){return M},CB:function(){return Y},jH:function(){return G},pj:function(){return w},Kr:function(){return x},Id:function(){return v},FD:function(){return E},sb:function(){return C}});var i=n(3018),s=n(9238),r=n(946);const o=new i.GfV("12.2.4");var a=n(8583),l=n(9490),c=n(9765),u=n(521),h=n(6237),d=n(6461);function p(t,e){if(1&t&&i._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=i.oxw();i.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function f(t,e){if(1&t&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.hij("(",t.group.label,")")}}const m=["*"],g=new i.GfV("12.2.4"),_=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let y,b=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checkIsEnabled(t){return!(!(0,i.X6Q)()||this._isTestEnv())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&g.full!==o.full&&console.warn("The Angular Material version ("+g.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.qm),i.LFG(_,8),i.LFG(a.K0))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[r.vT],r.vT]}),t})();function v(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}}}function w(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function x(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,l.Ig)(t)}}}function C(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?(0,l.su)(t):this.defaultTabIndex}}}function E(t){return class extends t{constructor(...t){super(...t),this.stateChanges=new c.xQ,this.errorState=!1}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}try{y="undefined"!=typeof Intl}catch($){y=!1}let k=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();class S{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const A={enterDuration:225,exitDuration:150},T=(0,u.i$)({passive:!0}),O=["mousedown","touchstart"],P=["mouseup","mouseleave","touchend","touchcancel"];class I{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=(0,l.fI)(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},A),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new S(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,!n.persistent&&(!t||!this._isPointerDown)&&u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},A),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=(0,l.fI)(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(O))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(P),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=(0,s.X6)(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,T)})})}_removeTriggerEvents(){this._triggerElement&&(O.forEach(t=>{this._triggerElement.removeEventListener(t,this,T)}),this._pointerUpEventsRegistered&&P.forEach(t=>{this._triggerElement.removeEventListener(t,this,T)}))}}const R=new i.OlP("mat-ripple-global-options");let D=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new I(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(u.t4),i.Y36(R,8),i.Y36(h.Qb,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[b,u.ud],b]}),t})(),L=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h.Qb,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[b]]}),t})();const N=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),B=v(class{});let U=0,Z=(()=>{class t extends B{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+U++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(N,8))},t.\u0275dir=i.lG2({type:t,inputs:{label:"label"},features:[i.qOj]}),t})();const q=new i.OlP("MatOptgroup");let j=0;class V{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let H=(()=>{class t{constructor(t,e,n,s){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+j++,this.onSelectionChange=new i.vpe,this._stateChanges=new c.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===d.K5||t.keyCode===d.L_)&&!(0,d.Vb)(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new V(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(void 0),i.Y36(Z))},t.\u0275dir=i.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),z=(()=>{class t extends H{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(N,8),i.Y36(q,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(i.Ikx("id",e.id),i.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:m,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,p,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,f,2,1,"span",2),i._UZ(4,"div",3)),2&t&&(i.Q6J("ngIf",e.multiple),i.xp6(3),i.Q6J("ngIf",e.group&&e.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.O5,D,L],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function Y(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;en+i?Math.max(0,t-i+e):n}let K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[M,a.ez,b,F]]}),t})()},2238:function(t,e,n){"use strict";n.d(e,{WI:function(){return A},uw:function(){return R},H8:function(){return N},ZT:function(){return M},xY:function(){return F},Is:function(){return U},so:function(){return k},uh:function(){return L}});var i=n(625),s=n(7636),r=n(3018),o=n(2458),a=n(946),l=n(8583),c=n(9765),u=n(1439),h=n(5917),d=n(5435),p=n(5257),f=n(9761),m=n(521),g=n(7238),_=n(6461),y=n(9238);function b(t,e){}class v{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const w={dialogContainer:(0,g.X$)("dialogContainer",[(0,g.SB)("void, exit",(0,g.oB)({opacity:0,transform:"scale(0.7)"})),(0,g.SB)("enter",(0,g.oB)({transform:"none"})),(0,g.eR)("* => enter",(0,g.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,g.oB)({transform:"none",opacity:1}))),(0,g.eR)("* => void, * => exit",(0,g.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,g.oB)({opacity:0})))])};let x=(()=>{class t extends s.en{constructor(t,e,n,i,s,o){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=s,this._focusMonitor=o,this._animationStateChanged=new r.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=(0,m.ht)(),n=this._elementRef.nativeElement;(!e||e===this._document.body||e===n||n.contains(e))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,m.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=(0,m.ht)();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(y.qV),r.Y36(r.sBO),r.Y36(l.K0,8),r.Y36(v),r.Y36(y.tE))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&r.Gf(s.Pl,7),2&t){let t;r.iGM(t=r.CRH())&&(e._portalOutlet=t.first)}},features:[r.qOj]}),t})(),C=(()=>{class t extends x{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&r.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(r.Ikx("id",e._id),r.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),r.d8E("@dialogContainer",e._state))},features:[r.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&r.YNc(0,b,0,0,"ng-template",0)},directives:[s.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[w.dialogContainer]}}),t})(),E=0;class k{constructor(t,e,n="mat-dialog-"+E++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new c.xQ,this._afterClosed=new c.xQ,this._beforeClosed=new c.xQ,this._state=0,e._id=n,e._animationStateChanged.pipe((0,d.h)(t=>"opened"===t.state),(0,p.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,d.h)(t=>"closed"===t.state),(0,p.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,d.h)(t=>t.keyCode===_.hY&&!this.disableClose&&!(0,_.Vb)(t))).subscribe(t=>{t.preventDefault(),S(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():S(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,d.h)(t=>"closing"===t.state),(0,p.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function S(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const A=new r.OlP("MatDialogData"),T=new r.OlP("mat-dialog-default-options"),O=new r.OlP("mat-dialog-scroll-strategy"),P={provide:O,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.block()}};let I=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new c.xQ,this._afterOpenedAtThisLevel=new c.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,u.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,f.O)(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new v)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),s=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=r.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:v,useValue:e}]}),i=new s.C5(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const o=new this._dialogRefConstructor(n,e,i.id);if(t instanceof r.Rgc)e.attachTemplatePortal(new s.UE(t,null,{$implicit:i.data,dialogRef:o}));else{const n=this._createInjector(i,o,e),r=e.attachComponentPortal(new s.C5(t,i.viewContainerRef,n));o.componentInstance=r.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return t.direction&&(!i||!i.get(a.Is,null,r.XFs.Optional))&&s.push({provide:a.Is,useValue:{value:t.direction,change:(0,h.of)()}}),r.zs3.create({parent:i||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i!==t&&"SCRIPT"!==i.nodeName&&"STYLE"!==i.nodeName&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(i.aV),r.Y36(r.zs3),r.Y36(void 0),r.Y36(void 0),r.Y36(i.Xj),r.Y36(void 0),r.Y36(r.DyG),r.Y36(r.DyG),r.Y36(r.OlP))},t.\u0275dir=r.lG2({type:t}),t})(),R=(()=>{class t extends I{constructor(t,e,n,i,s,r,o){super(t,e,i,r,o,s,k,C,A)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.aV),r.LFG(r.zs3),r.LFG(l.Ye,8),r.LFG(T,8),r.LFG(O),r.LFG(t,12),r.LFG(i.Xj))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),D=0,M=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=B(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){S(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(k,8),r.Y36(r.SBq),r.Y36(R))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._onButtonClick(t)}),2&t&&r.uIk("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[r.TTD]}),t})(),L=(()=>{class t{constructor(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+D++}ngOnInit(){this._dialogRef||(this._dialogRef=B(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(k,8),r.Y36(r.SBq),r.Y36(R))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&r.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function B(t,e){let n=t.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(t=>t.id===n.id):null}let U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[R,P],imports:[[i.U8,s.eL,o.BQ],o.BQ]}),t})()},8295:function(t,e,n){"use strict";n.d(e,{G_:function(){return G},o2:function(){return Y},KE:function(){return K},Eo:function(){return N},lN:function(){return $},hX:function(){return U},R9:function(){return V}});var i=n(8553),s=n(8583),r=n(3018),o=n(2458),a=n(9490),l=n(9765),c=n(6682),u=n(2759),h=n(9761),d=n(6782),p=n(5257),f=n(7238),m=n(6237),g=n(946),_=n(521);const y=["underline"],b=["connectionContainer"],v=["inputContainer"],w=["label"];function x(t,e){1&t&&(r.ynx(0),r.TgZ(1,"div",14),r._UZ(2,"div",15),r._UZ(3,"div",16),r._UZ(4,"div",17),r.qZA(),r.TgZ(5,"div",18),r._UZ(6,"div",15),r._UZ(7,"div",16),r._UZ(8,"div",17),r.qZA(),r.BQk())}function C(t,e){1&t&&(r.TgZ(0,"div",19),r.Hsn(1,1),r.qZA())}function E(t,e){if(1&t&&(r.ynx(0),r.Hsn(1,2),r.TgZ(2,"span"),r._uU(3),r.qZA(),r.BQk()),2&t){const t=r.oxw(2);r.xp6(3),r.Oqu(t._control.placeholder)}}function k(t,e){1&t&&r.Hsn(0,3,["*ngSwitchCase","true"])}function S(t,e){1&t&&(r.TgZ(0,"span",23),r._uU(1," *"),r.qZA())}function A(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"label",20,21),r.NdJ("cdkObserveContent",function(){return r.CHM(t),r.oxw().updateOutlineGap()}),r.YNc(2,E,4,1,"ng-container",12),r.YNc(3,k,1,0,"ng-content",12),r.YNc(4,S,2,0,"span",22),r.qZA()}if(2&t){const t=r.oxw();r.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),r.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),r.uIk("for",t._control.id)("aria-owns",t._control.id),r.xp6(2),r.Q6J("ngSwitchCase",!1),r.xp6(1),r.Q6J("ngSwitchCase",!0),r.xp6(1),r.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function T(t,e){1&t&&(r.TgZ(0,"div",24),r.Hsn(1,4),r.qZA())}function O(t,e){if(1&t&&(r.TgZ(0,"div",25,26),r._UZ(2,"span",27),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function P(t,e){if(1&t&&(r.TgZ(0,"div"),r.Hsn(1,5),r.qZA()),2&t){const t=r.oxw();r.Q6J("@transitionMessages",t._subscriptAnimationState)}}function I(t,e){if(1&t&&(r.TgZ(0,"div",31),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.Q6J("id",t._hintLabelId),r.xp6(1),r.Oqu(t.hintLabel)}}function R(t,e){if(1&t&&(r.TgZ(0,"div",28),r.YNc(1,I,2,2,"div",29),r.Hsn(2,6),r._UZ(3,"div",30),r.Hsn(4,7),r.qZA()),2&t){const t=r.oxw();r.Q6J("@transitionMessages",t._subscriptAnimationState),r.xp6(1),r.Q6J("ngIf",t.hintLabel)}}const D=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],M=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],L=new r.OlP("MatError"),F={transitionMessages:(0,f.X$)("transitionMessages",[(0,f.SB)("enter",(0,f.oB)({opacity:1,transform:"translateY(0%)"})),(0,f.eR)("void => enter",[(0,f.oB)({opacity:0,transform:"translateY(-5px)"}),(0,f.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t}),t})();const B=new r.OlP("MatHint");let U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-label"]]}),t})(),Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const q=new r.OlP("MatPrefix"),j=new r.OlP("MatSuffix");let V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","matSuffix",""]],features:[r._Bn([{provide:j,useExisting:t}])]}),t})(),H=0;const z=(0,o.pj)(class{constructor(t){this._elementRef=t}},"primary"),Y=new r.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),G=new r.OlP("MatFormField");let K=(()=>{class t extends z{constructor(t,e,n,i,s,r,o,a){super(t),this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+H++,this._labelId="mat-form-field-label-"+H++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=(0,a.Ig)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe((0,h.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,d.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,c.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,u.R)(this._label.nativeElement,"transitionend").pipe((0,p.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[s.ez,o.BQ,i.Q8],o.BQ]}),t})()},9983:function(t,e,n){"use strict";n.d(e,{Nt:function(){return y},c:function(){return b}});var i=n(521),s=n(3018),r=n(9490),o=n(9193),a=n(9765);n(2759),n(628),n(6782),n(8583);const l=(0,i.i$)({passive:!0});let c=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return o.E;const e=(0,r.fI)(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new a.xQ,s="cdk-text-field-autofilled",c=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",c,l),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",c,l)}}),i}stopMonitoring(t){const e=(0,r.fI)(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.t4),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.t4),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ud]]}),t})();var h=n(2458),d=n(8295),p=n(665);const f=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),m=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g=0;const _=(0,h.FD)(class{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}});let y=(()=>{class t extends _{constructor(t,e,n,s,r,o,l,c,u,h){super(o,s,r,n),this._elementRef=t,this._platform=e,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+g++,this.focused=!1,this.stateChanges=new a.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>(0,i.qK)().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=l||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&u.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;!e.value&&0===e.selectionStart&&0===e.selectionEnd&&(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&(0,i.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=(0,r.Ig)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){m.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(i.t4),s.Y36(p.a5,10),s.Y36(p.F,8),s.Y36(p.sg,8),s.Y36(h.rD),s.Y36(f,10),s.Y36(c),s.Y36(s.R0b),s.Y36(d.G_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),s.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s._Bn([{provide:d.Eo,useExisting:t}]),s.qOj,s.TTD]}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[h.rD],imports:[[u,d.lN,h.BQ],u,d.lN]}),t})()},7441:function(t,e,n){"use strict";n.d(e,{gD:function(){return H},LD:function(){return z}});var i=n(625),s=n(8583),r=n(3018),o=n(2458),a=n(8295),l=n(9243),c=n(9238),u=n(9490),h=n(8345),d=n(6461),p=n(9765),f=n(1439),m=n(6682),g=n(9761),_=n(3190),y=n(5257),b=n(5435),v=n(8002),w=n(7519),x=n(6782),C=n(7238),E=n(946),k=n(665);const S=["trigger"],A=["panel"];function T(t,e){if(1&t&&(r.TgZ(0,"span",8),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.placeholder)}}function O(t,e){if(1&t&&(r.TgZ(0,"span",12),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Oqu(t.triggerValue)}}function P(t,e){1&t&&r.Hsn(0,0,["*ngSwitchCase","true"])}function I(t,e){if(1&t&&(r.TgZ(0,"span",9),r.YNc(1,O,2,1,"span",10),r.YNc(2,P,1,0,"ng-content",11),r.qZA()),2&t){const t=r.oxw();r.Q6J("ngSwitch",!!t.customTrigger),r.xp6(2),r.Q6J("ngSwitchCase",!0)}}function R(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",13),r.TgZ(1,"div",14,15),r.NdJ("@transformPanel.done",function(e){return r.CHM(t),r.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return r.CHM(t),r.oxw()._handleKeydown(e)}),r.Hsn(3,1),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@transformPanelWrap",void 0),r.xp6(1),r.Gre("mat-select-panel ",t._getPanelTheme(),""),r.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),r.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),r.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const D=[[["mat-select-trigger"]],"*"],M=["mat-select-trigger","*"],L={transformPanelWrap:(0,C.X$)("transformPanelWrap",[(0,C.eR)("* => void",(0,C.IO)("@transformPanel",[(0,C.pV)()],{optional:!0}))]),transformPanel:(0,C.X$)("transformPanel",[(0,C.SB)("void",(0,C.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,C.SB)("showing",(0,C.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,C.SB)("showing-multiple",(0,C.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,C.eR)("void => *",(0,C.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,C.eR)("* => void",(0,C.jt)("100ms 25ms linear",(0,C.oB)({opacity:0})))])};let F=0;const N=new r.OlP("mat-select-scroll-strategy"),B=new r.OlP("MAT_SELECT_CONFIG"),U={provide:N,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class Z{constructor(t,e){this.source=t,this.value=e}}const q=(0,o.Kr)((0,o.sb)((0,o.Id)((0,o.FD)(class{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}})))),j=new r.OlP("MatSelectTrigger");let V=(()=>{class t extends q{constructor(t,e,n,i,s,o,a,l,c,u,h,d,w,x){var C,E,k;super(s,i,a,l,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=o,this._parentFormField=c,this._liveAnnouncer=w,this._defaultOptions=x,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+F++,this._triggerAriaLabelledBy=null,this._destroy=new p.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+F++,this._panelDoneAnimatingStream=new p.xQ,this._overlayPanelClass=(null===(C=this._defaultOptions)||void 0===C?void 0:C.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(k=null===(E=this._defaultOptions)||void 0===E?void 0:E.disableOptionCentering)&&void 0!==k&&k,this.ariaLabel="",this.optionSelectionChanges=(0,f.P)(()=>{const t=this.options;return t?t.changes.pipe((0,g.O)(t),(0,_.w)(()=>(0,m.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,y.q)(1),(0,_.w)(()=>this.optionSelectionChanges))}),this.openedChange=new r.vpe,this._openedStream=this.openedChange.pipe((0,b.h)(t=>t),(0,v.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,b.h)(t=>!t),(0,v.U)(()=>{})),this.selectionChange=new r.vpe,this.valueChange=new r.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==x?void 0:x.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=x.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=(0,u.Ig)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,u.Ig)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=(0,u.Ig)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=(0,u.su)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,w.x)(),(0,x.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,x.R)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe((0,g.O)(null),(0,x.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=e===d.JH||e===d.LH||e===d.oh||e===d.SV,i=e===d.K5||e===d.L_,s=this._keyManager;if(!s.isTyping()&&i&&!(0,d.Vb)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=n===d.JH||n===d.LH,s=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(s||n!==d.K5&&n!==d.L_||!e.activeItem||(0,d.Vb)(t))if(!s&&this._multiple&&n===d.A&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,y.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new c.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,x.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,x.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=(0,m.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,x.R)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,m.T)(...this.options.map(t=>t._stateChanges)).pipe((0,x.R)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(l.rL),r.Y36(r.sBO),r.Y36(r.R0b),r.Y36(o.rD),r.Y36(r.SBq),r.Y36(E.Is,8),r.Y36(k.F,8),r.Y36(k.sg,8),r.Y36(a.G_,8),r.Y36(k.a5,10),r.$8M("tabindex"),r.Y36(N),r.Y36(c.Kd),r.Y36(B,8))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&(r.Gf(S,5),r.Gf(A,5),r.Gf(i.pI,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.trigger=t.first),r.iGM(t=r.CRH())&&(e.panel=t.first),r.iGM(t=r.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[r.qOj,r.TTD]}),t})(),H=(()=>{class t extends V{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,x.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,y.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=(0,o.CB)(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=0===t&&1===e?0:(0,o.jH)((t+e)*n,n,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new Z(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),o=t.right+s-e.width+(n?0:i);r>0?s+=r+8:o>0&&(s-=o+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(256/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>i?this._adjustPanelDown(r,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=(0,o.CB)(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(r.Suo(n,j,5),r.Suo(n,o.ey,5),r.Suo(n,o.K7,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.customTrigger=t.first),r.iGM(t=r.CRH())&&(e.options=t),r.iGM(t=r.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&r.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(r.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),r.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[r._Bn([{provide:a.Eo,useExisting:t},{provide:o.HF,useExisting:t}]),r.qOj],ngContentSelectors:M,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(r.F$t(D),r.TgZ(0,"div",0,1),r.NdJ("click",function(){return e.toggle()}),r.TgZ(3,"div",2),r.YNc(4,T,2,1,"span",3),r.YNc(5,I,3,2,"span",4),r.qZA(),r.TgZ(6,"div",5),r._UZ(7,"div",6),r.qZA(),r.qZA(),r.YNc(8,R,4,14,"ng-template",7),r.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=r.MAs(1);r.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),r.xp6(3),r.Q6J("ngSwitch",e.empty),r.uIk("id",e._valueId),r.xp6(1),r.Q6J("ngSwitchCase",!0),r.xp6(1),r.Q6J("ngSwitchCase",!1),r.xp6(3),r.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[i.xu,s.RF,s.n9,i.pI,s.ED,s.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[L.transformPanelWrap,L.transformPanel]},changeDetection:0}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[U],imports:[[s.ez,i.U8,o.Ng,o.BQ],l.ZD,a.lN,o.Ng,o.BQ]}),t})()},6237:function(t,e,n){"use strict";n.d(e,{Qb:function(){return De},PW:function(){return Ne}});var i=n(3018),s=n(9075),r=n(7238);function o(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function l(t){switch(t.length){case 0:return new r.ZN;case 1:return t[0];default:return new r.ZE(t)}}function c(t,e,n,i,s={},o={}){const a=[],l=[];let c=-1,u=null;if(i.forEach(t=>{const n=t.offset,i=n==c,h=i&&u||{};Object.keys(t).forEach(n=>{let i=n,l=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),l){case r.k1:l=s[n];break;case r.l3:l=o[n];break;default:l=e.normalizeStyleValue(n,i,l,a)}h[i]=l}),i||l.push(h),u=h,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function u(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&h(n,"start",t)));break;case"done":t.onDone(()=>i(n&&h(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&h(n,"destroy",t)))}}function h(t,e,n){const i=n.totalTime,s=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function d(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function p(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function f(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let m=(t,e)=>!1,g=(t,e)=>!1,_=(t,e,n)=>[];const y=a();(y||"undefined"!=typeof Element)&&(m=o()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),g=(()=>{if(y||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):g}})(),_=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let S=(()=>{class t{validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,o=[],a){return new r.ZN(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class A{}A.NOOP=new S;const T="ng-enter",O="ng-leave",P="ng-trigger",I=".ng-trigger",R="ng-animating",D=".ng-animating";function M(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:L(parseFloat(e[1]),e[2])}function L(t,e){switch(e){case"s":return 1e3*t;default:return t}}function F(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=L(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=L(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function N(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function B(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else N(t,n);return n}function U(t,e,n){return n?e+":"+n+";":""}function Z(t){let e="";for(let n=0;n{const s=$(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),a()&&Z(t))}function j(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=$(e);t.style[n]=""}),a()&&Z(t))}function V(t){return Array.isArray(t)?1==t.length?t[0]:(0,r.vP)(t):t}const H=new RegExp("{{\\s*(.+?)\\s*}}","g");function z(t){let e=[];if("string"==typeof t){let n;for(;n=H.exec(t);)e.push(n[1]);H.lastIndex=0}return e}function Y(t,e,n){const i=t.toString(),s=i.replace(H,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),s=""),s.toString()});return s==i?t:s}function G(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const K=/-+([a-z0-9])/g;function $(t){return t.replace(K,(...t)=>t[1].toUpperCase())}function W(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Q(t,e){return 0===t||0===e}function J(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(st(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&e.push(st(o,s))}(t,n,e)):n.push(t),n}const nt=new Set(["true","1"]),it=new Set(["false","0"]);function st(t,e){const n=nt.has(t)||it.has(t),i=nt.has(e)||it.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?nt.has(t):it.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?nt.has(e):it.has(e)),o&&a}}const rt=new RegExp("s*:selfs*,?","g");function ot(t,e,n){return new at(t).build(e,n)}class at{constructor(t){this._driver=t}build(t,e){const n=new lt(e);return this._resetContextStyleTimingState(n),X(this,V(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(ct(t)){const e=t;Object.keys(e).forEach(t=>{z(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=G(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=X(this,V(t.animation),e);return{type:1,matchers:et(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:ut(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>X(this,t,e)),options:ut(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=X(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:ut(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return ht(F(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ht(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||F(i,e),ht(n.duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let i,s=t.styles?t.styles:(0,r.oB)({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};n.easing&&(t.easing=n.easing),s=(0,r.oB)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(s,e);a.isEmptyStep=o,i=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==r.l3?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(ct(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=z(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c0&&i{const r=u>0?i==h?1:u*i:s[i],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:X(this,V(t.animation),e),options:ut(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ut(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ut(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(rt,"")),[t=t.replace(/@\*/g,I).replace(/@\w+/g,t=>I+"-"+t.substr(1)).replace(/:animating/g,D),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,p(e.collectedStyles,e.currentQuerySelector,{});const o=X(this,V(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:ut(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:F(t.timings,e.errors,!0);return{type:12,animation:X(this,V(t.animation),e),timings:n,options:null}}}class lt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ct(t){return!Array.isArray(t)&&"object"==typeof t}function ut(t){return t?(t=N(t)).params&&(t.params=function(t){return t?N(t):null}(t.params)):t={},t}function ht(t,e,n){return{duration:t,delay:e,easing:n}}function dt(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class pt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ft=new RegExp(":enter","g"),mt=new RegExp(":leave","g");function gt(t,e,n,i,s,r={},o={},a,l,c=[]){return(new _t).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class _t{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new pt;const u=new bt(t,e,l,i,s,c,[]);u.options=a,u.currentTimeline.setStyles([r],null,u.errors,a),X(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[dt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?M(n.duration):null,r=null!=n.delay?M(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),X(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=yt);const t=M(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>X(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?M(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),X(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return F(e.params?Y(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?M(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=yt);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),X(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;X(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const yt={};class bt{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new vt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=M(n.duration)),null!=n.delay&&(i.delay=M(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{(!e||!t.hasOwnProperty(n))&&(t[n]=Y(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new bt(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=yt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new wt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(ft,"."+this._enterClassName)).replace(mt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return!s&&0==o.length&&r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class vt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new vt(this._driver,t,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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||r.l3,this._currentKeyframe[t]=r.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},o=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=r.l3})):B(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=Y(o[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:r.l3),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,o)=>{const a=B(s,!0);Object.keys(a).forEach(n=>{const i=a[n];i==r.k1?t.add(n):i==r.l3&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const s=t.size?G(t.values()):[],o=e.size?G(e.values()):[];if(n){const t=i[0],e=N(t);t.offset=0,e.offset=1,i=[t,e]}return dt(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class wt extends vt{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=B(t[0],!1);a.offset=0,s.push(a);const l=B(t[0],!1);l.offset=xt(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=B(t[i],!1);o.offset=xt((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return dt(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function xt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Ct{}class Et extends Ct{normalizePropertyName(t,e){return $(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(kt[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const kt=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function St(t,e,n,i,s,r,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const At={};class Tt{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||At,d=this.buildStyles(n,o&&o.params||At,u),f=a&&a.params||At,m=this.buildStyles(i,f,u),g=new Set,_=new Map,y=new Map,b="void"===i,v={params:Object.assign(Object.assign({},h),f)},w=c?[]:gt(t,e,this.ast.animation,s,r,d,m,v,l,u);let x=0;if(w.forEach(t=>{x=Math.max(t.duration+t.delay,x)}),u.length)return St(e,this._triggerName,n,i,b,d,m,[],[],_,y,x,u);w.forEach(t=>{const n=t.element,i=p(_,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=p(y,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&g.add(n)});const C=G(g.values());return St(e,this._triggerName,n,i,b,d,m,w,C,_,y,x)}}class Ot{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},i=N(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Y(r,i,e));const o=this.normalizer.normalizePropertyName(t,e);r=this.normalizer.normalizeStyleValue(t,o,r,e),n[o]=r})}}),n}}class Pt{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Ot(t.style,t.options&&t.options.params||{},n)}),It(this.states,"true","1"),It(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Tt(t,e,this.states))}),this.fallbackTransition=function(t,e,n){return new Tt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},e)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function It(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Rt=new pt;class Dt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=ot(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=c(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let o;const a=new Map;if(s?(o=gt(this._driver,e,s,T,O,{},{},n,Rt,i),o.forEach(t=>{const e=p(a,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);a.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,r.l3)})});const c=l(o.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const s=d(e,"","","");return u(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Mt="ng-animate-queued",Lt="ng-animate-disabled",Ft=".ng-animate-disabled",Nt=[],Bt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ut={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zt="__ng_removed";class qt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=N(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const jt="void",Vt=new qt(jt);class Ht{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Jt(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=p(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=p(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Jt(t,P),Jt(t,P+"-"+e),a[e]=Vt),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new Yt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Jt(t,P),Jt(t,P+"-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new qt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Vt),l.value!==jt&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s{j(t,n),q(t,i)})}return}const c=p(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:r,isFallbackTransition:h}),h||(Jt(t,Mt),r.onStart(()=>{Xt(t,Mt)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,I,!0);n.forEach(t=>{if(t[Zt])return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,jt,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&l(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const s=e.name;if(i.has(s))return;i.add(s);const r=this._triggers[s].fallbackTransition,o=n[s]||Vt,a=new qt(jt),l=new Yt(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t[Zt];(!i||i===Bt)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Jt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=d(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,u(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class zt{constructor(t,e,n){this.bodyNode=t,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Ht(t,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[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Jt(t,Lt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Xt(t,Lt))}removeNode(t,e,n,i){if(Gt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e[Zt]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Gt(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,I,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,D,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return l(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Zt];if(e&&e.setForRemoval){if(t[Zt]=Bt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Ft)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Ft,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?l(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new pt,i=[],s=new Map,o=[],a=new Map,c=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n=T+_++;g.set(e,n),t.forEach(t=>Jt(t,n))});const y=[],b=new Set,v=new Set;for(let r=0;rb.add(t)):v.add(t))}const w=new Map,x=Wt(f,Array.from(b));x.forEach((t,e)=>{const n=O+_++;w.set(e,n),t.forEach(t=>Jt(t,n))}),t.push(()=>{m.forEach((t,e)=>{const n=g.get(e);t.forEach(t=>Xt(t,n))}),x.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Xt(t,n))}),y.forEach(t=>{this.processLeaveNode(t)})});const C=[],E=[];for(let r=this._namespaceList.length-1;r>=0;r--)this._namespaceList[r].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(C.push(e),this.collectedEnterElements.length){const t=s[Zt];if(t&&t.setForMove)return void e.destroy()}const r=!d||!this.driver.containsElement(d,s),l=w.get(s),h=g.get(s),f=this._buildInstruction(t,n,h,l,r);if(f.errors&&f.errors.length)E.push(f);else{if(r)return e.onStart(()=>j(s,f.fromStyles)),e.onDestroy(()=>q(s,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>j(s,f.fromStyles)),e.onDestroy(()=>q(s,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),o.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>p(a,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(E.length){const t=[];E.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),C.forEach(t=>t.destroy()),this.reportError(t)}const k=new Map,S=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,k))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{p(k,e,[]).push(t),t.destroy()})});const A=y.filter(t=>ne(t,c,u)),P=new Map;$t(P,this.driver,v,u,r.l3).forEach(t=>{ne(t,c,u)&&A.push(t)});const I=new Map;m.forEach((t,e)=>{$t(I,this.driver,new Set(t),c,r.k1)}),A.forEach(t=>{const e=P.get(t),n=I.get(t);P.set(t,Object.assign(Object.assign({},e),n))});const R=[],M=[],L={};o.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(h.has(e))return r.onDestroy(()=>q(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=L;if(S.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=S.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>S.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,k,s,I,P);if(r.setRealPlayer(n),t===L)R.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=l(e)),i.push(r)}}else j(e,o.fromStyles),r.onDestroy(()=>q(e,o.toStyles)),M.push(r),h.has(e)&&i.push(r)}),M.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=l(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let r=0;r!t.destroyed);i.length?te(this,t,i):this.processLeaveNode(t)}return y.length=0,R.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),R}elementContainsData(t,e){let n=!1;const i=e[Zt];return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==jt;e.forEach(e=>{e.queued||!t&&e.triggerName!=i||r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=p(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}j(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,o){const a=e.triggerName,u=e.element,h=[],d=new Set,f=new Set,m=e.timelines.map(e=>{const l=e.element;d.add(l);const p=l[Zt];if(p&&p.removedBeforeQueried)return new r.ZN(e.duration,e.delay);const m=l!==u,g=function(t){const e=[];return ee(t,e),e}((n.get(l)||Nt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===l),_=s.get(l),y=o.get(l),b=c(0,this._normalizer,0,e.keyframes,_,y),v=this._buildPlayer(e,b,g);if(e.subTimeline&&i&&f.add(l),m){const e=new Yt(t,a,l);e.setRealPlayer(v),h.push(e)}return v});h.forEach(t=>{p(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),d.forEach(t=>Jt(t,R));const g=l(m);return g.onDestroy(()=>{d.forEach(t=>Xt(t,R)),q(u,e.toStyles)}),f.forEach(t=>{p(i,t,[]).push(g)}),g}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new r.ZN(t.duration,t.delay)}}class Yt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new r.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>u(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){p(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Gt(t){return t&&1===t.nodeType}function Kt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function $t(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Kt(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);(!n||0==n.length)&&(i[Zt]=Ut,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Kt(t,r[a++])),o}function Wt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}const Qt="$$classes";function Jt(t,e){if(t.classList)t.classList.add(e);else{let n=t[Qt];n||(n=t[Qt]={}),n[e]=!0}}function Xt(t,e){if(t.classList)t.classList.remove(e);else{let n=t[Qt];n&&delete n[e]}}function te(t,e,n){l(n).onDone(()=>t.processLeaveNode(e))}function ee(t,e){for(let n=0;ns.add(t)):e.set(t,i),n.delete(t),!0}class ie{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new zt(t,e,n),this._timelineEngine=new Dt(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=ot(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e,n){return new Pt(t,e,n)}(i,e,this._normalizer),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=f(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=f(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function se(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=oe(e[0]),e.length>1&&(i=oe(e[e.length-1]))):e&&(n=oe(e)),n||i?new re(t,n,i):null}class re{constructor(t,e,n){this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;let i=re.initialStylesByElement.get(t);i||re.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(re.initialStylesByElement.delete(this._element),this._startStyles&&(j(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}function oe(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){(function(t,e){const n=ge(t,"").trim();let i=0;n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),fe(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=ge(t,"").split(","),i=pe(n,e);i>=0&&(n.splice(i,1),me(t,"",n.join(",")))}(this._element,this._name))}}function he(t,e,n){me(t,"PlayState",n,de(t,e))}function de(t,e){const n=ge(t,"");return n.indexOf(",")>0?pe(n.split(","),e):pe([n],e)}function pe(t,e){for(let n=0;n=0)return n;return-1}function fe(t,e,n){n?t.removeEventListener(ce,e):t.addEventListener(ce,e)}function me(t,e,n,i){const s=le+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function ge(t,e){return t.style[le+e]||""}class _e{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ue(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:tt(this.element,n))})}this.currentSnapshot=t}}class ye extends r.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=k(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class be{constructor(){this._count=0}validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>k(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=`${s}}\n`}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){const a=r.filter(t=>t instanceof _e),l={};Q(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"==n||"easing"==n||(e[n]=t[n])})}),e}(e=J(t,e,l));if(0==n)return new ye(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(h);const d=se(t,e),p=new _e(t,e,u,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class ve{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,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(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:tt(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class we{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(xe().toString()),this._cssKeyframesDriver=new be}validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof ve);Q(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=se(t,e=J(t,e=e.map(t=>B(t,!1)),l));return new ve(t,e,a,u)}}function xe(){return o()&&Element.prototype.animate||{}}var Ce=n(8583);let Ee=(()=>{class t extends r._j{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?(0,r.vP)(t):t;return Ae(this._renderer,null,e,"register",[n]),new ke(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(Ce.K0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class ke extends r.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Se(this._id,t,e||{},this._renderer)}}class Se{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Ae(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Ae(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}const Te="@.disabled";let Oe=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Pe("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new Ie(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(ie),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Pe{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&e==Te?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Ie extends Pe{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==Te?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Re=(()=>{class t extends ie{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ce.K0),i.LFG(A),i.LFG(Ct))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const De=new i.OlP("AnimationModuleType"),Me=[{provide:r._j,useClass:Ee},{provide:Ct,useFactory:function(){return new Et}},{provide:ie,useClass:Re},{provide:i.FYo,useFactory:function(t,e,n){return new Oe(t,e,n)},deps:[s.se,ie,i.R0b]}],Le=[{provide:A,useFactory:function(){return"function"==typeof xe()?new we:new be}},{provide:De,useValue:"BrowserAnimations"},...Me],Fe=[{provide:A,useClass:S},{provide:De,useValue:"NoopAnimations"},...Me];let Ne=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Fe:Le}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:Le,imports:[s.b2]}),t})()},9075:function(t,e,n){"use strict";n.d(e,{b2:function(){return N},H7:function(){return D},q6:function(){return L},se:function(){return C}});var i=n(8583),s=n(3018);class r extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class o extends r{static makeCurrent(){(0,i.HT)(new o)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(l=l||document.querySelector("base"),l?l.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,i.Mx)(document.cookie,t)}}let a,l=null;const c=new s.OlP("TRANSITION_ID"),u=[{provide:s.ip1,useFactory:function(t,e,n){return()=>{n.get(s.CZH).donePromise.then(()=>{const n=(0,i.q)(),s=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let t=0;t{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?(0,i.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new s.OlP("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t extends g{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(y),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(y))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function y(t){(0,i.q)().remove(t)}const b={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},v=/%COMP%/g;function w(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let C=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new E(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new k(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case s.ifc.ShadowDom:return new S(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=w(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f),s.LFG(_),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class E{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(b[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=b[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=b[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,n,i&s.JOm.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,x(n)):this.eventManager.addEventListener(t,e,x(n))}}class k extends E{constructor(t,e,n,i){super(t),this.component=n;const s=w(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(v,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(v,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class S extends E{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=w(i.id,i.styles,[]);for(let r=0;r{class t extends m{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const T=["alt","control","meta","shift"],O={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},P={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"},I={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let R=(()=>{class t extends m{constructor(t){super(t)}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(()=>(0,i.q)().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(T.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&P.hasOwnProperty(e)&&(e=P[e]))}return O[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),T.forEach(i=>{i!=n&&I[i](t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(M)},token:t,providedIn:"root"}),t})(),M=(()=>{class t extends D{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return function(t){return new M(t.get(i.K0))}((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const L=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:i.bD},{provide:s.g9A,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),F=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:p,useClass:A,multi:!0,deps:[i.K0,s.R0b,s.Lbi]},{provide:p,useClass:R,multi:!0,deps:[i.K0]},[],{provide:C,useClass:C,deps:[f,_,s.AFp]},{provide:s.FYo,useExisting:C},{provide:g,useExisting:_},{provide:_,useClass:_,deps:[i.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:f,useClass:f,deps:[p,s.R0b]},{provide:i.JF,useClass:d,deps:[]},[]];let N=(()=>{class t{constructor(t){if(t)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:s.AFp,useValue:e.appId},{provide:c,useExisting:s.AFp},u]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:F,imports:[i.ez,s.hGG]}),t})();"undefined"!=typeof window&&window},8741:function(t,e,n){"use strict";n.d(e,{gz:function(){return se},F0:function(){return An},rH:function(){return On},yS:function(){return Pn},Bz:function(){return jn},lC:function(){return Rn}});var i=n(8583),s=n(3018);const r=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var o=n(4402),a=n(5917),l=n(6215),c=n(739),u=n(7574),h=n(8071),d=n(1439),p=n(9193),f=n(2441),m=n(9765),g=n(7393);function _(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new y(t,e,n))}}class y{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new b(t,this.accumulator,this.seed,this.hasSeed))}}class b extends g.L{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}var v=n(5345);function w(t){return function(e){const n=new x(t),i=e.lift(n);return n.caught=i}}class x{constructor(t){this.selector=t}call(t,e){return e.subscribe(new C(t,this.selector,this.caught))}}class C extends v.Ds{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new v.IY(this);this.add(i);const s=(0,v.ft)(n,i);s!==i&&this.add(s)}}}var E=n(5435),k=n(7108);function S(t){return function(e){return 0===t?(0,p.c)():e.lift(new A(t))}}class A{constructor(t){if(this.total=t,this.total<0)throw new k.W}call(t,e){return e.subscribe(new T(t,this.total))}}class T extends g.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;se.lift(new P(t))}class P{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new I(t,this.errorFactory))}}class I extends g.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function R(){return new r}function D(t=null){return e=>e.lift(new M(t))}class M{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new L(t,this.defaultValue))}}class L extends g.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var F=n(4487),N=n(5257);function B(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,E.h)((e,n)=>t(e,n,i)):F.y,(0,N.q)(1),n?D(e):O(()=>new r))}var U=n(5319);class Z{constructor(t){this.callback=t}call(t,e){return e.subscribe(new q(t,this.callback))}}class q extends g.L{constructor(t,e){super(t),this.add(new U.w(e))}}var j=n(8002),V=n(3190),H=n(9761),z=n(4612),Y=n(9773),G=n(3342),K=n(1307),$=n(3282);class W{constructor(t,e){this.id=t,this.url=e}}class Q extends W{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class J extends W{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class X extends W{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class tt extends W{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class et extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nt extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class it extends W{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class st extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rt extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ot{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class at{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class lt{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ct{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ut{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ht{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dt{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const pt="primary";class ft{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function mt(t){return new ft(t)}const gt="ngNavigationCancelingError";function _t(t){const e=Error("NavigationCancelingError: "+t);return e[gt]=!0,e}function yt(t,e,n){const i=n.path.split("/");if(i.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function wt(t){return Array.prototype.concat.apply([],t)}function xt(t){return t.length>0?t[t.length-1]:null}function Ct(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Et(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,a.of)(t)}const kt={exact:function t(e,n,i){if(!Mt(e.segments,n.segments)||!Pt(e.segments,n.segments,i)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const s in n.children)if(!e.children[s]||!t(e.children[s],n.children[s],i))return!1;return!0},subset:Tt},St={exact:function(t,e){return bt(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>vt(t[n],e[n]))},ignored:()=>!0};function At(t,e,n){return kt[n.paths](t.root,e.root,n.matrixParams)&&St[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function Tt(t,e,n){return Ot(t,e,e.segments,n)}function Ot(t,e,n,i){if(t.segments.length>n.length){const s=t.segments.slice(0,n.length);return!(!Mt(s,n)||e.hasChildren()||!Pt(s,n,i))}if(t.segments.length===n.length){if(!Mt(t.segments,n)||!Pt(t.segments,n,i))return!1;for(const n in e.children)if(!t.children[n]||!Tt(t.children[n],e.children[n],i))return!1;return!0}{const s=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!(Mt(t.segments,s)&&Pt(t.segments,s,i)&&t.children[pt])&&Ot(t.children[pt],e,r,i)}}function Pt(t,e,n){return e.every((e,i)=>St[n](t[i].parameters,e.parameters))}class It{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mt(this.queryParams)),this._queryParamMap}toString(){return Nt.serialize(this)}}class Rt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ct(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bt(this)}}class Dt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=mt(this.parameters)),this._parameterMap}toString(){return zt(this)}}function Mt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Lt{}class Ft{parse(t){const e=new Wt(t);return new It(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${Ut(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${qt(e)}=${qt(t)}`).join("&"):`${qt(e)}=${qt(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Nt=new Ft;function Bt(t){return t.segments.map(t=>zt(t)).join("/")}function Ut(t,e){if(!t.hasChildren())return Bt(t);if(e){const e=t.children[pt]?Ut(t.children[pt],!1):"",n=[];return Ct(t.children,(t,e)=>{e!==pt&&n.push(`${e}:${Ut(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return Ct(t.children,(t,i)=>{i===pt&&(n=n.concat(e(t,i)))}),Ct(t.children,(t,i)=>{i!==pt&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===pt?[Ut(t.children[pt],!1)]:[`${n}:${Ut(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[pt]?`${Bt(t)}/${e[0]}`:`${Bt(t)}/(${e.join("//")})`}}function Zt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qt(t){return Zt(t).replace(/%3B/gi,";")}function jt(t){return Zt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vt(t){return decodeURIComponent(t)}function Ht(t){return Vt(t.replace(/\+/g,"%20"))}function zt(t){return`${jt(t.path)}${function(t){return Object.keys(t).map(e=>`;${jt(e)}=${jt(t[e])}`).join("")}(t.parameters)}`}const Yt=/^[^\/()?;=#]+/;function Gt(t){const e=t.match(Yt);return e?e[0]:""}const Kt=/^[^=?&#]+/,$t=/^[^?&#]+/;class Wt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Rt([],{}):new Rt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[pt]=new Rt(t,e)),n}parseSegment(){const t=Gt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Dt(Vt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Gt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Gt(this.remaining);t&&(n=t,this.capture(n))}t[Vt(e)]=Vt(n)}parseQueryParam(t){const e=function(t){const e=t.match(Kt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match($t);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Ht(e),s=Ht(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Gt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=pt);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r[pt]:new Rt([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Qt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Jt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Jt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Xt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Xt(t,this._root).map(t=>t.value)}}function Jt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Jt(t,n);if(e)return e}return null}function Xt(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Xt(t,n);if(i.length)return i.unshift(e),i}return[]}class te{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function ee(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class ne extends Qt{constructor(t,e){super(t),this.snapshot=e,le(this,t)}toString(){return this.snapshot.toString()}}function ie(t,e){const n=function(t,e){const n=new oe([],{},{},"",{},pt,e,null,t.root,-1,{});return new ae("",new te(n,[]))}(t,e),i=new l.X([new Dt("",{})]),s=new l.X({}),r=new l.X({}),o=new l.X({}),a=new l.X(""),c=new se(i,s,o,a,r,pt,e,n.root);return c.snapshot=n.root,new ne(new te(c,[]),n)}class se{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}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((0,j.U)(t=>mt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,j.U)(t=>mt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function re(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class oe{constructor(t,e,n,i,s,r,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}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=mt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ae extends Qt{constructor(t,e){super(e),this.url=t,le(this,e)}toString(){return ce(this._root)}}function le(t,e){e.value._routerState=t,e.children.forEach(e=>le(t,e))}function ce(t){const e=t.children.length>0?` { ${t.children.map(ce).join(", ")} } `:"";return`${t.value}${e}`}function ue(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,bt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),bt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nbt(t.parameters,e[n].parameters))}(t.url,e.url)&&!(!t.parent!=!e.parent)&&(!t.parent||he(t.parent,e.parent))}function de(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return de(t,e,i);return de(t,e)})}(t,e,n);return new te(i,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return pe(e,t),t}}const n=function(t){return new se(new l.X(t.url),new l.X(t.params),new l.X(t.queryParams),new l.X(t.fragment),new l.X(t.data),t.outlet,t.component,t)}(e.value),i=e.children.map(e=>de(t,e));return new te(n,i)}}function pe(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new It(n.root===t?e:_e(n.root,t,e),r,s)}function _e(t,e,n){const i={};return Ct(t.children,(t,s)=>{i[s]=t===e?n:_e(t,e,n)}),new Rt(t.segments,i)}class ye{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&fe(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(me);if(i&&i!==xt(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class be{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function ve(t,e,n){if(t||(t=new Rt([],{})),0===t.segments.length&&t.hasChildren())return we(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return r;const e=t.segments[s],o=n[i];if(me(o))break;const a=`${o}`,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!ke(a,l,e))return r;i+=2}else{if(!ke(a,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(s[i]=ve(t.children[i],e,n))}),Ct(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new Rt(t.segments,s)}}function xe(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=xe(new Rt([],{}),0,t))}),e}function Ee(t){const e={};return Ct(t,(t,n)=>e[n]=`${t}`),e}function ke(t,e,n){return t==n.path&&bt(e,n.parameters)}class Se{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),ue(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=ee(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),Ct(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,s=ee(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=ee(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new ht(t.value.snapshot))}),t.children.length&&this.forwardEvent(new ct(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(ue(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Ae(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Ae(t){ue(t.value),t.children.forEach(Ae)}class Te{constructor(t,e){this.routes=t,this.module=e}}function Oe(t){return"function"==typeof t}function Pe(t){return t instanceof It}const Ie=Symbol("INITIAL_VALUE");function Re(){return(0,V.w)(t=>(0,c.aj)(t.map(t=>t.pipe((0,N.q)(1),(0,H.O)(Ie)))).pipe(_((t,e)=>{let n=!1;return e.reduce((t,i,s)=>t!==Ie?t:(i===Ie&&(n=!0),n||!1!==i&&s!==e.length-1&&!Pe(i)?t:i),t)},Ie),(0,E.h)(t=>t!==Ie),(0,j.U)(t=>Pe(t)?t:!0===t),(0,N.q)(1)))}let De=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[Rn]},encapsulation:2}),t})();function Me(t,e=""){for(let n=0;nBe(t)===e);return n.push(...t.filter(t=>Be(t)!==e)),n}const Ze={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function qe(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Ze):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||yt)(n,t,e);if(!s)return Object.assign({},Ze);const r={};Ct(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function je(t,e,n,i,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Ve(t,e,n)&&Be(n)!==pt)}(t,n,i)){const s=new Rt(e,function(t,e,n,i){const s={};s[pt]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&Be(r)!==pt){const n=new Rt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Be(r)]=n}return s}(t,e,i,new Rt(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Ve(t,e,n))}(t,n,i)){const r=new Rt(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(Ve(t,n,a)&&!s[Be(a)]){const n=new Rt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Be(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Rt(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Ve(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function He(t,e,n,i){return!!(Be(t)===i||i!==pt&&Ve(e,n,t))&&("**"===t.path||qe(e,t,n).matched)}function ze(t,e,n){return 0===e.length&&!t.children[n]}class Ye{constructor(t){this.segmentGroup=t||null}}class Ge{constructor(t){this.urlTree=t}}function Ke(t){return new u.y(e=>e.error(new Ye(t)))}function $e(t){return new u.y(e=>e.error(new Ge(t)))}function We(t){return new u.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Qe{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=je(this.urlTree.root,[],[],this.config).segmentGroup,e=new Rt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,pt).pipe((0,j.U)(t=>this.createUrlTree(Je(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(w(t=>{if(t instanceof Ge)return this.allowRedirects=!1,this.match(t.urlTree);throw t instanceof Ye?this.noMatchError(t):t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,pt).pipe((0,j.U)(e=>this.createUrlTree(Je(e),t.queryParams,t.fragment))).pipe(w(t=>{throw t instanceof Ye?this.noMatchError(t):t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Rt([],{[pt]:t}):t;return new It(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,j.U)(t=>new Rt([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const s of Object.keys(n.children))"primary"===s?i.unshift(s):i.push(s);return(0,o.D)(i).pipe((0,z.b)(i=>{const s=n.children[i],r=Ue(e,i);return this.expandSegmentGroup(t,r,s,i).pipe((0,j.U)(t=>({segment:t,outlet:i})))}),_((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,E.h)((e,n)=>t(e,n,i)):F.y,S(1),n?D(e):O(()=>new r))}())}expandSegment(t,e,n,i,s,l){return(0,o.D)(n).pipe((0,z.b)(r=>this.expandSegmentAgainstRoute(t,e,n,r,i,s,l).pipe(w(t=>{if(t instanceof Ye)return(0,a.of)(null);throw t}))),B(t=>!!t),w((t,n)=>{if(t instanceof r||"EmptyError"===t.name){if(ze(e,i,s))return(0,a.of)(new Rt([],{}));throw new Ye(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return He(i,e,s,r)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):Ke(e):Ke(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?$e(s):this.lineralizeSegments(n,s).pipe((0,Y.zg)(n=>{const s=new Rt(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=qe(e,i,s);if(!o)return Ke(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?$e(u):this.lineralizeSegments(i,u).pipe((0,Y.zg)(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,a.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,j.U)(t=>(n._loadedConfig=t,new Rt(i,{})))):(0,a.of)(new Rt(i,{}));const{matched:r,consumedSegments:o,lastChild:l}=qe(e,n,i);if(!r)return Ke(e);const c=i.slice(l);return this.getChildConfig(t,n,i).pipe((0,Y.zg)(t=>{const i=t.module,r=t.routes,{segmentGroup:l,slicedSegments:u}=je(e,o,c,r),h=new Rt(l.segments,l.children);if(0===u.length&&h.hasChildren())return this.expandChildren(i,r,h).pipe((0,j.U)(t=>new Rt(o,t)));if(0===r.length&&0===u.length)return(0,a.of)(new Rt(o,{}));const d=Be(n)===s;return this.expandSegment(i,h,r,u,d?pt:s,!0).pipe((0,j.U)(t=>new Rt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?(0,a.of)(new Te(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,a.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,Y.zg)(n=>{return n?this.configLoader.load(t.injector,e).pipe((0,j.U)(t=>(e._loadedConfig=t,t))):(i=e,new u.y(t=>t.error(_t(`Cannot load children because the guard of the route "path: '${i.path}'" returned false`))));var i})):(0,a.of)(new Te([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return(0,a.of)(!0);const s=i.map(i=>{const s=t.get(i);let r;if((o=s)&&Oe(o.canLoad))r=s.canLoad(e,n);else{if(!Oe(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}var o;return Et(r)});return(0,a.of)(s).pipe(Re(),(0,G.b)(t=>{if(!Pe(t))return;const e=_t(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,j.U)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,a.of)(n);if(i.numberOfChildren>1||!i.children[pt])return We(t.redirectTo);i=i.children[pt]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new It(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Ct(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return Ct(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new Rt(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function Je(t){const e={};for(const n of Object.keys(t.children)){const i=Je(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children[pt]){const e=t.children[pt];return new Rt(t.segments.concat(e.segments),e.children)}return t}(new Rt(t.segments,e))}class Xe{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class tn{constructor(t,e){this.component=t,this.route=e}}function en(t,e,n){const i=t._root;return sn(i,e?e._root:null,n,[i.value])}function nn(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function sn(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=ee(e);return t.children.forEach(t=>{(function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Mt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Mt(t.url,e.url)||!bt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!he(t,e)||!bt(t.queryParams,e.queryParams);case"paramsChange":default:return!he(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Xe(i)):(r.data=o.data,r._resolvedData=o._resolvedData),sn(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new tn(a.outlet.component,o))}else o&&rn(e,a,s),s.canActivateChecks.push(new Xe(i)),sn(t,null,r.component?a?a.children:null:n,i,s)})(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),Ct(r,(t,e)=>rn(t,n.getContext(e),s)),s}function rn(t,e,n){const i=ee(t),s=t.value;Ct(i,(t,i)=>{rn(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new tn(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class on{}function an(t){return new u.y(e=>e.error(t))}class ln{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=je(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,pt);if(null===e)return null;const n=new oe([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},pt,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new te(n,e),s=new ae(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=re(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const i=e.children[s],r=Ue(t,s),o=this.processSegmentGroup(r,i,s);if(null===o)return null;n.push(...o)}const i=un(n);return i.sort((t,e)=>t.value.outlet===pt?-1:e.value.outlet===pt?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,i);if(null!==t)return t}return ze(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!He(t,e,n,i))return null;let s,r=[],o=[];if("**"===t.path){const i=n.length>0?xt(n).parameters:{};s=new oe(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,pn(t),Be(t),t.component,t,hn(e),dn(e)+n.length,fn(t))}else{const i=qe(e,t,n);if(!i.matched)return null;r=i.consumedSegments,o=n.slice(i.lastChild),s=new oe(r,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,pn(t),Be(t),t.component,t,hn(e),dn(e)+r.length,fn(t))}const a=(u=t).children?u.children:u.loadChildren?u._loadedConfig.routes:[],{segmentGroup:l,slicedSegments:c}=je(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);var u;if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new te(s,t)]}if(0===a.length&&0===c.length)return[new te(s,[])];const h=Be(t)===i,d=this.processSegment(a,l,c,h?pt:i);return null===d?null:[new te(s,d)]}}function cn(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function un(t){const e=[],n=new Set;for(const i of t){if(!cn(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=un(i.children);e.push(new te(i.value,t))}return e.filter(t=>!n.has(t))}function hn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function dn(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function pn(t){return t.data||{}}function fn(t){return t.resolve||{}}function mn(t){return(0,V.w)(e=>{const n=t(e);return n?(0,o.D)(n).pipe((0,j.U)(()=>e)):(0,a.of)(e)})}class gn extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const _n=new s.OlP("ROUTES");class yn{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe((0,j.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new Te(wt(i.injector.get(_n,void 0,s.XFs.Self|s.XFs.Optional)).map(Ne),i)}),w(t=>{throw e._loader$=void 0,t}));return e._loader$=new f.c(n,()=>new m.xQ).pipe((0,K.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):Et(t()).pipe((0,Y.zg)(t=>t instanceof s.YKP?(0,a.of)(t):(0,o.D)(this.compiler.compileModuleAsync(t))))}}class bn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new vn,this.attachRef=null}}class vn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new bn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class wn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function xn(t){throw t}function Cn(t,e,n){return e.parse("/")}function En(t,e){return(0,a.of)(null)}const kn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Sn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let An=(()=>{class t{constructor(t,e,n,i,r,o,a,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new m.xQ,this.errorHandler=xn,this.malformedUriErrorHandler=Cn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:En,afterPreactivation:En},this.urlHandlingStrategy=new wn,this.routeReuseStrategy=new gn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=r.get(s.h0i),this.console=r.get(s.c2e);const u=r.get(s.R0b);this.isNgZoneEnabled=u instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new It(new Rt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new yn(o,a,t=>this.triggerEvent(new ot(t)),t=>this.triggerEvent(new at(t))),this.routerState=ie(this.currentUrlTree,this.rootComponentType),this.transitions=new l.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe((0,E.h)(t=>0!==t.id),(0,j.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,V.w)(t=>{let n=!1,i=!1;return(0,a.of)(t).pipe((0,G.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,V.w)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString(),s=("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl);if(Tn(t.source)&&(this.browserUrlTree=t.rawUrl),s)return(0,a.of)(t).pipe((0,V.w)(t=>{const n=this.transitions.getValue();return e.next(new Q(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?p.E:Promise.resolve(t)}),function(t,e,n,i){return(0,V.w)(s=>function(t,e,n,i,s){return new Qe(t,e,n,i,s).apply()}(t,e,n,s.extractedUrl,i).pipe((0,j.U)(t=>Object.assign(Object.assign({},s),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,G.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,s,r){return(0,Y.zg)(o=>function(t,e,n,s,r="emptyOnly",o="legacy"){try{const i=new ln(t,e,n,s,r,o).recognize();return null===i?an(new on):(0,a.of)(i)}catch(i){return an(i)}}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),s,r).pipe((0,j.U)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,G.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new et(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,l=new Q(n,this.serializeUrl(i),s,r);e.next(l);const c=ie(i,this.rootComponentType).snapshot;return(0,a.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.E}),mn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),(0,G.b)(t=>{const e=new nt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,j.U)(t=>Object.assign(Object.assign({},t),{guards:en(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,Y.zg)(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:l}}=n;return 0===l.length&&0===r.length?(0,a.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return(0,o.D)(t).pipe((0,Y.zg)(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return(0,a.of)(!0);const o=r.map(r=>{const o=nn(r,e,s);let a;if(function(t){return t&&Oe(t.canDeactivate)}(o))a=Et(o.canDeactivate(t,e,n,i));else{if(!Oe(o))throw new Error("Invalid CanDeactivate guard");a=Et(o(t,e,n,i))}return a.pipe(B())});return(0,a.of)(o).pipe(Re())}(t.component,t.route,n,e,i)),B(t=>!0!==t,!0))}(l,i,s,t).pipe((0,Y.zg)(n=>n&&function(t){return"boolean"==typeof t}(n)?function(t,e,n,i){return(0,o.D)(e).pipe((0,z.b)(e=>(0,h.z)(function(t,e){return null!==t&&e&&e(new lt(t)),(0,a.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new ut(t)),(0,a.of)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>(0,d.P)(()=>{const s=e.guards.map(s=>{const r=nn(s,e.node,n);let o;if(function(t){return t&&Oe(t.canActivateChild)}(r))o=Et(r.canActivateChild(i,t));else{if(!Oe(r))throw new Error("Invalid CanActivateChild guard");o=Et(r(i,t))}return o.pipe(B())});return(0,a.of)(s).pipe(Re())}));return(0,a.of)(s).pipe(Re())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return(0,a.of)(!0);const s=i.map(i=>(0,d.P)(()=>{const s=nn(i,e,n);let r;if(function(t){return t&&Oe(t.canActivate)}(s))r=Et(s.canActivate(e,t));else{if(!Oe(s))throw new Error("Invalid CanActivate guard");r=Et(s(e,t))}return r.pipe(B())}));return(0,a.of)(s).pipe(Re())}(t,e.route,n))),B(t=>!0!==t,!0))}(i,r,t,e):(0,a.of)(n)),(0,j.U)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,G.b)(t=>{if(Pe(t.guardsResult)){const e=_t(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new it(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,E.h)(t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1)),mn(t=>{if(t.guards.canActivateChecks.length)return(0,a.of)(t).pipe((0,G.b)(t=>{const e=new st(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,V.w)(t=>{let e=!1;return(0,a.of)(t).pipe(function(t,e){return(0,Y.zg)(n=>{const{targetSnapshot:i,guards:{canActivateChecks:s}}=n;if(!s.length)return(0,a.of)(n);let r=0;return(0,o.D)(s).pipe((0,z.b)(n=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return(0,a.of)({});const r={};return(0,o.D)(s).pipe((0,Y.zg)(s=>function(t,e,n,i){const s=nn(t,e,i);return Et(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe((0,G.b)(t=>{r[s]=t}))),S(1),(0,Y.zg)(()=>Object.keys(r).length===s.length?(0,a.of)(r):p.E))}(t._resolve,t,e,i).pipe((0,j.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),re(t,n).resolve),null)))}(n.route,i,t,e)),(0,G.b)(()=>r++),S(1),(0,Y.zg)(t=>r===s.length?(0,a.of)(n):p.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,G.b)({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}))}),(0,G.b)(t=>{const e=new rt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),mn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),(0,j.U)(t=>{const e=function(t,e,n){const i=de(t,e._root,n?n._root:void 0);return new ne(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,G.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),((t,e,n)=>(0,j.U)(i=>(new Se(e,i.targetRouterState,i.currentRouterState,n).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,t=>this.triggerEvent(t)),(0,G.b)({next(){n=!0},complete(){n=!0}}),function(t){return e=>e.lift(new Z(t))}(()=>{if(!n&&!i){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}this.currentNavigation=null}),w(n=>{if(i=!0,function(t){return t&&t[gt]}(n)){const i=Pe(n.url);i||(this.navigated=!0,this.restoreHistory(t,!0));const s=new X(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),i={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Tn(t.source)};this.scheduleNavigation(e,"imperative",null,i,{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.restoreHistory(t,!0);const i=new tt(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}return p.E}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return e.transitionId!==t.transitionId||!n||!("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Me(t),this.config=t.map(Ne),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(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,s){if(0===n.length)return ge(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ye(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return Ct(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new ye(n,e,i)}(n);if(r.toRoot())return ge(e.root,new Rt([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new be(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new be(t,t===e.root,0)}const i=fe(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new be(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?we(o.segmentGroup,o.index,r.commands):ve(o.segmentGroup,o.index,r.commands);return ge(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Pe(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new J(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){var r,o;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l=Tn(e)&&a&&!Tn(a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&c)return Promise.resolve(!0);let u,h,d;s?(u=s.resolve,h=s.reject,d=s.promise):d=new Promise((t,e)=>{u=t,h=e});const p=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.\u0275routerPageId?n.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(r=this.browserPageId)&&void 0!==r?r:0:(null!==(o=this.browserPageId)&&void 0!==o?o:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:u,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}restoreHistory(t,e=!1){var n,i;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new X(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(Lt),s.LFG(vn),s.LFG(i.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Tn(t){return"imperative"!==t}let On=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new m.xQ,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(An),s.Y36(se),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})(),Pn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new m.xQ,this.subscription=t.events.subscribe(t=>{t instanceof J&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,s){if(0!==t||e||n||i||s||"string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(An),s.Y36(se),s.Y36(i.S$))},t.\u0275dir=s.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Ikx("href",e.href,s.LSH),s.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})();function In(t){return""===t||!!t}let Rn=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=i||pt,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.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 t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new Dn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(vn),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Dn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===se?this.route:t===vn?this.childContexts:this.parent.get(t,e)}}class Mn{}class Ln{preload(t,e){return(0,a.of)(null)}}let Fn=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new yn(e,n,e=>t.triggerEvent(new ot(e)),e=>t.triggerEvent(new at(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,E.h)(t=>t instanceof J),(0,z.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return(0,o.D)(n).pipe((0,$.J)(),(0,j.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,a.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,Y.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(An),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(Mn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Nn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Q?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof J&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof dt&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new dt(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(An),s.LFG(i.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Bn=new s.OlP("ROUTER_CONFIGURATION"),Un=new s.OlP("ROUTER_FORROOT_GUARD"),Zn=[i.Ye,{provide:Lt,useClass:Ft},{provide:An,useFactory:function(t,e,n,i,s,r,o,a={},l,c){const u=new An(null,t,e,n,i,s,r,wt(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[Lt,vn,i.Ye,s.zs3,s.v3s,s.Sil,_n,Bn,[class{},new s.FiY],[class{},new s.FiY]]},vn,{provide:se,useFactory:function(t){return t.routerState.root},deps:[An]},{provide:s.v3s,useClass:s.EAV},Fn,Ln,class{preload(t,e){return e().pipe(w(()=>(0,a.of)(null)))}},{provide:Bn,useValue:{enableTracing:!1}}];function qn(){return new s.PXZ("Router",An)}let jn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Zn,Yn(e),{provide:Un,useFactory:zn,deps:[[An,new s.FiY,new s.tp0]]},{provide:Bn,useValue:n||{}},{provide:i.S$,useFactory:Hn,deps:[i.lw,[new s.tBr(i.mr),new s.FiY],Bn]},{provide:Nn,useFactory:Vn,deps:[An,i.EM,Bn]},{provide:Mn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ln},{provide:s.PXZ,multi:!0,useFactory:qn},[Gn,{provide:s.ip1,multi:!0,useFactory:Kn,deps:[Gn]},{provide:Wn,useFactory:$n,deps:[Gn]},{provide:s.tb,multi:!0,useExisting:Wn}]]}}static forChild(e){return{ngModule:t,providers:[Yn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Un,8),s.LFG(An,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function Vn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Nn(t,e,n)}function Hn(t,e,n={}){return n.useHash?new i.Do(t,e):new i.b0(t,e)}function zn(t){return"guarded"}function Yn(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:_n,multi:!0,useValue:t}]}let Gn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new m.xQ}appInitializer(){return this.injector.get(i.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(An),i=this.injector.get(Bn);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,a.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Bn),n=this.injector.get(Fn),i=this.injector.get(Nn),r=this.injector.get(An),o=this.injector.get(s.z2F);t===o.components[0]&&(("enabledNonBlocking"===e.initialNavigation||void 0===e.initialNavigation)&&r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Kn(t){return t.appInitializer.bind(t)}function $n(t){return t.bootstrapListener.bind(t)}const Wn=new s.OlP("Router Initializer")},6215:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});var i=n(9765),s=n(7971);class r extends i.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(t){super.next(this._value=t)}}},1593:function(t,e,n){"use strict";n.d(e,{P:function(){return o}});var i=n(9193),s=n(5917),r=n(7574);class o{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return t=this.error,new r.y(e=>e.error(t));case"C":return(0,i.c)()}var t;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new o("N",t):o.undefinedValueNotification}static createError(t){return new o("E",void 0,t)}static createComplete(){return o.completeNotification}}o.completeNotification=new o("C"),o.undefinedValueNotification=new o("N",void 0)},7574:function(t,e,n){"use strict";n.d(e,{y:function(){return c}});var i=n(7393),s=n(9181),r=n(6490),o=n(6554),a=n(4487);var l=n(2494);let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof i.L)return t;if(t[s.b])return t[s.b]()}return t||e||n?new i.L(t,e,n):new i.L(r.c)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof i.L?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.L](){return this}pipe(...t){return 0===t.length?this:function(t){return 0===t.length?a.y:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}(t)(this)}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=l.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},6490:function(t,e,n){"use strict";n.d(e,{c:function(){return r}});var i=n(2494),s=n(4449);const r={closed:!0,next(t){},error(t){if(i.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},9765:function(t,e,n){"use strict";n.d(e,{Yc:function(){return c},xQ:function(){return u}});var i=n(7574),s=n(7393),r=n(5319),o=n(7971),a=n(8858),l=n(9181);class c extends s.L{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends i.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.b](){return new c(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.N;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;snew h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):r.w.EMPTY}}},8858:function(t,e,n){"use strict";n.d(e,{W:function(){return s}});var i=n(5319);class s extends i.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},7393:function(t,e,n){"use strict";n.d(e,{L:function(){return c}});var i=n(9105),s=n(6490),r=n(5319),o=n(9181),a=n(2494),l=n(4449);class c extends r.w{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.b](){return this}static create(t,e,n){const i=new c(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends c{constructor(t,e,n,r){super(),this._parentSubscriber=t;let o,a=this;(0,i.m)(e)?o=e:e&&(o=e.next,n=e.error,r=e.complete,e!==s.c&&(a=Object.create(e),(0,i.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.v;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,l.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,l.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw n;(0,l.z)(n)}}__tryOrSetError(t,e,n){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):((0,l.z)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},5319:function(t,e,n){"use strict";n.d(e,{w:function(){return a}});var i=n(9796),s=n(1555),r=n(9105);const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class a{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof a)e.remove(this);else if(null!==e)for(let i=0;it.concat(e instanceof o?e.errors:e),[])}a.EMPTY=((l=new a).closed=!0,l)},2494:function(t,e,n){"use strict";n.d(e,{v:function(){return s}});let i=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},5345:function(t,e,n){"use strict";n.d(e,{IY:function(){return o},Ds:function(){return a},ft:function(){return l}});var i=n(7393),s=n(7574),r=n(7444);class o extends i.L{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends i.L{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function l(t,e){if(e.closed)return;if(t instanceof s.y)return t.subscribe(e);let n;try{n=(0,r.s)(t)(e)}catch(i){e.error(i)}return n}},2441:function(t,e,n){"use strict";n.d(e,{c:function(){return a},N:function(){return l}});var i=n(9765),s=n(7574),r=n(5319),o=n(1307);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new r.w,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed&&(this._connection=null,t=r.w.EMPTY)),t}refCount(){return(0,o.x)()(this)}}const l=(()=>{const t=a.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 c extends i.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},739:function(t,e,n){"use strict";n.d(e,{aj:function(){return p}});var i=n(4869),s=n(9796),r=n(7393);class o extends r.L{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class a extends r.L{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var l=n(7444),c=n(7574);function u(t,e,n,i,s=new a(t,n,i)){if(!s.closed)return e instanceof c.y?e.subscribe(s):(0,l.s)(e)(s)}var h=n(6693);const d={};function p(...t){let e,n;return(0,i.K)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,h.n)(t,n).lift(new f(e))}class f{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new m(t,this.resultSelector))}}class m extends o{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(d),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{let n;try{n=t()}catch(i){return void e.error(i)}return(n?(0,s.D)(n):(0,r.c)()).subscribe(e)})}},9193:function(t,e,n){"use strict";n.d(e,{E:function(){return s},c:function(){return r}});var i=n(7574);const s=new i.y(t=>t.complete());function r(t){return t?function(t){return new i.y(e=>t.schedule(()=>e.complete()))}(t):s}},4402:function(t,e,n){"use strict";n.d(e,{D:function(){return h}});var i=n(7574),s=n(7444),r=n(5319),o=n(6554),a=n(4087),l=n(377),c=n(4072),u=n(9489);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.L]}(t))return function(t,e){return new i.y(n=>{const i=new r.w;return i.add(e.schedule(()=>{const s=t[o.L]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if((0,c.t)(t))return function(t,e){return new i.y(n=>{const i=new r.w;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if((0,u.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[l.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.y(n=>{const i=new r.w;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[l.hZ](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.y?t:new i.y((0,s.s)(t))}},6693:function(t,e,n){"use strict";n.d(e,{n:function(){return o}});var i=n(7574),s=n(5015),r=n(4087);function o(t,e){return e?(0,r.r)(t,e):new i.y((0,s.V)(t))}},2759:function(t,e,n){"use strict";n.d(e,{R:function(){return a}});var i=n(7574),s=n(9796),r=n(9105),o=n(8002);function a(t,e,n,c){return(0,r.m)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe((0,o.U)(t=>(0,s.k)(t)?c(...t):c(t))):new i.y(i=>{l(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function l(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.y?t[0]:(0,r.J)(e)((0,o.n)(t,n))}},5917:function(t,e,n){"use strict";n.d(e,{of:function(){return o}});var i=n(4869),s=n(6693),r=n(4087);function o(...t){let e=t[t.length-1];return(0,i.K)(e)?(t.pop(),(0,r.r)(t,e)):(0,s.n)(t)}},628:function(t,e,n){"use strict";n.d(e,{e:function(){return h}});var i=n(3637),s=n(5345);class r{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new o(t,this.durationSelector))}}class o extends s.Ds{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=(0,s.ft)(n,new s.IY(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,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(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n(7574),l=n(6561),c=n(4869);function u(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function h(t,e=i.P){return function(t){return function(e){return e.lift(new r(t))}}(()=>function(t=0,e,n){let s=-1;return(0,l.k)(e)?s=Number(e)<1?1:Number(e):(0,c.K)(e)&&(n=e),(0,c.K)(n)||(n=i.P),new a.y(e=>{const i=(0,l.k)(t)?t:+t-n.now();return n.schedule(u,i,{index:0,period:s,subscriber:e})})}(t,e))}},4612:function(t,e,n){"use strict";n.d(e,{b:function(){return s}});var i=n(9773);function s(t,e){return(0,i.zg)(t,e,1)}},4395:function(t,e,n){"use strict";n.d(e,{b:function(){return r}});var i=n(7393),s=n(3637);function r(t,e=s.P){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.L{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},7519:function(t,e,n){"use strict";n.d(e,{x:function(){return s}});var i=n(7393);function s(t,e){return n=>n.lift(new r(t,e))}class r{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends i.L{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},5435:function(t,e,n){"use strict";n.d(e,{h:function(){return s}});var i=n(7393);function s(t,e){return function(n){return n.lift(new r(t,e))}}class r{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},8002:function(t,e,n){"use strict";n.d(e,{U:function(){return s}});var i=n(7393);function s(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new r(t,e))}}class r{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},3282:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});var i=n(9773),s=n(4487);function r(t=Number.POSITIVE_INFINITY){return(0,i.zg)(s.y,t)}},9773:function(t,e,n){"use strict";n.d(e,{zg:function(){return o}});var i=n(8002),s=n(4402),r=n(5345);function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(o((n,r)=>(0,s.D)(t(n,r)).pipe((0,i.U)((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends r.Ds{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1307:function(t,e,n){"use strict";n.d(e,{x:function(){return s}});var i=n(7393);function s(){return function(t){return t.lift(new r(t))}}class r{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new o(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class o extends i.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}},3653:function(t,e,n){"use strict";n.d(e,{T:function(){return s}});var i=n(7393);function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.total=t}call(t,e){return e.subscribe(new o(t,this.total))}}class o extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},9761:function(t,e,n){"use strict";n.d(e,{O:function(){return r}});var i=n(8071),s=n(4869);function r(...t){const e=t[t.length-1];return(0,s.K)(e)?(t.pop(),n=>(0,i.z)(t,n,e)):e=>(0,i.z)(t,e)}},3190:function(t,e,n){"use strict";n.d(e,{w:function(){return o}});var i=n(8002),s=n(4402),r=n(5345);function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,r)=>(0,s.D)(t(n,r)).pipe((0,i.U)((t,i)=>e(n,t,r,i))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends r.Ds{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new r.IY(this),i=this.destination;i.add(n),this.innerSubscription=(0,r.ft)(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},5257:function(t,e,n){"use strict";n.d(e,{q:function(){return o}});var i=n(7393),s=n(7108),r=n(9193);function o(t){return e=>0===t?(0,r.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},6782:function(t,e,n){"use strict";n.d(e,{R:function(){return s}});var i=n(5345);function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.notifier=t}call(t,e){const n=new o(t),s=(0,i.ft)(this.notifier,new i.IY(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class o extends i.Ds{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},3342:function(t,e,n){"use strict";n.d(e,{b:function(){return o}});var i=n(7393);function s(){}var r=n(9105);function o(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends i.L{constructor(t,e,n,i){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=n||s,this._tapComplete=i||s,(0,r.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},4087:function(t,e,n){"use strict";n.d(e,{r:function(){return r}});var i=n(7574),s=n(5319);function r(t,e){return new i.y(n=>{const i=new s.w;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},6465:function(t,e,n){"use strict";n.d(e,{o:function(){return r}});var i=n(5319);class s extends i.w{constructor(t,e){super()}schedule(t,e=0){return this}}class r extends s{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},6102:function(t,e,n){"use strict";n.d(e,{v:function(){return s}});let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class s extends i{constructor(t,e=i.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},4581:function(t,e,n){"use strict";n.d(e,{E:function(){return u}});let i=1;const s=Promise.resolve(),r={};function o(t){return t in r&&(delete r[t],!0)}const a={setImmediate(t){const e=i++;return r[e]=!0,s.then(()=>o(e)&&t()),e},clearImmediate(t){o(t)}};var l=n(6465),c=n(6102);const u=new class extends c.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}})},3637:function(t,e,n){"use strict";n.d(e,{P:function(){return s}});var i=n(6465);const s=new(n(6102).v)(i.o)},377:function(t,e,n){"use strict";n.d(e,{hZ:function(){return i}});const i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:function(t,e,n){"use strict";n.d(e,{W:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},7971:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4449:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,{z:function(){return i}})},4487:function(t,e,n){"use strict";function i(t){return t}n.d(e,{y:function(){return i}})},9796:function(t,e,n){"use strict";n.d(e,{k:function(){return i}});const i=Array.isArray||(t=>t&&"number"==typeof t.length)},9489:function(t,e,n){"use strict";n.d(e,{z:function(){return i}});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},9105:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,{m:function(){return i}})},6561:function(t,e,n){"use strict";n.d(e,{k:function(){return s}});var i=n(9796);function s(t){return!(0,i.k)(t)&&t-parseFloat(t)+1>=0}},1555:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,{K:function(){return i}})},5639:function(t,e,n){"use strict";n.d(e,{b:function(){return s}});var i=n(7574);function s(t){return!!t&&(t instanceof i.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},4072:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:function(){return i}})},4869:function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,{K:function(){return i}})},7444:function(t,e,n){"use strict";n.d(e,{s:function(){return u}});var i=n(5015),s=n(4449),r=n(377),o=n(6554),a=n(9489),l=n(4072),c=n(1555);const u=t=>{if(t&&"function"==typeof t[o.L])return(t=>e=>{const n=t[o.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if((0,a.z)(t))return(0,i.V)(t);if((0,l.t)(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,s.z),e))(t);if(t&&"function"==typeof t[r.hZ])return(t=>e=>{const n=t[r.hZ]();for(;;){let t;try{t=n.next()}catch(i){return e.error(i),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const e=`You provided ${(0,c.K)(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}}},5015:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});const i=t=>e=>{for(let n=0,i=t.length;n{class t{constructor(t){this.sanitizer=t}transform(t,e){return t=(t=(t=t.replace(/<\s*script\s*/gi,"")).replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,"")).replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s.H7,16))},t.\u0275pipe=i.Yjl({name:"safeHtml",type:t,pure:!0}),t})()},3183:function(t,e,n){"use strict";n.d(e,{h:function(){return y}});var i=n(2238),s=n(7574),r=n(3637),o=n(6561);function a(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var l=n(3018),c=n(8583),u=n(1095),h=n(7918),d=n(6498);function p(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().close()}),l.TgZ(1,"uds-translate"),l._uU(2,"Close"),l.qZA(),l._uU(3),l.qZA()}if(2&t){const t=l.oxw();l.xp6(3),l.Oqu(t.extra)}}function f(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().yes()}),l.TgZ(1,"uds-translate"),l._uU(2,"Yes"),l.qZA(),l.qZA()}}function m(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().no()}),l.TgZ(1,"uds-translate"),l._uU(2,"No"),l.qZA(),l.qZA()}}var g=(()=>{return(t=g||(g={}))[t.alert=0]="alert",t[t.yesno=1]="yesno",g;var t})();let _=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.subscription=null,this.resetCallbacks(),this.yesno=new s.y(t=>{this.yes=()=>{t.next(!0),t.complete()},this.no=()=>{t.next(!1),t.complete()},this.close=()=>{this.doClose(),t.next(!1),t.complete()};const e=this;return{unsubscribe:()=>e.resetCallbacks()}})}resetCallbacks(){this.yes=this.no=()=>this.close(),this.close=()=>this.doClose()}closed(){null!==this.subscription&&this.subscription.unsubscribe()}doClose(){this.dialogRef.close()}setExtra(t){this.extra=" ("+Math.floor(t/1e3)+" "+django.gettext("seconds")+") "}initAlert(){this.data.autoclose>0?(this.dialogRef.afterClosed().subscribe(t=>{this.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(t=0,e=r.P){return(!(0,o.k)(t)||t<0)&&(t=0),(!e||"function"!=typeof e.schedule)&&(e=r.P),new s.y(n=>(n.add(e.schedule(a,t,{subscriber:n,counter:0,period:t})),n))}(1e3).subscribe(t=>{const e=this.data.autoclose-1e3*(t+1);this.setExtra(e),e<=0&&this.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(t=>{this.closed()}),this.subscription=this.data.checkClose.subscribe(t=>{window.setTimeout(()=>{this.doClose()})}))}initYesNo(){}ngOnInit(){this.data.type===g.yesno?this.initYesNo():this.initAlert()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(i.so),l.Y36(i.WI))},t.\u0275cmp=l.Xpm({type:t,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"]],template:function(t,e){1&t&&(l._UZ(0,"h4",0),l.ALo(1,"safeHtml"),l._UZ(2,"mat-dialog-content",1),l.ALo(3,"safeHtml"),l.TgZ(4,"mat-dialog-actions"),l.YNc(5,p,4,1,"button",2),l.YNc(6,f,3,0,"button",2),l.YNc(7,m,3,0,"button",2),l.qZA()),2&t&&(l.Q6J("innerHtml",l.lcZ(1,5,e.data.title),l.oJD),l.xp6(2),l.Q6J("innerHTML",l.lcZ(3,7,e.data.body),l.oJD),l.xp6(3),l.Q6J("ngIf",0===e.data.type),l.xp6(1),l.Q6J("ngIf",1===e.data.type),l.xp6(1),l.Q6J("ngIf",1===e.data.type))},directives:[i.uh,i.xY,i.H8,c.O5,u.lW,i.ZT,h.P],pipes:[d.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t})(),y=(()=>{class t{constructor(t){this.dialog=t}alert(t,e,n=0,i=null){const s=window.innerWidth<800?"80%":"40%";return this.dialog.open(_,{width:s,data:{title:t,body:e,autoclose:n,checkClose:i,type:g.alert},disableClose:!0})}yesno(t,e){const n=window.innerWidth<800?"80%":"40%";return this.dialog.open(_,{width:n,data:{title:t,body:e,type:g.yesno},disableClose:!0}).componentInstance.yesno}}return t.\u0275fac=function(e){return new(e||t)(l.LFG(i.uw))},t.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac}),t})()},2870:function(t,e,n){"use strict";n.d(e,{S:function(){return s}});var i=n(7574);let s=(()=>{class t{constructor(t){this.api=t,this.delay=t.config.launcher_wait_time}launchURL(e){let n="init";const s=t=>{let e=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof t?e=t:403===t.status&&(e=django.gettext("Your session has expired. Please, login again")),window.setTimeout(()=>{this.showAlert(django.gettext("Error"),e,5e3),403===t.status&&window.setTimeout(()=>{this.api.logout()},5e3)})};if("udsa://"===e.substring(0,7)){const t=e.split("//")[1].split("/"),r=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new i.y(e=>{let i=0;const o=()=>{r.componentInstance&&this.api.status(t[0],t[1]).subscribe(t=>{"ready"===t.status?(i?Date.now()-i>5*this.delay&&(r.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),r.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(i=Date.now(),r.componentInstance.data.title=django.gettext("Service ready"),r.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(o,this.delay)):"accessed"===t.status?(r.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),e.next(!0),e.complete()):"running"===t.status?window.setTimeout(o,this.delay):(e.next(!0),e.complete(),s())},t=>{e.next(!0),e.complete(),s(t)})},a=()=>{if("init"===n)window.setTimeout(a,this.delay);else{if("error"===n||"stop"===n)return;window.setTimeout(o)}};window.setTimeout(a)}));this.api.enabler(t[0],t[1]).subscribe(t=>{if(t.error)n="error",this.api.gui.alert(django.gettext("Error launching service"),t.error);else{if(t.url.startsWith("/"))return r.componentInstance&&r.componentInstance.close(),n="stop",void this.launchURL(t.url);"https:"===window.location.protocol&&(t.url=t.url.replace("uds://","udss://")),n="enabled",this.doLaunch(t.url)}},t=>{this.api.logout()})}else{const n=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new i.y(i=>{const r=()=>{n.componentInstance&&this.api.transportUrl(e).subscribe(e=>{if(e.url)if(i.next(!0),i.complete(),-1!==e.url.indexOf("o_s_w=")){const t=/(.*)&o_s_w=.*/.exec(e.url);window.location.href=t[1]}else{let n="global";if(-1!==e.url.indexOf("o_n_w=")){const t=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(e.url);t&&(n=t[2],e.url=t[1])}t.transportsWindow[n]&&t.transportsWindow[n].close(),t.transportsWindow[n]=window.open(e.url,"uds_trans_"+n)}else e.running?window.setTimeout(r,this.delay):(i.next(!0),i.complete(),s(e.error))},t=>{i.next(!0),i.complete(),s(t)})};window.setTimeout(r)}))}}showAlert(t,e,n,i=null){return this.api.gui.alert(django.gettext("Launching service"),'

'+t+'

'+e+"

",n,i)}doLaunch(t){let e=document.getElementById("hiddenUdsLauncherIFrame");if(null===e){const t=document.createElement("div");t.id="testID",t.innerHTML='',document.body.appendChild(t),e=document.getElementById("hiddenUdsLauncherIFrame")}e.contentWindow.location.href=t}}return t.transportsWindow={},t})()},4902:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G:function(){return LoginComponent}});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3018),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(665),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8295),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9983),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8583),_angular_material_button__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1095),_angular_material_select__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7441),_angular_material_core__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2458),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template(t,e){if(1&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&t){const t=e.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",t.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",t.name," ")}}function LoginComponent_div_22_Template(t,e){if(1&t){const t=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(1,"mat-form-field",17),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(2,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(e){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(t),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(e.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()}if(2&t){const t=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",t.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",t.auths)}}let LoginComponent=(()=>{class LoginComponent{constructor(t){this.api=t,this.title="UDS Enterprise",this.title=t.config.site_name,this.auths=t.config.authenticators.slice(0),this.auths.sort((t,e)=>t.priority-e.priority)}ngOnInit(){document.getElementById("loginform").action=this.api.config.urls.login;const t=document.getElementById("token");t.name=this.api.csrfField,t.value=this.api.csrfToken,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}changeAuth(auth){this.auth.value=auth;const doCustomAuth=data=>{eval(data)};for(const t of this.auths)t.id===auth&&t.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml(t.id).subscribe(t=>doCustomAuth(t)))}launch(){return document.getElementById("loginform").submit(),!0}}return LoginComponent.\u0275fac=function(t){return new(t||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return e.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(2,"input",2),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(10,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(11,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(12,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(17,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(18,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(24,"button",15),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",e.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",e.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",e.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,e.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_button__WEBPACK_IMPORTED_MODULE_7__.lW,_angular_material_select__WEBPACK_IMPORTED_MODULE_8__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_9__.ey],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent})()},7918:function(t,e,n){"use strict";n.d(e,{P:function(){return s}});var i=n(3018);let s=(()=>{class t{constructor(t){this.el=t}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t,selectors:[["uds-translate"]]}),t})()},3513:function(t,e,n){"use strict";n.d(e,{n:function(){return i}});class i{constructor(t){this.user=t.user,this.role=t.role,this.admin=t.admin}get isStaff(){return"staff"===this.role||"admin"===this.role}get isAdmin(){return"admin"===this.role}get isLogged(){return null!=this.user}get isRestricted(){return"restricted"===this.role}}},7540:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return UDSApiService}});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3018),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1841),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3183),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8741);let UDSApiService=(()=>{class UDSApiService{constructor(t,e,n){this.http=t,this.gui=e,this.router=n,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get staffInfo(){return udsData.info}get plugins(){return udsData.plugins}get actors(){return udsData.actors}get errors(){return udsData.errors}enabler(t,e){const n=this.config.urls.enabler.replace("param1",t).replace("param2",e);return this.http.get(n)}status(t,e){const n=this.config.urls.status.replace("param1",t).replace("param2",e);return this.http.get(n)}action(t,e){const n=this.config.urls.action.replace("param1",e).replace("param2",t);return this.http.get(n)}transportUrl(t){return this.http.get(t)}galleryImageURL(t){return this.config.urls.galleryImage.replace("param1",t)}transportIconURL(t){return this.config.urls.transportIcon.replace("param1",t)}staticURL(t){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+t:"/static/"+t}getServicesInformation(){return this.http.get(this.config.urls.services)}getErrorInformation(t){return this.http.get(this.config.urls.error.replace("9999",t))}executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}gotoAdmin(){window.location.href=this.config.urls.admin}logout(){window.location.href=this.config.urls.logout}launchURL(t){this.plugin.launchURL(t)}getAuthCustomHtml(t){return this.http.get(this.config.urls.customAuth+t,{responseType:"text"})}}return UDSApiService.\u0275fac=function(t){return new(t||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService})()},2340:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i={production:!0}},6445:function(t,e,n){"use strict";var i=n(9075),s=n(3018),r=n(9490),o=n(9765),a=n(739),l=n(8071),c=n(7574),u=n(5257),h=n(3653),d=n(4395),p=n(8002),f=n(9761),m=n(6782),g=n(521);let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const y=new Set;let b,v=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):w}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!y.has(t))try{b||(b=document.createElement("style"),b.setAttribute("type","text/css"),document.head.appendChild(b)),b.sheet&&(b.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),y.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(g.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(g.t4))},token:t,providedIn:"root"}),t})();function w(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let x=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new o.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return C((0,r.Eq)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=C((0,r.Eq)(t)).map(t=>this._registerQuery(t).observable);let n=(0,a.aj)(e);return n=(0,l.z)(n.pipe((0,u.q)(1)),n.pipe((0,h.T)(1),(0,d.b)(0))),n.pipe((0,p.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new c.y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe((0,f.O)(e),(0,p.U)(({matches:e})=>({query:t,matches:e})),(0,m.R)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(v),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(v),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})();function C(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var E=n(1841),k=n(8741),S=n(7540);let A=(()=>{class t{constructor(t){this.api=t}canActivate(t,e){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(S.n))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var T=n(4902),O=n(7918),P=n(8583);function I(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().download(e.url)}),s.TgZ(1,"div",7),s._UZ(2,"img",8),s.qZA(),s.TgZ(3,"div",9),s._uU(4),s.qZA(),s.TgZ(5,"div",10),s._uU(6),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.Tol(n.css(t)),s.xp6(2),s.Q6J("src",n.img(t.name),s.LSH),s.xp6(2),s.lnq(" ",n.legacy(t)," ",t.name," (",t.url.split(".").pop(),") "),s.xp6(2),s.hij(" ",t.description," ")}}let R=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}download(t){window.location.href=t}img(t){return this.api.staticURL("modern/img/"+t+".png")}css(t){const e=["plugin"];return t.legacy&&e.push("legacy"),e}legacy(t){return t.legacy?"Legacy":""}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h1"),s.TgZ(4,"uds-translate"),s._uU(5,"UDS Client"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"div",3),s.YNc(7,I,7,7,"div",4),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"ul"),s.TgZ(10,"li"),s.TgZ(11,"uds-translate"),s._uU(12,"Download UDS client for your platform"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(7),s.Q6J("ngForOf",e.api.plugins))},directives:[O.P,P.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem}"]}),t})();var D=n(6498);function M(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().download(e.url)}),s.TgZ(1,"div",7),s._UZ(2,"img",8),s.qZA(),s._UZ(3,"div",9),s.ALo(4,"safeHtml"),s._UZ(5,"div",10),s.ALo(6,"safeHtml"),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.Tol(n.css(t.name)),s.xp6(2),s.Q6J("src",n.img(t.name),s.LSH),s.xp6(1),s.Q6J("innerHTML",s.lcZ(4,5,t.name),s.oJD),s.xp6(2),s.Q6J("innerHTML",s.lcZ(6,7,t.description),s.oJD)}}let L=(()=>{class t{constructor(t){this.api=t}ngOnInit(){this.actors=[];const t=[];this.api.actors.forEach(e=>{e.name.includes("legacy")?t.push(e):this.actors.push(e)}),t.forEach(t=>{this.actors.push(t)})}download(t){window.location.href=t}img(t){const e=t.split(".").pop().toLowerCase();let n="Linux";return"exe"===e?n="Windows":"pkg"===e&&(n="MacOS"),this.api.staticURL("modern/img/"+n+".png")}css(t){const e=["actor"];return t.toLowerCase().includes("legacy")&&e.push("legacy"),e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h1"),s.TgZ(4,"uds-translate"),s._uU(5,"Downloads"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"div",3),s.YNc(7,M,7,9,"div",4),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"ul"),s.TgZ(10,"li"),s.TgZ(11,"uds-translate"),s._uU(12,"Always download the UDS actor matching your platform"),s.qZA(),s.qZA(),s.TgZ(13,"li"),s.TgZ(14,"uds-translate"),s._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(7),s.Q6J("ngForOf",e.actors))},directives:[O.P,P.sg],pipes:[D.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:bold;overflow:hidden}"]}),t})();var F=n(5319),N=n(8345);let B=0;const U=new s.OlP("CdkAccordion");let Z=(()=>{class t{constructor(){this._stateChanges=new o.xQ,this._openCloseAllActions=new o.xQ,this.id="cdk-accordion-"+B++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=(0,r.Ig)(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[s._Bn([{provide:U,useExisting:t}]),s.TTD]}),t})(),q=0,j=(()=>{class t{constructor(t,e,n){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=n,this._openCloseAllSubscription=F.w.EMPTY,this.closed=new s.vpe,this.opened=new s.vpe,this.destroyed=new s.vpe,this.expandedChange=new s.vpe,this.id="cdk-accordion-child-"+q++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=n.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=(0,r.Ig)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(U,12),s.Y36(s.sBO),s.Y36(N.A8))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[s._Bn([{provide:U,useValue:void 0}])]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();var H=n(7636),z=n(2458),Y=n(9238),G=n(7519),K=n(5435),$=n(6461),W=n(6237),Q=n(9193),J=n(6682),X=n(7238);const tt=["body"];function et(t,e){}const nt=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],it=["mat-expansion-panel-header","*","mat-action-row"];function st(t,e){if(1&t&&s._UZ(0,"span",2),2&t){const t=s.oxw();s.Q6J("@indicatorRotate",t._getExpandedState())}}const rt=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],ot=["mat-panel-title","mat-panel-description","*"],at=new s.OlP("MAT_ACCORDION"),lt="225ms cubic-bezier(0.4,0.0,0.2,1)",ct={indicatorRotate:(0,X.X$)("indicatorRotate",[(0,X.SB)("collapsed, void",(0,X.oB)({transform:"rotate(0deg)"})),(0,X.SB)("expanded",(0,X.oB)({transform:"rotate(180deg)"})),(0,X.eR)("expanded <=> collapsed, void => collapsed",(0,X.jt)(lt))]),bodyExpansion:(0,X.X$)("bodyExpansion",[(0,X.SB)("collapsed, void",(0,X.oB)({height:"0px",visibility:"hidden"})),(0,X.SB)("expanded",(0,X.oB)({height:"*",visibility:"visible"})),(0,X.eR)("expanded <=> collapsed, void => collapsed",(0,X.jt)(lt))])};let ut=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),ht=0;const dt=new s.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let pt=(()=>{class t extends j{constructor(t,e,n,i,r,a,l){super(t,e,n),this._viewContainerRef=i,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new s.vpe,this.afterCollapse=new s.vpe,this._inputChanges=new o.xQ,this._headerId="mat-expansion-panel-header-"+ht++,this._bodyAnimationDone=new o.xQ,this.accordion=t,this._document=r,this._bodyAnimationDone.pipe((0,G.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=(0,r.Ig)(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,f.O)(null),(0,K.h)(()=>this.expanded&&!this._portal),(0,u.q)(1)).subscribe(()=>{this._portal=new H.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(at,12),s.Y36(s.sBO),s.Y36(N.A8),s.Y36(s.s_b),s.Y36(P.K0),s.Y36(W.Qb,8),s.Y36(dt,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,ut,5),2&t){let t;s.iGM(t=s.CRH())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&s.Gf(tt,5),2&t){let t;s.iGM(t=s.CRH())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[s._Bn([{provide:at,useValue:void 0}]),s.qOj,s.TTD],ngContentSelectors:it,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(s.F$t(nt),s.Hsn(0),s.TgZ(1,"div",0,1),s.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),s.TgZ(3,"div",2),s.Hsn(4,1),s.YNc(5,et,0,0,"ng-template",3),s.qZA(),s.Hsn(6,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),s.uIk("aria-labelledby",e._headerId),s.xp6(4),s.Q6J("cdkPortalOutlet",e._portal))},directives:[H.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ct.bodyExpansion]},changeDetection:0}),t})();class ft{}const mt=(0,z.sb)(ft);let gt=(()=>{class t extends mt{constructor(t,e,n,i,s,r,o){super(),this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=i,this._animationMode=r,this._parentChangeSubscription=F.w.EMPTY;const a=t.accordion?t.accordion._stateChanges.pipe((0,K.h)(t=>!(!t.hideToggle&&!t.togglePosition))):Q.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,J.T)(t.opened,t.closed,a,t._inputChanges.pipe((0,K.h)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe((0,K.h)(()=>t._containsFocus())).subscribe(()=>n.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case $.L_:case $.K5:(0,$.Vb)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(pt,1),s.Y36(s.SBq),s.Y36(Y.tE),s.Y36(s.sBO),s.Y36(dt,8),s.Y36(W.Qb,8),s.$8M("tabindex"))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.uIk("id",e.panel._headerId)("tabindex",e.tabIndex)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),s.Udp("height",e._getHeaderHeight()),s.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[s.qOj],ngContentSelectors:ot,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(s.F$t(rt),s.TgZ(0,"span",0),s.Hsn(1),s.Hsn(2,1),s.Hsn(3,2),s.qZA(),s.YNc(4,st,1,1,"span",1)),2&t&&(s.xp6(4),s.Q6J("ngIf",e._showToggle()))},directives:[P.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[ct.indicatorRotate]},changeDetection:0}),t})(),_t=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),yt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),bt=(()=>{class t extends Z{constructor(){super(...arguments),this._ownHeaders=new s.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=(0,r.Ig)(t)}ngAfterContentInit(){this._headers.changes.pipe((0,f.O)(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Y.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,gt,5),2&t){let t;s.iGM(t=s.CRH())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[s._Bn([{provide:at,useExisting:t}]),s.qOj]}),t})(),vt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[P.ez,z.BQ,V,H.eL]]}),t})();function wt(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"uds-translate"),s._uU(2,"Detected proxy ip"),s.qZA(),s._uU(3),s.qZA()),2&t){const t=s.oxw(2);s.xp6(3),s.hij(": ",t.api.staffInfo.ip_proxy,"")}}function xt(t,e){if(1&t&&(s.TgZ(0,"li"),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function Ct(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function Et(t,e){if(1&t&&(s.TgZ(0,"div",1),s.TgZ(1,"h1"),s.TgZ(2,"uds-translate"),s._uU(3,"Information"),s.qZA(),s.qZA(),s.TgZ(4,"mat-accordion"),s.TgZ(5,"mat-expansion-panel"),s.TgZ(6,"mat-expansion-panel-header",2),s.TgZ(7,"mat-panel-title"),s._uU(8," IPs "),s.qZA(),s.TgZ(9,"mat-panel-description"),s.TgZ(10,"uds-translate"),s._uU(11,"Client IP"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(12,"ol"),s.TgZ(13,"li"),s.TgZ(14,"uds-translate"),s._uU(15,"Client IP"),s.qZA(),s._uU(16),s.qZA(),s.YNc(17,wt,4,1,"li",3),s.qZA(),s.qZA(),s.TgZ(18,"mat-expansion-panel"),s.TgZ(19,"mat-expansion-panel-header",2),s.TgZ(20,"mat-panel-title"),s.TgZ(21,"uds-translate"),s._uU(22,"Transports"),s.qZA(),s.qZA(),s.TgZ(23,"mat-panel-description"),s.TgZ(24,"uds-translate"),s._uU(25,"UDS transports for this client"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(26,"ol"),s.YNc(27,xt,2,1,"li",4),s.qZA(),s.qZA(),s.TgZ(28,"mat-expansion-panel"),s.TgZ(29,"mat-expansion-panel-header",2),s.TgZ(30,"mat-panel-title"),s.TgZ(31,"uds-translate"),s._uU(32,"Networks"),s.qZA(),s.qZA(),s.TgZ(33,"mat-panel-description"),s.TgZ(34,"uds-translate"),s._uU(35,"UDS networks for this IP"),s.qZA(),s.qZA(),s.qZA(),s.YNc(36,Ct,2,1,"span",4),s._uU(37,"\xa0 "),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(16),s.hij(": ",t.api.staffInfo.ip,""),s.xp6(1),s.Q6J("ngIf",t.api.staffInfo.ip_proxy!==t.api.staffInfo.ip),s.xp6(10),s.Q6J("ngForOf",t.api.staffInfo.transports),s.xp6(9),s.Q6J("ngForOf",t.api.staffInfo.networks)}}let kt=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(t,e){1&t&&s.YNc(0,Et,38,4,"div",0),2&t&&s.Q6J("ngIf",e.api.staffInfo)},directives:[P.O5,O.P,bt,pt,gt,yt,_t,P.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4}"]}),t})();var St=n(2759),At=n(3342),Tt=n(8295),Ot=n(9983);const Pt=["input"];let It=(()=>{class t{constructor(){this.updateEvent=new s.vpe}ngAfterViewInit(){(0,St.R)(this.input.nativeElement,"keyup").pipe((0,K.h)(Boolean),(0,d.b)(600),(0,G.x)(),(0,At.b)(()=>this.update(this.input.nativeElement.value))).subscribe()}update(t){this.updateEvent.emit(t.toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-filter"]],viewQuery:function(t,e){if(1&t&&s.Gf(Pt,7),2&t){let t;s.iGM(t=s.CRH())&&(e.input=t.first)}},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-form-field",1),s.TgZ(2,"mat-label"),s.TgZ(3,"uds-translate"),s._uU(4,"Filter"),s.qZA(),s.qZA(),s._UZ(5,"input",2,3),s.TgZ(7,"i",4),s._uU(8,"search"),s.qZA(),s.qZA(),s.qZA())},directives:[Tt.KE,Tt.hX,O.P,Ot.Nt,Tt.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),t})();var Rt=n(5917),Dt=n(4581),Mt=n(3190),Lt=n(3637),Ft=n(7393),Nt=n(1593);function Bt(t,e=Lt.P){const n=function(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-e.now():Math.abs(t);return t=>t.lift(new Ut(n,e))}class Ut{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Zt(t,this.delay,this.scheduler))}}class Zt extends Ft.L{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Zt.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new qt(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Nt.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Nt.P.createComplete()),this.unsubscribe()}}class qt{constructor(t,e){this.time=t,this.notification=e}}var jt=n(625),Vt=n(9243),Ht=n(946);const zt=["mat-menu-item",""];function Yt(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",2),s._UZ(1,"polygon",3),s.qZA())}const Gt=["*"];function Kt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.NdJ("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)})("click",function(){return s.CHM(t),s.oxw().closed.emit("click")})("@transformMenu.start",function(e){return s.CHM(t),s.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return s.CHM(t),s.oxw()._onAnimationDone(e)}),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),s.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const $t={transformMenu:(0,X.X$)("transformMenu",[(0,X.SB)("void",(0,X.oB)({opacity:0,transform:"scale(0.8)"})),(0,X.eR)("void => enter",(0,X.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,X.oB)({opacity:1,transform:"scale(1)"}))),(0,X.eR)("* => void",(0,X.jt)("100ms 25ms linear",(0,X.oB)({opacity:0})))]),fadeInItems:(0,X.X$)("fadeInItems",[(0,X.SB)("showing",(0,X.oB)({opacity:1})),(0,X.eR)("void => *",[(0,X.oB)({opacity:0}),(0,X.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Wt=new s.OlP("MatMenuContent"),Qt=new s.OlP("MAT_MENU_PANEL"),Jt=(0,z.Kr)((0,z.Id)(class{}));let Xt=(()=>{class t extends Jt{constructor(t,e,n,i,s){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new o.xQ,this._focused=new o.xQ,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.n_E,this._tabSubscription=F.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new o.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+ee++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=(0,r.Ig)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,r.Ig)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Y.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,f.O)(this._directDescendantItems),(0,Mt.w)(t=>(0,J.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,f.O)(this._directDescendantItems),(0,Mt.w)(t=>(0,J.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case $.hY:(0,$.Vb)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case $.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case $.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(e===$.LH||e===$.JH)&&n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,u.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=Math.min(this._baseElevation+t,24),n=`${this._elevationPrefix}${e}`,i=Object.keys(this._classList).find(t=>t.startsWith(this._elevationPrefix));(!i||i===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[n]=!0,this._previousElevation=n)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,f.O)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(te))},t.\u0275dir=s.lG2({type:t,contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,Wt,5),s.Suo(n,Xt,5),s.Suo(n,Xt,4)),2&t){let t;s.iGM(t=s.CRH())&&(e.lazyContent=t.first),s.iGM(t=s.CRH())&&(e._allItems=t),s.iGM(t=s.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(s.Rgc,5),2&t){let t;s.iGM(t=s.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),ie=(()=>{class t extends ne{constructor(t,e,n){super(t,e,n),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(te))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&s.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[s._Bn([{provide:Qt,useExisting:t}]),s.qOj],ngContentSelectors:Gt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,Kt,3,6,"ng-template"))},directives:[P.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[$t.transformMenu,$t.fadeInItems]},changeDetection:0}),t})();const se=new s.OlP("mat-menu-scroll-strategy"),re={provide:se,deps:[jt.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},oe=(0,g.i$)({passive:!0});let ae=(()=>{class t{constructor(t,e,n,i,r,o,a,l){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=o,this._dir=a,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=F.w.EMPTY,this._hoverSubscription=F.w.EMPTY,this._menuCloseSubscription=F.w.EMPTY,this._handleTouchStart=t=>{(0,Y.yG)(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new s.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=r instanceof ne?r:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,oe),o&&(o._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,oe),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ne&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===t||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,e instanceof ne?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,K.h)(t=>"void"===t.toState),(0,u.q)(1),(0,m.R)(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new jt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[i,s],[a,l]=[e,n],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(r="top"===i?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:r,overlayX:l,overlayY:i,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Rt.of)(),i=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,K.h)(t=>t!==this._menuItemInstance),(0,K.h)(()=>this._menuOpen)):(0,Rt.of)();return(0,J.T)(t,n,i,e)}_handleMousedown(t){(0,Y.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;(e===$.K5||e===$.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===$.SV&&"ltr"===this.dir||e===$.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,K.h)(t=>t===this._menuItemInstance&&!t.disabled),Bt(0,Dt.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ne&&this.menu._isAnimating?this.menu._animationDone.pipe((0,u.q)(1),Bt(0,Dt.E),(0,m.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new H.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(se),s.Y36(Qt,8),s.Y36(Xt,10),s.Y36(Ht.Is,8),s.Y36(Y.tE))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&s.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),le=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[re],imports:[z.BQ]}),t})(),ce=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[re],imports:[[P.ez,z.BQ,z.si,jt.U8,le],Vt.ZD,z.BQ,le]}),t})();const ue={tooltipState:(0,X.X$)("state",[(0,X.SB)("initial, void, hidden",(0,X.oB)({opacity:0,transform:"scale(0)"})),(0,X.SB)("visible",(0,X.oB)({transform:"scale(1)"})),(0,X.eR)("* => visible",(0,X.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,X.F4)([(0,X.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,X.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,X.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,X.eR)("* => hidden",(0,X.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,X.oB)({opacity:0})))])},he="tooltip-panel",de=(0,g.i$)({passive:!0}),pe=new s.OlP("mat-tooltip-scroll-strategy"),fe={provide:pe,deps:[jt.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},me=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let ge=(()=>{class t{constructor(t,e,n,i,s,r,a,l,c,u,h,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=r,this._ariaDescriber=a,this._focusMonitor=l,this._dir=u,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new o.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===$.hY&&!(0,$.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=d,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,m.R)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,de)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new H.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe((0,m.R)(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-${he}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,m.R)(this._destroyed)).subscribe(()=>{var t;return null===(t=this._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,u.q)(1),(0,m.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:n,originY:i}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===n?"left":"right":"start"===n?"left":"right":"bottom"===e&&"top"===i?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-${he}-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,de)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e!==n&&!n.contains(e)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),("on"===t||!e.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(Vt.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(g.t4),s.Y36(Y.$s),s.Y36(Y.tE),s.Y36(void 0),s.Y36(Ht.Is),s.Y36(void 0),s.Y36(P.K0))},t.\u0275dir=s.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),_e=(()=>{class t extends ge{constructor(t,e,n,i,s,r,o,a,l,c,u,h){super(t,e,n,i,s,r,o,a,l,c,u,h),this._tooltipComponent=be}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(Vt.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(g.t4),s.Y36(Y.$s),s.Y36(Y.tE),s.Y36(pe),s.Y36(Ht.Is,8),s.Y36(me,8),s.Y36(P.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),t})(),ye=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new o.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"===e&&!this.isVisible()&&this._onHide.next(),("visible"===e||"hidden"===e)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t}),t})(),be=(()=>{class t extends ye{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(x))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){2&t&&s.Udp("zoom","visible"===e._visibility?1:null)},features:[s.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.TgZ(0,"div",0),s.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),s.ALo(1,"async"),s._uU(2),s.qZA()),2&t){let t;s.ekj("mat-tooltip-handset",null==(t=s.lcZ(1,5,e._isHandset))?null:t.matches),s.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),s.xp6(2),s.Oqu(e.message)}},directives:[P.mk],pipes:[P.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ue.tooltipState]},changeDetection:0}),t})(),ve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[fe],imports:[[Y.rt,P.ez,jt.U8,z.BQ],z.BQ,Vt.ZD]}),t})();var we=n(1095);function xe(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(2).launch(e)}),s.TgZ(1,"div",15),s._UZ(2,"img",9),s._uU(3),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw(2);s.xp6(2),s.Q6J("src",n.getTransportIcon(t.id),s.LSH),s.xp6(1),s.hij(" ",t.name," ")}}function Ce(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).action("release")}),s.TgZ(1,"i",16),s._uU(2,"delete"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4," Release service"),s.qZA(),s.qZA()}}function Ee(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).action("reset")}),s.TgZ(1,"i",16),s._uU(2,"refresh"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4," Reset service"),s.qZA(),s.qZA()}}function ke(t,e){if(1&t&&(s.TgZ(0,"button",17),s.TgZ(1,"uds-translate"),s._uU(2,"Connections"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(2);s.Q6J("matMenuTriggerFor",t)}}function Se(t,e){if(1&t&&(s.TgZ(0,"button",17),s.TgZ(1,"uds-translate"),s._uU(2,"Actions"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(5);s.Q6J("matMenuTriggerFor",t)}}function Ae(t,e){if(1&t&&(s.TgZ(0,"button",18),s.TgZ(1,"i",16),s._uU(2,"menu"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(9);s.Q6J("matMenuTriggerFor",t)}}function Te(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"mat-menu",null,1),s.YNc(3,xe,4,2,"button",2),s.qZA(),s.TgZ(4,"mat-menu",null,3),s.YNc(6,Ce,5,0,"button",4),s.YNc(7,Ee,5,0,"button",4),s.qZA(),s.TgZ(8,"mat-menu",null,5),s.YNc(10,ke,3,1,"button",6),s.YNc(11,Se,3,1,"button",6),s.qZA(),s.TgZ(12,"div",7),s.TgZ(13,"div",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().launch(null)}),s._UZ(14,"img",9),s.qZA(),s.TgZ(15,"div",10),s.TgZ(16,"span",11),s._uU(17),s.qZA(),s.qZA(),s.TgZ(18,"div",12),s.YNc(19,Ae,3,1,"button",13),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.Q6J("ngForOf",t.service.transports),s.xp6(3),s.Q6J("ngIf",t.service.allow_users_remove),s.xp6(1),s.Q6J("ngIf",t.service.allow_users_reset),s.xp6(3),s.Q6J("ngIf",t.showTransportsMenu()),s.xp6(1),s.Q6J("ngIf",t.hasActions()),s.xp6(1),s.Q6J("ngClass",t.serviceClass)("matTooltipDisabled",""===t.serviceTooltip)("matTooltip",t.serviceTooltip),s.xp6(2),s.Q6J("src",t.serviceImage,s.LSH),s.xp6(2),s.Q6J("ngClass",t.serviceNameClass),s.xp6(1),s.Oqu(t.serviceName),s.xp6(2),s.Q6J("ngIf",t.hasMenu())}}let Oe=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}get serviceImage(){return this.api.galleryImageURL(this.service.imageId)}get serviceName(){let t=this.service.visual_name;return t.length>32&&(t=t.substring(0,29)+"..."),t}get serviceTooltip(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}get serviceClass(){const t=["service"];return null!=this.service.to_be_replaced?t.push("tobereplaced"):this.service.maintenance?t.push("maintenance"):this.service.not_accesible?t.push("forbidden"):this.service.in_use&&t.push("inuse"),t.length>1&&t.push("alert"),t}get serviceNameClass(){const t=[],e=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return e>=16&&t.push("small-"+e.toString()),t}getTransportIcon(t){return this.api.transportIconURL(t)}hasActions(){return this.service.allow_users_remove||this.service.allow_users_reset}showTransportsMenu(){return this.service.transports.length>1&&this.service.show_transports}hasMenu(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}notifyNotLaunching(t){this.api.gui.alert('

'+django.gettext("Launcher")+"

",t)}launch(t){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){const t=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching('

'+django.gettext("This service is currently not accesible due to schedule restrictions.")+'

'+t+'

')}else(null===t||!1===this.service.show_transports)&&(t=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(t.link)}action(t){const e=("release"===t?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,n="release"===t?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(e,django.gettext("Are you sure?")).subscribe(i=>{i&&this.api.action(t,this.service.id).subscribe(t=>{t&&this.api.gui.alert(e,n)})})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(t,e){1&t&&s.YNc(0,Te,20,12,"div",0),2&t&&s.Q6J("ngIf",e.service.transports.length>0)},directives:[P.O5,ie,P.sg,P.mk,_e,Xt,O.P,ae,we.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:rgba(0,0,0,.22);display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22)}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;border-radius:1px;background-color:rgba(255,255,255,.8)}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:"Material Icons";font-weight:normal;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"}']}),t})();function Pe(t,e){1&t&&s._UZ(0,"uds-service",8),2&t&&s.Q6J("service",e.$implicit)}function Ie(t,e){if(1&t&&(s.TgZ(0,"mat-expansion-panel",1),s.TgZ(1,"mat-expansion-panel-header",2),s.TgZ(2,"mat-panel-title"),s.TgZ(3,"div",3),s._UZ(4,"img",4),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"mat-panel-description",5),s._uU(7),s.qZA(),s.qZA(),s.TgZ(8,"div",6),s.YNc(9,Pe,1,1,"uds-service",7),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.Q6J("expanded",t.expanded),s.xp6(1),s.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),s.xp6(3),s.Q6J("src",t.groupImage,s.LSH),s.xp6(1),s.hij(" ",t.group.name,""),s.xp6(2),s.hij(" ",t.group.comments," "),s.xp6(2),s.Q6J("ngForOf",t.sortedServices)}}let Re=(()=>{class t{constructor(t){this.api=t,this.expanded=!1}ngOnInit(){}get groupImage(){return this.api.galleryImageURL(this.group.imageUuid)}get hasVisibleServices(){return this.services.length>0}get sortedServices(){return this.services.sort((t,e)=>t.name>e.name?1:t.name{class t{constructor(t){this.api=t,this.servicesInformation={autorun:!1,ip:"",nets:"",services:[],transports:""}}update(t){this.updateServices(t)}ngOnInit(){this.api.config.urls.launch?this.api.logout():this.loadServices()}autorun(){if(this.servicesInformation.autorun&&1===this.servicesInformation.services.length){if(!this.servicesInformation.services[0].maintenance)return this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(this.servicesInformation.services[0].transports[0].link),!0;this.api.gui.alert(django.gettext("Warning"),django.gettext("Service is in maintenance and cannot be executed"))}return!1}loadServices(){this.api.user.isRestricted&&this.api.logout(),this.api.getServicesInformation().subscribe(t=>{this.servicesInformation=t,this.autorun(),this.updateServices()})}updateServices(t=""){this.group=[];let e=null;this.servicesInformation.services.filter(e=>!t||e.visual_name.toLowerCase().includes(t)||e.group.name.toLowerCase().includes(t)).sort((t,e)=>t.group.priority!==e.group.priority?t.group.priority-e.group.priority:t.group.id>e.group.id?1:t.group.id{(null===e||t.group.id!==e.group.id)&&(null!==e&&this.group.push(e),e=new Fe(t.group)),e.services.push(t)}),null!==e&&this.group.push(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-services-page"]],decls:6,vars:3,consts:[[3,"updateEvent",4,"ngIf"],[1,"services-groups"],[3,"services","group","expanded",4,"ngFor","ngForOf"],[3,"updateEvent"],[3,"services","group","expanded"]],template:function(t,e){1&t&&(s.YNc(0,De,1,0,"uds-filter",0),s.TgZ(1,"div",1),s.TgZ(2,"mat-accordion"),s.YNc(3,Me,1,3,"uds-services-group",2),s.qZA(),s.qZA(),s.YNc(4,Le,1,0,"uds-filter",0),s._UZ(5,"uds-staff-info")),2&t&&(s.Q6J("ngIf",e.servicesInformation.services.length>=e.api.config.min_for_filter&&e.api.config.site_filter_on_top),s.xp6(3),s.Q6J("ngForOf",e.group),s.xp6(1),s.Q6J("ngIf",e.servicesInformation.services.length>=e.api.config.min_for_filter&&!e.api.config.site_filter_on_top))},directives:[P.O5,bt,P.sg,kt,It,Re],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),t})(),Be=(()=>{class t{constructor(t,e){this.api=t,this.route=e}ngOnInit(){this.getError()}getError(){const t=this.route.snapshot.paramMap.get("id");"19"===t&&(this.returnUrl="/mfa"),this.error="",this.api.getErrorInformation(t).subscribe(t=>{this.error=t.error})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n),s.Y36(k.gz))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-error"]],decls:14,vars:2,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],["mat-raised-button","","color","warn",3,"routerLink"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.O4$(),s.TgZ(2,"svg",2),s._UZ(3,"path",3),s.qZA(),s.TgZ(4,"svg",4),s._UZ(5,"path",5),s.qZA(),s.qZA(),s.kcU(),s.TgZ(6,"h1",6),s.TgZ(7,"uds-translate"),s._uU(8,"An error has occurred"),s.qZA(),s.qZA(),s.TgZ(9,"p",7),s._uU(10),s.qZA(),s.TgZ(11,"a",8),s.TgZ(12,"uds-translate"),s._uU(13,"Return"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(10),s.hij(" ",e.error," "),s.xp6(1),s.Q6J("routerLink",e.returnUrl))},directives:[O.P,we.zs,k.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),t})(),Ue=(()=>{class t{constructor(t){this.api=t,this.year=(new Date).getFullYear()}ngOnInit(){this.year<2021&&(this.year=2021)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-about"]],decls:45,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1"),s._uU(2),s.qZA(),s.TgZ(3,"h3"),s.TgZ(4,"a",1),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"h4"),s.TgZ(7,"uds-translate"),s._uU(8,"You can access UDS Open Source code at"),s.qZA(),s.TgZ(9,"a",2),s._uU(10,"OpenUDS github repository"),s.qZA(),s.qZA(),s.TgZ(11,"div",3),s.TgZ(12,"h2"),s.TgZ(13,"uds-translate"),s._uU(14,"UDS has been developed using these components:"),s.qZA(),s.qZA(),s.TgZ(15,"ul"),s.TgZ(16,"li"),s.TgZ(17,"a",4),s._uU(18,"Python"),s.qZA(),s.qZA(),s.TgZ(19,"li"),s.TgZ(20,"a",5),s._uU(21,"TypeScript"),s.qZA(),s.qZA(),s.TgZ(22,"li"),s.TgZ(23,"a",6),s._uU(24,"Django"),s.qZA(),s.qZA(),s.TgZ(25,"li"),s.TgZ(26,"a",7),s._uU(27,"Angular"),s.qZA(),s.qZA(),s.TgZ(28,"li"),s.TgZ(29,"a",8),s._uU(30,"Guacamole"),s.qZA(),s.qZA(),s.TgZ(31,"li"),s.TgZ(32,"a",9),s._uU(33,"weasyprint"),s.qZA(),s.qZA(),s.TgZ(34,"li"),s.TgZ(35,"a",10),s._uU(36,"Crystal project icons"),s.qZA(),s.qZA(),s.TgZ(37,"li"),s.TgZ(38,"a",11),s._uU(39,"Flattr Icons"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(40,"p"),s.TgZ(41,"small"),s._uU(42,"* "),s.TgZ(43,"uds-translate"),s._uU(44,"If you find that we missed any component, please let us know"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.AsE("Universal Desktop Services ",e.api.config.version," build ",e.api.config.version_stamp,""),s.xp6(3),s.hij(" \xa9 2012-",e.year," Virtual Cable S.L.U."))},directives:[O.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:normal}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px}"]}),t})(),Ze=(()=>{class t{constructor(t){this.api=t}ngOnInit(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"h1"),s.TgZ(3,"uds-translate"),s._uU(4,"UDS Service launcher"),s.qZA(),s.qZA(),s.TgZ(5,"h4"),s.TgZ(6,"uds-translate"),s._uU(7,"The service you have requested is being launched."),s.qZA(),s.qZA(),s.TgZ(8,"h5"),s.TgZ(9,"uds-translate"),s._uU(10,"Please, note that reloading this page will not work."),s.qZA(),s.qZA(),s.TgZ(11,"h5"),s.TgZ(12,"uds-translate"),s._uU(13,"To relaunch service, you will have to do it from origin."),s.qZA(),s.qZA(),s.TgZ(14,"h6"),s.TgZ(15,"uds-translate"),s._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),s.qZA(),s.qZA(),s.TgZ(17,"h6"),s.TgZ(18,"uds-translate"),s._uU(19,"You can obtain it from the"),s.qZA(),s._uU(20,"\xa0"),s.TgZ(21,"a",2),s.TgZ(22,"uds-translate"),s._uU(23,"UDS Client download page"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA())},directives:[O.P,k.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:rgba(0,0,0,.22);padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:normal}"]}),t})();var qe=n(665),je=n(8553);const Ve=["input"],He=function(t){return{enterDuration:t}},ze=["*"],Ye=new s.OlP("mat-checkbox-default-options",{providedIn:"root",factory:Ge});function Ge(){return{color:"accent",clickAction:"check-indeterminate"}}let Ke=0;const $e=Ge(),We={provide:qe.JU,useExisting:(0,s.Gpc)(()=>Xe),multi:!0};class Qe{}const Je=(0,z.sb)((0,z.pj)((0,z.Kr)((0,z.Id)(class{constructor(t){this._elementRef=t}}))));let Xe=(()=>{class t extends Je{constructor(t,e,n,i,r,o,a){super(t),this._changeDetectorRef=e,this._focusMonitor=n,this._ngZone=i,this._animationMode=o,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++Ke,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.vpe,this.indeterminateChange=new s.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||$e,this.color=this.defaultColor=this._options.color||$e.color,this.tabIndex=parseInt(r)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=(0,r.Ig)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=(0,r.Ig)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new Qe;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const n=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===n?!this.disabled&&"noop"===n&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==n&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let n="";switch(t){case 0:if(1===e)n="unchecked-checked";else{if(3!=e)return"";n="unchecked-indeterminate"}break;case 2:n=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${n}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Y.tE),s.Y36(s.R0b),s.$8M("tabindex"),s.Y36(W.Qb,8),s.Y36(Ye,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(s.Gf(Ve,5),s.Gf(z.wG,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._inputElement=t.first),s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",null),s.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s._Bn([We]),s.qOj],ngContentSelectors:ze,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"span",2),s.TgZ(3,"input",3,4),s.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(5,"span",5),s._UZ(6,"span",6),s.qZA(),s._UZ(7,"span",7),s.TgZ(8,"span",8),s.O4$(),s.TgZ(9,"svg",9),s._UZ(10,"path",10),s.qZA(),s.kcU(),s._UZ(11,"span",11),s.qZA(),s.qZA(),s.TgZ(12,"span",12,13),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(14,"span",14),s._uU(15,"\xa0"),s.qZA(),s.Hsn(16),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),n=s.MAs(13);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),s.xp6(1),s.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.VKq(19,He,"NoopAnimations"===e._animationMode?0:150))}},directives:[z.wG,je.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})(),tn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),en=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[z.si,z.BQ,je.Q8,tn],z.BQ,tn]}),t})();const nn=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:Ne,canActivate:[A]},{path:"login",component:T.G},{path:"login/:id",component:T.G},{path:"mfa",component:(()=>{class t{constructor(t){this.api=t}ngOnInit(){document.getElementById("mfaform").action=this.api.config.urls.mfa,this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}launch(){return document.getElementById("mfaform").submit(),!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-mfa"]],decls:21,vars:2,consts:[["id","mfaform","method","post",3,"ngSubmit"],[1,"mfa-container"],[1,"mfa-brand"],[3,"src"],[1,"mfa-info"],[1,"mfa-form"],[1,"mfa-field"],["appearance","standard"],["matInput","","id","code","name","code","value","","required","","autofocus",""],["id","remember","name","remember"],[1,"mfa-button"],["mat-stroked-button","","color","primary","type","submit"]],template:function(t,e){1&t&&(s.TgZ(0,"form",0),s.NdJ("ngSubmit",function(){return e.launch()}),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s._UZ(3,"img",3),s.qZA(),s.TgZ(4,"div",4),s.TgZ(5,"uds-translate"),s._uU(6,"Login Verification"),s.qZA(),s.qZA(),s.TgZ(7,"div",5),s.TgZ(8,"div",6),s.TgZ(9,"mat-form-field",7),s.TgZ(10,"mat-label"),s._uU(11),s.qZA(),s._UZ(12,"input",8),s.qZA(),s.qZA(),s.TgZ(13,"div",6),s.TgZ(14,"mat-checkbox",9),s.TgZ(15,"uds-translate"),s._uU(16,"Remember Me"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(17,"div",10),s.TgZ(18,"button",11),s.TgZ(19,"uds-translate"),s._uU(20,"Submit"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Q6J("src",e.api.staticURL("modern/img/login-img.png"),s.LSH),s.xp6(8),s.hij(" ",e.api.config.mfa.label," "))},directives:[qe._Y,qe.JL,qe.F,O.P,Tt.KE,Tt.hX,Ot.Nt,Xe,we.lW],styles:[".mfa-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.mfa-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.mfa-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.mfa-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.mfa-form[_ngcontent-%COMP%]{min-width:80%}}"]}),t})()},{path:"client-download",component:R},{path:"downloads",component:L,canActivate:[A]},{path:"error/:id",component:Be},{path:"about",component:Ue},{path:"ticket/launcher",component:Ze},{path:"**",redirectTo:"services"}];let sn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[k.Bz.forRoot(nn,{relativeLinkResolution:"legacy"})],k.Bz]}),t})();var rn=n(2238),on=n(7441);const an=["*",[["mat-toolbar-row"]]],ln=["*","mat-toolbar-row"],cn=(0,z.pj)(class{constructor(t){this._elementRef=t}});let un=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),hn=(()=>{class t extends cn{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(g.t4),s.Y36(P.K0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,un,5),2&t){let t;s.iGM(t=s.CRH())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.qOj],ngContentSelectors:ln,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t(an),s.Hsn(0),s.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),dn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[z.BQ],z.BQ]}),t})(),pn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:Tt.o2,useValue:{floatLabel:"always"}}],imports:[qe.u5,dn,we.ot,ce,ve,vt,rn.Is,Tt.lN,Ot.c,on.LD,en]}),t})();function fn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(2).changeLang(e)}),s._uU(1),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.name)}}function mn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).admin()}),s.TgZ(1,"i",23),s._uU(2,"dashboard"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4,"Dashboard"),s.qZA(),s.qZA()}}function gn(t,e){1&t&&(s.TgZ(0,"button",28),s.TgZ(1,"i",23),s._uU(2,"file_download"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4,"Downloads"),s.qZA(),s.qZA())}function _n(t,e){if(1&t&&(s.TgZ(0,"button",14),s._uU(1),s.qZA()),2&t){s.oxw();const t=s.MAs(8),e=s.oxw();s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.Oqu(e.api.user.user)}}function yn(t,e){if(1&t&&(s.TgZ(0,"button",25),s._uU(1),s.TgZ(2,"i",23),s._uU(3,"arrow_drop_down"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(8),e=s.oxw();s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",e.api.user.user," ")}}function bn(t,e){if(1&t){const t=s.EpF();s.ynx(0),s.TgZ(1,"form",1),s._UZ(2,"input",2),s._UZ(3,"input",3),s.qZA(),s.TgZ(4,"mat-menu",null,4),s.YNc(6,fn,2,1,"button",5),s.qZA(),s.TgZ(7,"mat-menu",null,6),s.YNc(9,mn,5,0,"button",7),s.YNc(10,gn,5,0,"button",8),s.TgZ(11,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().logout()}),s.TgZ(12,"i",10),s._uU(13,"exit_to_app"),s.qZA(),s.TgZ(14,"uds-translate"),s._uU(15,"Logout"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(16,"mat-menu",11,12),s.YNc(18,_n,2,2,"button",13),s.TgZ(19,"button",14),s._uU(20),s.qZA(),s.TgZ(21,"button",15),s.TgZ(22,"uds-translate"),s._uU(23,"UDS Client"),s.qZA(),s.qZA(),s.TgZ(24,"button",16),s.TgZ(25,"uds-translate"),s._uU(26,"About"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(27,"mat-toolbar",17),s.TgZ(28,"button",18),s._UZ(29,"img",19),s._uU(30),s.qZA(),s._UZ(31,"span",20),s.TgZ(32,"div",21),s.TgZ(33,"button",22),s.TgZ(34,"i",23),s._uU(35,"file_download"),s.qZA(),s.TgZ(36,"uds-translate"),s._uU(37,"UDS Client"),s.qZA(),s.qZA(),s.TgZ(38,"button",24),s.TgZ(39,"i",23),s._uU(40,"info"),s.qZA(),s.TgZ(41,"uds-translate"),s._uU(42,"About"),s.qZA(),s.qZA(),s.TgZ(43,"button",25),s._uU(44),s.TgZ(45,"i",23),s._uU(46,"arrow_drop_down"),s.qZA(),s.qZA(),s.YNc(47,yn,4,2,"button",26),s.qZA(),s.TgZ(48,"div",27),s.TgZ(49,"button",25),s.TgZ(50,"i",23),s._uU(51,"menu"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.BQk()}if(2&t){const t=s.MAs(5),e=s.MAs(17),n=s.oxw();s.xp6(1),s.s9C("action",n.api.config.urls.changeLang,s.LSH),s.xp6(1),s.s9C("name",n.api.csrfField),s.s9C("value",n.api.csrfToken),s.xp6(1),s.s9C("value",n.lang.id),s.xp6(3),s.Q6J("ngForOf",n.langs),s.xp6(3),s.Q6J("ngIf",n.api.user.isStaff),s.xp6(1),s.Q6J("ngIf",n.api.user.isStaff),s.xp6(8),s.Q6J("ngIf",n.api.user.isLogged),s.xp6(1),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",n.lang.name," "),s.xp6(9),s.Q6J("src",n.api.staticURL("modern/img/udsicon.png"),s.LSH),s.xp6(1),s.hij(" ",n.api.config.site_logo_name," "),s.xp6(13),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",n.lang.name," "),s.xp6(3),s.Q6J("ngIf",n.api.user.isLogged),s.xp6(2),s.Q6J("matMenuTriggerFor",e)}}let vn=(()=>{class t{constructor(t){this.api=t,this.style="";const e=t.config.language;this.langs=[];for(const n of t.config.available_languages)n.id===e?this.lang=n:this.langs.push(n)}ngOnInit(){}changeLang(t){return this.lang=t,document.getElementById("id_language").attributes.value.value=t.id,document.getElementById("form_language").submit(),!1}admin(){this.api.gotoAdmin()}logout(){this.api.logout()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(t,e){1&t&&s.YNc(0,bn,52,16,"ng-container",0),2&t&&s.Q6J("ngIf",""===e.api.config.urls.launch)},directives:[P.O5,qe._Y,qe.JL,qe.F,ie,P.sg,Xt,O.P,ae,k.rH,hn,we.lW],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),t})(),wn=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"a",0),s._uU(2),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Q6J("href",e.api.config.site_copyright_link,s.LSH),s.xp6(1),s.Oqu(e.api.config.site_copyright_info))},styles:[""]}),t})(),xn=(()=>{class t{constructor(){this.title="uds"}ngOnInit(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-root"]],decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,e){1&t&&(s._UZ(0,"uds-navbar"),s.TgZ(1,"div",0),s.TgZ(2,"div",1),s._UZ(3,"router-outlet"),s.qZA(),s.TgZ(4,"div",2),s._UZ(5,"uds-footer"),s.qZA(),s.qZA())},directives:[vn,k.lC,wn],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),t})();var Cn=n(3183);let En=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t,bootstrap:[xn]}),t.\u0275inj=s.cJS({providers:[S.n,Cn.h],imports:[[i.b2,_,E.JF,sn,W.PW,pn]]}),t})();n(2340).N.production&&(0,s.G48)(),i.q6().bootstrapModule(En).catch(t=>console.log(t))}},function(t){t(t.s=6445)}]); \ No newline at end of file diff --git a/server/src/uds/static/modern/main-es5.js b/server/src/uds/static/modern/main-es5.js index 17e851be2..b6a939947 100644 --- a/server/src/uds/static/modern/main-es5.js +++ b/server/src/uds/static/modern/main-es5.js @@ -1 +1 @@ -(function(){function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)})(e)}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&_setPrototypeOf(r,n.prototype),r}).apply(null,arguments)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function l(e){return{type:6,styles:e,offset:null}}function c(e,t,n){return{type:0,name:e,styles:t,options:n}}function h(e){return{type:5,steps:e}}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function v(e){Promise.resolve(null).then(e)}var _=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;v(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),m=function(){function e(t){var n=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?v(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),g="!"},9238:function(e,t,n){"use strict";n.d(t,{rt:function(){return ne},s1:function(){return D},$s:function(){return T},Em:function(){return M},tE:function(){return J},qV:function(){return U},qm:function(){return te},Kd:function(){return K},X6:function(){return Z},yG:function(){return j}});var i=n(8583),r=n(3018),o=n(9765),a=n(5319),s=n(6215),u=n(5917),l=n(6461),c=n(3342),h=n(4395),f=n(5435),d=n(8002),p=n(5257),v=n(3653),_=n(7519),m=n(6782),g=n(9490),y=n(521),b=n(8553);function k(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var C,w="cdk-describedby-message-container",x="cdk-describedby-message",E="cdk-describedby-host",S=0,O=new Map,A=null,T=((C=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=P(t,n);"string"!=typeof t?(I(t),O.set(i,{messageElement:t,referenceCount:0})):O.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=P(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=O.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}A&&0===A.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[".concat(E,"]")),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return _createClass(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,c.b)(function(t){return e._pressedLetters.push(t)}),(0,h.b)(t),(0,f.h)(function(){return e._pressedLetters.length>0}),(0,d.U)(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case l.Mf:return void this.tabOut.next();case l.JH:if(this._vertical&&i){this.setNextItemActive();break}return;case l.LH:if(this._vertical&&i){this.setPreviousItemActive();break}return;case l.SV:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.oh:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.Sd:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case l.uR:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||(0,l.Vb)(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=l.A&&n<=l.Z||n>=l.xE&&n<=l.aO)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof r.n_E?this._items.toArray():this._items}}]),e}(),D=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(R),M=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._origin="program",e}return _createClass(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(R),L=function(){var e=function(){function e(t){_classCallCheck(this,e),this._platform=t}return _createClass(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t=function(e){try{return e.frameElement}catch(t){return null}}(function(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(e));if(t&&(-1===N(t)||!this.isVisible(t)))return!1;var n=e.nodeName.toLowerCase(),i=N(e);return e.hasAttribute("contenteditable")?-1!==i:!("iframe"===n||"object"===n||this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===n?!!e.hasAttribute("controls")&&-1!==i:"video"===n?-1!==i&&(null!==i||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||F(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4))},token:e,providedIn:"root"}),e}();function F(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function N(e){if(!F(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var B=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return _createClass(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusInitialElement(e))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusFirstTabbableElement(e))})})}},{key:"focusLastTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusLastTabbableElement(e))})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(e)}}]),e}(),U=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._checker=t,this._ngZone=n,this._document=i}return _createClass(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new B(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(L),r.LFG(r.R0b),r.LFG(i.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(L),r.LFG(r.R0b),r.LFG(i.K0))},token:e,providedIn:"root"}),e}();function Z(e){return 0===e.offsetX&&0===e.offsetY}function j(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈var q=new r.OlP("cdk-input-modality-detector-options"),V={ignoreKeys:[l.zL,l.jx,l.b2,l.MW,l.JU]},H=(0,y.i$)({passive:!0,capture:!0}),z=function(){var e=function(){function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._platform=t,this._mostRecentTarget=null,this._modality=new s.X(null),this._lastTouchMs=0,this._onKeydown=function(e){var t,n;(null===(n=null===(t=o._options)||void 0===t?void 0:t.ignoreKeys)||void 0===n?void 0:n.some(function(t){return t===e.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=(0,y.sA)(e))},this._onMousedown=function(e){Date.now()-o._lastTouchMs<650||(o._modality.next(Z(e)?"keyboard":"mouse"),o._mostRecentTarget=(0,y.sA)(e))},this._onTouchstart=function(e){j(e)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=(0,y.sA)(e))},this._options=Object.assign(Object.assign({},V),r),this.modalityDetected=this._modality.pipe((0,v.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,_.x)()),t.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",o._onKeydown,H),i.addEventListener("mousedown",o._onMousedown,H),i.addEventListener("touchstart",o._onTouchstart,H)})}return _createClass(e,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,H),document.removeEventListener("mousedown",this._onMousedown,H),document.removeEventListener("touchstart",this._onTouchstart,H))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4),r.LFG(r.R0b),r.LFG(i.K0),r.LFG(q,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4),r.LFG(r.R0b),r.LFG(i.K0),r.LFG(q,8))},token:e,providedIn:"root"}),e}(),Y=new r.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),G=new r.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),K=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return _createClass(e,[{key:"announce",value:function(e){for(var t,n,i,r=this,o=this._defaultOptions,a=arguments.length,s=new Array(a>1?a-1:0),u=1;u1&&void 0!==arguments[1]&&arguments[1],n=(0,g.fI)(e);if(!this._platform.isBrowser||1!==n.nodeType)return(0,u.of)(null);var i=(0,y.kV)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var a={checkChildren:t,subject:new o.xQ,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}},{key:"stopMonitoring",value:function(e){var t=(0,g.fI)(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=(0,g.fI)(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=_slicedToArray(e,2),r=n[0],o=n[1];return i._originChanged(r,t,o)}):(this._setOrigin(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOrigin",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){t._origin=e,t._originFromTouchInteraction="touch"===e&&n,0===t._detectionMode&&(clearTimeout(t._originTimeoutId),t._originTimeoutId=setTimeout(function(){return t._origin=null},t._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t),i=(0,y.sA)(e);!n||!n.checkChildren&&t!==i||this._originChanged(t,this._getFocusOrigin(i),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,Q),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,Q)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){t._getWindow().addEventListener("focus",t._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,m.R)(this._stopInputModalityDetector)).subscribe(function(e){t._setOrigin(e,!0)}))}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Q),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Q),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.R0b),r.LFG(y.t4),r.LFG(z),r.LFG(i.K0,8),r.LFG(W,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(r.R0b),r.LFG(y.t4),r.LFG(z),r.LFG(i.K0,8),r.LFG(W,8))},token:e,providedIn:"root"}),e}(),X="cdk-high-contrast-black-on-white",$="cdk-high-contrast-white-on-black",ee="cdk-high-contrast-active",te=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._document=n}return _createClass(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove(ee),e.remove(X),e.remove($),this._hasCheckedHighContrastMode=!0;var t=this.getHighContrastMode();1===t?(e.add(ee),e.add(X)):2===t&&(e.add(ee),e.add($))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4),r.LFG(i.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4),r.LFG(i.K0))},token:e,providedIn:"root"}),e}(),ne=function(){var e=function e(t){_classCallCheck(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(r.LFG(te))},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[[y.ud,b.Q8]]}),e}()},946:function(e,t,n){"use strict";n.d(t,{vT:function(){return u},Is:function(){return s}});var i,r=n(3018),o=n(8583),a=new r.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,r.f3M)(o.K0)}}),s=((i=function(){function e(t){if(_classCallCheck(this,e),this.value="ltr",this.change=new r.vpe,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||i)(r.LFG(a,8))},i.\u0275prov=r.Yz7({factory:function(){return new i(r.LFG(a,8))},token:i,providedIn:"root"}),i),u=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}()},8345:function(e,t,n){"use strict";n.d(t,{P3:function(){return l},Ov:function(){return h},A8:function(){return f},eX:function(){return c},k:function(){return d},Z9:function(){return s}});var i=n(5639),r=n(5917),o=n(9765),a=n(3018);function s(e){return e&&"function"==typeof e.connect}var u,l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._data=e,i}return _createClass(n,[{key:"connect",value:function(){return(0,i.b)(this._data)?this._data:(0,r.of)(this._data)}},{key:"disconnect",value:function(){}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),c=function(){function e(){_classCallCheck(this,e),this.viewCacheSize=20,this._viewCache=[]}return _createClass(e,[{key:"applyChanges",value:function(e,t,n,i,r){var o=this;e.forEachOperation(function(e,a,s){var u,l;null==e.previousIndex?l=(u=o._insertView(function(){return n(e,a,s)},s,t,i(e)))?1:0:null==s?(o._detachAndCacheView(a,t),l=3):(u=o._moveView(a,s,t,i(e)),l=2),r&&r({context:null==u?void 0:u.context,operation:l,record:e})})}},{key:"detach",value:function(){var e,t=_createForOfIteratorHelper(this._viewCache);try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(n){t.e(n)}finally{t.f()}this._viewCache=[]}},{key:"_insertView",value:function(e,t,n,i){var r=this._insertViewFromCache(t,n);if(!r){var o=e();return n.createEmbeddedView(o.templateRef,o.context,o.index)}r.context.$implicit=i}},{key:"_detachAndCacheView",value:function(e,t){var n=t.detach(e);this._maybeCacheView(n,t)}},{key:"_moveView",value:function(e,t,n,i){var r=n.get(e);return n.move(r,t),r.context.$implicit=i,r}},{key:"_maybeCacheView",value:function(e,t){if(this._viewCache.length0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.xQ,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return _createClass(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i1?t-1:0),i=1;it.height||e.scrollWidth>t.width}}]),e}(),k=function(){function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),C=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function w(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function x(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var E,S=function(){function e(t,n,i,r){_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;w(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),O=((E=function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new C},this.close=function(e){return new k(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new b(o._viewportRuler,o._document)},this.reposition=function(e){return new S(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r}).\u0275fac=function(e){return new(e||E)(r.LFG(i.mF),r.LFG(i.rL),r.LFG(r.R0b),r.LFG(s.K0))},E.\u0275prov=r.Yz7({factory:function(){return new E(r.LFG(i.mF),r.LFG(i.rL),r.LFG(r.R0b),r.LFG(s.K0))},token:E,providedIn:"root"}),E),A=function e(t){if(_classCallCheck(this,e),this.scrollStrategy=new C,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0))},token:e,providedIn:"root"}),e}(),R=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return _createClass(n,[{key:"add",value:function(e){_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(I);return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0))},token:e,providedIn:"root"}),e}(),D=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=(0,o.sA)(e),n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var a=n[i];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(t))break;a._outsidePointerEvents.next(e)}}},r}return _createClass(n,[{key:"add",value:function(e){if(_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),!this._isAttached){var t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(I);return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0),r.LFG(o.t4))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0),r.LFG(o.t4))},token:e,providedIn:"root"}),e}(),M="undefined"!=typeof window?window:{},L=void 0!==M.__karma__&&!!M.__karma__||void 0!==M.jasmine&&!!M.jasmine||void 0!==M.jest&&!!M.jest||void 0!==M.Mocha&&!!M.Mocha,F=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=n,this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e="cdk-overlay-container";if(this._platform.isBrowser||L)for(var t=this._document.querySelectorAll(".".concat(e,'[platform="server"], .').concat(e,'[platform="test"]')),n=0;nd&&(d=_,f=v)}}catch(m){p.e(m)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&j(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(B),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=V(t),o=e.x,a=e.y,s=this._getOffset(i,"x"),u=this._getOffset(i,"y");s&&(o+=s),u&&(a+=u);var l=0-a,c=a+r.height-n.height,h=this._subtractOverflows(r.width,0-o,o+r.width-n.width),f=this._subtractOverflows(r.height,l,c),d=h*f;return{visibleArea:d,isCompletelyWithinViewport:r.width*r.height===d,fitsInViewportVertically:f===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=q(this._overlayRef.getConfig().minHeight),a=q(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=V(t),a=this._viewportRect,s=Math.max(e.x+o.width-a.width,0),u=Math.max(e.y+o.height-a.height,0),l=Math.max(a.top-n.top-e.y,0),c=Math.max(a.left-n.left-e.x,0);return i=o.width<=a.width?c||-s:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!l||"start"===t.overlayX&&l)s=u.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!l||"end"===t.overlayX&&l)a=e.x,o=u.right-e.x;else{var f=Math.min(u.right-e.x+u.left,e.x),d=this._lastBoundingBoxSize.width;o=2*f,a=e.x-f,o>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-d/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=(0,u.HM)(n.height),i.top=(0,u.HM)(n.top),i.bottom=(0,u.HM)(n.bottom),i.width=(0,u.HM)(n.width),i.left=(0,u.HM)(n.left),i.right=(0,u.HM)(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=(0,u.HM)(r)),o&&(i.maxWidth=(0,u.HM)(o))}this._lastBoundingBoxSize=n,j(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){j(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){j(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();j(n,this._getExactOverlayY(t,e,a)),j(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),c&&(s+="translateY(".concat(c,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=(0,u.HM)(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=(0,u.HM)(o.maxWidth):r&&(n.maxWidth="")),j(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=(0,u.HM)(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=(0,u.HM)(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:x(e,n),isOriginOutsideView:w(e,n),isOverlayClipped:x(t,n),isOverlayOutsideView:w(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(z),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),G=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return _createClass(e,[{key:"global",value:function(){return new Y}},{key:"connectedTo",value:function(e,t,n){return new H(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new Z(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.rL),r.LFG(s.K0),r.LFG(o.t4),r.LFG(F))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(i.rL),r.LFG(s.K0),r.LFG(o.t4),r.LFG(F))},token:e,providedIn:"root"}),e}(),K=0,W=function(){var e=function(){function e(t,n,i,r,o,a,s,u,l,c,h){_classCallCheck(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}return _createClass(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new A(e);return r.direction=r.direction||this._directionality.value,new N(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+K++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(r.z2F)),new l.u0(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(O),r.LFG(F),r.LFG(r._Vd),r.LFG(G),r.LFG(R),r.LFG(r.zs3),r.LFG(r.R0b),r.LFG(s.K0),r.LFG(a.Is),r.LFG(s.Ye),r.LFG(D))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Q=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],J=new r.OlP("cdk-connected-overlay-scroll-strategy"),X=function(){var e=function e(t){_classCallCheck(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.SBq))},e.\u0275dir=r.lG2({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),$=function(){var e=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this._overlay=t,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new r.vpe,this.positionChange=new r.vpe,this.attach=new r.vpe,this.detach=new r.vpe,this.overlayKeydown=new r.vpe,this.overlayOutsideClick=new r.vpe,this._templatePortal=new l.UE(n,i),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=(0,u.Ig)(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=(0,u.Ig)(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=(0,u.Ig)(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=(0,u.Ig)(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=(0,u.Ig)(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;(!this.positions||!this.positions.length)&&(this.positions=Q);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),t.keyCode===g.hY&&!e.disableClose&&!(0,g.Vb)(t)&&(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new A({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new p(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(W),r.Y36(r.Rgc),r.Y36(r.s_b),r.Y36(J),r.Y36(a.Is,8))},e.\u0275dir=r.lG2({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[r.TTD]}),e}(),ee={provide:J,deps:[W],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},te=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[W,ee],imports:[[a.vT,l.eL,i.Cl],i.Cl]}),e}()},521:function(e,t,n){"use strict";n.d(t,{t4:function(){return f},ud:function(){return d},sA:function(){return k},ht:function(){return b},kV:function(){return y},_i:function(){return g},qK:function(){return v},i$:function(){return _},Mq:function(){return m}});var i,r=n(3018),o=n(8583);try{i="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(s){i=!1}var a,s,u,l,c,h,f=((s=function e(t){_classCallCheck(this,e),this._platformId=t,this.isBrowser=this._platformId?(0,o.NF)(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&&!i)&&"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}).\u0275fac=function(e){return new(e||s)(r.LFG(r.Lbi))},s.\u0275prov=r.Yz7({factory:function(){return new s(r.LFG(r.Lbi))},token:s,providedIn:"root"}),s),d=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}(),p=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function v(){if(a)return a;if("object"!=typeof document||!document)return a=new Set(p);var e=document.createElement("input");return a=new Set(p.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function _(e){return function(){if(null==u&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return u=!0}}))}finally{u=u||!1}return u}()?e:!!e.capture}function m(){if(null==c){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return c=!1;if("scrollBehavior"in document.documentElement.style)c=!0;else{var e=Element.prototype.scrollTo;c=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return c}function g(){if("object"!=typeof document||!document)return 0;if(null==l){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),l=0,0===e.scrollLeft&&(e.scrollLeft=1,l=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return l}function y(e){if(function(){if(null==h){var e="undefined"!=typeof document?document.head:null;h=!(!e||!e.createShadowRoot&&!e.attachShadow)}return h}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function b(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}function k(e){return e.composedPath?e.composedPath()[0]:e.target}},7636:function(e,t,n){"use strict";n.d(t,{en:function(){return c},Pl:function(){return f},C5:function(){return s},u0:function(){return h},eL:function(){return d},UE:function(){return u}});var i,r=n(3018),o=n(8583),a=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(a),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return _createClass(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(n.prototype),"detach",this).call(this)}}]),n}(a),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).element=e instanceof r.SBq?e.nativeElement:e,i}return n}(a),c=function(){function e(){_classCallCheck(this,e),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof s?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof u?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof l?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),h=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s,u;return _classCallCheck(this,n),(u=t.call(this)).outletElement=e,u._componentFactoryResolver=i,u._appRef=r,u._defaultInjector=o,u.attachDomPortal=function(e){var t=e.element,i=u._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),u.outletElement.appendChild(t),u._attachedPortal=e,_get((s=_assertThisInitialized(u),_getPrototypeOf(n.prototype)),"setDisposeFn",s).call(s,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},u._document=a,u}return _createClass(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),this._attachedPortal=e,i}},{key:"dispose",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(c),f=((i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,o){var a,s;return _classCallCheck(this,n),(s=t.call(this))._componentFactoryResolver=e,s._viewContainerRef=i,s._isInitialized=!1,s.attached=new r.vpe,s.attachDomPortal=function(e){var t=e.element,i=s._document.createComment("dom-portal");e.setAttachedHost(_assertThisInitialized(s)),t.parentNode.insertBefore(i,t),s._getRootNode().appendChild(t),s._attachedPortal=e,_get((a=_assertThisInitialized(s),_getPrototypeOf(n.prototype)),"setDisposeFn",a).call(a,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},s._document=o,s}return _createClass(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&_get(_getPrototypeOf(n.prototype),"detach",this).call(this),e&&_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),_get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(c)).\u0275fac=function(e){return new(e||i)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(o.K0))},i.\u0275dir=r.lG2({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),i),d=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}()},9243:function(e,t,n){"use strict";n.d(t,{ZD:function(){return y},mF:function(){return m},Cl:function(){return b},rL:function(){return g}});var i=n(9490),r=n(3018),o=n(6465),a=n(6102);new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(o.o));var s=n(9765),u=n(5917),l=n(7574),c=n(2759);n(4581),n(5319),n(5639),n(7393),new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(a.v))(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?_get(_getPrototypeOf(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(o.o)),n(1593),n(7971),n(8858),n(7519);var h=n(628),f=n(5435),d=(n(6782),n(9761),n(3190),n(521)),p=n(8583),v=n(946);n(8345);var _,m=((_=function(){function e(t,n,i){_classCallCheck(this,e),this._ngZone=t,this._platform=n,this._scrolled=new s.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return _createClass(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(function(){return t._scrolled.next(e)}))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new l.y(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe((0,h.e)(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):(0,u.of)()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,f.h)(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=(0,i.fI)(t),r=e.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var t=e._getWindow();return(0,c.R)(t.document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||_)(r.LFG(r.R0b),r.LFG(d.t4),r.LFG(p.K0,8))},_.\u0275prov=r.Yz7({factory:function(){return new _(r.LFG(r.R0b),r.LFG(d.t4),r.LFG(p.K0,8))},token:_,providedIn:"root"}),_),g=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this._platform=t,this._change=new s.xQ,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._viewportSize=null})})}return _createClass(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe((0,h.e)(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(d.t4),r.LFG(r.R0b),r.LFG(p.K0,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(d.t4),r.LFG(r.R0b),r.LFG(p.K0,8))},token:e,providedIn:"root"}),e}(),y=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}(),b=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[[v.vT,d.ud,y],v.vT,y]}),e}()},9490:function(e,t,n){"use strict";n.d(t,{Eq:function(){return a},Ig:function(){return r},HM:function(){return s},fI:function(){return u},su:function(){return o}});var i=n(3018);function r(e){return null!=e&&"false"!="".concat(e)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function a(e){return Array.isArray(e)?e:[e]}function s(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function u(e){return e instanceof i.SBq?e.nativeElement:e}},8583:function(e,t,n){"use strict";n.d(t,{mr:function(){return k},Ov:function(){return Y},ez:function(){return G},K0:function(){return l},Do:function(){return w},V_:function(){return f},Ye:function(){return x},S$:function(){return y},mk:function(){return R},sg:function(){return M},O5:function(){return F},RF:function(){return Z},n9:function(){return j},ED:function(){return q},b0:function(){return C},lw:function(){return c},EM:function(){return Q},JF:function(){return $},NF:function(){return W},w_:function(){return u},bD:function(){return K},q:function(){return o},Mx:function(){return I},HT:function(){return a}});var i=n(3018),r=null;function o(){return r}function a(e){r||(r=e)}var s,u=function e(){_classCallCheck(this,e)},l=new i.OlP("DocumentToken"),c=((s=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}()).\u0275fac=function(e){return new(e||s)},s.\u0275prov=(0,i.Yz7)({factory:h,token:s,providedIn:"platform"}),s);function h(){return(0,i.LFG)(d)}var f=new i.OlP("Location Initialized"),d=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i._init(),i}return _createClass(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return o().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=o().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=o().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){p()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){p()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}]),n}(c);return e.\u0275fac=function(t){return new(t||e)(i.LFG(l))},e.\u0275prov=(0,i.Yz7)({factory:v,token:e,providedIn:"platform"}),e}();function p(){return!!window.history.pushState}function v(){return new d((0,i.LFG)(l))}function _(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function g(e){return e&&"?"!==e[0]?"?"+e:e}var y=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,i.Yz7)({factory:b,token:e,providedIn:"root"}),e}();function b(e){var t=(0,i.LFG)(l).location;return new C((0,i.LFG)(c),t&&t.origin||"")}var k=new i.OlP("appBaseHref"),C=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;if(_classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._removeListenerFns=[],null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)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.");return r._baseHref=i,_possibleConstructorReturn(r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return _(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(i.LFG(c),i.LFG(k,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),w=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",r._removeListenerFns=[],null!=i&&(r._baseHref=i),r}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=_(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(i.LFG(c),i.LFG(k,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),x=function(){var e=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;var o=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=m(S(o)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})})}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+g(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,S(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.LFG(y),i.LFG(c))},e.normalizeQueryParams=g,e.joinWithSlash=_,e.stripTrailingSlash=m,e.\u0275prov=(0,i.Yz7)({factory:E,token:e,providedIn:"root"}),e}();function E(){return new x((0,i.LFG)(y),(0,i.LFG)(c))}function S(e){return e.replace(/\/index.html$/,"")}var O=((O=O||{})[O.Zero=0]="Zero",O[O.One=1]="One",O[O.Two=2]="Two",O[O.Few=3]="Few",O[O.Many=4]="Many",O[O.Other=5]="Other",O),A=i.kL8,T=function e(){_classCallCheck(this,e)},P=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).locale=e,i}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(A(t||this.locale)(e)){case O.Zero:return"zero";case O.One:return"one";case O.Two:return"two";case O.Few:return"few";case O.Many:return"many";default:return"other"}}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.soG))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}();function I(e,t){t=encodeURIComponent(t);var n,i=_createForOfIteratorHelper(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=_slicedToArray(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[0],u=a[1];if(s.trim()===t)return decodeURIComponent(u)}}catch(l){i.e(l)}finally{i.f()}return null}var R=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(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&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,i.AaK)(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},e.\u0275dir=i.lG2({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),D=function(){function e(t,n,i,r){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),M=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat(function(e){return e.name||typeof e}(e),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new D(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new L(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var u=new L(e,s);n.push(u)}});for(var i=0;i0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,_toConsumableArray(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),d=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return _(e)}},{key:"encodeValue",value:function(e){return _(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}(),p=/%(\d[a-f0-9])/gi,v={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function _(e){return encodeURIComponent(e).replace(p,function(e,t){var n;return null!==(n=v[t])&&void 0!==n?n:e})}function m(e){return"".concat(e)}var g=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new d,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),r=_slicedToArray(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(m(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(m(t.value));-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),y=function(){function e(){_classCallCheck(this,e),this.map=new Map}return _createClass(e,[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function b(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function k(e){return"undefined"!=typeof Blob&&e instanceof Blob}function C(e){return"undefined"!=typeof FormData&&e instanceof FormData}var w=function(){function e(t,n,i,r){var o;if(_classCallCheck(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new f),this.context||(this.context=new y),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,u=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,l=n.headers||this.headers,c=n.params||this.params,h=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},l)),n.setParams&&(c=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},c)),new e(i,r,a,{params:c,headers:l,context:h,reportProgress:u,responseType:o,withCredentials:s})}}]),e}(),x=((x=x||{})[x.Sent=0]="Sent",x[x.UploadProgress=1]="UploadProgress",x[x.ResponseHeader=2]="ResponseHeader",x[x.DownloadProgress=3]="DownloadProgress",x[x.Response=4]="Response",x[x.User=5]="User",x),E=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,e),this.headers=t.headers||new f,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},S=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=x.ResponseHeader,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(E),O=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=x.Response,e.body=void 0!==i.body?i.body:null,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(E),A=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(E);function T(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var P,I=((P=function(){function e(t){_classCallCheck(this,e),this.handler=t}return _createClass(e,[{key:"request",value:function(e,t){var n,i,r,a=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof w?n=e:(i=c.headers instanceof f?c.headers:new f(c.headers),c.params&&(r=c.params instanceof g?c.params:new g({fromObject:c.params})),n=new w(e,t,void 0!==c.body?c.body:null,{headers:i,context:c.context,params:r,reportProgress:c.reportProgress,responseType:c.responseType||"json",withCredentials:c.withCredentials}));var h=(0,o.of)(n).pipe((0,s.b)(function(e){return a.handler.handle(e)}));if(e instanceof w||"events"===c.observe)return h;var d=h.pipe((0,u.h)(function(e){return e instanceof O}));switch(c.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return d.pipe((0,l.U)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return d.pipe((0,l.U)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return d.pipe((0,l.U)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return d.pipe((0,l.U)(function(e){return e.body}))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type ".concat(c.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new g).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,T(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,T(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,T(n,t))}}]),e}()).\u0275fac=function(e){return new(e||P)(r.LFG(c))},P.\u0275prov=r.Yz7({token:P,factory:P.\u0275fac}),P),R=function(){function e(t,n){_classCallCheck(this,e),this.next=t,this.interceptor=n}return _createClass(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),D=new r.OlP("HTTP_INTERCEPTORS"),M=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),L=/^\)\]\}',?\n/,F=function(){var e=function(){function e(t){_classCallCheck(this,e),this.xhrFactory=t}return _createClass(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new a.y(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new f(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new S({headers:r,status:t,statusText:n,url:o})},l=function(){var t=u(),r=t.headers,o=t.status,a=t.statusText,s=t.url,l=null;204!==o&&(l=void 0===i.response?i.responseText:i.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof l){var h=l;l=l.replace(L,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=h,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new O({body:l,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new A({error:l,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=u().url,r=new A({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},h=!1,d=function(t){h||(n.next(u()),h=!0);var r={type:x.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&!!i.responseText&&(r.partialText=i.responseText),n.next(r)},p=function(e){var t={type:x.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",d),null!==a&&i.upload&&i.upload.addEventListener("progress",p)),i.send(a),n.next({type:x.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",d),null!==a&&i.upload&&i.upload.removeEventListener("progress",p)),i.readyState!==i.DONE&&i.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.JF))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),N=new r.OlP("XSRF_COOKIE_NAME"),B=new r.OlP("XSRF_HEADER_NAME"),U=function e(){_classCallCheck(this,e)},Z=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.K0),r.LFG(r.Lbi),r.LFG(N))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),j=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.tokenService=t,this.headerName=n}return _createClass(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null!==i&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(U),r.LFG(B))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),q=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.backend=t,this.injector=n,this.chain=null}return _createClass(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(D,[]);this.chain=t.reduceRight(function(e,t){return new R(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(h),r.LFG(r.zs3))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),V=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:j,useClass:M}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:N,useValue:t.cookieName}:[],t.headerName?{provide:B,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[j,{provide:D,useExisting:j,multi:!0},{provide:U,useClass:Z},{provide:N,useValue:"XSRF-TOKEN"},{provide:B,useValue:"X-XSRF-TOKEN"}]}),e}(),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[I,{provide:c,useClass:q},F,{provide:h,useExisting:F}],imports:[[V.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}()},3018:function(e,t,n){"use strict";n.d(t,{deG:function(){return ln},tb:function(){return Gu},AFp:function(){return qu},ip1:function(){return Zu},CZH:function(){return ju},hGG:function(){return Ul},z2F:function(){return Tl},sBO:function(){return zs},Sil:function(){return rl},_Vd:function(){return vs},EJc:function(){return Qu},SBq:function(){return ys},qLn:function(){return Ri},vpe:function(){return ku},gxx:function(){return ko},tBr:function(){return Fn},XFs:function(){return R},OlP:function(){return un},zs3:function(){return Lo},ZZ4:function(){return Bs},aQg:function(){return Zs},soG:function(){return Wu},YKP:function(){return eu},v3s:function(){return Il},h0i:function(){return $s},PXZ:function(){return xl},R0b:function(){return sl},FiY:function(){return Nn},Lbi:function(){return Yu},g9A:function(){return zu},n_E:function(){return wu},Qsj:function(){return Cs},FYo:function(){return ks},JOm:function(){return Li},Tiy:function(){return xs},q3G:function(){return wi},tp0:function(){return Bn},EAV:function(){return Ml},Rgc:function(){return Qs},dDg:function(){return pl},DyG:function(){return cn},GfV:function(){return Es},s_b:function(){return nu},ifc:function(){return N},eFA:function(){return El},G48:function(){return Cl},Gpc:function(){return v},f3M:function(){return Tn},X6Q:function(){return kl},_c5:function(){return Nl},VLi:function(){return _l},c2e:function(){return Ku},zSh:function(){return wo},wAp:function(){return ns},vHH:function(){return g},EiD:function(){return ki},mCW:function(){return oi},qzn:function(){return Kn},JVY:function(){return Qn},pB0:function(){return ei},eBb:function(){return Xn},L6k:function(){return Jn},LAX:function(){return $n},cg1:function(){return $a},Tjo:function(){return Fl},kL8:function(){return es},yhl:function(){return Wn},dqk:function(){return q},sIi:function(){return zo},CqO:function(){return ca},QGY:function(){return ua},F4k:function(){return la},RDi:function(){return Oe},AaK:function(){return f},z3N:function(){return Gn},qOj:function(){return No},TTD:function(){return ye},_Bn:function(){return fs},xp6:function(){return Cr},uIk:function(){return Wo},Tol:function(){return Pa},Gre:function(){return Ga},ekj:function(){return Ta},Suo:function(){return Lu},Xpm:function(){return $},lG2:function(){return ae},Yz7:function(){return C},cJS:function(){return w},oAB:function(){return ie},Yjl:function(){return se},Y36:function(){return $o},_UZ:function(){return ra},BQk:function(){return aa},ynx:function(){return oa},qZA:function(){return ia},TgZ:function(){return na},EpF:function(){return sa},n5z:function(){return nn},Ikx:function(){return Ka},LFG:function(){return An},$8M:function(){return on},NdJ:function(){return ha},CRH:function(){return Fu},kcU:function(){return kt},O4$:function(){return bt},oxw:function(){return _a},ALo:function(){return gu},lcZ:function(){return yu},Hsn:function(){return ya},F$t:function(){return ga},Q6J:function(){return ea},s9C:function(){return ba},VKq:function(){return _u},iGM:function(){return Du},MAs:function(){return Xo},CHM:function(){return Ye},oJD:function(){return xi},LSH:function(){return Ei},kYT:function(){return re},Udp:function(){return Aa},WFA:function(){return fa},d8E:function(){return Wa},YNc:function(){return Jo},_uU:function(){return qa},Oqu:function(){return Va},hij:function(){return Ha},AsE:function(){return za},lnq:function(){return Ya},Gf:function(){return Mu}});var i=n(9765),r=n(5319),o=n(7574),a=n(6682),s=n(2441),u=n(1307);function l(){return new i.xQ}function c(e){for(var t in e)if(e[t]===c)return t;throw Error("Could not find renamed property on target object.")}function h(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function f(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(f).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function d(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var p=c({__forward_ref__:c});function v(e){return e.__forward_ref__=v,e.toString=function(){return f(this())},e}function _(e){return m(e)?e():e}function m(e){return"function"==typeof e&&e.hasOwnProperty(p)&&e.__forward_ref__===v}var g=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(_wrapNativeSuper(Error));function y(e){return"string"==typeof e?e:null==e?"":String(e)}function b(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():y(e)}function k(e,t){var n=t?" in ".concat(t):"";throw new g("201","No provider for ".concat(b(e)," found").concat(n))}function C(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function w(e){return{providers:e.providers||[],imports:e.imports||[]}}function x(e){return E(e,A)||E(e,P)}function E(e,t){return e.hasOwnProperty(t)?e[t]:null}function S(e){return e&&(e.hasOwnProperty(T)||e.hasOwnProperty(I))?e[T]:null}var O,A=c({"\u0275prov":c}),T=c({"\u0275inj":c}),P=c({ngInjectableDef:c}),I=c({ngInjectorDef:c}),R=((R=R||{})[R.Default=0]="Default",R[R.Host=1]="Host",R[R.Self=2]="Self",R[R.SkipSelf=4]="SkipSelf",R[R.Optional=8]="Optional",R);function D(e){var t=O;return O=e,t}function M(e,t,n){var i=x(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&R.Optional?null:void 0!==t?t:void k(f(e),"Injector")}function L(e){return{toString:e}.toString()}var F=((F=F||{})[F.OnPush=0]="OnPush",F[F.Default=1]="Default",F),N=((N=N||{})[N.Emulated=0]="Emulated",N[N.None=2]="None",N[N.ShadowDom=3]="ShadowDom",N),B="undefined"!=typeof globalThis&&globalThis,U="undefined"!=typeof window&&window,Z="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,q=B||j||U||Z,V={},H=[],z=c({"\u0275cmp":c}),Y=c({"\u0275dir":c}),G=c({"\u0275pipe":c}),K=c({"\u0275mod":c}),W=c({"\u0275loc":c}),Q=c({"\u0275fac":c}),J=c({__NG_ELEMENT_ID__:c}),X=0;function $(e){return L(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===F.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||H,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||N.Emulated,id:"c",styles:e.styles||H,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=X++,n.inputs=oe(e.inputs,t),n.outputs=oe(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(ee)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(te)}:null,n})}function ee(e){return ue(e)||function(e){return e[Y]||null}(e)}function te(e){return function(e){return e[G]||null}(e)}var ne={};function ie(e){return L(function(){var t={type:e.type,bootstrap:e.bootstrap||H,declarations:e.declarations||H,imports:e.imports||H,exports:e.exports||H,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ne[e.id]=e.type),t})}function re(e,t){return L(function(){var n=le(e,!0);n.declarations=t.declarations||H,n.imports=t.imports||H,n.exports=t.exports||H})}function oe(e,t){if(null==e)return V;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var ae=$;function se(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ue(e){return e[z]||null}function le(e,t){var n=e[K]||null;if(!n&&!0===t)throw new Error("Type ".concat(f(e)," does not have '\u0275mod' property."));return n}function ce(e){return Array.isArray(e)&&"object"==typeof e[1]}function he(e){return Array.isArray(e)&&!0===e[1]}function fe(e){return 0!=(8&e.flags)}function de(e){return 2==(2&e.flags)}function pe(e){return 1==(1&e.flags)}function ve(e){return null!==e.template}function _e(e){return 0!=(512&e[2])}function me(e,t){return e.hasOwnProperty(Q)?e[Q]:null}var ge=function(){function e(t,n,i){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function ye(){return be}function be(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ce),ke}function ke(){var e=xe(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===V)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Ce(e,t,n,i){var r=xe(e)||function(e,t){return e[we]=t}(e,{previous:V,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],u=a[s];o[s]=new ge(u&&u.currentValue,t,a===V),e[i]=t}ye.ngInherit=!0;var we="__ngSimpleChanges__";function xe(e){return e[we]||null}var Ee,Se="http://www.w3.org/2000/svg";function Oe(e){Ee=e}function Ae(){return void 0!==Ee?Ee:"undefined"!=typeof document?document:void 0}function Te(e){return!!e.listen}var Pe={createRenderer:function(e,t){return Ae()}};function Ie(e){for(;Array.isArray(e);)e=e[0];return e}function Re(e,t){return Ie(t[e])}function De(e,t){return Ie(t[e.index])}function Me(e,t){return e.data[t]}function Le(e,t){return e[t]}function Fe(e,t){var n=t[e];return ce(n)?n:n[0]}function Ne(e){return 4==(4&e[2])}function Be(e){return 128==(128&e[2])}function Ue(e,t){return null==t?null:e[t]}function Ze(e){e[18]=0}function je(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var qe={lFrame:dt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ve(){return qe.bindingsEnabled}function He(){return qe.lFrame.lView}function ze(){return qe.lFrame.tView}function Ye(e){return qe.lFrame.contextLView=e,e[8]}function Ge(){for(var e=Ke();null!==e&&64===e.type;)e=e.parent;return e}function Ke(){return qe.lFrame.currentTNode}function We(e,t){var n=qe.lFrame;n.currentTNode=e,n.isParent=t}function Qe(){return qe.lFrame.isParent}function Je(){qe.lFrame.isParent=!1}function Xe(){return qe.isInCheckNoChangesMode}function $e(e){qe.isInCheckNoChangesMode=e}function et(){var e=qe.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function tt(){return qe.lFrame.bindingIndex}function nt(){return qe.lFrame.bindingIndex++}function it(e){var t=qe.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function rt(e,t){var n=qe.lFrame;n.bindingIndex=n.bindingRootIndex=e,ot(t)}function ot(e){qe.lFrame.currentDirectiveIndex=e}function at(e){var t=qe.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function st(){return qe.lFrame.currentQueryIndex}function ut(e){qe.lFrame.currentQueryIndex=e}function lt(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function ct(e,t,n){if(n&R.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&R.Host||(i=lt(r),null===i||(r=r[15],10&i.type))););if(null===i)return!1;t=i,e=r}var o=qe.lFrame=ft();return o.currentTNode=t,o.lView=e,!0}function ht(e){var t=ft(),n=e[1];qe.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ft(){var e=qe.lFrame,t=null===e?null:e.child;return null===t?dt(e):t}function dt(e){var t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function pt(){var e=qe.lFrame;return qe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var vt=pt;function _t(){var e=pt();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function mt(){return qe.lFrame.selectedIndex}function gt(e){qe.lFrame.selectedIndex=e}function yt(){var e=qe.lFrame;return Me(e.tView,e.selectedIndex)}function bt(){qe.lFrame.currentNamespace=Se}function kt(){qe.lFrame.currentNamespace=null}function Ct(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[s]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var At=function e(t,n,i){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Tt(e,t,n){for(var i=Te(e),r=0;rt){a=o-1;break}}}for(;o>16}(e),i=t;n>0;)i=i[15],n--;return i}var Nt=!0;function Bt(e){var t=Nt;return Nt=e,t}var Ut=0;function Zt(e,t){var n=qt(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,jt(i.data,e),jt(t,null),jt(i.blueprint,null));var r=Vt(e,t),o=e.injectorIndex;if(Mt(r))for(var a=Lt(r),s=Ft(r,t),u=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|u[a+l];return t[o+8]=r,o}function jt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function qt(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Vt(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Ht(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(i=n[J]),null==i&&(i=n[J]=Ut++);var r=255&i;t.data[e+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:R.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(J)?e[J]:void 0;return"number"==typeof t?t>=0?255&t:Wt:t}(n);if("function"==typeof o){if(!ct(t,e,i))return i&R.Host?zt(r,n,i):Yt(t,n,i,r);try{var a=o(i);if(null!=a||i&R.Optional)return a;k(n)}finally{vt()}}else if("number"==typeof o){var s=null,u=qt(e,t),l=-1,c=i&R.Host?t[16][6]:null;for((-1===u||i&R.SkipSelf)&&(-1!==(l=-1===u?Vt(e,t):t[u+8])&&en(i,!1)?(s=t[1],u=Lt(l),t=Ft(l,t)):u=-1);-1!==u;){var h=t[1];if($t(o,u,h.data)){var f=Qt(u,t,n,s,i,c);if(f!==Kt)return f}-1!==(l=t[u+8])&&en(i,t[1].data[u+8]===c)&&$t(o,u,t)?(s=h,u=Lt(l),t=Ft(l,t)):u=-1}}}return Yt(t,n,i,r)}var Kt={};function Wt(){return new tn(Ge(),He())}function Qt(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],u=Jt(s,a,n,null==i?de(s)&&Nt:i!=a&&0!=(3&s.type),r&R.Host&&o===s);return null!==u?Xt(t,a,u,s):Kt}function Jt(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,l=o>>20,c=r?s+l:e.directiveEnd,h=i?s:s+l;h=u&&f.type===n)return h}if(r){var d=a[u];if(d&&ve(d)&&d.type===n)return u}return null}function Xt(e,t,n,i){var r=e[n],o=t.data;if(function(e){return e instanceof At}(r)){var a=r;a.resolving&&function(e,t){throw new g("200","Circular dependency in DI detected for ".concat(e))}(b(o[n]));var s=Bt(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?D(a.injectImpl):null;ct(e,i,R.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,o=i.ngOnInit,a=i.ngDoCheck;if(r){var s=be(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==u&&D(u),Bt(s),a.resolving=!1,vt()}}return r}function $t(e,t,n){return!!(n[t+(e>>5)]&1<=e.length?e.push(n):e.splice(t,0,n)}function pn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function vn(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function mn(e,t){var n=gn(e,t);if(n>=0)return e[1|n]}function gn(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var yn,bn={},kn="__NG_DI_FLAG__",Cn="ngTempTokenPath",wn=/\n/gm,xn="__source",En=c({provide:String,useValue:c});function Sn(e){var t=yn;return yn=e,t}function On(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.Default;if(void 0===yn)throw new Error("inject() must be called from an injection context");return null===yn?M(e,void 0,t):yn.get(e,t&R.Optional?null:void 0,t)}function An(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.Default;return(O||On)(_(e),t)}var Tn=An;function Pn(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=f(t);if(Array.isArray(t))r=t.map(f).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):f(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(wn,"\n "))}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[Cn]=null,e}var Mn,Ln,Fn=In(sn("Inject",function(e){return{token:e}}),-1),Nn=In(sn("Optional"),8),Bn=In(sn("SkipSelf"),4);function Un(e){var t;return(null===(t=function(){if(void 0===Mn&&(Mn=null,q.trustedTypes))try{Mn=q.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(e){}return Mn}())||void 0===t?void 0:t.createHTML(e))||e}function Zn(e){var t;return(null===(t=function(){if(void 0===Ln&&(Ln=null,q.trustedTypes))try{Ln=q.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(e){}return Ln}())||void 0===t?void 0:t.createHTML(e))||e}var jn=function(){function e(t){_classCallCheck(this,e),this.changingThisBreaksApplicationSecurity=t}return _createClass(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity," (see https://g.co/ng/security#xss)")}}]),e}(),qn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(jn),Vn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(jn),Hn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(jn),zn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(jn),Yn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(jn);function Gn(e){return e instanceof jn?e.changingThisBreaksApplicationSecurity:e}function Kn(e,t){var n=Wn(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function Wn(e){return e instanceof jn&&e.getTypeName()||null}function Qn(e){return new qn(e)}function Jn(e){return new Vn(e)}function Xn(e){return new Hn(e)}function $n(e){return new zn(e)}function ei(e){return new Yn(e)}var ti=function(){function e(t){_classCallCheck(this,e),this.inertDocumentHelper=t}return _createClass(e,[{key:"getInertBodyElement",value:function(e){e=""+e;try{var t=(new window.DOMParser).parseFromString(Un(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}]),e}(),ni=function(){function e(t){if(_classCallCheck(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return _createClass(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Un(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Un(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();fi.hasOwnProperty(t)&&!li.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(bi(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),gi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yi=/([^\#-~ |!])/g;function bi(e){return e.replace(/&/g,"&").replace(gi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(yi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function ki(e,t){var n=null;try{ui=ui||function(e){var t=new ni(e);return function(){try{return!!(new window.DOMParser).parseFromString(Un(""),"text/html")}catch(e){return!1}}()?new ti(t):t}(e);var i=t?String(t):"";n=ui.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=ui.getInertBodyElement(i)}while(i!==o);return Un((new mi).sanitizeChildren(Ci(n)||n))}finally{if(n)for(var a=Ci(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Ci(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var wi=((wi=wi||{})[wi.NONE=0]="NONE",wi[wi.HTML=1]="HTML",wi[wi.STYLE=2]="STYLE",wi[wi.SCRIPT=3]="SCRIPT",wi[wi.URL=4]="URL",wi[wi.RESOURCE_URL=5]="RESOURCE_URL",wi);function xi(e){var t=Si();return t?Zn(t.sanitize(wi.HTML,e)||""):Kn(e,"HTML")?Zn(Gn(e)):ki(Ae(),y(e))}function Ei(e){var t=Si();return t?t.sanitize(wi.URL,e)||"":Kn(e,"URL")?Gn(e):oi(y(e))}function Si(){var e=He();return e&&e[12]}var Oi="__ngContext__";function Ai(e,t){e[Oi]=t}function Ti(e){var t=function(e){return e[Oi]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Pi(e){return e.ngOriginalError}function Ii(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&(e[n-1][4]=i[4]);var o=pn(e,10+t);!function(e,t){or(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);var a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function zi(e,t){if(!(256&t[2])){var n=t[11];Te(n)&&n.destroyNode&&or(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Yi(e[1],e);for(;t;){var n=null;if(ce(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)ce(t)&&Yi(t[1],t),t=t[3];null===t&&(t=e),ce(t)&&Yi(t[1],t),n=t&&t[4]}t=n}}(t)}}function Yi(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i=0?i[r=l]():i[r=-l].unsubscribe(),o+=2}else{var c=i[r=n[o+1]];n[o].call(c)}if(null!==i){for(var h=r+1;ho?"":r[c+1].toLowerCase();var f=8&i?h:null;if(f&&-1!==lr(f,l,0)||2&i&&l!==h){if(vr(i))return!1;a=!0}}}}else{if(!a&&!vr(i)&&!vr(u))return!1;if(a&&vr(u))continue;a=!1,i=u|1&i}}return vr(i)||a}function vr(e){return 0==(1&e)}function _r(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!vr(a)&&(t+=yr(o,r),r=""),i=a,o=o||!vr(i);n++}return""!==r&&(t+=yr(o,r)),t}var kr={};function Cr(e){wr(ze(),He(),mt()+e,Xe())}function wr(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&wt(t,r,n)}else{var o=e.preOrderHooks;null!==o&&xt(t,o,0,n)}gt(n)}function xr(e,t){return e<<17|t<<2}function Er(e){return e>>17&32767}function Sr(e){return 2|e}function Or(e){return(131068&e)>>2}function Ar(e,t){return-131069&e|t<<2}function Tr(e){return 1|e}function Pr(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&wr(e,t,20,Xe()),n(i,r)}finally{gt(o)}}function Br(e,t,n){if(fe(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:De,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(i,r,a)}}function Kr(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Wr(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Qr(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&ro(n)}}function ro(e){for(var t=Bi(e);null!==t;t=Ui(t))for(var n=10;n0&&ro(i)}var o=e[1].components;if(null!==o)for(var a=0;a0&&ro(s)}}function oo(e,t){var n=Fe(t,e),i=n[1];(function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:bn;if(t===bn){var n=new Error("NullInjectorError: No provider for ".concat(f(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),wo=new un("Set Injector scope."),xo={},Eo={};function So(){return void 0===bo&&(bo=new Co),bo}function Oo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Ao(e,n,t||So(),i)}var Ao=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&fn(n,function(e){return r.processProvider(e,t,n)}),fn([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(ko,Io(void 0,this));var s=this.records.get(wo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:f(t))}return _createClass(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.Default;this.assertNotDestroyed();var i,r=Sn(this),o=D(void 0);try{if(!(n&R.SkipSelf)){var a=this.records.get(e);if(void 0===a){var s=("function"==typeof(i=e)||"object"==typeof i&&i instanceof un)&&x(e);a=s&&this.injectableDefInScope(s)?Io(To(e),xo):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(n&R.Self?So():this.parent).get(e,t=n&R.Optional&&t===bn?null:t)}catch(u){if("NullInjectorError"===u.name){if((u[Cn]=u[Cn]||[]).unshift(f(e)),r)throw u;return Dn(u,e,"R3InjectorError",this.source)}throw u}finally{D(o),Sn(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(f(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=_(e)))return!1;var r=S(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=S(o)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(a);try{fn(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,r=t.providers;fn(r,function(e){return i.processProvider(e,n,r||H)})},c=0;c0){var n=vn(t,"?");throw new Error("Can't resolve all parameters for ".concat(f(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[A]||e[P]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" 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 "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Po(e,t,n){var i;if(Do(e)){var r=_(e);return me(r)||To(r)}if(Ro(e))i=function(){return _(e.useValue)};else if(function(e){return!(!e||!e.useFactory)}(e))i=function(){return e.useFactory.apply(e,_toConsumableArray(Pn(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return An(_(e.useExisting))};else{var o=_(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return me(o)||To(o);i=function(){return _construct(o,_toConsumableArray(Pn(e.deps)))}}return i}function Io(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Ro(e){return null!==e&&"object"==typeof e&&En in e}function Do(e){return"function"==typeof e}var Mo=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=Oo(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},Lo=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Mo(e,t,""):Mo(e.providers,e.parent,e.name||"")}}]),e}();function Fo(e,t){Ct(Ti(e)[1],Ge())}function No(e){for(var t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0,i=[e];t;){var r=void 0;if(ve(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=Bo(e.inputs),o.declaredInputs=Bo(e.declaredInputs),o.outputs=Bo(e.outputs);var a=r.hostBindings;a&&jo(e,a);var s=r.viewQuery,u=r.contentQueries;if(s&&Uo(e,s),u&&Zo(e,u),h(e.inputs,r.inputs),h(e.declaredInputs,r.declaredInputs),h(e.outputs,r.outputs),ve(r)&&r.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var f=0;f=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Rt(r.hostAttrs,n=Rt(n,r.hostAttrs))}}(i)}function Bo(e){return e===V?{}:e===H?[]:e}function Uo(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function Zo(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function jo(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}Lo.THROW_IF_NOT_FOUND=bn,Lo.NULL=new Co,Lo.\u0275prov=C({token:Lo,providedIn:"any",factory:function(){return An(ko)}}),Lo.__NG_ELEMENT_ID__=-1;var qo=null;function Vo(){if(!qo){var e=q.Symbol;if(e&&e.iterator)qo=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:R.Default,n=He();return null===n?An(e,t):Gt(Ge(),n,_(e),t)}function ea(e,t,n){var i=He();return Go(i,nt(),t)&&zr(ze(),yt(),i,e,t,i[11],n,!1),ea}function ta(e,t,n,i,r){var o=r?"class":"style";mo(e,n,t.inputs[o],o,i)}function na(e,t,n,i){var r=He(),o=ze(),a=20+e,s=r[11],u=r[a]=qi(s,t,qe.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,u=Rr(t,e,2,r,Ue(s,o));return Yr(t,n,u,Ue(s,a)),null!==u.attrs&&yo(u,u.attrs,!1),null!==u.mergedAttrs&&yo(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,o,r,0,t,n,i):o.data[a];We(l,!0);var c=l.mergedAttrs;null!==c&&Tt(s,u,c);var h=l.classes;null!==h&&ur(s,u,h);var f=l.styles;null!==f&&sr(s,u,f),64!=(64&l.flags)&&er(o,r,u,l),0===qe.lFrame.elementDepthCount&&Ai(u,r),qe.lFrame.elementDepthCount++,pe(l)&&(Ur(o,r,l),Br(o,l,r)),null!==i&&Zr(r,l)}function ia(){var e=Ge();Qe()?Je():We(e=e.parent,!1);var t=e;qe.lFrame.elementDepthCount--;var n=ze();n.firstCreatePass&&(Ct(n,e),fe(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&ta(n,t,He(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&ta(n,t,He(),t.stylesWithoutHost,!1)}function ra(e,t,n,i){na(e,t,n,i),ia()}function oa(e,t,n){var i=He(),r=ze(),o=e+20,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=Ue(o,i),s=Rr(t,e,8,"ng-container",a);return null!==a&&yo(s,a,!0),Yr(t,n,s,Ue(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,r,i,t,n):r.data[o];We(a,!0);var s=i[o]=i[11].createComment("");er(r,i,s,a),Ai(s,i),pe(a)&&(Ur(r,i,a),Br(r,a,i)),null!=n&&Zr(i,a)}function aa(){var e=Ge(),t=ze();Qe()?Je():We(e=e.parent,!1),t.firstCreatePass&&(Ct(t,e),fe(e)&&t.queries.elementEnd(e))}function sa(){return He()}function ua(e){return!!e&&"function"==typeof e.then}function la(e){return!!e&&"function"==typeof e.subscribe}var ca=la;function ha(e,t,n,i){var r=He(),o=ze(),a=Ge();return da(o,r,r[11],a,e,t,!!n,i),ha}function fa(e,t){var n=Ge(),i=He(),r=ze();return da(r,i,vo(at(r.data),n,i),n,e,t,!1),fa}function da(e,t,n,i,r,o,a,s){var u=pe(i),l=e.firstCreatePass&&po(e),c=t[8],h=fo(t),f=!0;if(3&i.type||s){var d=De(i,t),p=s?s(d):d,v=h.length,_=s?function(e){return s(Ie(e[i.index]))}:i.index;if(Te(n)){var m=null;if(!s&&u&&(m=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,f=!1;else{o=va(i,t,c,o,!1);var g=n.listen(p,r,o);h.push(o,g),l&&l.push(r,_,v,v+1)}}else o=va(i,t,c,o,!0),p.addEventListener(r,o,a),h.push(o),l&&l.push(r,_,v,a)}else o=va(i,t,c,o,!1);var y,b=i.outputs;if(f&&null!==b&&(y=b[r])){var k=y.length;if(k)for(var C=0;C0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(qe.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,qe.lFrame.contextLView))[8]}(e)}function ma(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=He(),r=ze(),o=Rr(r,20+e,16,null,n||null);null===o.projection&&(o.projection=t),Je(),64!=(64&o.flags)&&function(e,t,n){ar(t[11],0,t,n,Gi(e,n,t),Xi(n.parent||t[6],n,t))}(r,i,o)}function ba(e,t,n){return ka(e,"",t,"",n),ba}function ka(e,t,n,i,r){var o=He(),a=Qo(o,t,n,i);return a!==kr&&zr(ze(),yt(),o,e,a,o[11],r,!1),ka}function Ca(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?Er(o):Or(o),u=!1;0!==s&&(!1===u||a);){var l=e[s+1];wa(e[s],t)&&(u=!0,e[s+1]=i?Tr(l):Sr(l)),s=i?Er(l):Or(l)}u&&(e[n+1]=i?Sr(o):Tr(o))}function wa(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&gn(e,t)>=0}var xa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ea(e){return e.substring(xa.key,xa.keyEnd)}function Sa(e,t){var n=xa.textEnd;return n===t?-1:(t=xa.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,xa.key=t,n),Oa(e,t,n))}function Oa(e,t,n){for(;t=0;n=Sa(t,n))_n(e,Ea(t),!0)}function Ra(e,t,n,i){var r=He(),o=ze(),a=it(2);o.firstUpdatePass&&La(o,e,a,i),t!==kr&&Go(r,a,t)&&Ba(o,o.data[mt()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=f(Gn(e)))),e}(t,n),i,a)}function Da(e,t,n,i){var r=ze(),o=it(2);r.firstUpdatePass&&La(r,null,o,i);var a=He();if(n!==kr&&Go(a,o,n)){var s=r.data[mt()];if(ja(s,i)&&!Ma(r,o)){var u=i?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(n=d(u,n||"")),ta(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===kr&&(r=H);for(var u=0,l=0,c=0=e.expandoStartIndex}function La(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[mt()],a=Ma(e,n);ja(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=at(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Na(n=Fa(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=Fa(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Or(i))return e[Er(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[Er(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Na(s=Fa(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i,r=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else l=n;if(r)if(0!==u){var f=Er(e[s+1]);e[i+1]=xr(f,s),0!==f&&(e[f+1]=Ar(e[f+1],i)),e[s+1]=function(e,t){return 131071&e|t<<17}(e[s+1],i)}else e[i+1]=xr(s,0),0!==s&&(e[s+1]=Ar(e[s+1],i)),s=i;else e[i+1]=xr(u,0),0===s?s=i:e[u+1]=Ar(e[u+1],i),u=i;c&&(e[i+1]=Sr(e[i+1])),Ca(e,l,i,!0),Ca(e,l,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&gn(o,t)>=0&&(n[i+1]=Tr(n[i+1]))}(t,l,e,i,o),a=xr(s,u),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function Fa(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[r],l=Array.isArray(u),c=l?u[1]:u,h=null===c,f=n[r+1];f===kr&&(f=h?H:void 0);var d=h?mn(f,i):c===i?f:void 0;if(l&&!Za(d)&&(d=mn(u,i)),Za(d)&&(a=d,s))return a;var p=e[r+1];r=s?Er(p):Or(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(a=mn(v,i))}return a}function Za(e){return void 0!==e}function ja(e,t){return 0!=(e.flags&(t?16:32))}function qa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=He(),i=ze(),r=e+20,o=i.firstCreatePass?Rr(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return Te(e)?e.createText(t):e.createTextNode(t)}(n[11],t);er(i,n,a,o),We(o,!1)}function Va(e){return Ha("",e,""),Va}function Ha(e,t,n){var i=He(),r=Qo(i,e,t,n);return r!==kr&&go(i,mt(),r),Ha}function za(e,t,n,i,r){var o=He(),a=function(e,t,n,i,r,o){var a=Ko(e,tt(),n,r);return it(2),a?t+y(n)+i+y(r)+o:kr}(o,e,t,n,i,r);return a!==kr&&go(o,mt(),a),za}function Ya(e,t,n,i,r,o,a){var s=He(),u=function(e,t,n,i,r,o,a,s){var u=function(e,t,n,i,r){var o=Ko(e,t,n,i);return Go(e,t+2,r)||o}(e,tt(),n,r,a);return it(3),u?t+y(n)+i+y(r)+o+y(a)+s:kr}(s,e,t,n,i,r,o,a);return u!==kr&&go(s,mt(),u),Ya}function Ga(e,t,n){Da(_n,Ia,Qo(He(),e,t,n),!0)}function Ka(e,t,n){var i=He();return Go(i,nt(),t)&&zr(ze(),yt(),i,e,t,i[11],n,!0),Ka}function Wa(e,t,n){var i=He();if(Go(i,nt(),t)){var r=ze(),o=yt();zr(r,o,i,e,t,vo(at(r.data),o,i),n,!0)}return Wa}var Qa=void 0,Ja=["en",[["a","p"],["AM","PM"],Qa],[["AM","PM"],Qa,Qa],[["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"]],Qa,[["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"]],Qa,[["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}",Qa,"{1} 'at' {0}",Qa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Xa={};function $a(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=ts(t);if(n)return n;var i=t.split("-")[0];if(n=ts(i))return n;if("en"===i)return Ja;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function es(e){return $a(e)[ns.PluralCase]}function ts(e){return e in Xa||(Xa[e]=q.ng&&q.ng.common&&q.ng.common.locales&&q.ng.common.locales[e]),Xa[e]}var ns=((ns=ns||{})[ns.LocaleId=0]="LocaleId",ns[ns.DayPeriodsFormat=1]="DayPeriodsFormat",ns[ns.DayPeriodsStandalone=2]="DayPeriodsStandalone",ns[ns.DaysFormat=3]="DaysFormat",ns[ns.DaysStandalone=4]="DaysStandalone",ns[ns.MonthsFormat=5]="MonthsFormat",ns[ns.MonthsStandalone=6]="MonthsStandalone",ns[ns.Eras=7]="Eras",ns[ns.FirstDayOfWeek=8]="FirstDayOfWeek",ns[ns.WeekendRange=9]="WeekendRange",ns[ns.DateFormat=10]="DateFormat",ns[ns.TimeFormat=11]="TimeFormat",ns[ns.DateTimeFormat=12]="DateTimeFormat",ns[ns.NumberSymbols=13]="NumberSymbols",ns[ns.NumberFormats=14]="NumberFormats",ns[ns.CurrencyCode=15]="CurrencyCode",ns[ns.CurrencySymbol=16]="CurrencySymbol",ns[ns.CurrencyName=17]="CurrencyName",ns[ns.Currencies=18]="Currencies",ns[ns.Directionality=19]="Directionality",ns[ns.PluralCase=20]="PluralCase",ns[ns.ExtraData=21]="ExtraData",ns),is="en-US";function rs(e){(function(e,t){null==e&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(t,e)})(e,"Expected localeId to be defined"),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function os(e,t,n,i,r){if(e=_(e),Array.isArray(e))for(var o=0;o>20;if(Do(e)||!e.multi){var p=new At(l,r,$o),v=us(u,t,r?h:h+d,f);-1===v?(Ht(Zt(c,s),a,u),as(a,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var m=us(u,t,h+d,f),g=us(u,t,h,h+d),y=m>=0&&n[m],b=g>=0&&n[g];if(r&&!b||!r&&!y){Ht(Zt(c,s),a,u);var k=function(e,t,n,i,r){var o=new At(e,n,$o);return o.multi=[],o.index=t,o.componentProviders=0,ss(o,r,i&&!n),o}(r?cs:ls,n.length,r,i,l);!r&&b&&(n[g].providerFactory=k),as(a,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(k),s.push(k)}else as(a,e,m>-1?m:g,ss(n[r?g:m],l,!r&&i));!r&&i&&b&&n[g].componentProviders++}}}function as(e,t,n,i){var r=Do(t);if(r||function(e){return!!e.useClass}(t)){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function ss(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function us(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=ze();if(i.firstCreatePass){var r=ve(e);os(n,i.data,i.blueprint,r,!0),os(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var ds=function e(){_classCallCheck(this,e)},ps=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(f(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),vs=function e(){_classCallCheck(this,e)};function _s(){}function ms(e,t){return new ys(De(e,t))}vs.NULL=new ps;var gs,ys=((gs=function e(t){_classCallCheck(this,e),this.nativeElement=t}).__NG_ELEMENT_ID__=function(){return ms(Ge(),He())},gs);function bs(e){return e instanceof ys?e.nativeElement:e}var ks=function e(){_classCallCheck(this,e)},Cs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return ws()},e}(),ws=function(){var e=He(),t=Fe(Ge().index,e);return function(e){return e[11]}(ce(t)?t:e)},xs=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=C({token:e,providedIn:"root",factory:function(){return null}}),e}(),Es=function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Ss=new Es("12.2.4"),Os=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return zo(e)}},{key:"create",value:function(e){return new Ts(e)}}]),e}(),As=function(e,t){return t},Ts=function(){function e(t){_classCallCheck(this,e),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=t||As}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&i.push(Ie(o)),he(o))for(var a=10;a-1&&(Hi(e,n),pn(t,n))}this._attachedToViewContainer=!1}zi(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Vr(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){so(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){uo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){$e(!0);try{uo(e,t,n)}finally{$e(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,or(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Vs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._view=e,i}return _createClass(n,[{key:"detectChanges",value:function(){lo(this._view)}},{key:"checkNoChanges",value:function(){!function(e){$e(!0);try{lo(e)}finally{$e(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(qs),Hs=function(e){return function(e,t,n){if(de(e)&&!n){var i=Fe(e.index,t);return new qs(i,i)}return 47&e.type?new qs(t[16],t):null}(Ge(),He(),16==(16&e))},zs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Hs,e}(),Ys=[new Ms],Gs=new Bs([new Os]),Ks=new Zs(Ys),Ws=function(){return Xs(Ge(),He())},Qs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Ws,e}(),Js=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return _createClass(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Ir(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Mr(t,n,e),new qs(n)}}]),n}(Qs);function Xs(e,t){return 4&e.type?new Js(t,e,ms(e,t)):null}var $s=function e(){_classCallCheck(this,e)},eu=function e(){_classCallCheck(this,e)},tu=function(){return au(Ge(),He())},nu=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=tu,e}(),iu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return _createClass(n,[{key:"element",get:function(){return ms(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new tn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=Vt(this._hostTNode,this._hostLView);if(Mt(e)){var t=Ft(e,this._hostLView),n=Lt(e);return new tn(t[1].data[n+8],t)}return new tn(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=ru(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get($s,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(he(i[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=i[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var u=this._adjustIndex(t),l=this._lContainer;!function(e,t,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(nu);function ru(e){return e[8]}function ou(e){return e[8]||(e[8]=[])}function au(e,t){var n,i=t[e.index];if(he(i))n=i;else{var r;if(8&e.type)r=Ie(i);else{var o=t[11];r=o.createComment("");var a=De(e,t);Ki(o,Ji(o,a),r,function(e,t){return Te(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=no(i,t,r,e),ao(t,n)}return new iu(n,e,t)}var su={},uu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).ngModule=e,i}return _createClass(n,[{key:"resolveComponentFactory",value:function(e){var t=ue(e);return new hu(t,this.ngModule)}}]),n}(vs);function lu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var cu=new un("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Di}}),hu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(br).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return _createClass(n,[{key:"inputs",get:function(){return lu(this.componentDef.inputs)}},{key:"outputs",get:function(){return lu(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,su,r);return o!==su||i===su?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(ks,Pe),u=a.get(xs,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Te(e))return e.selectRootElement(t,n===N.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(l,n,this.componentDef.encapsulation):qi(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?Se:"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:Di,clean:ho,playerHandler:null,flags:0},p=qr(0,null,null,1,0,null,null,null,null,null),v=Ir(null,p,d,f,null,null,s,l,u,a);ht(v);try{var _=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=Rr(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(yo(s,u,!0),null!==e&&(Tt(r,e,u),null!==s.classes&&ur(r,e,s.classes),null!==s.styles&&sr(r,e,s.styles)));var l=i.createRenderer(e,t),c=Ir(n,jr(t),null,t.onPush?64:16,n[20],s,i,l,null,null);return a.firstCreatePass&&(Ht(Zt(s,n),a,t.type),Wr(a,s),Jr(s,n.length,1)),ao(n,c),n[20]=c}(h,this.componentDef,v,s,l);if(h)if(n)Tt(l,h,["ng-version",Ss.full]);else{var m=function(e){for(var t=[],n=[],i=1,r=2;i0&&ur(l,h,y.join(" "))}if(o=Me(p,20),void 0!==t)for(var b=o.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:Lo.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.Default;return e===Lo||e===$s||e===ko?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}($s),vu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).moduleType=e,null!==le(e)&&function(e){var t=new Set;!function e(n){var i=le(n,!0),r=i.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(f(t)," vs ").concat(f(t.name)))}(r,du.get(r),n),du.set(r,n));var o,a=_createForOfIteratorHelper(Mi(i.imports));try{for(a.s();!(o=a.n()).done;){var s=o.value;t.has(s)||(t.add(s),e(s))}}catch(u){a.e(u)}finally{a.f()}}(e)}(e),i}return _createClass(n,[{key:"create",value:function(e){return new pu(this.moduleType,e)}}]),n}(eu);function _u(e,t,n,i){return mu(He(),et(),e,t,n,i)}function mu(e,t,n,i,r,o){var a=t+n;return Go(e,a,r)?function(e,t,n){return e[t]=n}(e,a+1,o?i.call(o,r):i(r)):function(e,t){var n=e[t];return n===kr?void 0:n}(e,a+1)}function gu(e,t){var n,i=ze(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new g("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=me(n.type)),a=D($o);try{var s=Bt(!1),u=o();return Bt(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,He(),r,u),u}finally{D(a)}}function yu(e,t,n){var i=e+20,r=He(),o=Le(r,i);return function(e,t){return Ho.isWrapped(t)&&(t=Ho.unwrap(t),e[tt()]=kr),t}(r,function(e,t){return e[1].data[t].pure}(r,i)?mu(r,et(),t,o.transform,n,o):o.transform(n))}function bu(e){return function(t){setTimeout(e,void 0,t)}}var ku=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=i,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var o,a,s,u=e,l=t||function(){return null},c=i;if(e&&"object"==typeof e){var h=e;u=null===(o=h.next)||void 0===o?void 0:o.bind(h),l=null===(a=h.error)||void 0===a?void 0:a.bind(h),c=null===(s=h.complete)||void 0===s?void 0:s.bind(h)}this.__isAsync&&(l=bu(l),u&&(u=bu(u)),c&&(c=bu(c)));var f=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,{next:u,error:l,complete:c});return e instanceof r.w&&e.add(f),f}}]),n}(i.xQ);function Cu(){return this._results[Vo()]()}var wu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classCallCheck(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Vo(),i=e.prototype;i[n]||(i[n]=Cu)}return _createClass(e,[{key:"changes",get:function(){return this._changes||(this._changes=new ku)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){var n=this;n.dirty=!1;var i=hn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,e),this.predicate=t,this.flags=n,this.read=i},Ou=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(a[s/2]);else{for(var l=o[s+1],c=t[-u],h=10;h0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!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,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(An(sl))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}(),vl=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,gl.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return gl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function _l(e){gl=e}var ml,gl=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),yl=!0,bl=!1;function kl(){return bl=!0,yl}function Cl(){if(bl)throw new Error("Cannot enable prod mode after platform setup.");yl=!1}var wl=new un("AllowMultipleToken"),xl=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function El(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new un(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Sl();if(!o||o.injector.get(wl,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:wo,useValue:"platform"});!function(e){if(ml&&!ml.destroyed&&!ml.injector.get(wl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ml=e.get(Ol);var t=e.get(zu,null);t&&t.forEach(function(e){return e()})}(Lo.create({providers:a,name:i}))}return function(e){var t=Sl();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Sl(){return ml&&!ml.destroyed?ml:null}var Ol=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n=this,i=function(e,t){return"noop"===e?new dl:("zone.js"===e?void 0:e)||new sl({enableLongStackTrace:kl(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)})}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),r=[{provide:sl,useValue:i}];return i.run(function(){var o=Lo.create({providers:r,parent:n.injector,name:e.moduleType.name}),a=e.create(o),s=a.injector.get(Ri,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(function(){var e=i.onError.subscribe({next:function(e){s.handleError(e)}});a.onDestroy(function(){Pl(n._modules,a),e.unsubscribe()})}),function(e,i,r){try{var o=((s=a.injector.get(ju)).runInitializers(),s.donePromise.then(function(){return rs(a.injector.get(Wu,is)||is),n._moduleDoBootstrap(a),a}));return ua(o)?o.catch(function(t){throw i.runOutsideAngular(function(){return e.handleError(t)}),t}):o}catch(t){throw i.runOutsideAngular(function(){return e.handleError(t)}),t}var s}(s,i)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Al({},n);return function(e,t,n){var i=new vu(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Tl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(f(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(An(Lo))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Al(e,t){return Array.isArray(t)?t.reduce(Al,e):Object.assign(Object.assign({},e),t)}var Tl=function(){var e=function(){function e(t,n,i,r,c){var h=this;_classCallCheck(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){h._zone.run(function(){h.tick()})}});var f=new o.y(function(e){h._stable=h._zone.isStable&&!h._zone.hasPendingMacrotasks&&!h._zone.hasPendingMicrotasks,h._zone.runOutsideAngular(function(){e.next(h._stable),e.complete()})}),d=new o.y(function(e){var t;h._zone.runOutsideAngular(function(){t=h._zone.onStable.subscribe(function(){sl.assertNotInAngularZone(),al(function(){!h._stable&&!h._zone.hasPendingMacrotasks&&!h._zone.hasPendingMicrotasks&&(h._stable=!0,e.next(!0))})})});var n=h._zone.onUnstable.subscribe(function(){sl.assertInAngularZone(),h._stable&&(h._stable=!1,h._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=(0,a.T)(f,d.pipe(function(e){return(0,u.x)()(function(e,t){return function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,s.N);return i.source=t,i.subjectFactory=n,i}}(l)(e))}))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof ds?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=function(e){return e.isBoundToModule}(n)?void 0:this._injector.get($s),o=n.create(Lo.NULL,[],t||n.selector,r),a=o.location.nativeElement,s=o.injector.get(pl,null),u=s&&o.injector.get(vl);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),Pl(i.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;){var i;t.value.detectChanges()}}catch(r){n.e(r)}finally{n.f()}}catch(i){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(i)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Pl(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Gu,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(An(sl),An(Lo),An(Ri),An(vs),An(ju))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Pl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Il=function e(){_classCallCheck(this,e)},Rl=function e(){_classCallCheck(this,e)},Dl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Ml=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||Dl}return _createClass(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=_slicedToArray(e.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n(8255)(r).then(function(e){return e[o]}).then(function(e){return Ll(e,r,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),i=t[0],r=t[1],o="NgFactory";return void 0===r&&(r="default",o=""),n(8255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+o]}).then(function(e){return Ll(e,i,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(An(rl),An(Rl,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Ll(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Fl=function(e){return null},Nl=El(null,"core",[{provide:Yu,useValue:"unknown"},{provide:Ol,deps:[Lo]},{provide:vl,deps:[]},{provide:Ku,deps:[]}]),Bl=[{provide:Tl,useClass:Tl,deps:[sl,Lo,Ri,vs,ju]},{provide:cu,deps:[sl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:ju,useClass:ju,deps:[[new Nn,Zu]]},{provide:rl,useClass:rl,deps:[]},Vu,{provide:Bs,useFactory:function(){return Gs},deps:[]},{provide:Zs,useFactory:function(){return Ks},deps:[]},{provide:Wu,useFactory:function(e){return rs(e=e||"undefined"!=typeof $localize&&$localize.locale||is),e},deps:[[new Fn(Wu),new Nn,new Bn]]},{provide:Qu,useValue:"USD"}],Ul=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)(An(Tl))},e.\u0275mod=ie({type:e}),e.\u0275inj=w({providers:Bl}),e}()},665:function(e,t,n){"use strict";n.d(t,{Zs:function(){return ce},sg:function(){return ae},u5:function(){return fe},Cf:function(){return h},JU:function(){return c},a5:function(){return P},JL:function(){return I},F:function(){return ne},_Y:function(){return ie}});var i=n(3018),r=(n(8583),n(7574)),o=n(9796),a=n(8002),s=n(1555),u=n(4402);function l(e,t){return new r.y(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var l=(0,u.D)(e[s]),c=!1;n.add(l.subscribe({next:function(e){c||(c=!0,a++),r[s]=e},error:function(e){return n.error(e)},complete:function(){(++o===i||!c)&&(a===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},l=0;l0){var r=i.filter(function(e){return e!==t.validator});r.length!==i.length&&(n=!0,e.setValidators(r))}}if(null!==t.asyncValidator){var o=C(e);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(e){return e!==t.asyncValidator});a.length!==o.length&&(n=!0,e.setAsyncValidators(a))}}}var s=function(){};return M(t._rawValidators,s),M(t._rawAsyncValidators,s),n}function N(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function B(e,t){L(e,t)}function U(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Z(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var j="VALID",q="INVALID",V="PENDING",H="DISABLED";function z(e){return(W(e)?e.validators:e)||null}function Y(e){return Array.isArray(e)?g(e):e||null}function G(e,t){return(W(t)?t.asyncValidators:e)||null}function K(e){return Array.isArray(e)?y(e):e||null}function W(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Q=function(){function e(t,n){_classCallCheck(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Y(this._rawValidators),this._composedAsyncValidatorFn=K(this._rawAsyncValidators)}return _createClass(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===j}},{key:"invalid",get:function(){return this.status===q}},{key:"pending",get:function(){return this.status==V}},{key:"disabled",get:function(){return this.status===H}},{key:"enabled",get:function(){return this.status!==H}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Y(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=K(e)}},{key:"addValidators",value:function(e){this.setValidators(E(e,this._rawValidators))}},{key:"addAsyncValidators",value:function(e){this.setAsyncValidators(E(e,this._rawAsyncValidators))}},{key:"removeValidators",value:function(e){this.setValidators(S(e,this._rawValidators))}},{key:"removeAsyncValidators",value:function(e){this.setAsyncValidators(S(e,this._rawAsyncValidators))}},{key:"hasValidator",value:function(e){return x(this._rawValidators,e)}},{key:"hasAsyncValidator",value:function(e){return x(this._rawAsyncValidators,e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=V,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=H,this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=j,this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===j||this.status===V)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?H:j}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=V,this._hasOwnPendingAsyncValidator=!0;var n=p(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;var i=e;return t.forEach(function(e){i=i instanceof X?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof $&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?H:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(V)?V:this._anyControlsHaveStatus(q)?q:j}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){W(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),J=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this,z(r),G(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),e}return _createClass(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){Z(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){Z(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(Q),X=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,z(i),G(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return _createClass(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof J?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(Q),$=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,z(i),G(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return _createClass(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof J?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(Q),ee={provide:T,useExisting:(0,i.Gpc)(function(){return ne})},te=Promise.resolve(null),ne=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new i.vpe,o.form=new X({},g(e),y(r)),o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),R(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Z(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path),i=new X({});B(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;te.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,U(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.Y36(h,10),i.Y36(f,10))},e.\u0275dir=i.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([ee]),i.qOj]}),e}(),ie=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),re=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({}),e}(),oe={provide:T,useExisting:(0,i.Gpc)(function(){return ae})},ae=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this)).validators=e,o.asyncValidators=r,o.submitted=!1,o._onCollectionChange=function(){return o._updateDomValue()},o.directives=[],o.form=null,o.ngSubmit=new i.vpe,o._setValidators(e),o._setAsyncValidators(r),o}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(F(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return R(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){D(e.control||null,e,!1),Z(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,U(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(D(n||null,t),i instanceof J&&(R(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);B(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return F(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){L(this.form,this),this._oldForm&&F(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.Y36(h,10),i.Y36(f,10))},e.\u0275dir=i.lG2({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([oe]),i.qOj,i.TTD]}),e}(),se={provide:h,useExisting:(0,i.Gpc)(function(){return le}),multi:!0},ue={provide:h,useExisting:(0,i.Gpc)(function(){return ce}),multi:!0},le=function(){var e=function(){function e(){_classCallCheck(this,e),this._required=!1}return _createClass(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?function(e){return function(e){return null==e||0===e.length}(e.value)?{required:!0}:null}(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.lG2({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t.required?"":null)},inputs:{required:"required"},features:[i._Bn([se])]}),e}(),ce=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"validate",value:function(e){return this.required?function(e){return!0===e.value?null:{required:!0}}(e):null}}]),n}(le);return t.\u0275fac=function(n){return(e||(e=i.n5z(t)))(n||t)},t.\u0275dir=i.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t.required?"":null)},features:[i._Bn([ue]),i.qOj]}),t}(),he=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[re]]}),e}(),fe=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[he]}),e}()},1095:function(e,t,n){"use strict";n.d(t,{zs:function(){return p},lW:function(){return d},ot:function(){return v}});var i,r=n(2458),o=n(6237),a=n(3018),s=n(9238),u=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],f=(0,r.pj)((0,r.Id)((0,r.Kr)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}()))),d=((i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;_classCallCheck(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=_createForOfIteratorHelper(h);try{for(s.s();!(a=s.n()).done;){var u=a.value;o._hasHostAttributes(u)&&o._getHostElement().classList.add(u)}}catch(l){s.e(l)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return function(e){_inherits(i,e);var n=_createSuper(i);function i(){var e;_classCallCheck(this,i);for(var r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},O),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,u=t-r.top,l=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-a+"px",c.style.top=u-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(l,"ms"),this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var h=new S(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,!i.persistent&&(!e||!n._isPointerDown)&&h.fadeOut()},l),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},O),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=(0,u.fI)(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(T))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(P),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=(0,r.X6)(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,A)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(T.forEach(function(t){e._triggerElement.removeEventListener(t,e,A)}),this._pointerUpEventsRegistered&&P.forEach(function(t){e._triggerElement.removeEventListener(t,e,A)}))}}]),e}(),R=new i.OlP("mat-ripple-global-options"),D=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new I(this,n,t,i)}return _createClass(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(c.t4),i.Y36(R,8),i.Y36(h.Qb,8))},e.\u0275dir=i.lG2({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),M=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[y,c.ud],y]}),e}(),L=function(){var e=function e(t){_classCallCheck(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(i.Y36(h.Qb,8))},e.\u0275cmp=i.Xpm({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),F=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[y]]}),e}(),N=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),B=b(function(){return function e(){_classCallCheck(this,e)}}()),U=0,Z=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,r;return _classCallCheck(this,n),(i=t.call(this))._labelId="mat-optgroup-label-"+U++,i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(B);return e.\u0275fac=function(t){return new(t||e)(i.Y36(N,8))},e.\u0275dir=i.lG2({type:e,inputs:{label:"label"},features:[i.qOj]}),e}(),j=new i.OlP("MatOptgroup"),q=0,V=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,e),this.source=t,this.isUserInput=n},H=function(){var e=function(){function e(t,n,r,o){_classCallCheck(this,e),this._element=t,this._changeDetectorRef=n,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+q++,this.onSelectionChange=new i.vpe,this._stateChanges=new l.xQ}return _createClass(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=(0,u.Ig)(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){(e.keyCode===f.K5||e.keyCode===f.L_)&&!(0,f.Vb)(e)&&(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new V(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(void 0),i.Y36(Z))},e.\u0275dir=i.lG2({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),z=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){return _classCallCheck(this,n),t.call(this,e,i,r,o)}return n}(H);return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(N,8),i.Y36(j,8))},e.\u0275cmp=i.Xpm({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:_,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,d,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,p,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[s.O5,D,L],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function Y(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;an+i?Math.max(0,e-i+t):n}var K=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[M,s.ez,y,F]]}),e}()},2238:function(e,t,n){"use strict";n.d(t,{WI:function(){return A},uw:function(){return D},H8:function(){return B},ZT:function(){return L},xY:function(){return N},Is:function(){return Z},so:function(){return S},uh:function(){return F}});var i=n(625),r=n(7636),o=n(3018),a=n(2458),s=n(946),u=n(8583),l=n(9765),c=n(1439),h=n(5917),f=n(5435),d=n(5257),p=n(9761),v=n(521),_=n(7238),m=n(6461),g=n(9238);function y(e,t){}var b,k=function e(){_classCallCheck(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},C={dialogContainer:(0,_.X$)("dialogContainer",[(0,_.SB)("void, exit",(0,_.oB)({opacity:0,transform:"scale(0.7)"})),(0,_.SB)("enter",(0,_.oB)({transform:"none"})),(0,_.eR)("* => enter",(0,_.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,_.oB)({transform:"none",opacity:1}))),(0,_.eR)("* => void, * => exit",(0,_.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,_.oB)({opacity:0})))])},w=((b=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,s,u){var l;return _classCallCheck(this,n),(l=t.call(this))._elementRef=e,l._focusTrapFactory=i,l._changeDetectorRef=r,l._config=s,l._focusMonitor=u,l._animationStateChanged=new o.vpe,l._elementFocusedBeforeDialogWasOpened=null,l._closeInteractionType=null,l.attachDomPortal=function(e){return l._portalOutlet.hasAttached(),l._portalOutlet.attachDomPortal(e)},l._ariaLabelledBy=s.ariaLabelledBy||null,l._document=a,l}return _createClass(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=(0,v.ht)(),n=this._elementRef.nativeElement;(!t||t===this._document.body||t===n||n.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,v.ht)())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=(0,v.ht)();return e===t||e.contains(t)}}]),n}(r.en)).\u0275fac=function(e){return new(e||b)(o.Y36(o.SBq),o.Y36(g.qV),o.Y36(o.sBO),o.Y36(u.K0,8),o.Y36(k),o.Y36(g.tE))},b.\u0275dir=o.lG2({type:b,viewQuery:function(e,t){var n;1&e&&o.Gf(r.Pl,7),2&e&&o.iGM(n=o.CRH())&&(t._portalOutlet=n.first)},features:[o.qOj]}),b),x=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._state="enter",e}return _createClass(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(w);return t.\u0275fac=function(n){return(e||(e=o.n5z(t)))(n||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&o.WFA("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(o.Ikx("id",t._id),o.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),o.d8E("@dialogContainer",t._state))},features:[o.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&o.YNc(0,y,0,0,"ng-template",0)},directives:[r.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[C.dialogContainer]}}),t}(),E=0,S=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+E++;_classCallCheck(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new l.xQ,this._afterClosed=new l.xQ,this._beforeClosed=new l.xQ,this._state=0,n._id=r,n._animationStateChanged.pipe((0,f.h)(function(e){return"opened"===e.state}),(0,d.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe((0,f.h)(function(e){return"closed"===e.state}),(0,d.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe((0,f.h)(function(e){return e.keyCode===m.hY&&!i.disableClose&&!(0,m.Vb)(e)})).subscribe(function(e){e.preventDefault(),O(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():O(i,"mouse")})}return _createClass(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe((0,f.h)(function(e){return"closing"===e.state}),(0,d.q)(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function O(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var A=new o.OlP("MatDialogData"),T=new o.OlP("mat-dialog-default-options"),P=new o.OlP("mat-dialog-scroll-strategy"),I={provide:P,deps:[i.aV],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},R=function(){var e=function(){function e(t,n,i,r,o,a,s,u,h){var f=this;_classCallCheck(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=u,this._dialogDataToken=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.xQ,this._afterOpenedAtThisLevel=new l.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,c.P)(function(){return f.openDialogs.length?f._getAfterAllClosed():f._getAfterAllClosed().pipe((0,p.O)(void 0))}),this._scrollStrategy=a}return _createClass(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new k)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=o.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:k,useValue:t}]}),i=new r.C5(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var a=new this._dialogRefConstructor(n,t,i.id);if(e instanceof o.Rgc)t.attachTemplatePortal(new r.UE(e,null,{$implicit:i.data,dialogRef:a}));else{var s=this._createInjector(i,a,t),u=t.attachComponentPortal(new r.C5(e,i.viewContainerRef,s));a.componentInstance=u.instance}return a.updateSize(i.width,i.height).updatePosition(i.position),a}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!i||!i.get(s.Is,null,o.XFs.Optional))&&r.push({provide:s.Is,useValue:{value:e.direction,change:(0,h.of)()}}),o.zs3.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i!==e&&"SCRIPT"!==i.nodeName&&"STYLE"!==i.nodeName&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.aV),o.Y36(o.zs3),o.Y36(void 0),o.Y36(void 0),o.Y36(i.Xj),o.Y36(void 0),o.Y36(o.DyG),o.Y36(o.DyG),o.Y36(o.OlP))},e.\u0275dir=o.lG2({type:e}),e}(),D=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u){return _classCallCheck(this,n),t.call(this,e,i,o,s,u,a,S,x,A)}return n}(R);return e.\u0275fac=function(t){return new(t||e)(o.LFG(i.aV),o.LFG(o.zs3),o.LFG(u.Ye,8),o.LFG(T,8),o.LFG(P),o.LFG(e,12),o.LFG(i.Xj))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e}(),M=0,L=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.dialogRef=t,this._elementRef=n,this._dialog=i,this.type="button"}return _createClass(e,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=U(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}},{key:"_onButtonClick",value:function(e){O(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(S,8),o.Y36(o.SBq),o.Y36(D))},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&o.NdJ("click",function(e){return t._onButtonClick(e)}),2&e&&o.uIk("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[o.TTD]}),e}(),F=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+M++}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=U(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(S,8),o.Y36(o.SBq),o.Y36(D))},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&o.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),N=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),B=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function U(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}var Z=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({providers:[D,I],imports:[[i.U8,r.eL,a.BQ],a.BQ]}),e}()},8295:function(e,t,n){"use strict";n.d(t,{G_:function(){return K},o2:function(){return G},KE:function(){return W},Eo:function(){return B},lN:function(){return Q},hX:function(){return Z},R9:function(){return H}});var i=n(8553),r=n(8583),o=n(3018),a=n(2458),s=n(9490),u=n(9765),l=n(6682),c=n(2759),h=n(9761),f=n(6782),d=n(5257),p=n(7238),v=n(6237),_=n(946),m=n(521),g=["underline"],y=["connectionContainer"],b=["inputContainer"],k=["label"];function C(e,t){1&e&&(o.ynx(0),o.TgZ(1,"div",14),o._UZ(2,"div",15),o._UZ(3,"div",16),o._UZ(4,"div",17),o.qZA(),o.TgZ(5,"div",18),o._UZ(6,"div",15),o._UZ(7,"div",16),o._UZ(8,"div",17),o.qZA(),o.BQk())}function w(e,t){1&e&&(o.TgZ(0,"div",19),o.Hsn(1,1),o.qZA())}function x(e,t){if(1&e&&(o.ynx(0),o.Hsn(1,2),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.BQk()),2&e){var n=o.oxw(2);o.xp6(3),o.Oqu(n._control.placeholder)}}function E(e,t){1&e&&o.Hsn(0,3,["*ngSwitchCase","true"])}function S(e,t){1&e&&(o.TgZ(0,"span",23),o._uU(1," *"),o.qZA())}function O(e,t){if(1&e){var n=o.EpF();o.TgZ(0,"label",20,21),o.NdJ("cdkObserveContent",function(){return o.CHM(n),o.oxw().updateOutlineGap()}),o.YNc(2,x,4,1,"ng-container",12),o.YNc(3,E,1,0,"ng-content",12),o.YNc(4,S,2,0,"span",22),o.qZA()}if(2&e){var i=o.oxw();o.ekj("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),o.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),o.uIk("for",i._control.id)("aria-owns",i._control.id),o.xp6(2),o.Q6J("ngSwitchCase",!1),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function A(e,t){1&e&&(o.TgZ(0,"div",24),o.Hsn(1,4),o.qZA())}function T(e,t){if(1&e&&(o.TgZ(0,"div",25,26),o._UZ(2,"span",27),o.qZA()),2&e){var n=o.oxw();o.xp6(2),o.ekj("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function P(e,t){if(1&e&&(o.TgZ(0,"div"),o.Hsn(1,5),o.qZA()),2&e){var n=o.oxw();o.Q6J("@transitionMessages",n._subscriptAnimationState)}}function I(e,t){if(1&e&&(o.TgZ(0,"div",31),o._uU(1),o.qZA()),2&e){var n=o.oxw(2);o.Q6J("id",n._hintLabelId),o.xp6(1),o.Oqu(n.hintLabel)}}function R(e,t){if(1&e&&(o.TgZ(0,"div",28),o.YNc(1,I,2,2,"div",29),o.Hsn(2,6),o._UZ(3,"div",30),o.Hsn(4,7),o.qZA()),2&e){var n=o.oxw();o.Q6J("@transitionMessages",n._subscriptAnimationState),o.xp6(1),o.Q6J("ngIf",n.hintLabel)}}var D,M=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],L=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],F=new o.OlP("MatError"),N={transitionMessages:(0,p.X$)("transitionMessages",[(0,p.SB)("enter",(0,p.oB)({opacity:1,transform:"translateY(0%)"})),(0,p.eR)("void => enter",[(0,p.oB)({opacity:0,transform:"translateY(-5px)"}),(0,p.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},B=((D=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||D)},D.\u0275dir=o.lG2({type:D}),D),U=new o.OlP("MatHint"),Z=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["mat-label"]]}),e}(),j=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["mat-placeholder"]]}),e}(),q=new o.OlP("MatPrefix"),V=new o.OlP("MatSuffix"),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","matSuffix",""]],features:[o._Bn([{provide:V,useExisting:e}])]}),e}(),z=0,Y=(0,a.pj)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}(),"primary"),G=new o.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),K=new o.OlP("MatFormField"),W=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,l,c){var h;return _classCallCheck(this,n),(h=t.call(this,e))._changeDetectorRef=i,h._dir=o,h._defaults=a,h._platform=s,h._ngZone=l,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new u.xQ,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-"+z++,h._labelId="mat-form-field-label-"+z++,h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==c,h.appearance=a&&a.appearance?a.appearance:"legacy",h._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,h}return _createClass(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=(0,s.Ig)(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe((0,h.O)(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,f.R)(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe((0,f.R)(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),(0,l.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,f.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,c.R)(this._label.nativeElement,"transitionend").pipe((0,d.q)(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,_toConsumableArray(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,_toConsumableArray(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=e.children,l=this._getStartEnd(u[0].getBoundingClientRect()),c=0,h=0;h0?.75*c+10:0}for(var f=0;f-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(g);return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.SBq),r.Y36(i.t4),r.Y36(p.a5,10),r.Y36(p.F,8),r.Y36(p.sg,8),r.Y36(f.rD),r.Y36(v,10),r.Y36(c),r.Y36(r.R0b),r.Y36(d.G_,8))},e.\u0275dir=r.lG2({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&r.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(r.Ikx("disabled",t.disabled)("required",t.required),r.uIk("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),r.ekj("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[r._Bn([{provide:d.Eo,useExisting:e}]),r.qOj,r.TTD]}),e}(),b=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[f.rD],imports:[[h,d.lN,f.BQ],h,d.lN]}),e}()},7441:function(e,t,n){"use strict";n.d(t,{gD:function(){return z},LD:function(){return Y}});var i=n(625),r=n(8583),o=n(3018),a=n(2458),s=n(8295),u=n(9243),l=n(9238),c=n(9490),h=n(8345),f=n(6461),d=n(9765),p=n(1439),v=n(6682),_=n(9761),m=n(3190),g=n(5257),y=n(5435),b=n(8002),k=n(7519),C=n(6782),w=n(7238),x=n(946),E=n(665),S=["trigger"],O=["panel"];function A(e,t){if(1&e&&(o.TgZ(0,"span",8),o._uU(1),o.qZA()),2&e){var n=o.oxw();o.xp6(1),o.Oqu(n.placeholder)}}function T(e,t){if(1&e&&(o.TgZ(0,"span",12),o._uU(1),o.qZA()),2&e){var n=o.oxw(2);o.xp6(1),o.Oqu(n.triggerValue)}}function P(e,t){1&e&&o.Hsn(0,0,["*ngSwitchCase","true"])}function I(e,t){if(1&e&&(o.TgZ(0,"span",9),o.YNc(1,T,2,1,"span",10),o.YNc(2,P,1,0,"ng-content",11),o.qZA()),2&e){var n=o.oxw();o.Q6J("ngSwitch",!!n.customTrigger),o.xp6(2),o.Q6J("ngSwitchCase",!0)}}function R(e,t){if(1&e){var n=o.EpF();o.TgZ(0,"div",13),o.TgZ(1,"div",14,15),o.NdJ("@transformPanel.done",function(e){return o.CHM(n),o.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return o.CHM(n),o.oxw()._handleKeydown(e)}),o.Hsn(3,1),o.qZA(),o.qZA()}if(2&e){var i=o.oxw();o.Q6J("@transformPanelWrap",void 0),o.xp6(1),o.Gre("mat-select-panel ",i._getPanelTheme(),""),o.Udp("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),o.Q6J("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),o.uIk("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var D,M=[[["mat-select-trigger"]],"*"],L=["mat-select-trigger","*"],F={transformPanelWrap:(0,w.X$)("transformPanelWrap",[(0,w.eR)("* => void",(0,w.IO)("@transformPanel",[(0,w.pV)()],{optional:!0}))]),transformPanel:(0,w.X$)("transformPanel",[(0,w.SB)("void",(0,w.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,w.SB)("showing",(0,w.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,w.SB)("showing-multiple",(0,w.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,w.eR)("void => *",(0,w.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,w.eR)("* => void",(0,w.jt)("100ms 25ms linear",(0,w.oB)({opacity:0})))])},N=0,B=new o.OlP("mat-select-scroll-strategy"),U=new o.OlP("MAT_SELECT_CONFIG"),Z={provide:B,deps:[i.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},j=function e(t,n){_classCallCheck(this,e),this.source=t,this.value=n},q=(0,a.Kr)((0,a.sb)((0,a.Id)((0,a.FD)(function(){return function e(t,n,i,r,o){_classCallCheck(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o}}())))),V=new o.OlP("MatSelectTrigger"),H=((D=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,s,u,l,c,h,f,k,C,w,x){var E,S,O,A;return _classCallCheck(this,n),(E=t.call(this,s,a,l,c,f))._viewportRuler=e,E._changeDetectorRef=i,E._ngZone=r,E._dir=u,E._parentFormField=h,E._liveAnnouncer=w,E._defaultOptions=x,E._panelOpen=!1,E._compareWith=function(e,t){return e===t},E._uid="mat-select-"+N++,E._triggerAriaLabelledBy=null,E._destroy=new d.xQ,E._onChange=function(){},E._onTouched=function(){},E._valueId="mat-select-value-"+N++,E._panelDoneAnimatingStream=new d.xQ,E._overlayPanelClass=(null===(S=E._defaultOptions)||void 0===S?void 0:S.overlayPanelClass)||"",E._focused=!1,E.controlType="mat-select",E._required=!1,E._multiple=!1,E._disableOptionCentering=null!==(A=null===(O=E._defaultOptions)||void 0===O?void 0:O.disableOptionCentering)&&void 0!==A&&A,E.ariaLabel="",E.optionSelectionChanges=(0,p.P)(function(){var e=E.options;return e?e.changes.pipe((0,_.O)(e),(0,m.w)(function(){return v.T.apply(void 0,_toConsumableArray(e.map(function(e){return e.onSelectionChange})))})):E._ngZone.onStable.pipe((0,g.q)(1),(0,m.w)(function(){return E.optionSelectionChanges}))}),E.openedChange=new o.vpe,E._openedStream=E.openedChange.pipe((0,y.h)(function(e){return e}),(0,b.U)(function(){})),E._closedStream=E.openedChange.pipe((0,y.h)(function(e){return!e}),(0,b.U)(function(){})),E.selectionChange=new o.vpe,E.valueChange=new o.vpe,E.ngControl&&(E.ngControl.valueAccessor=_assertThisInitialized(E)),null!=(null==x?void 0:x.typeaheadDebounceInterval)&&(E._typeaheadDebounceInterval=x.typeaheadDebounceInterval),E._scrollStrategyFactory=C,E._scrollStrategy=E._scrollStrategyFactory(),E.tabIndex=parseInt(k)||0,E.id=E.id,E}return _createClass(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,c.Ig)(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=(0,c.Ig)(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=(0,c.Ig)(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=(0,c.su)(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,k.x)(),(0,C.R)(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,C.R)(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe((0,_.O)(null),(0,C.R)(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=t===f.JH||t===f.LH||t===f.oh||t===f.SV,i=t===f.K5||t===f.L_,r=this._keyManager;if(!r.isTyping()&&i&&!(0,f.Vb)(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=n===f.JH||n===f.LH,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||n!==f.K5&&n!==f.L_||!t.activeItem||(0,f.Vb)(e))if(!r&&this._multiple&&n===f.A&&e.ctrlKey){e.preventDefault();var o=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(o?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this._overlayDir.positionChange.pipe((0,g.q)(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new l.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,C.R)(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe((0,C.R)(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):!e._panelOpen&&!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=(0,v.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,C.R)(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),v.T.apply(void 0,_toConsumableArray(this.options.map(function(e){return e._stateChanges}))).pipe((0,C.R)(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(q)).\u0275fac=function(e){return new(e||D)(o.Y36(u.rL),o.Y36(o.sBO),o.Y36(o.R0b),o.Y36(a.rD),o.Y36(o.SBq),o.Y36(x.Is,8),o.Y36(E.F,8),o.Y36(E.sg,8),o.Y36(s.G_,8),o.Y36(E.a5,10),o.$8M("tabindex"),o.Y36(B),o.Y36(l.Kd),o.Y36(U,8))},D.\u0275dir=o.lG2({type:D,viewQuery:function(e,t){var n;1&e&&(o.Gf(S,5),o.Gf(O,5),o.Gf(i.pI,5)),2&e&&(o.iGM(n=o.CRH())&&(t.trigger=n.first),o.iGM(n=o.CRH())&&(t.panel=n.first),o.iGM(n=o.CRH())&&(t._overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[o.qOj,o.TTD]}),D),z=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return _createClass(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,C.R)(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"_canOpen",this).call(this)&&(_get(_getPrototypeOf(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(function(){e._triggerFontSize&&e._overlayDir.overlayRef&&e._overlayDir.overlayRef.overlayElement&&(e._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t=(0,a.CB)(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:(0,a.jH)((e+t)*n,n,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),_get(_getPrototypeOf(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new j(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this._overlayDir.offsetX=Math.round(e),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=(0,a.CB)(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(H);return t.\u0275fac=function(n){return(e||(e=o.n5z(t)))(n||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;(1&e&&(o.Suo(n,V,5),o.Suo(n,a.ey,5),o.Suo(n,a.K7,5)),2&e)&&(o.iGM(i=o.CRH())&&(t.customTrigger=i.first),o.iGM(i=o.CRH())&&(t.options=i),o.iGM(i=o.CRH())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&o.NdJ("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(o.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),o.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[o._Bn([{provide:s.Eo,useExisting:t},{provide:a.HF,useExisting:t}]),o.qOj],ngContentSelectors:L,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(o.F$t(M),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return t.toggle()}),o.TgZ(3,"div",2),o.YNc(4,A,2,1,"span",3),o.YNc(5,I,3,2,"span",4),o.qZA(),o.TgZ(6,"div",5),o._UZ(7,"div",6),o.qZA(),o.qZA(),o.YNc(8,R,4,14,"ng-template",7),o.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=o.MAs(1);o.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),o.xp6(3),o.Q6J("ngSwitch",t.empty),o.uIk("id",t._valueId),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngSwitchCase",!1),o.xp6(3),o.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[i.xu,r.RF,r.n9,i.pI,r.ED,r.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[F.transformPanelWrap,F.transformPanel]},changeDetection:0}),t}(),Y=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({providers:[Z],imports:[[r.ez,i.U8,a.Ng,a.BQ],u.ZD,s.lN,a.Ng,a.BQ]}),e}()},6237:function(e,t,n){"use strict";n.d(t,{Qb:function(){return Mt},PW:function(){return Bt}});var i=n(3018),r=n(9075),o=n(7238);function a(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function u(e){switch(e.length){case 0:return new o.ZN;case 1:return e[0];default:return new o.ZE(e)}}function l(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=[],u=[],l=-1,c=null;if(i.forEach(function(e){var n=e.offset,i=n==l,h=i&&c||{};Object.keys(e).forEach(function(n){var i=n,u=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,s),u){case o.k1:u=r[n];break;case o.l3:u=a[n];break;default:u=t.normalizeStyleValue(n,i,u,s)}h[i]=u}),i||u.push(h),c=h,l=n}),s.length){var h="\n - ";throw new Error("Unable to animate due to the following errors:".concat(h).concat(s.join(h)))}return u}function c(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&h(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&h(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&h(n,"destroy",e))})}}function h(e,t,n){var i=n.totalTime,r=f(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function f(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function d(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function p(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var v=function(e,t){return!1},_=function(e,t){return!1},m=function(e,t,n){return[]},g=s();(g||"undefined"!=typeof Element)&&(v=a()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},_=function(){if(g||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:_}(),m=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else B(e,n);return n}function Z(e,t,n){return n?t+":"+n+";":""}function j(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(oe(o,s)),"<"==a[0]&&("*"!=o||"*"!=s)&&t.push(oe(s,o))}(e,n,t)}):n.push(e),n}var ie=new Set(["true","1"]),re=new Set(["false","0"]);function oe(e,t){var n=ie.has(e)||re.has(e),i=ie.has(t)||re.has(t);return function(r,o){var a="*"==e||e==r,s="*"==t||t==o;return!a&&n&&"boolean"==typeof r&&(a=r?ie.has(e):re.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?ie.has(t):re.has(t)),a&&s}}var ae=new RegExp("s*:selfs*,?","g");function se(e,t,n){return new ue(e).build(t,n)}var ue=function(){function e(t){_classCallCheck(this,e),this._driver=t}return _createClass(e,[{key:"build",value:function(e,t){var n=new le(t);return this._resetContextStyleTimingState(n),ee(this,H(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,u=s.name;u.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,o.push(n.visitState(s,t))}),s.name=u}else if(1==e.type){var l=n.visitTransition(e,t);i+=l.queryCount,r+=l.depCount,a.push(l)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach(function(e){if(ce(e)){var t=e;Object.keys(t).forEach(function(e){Y(t[e]).forEach(function(e){o.hasOwnProperty(e)||r.add(e)})})}}),r.size){var a=K(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n=ee(this,H(e.animation),t);return{type:1,matchers:ne(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:he(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return ee(n,e,t)}),options:he(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=ee(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:he(e.options)}}},{key:"visitAnimate",value:function(e,t){var n=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return fe(N(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=fe(0,0,"");return r.dynamic=!0,r.strValue=i,r}return fe((n=n||N(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=n;var i,r=e.styles?e.styles:(0,o.oB)({});if(5==r.type)i=this.visitKeyframes(r,t);else{var a=e.styles,s=!1;if(!a){s=!0;var u={};n.easing&&(u.easing=n.easing),a=(0,o.oB)(u)}t.currentTime+=n.duration+n.delay;var l=this.visitStyle(a,t);l.isEmptyStep=s,i=l}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==o.l3?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(ce(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a=t.collectedStyles[t.currentQuerySelector],s=a[i],u=!0;s&&(o!=r&&o>=s.startTime&&r<=s.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(s.startTime,'ms" and "').concat(s.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),u=!1),o=s.startTime),u&&(a[i]={startTime:o,endTime:r}),t.options&&function(e,t,n){var i=t.params||{},r=Y(e);r.length&&r.forEach(function(e){i.hasOwnProperty(e)||n.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})}(e[i],t.options,t.errors)}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,u=0,l=e.steps.map(function(e){var i=n._makeStyleAst(e,t),l=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(ce(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(ce(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),s=s||c<0||c>1,a=a||c0&&r0?r==f?1:h*r:o[r],s=a*v;t.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:ee(this,H(e.animation),t),options:he(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:he(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:he(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(ae,"")),[e=e.replace(/@\*/g,R).replace(/@\w+/g,function(e){return R+"-"+e.substr(1)}).replace(/:animating/g,M),t]}(e.selector),2),o=r[0],a=r[1];t.currentQuerySelector=n.length?n+" "+o:o,d(t.collectedStyles,t.currentQuerySelector,{});var s=ee(this,H(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:he(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:N(e.timings,t.errors,!0);return{type:12,animation:ee(this,H(e.animation),t),timings:n,options:null}}}]),e}(),le=function e(t){_classCallCheck(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function ce(e){return!Array.isArray(e)&&"object"==typeof e}function he(e){return e?(e=B(e)).params&&(e.params=function(e){return e?B(e):null}(e.params)):e={},e}function fe(e,t,n){return{duration:e,delay:t,easing:n}}function de(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var pe=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),ve=new RegExp(":enter","g"),_e=new RegExp(":leave","g");function me(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new ge).buildKeyframes(e,t,n,i,r,o,a,s,u,l)}var ge=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new pe;var c=new be(e,t,u,i,r,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),ee(this,n,c);var h=c.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,c.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[de(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?L(n.duration):null,o=null!=n.delay?L(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),ee(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ye);var a=L(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return ee(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?L(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),ee(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return N(t.params?G(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?L(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ye);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(u=s.currentTimeline),ee(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;ee(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}]),e}(),ye={},be=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ye,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new ke(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=L(i.duration)),null!=i.delay&&(r.delay=L(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){(!t||!a.hasOwnProperty(e))&&(a[e]=G(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=ye,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Ce(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(ve,"."+this._enterClassName)).replace(_e,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,_toConsumableArray(s))}return!r&&0==a.length&&o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}]),e}(),ke=function(){function e(t,n,i,r){_classCallCheck(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||o.l3,t._currentKeyframe[e]=o.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var a=i&&i.params||{},s=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]=o.l3}):U(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(s).forEach(function(e){var t=G(s[e],a,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:o.l3),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(a,s){var u=U(a,!0);Object.keys(u).forEach(function(e){var i=u[e];i==o.k1?t.add(e):i==o.l3&&n.add(e)}),i||(u.offset=s/e.duration),r.push(u)});var a=t.size?K(t.values()):[],s=n.size?K(n.values()):[];if(i){var u=r[0],l=B(u);u.offset=0,l.offset=1,r=[u,l]}return de(this.element,r,a,s,this.duration,this.startTime,this.easing,!1)}}]),e}(),Ce=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(u=t.call(this,e,i,s.delay)).keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=l,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,u=U(e[0],!1);u.offset=0,o.push(u);var l=U(e[0],!1);l.offset=we(s),o.push(l);for(var c=e.length-1,h=1;h<=c;h++){var f=U(e[h],!1);f.offset=we((n+f.offset*i)/a),o.push(f)}i=a,n=0,r="",e=o}return de(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(ke);function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var xe=function e(){_classCallCheck(this,e)},Ee=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(e,t){return Q(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(Se[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(xe),Se=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Oe(e,t,n,i,r,o,a,s,u,l,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:f}}var Ae={},Te=function(){function e(t,n,i){_classCallCheck(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return _createClass(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,u,l){var c=[],h=this.ast.options&&this.ast.options.params||Ae,f=this.buildStyles(n,a&&a.params||Ae,c),p=s&&s.params||Ae,v=this.buildStyles(i,p,c),_=new Set,m=new Map,g=new Map,y="void"===i,b={params:Object.assign(Object.assign({},h),p)},k=l?[]:me(e,t,this.ast.animation,r,o,f,v,b,u,c),C=0;if(k.forEach(function(e){C=Math.max(e.duration+e.delay,C)}),c.length)return Oe(t,this._triggerName,n,i,y,f,v,[],[],m,g,C,c);k.forEach(function(e){var n=e.element,i=d(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=d(g,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&_.add(n)});var w=K(_.values());return Oe(t,this._triggerName,n,i,y,f,v,k,w,m,g,C)}}]),e}(),Pe=function(){function e(t,n,i){_classCallCheck(this,e),this.styles=t,this.defaultParams=n,this.normalizer=i}return _createClass(e,[{key:"buildStyles",value:function(e,t){var n=this,i={},r=B(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach(function(e){var a=o[e];a.length>1&&(a=G(a,r,t));var s=n.normalizer.normalizePropertyName(e,t);a=n.normalizer.normalizeStyleValue(e,s,a,t),i[s]=a})}}),i}}]),e}(),Ie=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.name=t,this.ast=n,this._normalizer=i,this.transitionFactories=[],this.states={},n.states.forEach(function(e){r.states[e.name]=new Pe(e.style,e.options&&e.options.params||{},i)}),Re(this.states,"true","1"),Re(this.states,"false","0"),n.transitions.forEach(function(e){r.transitionFactories.push(new Te(t,e,r.states))}),this.fallbackTransition=function(e,t,n){return new Te(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},t)}(t,this.states)}return _createClass(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Re(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var De=new pe,Me=function(){function e(t,n,i){_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var n=[],i=se(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=l(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],s=this._animations[e],l=new Map;if(s?(n=me(this._driver,t,s,T,P,{},{},r,De,a)).forEach(function(e){var t=d(l,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));l.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,o.l3)})});var c=u(n.map(function(e){var t=l.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=c,c.onDestroy(function(){return i.destroy(e)}),this.players.push(c),c}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=f(t,"","","");return c(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);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(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Le="ng-animate-queued",Fe="ng-animate-disabled",Ne=".ng-animate-disabled",Be=[],Ue={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ze={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},je="__ng_removed",qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var o=B(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),Ve="void",He=new qe(Ve),ze=function(){function e(t,n,i){_classCallCheck(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,$e(n,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=d(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var u=d(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||($e(e,I),$e(e,I+"-"+t),u[t]=He),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete u[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new Ge(this.id,t,e),s=this._engine.statesByElement.get(e);s||($e(e,I),$e(e,I+"-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],l=new qe(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[t]=l,u||(u=He),l.value===Ve||u.value!==l.value){var c=d(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=o.matchTransition(u.value,l.value,e,l.params),f=!1;if(!h){if(!r)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:l,player:a,isFallbackTransition:f}),f||($e(e,Le),a.onStart(function(){et(e,Le)})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),$e(e,Fe)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),et(e,Fe))}},{key:"removeNode",value:function(e,t,n,i){if(Ke(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t[je]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return Ke(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,R,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,M,!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return u(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e[je];if(n&&n.setForRemoval){if(e[je]=Ue,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,Ne)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Ne,!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;I--)this._namespaceList[I].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(O.push(t),n.collectedEnterElements.length){var a=o[je];if(a&&a.setForMove)return void t.destroy()}var u=!p||!n.driver.containsElement(p,o),f=E.get(o),v=m.get(o),_=n._buildInstruction(e,i,v,f,u);if(_.errors&&_.errors.length)A.push(_);else{if(u)return t.onStart(function(){return V(o,_.fromStyles)}),t.onDestroy(function(){return q(o,_.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return V(o,_.fromStyles)}),t.onDestroy(function(){return q(o,_.toStyles)}),void r.push(t);_.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(o,_.timelines),s.push({instruction:_,player:t,element:o}),_.queriedElements.forEach(function(e){return d(l,e,[]).push(t)}),_.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),_.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=h.get(t);i||h.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(A.length){var R=[];A.forEach(function(e){R.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return R.push("- ".concat(e,"\n"))})}),O.forEach(function(e){return e.destroy()}),this.reportError(R)}var D=new Map,L=new Map;s.forEach(function(e){var t=e.element;i.has(t)&&(L.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,D))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){d(D,t,[]).push(e),e.destroy()})});var F=y.filter(function(e){return it(e,c,h)}),N=new Map;Qe(N,this.driver,k,h,o.l3).forEach(function(e){it(e,c,h)&&F.push(e)});var B=new Map;_.forEach(function(e,t){Qe(B,n.driver,new Set(e),c,o.k1)}),F.forEach(function(e){var t=N.get(e),n=B.get(e);N.set(e,Object.assign(Object.assign({},t),n))});var U=[],Z=[],j={};s.forEach(function(e){var t=e.element,o=e.player,s=e.instruction;if(i.has(t)){if(f.has(t))return o.onDestroy(function(){return q(t,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var l=j;if(L.size>1){for(var c=t,h=[];c=c.parentNode;){var d=L.get(c);if(d){l=d;break}h.push(c)}h.forEach(function(e){return L.set(e,l)})}var p=n._buildAnimation(o.namespaceId,s,D,a,B,N);if(o.setRealPlayer(p),l===j)U.push(o);else{var v=n.playersByElement.get(l);v&&v.length&&(o.parentPlayer=u(v)),r.push(o)}}else V(t,s.fromStyles),o.onDestroy(function(){return q(t,s.toStyles)}),Z.push(o),f.has(t)&&r.push(o)}),Z.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=u(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var H=0;H0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new o.ZN(e.duration,e.delay)}}]),e}(),Ge=function(){function e(t,n,i){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new o.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return c(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){d(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Ke(e){return e&&1===e.nodeType}function We(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Qe(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(We(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);(!n||0==n.length)&&(i[je]=Ze,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return We(e,o[s++])}),a}function Je(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}var Xe="$$classes";function $e(e,t){if(e.classList)e.classList.add(t);else{var n=e[Xe];n||(n=e[Xe]={}),n[t]=!0}}function et(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Xe];n&&delete n[t]}}function tt(e,t,n){u(n).onDone(function(){return e.processLeaveNode(t)})}function nt(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function ot(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=st(t[0]),t.length>1&&(i=st(t[t.length-1]))):t&&(n=st(t)),n||i?new at(e,n,i):null}var at=function(){function e(t,n,i){_classCallCheck(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(V(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}]),e}();function st(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),vt(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){var n=mt(e,"").split(","),i=pt(n,t);i>=0&&(n.splice(i,1),_t(e,"",n.join(",")))}(this._element,this._name))}}]),e}();function ft(e,t,n){_t(e,"PlayState",n,dt(e,t))}function dt(e,t){var n=mt(e,"");return n.indexOf(",")>0?pt(n.split(","),t):pt([n],t)}function pt(e,t){for(var n=0;n=0)return n;return-1}function vt(e,t,n){n?e.removeEventListener(ct,t):e.addEventListener(ct,t)}function _t(e,t,n,i){var r=lt+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function mt(e,t){return e.style[lt+t]||""}var gt=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new ht(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:te(e.element,i))})}this.currentSnapshot=t}}]),e}(),yt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=E(i),r}return _createClass(n,[{key:"init",value:function(){var e=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(o.ZN),bt=function(){function e(){_classCallCheck(this,e),this._count=0}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return k(e)}},{key:"matchesElement",value:function(e,t){return C(e,t)}},{key:"containsElement",value:function(e,t){return w(e,t)}},{key:"query",value:function(e,t,n){return x(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return E(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof gt}),s={};X(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"==n||"easing"==n||(t[n]=e[n])})}),t}(t=$(e,t,s));if(0==n)return new yt(e,u);var l="gen_css_kf_"+this._count++,c=this.buildKeyframeElement(e,l,t);(function(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(e).appendChild(c);var h=ot(e,t),f=new gt(e,t,l,n,i,r,u,h);return f.onDestroy(function(){var e;(e=c).parentNode.removeChild(e)}),f}}]),e}(),kt=function(){function e(t,n,i,r){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:te(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Ct=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(wt().toString()),this._cssKeyframesDriver=new bt}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return k(e)}},{key:"matchesElement",value:function(e,t){return C(e,t)}},{key:"containsElement",value:function(e,t){return w(e,t)}},{key:"query",value:function(e,t,n){return x(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var u={},l=o.filter(function(e){return e instanceof kt});X(n,i)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var c=ot(e,t=$(e,t=t.map(function(e){return U(e,!1)}),u));return new kt(e,t,s,c)}}]),e}();function wt(){return a()&&Element.prototype.animate||{}}var xt=n(8583),Et=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this))._nextAnimationId=0,o._renderer=e.createRenderer(r.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}}),o}return _createClass(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?(0,o.vP)(e):e;return At(this._renderer,null,t,"register",[n]),new St(t,this._renderer)}}]),n}(o._j);return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.FYo),i.LFG(xt.K0))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),St=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return _createClass(n,[{key:"create",value:function(e,t){return new Ot(this._id,e,t||{},this._renderer)}}]),n}(o.LC),Ot=function(){function e(t,n,i,r){_classCallCheck(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&t==Tt?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),Rt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,i,r,o)).factory=e,a.namespaceId=i,a}return _createClass(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Tt?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i=this;if("@"==t.charAt(0)){var r,o=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),a=t.substr(1),s="";return"@"!=a.charAt(0)&&(a=(r=_slicedToArray(function(e){var t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(a),2))[0],s=r[1]),this.engine.listen(this.namespaceId,o,a,s,function(e){i.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(It),Dt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){return _classCallCheck(this,n),t.call(this,e.body,i,r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(rt);return e.\u0275fac=function(t){return new(t||e)(i.LFG(xt.K0),i.LFG(A),i.LFG(xe))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),Mt=new i.OlP("AnimationModuleType"),Lt=[{provide:o._j,useClass:Et},{provide:xe,useFactory:function(){return new Ee}},{provide:rt,useClass:Dt},{provide:i.FYo,useFactory:function(e,t,n){return new Pt(e,t,n)},deps:[r.se,rt,i.R0b]}],Ft=[{provide:A,useFactory:function(){return"function"==typeof wt()?new Ct:new bt}},{provide:Mt,useValue:"BrowserAnimations"}].concat(Lt),Nt=[{provide:A,useClass:O},{provide:Mt,useValue:"NoopAnimations"}].concat(Lt),Bt=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?Nt:Ft}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({providers:Ft,imports:[r.b2]}),e}()},9075:function(e,t,n){"use strict";n.d(t,{b2:function(){return N},H7:function(){return D},q6:function(){return L},se:function(){return w}});var i,r,o=n(8583),a=n(3018),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){e.parentNode&&e.parentNode.removeChild(e)}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getBaseHref",value:function(e){var t=(u=u||document.querySelector("base"))?u.getAttribute("href"):null;return null==t?null:function(e){(i=i||document.createElement("a")).setAttribute("href",e);var t=i.pathname;return"/"===t.charAt(0)?t:"/".concat(t)}(t)}},{key:"resetBaseElement",value:function(){u=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(e){return(0,o.Mx)(document.cookie,e)}}],[{key:"makeCurrent",value:function(){(0,o.HT)(new n)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).supportsDOMEvents=!0,e}return n}(o.w_)),u=null,l=new a.OlP("TRANSITION_ID"),c=[{provide:a.ip1,useFactory:function(e,t,n){return function(){n.get(a.CZH).donePromise.then(function(){for(var n=(0,o.q)(),i=t.querySelectorAll('style[ng-transition="'.concat(e,'"]')),r=0;r1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},a.dqk.getAllAngularTestabilities=function(){return e.getAllTestabilities()},a.dqk.getAllAngularRootElements=function(){return e.getAllRootElements()},a.dqk.frameworkStabilizers||(a.dqk.frameworkStabilizers=[]),a.dqk.frameworkStabilizers.push(function(e){var t=a.dqk.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?(0,o.q)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){(0,a.VLi)(new e)}}]),e}(),f=((r=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||r)},r.\u0275prov=a.Yz7({token:r,factory:r.\u0275fac}),r),d=new a.OlP("EventManagerPlugins"),p=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&P.hasOwnProperty(t)&&(t=P[t]))}return T[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),A.forEach(function(i){i!=n&&I[i](e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(v);return e.\u0275fac=function(t){return new(t||e)(a.LFG(o.K0))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),D=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,a.Yz7)({factory:function(){return(0,a.LFG)(M)},token:e,providedIn:"root"}),e}(),M=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i}return _createClass(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case a.q3G.NONE:return t;case a.q3G.HTML:return(0,a.qzn)(t,"HTML")?(0,a.z3N)(t):(0,a.EiD)(this._doc,String(t)).toString();case a.q3G.STYLE:return(0,a.qzn)(t,"Style")?(0,a.z3N)(t):t;case a.q3G.SCRIPT:if((0,a.qzn)(t,"Script"))return(0,a.z3N)(t);throw new Error("unsafe value used in a script context");case a.q3G.URL:return(0,a.yhl)(t),(0,a.qzn)(t,"URL")?(0,a.z3N)(t):(0,a.mCW)(String(t));case a.q3G.RESOURCE_URL:if((0,a.qzn)(t,"ResourceURL"))return(0,a.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return(0,a.JVY)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return(0,a.L6k)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return(0,a.eBb)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return(0,a.LAX)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return(0,a.pB0)(e)}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(a.LFG(o.K0))},e.\u0275prov=(0,a.Yz7)({factory:function(){return function(e){return new M(e.get(o.K0))}((0,a.LFG)(a.gxx))},token:e,providedIn:"root"}),e}(),L=(0,a.eFA)(a._c5,"browser",[{provide:a.Lbi,useValue:o.bD},{provide:a.g9A,useValue:function(){s.makeCurrent(),h.init()},multi:!0},{provide:o.K0,useFactory:function(){return(0,a.RDi)(document),document},deps:[]}]),F=[[],{provide:a.zSh,useValue:"root"},{provide:a.qLn,useFactory:function(){return new a.qLn},deps:[]},{provide:d,useClass:O,multi:!0,deps:[o.K0,a.R0b,a.Lbi]},{provide:d,useClass:R,multi:!0,deps:[o.K0]},[],{provide:w,useClass:w,deps:[p,m,a.AFp]},{provide:a.FYo,useExisting:w},{provide:_,useExisting:m},{provide:m,useClass:m,deps:[o.K0]},{provide:a.dDg,useClass:a.dDg,deps:[a.R0b]},{provide:p,useClass:p,deps:[d,a.R0b]},{provide:o.JF,useClass:f,deps:[]},[]],N=function(){var e=function(){function e(t){if(_classCallCheck(this,e),t)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.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:a.AFp,useValue:t.appId},{provide:l,useExisting:a.AFp},c]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(e,12))},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:F,imports:[o.ez,a.hGG]}),e}();"undefined"!=typeof window&&window},8741:function(e,t,n){"use strict";n.d(t,{gz:function(){return rt},F0:function(){return On},rH:function(){return Tn},yS:function(){return Pn},Bz:function(){return qn},lC:function(){return Rn}});var i=n(8583),r=n(3018),o=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),a=n(4402),s=n(5917),u=n(6215),l=n(739),c=n(7574),h=n(8071),f=n(1439),d=n(9193),p=n(2441),v=n(9765),_=n(7393);function m(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new g(e,t,n))}}var g=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new y(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),y=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return _createClass(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(_.L),b=n(5345);function k(e){return function(t){var n=new C(e),i=t.lift(n);return n.caught=i}}var C=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new w(e,this.selector,this.caught))}}]),e}(),w=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return _createClass(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var i=new b.IY(this);this.add(i);var r=(0,b.ft)(t,i);r!==i&&this.add(r)}}}]),n}(b.Ds),x=n(5435),E=n(7108);function S(e){return function(t){return 0===e?(0,d.c)():t.lift(new O(e))}}var O=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new E.W}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new A(e,this.total))}}]),e}(),A=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:R;return function(t){return t.lift(new P(e))}}var P=function(){function e(t){_classCallCheck(this,e),this.errorFactory=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new I(e,this.errorFactory))}}]),e}(),I=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(_.L);function R(){return new o}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new M(e))}}var M=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new L(e,this.defaultValue))}}]),e}(),L=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return _createClass(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(_.L),F=n(4487),N=n(5257);function B(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?(0,x.h)(function(t,n){return e(t,n,i)}):F.y,(0,N.q)(1),n?D(t):T(function(){return new o}))}}var U=n(5319),Z=function(){function e(t){_classCallCheck(this,e),this.callback=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new j(e,this.callback))}}]),e}(),j=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).add(new U.w(i)),r}return n}(_.L),q=n(8002),V=n(3190),H=n(9761),z=n(4612),Y=n(9773),G=n(3342),K=n(1307),W=n(3282),Q=function e(t,n){_classCallCheck(this,e),this.id=t,this.url=n},J=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Q),X=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Q),$=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).reason=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Q),ee=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).error=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Q),te=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ne=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ie=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s;return _classCallCheck(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(Q),re=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),oe=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ae=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),se=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),ue=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),le=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),ce=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),he=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fe=function(){function e(t,n,i){_classCallCheck(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),de="primary",pe=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function ve(e){return new pe(e)}var _e="ngNavigationCancelingError";function me(e){var t=Error("NavigationCancelingError: "+e);return t[_e]=!0,t}function ge(e,t,n){var i=n.path.split("/");if(i.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function we(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function xe(e){return(0,r.CqO)(e)?e:(0,r.QGY)(e)?(0,a.D)(Promise.resolve(e)):(0,s.of)(e)}var Ee={exact:function e(t,n,i){if(!Me(t.segments,n.segments)||!Pe(t.segments,n.segments,i)||t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children)if(!t.children[r]||!e(t.children[r],n.children[r],i))return!1;return!0},subset:Ae},Se={exact:function(e,t){return ye(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return be(e[n],t[n])})},ignored:function(){return!0}};function Oe(e,t,n){return Ee[n.paths](e.root,t.root,n.matrixParams)&&Se[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Ae(e,t,n){return Te(e,t,t.segments,n)}function Te(e,t,n,i){if(e.segments.length>n.length){var r=e.segments.slice(0,n.length);return!(!Me(r,n)||t.hasChildren()||!Pe(r,n,i))}if(e.segments.length===n.length){if(!Me(e.segments,n)||!Pe(e.segments,n,i))return!1;for(var o in t.children)if(!e.children[o]||!Ae(e.children[o],t.children[o],i))return!1;return!0}var a=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!(Me(e.segments,a)&&Pe(e.segments,a,i)&&e.children[de])&&Te(e.children[de],t,s,i)}function Pe(e,t,n){return t.every(function(t,i){return Se[n](e[i].parameters,t.parameters)})}var Ie=function(){function e(t,n,i){_classCallCheck(this,e),this.root=t,this.queryParams=n,this.fragment=i}return _createClass(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ve(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Ne.serialize(this)}}]),e}(),Re=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.segments=t,this.children=n,this.parent=null,we(n,function(e,t){return e.parent=i})}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Be(this)}}]),e}(),De=function(){function e(t,n){_classCallCheck(this,e),this.path=t,this.parameters=n}return _createClass(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=ve(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return ze(this)}}]),e}();function Me(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var Le=function e(){_classCallCheck(this,e)},Fe=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new Qe(e);return new Ie(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t;return"".concat("/".concat(Ue(e.root,!0)),function(e){var t=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(je(t),"=").concat(je(e))}).join("&"):"".concat(je(t),"=").concat(je(n))}).filter(function(e){return!!e});return t.length?"?".concat(t.join("&")):""}(e.queryParams)).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),Ne=new Fe;function Be(e){return e.segments.map(function(e){return ze(e)}).join("/")}function Ue(e,t){if(!e.hasChildren())return Be(e);if(t){var n=e.children[de]?Ue(e.children[de],!1):"",i=[];return we(e.children,function(e,t){t!==de&&i.push("".concat(t,":").concat(Ue(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return we(e.children,function(e,i){i===de&&(n=n.concat(t(e,i)))}),we(e.children,function(e,i){i!==de&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return n===de?[Ue(e.children[de],!1)]:["".concat(n,":").concat(Ue(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[de]?"".concat(Be(e),"/").concat(r[0]):"".concat(Be(e),"/(").concat(r.join("//"),")")}function Ze(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function je(e){return Ze(e).replace(/%3B/gi,";")}function qe(e){return Ze(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ve(e){return decodeURIComponent(e)}function He(e){return Ve(e.replace(/\+/g,"%20"))}function ze(e){return"".concat(qe(e.path)).concat(function(e){return Object.keys(e).map(function(t){return";".concat(qe(t),"=").concat(qe(e[t]))}).join("")}(e.parameters))}var Ye=/^[^\/()?;=#]+/;function Ge(e){var t=e.match(Ye);return t?t[0]:""}var Ke=/^[^=?&#]+/,We=/^[^?&#]+/,Qe=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Re([],{}):new Re([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[de]=new Re(e,t)),n}},{key:"parseSegment",value:function(){var e=Ge(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new De(Ve(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Ge(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Ge(this.remaining);i&&(n=i,this.capture(n))}e[Ve(t)]=Ve(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Ke);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(We);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=He(t),o=He(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Ge(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=de);var o=this.parseChildren();t[r]=1===Object.keys(o).length?o[de]:new Re([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Je=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Xe(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=Xe(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=$e(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return $e(e,this._root).map(function(e){return e.value})}}]),e}();function Xe(e,t){if(e===t.value)return t;var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=Xe(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function $e(e,t){if(e===t.value)return[t];var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=$e(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var et=function(){function e(t,n){_classCallCheck(this,e),this.value=t,this.children=n}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function tt(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var nt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).snapshot=i,ut(_assertThisInitialized(r),e),r}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Je);function it(e,t){var n=function(e,t){var n=new at([],{},{},"",{},de,t,null,e.root,-1,{});return new st("",new et(n,[]))}(e,t),i=new u.X([new De("",{})]),r=new u.X({}),o=new u.X({}),a=new u.X({}),s=new u.X(""),l=new rt(i,r,a,s,o,de,t,n.root);return l.snapshot=n.root,new nt(new et(l,[]),n)}var rt=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return _createClass(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,q.U)(function(e){return ve(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,q.U)(function(e){return ve(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var at=function(){function e(t,n,i,r,o,a,s,u,l,c,h){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return _createClass(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=ve(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ve(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),st=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,i)).url=e,ut(_assertThisInitialized(r),i),r}return _createClass(n,[{key:"toString",value:function(){return lt(this._root)}}]),n}(Je);function ut(e,t){t.value._routerState=e,t.children.forEach(function(t){return ut(e,t)})}function lt(e){var t=e.children.length>0?" { ".concat(e.children.map(lt).join(", ")," } "):"";return"".concat(e.value).concat(t)}function ct(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ye(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ye(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&pt(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(vt);if(r&&r!==Ce(i))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),yt=function e(t,n,i){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function bt(e,t,n){if(e||(e=new Re([],{})),0===e.segments.length&&e.hasChildren())return kt(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=e.segments[r],s=n[i];if(vt(s))break;var u="".concat(s),l=i0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!Et(u,l,a))return o;i+=2}else{if(!Et(u,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},jt):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||ge)(n,e,t);if(!r)return Object.assign({},jt);var o={};we(r.posParams,function(e,t){o[t]=e.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Vt(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Ht(e,t,n)&&Ut(n)!==de})}(e,n,i)){var o=new Re(t,function(e,t,n,i){var r={};r[de]=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,a=_createForOfIteratorHelper(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&Ut(s)!==de){var u=new Re([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,r[Ut(s)]=u}}}catch(l){a.e(l)}finally{a.f()}return r}(e,t,i,new Re(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Ht(e,t,n)})}(e,n,i)){var a=new Re(e.segments,function(e,t,n,i,r,o){var a,s={},u=_createForOfIteratorHelper(i);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(Ht(e,n,l)&&!r[Ut(l)]){var c=new Re([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[Ut(l)]=c}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new Re(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Ht(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function zt(e,t,n,i){return!!(Ut(e)===i||i!==de&&Ht(t,n,e))&&("**"===e.path||qt(t,e,n).matched)}function Yt(e,t,n){return 0===t.length&&!e.children[n]}var Gt=function e(t){_classCallCheck(this,e),this.segmentGroup=t||null},Kt=function e(t){_classCallCheck(this,e),this.urlTree=t};function Wt(e){return new c.y(function(t){return t.error(new Gt(e))})}function Qt(e){return new c.y(function(t){return t.error(new Kt(e))})}function Jt(e){return new c.y(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var Xt=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(r.h0i)}return _createClass(e,[{key:"apply",value:function(){var e=this,t=Vt(this.urlTree.root,[],[],this.config).segmentGroup,n=new Re(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,de).pipe((0,q.U)(function(t){return e.createUrlTree($t(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(k(function(t){if(t instanceof Kt)return e.allowRedirects=!1,e.match(t.urlTree);throw t instanceof Gt?e.noMatchError(t):t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,de).pipe((0,q.U)(function(n){return t.createUrlTree($t(n),e.queryParams,e.fragment)})).pipe(k(function(e){throw e instanceof Gt?t.noMatchError(e):e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new Re([],_defineProperty({},de,e)):e;return new Ie(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe((0,q.U)(function(e){return new Re([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],s=0,u=Object.keys(n.children);s=2;return function(i){return i.pipe(e?(0,x.h)(function(t,n){return e(t,n,i)}):F.y,S(1),n?D(t):T(function(){return new o}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,u){var l=this;return(0,a.D)(n).pipe((0,z.b)(function(o){return l.expandSegmentAgainstRoute(e,t,n,o,i,r,u).pipe(k(function(e){if(e instanceof Gt)return(0,s.of)(null);throw e}))}),B(function(e){return!!e}),k(function(e,n){if(e instanceof o||"EmptyError"===e.name){if(Yt(t,i,r))return(0,s.of)(new Re([],{}));throw new Gt(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return zt(i,t,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):Wt(t):Wt(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Qt(o):this.lineralizeSegments(n,o).pipe((0,Y.zg)(function(n){var o=new Re(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=qt(t,i,r),u=s.matched,l=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!u)return Wt(t);var f=this.applyRedirectCommands(l,i.redirectTo,h);return i.redirectTo.startsWith("/")?Qt(f):this.lineralizeSegments(i,f).pipe((0,Y.zg)(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,s.of)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe((0,q.U)(function(e){return n._loadedConfig=e,new Re(i,{})})):(0,s.of)(new Re(i,{}));var a=qt(t,n,i),u=a.matched,l=a.consumedSegments,c=a.lastChild;if(!u)return Wt(t);var h=i.slice(c);return this.getChildConfig(e,n,i).pipe((0,Y.zg)(function(e){var i=e.module,a=e.routes,u=Vt(t,l,h,a),c=u.segmentGroup,f=u.slicedSegments,d=new Re(c.segments,c.children);if(0===f.length&&d.hasChildren())return o.expandChildren(i,a,d).pipe((0,q.U)(function(e){return new Re(l,e)}));if(0===a.length&&0===f.length)return(0,s.of)(new Re(l,{}));var p=Ut(n)===r;return o.expandSegment(i,d,a,f,p?de:r,!0).pipe((0,q.U)(function(e){return new Re(l.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?(0,s.of)(new At(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?(0,s.of)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe((0,Y.zg)(function(n){return n?i.configLoader.load(e.injector,t).pipe((0,q.U)(function(e){return t._loadedConfig=e,e})):(r=t,new c.y(function(e){return e.error(me("Cannot load children because the guard of the route \"path: '".concat(r.path,"'\" returned false")))}));var r})):(0,s.of)(new At([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;if(!r||0===r.length)return(0,s.of)(!0);var o=r.map(function(i){var r,o,a=e.get(i);if((o=a)&&Tt(o.canLoad))r=a.canLoad(t,n);else{if(!Tt(a))throw new Error("Invalid CanLoad guard");r=a(t,n)}return xe(r)});return(0,s.of)(o).pipe(Rt(),(0,G.b)(function(e){if(Pt(e)){var t=me('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),(0,q.U)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,s.of)(n);if(i.numberOfChildren>1||!i.children[de])return Jt(e.redirectTo);i=i.children[de]}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new Ie(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return we(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return we(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new Re(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return e}}]),e}();function $t(e){for(var t={},n=0,i=Object.keys(e.children);n0||o.hasChildren())&&(t[r]=o)}return function(e){if(1===e.numberOfChildren&&e.children[de]){var t=e.children[de];return new Re(e.segments.concat(t.segments),t.children)}return e}(new Re(e.segments,t))}var en=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},tn=function e(t,n){_classCallCheck(this,e),this.component=t,this.route=n};function nn(e,t,n){var i=e._root;return on(i,t?t._root:null,n,[i.value])}function rn(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function on(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=tt(t);return e.children.forEach(function(e){(function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Me(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Me(e.url,t.url)||!ye(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ht(e,t)||!ye(e.queryParams,t.queryParams);case"paramsChange":default:return!ht(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new en(i)):(o.data=a.data,o._resolvedData=a._resolvedData),on(e,t,o.component?s?s.children:null:n,i,r),u&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new tn(s.outlet.component,a))}else a&&an(t,s,r),r.canActivateChecks.push(new en(i)),on(e,null,o.component?s?s.children:null:n,i,r)})(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),we(o,function(e,t){return an(e,n.getContext(t),r)}),r}function an(e,t,n){var i=tt(e),r=e.value;we(i,function(e,i){an(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new tn(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var sn=function e(){_classCallCheck(this,e)};function un(e){return new c.y(function(t){return t.error(e)})}var ln=function(){function e(t,n,i,r,o,a){_classCallCheck(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return _createClass(e,[{key:"recognize",value:function(){var e=Vt(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,de);if(null===t)return null;var n=new at([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},de,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new et(n,t),r=new st(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=ot(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i0?Ce(n).parameters:{};r=new at(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dn(e),Ut(e),e.component,e,hn(t),fn(t)+n.length,pn(e))}else{var u=qt(t,e,n);if(!u.matched)return null;o=u.consumedSegments,a=n.slice(u.lastChild),r=new at(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dn(e),Ut(e),e.component,e,hn(t),fn(t)+o.length,pn(e))}var l,c=(l=e).children?l.children:l.loadChildren?l._loadedConfig.routes:[],h=Vt(t,o,a,c.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),f=h.segmentGroup,d=h.slicedSegments;if(0===d.length&&f.hasChildren()){var p=this.processChildren(c,f);return null===p?null:[new et(r,p)]}if(0===c.length&&0===d.length)return[new et(r,[])];var v=Ut(e)===i,_=this.processSegment(c,f,d,v?de:i);return null===_?null:[new et(r,_)]}}]),e}();function cn(e){var t,n=[],i=new Set,r=_createForOfIteratorHelper(e);try{var o=function(){var e,r=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(r))return n.push(r),"continue";var o=n.find(function(e){return r.value.routeConfig===e.value.routeConfig});void 0!==o?((e=o.children).push.apply(e,_toConsumableArray(r.children)),i.add(o)):n.push(r)};for(r.s();!(t=r.n()).done;)o()}catch(c){r.e(c)}finally{r.f()}var a,s=_createForOfIteratorHelper(i);try{for(s.s();!(a=s.n()).done;){var u=a.value,l=cn(u.children);n.push(new et(u.value,l))}}catch(c){s.e(c)}finally{s.f()}return n.filter(function(e){return!i.has(e)})}function hn(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function fn(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function dn(e){return e.data||{}}function pn(e){return e.resolve||{}}function vn(e){return(0,V.w)(function(t){var n=e(t);return n?(0,a.D)(n).pipe((0,q.U)(function(){return t})):(0,s.of)(t)})}var _n=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),mn=new r.OlP("ROUTES"),gn=function(){function e(t,n,i,r){_classCallCheck(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return _createClass(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe((0,q.U)(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var o=i.create(e);return new At(ke(o.injector.get(mn,void 0,r.XFs.Self|r.XFs.Optional)).map(Bt),o)}),k(function(e){throw t._loader$=void 0,e}));return t._loader$=new p.c(i,function(){return new v.xQ}).pipe((0,K.x)()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?(0,a.D)(this.loader.load(e)):xe(e()).pipe((0,Y.zg)(function(e){return e instanceof r.YKP?(0,s.of)(e):(0,a.D)(t.compiler.compileModuleAsync(e))}))}}]),e}(),yn=function e(){_classCallCheck(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new bn,this.attachRef=null},bn=function(){function e(){_classCallCheck(this,e),this.contexts=new Map}return _createClass(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new yn,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),kn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Cn(e){throw e}function wn(e,t,n){return t.parse("/")}function xn(e,t){return(0,s.of)(null)}var En={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Sn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},On=function(){var e=function(){function e(t,n,i,o,a,s,l,c){var h=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=o,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new v.xQ,this.errorHandler=Cn,this.malformedUriErrorHandler=wn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:xn,afterPreactivation:xn},this.urlHandlingStrategy=new kn,this.routeReuseStrategy=new _n,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=a.get(r.h0i),this.console=a.get(r.c2e);var f=a.get(r.R0b);this.isNgZoneEnabled=f instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Ie(new Re([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new gn(s,l,function(e){return h.triggerEvent(new ae(e))},function(e){return h.triggerEvent(new se(e))}),this.routerState=it(this.currentUrlTree,this.rootComponentType),this.transitions=new u.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(e,[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe((0,x.h)(function(e){return 0!==e.id}),(0,q.U)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),(0,V.w)(function(e){var i=!1,r=!1;return(0,s.of)(e).pipe((0,G.b)(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,V.w)(function(e){var i=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString(),o=("reload"===t.onSameUrlNavigation||i)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl);if(An(e.source)&&(t.browserUrlTree=e.rawUrl),o)return(0,s.of)(e).pipe((0,V.w)(function(e){var i=t.transitions.getValue();return n.next(new J(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?d.E:Promise.resolve(e)}),function(e,t,n,i){return(0,V.w)(function(r){return function(e,t,n,i,r){return new Xt(e,t,n,i,r).apply()}(e,t,n,r.extractedUrl,i).pipe((0,q.U)(function(e){return Object.assign(Object.assign({},r),{urlAfterRedirects:e})}))})}(t.ngModule.injector,t.configLoader,t.urlSerializer,t.config),(0,G.b)(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,o,a){return(0,Y.zg)(function(i){return function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var u=new ln(e,t,n,i,o,a).recognize();return null===u?un(new sn):(0,s.of)(u)}catch(r){return un(r)}}(e,n,i.urlAfterRedirects,(u=i.urlAfterRedirects,t.serializeUrl(u)),o,a).pipe((0,q.U)(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var u})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),(0,G.b)(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,e),t.browserUrlTree=e.urlAfterRedirects);var i=new te(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(i&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var a=e.id,u=e.extractedUrl,l=e.source,c=e.restoredState,h=e.extras,f=new J(a,t.serializeUrl(u),l,c);n.next(f);var p=it(u,t.rootComponentType).snapshot;return(0,s.of)(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:u,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),d.E}),vn(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),(0,G.b)(function(e){var n=new ne(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,q.U)(function(e){return Object.assign(Object.assign({},e),{guards:nn(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return(0,Y.zg)(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,u=o.canActivateChecks,l=o.canDeactivateChecks;return 0===l.length&&0===u.length?(0,s.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return(0,a.D)(e).pipe((0,Y.zg)(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,s.of)(!0);var a=o.map(function(o){var a,s=rn(o,t,r);if(function(e){return e&&Tt(e.canDeactivate)}(s))a=xe(s.canDeactivate(e,t,n,i));else{if(!Tt(s))throw new Error("Invalid CanDeactivate guard");a=xe(s(e,t,n,i))}return a.pipe(B())});return(0,s.of)(a).pipe(Rt())}(e.component,e.route,n,t,i)}),B(function(e){return!0!==e},!0))}(l,i,r,e).pipe((0,Y.zg)(function(n){return n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,i){return(0,a.D)(t).pipe((0,z.b)(function(t){return(0,h.z)(function(e,t){return null!==e&&t&&t(new ue(e)),(0,s.of)(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new ce(e)),(0,s.of)(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return(0,f.P)(function(){var r=t.guards.map(function(r){var o,a=rn(r,t.node,n);if(function(e){return e&&Tt(e.canActivateChild)}(a))o=xe(a.canActivateChild(i,e));else{if(!Tt(a))throw new Error("Invalid CanActivateChild guard");o=xe(a(i,e))}return o.pipe(B())});return(0,s.of)(r).pipe(Rt())})});return(0,s.of)(r).pipe(Rt())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return(0,s.of)(!0);var r=i.map(function(i){return(0,f.P)(function(){var r,o=rn(i,t,n);if(function(e){return e&&Tt(e.canActivate)}(o))r=xe(o.canActivate(t,e));else{if(!Tt(o))throw new Error("Invalid CanActivate guard");r=xe(o(t,e))}return r.pipe(B())})});return(0,s.of)(r).pipe(Rt())}(e,t.route,n))}),B(function(e){return!0!==e},!0))}(i,u,e,t):(0,s.of)(n)}),(0,q.U)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),(0,G.b)(function(e){if(Pt(e.guardsResult)){var n=me('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new ie(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),(0,x.h)(function(e){return!!e.guardsResult||(t.restoreHistory(e),t.cancelNavigationTransition(e,""),!1)}),vn(function(e){if(e.guards.canActivateChecks.length)return(0,s.of)(e).pipe((0,G.b)(function(e){var n=new re(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,V.w)(function(e){var n=!1;return(0,s.of)(e).pipe(function(e,t){return(0,Y.zg)(function(n){var i=n.targetSnapshot,r=n.guards.canActivateChecks;if(!r.length)return(0,s.of)(n);var o=0;return(0,a.D)(r).pipe((0,z.b)(function(n){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return(0,s.of)({});var o={};return(0,a.D)(r).pipe((0,Y.zg)(function(r){return function(e,t,n,i){var r=rn(e,t,i);return xe(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe((0,G.b)(function(e){o[r]=e}))}),S(1),(0,Y.zg)(function(){return Object.keys(o).length===r.length?(0,s.of)(o):d.E}))}(e._resolve,e,t,i).pipe((0,q.U)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),ot(e,n).resolve),null}))}(n.route,i,e,t)}),(0,G.b)(function(){return o++}),S(1),(0,Y.zg)(function(e){return o===r.length?(0,s.of)(n):d.E}))})}(t.paramsInheritanceStrategy,t.ngModule.injector),(0,G.b)({next:function(){return n=!0},complete:function(){n||(t.restoreHistory(e),t.cancelNavigationTransition(e,"At least one route resolver didn't emit any value."))}}))}),(0,G.b)(function(e){var n=new oe(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),vn(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),(0,q.U)(function(e){var n=function(e,t,n){var i=ft(e,t._root,n?n._root:void 0);return new nt(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),(0,G.b)(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,e),t.browserUrlTree=e.urlAfterRedirects)}),function(e,t,n){return(0,q.U)(function(i){return new St(t,i.targetRouterState,i.currentRouterState,n).activate(e),i})}(t.rootContexts,t.routeReuseStrategy,function(e){return t.triggerEvent(e)}),(0,G.b)({next:function(){i=!0},complete:function(){i=!0}}),function(e){return function(t){return t.lift(new Z(e))}}(function(){if(!i&&!r){var n="Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId);"replace"===t.canceledNavigationResolution?(t.restoreHistory(e),t.cancelNavigationTransition(e,n)):t.cancelNavigationTransition(e,n)}t.currentNavigation=null}),k(function(i){if(r=!0,function(e){return e&&e[_e]}(i)){var o=Pt(i.url);o||(t.navigated=!0,t.restoreHistory(e,!0));var a=new $(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(a),o?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree),r={skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||An(e.source)};t.scheduleNavigation(n,"imperative",null,r,{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.restoreHistory(e,!0);var s=new ee(e.id,t.serializeUrl(e.extractedUrl),i);n.next(s);try{e.resolve(t.errorHandler(i))}catch(a){e.reject(a)}}return d.E}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return t.transitionId!==e.transitionId||!n||!("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source)}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){Lt(e),this.config=e.map(Bt),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,s=n||this.routerState.root,u=a?this.currentUrlTree.fragment:r,l=null;switch(o){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(e,t,n,i,r){if(0===n.length)return _t(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new gt(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return we(i.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(_toConsumableArray(e),[{outlets:o}])}if(i.segmentPath)return[].concat(_toConsumableArray(e),[i.segmentPath])}return"string"!=typeof i?[].concat(_toConsumableArray(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(_toConsumableArray(e),[i])},[]);return new gt(n,t,i)}(n);if(o.toRoot())return _t(t.root,new Re([],{}),t,i,r);var a=function(e,t,n){if(e.isAbsolute)return new yt(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new yt(i,i===t.root,0)}var r=pt(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new yt(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?kt(a.segmentGroup,a.index,o.commands):bt(a.segmentGroup,a.index,o.commands);return _t(a.segmentGroup,s,t,i,r)}(s,this.currentUrlTree,e,l,null!=u?u:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Pt(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(t=this.currentNavigation)||void 0===t?void 0:t.finalUrl)||0===r?this.currentUrlTree===(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,t){var n=new $(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(n),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":t}:{navigationId:e}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.DyG),r.LFG(Le),r.LFG(bn),r.LFG(i.Ye),r.LFG(r.zs3),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(void 0))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}();function An(e){return"imperative"!==e}var Tn=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new v.xQ,null==i&&r.setAttribute(o.nativeElement,"tabindex","0")}return _createClass(e,[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(On),r.Y36(rt),r.$8M("tabindex"),r.Y36(r.Qsj),r.Y36(r.SBq))},e.\u0275dir=r.lG2({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&r.NdJ("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),e}(),Pn=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.onChanges=new v.xQ,this.subscription=t.events.subscribe(function(e){e instanceof X&&r.updateTargetUrlAndHref()})}return _createClass(e,[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,i,r){if(0!==e||t||n||i||r||"string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(On),r.Y36(rt),r.Y36(i.S$))},e.\u0275dir=r.lG2({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&r.NdJ("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(r.Ikx("href",t.href,r.LSH),r.uIk("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),e}();function In(e){return""===e||!!e}var Rn=function(){var e=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.name=o||de,t.onChildOutletCreated(this.name,this)}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new Dn(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(bn),r.Y36(r.s_b),r.Y36(r._Vd),r.$8M("name"),r.Y36(r.sBO))},e.\u0275dir=r.lG2({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),Dn=function(){function e(t,n,i){_classCallCheck(this,e),this.route=t,this.childContexts=n,this.parent=i}return _createClass(e,[{key:"get",value:function(e,t){return e===rt?this.route:e===bn?this.childContexts:this.parent.get(e,t)}}]),e}(),Mn=function e(){_classCallCheck(this,e)},Ln=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return(0,s.of)(null)}}]),e}(),Fn=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new gn(n,i,function(e){return t.triggerEvent(new ae(e))},function(e){return t.triggerEvent(new se(e))})}return _createClass(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe((0,x.h)(function(e){return e instanceof X}),(0,z.b)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(r.h0i);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var s=o._loadedConfig;i.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(e,o)):o.children&&i.push(this.processRoutes(e,o.children))}}catch(u){r.e(u)}finally{r.f()}return(0,a.D)(i).pipe((0,W.J)(),(0,q.U)(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?(0,s.of)(t._loadedConfig):n.loader.load(e.injector,t)).pipe((0,Y.zg)(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(On),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(Mn))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Nn=function(){var e=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof J?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof X&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof fe&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new fe(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(On),r.LFG(i.EM),r.LFG(void 0))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Bn=new r.OlP("ROUTER_CONFIGURATION"),Un=new r.OlP("ROUTER_FORROOT_GUARD"),Zn=[i.Ye,{provide:Le,useClass:Fe},{provide:On,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new On(null,e,t,n,i,r,o,ke(a));return u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,c),s.enableTracing&&c.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),c},deps:[Le,bn,i.Ye,r.zs3,r.v3s,r.Sil,mn,Bn,[function(){return function e(){_classCallCheck(this,e)}}(),new r.FiY],[function(){return function e(){_classCallCheck(this,e)}}(),new r.FiY]]},bn,{provide:rt,useFactory:function(e){return e.routerState.root},deps:[On]},{provide:r.v3s,useClass:r.EAV},Fn,Ln,function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return t().pipe(k(function(){return(0,s.of)(null)}))}}]),e}(),{provide:Bn,useValue:{enableTracing:!1}}];function jn(){return new r.PXZ("Router",On)}var qn=function(){var e=function(){function e(t,n){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Zn,Yn(t),{provide:Un,useFactory:zn,deps:[[On,new r.FiY,new r.tp0]]},{provide:Bn,useValue:n||{}},{provide:i.S$,useFactory:Hn,deps:[i.lw,[new r.tBr(i.mr),new r.FiY],Bn]},{provide:Nn,useFactory:Vn,deps:[On,i.EM,Bn]},{provide:Mn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ln},{provide:r.PXZ,multi:!0,useFactory:jn},[Gn,{provide:r.ip1,multi:!0,useFactory:Kn,deps:[Gn]},{provide:Qn,useFactory:Wn,deps:[Gn]},{provide:r.tb,multi:!0,useExisting:Qn}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Yn(t)]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(Un,8),r.LFG(On,8))},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}();function Vn(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Nn(e,t,n)}function Hn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new i.Do(e,t):new i.b0(e,t)}function zn(e){return"guarded"}function Yn(e){return[{provide:r.deG,multi:!0,useValue:e},{provide:mn,multi:!0,useValue:e}]}var Gn=function(){var e=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new v.xQ}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(i.V_,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(On),r=e.injector.get(Bn);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?(0,s.of)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Bn),n=this.injector.get(Fn),i=this.injector.get(Nn),o=this.injector.get(On),a=this.injector.get(r.z2F);e===a.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&o.initialNavigation(),n.setUpPreloading(),i.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.zs3))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}();function Kn(e){return e.appInitializer.bind(e)}function Wn(e){return e.bootstrapListener.bind(e)}var Qn=new r.OlP("Router Initializer")},6215:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var i=n(9765),r=n(7971),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._value=e,i}return _createClass(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=_get(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.N;return this._value}},{key:"next",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=e)}}]),n}(i.xQ)},1593:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var i=n(9193),r=n(5917),o=n(7574),a=function(){function e(t,n,i){_classCallCheck(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,r.of)(this.value);case"E":return e=this.error,new o.y(function(t){return t.error(e)});case"C":return(0,i.c)()}var e;throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();a.completeNotification=new a("C"),a.undefinedValueNotification=new a("N",void 0)},7574:function(e,t,n){"use strict";n.d(t,{y:function(){return c}});var i,r=n(7393),o=n(9181),a=n(6490),s=n(6554),u=n(4487),l=n(2494),c=((i=function(e){function t(e){_classCallCheck(this,t),this._isScalar=!1,e&&(this._subscribe=e)}return _createClass(t,[{key:"lift",value:function(e){var n=new t;return n.source=this,n.operator=e,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,s=function(e,t,n){if(e){if(e instanceof r.L)return e;if(e[o.b])return e[o.b]()}return e||t||n?new r.L(e,t,n):new r.L(a.c)}(e,t,n);if(s.add(i?i.call(s,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),l.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){l.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,i=t.destination,o=t.isStopped;if(n||o)return!1;e=i&&i instanceof r.L?i:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=h(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:e,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n4&&void 0!==arguments[4]?arguments[4]:new s(e,n,i);if(!r.closed)return t instanceof l.y?t.subscribe(r):(0,u.s)(t)(r)}var h=n(6693),f={};function d(){for(var e=arguments.length,t=new Array(e),n=0;n1?Array.prototype.slice.call(arguments):e)},i,n)})}function u(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(t,n),o=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,h=e.length;c1&&"number"==typeof t[t.length-1]&&(s=t.pop())):"number"==typeof l&&(s=t.pop()),null===u&&1===t.length&&t[0]instanceof i.y?t[0]:(0,o.J)(s)((0,a.n)(t,u))}},5917:function(e,t,n){"use strict";n.d(t,{of:function(){return a}});var i=n(4869),r=n(6693),o=n(4087);function a(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:i.P;return function(e){return function(t){return t.lift(new o(e))}}(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=-1;return(0,u.k)(t)?r=Number(t)<1?1:Number(t):(0,l.K)(t)&&(n=t),(0,l.K)(n)||(n=i.P),new s.y(function(t){var i=(0,u.k)(e)?e:+e-n.now();return n.schedule(c,i,{index:0,period:r,subscriber:t})})}(e,t)})}},4612:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var i=n(9773);function r(e,t){return(0,i.zg)(e,t,1)}},4395:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var i=n(7393),r=n(3637);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P;return function(n){return n.lift(new a(e,t))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.dueTime=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return _createClass(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(u,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(i.L);function u(e){e.debouncedNext()}},7519:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var i=n(7393);function r(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.compare=t,this.keySelector=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.compare,this.keySelector))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return _createClass(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(n){return this.destination.error(n)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(i.L)},5435:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var i=n(7393);function r(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).predicate=i,o.thisArg=r,o.count=0,o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(i.L)},8002:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});var i=n(7393);function r(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||_assertThisInitialized(o),o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(i.L)},3282:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var i=n(9773),r=n(4487);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,i.zg)(r.y,e)}},9773:function(e,t,n){"use strict";n.d(t,{zg:function(){return a}});var i=n(8002),r=n(4402),o=n(5345);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(o){return o.pipe(a(function(n,o){return(0,r.D)(e(n,o)).pipe((0,i.U)(function(e,i){return t(n,e,o,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new s(e,n))})}var s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.project,this.concurrent))}}]),e}(),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(o.Ds)},1307:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var i=n(7393);function r(){return function(e){return e.lift(new o(e))}}var o=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new a(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).connectable=i,r}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}else this.connection=null}}]),n}(i.L)},3653:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var i=n(7393);function r(e){return function(t){return t.lift(new o(e))}}var o=function(){function e(t){_classCallCheck(this,e),this.total=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.total))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(i.L)},9761:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var i=n(8071),r=n(4869);function o(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"schedule",value:function(e){return this}}]),n}(n(5319).w))},6102:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var i,r=((i=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}()).now=function(){return Date.now()},i),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.now;return _classCallCheck(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==_assertThisInitialized(i)?n.delegate.now():o()})).actions=[],i.active=!1,i.scheduled=void 0,i}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(r)},4581:function(e,t,n){"use strict";n.d(t,{E:function(){return c}});var i=1,r=Promise.resolve(),o={};function a(e){return e in o&&(delete o[e],!0)}var s=function(e){var t=i++;return o[t]=!0,r.then(function(){return a(t)&&e()}),t},u=function(e){a(e)},l=n(6465),c=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=s(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(u(t),e.scheduled=void 0)}}]),n}(l.o))},3637:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var i=n(6465),r=new(n(6102).v)(i.o)},377:function(e,t,n){"use strict";n.d(t,{hZ:function(){return i}});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},7971:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},4449:function(e,t,n){"use strict";function i(e){setTimeout(function(){throw e},0)}n.d(t,{z:function(){return i}})},4487:function(e,t,n){"use strict";function i(e){return e}n.d(t,{y:function(){return i}})},9796:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var i=Array.isArray||function(e){return e&&"number"==typeof e.length}},9489:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},9105:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,{m:function(){return i}})},6561:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var i=n(9796);function r(e){return!(0,i.k)(e)&&e-parseFloat(e)+1>=0}},1555:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,{K:function(){return i}})},5639:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var i=n(7574);function r(e){return!!e&&(e instanceof i.y||"function"==typeof e.lift&&"function"==typeof e.subscribe)}},4072:function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,{t:function(){return i}})},4869:function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,{K:function(){return i}})},7444:function(e,t,n){"use strict";n.d(t,{s:function(){return c}});var i=n(5015),r=n(4449),o=n(377),a=n(6554),s=n(9489),u=n(4072),l=n(1555),c=function(e){if(e&&"function"==typeof e[a.L])return function(e){return function(t){var n=e[a.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}}(e);if((0,s.z)(e))return(0,i.V)(e);if((0,u.t)(e))return function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,r.z),t}}(e);if(e&&"function"==typeof e[o.hZ])return function(e){return function(t){for(var n=e[o.hZ]();;){var i=void 0;try{i=n.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}}(e);var t="You provided ".concat((0,l.K)(e)?"an invalid object":"'".concat(e,"'")," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.");throw new TypeError(t)}},5015:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var i=function(e){return function(t){for(var n=0,i=e.length;n0?(this.dialogRef.afterClosed().subscribe(function(t){e.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.P;return(!(0,a.k)(e)||e<0)&&(e=0),(!t||"function"!=typeof t.schedule)&&(t=o.P),new r.y(function(n){return n.add(t.schedule(s,e,{subscriber:n,counter:0,period:e})),n})}(1e3).subscribe(function(t){var n=e.data.autoclose-1e3*(t+1);e.setExtra(n),n<=0&&e.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(function(t){e.closed()}),this.subscription=this.data.checkClose.subscribe(function(t){window.setTimeout(function(){e.doClose()})}))}},{key:"initYesNo",value:function(){}},{key:"ngOnInit",value:function(){this.data.type===m.yesno?this.initYesNo():this.initAlert()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.Y36(i.so),u.Y36(i.WI))},e.\u0275cmp=u.Xpm({type:e,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"]],template:function(e,t){1&e&&(u._UZ(0,"h4",0),u.ALo(1,"safeHtml"),u._UZ(2,"mat-dialog-content",1),u.ALo(3,"safeHtml"),u.TgZ(4,"mat-dialog-actions"),u.YNc(5,d,4,1,"button",2),u.YNc(6,p,3,0,"button",2),u.YNc(7,v,3,0,"button",2),u.qZA()),2&e&&(u.Q6J("innerHtml",u.lcZ(1,5,t.data.title),u.oJD),u.xp6(2),u.Q6J("innerHTML",u.lcZ(3,7,t.data.body),u.oJD),u.xp6(3),u.Q6J("ngIf",0===t.data.type),u.xp6(1),u.Q6J("ngIf",1===t.data.type),u.xp6(1),u.Q6J("ngIf",1===t.data.type))},directives:[i.uh,i.xY,i.H8,l.O5,c.lW,i.ZT,h.P],pipes:[f.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}(),y=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialog=t}return _createClass(e,[{key:"alert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=window.innerWidth<800?"80%":"40%";return this.dialog.open(g,{width:r,data:{title:e,body:t,autoclose:n,checkClose:i,type:m.alert},disableClose:!0})}},{key:"yesno",value:function(e,t){var n=window.innerWidth<800?"80%":"40%";return this.dialog.open(g,{width:n,data:{title:e,body:t,type:m.yesno},disableClose:!0}).componentInstance.yesno}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.LFG(i.uw))},e.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac}),e}()},2870:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var i,r=n(7574),o=((i=function(){function e(t){_classCallCheck(this,e),this.api=t,this.delay=t.config.launcher_wait_time}return _createClass(e,[{key:"launchURL",value:function(t){var n=this,i="init",o=function(e){var t=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof e?t=e:403===e.status&&(t=django.gettext("Your session has expired. Please, login again")),window.setTimeout(function(){n.showAlert(django.gettext("Error"),t,5e3),403===e.status&&window.setTimeout(function(){n.api.logout()},5e3)})};if("udsa://"===t.substring(0,7)){var a=t.split("//")[1].split("/"),s=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new r.y(function(e){var t=0,r=function i(){s.componentInstance&&n.api.status(a[0],a[1]).subscribe(function(r){"ready"===r.status?(t?Date.now()-t>5*n.delay&&(s.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),s.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(t=Date.now(),s.componentInstance.data.title=django.gettext("Service ready"),s.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(i,n.delay)):"accessed"===r.status?(s.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),e.next(!0),e.complete()):"running"===r.status?window.setTimeout(i,n.delay):(e.next(!0),e.complete(),o())},function(t){e.next(!0),e.complete(),o(t)})};window.setTimeout(function e(){if("init"===i)window.setTimeout(e,n.delay);else{if("error"===i||"stop"===i)return;window.setTimeout(r)}})}));this.api.enabler(a[0],a[1]).subscribe(function(e){if(e.error)i="error",n.api.gui.alert(django.gettext("Error launching service"),e.error);else{if(e.url.startsWith("/"))return s.componentInstance&&s.componentInstance.close(),i="stop",void n.launchURL(e.url);"https:"===window.location.protocol&&(e.url=e.url.replace("uds://","udss://")),i="enabled",n.doLaunch(e.url)}},function(e){n.api.logout()})}else var u=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new r.y(function(i){window.setTimeout(function r(){u.componentInstance&&n.api.transportUrl(t).subscribe(function(t){if(t.url)if(i.next(!0),i.complete(),-1!==t.url.indexOf("o_s_w=")){var a=/(.*)&o_s_w=.*/.exec(t.url);window.location.href=a[1]}else{var s="global";if(-1!==t.url.indexOf("o_n_w=")){var u=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(t.url);u&&(s=u[2],t.url=u[1])}e.transportsWindow[s]&&e.transportsWindow[s].close(),e.transportsWindow[s]=window.open(t.url,"uds_trans_"+s)}else t.running?window.setTimeout(r,n.delay):(i.next(!0),i.complete(),o(t.error))},function(e){i.next(!0),i.complete(),o(e)})})}))}},{key:"showAlert",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return this.api.gui.alert(django.gettext("Launching service"),'

'+e+'

'+t+"

",n,i)}},{key:"doLaunch",value:function(e){var t=document.getElementById("hiddenUdsLauncherIFrame");if(null===t){var n=document.createElement("div");n.id="testID",n.innerHTML='',document.body.appendChild(n),t=document.getElementById("hiddenUdsLauncherIFrame")}t.contentWindow.location.href=e}}]),e}()).transportsWindow={},i)},4902:function _(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G:function(){return LoginComponent}});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3018),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(665),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8295),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9983),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8583),_angular_material_button__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1095),_angular_material_select__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7441),_angular_material_core__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2458),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template(e,t){if(1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&e){var n=t.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",n.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",n.name," ")}}function LoginComponent_div_22_Template(e,t){if(1&e){var n=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(1,"mat-form-field",17),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(2,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(e){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(n),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(e.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()}if(2&e){var i=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",i.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",i.auths)}}var LoginComponent=function(){var LoginComponent=function(){function LoginComponent(e){_classCallCheck(this,LoginComponent),this.api=e,this.title="UDS Enterprise",this.title=e.config.site_name,this.auths=e.config.authenticators.slice(0),this.auths.sort(function(e,t){return e.priority-t.priority})}return _createClass(LoginComponent,[{key:"ngOnInit",value:function(){document.getElementById("loginform").action=this.api.config.urls.login;var e=document.getElementById("token");e.name=this.api.csrfField,e.value=this.api.csrfToken,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}},{key:"changeAuth",value:function changeAuth(auth){this.auth.value=auth;var doCustomAuth=function doCustomAuth(data){eval(data)},_iterator22=_createForOfIteratorHelper(this.auths),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var Ke=_step22.value;Ke.id===auth&&Ke.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml(Ke.id).subscribe(function(e){return doCustomAuth(e)}))}}catch(err){_iterator22.e(err)}finally{_iterator22.f()}}},{key:"launch",value:function(){return document.getElementById("loginform").submit(),!0}}]),LoginComponent}();return LoginComponent.\u0275fac=function(e){return new(e||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return t.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(2,"input",2),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(10,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(11,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(12,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(17,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(18,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(24,"button",15),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",t.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",t.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",t.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,t.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_button__WEBPACK_IMPORTED_MODULE_7__.lW,_angular_material_select__WEBPACK_IMPORTED_MODULE_8__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_9__.ey],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent}()},7918:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var i,r=n(3018),o=((i=function(){function e(t){_classCallCheck(this,e),this.el=t}return _createClass(e,[{key:"ngOnInit",value:function(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}]),e}()).\u0275fac=function(e){return new(e||i)(r.Y36(r.SBq))},i.\u0275dir=r.lG2({type:i,selectors:[["uds-translate"]]}),i)},3513:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var i=function(){function e(t){_classCallCheck(this,e),this.user=t.user,this.role=t.role,this.admin=t.admin}return _createClass(e,[{key:"isStaff",get:function(){return"staff"===this.role||"admin"===this.role}},{key:"isAdmin",get:function(){return"admin"===this.role}},{key:"isLogged",get:function(){return null!=this.user}},{key:"isRestricted",get:function(){return"restricted"===this.role}}]),e}()},7540:function _(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return UDSApiService}});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3018),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1841),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3183),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8741),UDSApiService=function(){var UDSApiService=function(){function UDSApiService(e,t,n){_classCallCheck(this,UDSApiService),this.http=e,this.gui=t,this.router=n,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}return _createClass(UDSApiService,[{key:"config",get:function(){return udsData.config}},{key:"csrfField",get:function(){return csrf.csrfField}},{key:"csrfToken",get:function(){return csrf.csrfToken}},{key:"staffInfo",get:function(){return udsData.info}},{key:"plugins",get:function(){return udsData.plugins}},{key:"actors",get:function(){return udsData.actors}},{key:"errors",get:function(){return udsData.errors}},{key:"enabler",value:function(e,t){var n=this.config.urls.enabler.replace("param1",e).replace("param2",t);return this.http.get(n)}},{key:"status",value:function(e,t){var n=this.config.urls.status.replace("param1",e).replace("param2",t);return this.http.get(n)}},{key:"action",value:function(e,t){var n=this.config.urls.action.replace("param1",t).replace("param2",e);return this.http.get(n)}},{key:"transportUrl",value:function(e){return this.http.get(e)}},{key:"galleryImageURL",value:function(e){return this.config.urls.galleryImage.replace("param1",e)}},{key:"transportIconURL",value:function(e){return this.config.urls.transportIcon.replace("param1",e)}},{key:"staticURL",value:function(e){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+e:"/static/"+e}},{key:"getServicesInformation",value:function(){return this.http.get(this.config.urls.services)}},{key:"getErrorInformation",value:function(e){return this.http.get(this.config.urls.error.replace("9999",e))}},{key:"executeCustomJSForServiceLaunch",value:function executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}},{key:"gotoAdmin",value:function(){window.location.href=this.config.urls.admin}},{key:"logout",value:function(){window.location.href=this.config.urls.logout}},{key:"launchURL",value:function(e){this.plugin.launchURL(e)}},{key:"getAuthCustomHtml",value:function(e){return this.http.get(this.config.urls.customAuth+e,{responseType:"text"})}}]),UDSApiService}();return UDSApiService.\u0275fac=function(e){return new(e||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService}()},2340:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i={production:!0}},6445:function(e,t,n){"use strict";var i,r,o=n(9075),a=n(3018),s=n(9490),u=n(9765),l=n(739),c=n(8071),h=n(7574),f=n(5257),d=n(3653),p=n(4395),v=n(8002),_=n(9761),m=n(6782),g=n(521),y=((i=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||i)},i.\u0275mod=a.oAB({type:i}),i.\u0275inj=a.cJS({}),i),b=new Set,k=function(){var e=function(){function e(t){_classCallCheck(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):C}return _createClass(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!b.has(e))try{r||((r=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(r)),r.sheet&&(r.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),b.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(g.t4))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(g.t4))},token:e,providedIn:"root"}),e}();function C(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var w=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new u.xQ}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return x((0,s.Eq)(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=x((0,s.Eq)(e)).map(function(e){return t._registerQuery(e).observable}),i=(0,l.aj)(n);return(i=(0,c.z)(i.pipe((0,f.q)(1)),i.pipe((0,d.T)(1),(0,p.b)(0)))).pipe((0,v.U)(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new h.y(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe((0,_.O)(n),(0,v.U)(function(t){var n=t.matches;return{query:e,matches:n}}),(0,m.R)(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(k),a.LFG(a.R0b))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(k),a.LFG(a.R0b))},token:e,providedIn:"root"}),e}();function x(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var E=n(1841),S=n(8741),O=n(7540),A=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"canActivate",value:function(e,t){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(O.n))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),T=n(4902),P=n(7918),I=n(8583);function R(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw().download(e.url)}),a.TgZ(1,"div",7),a._UZ(2,"img",8),a.qZA(),a.TgZ(3,"div",9),a._uU(4),a.qZA(),a.TgZ(5,"div",10),a._uU(6),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.Tol(r.css(i)),a.xp6(2),a.Q6J("src",r.img(i.name),a.LSH),a.xp6(2),a.lnq(" ",r.legacy(i)," ",i.name," (",i.url.split(".").pop(),") "),a.xp6(2),a.hij(" ",i.description," ")}}var D=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"download",value:function(e){window.location.href=e}},{key:"img",value:function(e){return this.api.staticURL("modern/img/"+e+".png")}},{key:"css",value:function(e){var t=["plugin"];return e.legacy&&t.push("legacy"),t}},{key:"legacy",value:function(e){return e.legacy?"Legacy":""}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a.TgZ(3,"h1"),a.TgZ(4,"uds-translate"),a._uU(5,"UDS Client"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.YNc(7,R,7,7,"div",4),a.qZA(),a.TgZ(8,"div",5),a.TgZ(9,"ul"),a.TgZ(10,"li"),a.TgZ(11,"uds-translate"),a._uU(12,"Download UDS client for your platform"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(7),a.Q6J("ngForOf",t.api.plugins))},directives:[P.P,I.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem}"]}),e}(),M=n(6498);function L(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw().download(e.url)}),a.TgZ(1,"div",7),a._UZ(2,"img",8),a.qZA(),a._UZ(3,"div",9),a.ALo(4,"safeHtml"),a._UZ(5,"div",10),a.ALo(6,"safeHtml"),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.Tol(r.css(i.name)),a.xp6(2),a.Q6J("src",r.img(i.name),a.LSH),a.xp6(1),a.Q6J("innerHTML",a.lcZ(4,5,i.name),a.oJD),a.xp6(2),a.Q6J("innerHTML",a.lcZ(6,7,i.description),a.oJD)}}var F=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.actors=[];var t=[];this.api.actors.forEach(function(n){n.name.includes("legacy")?t.push(n):e.actors.push(n)}),t.forEach(function(t){e.actors.push(t)})}},{key:"download",value:function(e){window.location.href=e}},{key:"img",value:function(e){var t=e.split(".").pop().toLowerCase(),n="Linux";return"exe"===t?n="Windows":"pkg"===t&&(n="MacOS"),this.api.staticURL("modern/img/"+n+".png")}},{key:"css",value:function(e){var t=["actor"];return e.toLowerCase().includes("legacy")&&t.push("legacy"),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a.TgZ(3,"h1"),a.TgZ(4,"uds-translate"),a._uU(5,"Downloads"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.YNc(7,L,7,9,"div",4),a.qZA(),a.TgZ(8,"div",5),a.TgZ(9,"ul"),a.TgZ(10,"li"),a.TgZ(11,"uds-translate"),a._uU(12,"Always download the UDS actor matching your platform"),a.qZA(),a.qZA(),a.TgZ(13,"li"),a.TgZ(14,"uds-translate"),a._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(7),a.Q6J("ngForOf",t.actors))},directives:[P.P,I.sg],pipes:[M.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:bold;overflow:hidden}"]}),e}(),N=n(5319),B=n(8345),U=0,Z=new a.OlP("CdkAccordion"),j=function(){var e=function(){function e(){_classCallCheck(this,e),this._stateChanges=new u.xQ,this._openCloseAllActions=new u.xQ,this.id="cdk-accordion-"+U++,this._multi=!1}return _createClass(e,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=(0,s.Ig)(e)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[a._Bn([{provide:Z,useExisting:e}]),a.TTD]}),e}(),q=0,V=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=N.w.EMPTY,this.closed=new a.vpe,this.opened=new a.vpe,this.destroyed=new a.vpe,this.expandedChange=new a.vpe,this.id="cdk-accordion-child-"+q++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen(function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return _createClass(e,[{key:"expanded",get:function(){return this._expanded},set:function(e){e=(0,s.Ig)(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,s.Ig)(e)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe(function(t){e.disabled||(e.expanded=t)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Z,12),a.Y36(a.sBO),a.Y36(B.A8))},e.\u0275dir=a.lG2({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[a._Bn([{provide:Z,useValue:void 0}])]}),e}(),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),z=n(7636),Y=n(2458),G=n(9238),K=n(7519),W=n(5435),Q=n(6461),J=n(6237),X=n(9193),$=n(6682),ee=n(7238),te=["body"];function ne(e,t){}var ie=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],re=["mat-expansion-panel-header","*","mat-action-row"];function oe(e,t){if(1&e&&a._UZ(0,"span",2),2&e){var n=a.oxw();a.Q6J("@indicatorRotate",n._getExpandedState())}}var ae=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],se=["mat-panel-title","mat-panel-description","*"],ue=new a.OlP("MAT_ACCORDION"),le="225ms cubic-bezier(0.4,0.0,0.2,1)",ce={indicatorRotate:(0,ee.X$)("indicatorRotate",[(0,ee.SB)("collapsed, void",(0,ee.oB)({transform:"rotate(0deg)"})),(0,ee.SB)("expanded",(0,ee.oB)({transform:"rotate(180deg)"})),(0,ee.eR)("expanded <=> collapsed, void => collapsed",(0,ee.jt)(le))]),bodyExpansion:(0,ee.X$)("bodyExpansion",[(0,ee.SB)("collapsed, void",(0,ee.oB)({height:"0px",visibility:"hidden"})),(0,ee.SB)("expanded",(0,ee.oB)({height:"*",visibility:"visible"})),(0,ee.eR)("expanded <=> collapsed, void => collapsed",(0,ee.jt)(le))])},he=function(){var e=function e(t){_classCallCheck(this,e),this._template=t};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.Rgc))},e.\u0275dir=a.lG2({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e}(),fe=0,de=new a.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),pe=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,l,c){var h;return _classCallCheck(this,n),(h=t.call(this,e,i,r))._viewContainerRef=o,h._animationMode=l,h._hideToggle=!1,h.afterExpand=new a.vpe,h.afterCollapse=new a.vpe,h._inputChanges=new u.xQ,h._headerId="mat-expansion-panel-header-"+fe++,h._bodyAnimationDone=new u.xQ,h.accordion=e,h._document=s,h._bodyAnimationDone.pipe((0,K.x)(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){"void"!==e.fromState&&("expanded"===e.toState?h.afterExpand.emit():"collapsed"===e.toState&&h.afterCollapse.emit())}),c&&(h.hideToggle=c.hideToggle),h}return _createClass(n,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=(0,s.Ig)(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe((0,_.O)(null),(0,W.h)(function(){return e.expanded&&!e._portal}),(0,f.q)(1)).subscribe(function(){e._portal=new z.UE(e._lazyContent._template,e._viewContainerRef)})}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}]),n}(V);return e.\u0275fac=function(t){return new(t||e)(a.Y36(ue,12),a.Y36(a.sBO),a.Y36(B.A8),a.Y36(a.s_b),a.Y36(I.K0),a.Y36(J.Qb,8),a.Y36(de,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,he,5),2&e)&&(a.iGM(i=a.CRH())&&(t._lazyContent=i.first))},viewQuery:function(e,t){var n;(1&e&&a.Gf(te,5),2&e)&&(a.iGM(n=a.CRH())&&(t._body=n.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&a.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[a._Bn([{provide:ue,useValue:void 0}]),a.qOj,a.TTD],ngContentSelectors:re,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(a.F$t(ie),a.Hsn(0),a.TgZ(1,"div",0,1),a.NdJ("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),a.TgZ(3,"div",2),a.Hsn(4,1),a.YNc(5,ne,0,0,"ng-template",3),a.qZA(),a.Hsn(6,2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),a.uIk("aria-labelledby",t._headerId),a.xp6(4),a.Q6J("cdkPortalOutlet",t._portal))},directives:[z.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ce.bodyExpansion]},changeDetection:0}),e}(),ve=(0,Y.sb)(function e(){_classCallCheck(this,e)}),_e=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u){var l;_classCallCheck(this,n),(l=t.call(this)).panel=e,l._element=i,l._focusMonitor=r,l._changeDetectorRef=o,l._animationMode=s,l._parentChangeSubscription=N.w.EMPTY;var c=e.accordion?e.accordion._stateChanges.pipe((0,W.h)(function(e){return!(!e.hideToggle&&!e.togglePosition)})):X.E;return l.tabIndex=parseInt(u||"")||0,l._parentChangeSubscription=(0,$.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,W.h)(function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)}))).subscribe(function(){return l._changeDetectorRef.markForCheck()}),e.closed.pipe((0,W.h)(function(){return e._containsFocus()})).subscribe(function(){return r.focusVia(i,"program")}),a&&(l.expandedHeight=a.expandedHeight,l.collapsedHeight=a.collapsedHeight),l}return _createClass(n,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(e){switch(e.keyCode){case Q.L_:case Q.K5:(0,Q.Vb)(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._element).subscribe(function(t){t&&e.panel.accordion&&e.panel.accordion._handleHeaderFocus(e)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),n}(ve);return e.\u0275fac=function(t){return new(t||e)(a.Y36(pe,1),a.Y36(a.SBq),a.Y36(G.tE),a.Y36(a.sBO),a.Y36(de,8),a.Y36(J.Qb,8),a.$8M("tabindex"))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&a.NdJ("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(a.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),a.Udp("height",t._getHeaderHeight()),a.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[a.qOj],ngContentSelectors:se,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(a.F$t(ae),a.TgZ(0,"span",0),a.Hsn(1),a.Hsn(2,1),a.Hsn(3,2),a.qZA(),a.YNc(4,oe,1,1,"span",1)),2&e&&(a.xp6(4),a.Q6J("ngIf",t._showToggle()))},directives:[I.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[ce.indicatorRotate]},changeDetection:0}),e}(),me=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),e}(),ge=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e}(),ye=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._ownHeaders=new a.n_E,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return _createClass(n,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=(0,s.Ig)(e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe((0,_.O)(this._headers)).subscribe(function(t){e._ownHeaders.reset(t.filter(function(t){return t.panel.accordion===e})),e._ownHeaders.notifyOnChanges()}),this._keyManager=new G.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(e){this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),n}(j);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,_e,5),2&e)&&(a.iGM(i=a.CRH())&&(t._headers=i))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[a._Bn([{provide:ue,useExisting:t}]),a.qOj]}),t}(),be=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[I.ez,Y.BQ,H,z.eL]]}),e}();function ke(e,t){if(1&e&&(a.TgZ(0,"li"),a.TgZ(1,"uds-translate"),a._uU(2,"Detected proxy ip"),a.qZA(),a._uU(3),a.qZA()),2&e){var n=a.oxw(2);a.xp6(3),a.hij(": ",n.api.staffInfo.ip_proxy,"")}}function Ce(e,t){if(1&e&&(a.TgZ(0,"li"),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n)}}function we(e,t){if(1&e&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n)}}function xe(e,t){if(1&e&&(a.TgZ(0,"div",1),a.TgZ(1,"h1"),a.TgZ(2,"uds-translate"),a._uU(3,"Information"),a.qZA(),a.qZA(),a.TgZ(4,"mat-accordion"),a.TgZ(5,"mat-expansion-panel"),a.TgZ(6,"mat-expansion-panel-header",2),a.TgZ(7,"mat-panel-title"),a._uU(8," IPs "),a.qZA(),a.TgZ(9,"mat-panel-description"),a.TgZ(10,"uds-translate"),a._uU(11,"Client IP"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(12,"ol"),a.TgZ(13,"li"),a.TgZ(14,"uds-translate"),a._uU(15,"Client IP"),a.qZA(),a._uU(16),a.qZA(),a.YNc(17,ke,4,1,"li",3),a.qZA(),a.qZA(),a.TgZ(18,"mat-expansion-panel"),a.TgZ(19,"mat-expansion-panel-header",2),a.TgZ(20,"mat-panel-title"),a.TgZ(21,"uds-translate"),a._uU(22,"Transports"),a.qZA(),a.qZA(),a.TgZ(23,"mat-panel-description"),a.TgZ(24,"uds-translate"),a._uU(25,"UDS transports for this client"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(26,"ol"),a.YNc(27,Ce,2,1,"li",4),a.qZA(),a.qZA(),a.TgZ(28,"mat-expansion-panel"),a.TgZ(29,"mat-expansion-panel-header",2),a.TgZ(30,"mat-panel-title"),a.TgZ(31,"uds-translate"),a._uU(32,"Networks"),a.qZA(),a.qZA(),a.TgZ(33,"mat-panel-description"),a.TgZ(34,"uds-translate"),a._uU(35,"UDS networks for this IP"),a.qZA(),a.qZA(),a.qZA(),a.YNc(36,we,2,1,"span",4),a._uU(37,"\xa0 "),a.qZA(),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.xp6(16),a.hij(": ",n.api.staffInfo.ip,""),a.xp6(1),a.Q6J("ngIf",n.api.staffInfo.ip_proxy!==n.api.staffInfo.ip),a.xp6(10),a.Q6J("ngForOf",n.api.staffInfo.transports),a.xp6(9),a.Q6J("ngForOf",n.api.staffInfo.networks)}}var Ee=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(e,t){1&e&&a.YNc(0,xe,38,4,"div",0),2&e&&a.Q6J("ngIf",t.api.staffInfo)},directives:[I.O5,P.P,ye,pe,_e,ge,me,I.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4}"]}),e}(),Se=n(2759),Oe=n(3342),Ae=n(8295),Te=n(9983),Pe=["input"],Ie=function(){var e=function(){function e(){_classCallCheck(this,e),this.updateEvent=new a.vpe}return _createClass(e,[{key:"ngAfterViewInit",value:function(){var e=this;(0,Se.R)(this.input.nativeElement,"keyup").pipe((0,W.h)(Boolean),(0,p.b)(600),(0,K.x)(),(0,Oe.b)(function(){return e.update(e.input.nativeElement.value)})).subscribe()}},{key:"update",value:function(e){this.updateEvent.emit(e.toLowerCase())}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-filter"]],viewQuery:function(e,t){var n;(1&e&&a.Gf(Pe,7),2&e)&&(a.iGM(n=a.CRH())&&(t.input=n.first))},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"mat-form-field",1),a.TgZ(2,"mat-label"),a.TgZ(3,"uds-translate"),a._uU(4,"Filter"),a.qZA(),a.qZA(),a._UZ(5,"input",2,3),a.TgZ(7,"i",4),a._uU(8,"search"),a.qZA(),a.qZA(),a.qZA())},directives:[Ae.KE,Ae.hX,P.P,Te.Nt,Ae.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),e}(),Re=n(5917),De=n(4581),Me=n(3190),Le=n(3637),Fe=n(7393),Ne=n(1593);function Be(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Le.P,n=function(e){return e instanceof Date&&!isNaN(+e)}(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new Ue(n,t))}}var Ue=function(){function e(t,n){_classCallCheck(this,e),this.delay=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Ze(e,this.delay,this.scheduler))}}]),e}(),Ze=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return _createClass(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new je(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(Ne.P.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Ne.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(Fe.L),je=function e(t,n){_classCallCheck(this,e),this.time=t,this.notification=n},qe=n(625),Ve=n(9243),He=n(946),ze=["mat-menu-item",""];function Ye(e,t){1&e&&(a.O4$(),a.TgZ(0,"svg",2),a._UZ(1,"polygon",3),a.qZA())}var Ge=["*"];function Ke(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",0),a.NdJ("keydown",function(e){return a.CHM(n),a.oxw()._handleKeydown(e)})("click",function(){return a.CHM(n),a.oxw().closed.emit("click")})("@transformMenu.start",function(e){return a.CHM(n),a.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return a.CHM(n),a.oxw()._onAnimationDone(e)}),a.TgZ(1,"div",1),a.Hsn(2),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),a.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var We={transformMenu:(0,ee.X$)("transformMenu",[(0,ee.SB)("void",(0,ee.oB)({opacity:0,transform:"scale(0.8)"})),(0,ee.eR)("void => enter",(0,ee.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.oB)({opacity:1,transform:"scale(1)"}))),(0,ee.eR)("* => void",(0,ee.jt)("100ms 25ms linear",(0,ee.oB)({opacity:0})))]),fadeInItems:(0,ee.X$)("fadeInItems",[(0,ee.SB)("showing",(0,ee.oB)({opacity:1})),(0,ee.eR)("void => *",[(0,ee.oB)({opacity:0}),(0,ee.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Qe=new a.OlP("MatMenuContent"),Je=new a.OlP("MAT_MENU_PANEL"),Xe=(0,Y.Kr)((0,Y.Id)(function(){return function e(){_classCallCheck(this,e)}}())),$e=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s;return _classCallCheck(this,n),(s=t.call(this))._elementRef=e,s._focusMonitor=r,s._parentMenu=o,s._changeDetectorRef=a,s.role="menuitem",s._hovered=new u.xQ,s._focused=new u.xQ,s._highlighted=!1,s._triggersSubmenu=!1,o&&o.addItem&&o.addItem(_assertThisInitialized(s)),s}return _createClass(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t=this,n=Math.min(this._baseElevation+e,24),i="".concat(this._elevationPrefix).concat(n),r=Object.keys(this._classList).find(function(e){return e.startsWith(t._elevationPrefix)});(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe((0,_.O)(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(et))},e.\u0275dir=a.lG2({type:e,contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,Qe,5),a.Suo(n,$e,5),a.Suo(n,$e,4)),2&e)&&(a.iGM(i=a.CRH())&&(t.lazyContent=i.first),a.iGM(i=a.CRH())&&(t._allItems=i),a.iGM(i=a.CRH())&&(t.items=i))},viewQuery:function(e,t){var n;(1&e&&a.Gf(a.Rgc,5),2&e)&&(a.iGM(n=a.CRH())&&(t.templateRef=n.first))},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),it=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i,r))._elevationPrefix="mat-elevation-z",o._baseElevation=4,o}return n}(nt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(et))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&a.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[a._Bn([{provide:Je,useExisting:e}]),a.qOj],ngContentSelectors:Ge,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(a.F$t(),a.YNc(0,Ke,3,6,"ng-template"))},directives:[I.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[We.transformMenu,We.fadeInItems]},changeDetection:0}),e}(),rt=new a.OlP("mat-menu-scroll-strategy"),ot={provide:rt,deps:[qe.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},at=(0,g.i$)({passive:!0}),st=function(){var e=function(){function e(t,n,i,r,o,s,u,l){var c=this;_classCallCheck(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=u,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=N.w.EMPTY,this._hoverSubscription=N.w.EMPTY,this._menuCloseSubscription=N.w.EMPTY,this._handleTouchStart=function(e){(0,G.yG)(e)||(c._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new a.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof nt?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,at),s&&(s._triggersSubmenu=this.triggersSubmenu())}return _createClass(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),("click"===e||"tab"===e)&&t._parentMaterialMenu&&t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,at),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof nt&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof nt?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe((0,W.h)(function(e){return"void"===e.toState}),(0,f.q)(1),(0,m.R)(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new qe.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,u=a,l=n,c=i,h=0;this.triggersSubmenu()?(c=n="before"===this.menu.xPosition?"start":"end",i=l="end"===n?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",u="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:l,overlayY:o,offsetY:h},{originX:i,originY:s,overlayX:c,overlayY:o,offsetY:h},{originX:n,originY:u,overlayX:l,overlayY:a,offsetY:-h},{originX:i,originY:u,overlayX:c,overlayY:a,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Re.of)(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,W.h)(function(t){return t!==e._menuItemInstance}),(0,W.h)(function(){return e._menuOpen})):(0,Re.of)();return(0,$.T)(t,i,r,n)}},{key:"_handleMousedown",value:function(e){(0,G.X6)(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;(t===Q.K5||t===Q.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===Q.SV&&"ltr"===this.dir||t===Q.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,W.h)(function(t){return t===e._menuItemInstance&&!t.disabled}),Be(0,De.E)).subscribe(function(){e._openedBy="mouse",e.menu instanceof nt&&e.menu._isAnimating?e.menu._animationDone.pipe((0,f.q)(1),Be(0,De.E),(0,m.R)(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new z.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(a.s_b),a.Y36(rt),a.Y36(Je,8),a.Y36($e,10),a.Y36(He.Is,8),a.Y36(G.tE))},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&a.NdJ("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&a.uIk("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),ut=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[ot],imports:[Y.BQ]}),e}(),lt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[ot],imports:[[I.ez,Y.BQ,Y.si,qe.U8,ut],Ve.ZD,Y.BQ,ut]}),e}(),ct={tooltipState:(0,ee.X$)("state",[(0,ee.SB)("initial, void, hidden",(0,ee.oB)({opacity:0,transform:"scale(0)"})),(0,ee.SB)("visible",(0,ee.oB)({transform:"scale(1)"})),(0,ee.eR)("* => visible",(0,ee.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,ee.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,ee.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,ee.eR)("* => hidden",(0,ee.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.oB)({opacity:0})))])},ht="tooltip-panel",ft=(0,g.i$)({passive:!0}),dt=new a.OlP("mat-tooltip-scroll-strategy"),pt={provide:dt,deps:[qe.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},vt=new a.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),_t=function(){var e=function(){function e(t,n,i,r,o,a,s,l,c,h,f,d){var p=this;_classCallCheck(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=l,this._dir=h,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new u.xQ,this._handleKeydown=function(e){p._isTooltipVisible()&&e.keyCode===Q.hY&&!(0,Q.Vb)(e)&&(e.preventDefault(),e.stopPropagation(),p._ngZone.run(function(){return p.hide(0)}))},this._scrollStrategy=c,this._document=d,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe((0,m.R)(this._destroyed)).subscribe(function(){p._overlayRef&&p._updatePosition(p._overlayRef)}),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",p._handleKeydown)})}return _createClass(e,[{key:"position",get:function(){return this._position},set:function(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,s.Ig)(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,m.R)(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=_slicedToArray(t,2),i=n[0],r=n[1];e.removeEventListener(i,r,ft)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new z.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,m.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe((0,m.R)(this._destroyed)).subscribe(function(t){e._updateCurrentPositionClass(t.connectionPair),e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-").concat(ht),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,m.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,m.R)(this._destroyed)).subscribe(function(){var t;return null===(t=e._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var t=e.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,f.q)(1),(0,m.R)(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_updateCurrentPositionClass",value:function(e){var t,n=e.overlayY,i=e.originX,r=e.originY;if((t="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===r?"above":"below")!==this._currentPosition){var o=this._overlayRef;if(o){var a="".concat(this._cssClassPrefix,"-").concat(ht,"-");o.removePanelClass(a+this._currentPosition),o.addPanelClass(a+t)}this._currentPosition=t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=_slicedToArray(e,2),i=n[0],r=n[1];t._elementRef.nativeElement.addEventListener(i,r,ft)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t!==n&&!n.contains(t)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),("on"===e||!t.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(Ve.mF),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(g.t4),a.Y36(G.$s),a.Y36(G.tE),a.Y36(void 0),a.Y36(He.Is),a.Y36(void 0),a.Y36(I.K0))},e.\u0275dir=a.lG2({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),mt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u,l,c,h,f,d){var p;return _classCallCheck(this,n),(p=t.call(this,e,i,r,o,a,s,u,l,c,h,f,d))._tooltipComponent=yt,p}return n}(_t);return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(Ve.mF),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(g.t4),a.Y36(G.$s),a.Y36(G.tE),a.Y36(dt),a.Y36(He.Is,8),a.Y36(vt,8),a.Y36(I.K0))},e.\u0275dir=a.lG2({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[a.qOj]}),e}(),gt=function(){var e=function(){function e(t){_classCallCheck(this,e),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new u.xQ}return _createClass(e,[{key:"show",value:function(e){var t=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=void 0,t._onShow(),t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=void 0,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO))},e.\u0275dir=a.lG2({type:e}),e}(),yt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e))._breakpointObserver=i,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return n}(gt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO),a.Y36(w))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&a.Udp("zoom","visible"===t._visibility?1:null)},features:[a.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(a.TgZ(0,"div",0),a.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),a.ALo(1,"async"),a._uU(2),a.qZA()),2&e)&&(a.ekj("mat-tooltip-handset",null==(n=a.lcZ(1,5,t._isHandset))?null:n.matches),a.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),a.xp6(2),a.Oqu(t.message))},directives:[I.mk],pipes:[I.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ct.tooltipState]},changeDetection:0}),e}(),bt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[pt],imports:[[G.rt,I.ez,qe.U8,Y.BQ],Y.BQ,Ve.ZD]}),e}(),kt=n(1095);function Ct(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(2).launch(e)}),a.TgZ(1,"div",15),a._UZ(2,"img",9),a._uU(3),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw(2);a.xp6(2),a.Q6J("src",r.getTransportIcon(i.id),a.LSH),a.xp6(1),a.hij(" ",i.name," ")}}function wt(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).action("release")}),a.TgZ(1,"i",16),a._uU(2,"delete"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4," Release service"),a.qZA(),a.qZA()}}function xt(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).action("reset")}),a.TgZ(1,"i",16),a._uU(2,"refresh"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4," Reset service"),a.qZA(),a.qZA()}}function Et(e,t){if(1&e&&(a.TgZ(0,"button",17),a.TgZ(1,"uds-translate"),a._uU(2,"Connections"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(2);a.Q6J("matMenuTriggerFor",n)}}function St(e,t){if(1&e&&(a.TgZ(0,"button",17),a.TgZ(1,"uds-translate"),a._uU(2,"Actions"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(5);a.Q6J("matMenuTriggerFor",n)}}function Ot(e,t){if(1&e&&(a.TgZ(0,"button",18),a.TgZ(1,"i",16),a._uU(2,"menu"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(9);a.Q6J("matMenuTriggerFor",n)}}function At(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"mat-menu",null,1),a.YNc(3,Ct,4,2,"button",2),a.qZA(),a.TgZ(4,"mat-menu",null,3),a.YNc(6,wt,5,0,"button",4),a.YNc(7,xt,5,0,"button",4),a.qZA(),a.TgZ(8,"mat-menu",null,5),a.YNc(10,Et,3,1,"button",6),a.YNc(11,St,3,1,"button",6),a.qZA(),a.TgZ(12,"div",7),a.TgZ(13,"div",8),a.NdJ("click",function(){return a.CHM(n),a.oxw().launch(null)}),a._UZ(14,"img",9),a.qZA(),a.TgZ(15,"div",10),a.TgZ(16,"span",11),a._uU(17),a.qZA(),a.qZA(),a.TgZ(18,"div",12),a.YNc(19,Ot,3,1,"button",13),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(3),a.Q6J("ngForOf",i.service.transports),a.xp6(3),a.Q6J("ngIf",i.service.allow_users_remove),a.xp6(1),a.Q6J("ngIf",i.service.allow_users_reset),a.xp6(3),a.Q6J("ngIf",i.showTransportsMenu()),a.xp6(1),a.Q6J("ngIf",i.hasActions()),a.xp6(1),a.Q6J("ngClass",i.serviceClass)("matTooltipDisabled",""===i.serviceTooltip)("matTooltip",i.serviceTooltip),a.xp6(2),a.Q6J("src",i.serviceImage,a.LSH),a.xp6(2),a.Q6J("ngClass",i.serviceNameClass),a.xp6(1),a.Oqu(i.serviceName),a.xp6(2),a.Q6J("ngIf",i.hasMenu())}}var Tt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"serviceImage",get:function(){return this.api.galleryImageURL(this.service.imageId)}},{key:"serviceName",get:function(){var e=this.service.visual_name;return e.length>32&&(e=e.substring(0,29)+"..."),e}},{key:"serviceTooltip",get:function(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}},{key:"serviceClass",get:function(){var e=["service"];return null!=this.service.to_be_replaced?e.push("tobereplaced"):this.service.maintenance?e.push("maintenance"):this.service.not_accesible?e.push("forbidden"):this.service.in_use&&e.push("inuse"),e.length>1&&e.push("alert"),e}},{key:"serviceNameClass",get:function(){var e=[],t=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return t>=16&&e.push("small-"+t.toString()),e}},{key:"getTransportIcon",value:function(e){return this.api.transportIconURL(e)}},{key:"hasActions",value:function(){return this.service.allow_users_remove||this.service.allow_users_reset}},{key:"showTransportsMenu",value:function(){return this.service.transports.length>1&&this.service.show_transports}},{key:"hasMenu",value:function(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}},{key:"notifyNotLaunching",value:function(e){this.api.gui.alert('

'+django.gettext("Launcher")+"

",e)}},{key:"launch",value:function(e){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){var t=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching('

'+django.gettext("This service is currently not accesible due to schedule restrictions.")+'

'+t+'

')}else(null===e||!1===this.service.show_transports)&&(e=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(e.link)}},{key:"action",value:function(e){var t=this,n=("release"===e?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,i="release"===e?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(n,django.gettext("Are you sure?")).subscribe(function(r){r&&t.api.action(e,t.service.id).subscribe(function(e){e&&t.api.gui.alert(n,i)})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(e,t){1&e&&a.YNc(0,At,20,12,"div",0),2&e&&a.Q6J("ngIf",t.service.transports.length>0)},directives:[I.O5,it,I.sg,I.mk,mt,$e,P.P,st,kt.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:rgba(0,0,0,.22);display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22)}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;border-radius:1px;background-color:rgba(255,255,255,.8)}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:"Material Icons";font-weight:normal;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"}']}),e}();function Pt(e,t){1&e&&a._UZ(0,"uds-service",8),2&e&&a.Q6J("service",t.$implicit)}function It(e,t){if(1&e&&(a.TgZ(0,"mat-expansion-panel",1),a.TgZ(1,"mat-expansion-panel-header",2),a.TgZ(2,"mat-panel-title"),a.TgZ(3,"div",3),a._UZ(4,"img",4),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"mat-panel-description",5),a._uU(7),a.qZA(),a.qZA(),a.TgZ(8,"div",6),a.YNc(9,Pt,1,1,"uds-service",7),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.Q6J("expanded",n.expanded),a.xp6(1),a.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),a.xp6(3),a.Q6J("src",n.groupImage,a.LSH),a.xp6(1),a.hij(" ",n.group.name,""),a.xp6(2),a.hij(" ",n.group.comments," "),a.xp6(2),a.Q6J("ngForOf",n.sortedServices)}}var Rt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.expanded=!1}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"groupImage",get:function(){return this.api.galleryImageURL(this.group.imageUuid)}},{key:"hasVisibleServices",get:function(){return this.services.length>0}},{key:"sortedServices",get:function(){return this.services.sort(function(e,t){return e.name>t.name?1:e.name0&&void 0!==arguments[0]?arguments[0]:"";this.group=[];var n=null;this.servicesInformation.services.filter(function(e){return!t||e.visual_name.toLowerCase().includes(t)||e.group.name.toLowerCase().includes(t)}).sort(function(e,t){return e.group.priority!==t.group.priority?e.group.priority-t.group.priority:e.group.id>t.group.id?1:e.group.id=t.api.config.min_for_filter&&t.api.config.site_filter_on_top),a.xp6(3),a.Q6J("ngForOf",t.group),a.xp6(1),a.Q6J("ngIf",t.servicesInformation.services.length>=t.api.config.min_for_filter&&!t.api.config.site_filter_on_top))},directives:[I.O5,ye,I.sg,Ee,Ie,Rt],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),e}(),Bt=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.api=t,this.route=n}return _createClass(e,[{key:"ngOnInit",value:function(){this.getError()}},{key:"getError",value:function(){var e=this,t=this.route.snapshot.paramMap.get("id");"19"===t&&(this.returnUrl="/mfa"),this.error="",this.api.getErrorInformation(t).subscribe(function(t){e.error=t.error})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n),a.Y36(S.gz))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-error"]],decls:14,vars:2,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],["mat-raised-button","","color","warn",3,"routerLink"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.O4$(),a.TgZ(2,"svg",2),a._UZ(3,"path",3),a.qZA(),a.TgZ(4,"svg",4),a._UZ(5,"path",5),a.qZA(),a.qZA(),a.kcU(),a.TgZ(6,"h1",6),a.TgZ(7,"uds-translate"),a._uU(8,"An error has occurred"),a.qZA(),a.qZA(),a.TgZ(9,"p",7),a._uU(10),a.qZA(),a.TgZ(11,"a",8),a.TgZ(12,"uds-translate"),a._uU(13,"Return"),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(10),a.hij(" ",t.error," "),a.xp6(1),a.Q6J("routerLink",t.returnUrl))},directives:[P.P,kt.zs,S.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),e}(),Ut=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.year=(new Date).getFullYear()}return _createClass(e,[{key:"ngOnInit",value:function(){this.year<2021&&(this.year=2021)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-about"]],decls:45,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"h1"),a._uU(2),a.qZA(),a.TgZ(3,"h3"),a.TgZ(4,"a",1),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"h4"),a.TgZ(7,"uds-translate"),a._uU(8,"You can access UDS Open Source code at"),a.qZA(),a.TgZ(9,"a",2),a._uU(10,"OpenUDS github repository"),a.qZA(),a.qZA(),a.TgZ(11,"div",3),a.TgZ(12,"h2"),a.TgZ(13,"uds-translate"),a._uU(14,"UDS has been developed using these components:"),a.qZA(),a.qZA(),a.TgZ(15,"ul"),a.TgZ(16,"li"),a.TgZ(17,"a",4),a._uU(18,"Python"),a.qZA(),a.qZA(),a.TgZ(19,"li"),a.TgZ(20,"a",5),a._uU(21,"TypeScript"),a.qZA(),a.qZA(),a.TgZ(22,"li"),a.TgZ(23,"a",6),a._uU(24,"Django"),a.qZA(),a.qZA(),a.TgZ(25,"li"),a.TgZ(26,"a",7),a._uU(27,"Angular"),a.qZA(),a.qZA(),a.TgZ(28,"li"),a.TgZ(29,"a",8),a._uU(30,"Guacamole"),a.qZA(),a.qZA(),a.TgZ(31,"li"),a.TgZ(32,"a",9),a._uU(33,"weasyprint"),a.qZA(),a.qZA(),a.TgZ(34,"li"),a.TgZ(35,"a",10),a._uU(36,"Crystal project icons"),a.qZA(),a.qZA(),a.TgZ(37,"li"),a.TgZ(38,"a",11),a._uU(39,"Flattr Icons"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(40,"p"),a.TgZ(41,"small"),a._uU(42,"* "),a.TgZ(43,"uds-translate"),a._uU(44,"If you find that we missed any component, please let us know"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(2),a.AsE("Universal Desktop Services ",t.api.config.version," build ",t.api.config.version_stamp,""),a.xp6(3),a.hij(" \xa9 2012-",t.year," Virtual Cable S.L.U."))},directives:[P.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:normal}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px}"]}),e}(),Zt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"h1"),a.TgZ(3,"uds-translate"),a._uU(4,"UDS Service launcher"),a.qZA(),a.qZA(),a.TgZ(5,"h4"),a.TgZ(6,"uds-translate"),a._uU(7,"The service you have requested is being launched."),a.qZA(),a.qZA(),a.TgZ(8,"h5"),a.TgZ(9,"uds-translate"),a._uU(10,"Please, note that reloading this page will not work."),a.qZA(),a.qZA(),a.TgZ(11,"h5"),a.TgZ(12,"uds-translate"),a._uU(13,"To relaunch service, you will have to do it from origin."),a.qZA(),a.qZA(),a.TgZ(14,"h6"),a.TgZ(15,"uds-translate"),a._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),a.qZA(),a.qZA(),a.TgZ(17,"h6"),a.TgZ(18,"uds-translate"),a._uU(19,"You can obtain it from the"),a.qZA(),a._uU(20,"\xa0"),a.TgZ(21,"a",2),a.TgZ(22,"uds-translate"),a._uU(23,"UDS Client download page"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA())},directives:[P.P,S.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:rgba(0,0,0,.22);padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:normal}"]}),e}(),jt=n(665),qt=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:Nt,canActivate:[A]},{path:"login",component:T.G},{path:"login/:id",component:T.G},{path:"mfa",component:function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){document.getElementById("mfaform").action=this.api.config.urls.mfa,this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}},{key:"launch",value:function(){return document.getElementById("mfaform").submit(),!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-mfa"]],decls:17,vars:2,consts:[["id","mfaform","method","post",3,"ngSubmit"],[1,"mfa-container"],[1,"mfa-brand"],[3,"src"],[1,"mfa-info"],[1,"mfa-form"],[1,"mfa-field"],["appearance","standard"],["matInput","","id","code","name","code","value","","required","","autofocus",""],[1,"mfa-button"],["mat-stroked-button","","color","primary","type","submit"]],template:function(e,t){1&e&&(a.TgZ(0,"form",0),a.NdJ("ngSubmit",function(){return t.launch()}),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a._UZ(3,"img",3),a.qZA(),a.TgZ(4,"div",4),a.TgZ(5,"uds-translate"),a._uU(6,"Login Verification"),a.qZA(),a.qZA(),a.TgZ(7,"div",5),a.TgZ(8,"div",6),a.TgZ(9,"mat-form-field",7),a.TgZ(10,"mat-label"),a._uU(11),a.qZA(),a._UZ(12,"input",8),a.qZA(),a.qZA(),a.TgZ(13,"div",9),a.TgZ(14,"button",10),a.TgZ(15,"uds-translate"),a._uU(16,"Submit"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(3),a.Q6J("src",t.api.staticURL("modern/img/login-img.png"),a.LSH),a.xp6(8),a.hij(" ",t.api.config.mfa.label," "))},directives:[jt._Y,jt.JL,jt.F,P.P,Ae.KE,Ae.hX,Te.Nt,kt.lW],styles:[".mfa-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.mfa-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.mfa-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.mfa-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.mfa-form[_ngcontent-%COMP%]{min-width:80%}}"]}),e}()},{path:"client-download",component:D},{path:"downloads",component:F,canActivate:[A]},{path:"error/:id",component:Bt},{path:"about",component:Ut},{path:"ticket/launcher",component:Zt},{path:"**",redirectTo:"services"}],Vt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[S.Bz.forRoot(qt,{relativeLinkResolution:"legacy"})],S.Bz]}),e}(),Ht=n(8553),zt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),Yt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[Y.si,Y.BQ,Ht.Q8,zt],Y.BQ,zt]}),e}(),Gt=n(2238),Kt=n(7441),Wt=["*",[["mat-toolbar-row"]]],Qt=["*","mat-toolbar-row"],Jt=(0,Y.pj)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}()),Xt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),$t=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e))._platform=i,o._document=r,o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(Jt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(g.t4),a.Y36(I.K0))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,Xt,5),2&e)&&(a.iGM(i=a.CRH())&&(t._toolbarRows=i))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&a.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[a.qOj],ngContentSelectors:Qt,decls:2,vars:0,template:function(e,t){1&e&&(a.F$t(Wt),a.Hsn(0),a.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),en=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[Y.BQ],Y.BQ]}),e}(),tn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[{provide:Ae.o2,useValue:{floatLabel:"always"}}],imports:[jt.u5,en,kt.ot,lt,bt,be,Gt.Is,Ae.lN,Te.c,Kt.LD,Yt]}),e}();function nn(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",9),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(2).changeLang(e)}),a._uU(1),a.qZA()}if(2&e){var i=t.$implicit;a.xp6(1),a.Oqu(i.name)}}function rn(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",9),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).admin()}),a.TgZ(1,"i",23),a._uU(2,"dashboard"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4,"Dashboard"),a.qZA(),a.qZA()}}function on(e,t){1&e&&(a.TgZ(0,"button",28),a.TgZ(1,"i",23),a._uU(2,"file_download"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4,"Downloads"),a.qZA(),a.qZA())}function an(e,t){if(1&e&&(a.TgZ(0,"button",14),a._uU(1),a.qZA()),2&e){a.oxw();var n=a.MAs(8),i=a.oxw();a.Q6J("matMenuTriggerFor",n),a.xp6(1),a.Oqu(i.api.user.user)}}function sn(e,t){if(1&e&&(a.TgZ(0,"button",25),a._uU(1),a.TgZ(2,"i",23),a._uU(3,"arrow_drop_down"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(8),i=a.oxw();a.Q6J("matMenuTriggerFor",n),a.xp6(1),a.hij("",i.api.user.user," ")}}function un(e,t){if(1&e){var n=a.EpF();a.ynx(0),a.TgZ(1,"form",1),a._UZ(2,"input",2),a._UZ(3,"input",3),a.qZA(),a.TgZ(4,"mat-menu",null,4),a.YNc(6,nn,2,1,"button",5),a.qZA(),a.TgZ(7,"mat-menu",null,6),a.YNc(9,rn,5,0,"button",7),a.YNc(10,on,5,0,"button",8),a.TgZ(11,"button",9),a.NdJ("click",function(){return a.CHM(n),a.oxw().logout()}),a.TgZ(12,"i",10),a._uU(13,"exit_to_app"),a.qZA(),a.TgZ(14,"uds-translate"),a._uU(15,"Logout"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(16,"mat-menu",11,12),a.YNc(18,an,2,2,"button",13),a.TgZ(19,"button",14),a._uU(20),a.qZA(),a.TgZ(21,"button",15),a.TgZ(22,"uds-translate"),a._uU(23,"UDS Client"),a.qZA(),a.qZA(),a.TgZ(24,"button",16),a.TgZ(25,"uds-translate"),a._uU(26,"About"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(27,"mat-toolbar",17),a.TgZ(28,"button",18),a._UZ(29,"img",19),a._uU(30),a.qZA(),a._UZ(31,"span",20),a.TgZ(32,"div",21),a.TgZ(33,"button",22),a.TgZ(34,"i",23),a._uU(35,"file_download"),a.qZA(),a.TgZ(36,"uds-translate"),a._uU(37,"UDS Client"),a.qZA(),a.qZA(),a.TgZ(38,"button",24),a.TgZ(39,"i",23),a._uU(40,"info"),a.qZA(),a.TgZ(41,"uds-translate"),a._uU(42,"About"),a.qZA(),a.qZA(),a.TgZ(43,"button",25),a._uU(44),a.TgZ(45,"i",23),a._uU(46,"arrow_drop_down"),a.qZA(),a.qZA(),a.YNc(47,sn,4,2,"button",26),a.qZA(),a.TgZ(48,"div",27),a.TgZ(49,"button",25),a.TgZ(50,"i",23),a._uU(51,"menu"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.BQk()}if(2&e){var i=a.MAs(5),r=a.MAs(17),o=a.oxw();a.xp6(1),a.s9C("action",o.api.config.urls.changeLang,a.LSH),a.xp6(1),a.s9C("name",o.api.csrfField),a.s9C("value",o.api.csrfToken),a.xp6(1),a.s9C("value",o.lang.id),a.xp6(3),a.Q6J("ngForOf",o.langs),a.xp6(3),a.Q6J("ngIf",o.api.user.isStaff),a.xp6(1),a.Q6J("ngIf",o.api.user.isStaff),a.xp6(8),a.Q6J("ngIf",o.api.user.isLogged),a.xp6(1),a.Q6J("matMenuTriggerFor",i),a.xp6(1),a.hij("",o.lang.name," "),a.xp6(9),a.Q6J("src",o.api.staticURL("modern/img/udsicon.png"),a.LSH),a.xp6(1),a.hij(" ",o.api.config.site_logo_name," "),a.xp6(13),a.Q6J("matMenuTriggerFor",i),a.xp6(1),a.hij("",o.lang.name," "),a.xp6(3),a.Q6J("ngIf",o.api.user.isLogged),a.xp6(2),a.Q6J("matMenuTriggerFor",r)}}var ln=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.style="";var n=t.config.language;this.langs=[];var i,r=_createForOfIteratorHelper(t.config.available_languages);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.id===n?this.lang=o:this.langs.push(o)}}catch(a){r.e(a)}finally{r.f()}}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"changeLang",value:function(e){return this.lang=e,document.getElementById("id_language").attributes.value.value=e.id,document.getElementById("form_language").submit(),!1}},{key:"admin",value:function(){this.api.gotoAdmin()}},{key:"logout",value:function(){this.api.logout()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(e,t){1&e&&a.YNc(0,un,52,16,"ng-container",0),2&e&&a.Q6J("ngIf",""===t.api.config.urls.launch)},directives:[I.O5,jt._Y,jt.JL,jt.F,it,I.sg,$e,P.P,st,S.rH,$t,kt.lW],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),e}(),cn=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(O.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(e,t){1&e&&(a.TgZ(0,"div"),a.TgZ(1,"a",0),a._uU(2),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Q6J("href",t.api.config.site_copyright_link,a.LSH),a.xp6(1),a.Oqu(t.api.config.site_copyright_info))},styles:[""]}),e}(),hn=function(){var e=function(){function e(){_classCallCheck(this,e),this.title="uds"}return _createClass(e,[{key:"ngOnInit",value:function(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-root"]],decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(e,t){1&e&&(a._UZ(0,"uds-navbar"),a.TgZ(1,"div",0),a.TgZ(2,"div",1),a._UZ(3,"router-outlet"),a.qZA(),a.TgZ(4,"div",2),a._UZ(5,"uds-footer"),a.qZA(),a.qZA())},directives:[ln,S.lC,cn],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),e}(),fn=n(3183),dn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e,bootstrap:[hn]}),e.\u0275inj=a.cJS({providers:[O.n,fn.h],imports:[[o.b2,y,E.JF,Vt,J.PW,tn]]}),e}();n(2340).N.production&&(0,a.G48)(),o.q6().bootstrapModule(dn).catch(function(e){return console.log(e)})}},function(e){e(e.s=6445)}])})(); \ No newline at end of file +(function(){function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)})(e)}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&_setPrototypeOf(r,n.prototype),r}).apply(null,arguments)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function l(e){return{type:6,styles:e,offset:null}}function c(e,t,n){return{type:0,name:e,styles:t,options:n}}function h(e){return{type:5,steps:e}}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function v(e){Promise.resolve(null).then(e)}var _=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;v(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),m=function(){function e(t){var n=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?v(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),g="!"},9238:function(e,t,n){"use strict";n.d(t,{rt:function(){return ne},s1:function(){return D},$s:function(){return T},Em:function(){return M},tE:function(){return J},qV:function(){return B},qm:function(){return te},Kd:function(){return K},X6:function(){return Z},yG:function(){return j}});var i=n(8583),r=n(3018),o=n(9765),a=n(5319),s=n(6215),u=n(5917),l=n(6461),c=n(3342),h=n(4395),f=n(5435),d=n(8002),p=n(5257),v=n(3653),_=n(7519),m=n(6782),g=n(9490),y=n(521),k=n(8553);function b(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var C,w="cdk-describedby-message-container",x="cdk-describedby-message",E="cdk-describedby-host",S=0,A=new Map,O=null,T=((C=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=P(t,n);"string"!=typeof t?(I(t),A.set(i,{messageElement:t,referenceCount:0})):A.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=P(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=A.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}O&&0===O.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[".concat(E,"]")),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return _createClass(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,c.b)(function(t){return e._pressedLetters.push(t)}),(0,h.b)(t),(0,f.h)(function(){return e._pressedLetters.length>0}),(0,d.U)(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case l.Mf:return void this.tabOut.next();case l.JH:if(this._vertical&&i){this.setNextItemActive();break}return;case l.LH:if(this._vertical&&i){this.setPreviousItemActive();break}return;case l.SV:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.oh:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.Sd:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case l.uR:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||(0,l.Vb)(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=l.A&&n<=l.Z||n>=l.xE&&n<=l.aO)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof r.n_E?this._items.toArray():this._items}}]),e}(),D=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(R),M=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._origin="program",e}return _createClass(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(R),L=function(){var e=function(){function e(t){_classCallCheck(this,e),this._platform=t}return _createClass(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t=function(e){try{return e.frameElement}catch(t){return null}}(function(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(e));if(t&&(-1===N(t)||!this.isVisible(t)))return!1;var n=e.nodeName.toLowerCase(),i=N(e);return e.hasAttribute("contenteditable")?-1!==i:!("iframe"===n||"object"===n||this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===n?!!e.hasAttribute("controls")&&-1!==i:"video"===n?-1!==i&&(null!==i||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||F(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4))},token:e,providedIn:"root"}),e}();function F(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function N(e){if(!F(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var U=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return _createClass(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusInitialElement(e))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusFirstTabbableElement(e))})})}},{key:"focusLastTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusLastTabbableElement(e))})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(e)}}]),e}(),B=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._checker=t,this._ngZone=n,this._document=i}return _createClass(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new U(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(L),r.LFG(r.R0b),r.LFG(i.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(L),r.LFG(r.R0b),r.LFG(i.K0))},token:e,providedIn:"root"}),e}();function Z(e){return 0===e.offsetX&&0===e.offsetY}function j(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈var q=new r.OlP("cdk-input-modality-detector-options"),V={ignoreKeys:[l.zL,l.jx,l.b2,l.MW,l.JU]},H=(0,y.i$)({passive:!0,capture:!0}),z=function(){var e=function(){function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._platform=t,this._mostRecentTarget=null,this._modality=new s.X(null),this._lastTouchMs=0,this._onKeydown=function(e){var t,n;(null===(n=null===(t=o._options)||void 0===t?void 0:t.ignoreKeys)||void 0===n?void 0:n.some(function(t){return t===e.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=(0,y.sA)(e))},this._onMousedown=function(e){Date.now()-o._lastTouchMs<650||(o._modality.next(Z(e)?"keyboard":"mouse"),o._mostRecentTarget=(0,y.sA)(e))},this._onTouchstart=function(e){j(e)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=(0,y.sA)(e))},this._options=Object.assign(Object.assign({},V),r),this.modalityDetected=this._modality.pipe((0,v.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,_.x)()),t.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",o._onKeydown,H),i.addEventListener("mousedown",o._onMousedown,H),i.addEventListener("touchstart",o._onTouchstart,H)})}return _createClass(e,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,H),document.removeEventListener("mousedown",this._onMousedown,H),document.removeEventListener("touchstart",this._onTouchstart,H))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4),r.LFG(r.R0b),r.LFG(i.K0),r.LFG(q,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4),r.LFG(r.R0b),r.LFG(i.K0),r.LFG(q,8))},token:e,providedIn:"root"}),e}(),Y=new r.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),G=new r.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),K=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return _createClass(e,[{key:"announce",value:function(e){for(var t,n,i,r=this,o=this._defaultOptions,a=arguments.length,s=new Array(a>1?a-1:0),u=1;u1&&void 0!==arguments[1]&&arguments[1],n=(0,g.fI)(e);if(!this._platform.isBrowser||1!==n.nodeType)return(0,u.of)(null);var i=(0,y.kV)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var a={checkChildren:t,subject:new o.xQ,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}},{key:"stopMonitoring",value:function(e){var t=(0,g.fI)(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=(0,g.fI)(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=_slicedToArray(e,2),r=n[0],o=n[1];return i._originChanged(r,t,o)}):(this._setOrigin(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOrigin",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){t._origin=e,t._originFromTouchInteraction="touch"===e&&n,0===t._detectionMode&&(clearTimeout(t._originTimeoutId),t._originTimeoutId=setTimeout(function(){return t._origin=null},t._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t),i=(0,y.sA)(e);!n||!n.checkChildren&&t!==i||this._originChanged(t,this._getFocusOrigin(i),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,Q),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,Q)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){t._getWindow().addEventListener("focus",t._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,m.R)(this._stopInputModalityDetector)).subscribe(function(e){t._setOrigin(e,!0)}))}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Q),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Q),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.R0b),r.LFG(y.t4),r.LFG(z),r.LFG(i.K0,8),r.LFG(W,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(r.R0b),r.LFG(y.t4),r.LFG(z),r.LFG(i.K0,8),r.LFG(W,8))},token:e,providedIn:"root"}),e}(),X="cdk-high-contrast-black-on-white",$="cdk-high-contrast-white-on-black",ee="cdk-high-contrast-active",te=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._document=n}return _createClass(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove(ee),e.remove(X),e.remove($),this._hasCheckedHighContrastMode=!0;var t=this.getHighContrastMode();1===t?(e.add(ee),e.add(X)):2===t&&(e.add(ee),e.add($))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4),r.LFG(i.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4),r.LFG(i.K0))},token:e,providedIn:"root"}),e}(),ne=function(){var e=function e(t){_classCallCheck(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(r.LFG(te))},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[[y.ud,k.Q8]]}),e}()},946:function(e,t,n){"use strict";n.d(t,{vT:function(){return u},Is:function(){return s}});var i,r=n(3018),o=n(8583),a=new r.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,r.f3M)(o.K0)}}),s=((i=function(){function e(t){if(_classCallCheck(this,e),this.value="ltr",this.change=new r.vpe,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||i)(r.LFG(a,8))},i.\u0275prov=r.Yz7({factory:function(){return new i(r.LFG(a,8))},token:i,providedIn:"root"}),i),u=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}()},8345:function(e,t,n){"use strict";n.d(t,{P3:function(){return l},Ov:function(){return h},A8:function(){return f},eX:function(){return c},k:function(){return d},Z9:function(){return s}});var i=n(5639),r=n(5917),o=n(9765),a=n(3018);function s(e){return e&&"function"==typeof e.connect}var u,l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._data=e,i}return _createClass(n,[{key:"connect",value:function(){return(0,i.b)(this._data)?this._data:(0,r.of)(this._data)}},{key:"disconnect",value:function(){}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),c=function(){function e(){_classCallCheck(this,e),this.viewCacheSize=20,this._viewCache=[]}return _createClass(e,[{key:"applyChanges",value:function(e,t,n,i,r){var o=this;e.forEachOperation(function(e,a,s){var u,l;null==e.previousIndex?l=(u=o._insertView(function(){return n(e,a,s)},s,t,i(e)))?1:0:null==s?(o._detachAndCacheView(a,t),l=3):(u=o._moveView(a,s,t,i(e)),l=2),r&&r({context:null==u?void 0:u.context,operation:l,record:e})})}},{key:"detach",value:function(){var e,t=_createForOfIteratorHelper(this._viewCache);try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(n){t.e(n)}finally{t.f()}this._viewCache=[]}},{key:"_insertView",value:function(e,t,n,i){var r=this._insertViewFromCache(t,n);if(!r){var o=e();return n.createEmbeddedView(o.templateRef,o.context,o.index)}r.context.$implicit=i}},{key:"_detachAndCacheView",value:function(e,t){var n=t.detach(e);this._maybeCacheView(n,t)}},{key:"_moveView",value:function(e,t,n,i){var r=n.get(e);return n.move(r,t),r.context.$implicit=i,r}},{key:"_maybeCacheView",value:function(e,t){if(this._viewCache.length0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.xQ,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return _createClass(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i1?t-1:0),i=1;it.height||e.scrollWidth>t.width}}]),e}(),b=function(){function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),C=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function w(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function x(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var E,S=function(){function e(t,n,i,r){_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;w(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),A=((E=function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new C},this.close=function(e){return new b(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new k(o._viewportRuler,o._document)},this.reposition=function(e){return new S(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r}).\u0275fac=function(e){return new(e||E)(r.LFG(i.mF),r.LFG(i.rL),r.LFG(r.R0b),r.LFG(s.K0))},E.\u0275prov=r.Yz7({factory:function(){return new E(r.LFG(i.mF),r.LFG(i.rL),r.LFG(r.R0b),r.LFG(s.K0))},token:E,providedIn:"root"}),E),O=function e(t){if(_classCallCheck(this,e),this.scrollStrategy=new C,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0))},token:e,providedIn:"root"}),e}(),R=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return _createClass(n,[{key:"add",value:function(e){_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(I);return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0))},token:e,providedIn:"root"}),e}(),D=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=(0,o.sA)(e),n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var a=n[i];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(t))break;a._outsidePointerEvents.next(e)}}},r}return _createClass(n,[{key:"add",value:function(e){if(_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),!this._isAttached){var t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(I);return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0),r.LFG(o.t4))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0),r.LFG(o.t4))},token:e,providedIn:"root"}),e}(),M="undefined"!=typeof window?window:{},L=void 0!==M.__karma__&&!!M.__karma__||void 0!==M.jasmine&&!!M.jasmine||void 0!==M.jest&&!!M.jest||void 0!==M.Mocha&&!!M.Mocha,F=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=n,this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e="cdk-overlay-container";if(this._platform.isBrowser||L)for(var t=this._document.querySelectorAll(".".concat(e,'[platform="server"], .').concat(e,'[platform="test"]')),n=0;nd&&(d=_,f=v)}}catch(m){p.e(m)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&j(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(U),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=V(t),o=e.x,a=e.y,s=this._getOffset(i,"x"),u=this._getOffset(i,"y");s&&(o+=s),u&&(a+=u);var l=0-a,c=a+r.height-n.height,h=this._subtractOverflows(r.width,0-o,o+r.width-n.width),f=this._subtractOverflows(r.height,l,c),d=h*f;return{visibleArea:d,isCompletelyWithinViewport:r.width*r.height===d,fitsInViewportVertically:f===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=q(this._overlayRef.getConfig().minHeight),a=q(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=V(t),a=this._viewportRect,s=Math.max(e.x+o.width-a.width,0),u=Math.max(e.y+o.height-a.height,0),l=Math.max(a.top-n.top-e.y,0),c=Math.max(a.left-n.left-e.x,0);return i=o.width<=a.width?c||-s:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!l||"start"===t.overlayX&&l)s=u.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!l||"end"===t.overlayX&&l)a=e.x,o=u.right-e.x;else{var f=Math.min(u.right-e.x+u.left,e.x),d=this._lastBoundingBoxSize.width;o=2*f,a=e.x-f,o>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-d/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=(0,u.HM)(n.height),i.top=(0,u.HM)(n.top),i.bottom=(0,u.HM)(n.bottom),i.width=(0,u.HM)(n.width),i.left=(0,u.HM)(n.left),i.right=(0,u.HM)(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=(0,u.HM)(r)),o&&(i.maxWidth=(0,u.HM)(o))}this._lastBoundingBoxSize=n,j(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){j(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){j(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();j(n,this._getExactOverlayY(t,e,a)),j(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),c&&(s+="translateY(".concat(c,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=(0,u.HM)(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=(0,u.HM)(o.maxWidth):r&&(n.maxWidth="")),j(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=(0,u.HM)(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=(0,u.HM)(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:x(e,n),isOriginOutsideView:w(e,n),isOverlayClipped:x(t,n),isOverlayOutsideView:w(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(z),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),G=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return _createClass(e,[{key:"global",value:function(){return new Y}},{key:"connectedTo",value:function(e,t,n){return new H(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new Z(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.rL),r.LFG(s.K0),r.LFG(o.t4),r.LFG(F))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(i.rL),r.LFG(s.K0),r.LFG(o.t4),r.LFG(F))},token:e,providedIn:"root"}),e}(),K=0,W=function(){var e=function(){function e(t,n,i,r,o,a,s,u,l,c,h){_classCallCheck(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}return _createClass(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new O(e);return r.direction=r.direction||this._directionality.value,new N(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+K++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(r.z2F)),new l.u0(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(A),r.LFG(F),r.LFG(r._Vd),r.LFG(G),r.LFG(R),r.LFG(r.zs3),r.LFG(r.R0b),r.LFG(s.K0),r.LFG(a.Is),r.LFG(s.Ye),r.LFG(D))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Q=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],J=new r.OlP("cdk-connected-overlay-scroll-strategy"),X=function(){var e=function e(t){_classCallCheck(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.SBq))},e.\u0275dir=r.lG2({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),$=function(){var e=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this._overlay=t,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new r.vpe,this.positionChange=new r.vpe,this.attach=new r.vpe,this.detach=new r.vpe,this.overlayKeydown=new r.vpe,this.overlayOutsideClick=new r.vpe,this._templatePortal=new l.UE(n,i),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=(0,u.Ig)(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=(0,u.Ig)(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=(0,u.Ig)(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=(0,u.Ig)(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=(0,u.Ig)(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;(!this.positions||!this.positions.length)&&(this.positions=Q);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),t.keyCode===g.hY&&!e.disableClose&&!(0,g.Vb)(t)&&(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new O({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new p(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(W),r.Y36(r.Rgc),r.Y36(r.s_b),r.Y36(J),r.Y36(a.Is,8))},e.\u0275dir=r.lG2({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[r.TTD]}),e}(),ee={provide:J,deps:[W],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},te=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[W,ee],imports:[[a.vT,l.eL,i.Cl],i.Cl]}),e}()},521:function(e,t,n){"use strict";n.d(t,{t4:function(){return f},ud:function(){return d},sA:function(){return b},ht:function(){return k},kV:function(){return y},_i:function(){return g},qK:function(){return v},i$:function(){return _},Mq:function(){return m}});var i,r=n(3018),o=n(8583);try{i="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(s){i=!1}var a,s,u,l,c,h,f=((s=function e(t){_classCallCheck(this,e),this._platformId=t,this.isBrowser=this._platformId?(0,o.NF)(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&&!i)&&"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}).\u0275fac=function(e){return new(e||s)(r.LFG(r.Lbi))},s.\u0275prov=r.Yz7({factory:function(){return new s(r.LFG(r.Lbi))},token:s,providedIn:"root"}),s),d=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}(),p=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function v(){if(a)return a;if("object"!=typeof document||!document)return a=new Set(p);var e=document.createElement("input");return a=new Set(p.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function _(e){return function(){if(null==u&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return u=!0}}))}finally{u=u||!1}return u}()?e:!!e.capture}function m(){if(null==c){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return c=!1;if("scrollBehavior"in document.documentElement.style)c=!0;else{var e=Element.prototype.scrollTo;c=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return c}function g(){if("object"!=typeof document||!document)return 0;if(null==l){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),l=0,0===e.scrollLeft&&(e.scrollLeft=1,l=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return l}function y(e){if(function(){if(null==h){var e="undefined"!=typeof document?document.head:null;h=!(!e||!e.createShadowRoot&&!e.attachShadow)}return h}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function k(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}function b(e){return e.composedPath?e.composedPath()[0]:e.target}},7636:function(e,t,n){"use strict";n.d(t,{en:function(){return c},Pl:function(){return f},C5:function(){return s},u0:function(){return h},eL:function(){return d},UE:function(){return u}});var i,r=n(3018),o=n(8583),a=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(a),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return _createClass(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(n.prototype),"detach",this).call(this)}}]),n}(a),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).element=e instanceof r.SBq?e.nativeElement:e,i}return n}(a),c=function(){function e(){_classCallCheck(this,e),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof s?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof u?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof l?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),h=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s,u;return _classCallCheck(this,n),(u=t.call(this)).outletElement=e,u._componentFactoryResolver=i,u._appRef=r,u._defaultInjector=o,u.attachDomPortal=function(e){var t=e.element,i=u._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),u.outletElement.appendChild(t),u._attachedPortal=e,_get((s=_assertThisInitialized(u),_getPrototypeOf(n.prototype)),"setDisposeFn",s).call(s,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},u._document=a,u}return _createClass(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),this._attachedPortal=e,i}},{key:"dispose",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(c),f=((i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,o){var a,s;return _classCallCheck(this,n),(s=t.call(this))._componentFactoryResolver=e,s._viewContainerRef=i,s._isInitialized=!1,s.attached=new r.vpe,s.attachDomPortal=function(e){var t=e.element,i=s._document.createComment("dom-portal");e.setAttachedHost(_assertThisInitialized(s)),t.parentNode.insertBefore(i,t),s._getRootNode().appendChild(t),s._attachedPortal=e,_get((a=_assertThisInitialized(s),_getPrototypeOf(n.prototype)),"setDisposeFn",a).call(a,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},s._document=o,s}return _createClass(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&_get(_getPrototypeOf(n.prototype),"detach",this).call(this),e&&_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),_get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(c)).\u0275fac=function(e){return new(e||i)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(o.K0))},i.\u0275dir=r.lG2({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),i),d=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}()},9243:function(e,t,n){"use strict";n.d(t,{ZD:function(){return y},mF:function(){return m},Cl:function(){return k},rL:function(){return g}});var i=n(9490),r=n(3018),o=n(6465),a=n(6102);new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(o.o));var s=n(9765),u=n(5917),l=n(7574),c=n(2759);n(4581),n(5319),n(5639),n(7393),new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(a.v))(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?_get(_getPrototypeOf(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(o.o)),n(1593),n(7971),n(8858),n(7519);var h=n(628),f=n(5435),d=(n(6782),n(9761),n(3190),n(521)),p=n(8583),v=n(946);n(8345);var _,m=((_=function(){function e(t,n,i){_classCallCheck(this,e),this._ngZone=t,this._platform=n,this._scrolled=new s.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return _createClass(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(function(){return t._scrolled.next(e)}))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new l.y(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe((0,h.e)(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):(0,u.of)()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,f.h)(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=(0,i.fI)(t),r=e.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var t=e._getWindow();return(0,c.R)(t.document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||_)(r.LFG(r.R0b),r.LFG(d.t4),r.LFG(p.K0,8))},_.\u0275prov=r.Yz7({factory:function(){return new _(r.LFG(r.R0b),r.LFG(d.t4),r.LFG(p.K0,8))},token:_,providedIn:"root"}),_),g=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this._platform=t,this._change=new s.xQ,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._viewportSize=null})})}return _createClass(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe((0,h.e)(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(d.t4),r.LFG(r.R0b),r.LFG(p.K0,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(d.t4),r.LFG(r.R0b),r.LFG(p.K0,8))},token:e,providedIn:"root"}),e}(),y=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}(),k=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[[v.vT,d.ud,y],v.vT,y]}),e}()},9490:function(e,t,n){"use strict";n.d(t,{Eq:function(){return a},Ig:function(){return r},HM:function(){return s},fI:function(){return u},su:function(){return o}});var i=n(3018);function r(e){return null!=e&&"false"!="".concat(e)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function a(e){return Array.isArray(e)?e:[e]}function s(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function u(e){return e instanceof i.SBq?e.nativeElement:e}},8583:function(e,t,n){"use strict";n.d(t,{mr:function(){return b},Ov:function(){return Y},ez:function(){return G},K0:function(){return l},Do:function(){return w},V_:function(){return f},Ye:function(){return x},S$:function(){return y},mk:function(){return R},sg:function(){return M},O5:function(){return F},RF:function(){return Z},n9:function(){return j},ED:function(){return q},b0:function(){return C},lw:function(){return c},EM:function(){return Q},JF:function(){return $},NF:function(){return W},w_:function(){return u},bD:function(){return K},q:function(){return o},Mx:function(){return I},HT:function(){return a}});var i=n(3018),r=null;function o(){return r}function a(e){r||(r=e)}var s,u=function e(){_classCallCheck(this,e)},l=new i.OlP("DocumentToken"),c=((s=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}()).\u0275fac=function(e){return new(e||s)},s.\u0275prov=(0,i.Yz7)({factory:h,token:s,providedIn:"platform"}),s);function h(){return(0,i.LFG)(d)}var f=new i.OlP("Location Initialized"),d=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i._init(),i}return _createClass(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return o().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=o().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=o().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){p()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){p()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}]),n}(c);return e.\u0275fac=function(t){return new(t||e)(i.LFG(l))},e.\u0275prov=(0,i.Yz7)({factory:v,token:e,providedIn:"platform"}),e}();function p(){return!!window.history.pushState}function v(){return new d((0,i.LFG)(l))}function _(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function g(e){return e&&"?"!==e[0]?"?"+e:e}var y=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,i.Yz7)({factory:k,token:e,providedIn:"root"}),e}();function k(e){var t=(0,i.LFG)(l).location;return new C((0,i.LFG)(c),t&&t.origin||"")}var b=new i.OlP("appBaseHref"),C=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;if(_classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._removeListenerFns=[],null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)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.");return r._baseHref=i,_possibleConstructorReturn(r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return _(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(i.LFG(c),i.LFG(b,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),w=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",r._removeListenerFns=[],null!=i&&(r._baseHref=i),r}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=_(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(i.LFG(c),i.LFG(b,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),x=function(){var e=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;var o=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=m(S(o)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})})}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+g(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,S(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.LFG(y),i.LFG(c))},e.normalizeQueryParams=g,e.joinWithSlash=_,e.stripTrailingSlash=m,e.\u0275prov=(0,i.Yz7)({factory:E,token:e,providedIn:"root"}),e}();function E(){return new x((0,i.LFG)(y),(0,i.LFG)(c))}function S(e){return e.replace(/\/index.html$/,"")}var A=((A=A||{})[A.Zero=0]="Zero",A[A.One=1]="One",A[A.Two=2]="Two",A[A.Few=3]="Few",A[A.Many=4]="Many",A[A.Other=5]="Other",A),O=i.kL8,T=function e(){_classCallCheck(this,e)},P=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).locale=e,i}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(O(t||this.locale)(e)){case A.Zero:return"zero";case A.One:return"one";case A.Two:return"two";case A.Few:return"few";case A.Many:return"many";default:return"other"}}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.soG))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}();function I(e,t){t=encodeURIComponent(t);var n,i=_createForOfIteratorHelper(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=_slicedToArray(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[0],u=a[1];if(s.trim()===t)return decodeURIComponent(u)}}catch(l){i.e(l)}finally{i.f()}return null}var R=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(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&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,i.AaK)(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},e.\u0275dir=i.lG2({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),D=function(){function e(t,n,i,r){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),M=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat(function(e){return e.name||typeof e}(e),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new D(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new L(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var u=new L(e,s);n.push(u)}});for(var i=0;i0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,_toConsumableArray(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),d=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return _(e)}},{key:"encodeValue",value:function(e){return _(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}(),p=/%(\d[a-f0-9])/gi,v={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function _(e){return encodeURIComponent(e).replace(p,function(e,t){var n;return null!==(n=v[t])&&void 0!==n?n:e})}function m(e){return"".concat(e)}var g=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new d,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),r=_slicedToArray(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(m(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(m(t.value));-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),y=function(){function e(){_classCallCheck(this,e),this.map=new Map}return _createClass(e,[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function k(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function b(e){return"undefined"!=typeof Blob&&e instanceof Blob}function C(e){return"undefined"!=typeof FormData&&e instanceof FormData}var w=function(){function e(t,n,i,r){var o;if(_classCallCheck(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new f),this.context||(this.context=new y),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,u=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,l=n.headers||this.headers,c=n.params||this.params,h=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},l)),n.setParams&&(c=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},c)),new e(i,r,a,{params:c,headers:l,context:h,reportProgress:u,responseType:o,withCredentials:s})}}]),e}(),x=((x=x||{})[x.Sent=0]="Sent",x[x.UploadProgress=1]="UploadProgress",x[x.ResponseHeader=2]="ResponseHeader",x[x.DownloadProgress=3]="DownloadProgress",x[x.Response=4]="Response",x[x.User=5]="User",x),E=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,e),this.headers=t.headers||new f,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},S=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=x.ResponseHeader,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(E),A=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=x.Response,e.body=void 0!==i.body?i.body:null,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(E),O=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(E);function T(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var P,I=((P=function(){function e(t){_classCallCheck(this,e),this.handler=t}return _createClass(e,[{key:"request",value:function(e,t){var n,i,r,a=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof w?n=e:(i=c.headers instanceof f?c.headers:new f(c.headers),c.params&&(r=c.params instanceof g?c.params:new g({fromObject:c.params})),n=new w(e,t,void 0!==c.body?c.body:null,{headers:i,context:c.context,params:r,reportProgress:c.reportProgress,responseType:c.responseType||"json",withCredentials:c.withCredentials}));var h=(0,o.of)(n).pipe((0,s.b)(function(e){return a.handler.handle(e)}));if(e instanceof w||"events"===c.observe)return h;var d=h.pipe((0,u.h)(function(e){return e instanceof A}));switch(c.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return d.pipe((0,l.U)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return d.pipe((0,l.U)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return d.pipe((0,l.U)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return d.pipe((0,l.U)(function(e){return e.body}))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type ".concat(c.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new g).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,T(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,T(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,T(n,t))}}]),e}()).\u0275fac=function(e){return new(e||P)(r.LFG(c))},P.\u0275prov=r.Yz7({token:P,factory:P.\u0275fac}),P),R=function(){function e(t,n){_classCallCheck(this,e),this.next=t,this.interceptor=n}return _createClass(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),D=new r.OlP("HTTP_INTERCEPTORS"),M=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),L=/^\)\]\}',?\n/,F=function(){var e=function(){function e(t){_classCallCheck(this,e),this.xhrFactory=t}return _createClass(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new a.y(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new f(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new S({headers:r,status:t,statusText:n,url:o})},l=function(){var t=u(),r=t.headers,o=t.status,a=t.statusText,s=t.url,l=null;204!==o&&(l=void 0===i.response?i.responseText:i.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof l){var h=l;l=l.replace(L,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=h,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new A({body:l,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new O({error:l,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=u().url,r=new O({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},h=!1,d=function(t){h||(n.next(u()),h=!0);var r={type:x.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&!!i.responseText&&(r.partialText=i.responseText),n.next(r)},p=function(e){var t={type:x.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",d),null!==a&&i.upload&&i.upload.addEventListener("progress",p)),i.send(a),n.next({type:x.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",d),null!==a&&i.upload&&i.upload.removeEventListener("progress",p)),i.readyState!==i.DONE&&i.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.JF))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),N=new r.OlP("XSRF_COOKIE_NAME"),U=new r.OlP("XSRF_HEADER_NAME"),B=function e(){_classCallCheck(this,e)},Z=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.K0),r.LFG(r.Lbi),r.LFG(N))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),j=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.tokenService=t,this.headerName=n}return _createClass(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null!==i&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(B),r.LFG(U))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),q=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.backend=t,this.injector=n,this.chain=null}return _createClass(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(D,[]);this.chain=t.reduceRight(function(e,t){return new R(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(h),r.LFG(r.zs3))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),V=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:j,useClass:M}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:N,useValue:t.cookieName}:[],t.headerName?{provide:U,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[j,{provide:D,useExisting:j,multi:!0},{provide:B,useClass:Z},{provide:N,useValue:"XSRF-TOKEN"},{provide:U,useValue:"X-XSRF-TOKEN"}]}),e}(),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[I,{provide:c,useClass:q},F,{provide:h,useExisting:F}],imports:[[V.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}()},3018:function(e,t,n){"use strict";n.d(t,{deG:function(){return ln},tb:function(){return Gu},AFp:function(){return qu},ip1:function(){return Zu},CZH:function(){return ju},hGG:function(){return Bl},z2F:function(){return Tl},sBO:function(){return zs},Sil:function(){return rl},_Vd:function(){return vs},EJc:function(){return Qu},SBq:function(){return ys},qLn:function(){return Ri},vpe:function(){return bu},gxx:function(){return bo},tBr:function(){return Fn},XFs:function(){return R},OlP:function(){return un},zs3:function(){return Lo},ZZ4:function(){return Us},aQg:function(){return Zs},soG:function(){return Wu},YKP:function(){return eu},v3s:function(){return Il},h0i:function(){return $s},PXZ:function(){return xl},R0b:function(){return sl},FiY:function(){return Nn},Lbi:function(){return Yu},g9A:function(){return zu},n_E:function(){return wu},Qsj:function(){return Cs},FYo:function(){return bs},JOm:function(){return Li},Tiy:function(){return xs},q3G:function(){return wi},tp0:function(){return Un},EAV:function(){return Ml},Rgc:function(){return Qs},dDg:function(){return pl},DyG:function(){return cn},GfV:function(){return Es},s_b:function(){return nu},ifc:function(){return N},eFA:function(){return El},G48:function(){return Cl},Gpc:function(){return v},f3M:function(){return Tn},X6Q:function(){return bl},_c5:function(){return Nl},VLi:function(){return _l},c2e:function(){return Ku},zSh:function(){return wo},wAp:function(){return ns},vHH:function(){return g},EiD:function(){return bi},mCW:function(){return oi},qzn:function(){return Kn},JVY:function(){return Qn},pB0:function(){return ei},eBb:function(){return Xn},L6k:function(){return Jn},LAX:function(){return $n},cg1:function(){return $a},Tjo:function(){return Fl},kL8:function(){return es},yhl:function(){return Wn},dqk:function(){return q},sIi:function(){return zo},CqO:function(){return ca},QGY:function(){return ua},F4k:function(){return la},RDi:function(){return Ae},AaK:function(){return f},z3N:function(){return Gn},qOj:function(){return No},TTD:function(){return ye},_Bn:function(){return fs},xp6:function(){return Cr},uIk:function(){return Wo},Tol:function(){return Pa},Gre:function(){return Ga},ekj:function(){return Ta},Suo:function(){return Lu},Xpm:function(){return $},lG2:function(){return ae},Yz7:function(){return C},cJS:function(){return w},oAB:function(){return ie},Yjl:function(){return se},Y36:function(){return $o},_UZ:function(){return ra},BQk:function(){return aa},ynx:function(){return oa},qZA:function(){return ia},TgZ:function(){return na},EpF:function(){return sa},n5z:function(){return nn},Ikx:function(){return Ka},LFG:function(){return On},$8M:function(){return on},NdJ:function(){return ha},CRH:function(){return Fu},kcU:function(){return bt},O4$:function(){return kt},oxw:function(){return _a},ALo:function(){return gu},lcZ:function(){return yu},Hsn:function(){return ya},F$t:function(){return ga},Q6J:function(){return ea},s9C:function(){return ka},VKq:function(){return _u},iGM:function(){return Du},MAs:function(){return Xo},CHM:function(){return Ye},oJD:function(){return xi},LSH:function(){return Ei},kYT:function(){return re},Udp:function(){return Oa},WFA:function(){return fa},d8E:function(){return Wa},YNc:function(){return Jo},_uU:function(){return qa},Oqu:function(){return Va},hij:function(){return Ha},AsE:function(){return za},lnq:function(){return Ya},Gf:function(){return Mu}});var i=n(9765),r=n(5319),o=n(7574),a=n(6682),s=n(2441),u=n(1307);function l(){return new i.xQ}function c(e){for(var t in e)if(e[t]===c)return t;throw Error("Could not find renamed property on target object.")}function h(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function f(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(f).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function d(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var p=c({__forward_ref__:c});function v(e){return e.__forward_ref__=v,e.toString=function(){return f(this())},e}function _(e){return m(e)?e():e}function m(e){return"function"==typeof e&&e.hasOwnProperty(p)&&e.__forward_ref__===v}var g=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(_wrapNativeSuper(Error));function y(e){return"string"==typeof e?e:null==e?"":String(e)}function k(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():y(e)}function b(e,t){var n=t?" in ".concat(t):"";throw new g("201","No provider for ".concat(k(e)," found").concat(n))}function C(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function w(e){return{providers:e.providers||[],imports:e.imports||[]}}function x(e){return E(e,O)||E(e,P)}function E(e,t){return e.hasOwnProperty(t)?e[t]:null}function S(e){return e&&(e.hasOwnProperty(T)||e.hasOwnProperty(I))?e[T]:null}var A,O=c({"\u0275prov":c}),T=c({"\u0275inj":c}),P=c({ngInjectableDef:c}),I=c({ngInjectorDef:c}),R=((R=R||{})[R.Default=0]="Default",R[R.Host=1]="Host",R[R.Self=2]="Self",R[R.SkipSelf=4]="SkipSelf",R[R.Optional=8]="Optional",R);function D(e){var t=A;return A=e,t}function M(e,t,n){var i=x(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&R.Optional?null:void 0!==t?t:void b(f(e),"Injector")}function L(e){return{toString:e}.toString()}var F=((F=F||{})[F.OnPush=0]="OnPush",F[F.Default=1]="Default",F),N=((N=N||{})[N.Emulated=0]="Emulated",N[N.None=2]="None",N[N.ShadowDom=3]="ShadowDom",N),U="undefined"!=typeof globalThis&&globalThis,B="undefined"!=typeof window&&window,Z="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,q=U||j||B||Z,V={},H=[],z=c({"\u0275cmp":c}),Y=c({"\u0275dir":c}),G=c({"\u0275pipe":c}),K=c({"\u0275mod":c}),W=c({"\u0275loc":c}),Q=c({"\u0275fac":c}),J=c({__NG_ELEMENT_ID__:c}),X=0;function $(e){return L(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===F.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||H,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||N.Emulated,id:"c",styles:e.styles||H,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=X++,n.inputs=oe(e.inputs,t),n.outputs=oe(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(ee)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(te)}:null,n})}function ee(e){return ue(e)||function(e){return e[Y]||null}(e)}function te(e){return function(e){return e[G]||null}(e)}var ne={};function ie(e){return L(function(){var t={type:e.type,bootstrap:e.bootstrap||H,declarations:e.declarations||H,imports:e.imports||H,exports:e.exports||H,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ne[e.id]=e.type),t})}function re(e,t){return L(function(){var n=le(e,!0);n.declarations=t.declarations||H,n.imports=t.imports||H,n.exports=t.exports||H})}function oe(e,t){if(null==e)return V;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var ae=$;function se(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ue(e){return e[z]||null}function le(e,t){var n=e[K]||null;if(!n&&!0===t)throw new Error("Type ".concat(f(e)," does not have '\u0275mod' property."));return n}function ce(e){return Array.isArray(e)&&"object"==typeof e[1]}function he(e){return Array.isArray(e)&&!0===e[1]}function fe(e){return 0!=(8&e.flags)}function de(e){return 2==(2&e.flags)}function pe(e){return 1==(1&e.flags)}function ve(e){return null!==e.template}function _e(e){return 0!=(512&e[2])}function me(e,t){return e.hasOwnProperty(Q)?e[Q]:null}var ge=function(){function e(t,n,i){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function ye(){return ke}function ke(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ce),be}function be(){var e=xe(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===V)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Ce(e,t,n,i){var r=xe(e)||function(e,t){return e[we]=t}(e,{previous:V,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],u=a[s];o[s]=new ge(u&&u.currentValue,t,a===V),e[i]=t}ye.ngInherit=!0;var we="__ngSimpleChanges__";function xe(e){return e[we]||null}var Ee,Se="http://www.w3.org/2000/svg";function Ae(e){Ee=e}function Oe(){return void 0!==Ee?Ee:"undefined"!=typeof document?document:void 0}function Te(e){return!!e.listen}var Pe={createRenderer:function(e,t){return Oe()}};function Ie(e){for(;Array.isArray(e);)e=e[0];return e}function Re(e,t){return Ie(t[e])}function De(e,t){return Ie(t[e.index])}function Me(e,t){return e.data[t]}function Le(e,t){return e[t]}function Fe(e,t){var n=t[e];return ce(n)?n:n[0]}function Ne(e){return 4==(4&e[2])}function Ue(e){return 128==(128&e[2])}function Be(e,t){return null==t?null:e[t]}function Ze(e){e[18]=0}function je(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var qe={lFrame:dt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ve(){return qe.bindingsEnabled}function He(){return qe.lFrame.lView}function ze(){return qe.lFrame.tView}function Ye(e){return qe.lFrame.contextLView=e,e[8]}function Ge(){for(var e=Ke();null!==e&&64===e.type;)e=e.parent;return e}function Ke(){return qe.lFrame.currentTNode}function We(e,t){var n=qe.lFrame;n.currentTNode=e,n.isParent=t}function Qe(){return qe.lFrame.isParent}function Je(){qe.lFrame.isParent=!1}function Xe(){return qe.isInCheckNoChangesMode}function $e(e){qe.isInCheckNoChangesMode=e}function et(){var e=qe.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function tt(){return qe.lFrame.bindingIndex}function nt(){return qe.lFrame.bindingIndex++}function it(e){var t=qe.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function rt(e,t){var n=qe.lFrame;n.bindingIndex=n.bindingRootIndex=e,ot(t)}function ot(e){qe.lFrame.currentDirectiveIndex=e}function at(e){var t=qe.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function st(){return qe.lFrame.currentQueryIndex}function ut(e){qe.lFrame.currentQueryIndex=e}function lt(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function ct(e,t,n){if(n&R.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&R.Host||(i=lt(r),null===i||(r=r[15],10&i.type))););if(null===i)return!1;t=i,e=r}var o=qe.lFrame=ft();return o.currentTNode=t,o.lView=e,!0}function ht(e){var t=ft(),n=e[1];qe.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ft(){var e=qe.lFrame,t=null===e?null:e.child;return null===t?dt(e):t}function dt(e){var t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function pt(){var e=qe.lFrame;return qe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var vt=pt;function _t(){var e=pt();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function mt(){return qe.lFrame.selectedIndex}function gt(e){qe.lFrame.selectedIndex=e}function yt(){var e=qe.lFrame;return Me(e.tView,e.selectedIndex)}function kt(){qe.lFrame.currentNamespace=Se}function bt(){qe.lFrame.currentNamespace=null}function Ct(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[s]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var Ot=function e(t,n,i){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Tt(e,t,n){for(var i=Te(e),r=0;rt){a=o-1;break}}}for(;o>16}(e),i=t;n>0;)i=i[15],n--;return i}var Nt=!0;function Ut(e){var t=Nt;return Nt=e,t}var Bt=0;function Zt(e,t){var n=qt(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,jt(i.data,e),jt(t,null),jt(i.blueprint,null));var r=Vt(e,t),o=e.injectorIndex;if(Mt(r))for(var a=Lt(r),s=Ft(r,t),u=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|u[a+l];return t[o+8]=r,o}function jt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function qt(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Vt(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Ht(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(i=n[J]),null==i&&(i=n[J]=Bt++);var r=255&i;t.data[e+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:R.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(J)?e[J]:void 0;return"number"==typeof t?t>=0?255&t:Wt:t}(n);if("function"==typeof o){if(!ct(t,e,i))return i&R.Host?zt(r,n,i):Yt(t,n,i,r);try{var a=o(i);if(null!=a||i&R.Optional)return a;b(n)}finally{vt()}}else if("number"==typeof o){var s=null,u=qt(e,t),l=-1,c=i&R.Host?t[16][6]:null;for((-1===u||i&R.SkipSelf)&&(-1!==(l=-1===u?Vt(e,t):t[u+8])&&en(i,!1)?(s=t[1],u=Lt(l),t=Ft(l,t)):u=-1);-1!==u;){var h=t[1];if($t(o,u,h.data)){var f=Qt(u,t,n,s,i,c);if(f!==Kt)return f}-1!==(l=t[u+8])&&en(i,t[1].data[u+8]===c)&&$t(o,u,t)?(s=h,u=Lt(l),t=Ft(l,t)):u=-1}}}return Yt(t,n,i,r)}var Kt={};function Wt(){return new tn(Ge(),He())}function Qt(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],u=Jt(s,a,n,null==i?de(s)&&Nt:i!=a&&0!=(3&s.type),r&R.Host&&o===s);return null!==u?Xt(t,a,u,s):Kt}function Jt(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,l=o>>20,c=r?s+l:e.directiveEnd,h=i?s:s+l;h=u&&f.type===n)return h}if(r){var d=a[u];if(d&&ve(d)&&d.type===n)return u}return null}function Xt(e,t,n,i){var r=e[n],o=t.data;if(function(e){return e instanceof Ot}(r)){var a=r;a.resolving&&function(e,t){throw new g("200","Circular dependency in DI detected for ".concat(e))}(k(o[n]));var s=Ut(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?D(a.injectImpl):null;ct(e,i,R.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,o=i.ngOnInit,a=i.ngDoCheck;if(r){var s=ke(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==u&&D(u),Ut(s),a.resolving=!1,vt()}}return r}function $t(e,t,n){return!!(n[t+(e>>5)]&1<=e.length?e.push(n):e.splice(t,0,n)}function pn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function vn(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function mn(e,t){var n=gn(e,t);if(n>=0)return e[1|n]}function gn(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var yn,kn={},bn="__NG_DI_FLAG__",Cn="ngTempTokenPath",wn=/\n/gm,xn="__source",En=c({provide:String,useValue:c});function Sn(e){var t=yn;return yn=e,t}function An(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.Default;if(void 0===yn)throw new Error("inject() must be called from an injection context");return null===yn?M(e,void 0,t):yn.get(e,t&R.Optional?null:void 0,t)}function On(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.Default;return(A||An)(_(e),t)}var Tn=On;function Pn(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=f(t);if(Array.isArray(t))r=t.map(f).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):f(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(wn,"\n "))}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[Cn]=null,e}var Mn,Ln,Fn=In(sn("Inject",function(e){return{token:e}}),-1),Nn=In(sn("Optional"),8),Un=In(sn("SkipSelf"),4);function Bn(e){var t;return(null===(t=function(){if(void 0===Mn&&(Mn=null,q.trustedTypes))try{Mn=q.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(e){}return Mn}())||void 0===t?void 0:t.createHTML(e))||e}function Zn(e){var t;return(null===(t=function(){if(void 0===Ln&&(Ln=null,q.trustedTypes))try{Ln=q.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(e){}return Ln}())||void 0===t?void 0:t.createHTML(e))||e}var jn=function(){function e(t){_classCallCheck(this,e),this.changingThisBreaksApplicationSecurity=t}return _createClass(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity," (see https://g.co/ng/security#xss)")}}]),e}(),qn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(jn),Vn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(jn),Hn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(jn),zn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(jn),Yn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(jn);function Gn(e){return e instanceof jn?e.changingThisBreaksApplicationSecurity:e}function Kn(e,t){var n=Wn(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function Wn(e){return e instanceof jn&&e.getTypeName()||null}function Qn(e){return new qn(e)}function Jn(e){return new Vn(e)}function Xn(e){return new Hn(e)}function $n(e){return new zn(e)}function ei(e){return new Yn(e)}var ti=function(){function e(t){_classCallCheck(this,e),this.inertDocumentHelper=t}return _createClass(e,[{key:"getInertBodyElement",value:function(e){e=""+e;try{var t=(new window.DOMParser).parseFromString(Bn(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}]),e}(),ni=function(){function e(t){if(_classCallCheck(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return _createClass(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Bn(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Bn(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();fi.hasOwnProperty(t)&&!li.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(ki(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),gi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yi=/([^\#-~ |!])/g;function ki(e){return e.replace(/&/g,"&").replace(gi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(yi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function bi(e,t){var n=null;try{ui=ui||function(e){var t=new ni(e);return function(){try{return!!(new window.DOMParser).parseFromString(Bn(""),"text/html")}catch(e){return!1}}()?new ti(t):t}(e);var i=t?String(t):"";n=ui.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=ui.getInertBodyElement(i)}while(i!==o);return Bn((new mi).sanitizeChildren(Ci(n)||n))}finally{if(n)for(var a=Ci(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Ci(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var wi=((wi=wi||{})[wi.NONE=0]="NONE",wi[wi.HTML=1]="HTML",wi[wi.STYLE=2]="STYLE",wi[wi.SCRIPT=3]="SCRIPT",wi[wi.URL=4]="URL",wi[wi.RESOURCE_URL=5]="RESOURCE_URL",wi);function xi(e){var t=Si();return t?Zn(t.sanitize(wi.HTML,e)||""):Kn(e,"HTML")?Zn(Gn(e)):bi(Oe(),y(e))}function Ei(e){var t=Si();return t?t.sanitize(wi.URL,e)||"":Kn(e,"URL")?Gn(e):oi(y(e))}function Si(){var e=He();return e&&e[12]}var Ai="__ngContext__";function Oi(e,t){e[Ai]=t}function Ti(e){var t=function(e){return e[Ai]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Pi(e){return e.ngOriginalError}function Ii(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&(e[n-1][4]=i[4]);var o=pn(e,10+t);!function(e,t){or(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);var a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function zi(e,t){if(!(256&t[2])){var n=t[11];Te(n)&&n.destroyNode&&or(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Yi(e[1],e);for(;t;){var n=null;if(ce(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)ce(t)&&Yi(t[1],t),t=t[3];null===t&&(t=e),ce(t)&&Yi(t[1],t),n=t&&t[4]}t=n}}(t)}}function Yi(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i=0?i[r=l]():i[r=-l].unsubscribe(),o+=2}else{var c=i[r=n[o+1]];n[o].call(c)}if(null!==i){for(var h=r+1;ho?"":r[c+1].toLowerCase();var f=8&i?h:null;if(f&&-1!==lr(f,l,0)||2&i&&l!==h){if(vr(i))return!1;a=!0}}}}else{if(!a&&!vr(i)&&!vr(u))return!1;if(a&&vr(u))continue;a=!1,i=u|1&i}}return vr(i)||a}function vr(e){return 0==(1&e)}function _r(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!vr(a)&&(t+=yr(o,r),r=""),i=a,o=o||!vr(i);n++}return""!==r&&(t+=yr(o,r)),t}var br={};function Cr(e){wr(ze(),He(),mt()+e,Xe())}function wr(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&wt(t,r,n)}else{var o=e.preOrderHooks;null!==o&&xt(t,o,0,n)}gt(n)}function xr(e,t){return e<<17|t<<2}function Er(e){return e>>17&32767}function Sr(e){return 2|e}function Ar(e){return(131068&e)>>2}function Or(e,t){return-131069&e|t<<2}function Tr(e){return 1|e}function Pr(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&wr(e,t,20,Xe()),n(i,r)}finally{gt(o)}}function Ur(e,t,n){if(fe(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:De,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(i,r,a)}}function Kr(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Wr(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Qr(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&ro(n)}}function ro(e){for(var t=Ui(e);null!==t;t=Bi(t))for(var n=10;n0&&ro(i)}var o=e[1].components;if(null!==o)for(var a=0;a0&&ro(s)}}function oo(e,t){var n=Fe(t,e),i=n[1];(function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:kn;if(t===kn){var n=new Error("NullInjectorError: No provider for ".concat(f(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),wo=new un("Set Injector scope."),xo={},Eo={};function So(){return void 0===ko&&(ko=new Co),ko}function Ao(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Oo(e,n,t||So(),i)}var Oo=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&fn(n,function(e){return r.processProvider(e,t,n)}),fn([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(bo,Io(void 0,this));var s=this.records.get(wo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:f(t))}return _createClass(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.Default;this.assertNotDestroyed();var i,r=Sn(this),o=D(void 0);try{if(!(n&R.SkipSelf)){var a=this.records.get(e);if(void 0===a){var s=("function"==typeof(i=e)||"object"==typeof i&&i instanceof un)&&x(e);a=s&&this.injectableDefInScope(s)?Io(To(e),xo):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(n&R.Self?So():this.parent).get(e,t=n&R.Optional&&t===kn?null:t)}catch(u){if("NullInjectorError"===u.name){if((u[Cn]=u[Cn]||[]).unshift(f(e)),r)throw u;return Dn(u,e,"R3InjectorError",this.source)}throw u}finally{D(o),Sn(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(f(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=_(e)))return!1;var r=S(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=S(o)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(a);try{fn(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,r=t.providers;fn(r,function(e){return i.processProvider(e,n,r||H)})},c=0;c0){var n=vn(t,"?");throw new Error("Can't resolve all parameters for ".concat(f(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[O]||e[P]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" 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 "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Po(e,t,n){var i;if(Do(e)){var r=_(e);return me(r)||To(r)}if(Ro(e))i=function(){return _(e.useValue)};else if(function(e){return!(!e||!e.useFactory)}(e))i=function(){return e.useFactory.apply(e,_toConsumableArray(Pn(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return On(_(e.useExisting))};else{var o=_(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return me(o)||To(o);i=function(){return _construct(o,_toConsumableArray(Pn(e.deps)))}}return i}function Io(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Ro(e){return null!==e&&"object"==typeof e&&En in e}function Do(e){return"function"==typeof e}var Mo=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=Ao(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},Lo=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Mo(e,t,""):Mo(e.providers,e.parent,e.name||"")}}]),e}();function Fo(e,t){Ct(Ti(e)[1],Ge())}function No(e){for(var t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0,i=[e];t;){var r=void 0;if(ve(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=Uo(e.inputs),o.declaredInputs=Uo(e.declaredInputs),o.outputs=Uo(e.outputs);var a=r.hostBindings;a&&jo(e,a);var s=r.viewQuery,u=r.contentQueries;if(s&&Bo(e,s),u&&Zo(e,u),h(e.inputs,r.inputs),h(e.declaredInputs,r.declaredInputs),h(e.outputs,r.outputs),ve(r)&&r.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var f=0;f=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Rt(r.hostAttrs,n=Rt(n,r.hostAttrs))}}(i)}function Uo(e){return e===V?{}:e===H?[]:e}function Bo(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function Zo(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function jo(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}Lo.THROW_IF_NOT_FOUND=kn,Lo.NULL=new Co,Lo.\u0275prov=C({token:Lo,providedIn:"any",factory:function(){return On(bo)}}),Lo.__NG_ELEMENT_ID__=-1;var qo=null;function Vo(){if(!qo){var e=q.Symbol;if(e&&e.iterator)qo=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:R.Default,n=He();return null===n?On(e,t):Gt(Ge(),n,_(e),t)}function ea(e,t,n){var i=He();return Go(i,nt(),t)&&zr(ze(),yt(),i,e,t,i[11],n,!1),ea}function ta(e,t,n,i,r){var o=r?"class":"style";mo(e,n,t.inputs[o],o,i)}function na(e,t,n,i){var r=He(),o=ze(),a=20+e,s=r[11],u=r[a]=qi(s,t,qe.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,u=Rr(t,e,2,r,Be(s,o));return Yr(t,n,u,Be(s,a)),null!==u.attrs&&yo(u,u.attrs,!1),null!==u.mergedAttrs&&yo(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,o,r,0,t,n,i):o.data[a];We(l,!0);var c=l.mergedAttrs;null!==c&&Tt(s,u,c);var h=l.classes;null!==h&&ur(s,u,h);var f=l.styles;null!==f&&sr(s,u,f),64!=(64&l.flags)&&er(o,r,u,l),0===qe.lFrame.elementDepthCount&&Oi(u,r),qe.lFrame.elementDepthCount++,pe(l)&&(Br(o,r,l),Ur(o,l,r)),null!==i&&Zr(r,l)}function ia(){var e=Ge();Qe()?Je():We(e=e.parent,!1);var t=e;qe.lFrame.elementDepthCount--;var n=ze();n.firstCreatePass&&(Ct(n,e),fe(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&ta(n,t,He(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&ta(n,t,He(),t.stylesWithoutHost,!1)}function ra(e,t,n,i){na(e,t,n,i),ia()}function oa(e,t,n){var i=He(),r=ze(),o=e+20,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=Be(o,i),s=Rr(t,e,8,"ng-container",a);return null!==a&&yo(s,a,!0),Yr(t,n,s,Be(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,r,i,t,n):r.data[o];We(a,!0);var s=i[o]=i[11].createComment("");er(r,i,s,a),Oi(s,i),pe(a)&&(Br(r,i,a),Ur(r,a,i)),null!=n&&Zr(i,a)}function aa(){var e=Ge(),t=ze();Qe()?Je():We(e=e.parent,!1),t.firstCreatePass&&(Ct(t,e),fe(e)&&t.queries.elementEnd(e))}function sa(){return He()}function ua(e){return!!e&&"function"==typeof e.then}function la(e){return!!e&&"function"==typeof e.subscribe}var ca=la;function ha(e,t,n,i){var r=He(),o=ze(),a=Ge();return da(o,r,r[11],a,e,t,!!n,i),ha}function fa(e,t){var n=Ge(),i=He(),r=ze();return da(r,i,vo(at(r.data),n,i),n,e,t,!1),fa}function da(e,t,n,i,r,o,a,s){var u=pe(i),l=e.firstCreatePass&&po(e),c=t[8],h=fo(t),f=!0;if(3&i.type||s){var d=De(i,t),p=s?s(d):d,v=h.length,_=s?function(e){return s(Ie(e[i.index]))}:i.index;if(Te(n)){var m=null;if(!s&&u&&(m=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,f=!1;else{o=va(i,t,c,o,!1);var g=n.listen(p,r,o);h.push(o,g),l&&l.push(r,_,v,v+1)}}else o=va(i,t,c,o,!0),p.addEventListener(r,o,a),h.push(o),l&&l.push(r,_,v,a)}else o=va(i,t,c,o,!1);var y,k=i.outputs;if(f&&null!==k&&(y=k[r])){var b=y.length;if(b)for(var C=0;C0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(qe.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,qe.lFrame.contextLView))[8]}(e)}function ma(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=He(),r=ze(),o=Rr(r,20+e,16,null,n||null);null===o.projection&&(o.projection=t),Je(),64!=(64&o.flags)&&function(e,t,n){ar(t[11],0,t,n,Gi(e,n,t),Xi(n.parent||t[6],n,t))}(r,i,o)}function ka(e,t,n){return ba(e,"",t,"",n),ka}function ba(e,t,n,i,r){var o=He(),a=Qo(o,t,n,i);return a!==br&&zr(ze(),yt(),o,e,a,o[11],r,!1),ba}function Ca(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?Er(o):Ar(o),u=!1;0!==s&&(!1===u||a);){var l=e[s+1];wa(e[s],t)&&(u=!0,e[s+1]=i?Tr(l):Sr(l)),s=i?Er(l):Ar(l)}u&&(e[n+1]=i?Sr(o):Tr(o))}function wa(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&gn(e,t)>=0}var xa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ea(e){return e.substring(xa.key,xa.keyEnd)}function Sa(e,t){var n=xa.textEnd;return n===t?-1:(t=xa.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,xa.key=t,n),Aa(e,t,n))}function Aa(e,t,n){for(;t=0;n=Sa(t,n))_n(e,Ea(t),!0)}function Ra(e,t,n,i){var r=He(),o=ze(),a=it(2);o.firstUpdatePass&&La(o,e,a,i),t!==br&&Go(r,a,t)&&Ua(o,o.data[mt()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=f(Gn(e)))),e}(t,n),i,a)}function Da(e,t,n,i){var r=ze(),o=it(2);r.firstUpdatePass&&La(r,null,o,i);var a=He();if(n!==br&&Go(a,o,n)){var s=r.data[mt()];if(ja(s,i)&&!Ma(r,o)){var u=i?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(n=d(u,n||"")),ta(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===br&&(r=H);for(var u=0,l=0,c=0=e.expandoStartIndex}function La(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[mt()],a=Ma(e,n);ja(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=at(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Na(n=Fa(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=Fa(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Ar(i))return e[Er(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[Er(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Na(s=Fa(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i,r=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else l=n;if(r)if(0!==u){var f=Er(e[s+1]);e[i+1]=xr(f,s),0!==f&&(e[f+1]=Or(e[f+1],i)),e[s+1]=function(e,t){return 131071&e|t<<17}(e[s+1],i)}else e[i+1]=xr(s,0),0!==s&&(e[s+1]=Or(e[s+1],i)),s=i;else e[i+1]=xr(u,0),0===s?s=i:e[u+1]=Or(e[u+1],i),u=i;c&&(e[i+1]=Sr(e[i+1])),Ca(e,l,i,!0),Ca(e,l,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&gn(o,t)>=0&&(n[i+1]=Tr(n[i+1]))}(t,l,e,i,o),a=xr(s,u),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function Fa(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[r],l=Array.isArray(u),c=l?u[1]:u,h=null===c,f=n[r+1];f===br&&(f=h?H:void 0);var d=h?mn(f,i):c===i?f:void 0;if(l&&!Za(d)&&(d=mn(u,i)),Za(d)&&(a=d,s))return a;var p=e[r+1];r=s?Er(p):Ar(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(a=mn(v,i))}return a}function Za(e){return void 0!==e}function ja(e,t){return 0!=(e.flags&(t?16:32))}function qa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=He(),i=ze(),r=e+20,o=i.firstCreatePass?Rr(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return Te(e)?e.createText(t):e.createTextNode(t)}(n[11],t);er(i,n,a,o),We(o,!1)}function Va(e){return Ha("",e,""),Va}function Ha(e,t,n){var i=He(),r=Qo(i,e,t,n);return r!==br&&go(i,mt(),r),Ha}function za(e,t,n,i,r){var o=He(),a=function(e,t,n,i,r,o){var a=Ko(e,tt(),n,r);return it(2),a?t+y(n)+i+y(r)+o:br}(o,e,t,n,i,r);return a!==br&&go(o,mt(),a),za}function Ya(e,t,n,i,r,o,a){var s=He(),u=function(e,t,n,i,r,o,a,s){var u=function(e,t,n,i,r){var o=Ko(e,t,n,i);return Go(e,t+2,r)||o}(e,tt(),n,r,a);return it(3),u?t+y(n)+i+y(r)+o+y(a)+s:br}(s,e,t,n,i,r,o,a);return u!==br&&go(s,mt(),u),Ya}function Ga(e,t,n){Da(_n,Ia,Qo(He(),e,t,n),!0)}function Ka(e,t,n){var i=He();return Go(i,nt(),t)&&zr(ze(),yt(),i,e,t,i[11],n,!0),Ka}function Wa(e,t,n){var i=He();if(Go(i,nt(),t)){var r=ze(),o=yt();zr(r,o,i,e,t,vo(at(r.data),o,i),n,!0)}return Wa}var Qa=void 0,Ja=["en",[["a","p"],["AM","PM"],Qa],[["AM","PM"],Qa,Qa],[["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"]],Qa,[["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"]],Qa,[["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}",Qa,"{1} 'at' {0}",Qa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Xa={};function $a(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=ts(t);if(n)return n;var i=t.split("-")[0];if(n=ts(i))return n;if("en"===i)return Ja;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function es(e){return $a(e)[ns.PluralCase]}function ts(e){return e in Xa||(Xa[e]=q.ng&&q.ng.common&&q.ng.common.locales&&q.ng.common.locales[e]),Xa[e]}var ns=((ns=ns||{})[ns.LocaleId=0]="LocaleId",ns[ns.DayPeriodsFormat=1]="DayPeriodsFormat",ns[ns.DayPeriodsStandalone=2]="DayPeriodsStandalone",ns[ns.DaysFormat=3]="DaysFormat",ns[ns.DaysStandalone=4]="DaysStandalone",ns[ns.MonthsFormat=5]="MonthsFormat",ns[ns.MonthsStandalone=6]="MonthsStandalone",ns[ns.Eras=7]="Eras",ns[ns.FirstDayOfWeek=8]="FirstDayOfWeek",ns[ns.WeekendRange=9]="WeekendRange",ns[ns.DateFormat=10]="DateFormat",ns[ns.TimeFormat=11]="TimeFormat",ns[ns.DateTimeFormat=12]="DateTimeFormat",ns[ns.NumberSymbols=13]="NumberSymbols",ns[ns.NumberFormats=14]="NumberFormats",ns[ns.CurrencyCode=15]="CurrencyCode",ns[ns.CurrencySymbol=16]="CurrencySymbol",ns[ns.CurrencyName=17]="CurrencyName",ns[ns.Currencies=18]="Currencies",ns[ns.Directionality=19]="Directionality",ns[ns.PluralCase=20]="PluralCase",ns[ns.ExtraData=21]="ExtraData",ns),is="en-US";function rs(e){(function(e,t){null==e&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(t,e)})(e,"Expected localeId to be defined"),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function os(e,t,n,i,r){if(e=_(e),Array.isArray(e))for(var o=0;o>20;if(Do(e)||!e.multi){var p=new Ot(l,r,$o),v=us(u,t,r?h:h+d,f);-1===v?(Ht(Zt(c,s),a,u),as(a,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var m=us(u,t,h+d,f),g=us(u,t,h,h+d),y=m>=0&&n[m],k=g>=0&&n[g];if(r&&!k||!r&&!y){Ht(Zt(c,s),a,u);var b=function(e,t,n,i,r){var o=new Ot(e,n,$o);return o.multi=[],o.index=t,o.componentProviders=0,ss(o,r,i&&!n),o}(r?cs:ls,n.length,r,i,l);!r&&k&&(n[g].providerFactory=b),as(a,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(b),s.push(b)}else as(a,e,m>-1?m:g,ss(n[r?g:m],l,!r&&i));!r&&i&&k&&n[g].componentProviders++}}}function as(e,t,n,i){var r=Do(t);if(r||function(e){return!!e.useClass}(t)){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function ss(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function us(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=ze();if(i.firstCreatePass){var r=ve(e);os(n,i.data,i.blueprint,r,!0),os(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var ds=function e(){_classCallCheck(this,e)},ps=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(f(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),vs=function e(){_classCallCheck(this,e)};function _s(){}function ms(e,t){return new ys(De(e,t))}vs.NULL=new ps;var gs,ys=((gs=function e(t){_classCallCheck(this,e),this.nativeElement=t}).__NG_ELEMENT_ID__=function(){return ms(Ge(),He())},gs);function ks(e){return e instanceof ys?e.nativeElement:e}var bs=function e(){_classCallCheck(this,e)},Cs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return ws()},e}(),ws=function(){var e=He(),t=Fe(Ge().index,e);return function(e){return e[11]}(ce(t)?t:e)},xs=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=C({token:e,providedIn:"root",factory:function(){return null}}),e}(),Es=function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Ss=new Es("12.2.4"),As=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return zo(e)}},{key:"create",value:function(e){return new Ts(e)}}]),e}(),Os=function(e,t){return t},Ts=function(){function e(t){_classCallCheck(this,e),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=t||Os}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&i.push(Ie(o)),he(o))for(var a=10;a-1&&(Hi(e,n),pn(t,n))}this._attachedToViewContainer=!1}zi(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Vr(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){so(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){uo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){$e(!0);try{uo(e,t,n)}finally{$e(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,or(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Vs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._view=e,i}return _createClass(n,[{key:"detectChanges",value:function(){lo(this._view)}},{key:"checkNoChanges",value:function(){!function(e){$e(!0);try{lo(e)}finally{$e(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(qs),Hs=function(e){return function(e,t,n){if(de(e)&&!n){var i=Fe(e.index,t);return new qs(i,i)}return 47&e.type?new qs(t[16],t):null}(Ge(),He(),16==(16&e))},zs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Hs,e}(),Ys=[new Ms],Gs=new Us([new As]),Ks=new Zs(Ys),Ws=function(){return Xs(Ge(),He())},Qs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Ws,e}(),Js=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return _createClass(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Ir(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Mr(t,n,e),new qs(n)}}]),n}(Qs);function Xs(e,t){return 4&e.type?new Js(t,e,ms(e,t)):null}var $s=function e(){_classCallCheck(this,e)},eu=function e(){_classCallCheck(this,e)},tu=function(){return au(Ge(),He())},nu=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=tu,e}(),iu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return _createClass(n,[{key:"element",get:function(){return ms(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new tn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=Vt(this._hostTNode,this._hostLView);if(Mt(e)){var t=Ft(e,this._hostLView),n=Lt(e);return new tn(t[1].data[n+8],t)}return new tn(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=ru(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get($s,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(he(i[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=i[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var u=this._adjustIndex(t),l=this._lContainer;!function(e,t,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(nu);function ru(e){return e[8]}function ou(e){return e[8]||(e[8]=[])}function au(e,t){var n,i=t[e.index];if(he(i))n=i;else{var r;if(8&e.type)r=Ie(i);else{var o=t[11];r=o.createComment("");var a=De(e,t);Ki(o,Ji(o,a),r,function(e,t){return Te(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=no(i,t,r,e),ao(t,n)}return new iu(n,e,t)}var su={},uu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).ngModule=e,i}return _createClass(n,[{key:"resolveComponentFactory",value:function(e){var t=ue(e);return new hu(t,this.ngModule)}}]),n}(vs);function lu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var cu=new un("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Di}}),hu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(kr).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return _createClass(n,[{key:"inputs",get:function(){return lu(this.componentDef.inputs)}},{key:"outputs",get:function(){return lu(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,su,r);return o!==su||i===su?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(bs,Pe),u=a.get(xs,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Te(e))return e.selectRootElement(t,n===N.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(l,n,this.componentDef.encapsulation):qi(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?Se:"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:Di,clean:ho,playerHandler:null,flags:0},p=qr(0,null,null,1,0,null,null,null,null,null),v=Ir(null,p,d,f,null,null,s,l,u,a);ht(v);try{var _=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=Rr(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(yo(s,u,!0),null!==e&&(Tt(r,e,u),null!==s.classes&&ur(r,e,s.classes),null!==s.styles&&sr(r,e,s.styles)));var l=i.createRenderer(e,t),c=Ir(n,jr(t),null,t.onPush?64:16,n[20],s,i,l,null,null);return a.firstCreatePass&&(Ht(Zt(s,n),a,t.type),Wr(a,s),Jr(s,n.length,1)),ao(n,c),n[20]=c}(h,this.componentDef,v,s,l);if(h)if(n)Tt(l,h,["ng-version",Ss.full]);else{var m=function(e){for(var t=[],n=[],i=1,r=2;i0&&ur(l,h,y.join(" "))}if(o=Me(p,20),void 0!==t)for(var k=o.projection=[],b=0;b1&&void 0!==arguments[1]?arguments[1]:Lo.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.Default;return e===Lo||e===$s||e===bo?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}($s),vu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).moduleType=e,null!==le(e)&&function(e){var t=new Set;!function e(n){var i=le(n,!0),r=i.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(f(t)," vs ").concat(f(t.name)))}(r,du.get(r),n),du.set(r,n));var o,a=_createForOfIteratorHelper(Mi(i.imports));try{for(a.s();!(o=a.n()).done;){var s=o.value;t.has(s)||(t.add(s),e(s))}}catch(u){a.e(u)}finally{a.f()}}(e)}(e),i}return _createClass(n,[{key:"create",value:function(e){return new pu(this.moduleType,e)}}]),n}(eu);function _u(e,t,n,i){return mu(He(),et(),e,t,n,i)}function mu(e,t,n,i,r,o){var a=t+n;return Go(e,a,r)?function(e,t,n){return e[t]=n}(e,a+1,o?i.call(o,r):i(r)):function(e,t){var n=e[t];return n===br?void 0:n}(e,a+1)}function gu(e,t){var n,i=ze(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new g("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=me(n.type)),a=D($o);try{var s=Ut(!1),u=o();return Ut(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,He(),r,u),u}finally{D(a)}}function yu(e,t,n){var i=e+20,r=He(),o=Le(r,i);return function(e,t){return Ho.isWrapped(t)&&(t=Ho.unwrap(t),e[tt()]=br),t}(r,function(e,t){return e[1].data[t].pure}(r,i)?mu(r,et(),t,o.transform,n,o):o.transform(n))}function ku(e){return function(t){setTimeout(e,void 0,t)}}var bu=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=i,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var o,a,s,u=e,l=t||function(){return null},c=i;if(e&&"object"==typeof e){var h=e;u=null===(o=h.next)||void 0===o?void 0:o.bind(h),l=null===(a=h.error)||void 0===a?void 0:a.bind(h),c=null===(s=h.complete)||void 0===s?void 0:s.bind(h)}this.__isAsync&&(l=ku(l),u&&(u=ku(u)),c&&(c=ku(c)));var f=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,{next:u,error:l,complete:c});return e instanceof r.w&&e.add(f),f}}]),n}(i.xQ);function Cu(){return this._results[Vo()]()}var wu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classCallCheck(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Vo(),i=e.prototype;i[n]||(i[n]=Cu)}return _createClass(e,[{key:"changes",get:function(){return this._changes||(this._changes=new bu)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){var n=this;n.dirty=!1;var i=hn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,e),this.predicate=t,this.flags=n,this.read=i},Au=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(a[s/2]);else{for(var l=o[s+1],c=t[-u],h=10;h0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!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,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(On(sl))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}(),vl=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,gl.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return gl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function _l(e){gl=e}var ml,gl=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),yl=!0,kl=!1;function bl(){return kl=!0,yl}function Cl(){if(kl)throw new Error("Cannot enable prod mode after platform setup.");yl=!1}var wl=new un("AllowMultipleToken"),xl=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function El(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new un(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Sl();if(!o||o.injector.get(wl,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:wo,useValue:"platform"});!function(e){if(ml&&!ml.destroyed&&!ml.injector.get(wl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ml=e.get(Al);var t=e.get(zu,null);t&&t.forEach(function(e){return e()})}(Lo.create({providers:a,name:i}))}return function(e){var t=Sl();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Sl(){return ml&&!ml.destroyed?ml:null}var Al=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n=this,i=function(e,t){return"noop"===e?new dl:("zone.js"===e?void 0:e)||new sl({enableLongStackTrace:bl(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)})}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),r=[{provide:sl,useValue:i}];return i.run(function(){var o=Lo.create({providers:r,parent:n.injector,name:e.moduleType.name}),a=e.create(o),s=a.injector.get(Ri,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(function(){var e=i.onError.subscribe({next:function(e){s.handleError(e)}});a.onDestroy(function(){Pl(n._modules,a),e.unsubscribe()})}),function(e,i,r){try{var o=((s=a.injector.get(ju)).runInitializers(),s.donePromise.then(function(){return rs(a.injector.get(Wu,is)||is),n._moduleDoBootstrap(a),a}));return ua(o)?o.catch(function(t){throw i.runOutsideAngular(function(){return e.handleError(t)}),t}):o}catch(t){throw i.runOutsideAngular(function(){return e.handleError(t)}),t}var s}(s,i)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Ol({},n);return function(e,t,n){var i=new vu(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Tl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(f(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(On(Lo))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Ol(e,t){return Array.isArray(t)?t.reduce(Ol,e):Object.assign(Object.assign({},e),t)}var Tl=function(){var e=function(){function e(t,n,i,r,c){var h=this;_classCallCheck(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){h._zone.run(function(){h.tick()})}});var f=new o.y(function(e){h._stable=h._zone.isStable&&!h._zone.hasPendingMacrotasks&&!h._zone.hasPendingMicrotasks,h._zone.runOutsideAngular(function(){e.next(h._stable),e.complete()})}),d=new o.y(function(e){var t;h._zone.runOutsideAngular(function(){t=h._zone.onStable.subscribe(function(){sl.assertNotInAngularZone(),al(function(){!h._stable&&!h._zone.hasPendingMacrotasks&&!h._zone.hasPendingMicrotasks&&(h._stable=!0,e.next(!0))})})});var n=h._zone.onUnstable.subscribe(function(){sl.assertInAngularZone(),h._stable&&(h._stable=!1,h._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=(0,a.T)(f,d.pipe(function(e){return(0,u.x)()(function(e,t){return function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,s.N);return i.source=t,i.subjectFactory=n,i}}(l)(e))}))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof ds?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=function(e){return e.isBoundToModule}(n)?void 0:this._injector.get($s),o=n.create(Lo.NULL,[],t||n.selector,r),a=o.location.nativeElement,s=o.injector.get(pl,null),u=s&&o.injector.get(vl);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),Pl(i.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;){var i;t.value.detectChanges()}}catch(r){n.e(r)}finally{n.f()}}catch(i){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(i)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Pl(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Gu,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(On(sl),On(Lo),On(Ri),On(vs),On(ju))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Pl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Il=function e(){_classCallCheck(this,e)},Rl=function e(){_classCallCheck(this,e)},Dl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Ml=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||Dl}return _createClass(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=_slicedToArray(e.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n(8255)(r).then(function(e){return e[o]}).then(function(e){return Ll(e,r,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),i=t[0],r=t[1],o="NgFactory";return void 0===r&&(r="default",o=""),n(8255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+o]}).then(function(e){return Ll(e,i,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(On(rl),On(Rl,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Ll(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Fl=function(e){return null},Nl=El(null,"core",[{provide:Yu,useValue:"unknown"},{provide:Al,deps:[Lo]},{provide:vl,deps:[]},{provide:Ku,deps:[]}]),Ul=[{provide:Tl,useClass:Tl,deps:[sl,Lo,Ri,vs,ju]},{provide:cu,deps:[sl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:ju,useClass:ju,deps:[[new Nn,Zu]]},{provide:rl,useClass:rl,deps:[]},Vu,{provide:Us,useFactory:function(){return Gs},deps:[]},{provide:Zs,useFactory:function(){return Ks},deps:[]},{provide:Wu,useFactory:function(e){return rs(e=e||"undefined"!=typeof $localize&&$localize.locale||is),e},deps:[[new Fn(Wu),new Nn,new Un]]},{provide:Qu,useValue:"USD"}],Bl=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)(On(Tl))},e.\u0275mod=ie({type:e}),e.\u0275inj=w({providers:Ul}),e}()},665:function(e,t,n){"use strict";n.d(t,{Zs:function(){return ce},sg:function(){return ae},u5:function(){return fe},Cf:function(){return h},JU:function(){return c},a5:function(){return P},JL:function(){return I},F:function(){return ne},_Y:function(){return ie}});var i=n(3018),r=(n(8583),n(7574)),o=n(9796),a=n(8002),s=n(1555),u=n(4402);function l(e,t){return new r.y(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var l=(0,u.D)(e[s]),c=!1;n.add(l.subscribe({next:function(e){c||(c=!0,a++),r[s]=e},error:function(e){return n.error(e)},complete:function(){(++o===i||!c)&&(a===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},l=0;l0){var r=i.filter(function(e){return e!==t.validator});r.length!==i.length&&(n=!0,e.setValidators(r))}}if(null!==t.asyncValidator){var o=C(e);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(e){return e!==t.asyncValidator});a.length!==o.length&&(n=!0,e.setAsyncValidators(a))}}}var s=function(){};return M(t._rawValidators,s),M(t._rawAsyncValidators,s),n}function N(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function U(e,t){L(e,t)}function B(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Z(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var j="VALID",q="INVALID",V="PENDING",H="DISABLED";function z(e){return(W(e)?e.validators:e)||null}function Y(e){return Array.isArray(e)?g(e):e||null}function G(e,t){return(W(t)?t.asyncValidators:e)||null}function K(e){return Array.isArray(e)?y(e):e||null}function W(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Q=function(){function e(t,n){_classCallCheck(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Y(this._rawValidators),this._composedAsyncValidatorFn=K(this._rawAsyncValidators)}return _createClass(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===j}},{key:"invalid",get:function(){return this.status===q}},{key:"pending",get:function(){return this.status==V}},{key:"disabled",get:function(){return this.status===H}},{key:"enabled",get:function(){return this.status!==H}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Y(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=K(e)}},{key:"addValidators",value:function(e){this.setValidators(E(e,this._rawValidators))}},{key:"addAsyncValidators",value:function(e){this.setAsyncValidators(E(e,this._rawAsyncValidators))}},{key:"removeValidators",value:function(e){this.setValidators(S(e,this._rawValidators))}},{key:"removeAsyncValidators",value:function(e){this.setAsyncValidators(S(e,this._rawAsyncValidators))}},{key:"hasValidator",value:function(e){return x(this._rawValidators,e)}},{key:"hasAsyncValidator",value:function(e){return x(this._rawAsyncValidators,e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=V,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=H,this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=j,this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===j||this.status===V)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?H:j}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=V,this._hasOwnPendingAsyncValidator=!0;var n=p(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;var i=e;return t.forEach(function(e){i=i instanceof X?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof $&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?H:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(V)?V:this._anyControlsHaveStatus(q)?q:j}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){W(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),J=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this,z(r),G(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),e}return _createClass(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){Z(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){Z(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(Q),X=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,z(i),G(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return _createClass(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof J?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(Q),$=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,z(i),G(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return _createClass(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof J?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(Q),ee={provide:T,useExisting:(0,i.Gpc)(function(){return ne})},te=Promise.resolve(null),ne=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new i.vpe,o.form=new X({},g(e),y(r)),o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),R(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Z(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path),i=new X({});U(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;te.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,B(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.Y36(h,10),i.Y36(f,10))},e.\u0275dir=i.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([ee]),i.qOj]}),e}(),ie=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),re=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({}),e}(),oe={provide:T,useExisting:(0,i.Gpc)(function(){return ae})},ae=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this)).validators=e,o.asyncValidators=r,o.submitted=!1,o._onCollectionChange=function(){return o._updateDomValue()},o.directives=[],o.form=null,o.ngSubmit=new i.vpe,o._setValidators(e),o._setAsyncValidators(r),o}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(F(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return R(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){D(e.control||null,e,!1),Z(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,B(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(D(n||null,t),i instanceof J&&(R(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);U(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return F(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){L(this.form,this),this._oldForm&&F(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.Y36(h,10),i.Y36(f,10))},e.\u0275dir=i.lG2({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([oe]),i.qOj,i.TTD]}),e}(),se={provide:h,useExisting:(0,i.Gpc)(function(){return le}),multi:!0},ue={provide:h,useExisting:(0,i.Gpc)(function(){return ce}),multi:!0},le=function(){var e=function(){function e(){_classCallCheck(this,e),this._required=!1}return _createClass(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?function(e){return function(e){return null==e||0===e.length}(e.value)?{required:!0}:null}(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.lG2({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t.required?"":null)},inputs:{required:"required"},features:[i._Bn([se])]}),e}(),ce=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"validate",value:function(e){return this.required?function(e){return!0===e.value?null:{required:!0}}(e):null}}]),n}(le);return t.\u0275fac=function(n){return(e||(e=i.n5z(t)))(n||t)},t.\u0275dir=i.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t.required?"":null)},features:[i._Bn([ue]),i.qOj]}),t}(),he=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[re]]}),e}(),fe=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[he]}),e}()},1095:function(e,t,n){"use strict";n.d(t,{zs:function(){return p},lW:function(){return d},ot:function(){return v}});var i,r=n(2458),o=n(6237),a=n(3018),s=n(9238),u=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],f=(0,r.pj)((0,r.Id)((0,r.Kr)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}()))),d=((i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;_classCallCheck(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=_createForOfIteratorHelper(h);try{for(s.s();!(a=s.n()).done;){var u=a.value;o._hasHostAttributes(u)&&o._getHostElement().classList.add(u)}}catch(l){s.e(l)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return function(e){_inherits(i,e);var n=_createSuper(i);function i(){var e;_classCallCheck(this,i);for(var r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},A),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,u=t-r.top,l=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-a+"px",c.style.top=u-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(l,"ms"),this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var h=new S(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,!i.persistent&&(!e||!n._isPointerDown)&&h.fadeOut()},l),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},A),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=(0,u.fI)(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(T))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(P),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=(0,r.X6)(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,O)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(T.forEach(function(t){e._triggerElement.removeEventListener(t,e,O)}),this._pointerUpEventsRegistered&&P.forEach(function(t){e._triggerElement.removeEventListener(t,e,O)}))}}]),e}(),R=new i.OlP("mat-ripple-global-options"),D=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new I(this,n,t,i)}return _createClass(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(c.t4),i.Y36(R,8),i.Y36(h.Qb,8))},e.\u0275dir=i.lG2({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),M=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[y,c.ud],y]}),e}(),L=function(){var e=function e(t){_classCallCheck(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(i.Y36(h.Qb,8))},e.\u0275cmp=i.Xpm({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),F=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[y]]}),e}(),N=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),U=k(function(){return function e(){_classCallCheck(this,e)}}()),B=0,Z=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,r;return _classCallCheck(this,n),(i=t.call(this))._labelId="mat-optgroup-label-"+B++,i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(U);return e.\u0275fac=function(t){return new(t||e)(i.Y36(N,8))},e.\u0275dir=i.lG2({type:e,inputs:{label:"label"},features:[i.qOj]}),e}(),j=new i.OlP("MatOptgroup"),q=0,V=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,e),this.source=t,this.isUserInput=n},H=function(){var e=function(){function e(t,n,r,o){_classCallCheck(this,e),this._element=t,this._changeDetectorRef=n,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+q++,this.onSelectionChange=new i.vpe,this._stateChanges=new l.xQ}return _createClass(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=(0,u.Ig)(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){(e.keyCode===f.K5||e.keyCode===f.L_)&&!(0,f.Vb)(e)&&(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new V(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(void 0),i.Y36(Z))},e.\u0275dir=i.lG2({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),z=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){return _classCallCheck(this,n),t.call(this,e,i,r,o)}return n}(H);return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(N,8),i.Y36(j,8))},e.\u0275cmp=i.Xpm({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:_,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,d,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,p,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[s.O5,D,L],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function Y(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;an+i?Math.max(0,e-i+t):n}var K=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[M,s.ez,y,F]]}),e}()},2238:function(e,t,n){"use strict";n.d(t,{WI:function(){return O},uw:function(){return D},H8:function(){return U},ZT:function(){return L},xY:function(){return N},Is:function(){return Z},so:function(){return S},uh:function(){return F}});var i=n(625),r=n(7636),o=n(3018),a=n(2458),s=n(946),u=n(8583),l=n(9765),c=n(1439),h=n(5917),f=n(5435),d=n(5257),p=n(9761),v=n(521),_=n(7238),m=n(6461),g=n(9238);function y(e,t){}var k,b=function e(){_classCallCheck(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},C={dialogContainer:(0,_.X$)("dialogContainer",[(0,_.SB)("void, exit",(0,_.oB)({opacity:0,transform:"scale(0.7)"})),(0,_.SB)("enter",(0,_.oB)({transform:"none"})),(0,_.eR)("* => enter",(0,_.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,_.oB)({transform:"none",opacity:1}))),(0,_.eR)("* => void, * => exit",(0,_.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,_.oB)({opacity:0})))])},w=((k=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,s,u){var l;return _classCallCheck(this,n),(l=t.call(this))._elementRef=e,l._focusTrapFactory=i,l._changeDetectorRef=r,l._config=s,l._focusMonitor=u,l._animationStateChanged=new o.vpe,l._elementFocusedBeforeDialogWasOpened=null,l._closeInteractionType=null,l.attachDomPortal=function(e){return l._portalOutlet.hasAttached(),l._portalOutlet.attachDomPortal(e)},l._ariaLabelledBy=s.ariaLabelledBy||null,l._document=a,l}return _createClass(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=(0,v.ht)(),n=this._elementRef.nativeElement;(!t||t===this._document.body||t===n||n.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,v.ht)())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=(0,v.ht)();return e===t||e.contains(t)}}]),n}(r.en)).\u0275fac=function(e){return new(e||k)(o.Y36(o.SBq),o.Y36(g.qV),o.Y36(o.sBO),o.Y36(u.K0,8),o.Y36(b),o.Y36(g.tE))},k.\u0275dir=o.lG2({type:k,viewQuery:function(e,t){var n;1&e&&o.Gf(r.Pl,7),2&e&&o.iGM(n=o.CRH())&&(t._portalOutlet=n.first)},features:[o.qOj]}),k),x=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._state="enter",e}return _createClass(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(w);return t.\u0275fac=function(n){return(e||(e=o.n5z(t)))(n||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&o.WFA("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(o.Ikx("id",t._id),o.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),o.d8E("@dialogContainer",t._state))},features:[o.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&o.YNc(0,y,0,0,"ng-template",0)},directives:[r.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[C.dialogContainer]}}),t}(),E=0,S=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+E++;_classCallCheck(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new l.xQ,this._afterClosed=new l.xQ,this._beforeClosed=new l.xQ,this._state=0,n._id=r,n._animationStateChanged.pipe((0,f.h)(function(e){return"opened"===e.state}),(0,d.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe((0,f.h)(function(e){return"closed"===e.state}),(0,d.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe((0,f.h)(function(e){return e.keyCode===m.hY&&!i.disableClose&&!(0,m.Vb)(e)})).subscribe(function(e){e.preventDefault(),A(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():A(i,"mouse")})}return _createClass(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe((0,f.h)(function(e){return"closing"===e.state}),(0,d.q)(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function A(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var O=new o.OlP("MatDialogData"),T=new o.OlP("mat-dialog-default-options"),P=new o.OlP("mat-dialog-scroll-strategy"),I={provide:P,deps:[i.aV],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},R=function(){var e=function(){function e(t,n,i,r,o,a,s,u,h){var f=this;_classCallCheck(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=u,this._dialogDataToken=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.xQ,this._afterOpenedAtThisLevel=new l.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,c.P)(function(){return f.openDialogs.length?f._getAfterAllClosed():f._getAfterAllClosed().pipe((0,p.O)(void 0))}),this._scrollStrategy=a}return _createClass(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new b)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=o.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:b,useValue:t}]}),i=new r.C5(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var a=new this._dialogRefConstructor(n,t,i.id);if(e instanceof o.Rgc)t.attachTemplatePortal(new r.UE(e,null,{$implicit:i.data,dialogRef:a}));else{var s=this._createInjector(i,a,t),u=t.attachComponentPortal(new r.C5(e,i.viewContainerRef,s));a.componentInstance=u.instance}return a.updateSize(i.width,i.height).updatePosition(i.position),a}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!i||!i.get(s.Is,null,o.XFs.Optional))&&r.push({provide:s.Is,useValue:{value:e.direction,change:(0,h.of)()}}),o.zs3.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i!==e&&"SCRIPT"!==i.nodeName&&"STYLE"!==i.nodeName&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.aV),o.Y36(o.zs3),o.Y36(void 0),o.Y36(void 0),o.Y36(i.Xj),o.Y36(void 0),o.Y36(o.DyG),o.Y36(o.DyG),o.Y36(o.OlP))},e.\u0275dir=o.lG2({type:e}),e}(),D=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u){return _classCallCheck(this,n),t.call(this,e,i,o,s,u,a,S,x,O)}return n}(R);return e.\u0275fac=function(t){return new(t||e)(o.LFG(i.aV),o.LFG(o.zs3),o.LFG(u.Ye,8),o.LFG(T,8),o.LFG(P),o.LFG(e,12),o.LFG(i.Xj))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e}(),M=0,L=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.dialogRef=t,this._elementRef=n,this._dialog=i,this.type="button"}return _createClass(e,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=B(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}},{key:"_onButtonClick",value:function(e){A(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(S,8),o.Y36(o.SBq),o.Y36(D))},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&o.NdJ("click",function(e){return t._onButtonClick(e)}),2&e&&o.uIk("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[o.TTD]}),e}(),F=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+M++}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=B(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(S,8),o.Y36(o.SBq),o.Y36(D))},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&o.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),N=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),U=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function B(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}var Z=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({providers:[D,I],imports:[[i.U8,r.eL,a.BQ],a.BQ]}),e}()},8295:function(e,t,n){"use strict";n.d(t,{G_:function(){return K},o2:function(){return G},KE:function(){return W},Eo:function(){return U},lN:function(){return Q},hX:function(){return Z},R9:function(){return H}});var i=n(8553),r=n(8583),o=n(3018),a=n(2458),s=n(9490),u=n(9765),l=n(6682),c=n(2759),h=n(9761),f=n(6782),d=n(5257),p=n(7238),v=n(6237),_=n(946),m=n(521),g=["underline"],y=["connectionContainer"],k=["inputContainer"],b=["label"];function C(e,t){1&e&&(o.ynx(0),o.TgZ(1,"div",14),o._UZ(2,"div",15),o._UZ(3,"div",16),o._UZ(4,"div",17),o.qZA(),o.TgZ(5,"div",18),o._UZ(6,"div",15),o._UZ(7,"div",16),o._UZ(8,"div",17),o.qZA(),o.BQk())}function w(e,t){1&e&&(o.TgZ(0,"div",19),o.Hsn(1,1),o.qZA())}function x(e,t){if(1&e&&(o.ynx(0),o.Hsn(1,2),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.BQk()),2&e){var n=o.oxw(2);o.xp6(3),o.Oqu(n._control.placeholder)}}function E(e,t){1&e&&o.Hsn(0,3,["*ngSwitchCase","true"])}function S(e,t){1&e&&(o.TgZ(0,"span",23),o._uU(1," *"),o.qZA())}function A(e,t){if(1&e){var n=o.EpF();o.TgZ(0,"label",20,21),o.NdJ("cdkObserveContent",function(){return o.CHM(n),o.oxw().updateOutlineGap()}),o.YNc(2,x,4,1,"ng-container",12),o.YNc(3,E,1,0,"ng-content",12),o.YNc(4,S,2,0,"span",22),o.qZA()}if(2&e){var i=o.oxw();o.ekj("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),o.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),o.uIk("for",i._control.id)("aria-owns",i._control.id),o.xp6(2),o.Q6J("ngSwitchCase",!1),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function O(e,t){1&e&&(o.TgZ(0,"div",24),o.Hsn(1,4),o.qZA())}function T(e,t){if(1&e&&(o.TgZ(0,"div",25,26),o._UZ(2,"span",27),o.qZA()),2&e){var n=o.oxw();o.xp6(2),o.ekj("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function P(e,t){if(1&e&&(o.TgZ(0,"div"),o.Hsn(1,5),o.qZA()),2&e){var n=o.oxw();o.Q6J("@transitionMessages",n._subscriptAnimationState)}}function I(e,t){if(1&e&&(o.TgZ(0,"div",31),o._uU(1),o.qZA()),2&e){var n=o.oxw(2);o.Q6J("id",n._hintLabelId),o.xp6(1),o.Oqu(n.hintLabel)}}function R(e,t){if(1&e&&(o.TgZ(0,"div",28),o.YNc(1,I,2,2,"div",29),o.Hsn(2,6),o._UZ(3,"div",30),o.Hsn(4,7),o.qZA()),2&e){var n=o.oxw();o.Q6J("@transitionMessages",n._subscriptAnimationState),o.xp6(1),o.Q6J("ngIf",n.hintLabel)}}var D,M=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],L=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],F=new o.OlP("MatError"),N={transitionMessages:(0,p.X$)("transitionMessages",[(0,p.SB)("enter",(0,p.oB)({opacity:1,transform:"translateY(0%)"})),(0,p.eR)("void => enter",[(0,p.oB)({opacity:0,transform:"translateY(-5px)"}),(0,p.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},U=((D=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||D)},D.\u0275dir=o.lG2({type:D}),D),B=new o.OlP("MatHint"),Z=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["mat-label"]]}),e}(),j=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["mat-placeholder"]]}),e}(),q=new o.OlP("MatPrefix"),V=new o.OlP("MatSuffix"),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","matSuffix",""]],features:[o._Bn([{provide:V,useExisting:e}])]}),e}(),z=0,Y=(0,a.pj)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}(),"primary"),G=new o.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),K=new o.OlP("MatFormField"),W=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,l,c){var h;return _classCallCheck(this,n),(h=t.call(this,e))._changeDetectorRef=i,h._dir=o,h._defaults=a,h._platform=s,h._ngZone=l,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new u.xQ,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-"+z++,h._labelId="mat-form-field-label-"+z++,h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==c,h.appearance=a&&a.appearance?a.appearance:"legacy",h._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,h}return _createClass(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=(0,s.Ig)(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe((0,h.O)(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,f.R)(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe((0,f.R)(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),(0,l.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,f.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,c.R)(this._label.nativeElement,"transitionend").pipe((0,d.q)(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,_toConsumableArray(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,_toConsumableArray(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=e.children,l=this._getStartEnd(u[0].getBoundingClientRect()),c=0,h=0;h0?.75*c+10:0}for(var f=0;f-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(g);return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.SBq),r.Y36(i.t4),r.Y36(p.a5,10),r.Y36(p.F,8),r.Y36(p.sg,8),r.Y36(f.rD),r.Y36(v,10),r.Y36(c),r.Y36(r.R0b),r.Y36(d.G_,8))},e.\u0275dir=r.lG2({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&r.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(r.Ikx("disabled",t.disabled)("required",t.required),r.uIk("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),r.ekj("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[r._Bn([{provide:d.Eo,useExisting:e}]),r.qOj,r.TTD]}),e}(),k=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[f.rD],imports:[[h,d.lN,f.BQ],h,d.lN]}),e}()},7441:function(e,t,n){"use strict";n.d(t,{gD:function(){return z},LD:function(){return Y}});var i=n(625),r=n(8583),o=n(3018),a=n(2458),s=n(8295),u=n(9243),l=n(9238),c=n(9490),h=n(8345),f=n(6461),d=n(9765),p=n(1439),v=n(6682),_=n(9761),m=n(3190),g=n(5257),y=n(5435),k=n(8002),b=n(7519),C=n(6782),w=n(7238),x=n(946),E=n(665),S=["trigger"],A=["panel"];function O(e,t){if(1&e&&(o.TgZ(0,"span",8),o._uU(1),o.qZA()),2&e){var n=o.oxw();o.xp6(1),o.Oqu(n.placeholder)}}function T(e,t){if(1&e&&(o.TgZ(0,"span",12),o._uU(1),o.qZA()),2&e){var n=o.oxw(2);o.xp6(1),o.Oqu(n.triggerValue)}}function P(e,t){1&e&&o.Hsn(0,0,["*ngSwitchCase","true"])}function I(e,t){if(1&e&&(o.TgZ(0,"span",9),o.YNc(1,T,2,1,"span",10),o.YNc(2,P,1,0,"ng-content",11),o.qZA()),2&e){var n=o.oxw();o.Q6J("ngSwitch",!!n.customTrigger),o.xp6(2),o.Q6J("ngSwitchCase",!0)}}function R(e,t){if(1&e){var n=o.EpF();o.TgZ(0,"div",13),o.TgZ(1,"div",14,15),o.NdJ("@transformPanel.done",function(e){return o.CHM(n),o.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return o.CHM(n),o.oxw()._handleKeydown(e)}),o.Hsn(3,1),o.qZA(),o.qZA()}if(2&e){var i=o.oxw();o.Q6J("@transformPanelWrap",void 0),o.xp6(1),o.Gre("mat-select-panel ",i._getPanelTheme(),""),o.Udp("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),o.Q6J("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),o.uIk("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var D,M=[[["mat-select-trigger"]],"*"],L=["mat-select-trigger","*"],F={transformPanelWrap:(0,w.X$)("transformPanelWrap",[(0,w.eR)("* => void",(0,w.IO)("@transformPanel",[(0,w.pV)()],{optional:!0}))]),transformPanel:(0,w.X$)("transformPanel",[(0,w.SB)("void",(0,w.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,w.SB)("showing",(0,w.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,w.SB)("showing-multiple",(0,w.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,w.eR)("void => *",(0,w.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,w.eR)("* => void",(0,w.jt)("100ms 25ms linear",(0,w.oB)({opacity:0})))])},N=0,U=new o.OlP("mat-select-scroll-strategy"),B=new o.OlP("MAT_SELECT_CONFIG"),Z={provide:U,deps:[i.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},j=function e(t,n){_classCallCheck(this,e),this.source=t,this.value=n},q=(0,a.Kr)((0,a.sb)((0,a.Id)((0,a.FD)(function(){return function e(t,n,i,r,o){_classCallCheck(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o}}())))),V=new o.OlP("MatSelectTrigger"),H=((D=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,s,u,l,c,h,f,b,C,w,x){var E,S,A,O;return _classCallCheck(this,n),(E=t.call(this,s,a,l,c,f))._viewportRuler=e,E._changeDetectorRef=i,E._ngZone=r,E._dir=u,E._parentFormField=h,E._liveAnnouncer=w,E._defaultOptions=x,E._panelOpen=!1,E._compareWith=function(e,t){return e===t},E._uid="mat-select-"+N++,E._triggerAriaLabelledBy=null,E._destroy=new d.xQ,E._onChange=function(){},E._onTouched=function(){},E._valueId="mat-select-value-"+N++,E._panelDoneAnimatingStream=new d.xQ,E._overlayPanelClass=(null===(S=E._defaultOptions)||void 0===S?void 0:S.overlayPanelClass)||"",E._focused=!1,E.controlType="mat-select",E._required=!1,E._multiple=!1,E._disableOptionCentering=null!==(O=null===(A=E._defaultOptions)||void 0===A?void 0:A.disableOptionCentering)&&void 0!==O&&O,E.ariaLabel="",E.optionSelectionChanges=(0,p.P)(function(){var e=E.options;return e?e.changes.pipe((0,_.O)(e),(0,m.w)(function(){return v.T.apply(void 0,_toConsumableArray(e.map(function(e){return e.onSelectionChange})))})):E._ngZone.onStable.pipe((0,g.q)(1),(0,m.w)(function(){return E.optionSelectionChanges}))}),E.openedChange=new o.vpe,E._openedStream=E.openedChange.pipe((0,y.h)(function(e){return e}),(0,k.U)(function(){})),E._closedStream=E.openedChange.pipe((0,y.h)(function(e){return!e}),(0,k.U)(function(){})),E.selectionChange=new o.vpe,E.valueChange=new o.vpe,E.ngControl&&(E.ngControl.valueAccessor=_assertThisInitialized(E)),null!=(null==x?void 0:x.typeaheadDebounceInterval)&&(E._typeaheadDebounceInterval=x.typeaheadDebounceInterval),E._scrollStrategyFactory=C,E._scrollStrategy=E._scrollStrategyFactory(),E.tabIndex=parseInt(b)||0,E.id=E.id,E}return _createClass(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,c.Ig)(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=(0,c.Ig)(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=(0,c.Ig)(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=(0,c.su)(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,b.x)(),(0,C.R)(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,C.R)(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe((0,_.O)(null),(0,C.R)(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=t===f.JH||t===f.LH||t===f.oh||t===f.SV,i=t===f.K5||t===f.L_,r=this._keyManager;if(!r.isTyping()&&i&&!(0,f.Vb)(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=n===f.JH||n===f.LH,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||n!==f.K5&&n!==f.L_||!t.activeItem||(0,f.Vb)(e))if(!r&&this._multiple&&n===f.A&&e.ctrlKey){e.preventDefault();var o=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(o?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this._overlayDir.positionChange.pipe((0,g.q)(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new l.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,C.R)(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe((0,C.R)(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):!e._panelOpen&&!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=(0,v.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,C.R)(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),v.T.apply(void 0,_toConsumableArray(this.options.map(function(e){return e._stateChanges}))).pipe((0,C.R)(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(q)).\u0275fac=function(e){return new(e||D)(o.Y36(u.rL),o.Y36(o.sBO),o.Y36(o.R0b),o.Y36(a.rD),o.Y36(o.SBq),o.Y36(x.Is,8),o.Y36(E.F,8),o.Y36(E.sg,8),o.Y36(s.G_,8),o.Y36(E.a5,10),o.$8M("tabindex"),o.Y36(U),o.Y36(l.Kd),o.Y36(B,8))},D.\u0275dir=o.lG2({type:D,viewQuery:function(e,t){var n;1&e&&(o.Gf(S,5),o.Gf(A,5),o.Gf(i.pI,5)),2&e&&(o.iGM(n=o.CRH())&&(t.trigger=n.first),o.iGM(n=o.CRH())&&(t.panel=n.first),o.iGM(n=o.CRH())&&(t._overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[o.qOj,o.TTD]}),D),z=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return _createClass(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,C.R)(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"_canOpen",this).call(this)&&(_get(_getPrototypeOf(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(function(){e._triggerFontSize&&e._overlayDir.overlayRef&&e._overlayDir.overlayRef.overlayElement&&(e._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t=(0,a.CB)(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:(0,a.jH)((e+t)*n,n,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),_get(_getPrototypeOf(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new j(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this._overlayDir.offsetX=Math.round(e),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=(0,a.CB)(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(H);return t.\u0275fac=function(n){return(e||(e=o.n5z(t)))(n||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;(1&e&&(o.Suo(n,V,5),o.Suo(n,a.ey,5),o.Suo(n,a.K7,5)),2&e)&&(o.iGM(i=o.CRH())&&(t.customTrigger=i.first),o.iGM(i=o.CRH())&&(t.options=i),o.iGM(i=o.CRH())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&o.NdJ("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(o.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),o.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[o._Bn([{provide:s.Eo,useExisting:t},{provide:a.HF,useExisting:t}]),o.qOj],ngContentSelectors:L,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(o.F$t(M),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return t.toggle()}),o.TgZ(3,"div",2),o.YNc(4,O,2,1,"span",3),o.YNc(5,I,3,2,"span",4),o.qZA(),o.TgZ(6,"div",5),o._UZ(7,"div",6),o.qZA(),o.qZA(),o.YNc(8,R,4,14,"ng-template",7),o.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=o.MAs(1);o.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),o.xp6(3),o.Q6J("ngSwitch",t.empty),o.uIk("id",t._valueId),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngSwitchCase",!1),o.xp6(3),o.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[i.xu,r.RF,r.n9,i.pI,r.ED,r.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[F.transformPanelWrap,F.transformPanel]},changeDetection:0}),t}(),Y=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({providers:[Z],imports:[[r.ez,i.U8,a.Ng,a.BQ],u.ZD,s.lN,a.Ng,a.BQ]}),e}()},6237:function(e,t,n){"use strict";n.d(t,{Qb:function(){return Mt},PW:function(){return Ut}});var i=n(3018),r=n(9075),o=n(7238);function a(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function u(e){switch(e.length){case 0:return new o.ZN;case 1:return e[0];default:return new o.ZE(e)}}function l(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=[],u=[],l=-1,c=null;if(i.forEach(function(e){var n=e.offset,i=n==l,h=i&&c||{};Object.keys(e).forEach(function(n){var i=n,u=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,s),u){case o.k1:u=r[n];break;case o.l3:u=a[n];break;default:u=t.normalizeStyleValue(n,i,u,s)}h[i]=u}),i||u.push(h),c=h,l=n}),s.length){var h="\n - ";throw new Error("Unable to animate due to the following errors:".concat(h).concat(s.join(h)))}return u}function c(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&h(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&h(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&h(n,"destroy",e))})}}function h(e,t,n){var i=n.totalTime,r=f(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function f(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function d(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function p(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var v=function(e,t){return!1},_=function(e,t){return!1},m=function(e,t,n){return[]},g=s();(g||"undefined"!=typeof Element)&&(v=a()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},_=function(){if(g||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:_}(),m=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else U(e,n);return n}function Z(e,t,n){return n?t+":"+n+";":""}function j(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(oe(o,s)),"<"==a[0]&&("*"!=o||"*"!=s)&&t.push(oe(s,o))}(e,n,t)}):n.push(e),n}var ie=new Set(["true","1"]),re=new Set(["false","0"]);function oe(e,t){var n=ie.has(e)||re.has(e),i=ie.has(t)||re.has(t);return function(r,o){var a="*"==e||e==r,s="*"==t||t==o;return!a&&n&&"boolean"==typeof r&&(a=r?ie.has(e):re.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?ie.has(t):re.has(t)),a&&s}}var ae=new RegExp("s*:selfs*,?","g");function se(e,t,n){return new ue(e).build(t,n)}var ue=function(){function e(t){_classCallCheck(this,e),this._driver=t}return _createClass(e,[{key:"build",value:function(e,t){var n=new le(t);return this._resetContextStyleTimingState(n),ee(this,H(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,u=s.name;u.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,o.push(n.visitState(s,t))}),s.name=u}else if(1==e.type){var l=n.visitTransition(e,t);i+=l.queryCount,r+=l.depCount,a.push(l)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach(function(e){if(ce(e)){var t=e;Object.keys(t).forEach(function(e){Y(t[e]).forEach(function(e){o.hasOwnProperty(e)||r.add(e)})})}}),r.size){var a=K(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n=ee(this,H(e.animation),t);return{type:1,matchers:ne(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:he(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return ee(n,e,t)}),options:he(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=ee(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:he(e.options)}}},{key:"visitAnimate",value:function(e,t){var n=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return fe(N(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=fe(0,0,"");return r.dynamic=!0,r.strValue=i,r}return fe((n=n||N(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=n;var i,r=e.styles?e.styles:(0,o.oB)({});if(5==r.type)i=this.visitKeyframes(r,t);else{var a=e.styles,s=!1;if(!a){s=!0;var u={};n.easing&&(u.easing=n.easing),a=(0,o.oB)(u)}t.currentTime+=n.duration+n.delay;var l=this.visitStyle(a,t);l.isEmptyStep=s,i=l}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==o.l3?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(ce(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a=t.collectedStyles[t.currentQuerySelector],s=a[i],u=!0;s&&(o!=r&&o>=s.startTime&&r<=s.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(s.startTime,'ms" and "').concat(s.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),u=!1),o=s.startTime),u&&(a[i]={startTime:o,endTime:r}),t.options&&function(e,t,n){var i=t.params||{},r=Y(e);r.length&&r.forEach(function(e){i.hasOwnProperty(e)||n.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})}(e[i],t.options,t.errors)}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,u=0,l=e.steps.map(function(e){var i=n._makeStyleAst(e,t),l=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(ce(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(ce(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),s=s||c<0||c>1,a=a||c0&&r0?r==f?1:h*r:o[r],s=a*v;t.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:ee(this,H(e.animation),t),options:he(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:he(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:he(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(ae,"")),[e=e.replace(/@\*/g,R).replace(/@\w+/g,function(e){return R+"-"+e.substr(1)}).replace(/:animating/g,M),t]}(e.selector),2),o=r[0],a=r[1];t.currentQuerySelector=n.length?n+" "+o:o,d(t.collectedStyles,t.currentQuerySelector,{});var s=ee(this,H(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:he(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:N(e.timings,t.errors,!0);return{type:12,animation:ee(this,H(e.animation),t),timings:n,options:null}}}]),e}(),le=function e(t){_classCallCheck(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function ce(e){return!Array.isArray(e)&&"object"==typeof e}function he(e){return e?(e=U(e)).params&&(e.params=function(e){return e?U(e):null}(e.params)):e={},e}function fe(e,t,n){return{duration:e,delay:t,easing:n}}function de(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var pe=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),ve=new RegExp(":enter","g"),_e=new RegExp(":leave","g");function me(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new ge).buildKeyframes(e,t,n,i,r,o,a,s,u,l)}var ge=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new pe;var c=new ke(e,t,u,i,r,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),ee(this,n,c);var h=c.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,c.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[de(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?L(n.duration):null,o=null!=n.delay?L(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),ee(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ye);var a=L(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return ee(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?L(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),ee(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return N(t.params?G(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?L(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ye);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(u=s.currentTimeline),ee(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;ee(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}]),e}(),ye={},ke=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ye,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new be(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=L(i.duration)),null!=i.delay&&(r.delay=L(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){(!t||!a.hasOwnProperty(e))&&(a[e]=G(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=ye,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Ce(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(ve,"."+this._enterClassName)).replace(_e,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,_toConsumableArray(s))}return!r&&0==a.length&&o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}]),e}(),be=function(){function e(t,n,i,r){_classCallCheck(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||o.l3,t._currentKeyframe[e]=o.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var a=i&&i.params||{},s=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]=o.l3}):B(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(s).forEach(function(e){var t=G(s[e],a,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:o.l3),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(a,s){var u=B(a,!0);Object.keys(u).forEach(function(e){var i=u[e];i==o.k1?t.add(e):i==o.l3&&n.add(e)}),i||(u.offset=s/e.duration),r.push(u)});var a=t.size?K(t.values()):[],s=n.size?K(n.values()):[];if(i){var u=r[0],l=U(u);u.offset=0,l.offset=1,r=[u,l]}return de(this.element,r,a,s,this.duration,this.startTime,this.easing,!1)}}]),e}(),Ce=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(u=t.call(this,e,i,s.delay)).keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=l,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,u=B(e[0],!1);u.offset=0,o.push(u);var l=B(e[0],!1);l.offset=we(s),o.push(l);for(var c=e.length-1,h=1;h<=c;h++){var f=B(e[h],!1);f.offset=we((n+f.offset*i)/a),o.push(f)}i=a,n=0,r="",e=o}return de(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(be);function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var xe=function e(){_classCallCheck(this,e)},Ee=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(e,t){return Q(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(Se[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(xe),Se=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Ae(e,t,n,i,r,o,a,s,u,l,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:f}}var Oe={},Te=function(){function e(t,n,i){_classCallCheck(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return _createClass(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,u,l){var c=[],h=this.ast.options&&this.ast.options.params||Oe,f=this.buildStyles(n,a&&a.params||Oe,c),p=s&&s.params||Oe,v=this.buildStyles(i,p,c),_=new Set,m=new Map,g=new Map,y="void"===i,k={params:Object.assign(Object.assign({},h),p)},b=l?[]:me(e,t,this.ast.animation,r,o,f,v,k,u,c),C=0;if(b.forEach(function(e){C=Math.max(e.duration+e.delay,C)}),c.length)return Ae(t,this._triggerName,n,i,y,f,v,[],[],m,g,C,c);b.forEach(function(e){var n=e.element,i=d(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=d(g,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&_.add(n)});var w=K(_.values());return Ae(t,this._triggerName,n,i,y,f,v,b,w,m,g,C)}}]),e}(),Pe=function(){function e(t,n,i){_classCallCheck(this,e),this.styles=t,this.defaultParams=n,this.normalizer=i}return _createClass(e,[{key:"buildStyles",value:function(e,t){var n=this,i={},r=U(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach(function(e){var a=o[e];a.length>1&&(a=G(a,r,t));var s=n.normalizer.normalizePropertyName(e,t);a=n.normalizer.normalizeStyleValue(e,s,a,t),i[s]=a})}}),i}}]),e}(),Ie=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.name=t,this.ast=n,this._normalizer=i,this.transitionFactories=[],this.states={},n.states.forEach(function(e){r.states[e.name]=new Pe(e.style,e.options&&e.options.params||{},i)}),Re(this.states,"true","1"),Re(this.states,"false","0"),n.transitions.forEach(function(e){r.transitionFactories.push(new Te(t,e,r.states))}),this.fallbackTransition=function(e,t,n){return new Te(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},t)}(t,this.states)}return _createClass(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Re(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var De=new pe,Me=function(){function e(t,n,i){_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var n=[],i=se(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=l(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],s=this._animations[e],l=new Map;if(s?(n=me(this._driver,t,s,T,P,{},{},r,De,a)).forEach(function(e){var t=d(l,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));l.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,o.l3)})});var c=u(n.map(function(e){var t=l.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=c,c.onDestroy(function(){return i.destroy(e)}),this.players.push(c),c}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=f(t,"","","");return c(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);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(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Le="ng-animate-queued",Fe="ng-animate-disabled",Ne=".ng-animate-disabled",Ue=[],Be={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ze={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},je="__ng_removed",qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var o=U(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),Ve="void",He=new qe(Ve),ze=function(){function e(t,n,i){_classCallCheck(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,$e(n,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=d(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var u=d(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||($e(e,I),$e(e,I+"-"+t),u[t]=He),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete u[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new Ge(this.id,t,e),s=this._engine.statesByElement.get(e);s||($e(e,I),$e(e,I+"-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],l=new qe(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[t]=l,u||(u=He),l.value===Ve||u.value!==l.value){var c=d(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=o.matchTransition(u.value,l.value,e,l.params),f=!1;if(!h){if(!r)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:l,player:a,isFallbackTransition:f}),f||($e(e,Le),a.onStart(function(){et(e,Le)})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),$e(e,Fe)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),et(e,Fe))}},{key:"removeNode",value:function(e,t,n,i){if(Ke(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t[je]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return Ke(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,R,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,M,!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return u(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e[je];if(n&&n.setForRemoval){if(e[je]=Be,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,Ne)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Ne,!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;I--)this._namespaceList[I].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(A.push(t),n.collectedEnterElements.length){var a=o[je];if(a&&a.setForMove)return void t.destroy()}var u=!p||!n.driver.containsElement(p,o),f=E.get(o),v=m.get(o),_=n._buildInstruction(e,i,v,f,u);if(_.errors&&_.errors.length)O.push(_);else{if(u)return t.onStart(function(){return V(o,_.fromStyles)}),t.onDestroy(function(){return q(o,_.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return V(o,_.fromStyles)}),t.onDestroy(function(){return q(o,_.toStyles)}),void r.push(t);_.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(o,_.timelines),s.push({instruction:_,player:t,element:o}),_.queriedElements.forEach(function(e){return d(l,e,[]).push(t)}),_.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),_.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=h.get(t);i||h.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(O.length){var R=[];O.forEach(function(e){R.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return R.push("- ".concat(e,"\n"))})}),A.forEach(function(e){return e.destroy()}),this.reportError(R)}var D=new Map,L=new Map;s.forEach(function(e){var t=e.element;i.has(t)&&(L.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,D))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){d(D,t,[]).push(e),e.destroy()})});var F=y.filter(function(e){return it(e,c,h)}),N=new Map;Qe(N,this.driver,b,h,o.l3).forEach(function(e){it(e,c,h)&&F.push(e)});var U=new Map;_.forEach(function(e,t){Qe(U,n.driver,new Set(e),c,o.k1)}),F.forEach(function(e){var t=N.get(e),n=U.get(e);N.set(e,Object.assign(Object.assign({},t),n))});var B=[],Z=[],j={};s.forEach(function(e){var t=e.element,o=e.player,s=e.instruction;if(i.has(t)){if(f.has(t))return o.onDestroy(function(){return q(t,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var l=j;if(L.size>1){for(var c=t,h=[];c=c.parentNode;){var d=L.get(c);if(d){l=d;break}h.push(c)}h.forEach(function(e){return L.set(e,l)})}var p=n._buildAnimation(o.namespaceId,s,D,a,U,N);if(o.setRealPlayer(p),l===j)B.push(o);else{var v=n.playersByElement.get(l);v&&v.length&&(o.parentPlayer=u(v)),r.push(o)}}else V(t,s.fromStyles),o.onDestroy(function(){return q(t,s.toStyles)}),Z.push(o),f.has(t)&&r.push(o)}),Z.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=u(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var H=0;H0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new o.ZN(e.duration,e.delay)}}]),e}(),Ge=function(){function e(t,n,i){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new o.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return c(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){d(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Ke(e){return e&&1===e.nodeType}function We(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Qe(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(We(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);(!n||0==n.length)&&(i[je]=Ze,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return We(e,o[s++])}),a}function Je(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}var Xe="$$classes";function $e(e,t){if(e.classList)e.classList.add(t);else{var n=e[Xe];n||(n=e[Xe]={}),n[t]=!0}}function et(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Xe];n&&delete n[t]}}function tt(e,t,n){u(n).onDone(function(){return e.processLeaveNode(t)})}function nt(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function ot(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=st(t[0]),t.length>1&&(i=st(t[t.length-1]))):t&&(n=st(t)),n||i?new at(e,n,i):null}var at=function(){function e(t,n,i){_classCallCheck(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(V(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}]),e}();function st(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),vt(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){var n=mt(e,"").split(","),i=pt(n,t);i>=0&&(n.splice(i,1),_t(e,"",n.join(",")))}(this._element,this._name))}}]),e}();function ft(e,t,n){_t(e,"PlayState",n,dt(e,t))}function dt(e,t){var n=mt(e,"");return n.indexOf(",")>0?pt(n.split(","),t):pt([n],t)}function pt(e,t){for(var n=0;n=0)return n;return-1}function vt(e,t,n){n?e.removeEventListener(ct,t):e.addEventListener(ct,t)}function _t(e,t,n,i){var r=lt+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function mt(e,t){return e.style[lt+t]||""}var gt=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new ht(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:te(e.element,i))})}this.currentSnapshot=t}}]),e}(),yt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=E(i),r}return _createClass(n,[{key:"init",value:function(){var e=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(o.ZN),kt=function(){function e(){_classCallCheck(this,e),this._count=0}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return b(e)}},{key:"matchesElement",value:function(e,t){return C(e,t)}},{key:"containsElement",value:function(e,t){return w(e,t)}},{key:"query",value:function(e,t,n){return x(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return E(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof gt}),s={};X(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"==n||"easing"==n||(t[n]=e[n])})}),t}(t=$(e,t,s));if(0==n)return new yt(e,u);var l="gen_css_kf_"+this._count++,c=this.buildKeyframeElement(e,l,t);(function(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(e).appendChild(c);var h=ot(e,t),f=new gt(e,t,l,n,i,r,u,h);return f.onDestroy(function(){var e;(e=c).parentNode.removeChild(e)}),f}}]),e}(),bt=function(){function e(t,n,i,r){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:te(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Ct=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(wt().toString()),this._cssKeyframesDriver=new kt}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return b(e)}},{key:"matchesElement",value:function(e,t){return C(e,t)}},{key:"containsElement",value:function(e,t){return w(e,t)}},{key:"query",value:function(e,t,n){return x(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var u={},l=o.filter(function(e){return e instanceof bt});X(n,i)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var c=ot(e,t=$(e,t=t.map(function(e){return B(e,!1)}),u));return new bt(e,t,s,c)}}]),e}();function wt(){return a()&&Element.prototype.animate||{}}var xt=n(8583),Et=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this))._nextAnimationId=0,o._renderer=e.createRenderer(r.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}}),o}return _createClass(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?(0,o.vP)(e):e;return Ot(this._renderer,null,t,"register",[n]),new St(t,this._renderer)}}]),n}(o._j);return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.FYo),i.LFG(xt.K0))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),St=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return _createClass(n,[{key:"create",value:function(e,t){return new At(this._id,e,t||{},this._renderer)}}]),n}(o.LC),At=function(){function e(t,n,i,r){_classCallCheck(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&t==Tt?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),Rt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,i,r,o)).factory=e,a.namespaceId=i,a}return _createClass(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Tt?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i=this;if("@"==t.charAt(0)){var r,o=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),a=t.substr(1),s="";return"@"!=a.charAt(0)&&(a=(r=_slicedToArray(function(e){var t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(a),2))[0],s=r[1]),this.engine.listen(this.namespaceId,o,a,s,function(e){i.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(It),Dt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){return _classCallCheck(this,n),t.call(this,e.body,i,r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(rt);return e.\u0275fac=function(t){return new(t||e)(i.LFG(xt.K0),i.LFG(O),i.LFG(xe))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),Mt=new i.OlP("AnimationModuleType"),Lt=[{provide:o._j,useClass:Et},{provide:xe,useFactory:function(){return new Ee}},{provide:rt,useClass:Dt},{provide:i.FYo,useFactory:function(e,t,n){return new Pt(e,t,n)},deps:[r.se,rt,i.R0b]}],Ft=[{provide:O,useFactory:function(){return"function"==typeof wt()?new Ct:new kt}},{provide:Mt,useValue:"BrowserAnimations"}].concat(Lt),Nt=[{provide:O,useClass:A},{provide:Mt,useValue:"NoopAnimations"}].concat(Lt),Ut=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?Nt:Ft}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({providers:Ft,imports:[r.b2]}),e}()},9075:function(e,t,n){"use strict";n.d(t,{b2:function(){return N},H7:function(){return D},q6:function(){return L},se:function(){return w}});var i,r,o=n(8583),a=n(3018),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){e.parentNode&&e.parentNode.removeChild(e)}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getBaseHref",value:function(e){var t=(u=u||document.querySelector("base"))?u.getAttribute("href"):null;return null==t?null:function(e){(i=i||document.createElement("a")).setAttribute("href",e);var t=i.pathname;return"/"===t.charAt(0)?t:"/".concat(t)}(t)}},{key:"resetBaseElement",value:function(){u=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(e){return(0,o.Mx)(document.cookie,e)}}],[{key:"makeCurrent",value:function(){(0,o.HT)(new n)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).supportsDOMEvents=!0,e}return n}(o.w_)),u=null,l=new a.OlP("TRANSITION_ID"),c=[{provide:a.ip1,useFactory:function(e,t,n){return function(){n.get(a.CZH).donePromise.then(function(){for(var n=(0,o.q)(),i=t.querySelectorAll('style[ng-transition="'.concat(e,'"]')),r=0;r1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},a.dqk.getAllAngularTestabilities=function(){return e.getAllTestabilities()},a.dqk.getAllAngularRootElements=function(){return e.getAllRootElements()},a.dqk.frameworkStabilizers||(a.dqk.frameworkStabilizers=[]),a.dqk.frameworkStabilizers.push(function(e){var t=a.dqk.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?(0,o.q)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){(0,a.VLi)(new e)}}]),e}(),f=((r=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||r)},r.\u0275prov=a.Yz7({token:r,factory:r.\u0275fac}),r),d=new a.OlP("EventManagerPlugins"),p=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&P.hasOwnProperty(t)&&(t=P[t]))}return T[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),O.forEach(function(i){i!=n&&I[i](e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(v);return e.\u0275fac=function(t){return new(t||e)(a.LFG(o.K0))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),D=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,a.Yz7)({factory:function(){return(0,a.LFG)(M)},token:e,providedIn:"root"}),e}(),M=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i}return _createClass(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case a.q3G.NONE:return t;case a.q3G.HTML:return(0,a.qzn)(t,"HTML")?(0,a.z3N)(t):(0,a.EiD)(this._doc,String(t)).toString();case a.q3G.STYLE:return(0,a.qzn)(t,"Style")?(0,a.z3N)(t):t;case a.q3G.SCRIPT:if((0,a.qzn)(t,"Script"))return(0,a.z3N)(t);throw new Error("unsafe value used in a script context");case a.q3G.URL:return(0,a.yhl)(t),(0,a.qzn)(t,"URL")?(0,a.z3N)(t):(0,a.mCW)(String(t));case a.q3G.RESOURCE_URL:if((0,a.qzn)(t,"ResourceURL"))return(0,a.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return(0,a.JVY)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return(0,a.L6k)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return(0,a.eBb)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return(0,a.LAX)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return(0,a.pB0)(e)}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(a.LFG(o.K0))},e.\u0275prov=(0,a.Yz7)({factory:function(){return function(e){return new M(e.get(o.K0))}((0,a.LFG)(a.gxx))},token:e,providedIn:"root"}),e}(),L=(0,a.eFA)(a._c5,"browser",[{provide:a.Lbi,useValue:o.bD},{provide:a.g9A,useValue:function(){s.makeCurrent(),h.init()},multi:!0},{provide:o.K0,useFactory:function(){return(0,a.RDi)(document),document},deps:[]}]),F=[[],{provide:a.zSh,useValue:"root"},{provide:a.qLn,useFactory:function(){return new a.qLn},deps:[]},{provide:d,useClass:A,multi:!0,deps:[o.K0,a.R0b,a.Lbi]},{provide:d,useClass:R,multi:!0,deps:[o.K0]},[],{provide:w,useClass:w,deps:[p,m,a.AFp]},{provide:a.FYo,useExisting:w},{provide:_,useExisting:m},{provide:m,useClass:m,deps:[o.K0]},{provide:a.dDg,useClass:a.dDg,deps:[a.R0b]},{provide:p,useClass:p,deps:[d,a.R0b]},{provide:o.JF,useClass:f,deps:[]},[]],N=function(){var e=function(){function e(t){if(_classCallCheck(this,e),t)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.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:a.AFp,useValue:t.appId},{provide:l,useExisting:a.AFp},c]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(e,12))},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:F,imports:[o.ez,a.hGG]}),e}();"undefined"!=typeof window&&window},8741:function(e,t,n){"use strict";n.d(t,{gz:function(){return rt},F0:function(){return An},rH:function(){return Tn},yS:function(){return Pn},Bz:function(){return qn},lC:function(){return Rn}});var i=n(8583),r=n(3018),o=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),a=n(4402),s=n(5917),u=n(6215),l=n(739),c=n(7574),h=n(8071),f=n(1439),d=n(9193),p=n(2441),v=n(9765),_=n(7393);function m(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new g(e,t,n))}}var g=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new y(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),y=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return _createClass(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(_.L),k=n(5345);function b(e){return function(t){var n=new C(e),i=t.lift(n);return n.caught=i}}var C=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new w(e,this.selector,this.caught))}}]),e}(),w=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return _createClass(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var i=new k.IY(this);this.add(i);var r=(0,k.ft)(t,i);r!==i&&this.add(r)}}}]),n}(k.Ds),x=n(5435),E=n(7108);function S(e){return function(t){return 0===e?(0,d.c)():t.lift(new A(e))}}var A=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new E.W}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new O(e,this.total))}}]),e}(),O=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:R;return function(t){return t.lift(new P(e))}}var P=function(){function e(t){_classCallCheck(this,e),this.errorFactory=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new I(e,this.errorFactory))}}]),e}(),I=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(_.L);function R(){return new o}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new M(e))}}var M=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new L(e,this.defaultValue))}}]),e}(),L=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return _createClass(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(_.L),F=n(4487),N=n(5257);function U(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?(0,x.h)(function(t,n){return e(t,n,i)}):F.y,(0,N.q)(1),n?D(t):T(function(){return new o}))}}var B=n(5319),Z=function(){function e(t){_classCallCheck(this,e),this.callback=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new j(e,this.callback))}}]),e}(),j=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).add(new B.w(i)),r}return n}(_.L),q=n(8002),V=n(3190),H=n(9761),z=n(4612),Y=n(9773),G=n(3342),K=n(1307),W=n(3282),Q=function e(t,n){_classCallCheck(this,e),this.id=t,this.url=n},J=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Q),X=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Q),$=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).reason=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Q),ee=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).error=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Q),te=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ne=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ie=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s;return _classCallCheck(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(Q),re=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),oe=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ae=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),se=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),ue=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),le=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),ce=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),he=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fe=function(){function e(t,n,i){_classCallCheck(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),de="primary",pe=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function ve(e){return new pe(e)}var _e="ngNavigationCancelingError";function me(e){var t=Error("NavigationCancelingError: "+e);return t[_e]=!0,t}function ge(e,t,n){var i=n.path.split("/");if(i.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function we(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function xe(e){return(0,r.CqO)(e)?e:(0,r.QGY)(e)?(0,a.D)(Promise.resolve(e)):(0,s.of)(e)}var Ee={exact:function e(t,n,i){if(!Me(t.segments,n.segments)||!Pe(t.segments,n.segments,i)||t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children)if(!t.children[r]||!e(t.children[r],n.children[r],i))return!1;return!0},subset:Oe},Se={exact:function(e,t){return ye(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return ke(e[n],t[n])})},ignored:function(){return!0}};function Ae(e,t,n){return Ee[n.paths](e.root,t.root,n.matrixParams)&&Se[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Oe(e,t,n){return Te(e,t,t.segments,n)}function Te(e,t,n,i){if(e.segments.length>n.length){var r=e.segments.slice(0,n.length);return!(!Me(r,n)||t.hasChildren()||!Pe(r,n,i))}if(e.segments.length===n.length){if(!Me(e.segments,n)||!Pe(e.segments,n,i))return!1;for(var o in t.children)if(!e.children[o]||!Oe(e.children[o],t.children[o],i))return!1;return!0}var a=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!(Me(e.segments,a)&&Pe(e.segments,a,i)&&e.children[de])&&Te(e.children[de],t,s,i)}function Pe(e,t,n){return t.every(function(t,i){return Se[n](e[i].parameters,t.parameters)})}var Ie=function(){function e(t,n,i){_classCallCheck(this,e),this.root=t,this.queryParams=n,this.fragment=i}return _createClass(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ve(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Ne.serialize(this)}}]),e}(),Re=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.segments=t,this.children=n,this.parent=null,we(n,function(e,t){return e.parent=i})}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Ue(this)}}]),e}(),De=function(){function e(t,n){_classCallCheck(this,e),this.path=t,this.parameters=n}return _createClass(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=ve(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return ze(this)}}]),e}();function Me(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var Le=function e(){_classCallCheck(this,e)},Fe=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new Qe(e);return new Ie(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t;return"".concat("/".concat(Be(e.root,!0)),function(e){var t=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(je(t),"=").concat(je(e))}).join("&"):"".concat(je(t),"=").concat(je(n))}).filter(function(e){return!!e});return t.length?"?".concat(t.join("&")):""}(e.queryParams)).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),Ne=new Fe;function Ue(e){return e.segments.map(function(e){return ze(e)}).join("/")}function Be(e,t){if(!e.hasChildren())return Ue(e);if(t){var n=e.children[de]?Be(e.children[de],!1):"",i=[];return we(e.children,function(e,t){t!==de&&i.push("".concat(t,":").concat(Be(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return we(e.children,function(e,i){i===de&&(n=n.concat(t(e,i)))}),we(e.children,function(e,i){i!==de&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return n===de?[Be(e.children[de],!1)]:["".concat(n,":").concat(Be(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[de]?"".concat(Ue(e),"/").concat(r[0]):"".concat(Ue(e),"/(").concat(r.join("//"),")")}function Ze(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function je(e){return Ze(e).replace(/%3B/gi,";")}function qe(e){return Ze(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ve(e){return decodeURIComponent(e)}function He(e){return Ve(e.replace(/\+/g,"%20"))}function ze(e){return"".concat(qe(e.path)).concat(function(e){return Object.keys(e).map(function(t){return";".concat(qe(t),"=").concat(qe(e[t]))}).join("")}(e.parameters))}var Ye=/^[^\/()?;=#]+/;function Ge(e){var t=e.match(Ye);return t?t[0]:""}var Ke=/^[^=?&#]+/,We=/^[^?&#]+/,Qe=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Re([],{}):new Re([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[de]=new Re(e,t)),n}},{key:"parseSegment",value:function(){var e=Ge(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new De(Ve(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Ge(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Ge(this.remaining);i&&(n=i,this.capture(n))}e[Ve(t)]=Ve(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Ke);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(We);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=He(t),o=He(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Ge(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=de);var o=this.parseChildren();t[r]=1===Object.keys(o).length?o[de]:new Re([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Je=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Xe(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=Xe(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=$e(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return $e(e,this._root).map(function(e){return e.value})}}]),e}();function Xe(e,t){if(e===t.value)return t;var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=Xe(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function $e(e,t){if(e===t.value)return[t];var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=$e(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var et=function(){function e(t,n){_classCallCheck(this,e),this.value=t,this.children=n}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function tt(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var nt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).snapshot=i,ut(_assertThisInitialized(r),e),r}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Je);function it(e,t){var n=function(e,t){var n=new at([],{},{},"",{},de,t,null,e.root,-1,{});return new st("",new et(n,[]))}(e,t),i=new u.X([new De("",{})]),r=new u.X({}),o=new u.X({}),a=new u.X({}),s=new u.X(""),l=new rt(i,r,a,s,o,de,t,n.root);return l.snapshot=n.root,new nt(new et(l,[]),n)}var rt=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return _createClass(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,q.U)(function(e){return ve(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,q.U)(function(e){return ve(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var at=function(){function e(t,n,i,r,o,a,s,u,l,c,h){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return _createClass(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=ve(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ve(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),st=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,i)).url=e,ut(_assertThisInitialized(r),i),r}return _createClass(n,[{key:"toString",value:function(){return lt(this._root)}}]),n}(Je);function ut(e,t){t.value._routerState=e,t.children.forEach(function(t){return ut(e,t)})}function lt(e){var t=e.children.length>0?" { ".concat(e.children.map(lt).join(", ")," } "):"";return"".concat(e.value).concat(t)}function ct(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ye(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ye(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&pt(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(vt);if(r&&r!==Ce(i))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),yt=function e(t,n,i){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function kt(e,t,n){if(e||(e=new Re([],{})),0===e.segments.length&&e.hasChildren())return bt(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=e.segments[r],s=n[i];if(vt(s))break;var u="".concat(s),l=i0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!Et(u,l,a))return o;i+=2}else{if(!Et(u,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},jt):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||ge)(n,e,t);if(!r)return Object.assign({},jt);var o={};we(r.posParams,function(e,t){o[t]=e.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Vt(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Ht(e,t,n)&&Bt(n)!==de})}(e,n,i)){var o=new Re(t,function(e,t,n,i){var r={};r[de]=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,a=_createForOfIteratorHelper(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&Bt(s)!==de){var u=new Re([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,r[Bt(s)]=u}}}catch(l){a.e(l)}finally{a.f()}return r}(e,t,i,new Re(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Ht(e,t,n)})}(e,n,i)){var a=new Re(e.segments,function(e,t,n,i,r,o){var a,s={},u=_createForOfIteratorHelper(i);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(Ht(e,n,l)&&!r[Bt(l)]){var c=new Re([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[Bt(l)]=c}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new Re(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Ht(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function zt(e,t,n,i){return!!(Bt(e)===i||i!==de&&Ht(t,n,e))&&("**"===e.path||qt(t,e,n).matched)}function Yt(e,t,n){return 0===t.length&&!e.children[n]}var Gt=function e(t){_classCallCheck(this,e),this.segmentGroup=t||null},Kt=function e(t){_classCallCheck(this,e),this.urlTree=t};function Wt(e){return new c.y(function(t){return t.error(new Gt(e))})}function Qt(e){return new c.y(function(t){return t.error(new Kt(e))})}function Jt(e){return new c.y(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var Xt=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(r.h0i)}return _createClass(e,[{key:"apply",value:function(){var e=this,t=Vt(this.urlTree.root,[],[],this.config).segmentGroup,n=new Re(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,de).pipe((0,q.U)(function(t){return e.createUrlTree($t(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(b(function(t){if(t instanceof Kt)return e.allowRedirects=!1,e.match(t.urlTree);throw t instanceof Gt?e.noMatchError(t):t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,de).pipe((0,q.U)(function(n){return t.createUrlTree($t(n),e.queryParams,e.fragment)})).pipe(b(function(e){throw e instanceof Gt?t.noMatchError(e):e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new Re([],_defineProperty({},de,e)):e;return new Ie(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe((0,q.U)(function(e){return new Re([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],s=0,u=Object.keys(n.children);s=2;return function(i){return i.pipe(e?(0,x.h)(function(t,n){return e(t,n,i)}):F.y,S(1),n?D(t):T(function(){return new o}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,u){var l=this;return(0,a.D)(n).pipe((0,z.b)(function(o){return l.expandSegmentAgainstRoute(e,t,n,o,i,r,u).pipe(b(function(e){if(e instanceof Gt)return(0,s.of)(null);throw e}))}),U(function(e){return!!e}),b(function(e,n){if(e instanceof o||"EmptyError"===e.name){if(Yt(t,i,r))return(0,s.of)(new Re([],{}));throw new Gt(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return zt(i,t,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):Wt(t):Wt(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Qt(o):this.lineralizeSegments(n,o).pipe((0,Y.zg)(function(n){var o=new Re(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=qt(t,i,r),u=s.matched,l=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!u)return Wt(t);var f=this.applyRedirectCommands(l,i.redirectTo,h);return i.redirectTo.startsWith("/")?Qt(f):this.lineralizeSegments(i,f).pipe((0,Y.zg)(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,s.of)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe((0,q.U)(function(e){return n._loadedConfig=e,new Re(i,{})})):(0,s.of)(new Re(i,{}));var a=qt(t,n,i),u=a.matched,l=a.consumedSegments,c=a.lastChild;if(!u)return Wt(t);var h=i.slice(c);return this.getChildConfig(e,n,i).pipe((0,Y.zg)(function(e){var i=e.module,a=e.routes,u=Vt(t,l,h,a),c=u.segmentGroup,f=u.slicedSegments,d=new Re(c.segments,c.children);if(0===f.length&&d.hasChildren())return o.expandChildren(i,a,d).pipe((0,q.U)(function(e){return new Re(l,e)}));if(0===a.length&&0===f.length)return(0,s.of)(new Re(l,{}));var p=Bt(n)===r;return o.expandSegment(i,d,a,f,p?de:r,!0).pipe((0,q.U)(function(e){return new Re(l.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?(0,s.of)(new Ot(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?(0,s.of)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe((0,Y.zg)(function(n){return n?i.configLoader.load(e.injector,t).pipe((0,q.U)(function(e){return t._loadedConfig=e,e})):(r=t,new c.y(function(e){return e.error(me("Cannot load children because the guard of the route \"path: '".concat(r.path,"'\" returned false")))}));var r})):(0,s.of)(new Ot([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;if(!r||0===r.length)return(0,s.of)(!0);var o=r.map(function(i){var r,o,a=e.get(i);if((o=a)&&Tt(o.canLoad))r=a.canLoad(t,n);else{if(!Tt(a))throw new Error("Invalid CanLoad guard");r=a(t,n)}return xe(r)});return(0,s.of)(o).pipe(Rt(),(0,G.b)(function(e){if(Pt(e)){var t=me('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),(0,q.U)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,s.of)(n);if(i.numberOfChildren>1||!i.children[de])return Jt(e.redirectTo);i=i.children[de]}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new Ie(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return we(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return we(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new Re(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return e}}]),e}();function $t(e){for(var t={},n=0,i=Object.keys(e.children);n0||o.hasChildren())&&(t[r]=o)}return function(e){if(1===e.numberOfChildren&&e.children[de]){var t=e.children[de];return new Re(e.segments.concat(t.segments),t.children)}return e}(new Re(e.segments,t))}var en=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},tn=function e(t,n){_classCallCheck(this,e),this.component=t,this.route=n};function nn(e,t,n){var i=e._root;return on(i,t?t._root:null,n,[i.value])}function rn(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function on(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=tt(t);return e.children.forEach(function(e){(function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Me(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Me(e.url,t.url)||!ye(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ht(e,t)||!ye(e.queryParams,t.queryParams);case"paramsChange":default:return!ht(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new en(i)):(o.data=a.data,o._resolvedData=a._resolvedData),on(e,t,o.component?s?s.children:null:n,i,r),u&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new tn(s.outlet.component,a))}else a&&an(t,s,r),r.canActivateChecks.push(new en(i)),on(e,null,o.component?s?s.children:null:n,i,r)})(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),we(o,function(e,t){return an(e,n.getContext(t),r)}),r}function an(e,t,n){var i=tt(e),r=e.value;we(i,function(e,i){an(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new tn(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var sn=function e(){_classCallCheck(this,e)};function un(e){return new c.y(function(t){return t.error(e)})}var ln=function(){function e(t,n,i,r,o,a){_classCallCheck(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return _createClass(e,[{key:"recognize",value:function(){var e=Vt(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,de);if(null===t)return null;var n=new at([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},de,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new et(n,t),r=new st(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=ot(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i0?Ce(n).parameters:{};r=new at(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dn(e),Bt(e),e.component,e,hn(t),fn(t)+n.length,pn(e))}else{var u=qt(t,e,n);if(!u.matched)return null;o=u.consumedSegments,a=n.slice(u.lastChild),r=new at(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dn(e),Bt(e),e.component,e,hn(t),fn(t)+o.length,pn(e))}var l,c=(l=e).children?l.children:l.loadChildren?l._loadedConfig.routes:[],h=Vt(t,o,a,c.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),f=h.segmentGroup,d=h.slicedSegments;if(0===d.length&&f.hasChildren()){var p=this.processChildren(c,f);return null===p?null:[new et(r,p)]}if(0===c.length&&0===d.length)return[new et(r,[])];var v=Bt(e)===i,_=this.processSegment(c,f,d,v?de:i);return null===_?null:[new et(r,_)]}}]),e}();function cn(e){var t,n=[],i=new Set,r=_createForOfIteratorHelper(e);try{var o=function(){var e,r=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(r))return n.push(r),"continue";var o=n.find(function(e){return r.value.routeConfig===e.value.routeConfig});void 0!==o?((e=o.children).push.apply(e,_toConsumableArray(r.children)),i.add(o)):n.push(r)};for(r.s();!(t=r.n()).done;)o()}catch(c){r.e(c)}finally{r.f()}var a,s=_createForOfIteratorHelper(i);try{for(s.s();!(a=s.n()).done;){var u=a.value,l=cn(u.children);n.push(new et(u.value,l))}}catch(c){s.e(c)}finally{s.f()}return n.filter(function(e){return!i.has(e)})}function hn(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function fn(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function dn(e){return e.data||{}}function pn(e){return e.resolve||{}}function vn(e){return(0,V.w)(function(t){var n=e(t);return n?(0,a.D)(n).pipe((0,q.U)(function(){return t})):(0,s.of)(t)})}var _n=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),mn=new r.OlP("ROUTES"),gn=function(){function e(t,n,i,r){_classCallCheck(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return _createClass(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe((0,q.U)(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var o=i.create(e);return new Ot(be(o.injector.get(mn,void 0,r.XFs.Self|r.XFs.Optional)).map(Ut),o)}),b(function(e){throw t._loader$=void 0,e}));return t._loader$=new p.c(i,function(){return new v.xQ}).pipe((0,K.x)()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?(0,a.D)(this.loader.load(e)):xe(e()).pipe((0,Y.zg)(function(e){return e instanceof r.YKP?(0,s.of)(e):(0,a.D)(t.compiler.compileModuleAsync(e))}))}}]),e}(),yn=function e(){_classCallCheck(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new kn,this.attachRef=null},kn=function(){function e(){_classCallCheck(this,e),this.contexts=new Map}return _createClass(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new yn,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),bn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Cn(e){throw e}function wn(e,t,n){return t.parse("/")}function xn(e,t){return(0,s.of)(null)}var En={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Sn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},An=function(){var e=function(){function e(t,n,i,o,a,s,l,c){var h=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=o,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new v.xQ,this.errorHandler=Cn,this.malformedUriErrorHandler=wn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:xn,afterPreactivation:xn},this.urlHandlingStrategy=new bn,this.routeReuseStrategy=new _n,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=a.get(r.h0i),this.console=a.get(r.c2e);var f=a.get(r.R0b);this.isNgZoneEnabled=f instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Ie(new Re([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new gn(s,l,function(e){return h.triggerEvent(new ae(e))},function(e){return h.triggerEvent(new se(e))}),this.routerState=it(this.currentUrlTree,this.rootComponentType),this.transitions=new u.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(e,[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe((0,x.h)(function(e){return 0!==e.id}),(0,q.U)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),(0,V.w)(function(e){var i=!1,r=!1;return(0,s.of)(e).pipe((0,G.b)(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,V.w)(function(e){var i=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString(),o=("reload"===t.onSameUrlNavigation||i)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl);if(On(e.source)&&(t.browserUrlTree=e.rawUrl),o)return(0,s.of)(e).pipe((0,V.w)(function(e){var i=t.transitions.getValue();return n.next(new J(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?d.E:Promise.resolve(e)}),function(e,t,n,i){return(0,V.w)(function(r){return function(e,t,n,i,r){return new Xt(e,t,n,i,r).apply()}(e,t,n,r.extractedUrl,i).pipe((0,q.U)(function(e){return Object.assign(Object.assign({},r),{urlAfterRedirects:e})}))})}(t.ngModule.injector,t.configLoader,t.urlSerializer,t.config),(0,G.b)(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,o,a){return(0,Y.zg)(function(i){return function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var u=new ln(e,t,n,i,o,a).recognize();return null===u?un(new sn):(0,s.of)(u)}catch(r){return un(r)}}(e,n,i.urlAfterRedirects,(u=i.urlAfterRedirects,t.serializeUrl(u)),o,a).pipe((0,q.U)(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var u})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),(0,G.b)(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,e),t.browserUrlTree=e.urlAfterRedirects);var i=new te(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(i&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var a=e.id,u=e.extractedUrl,l=e.source,c=e.restoredState,h=e.extras,f=new J(a,t.serializeUrl(u),l,c);n.next(f);var p=it(u,t.rootComponentType).snapshot;return(0,s.of)(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:u,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),d.E}),vn(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),(0,G.b)(function(e){var n=new ne(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,q.U)(function(e){return Object.assign(Object.assign({},e),{guards:nn(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return(0,Y.zg)(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,u=o.canActivateChecks,l=o.canDeactivateChecks;return 0===l.length&&0===u.length?(0,s.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return(0,a.D)(e).pipe((0,Y.zg)(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,s.of)(!0);var a=o.map(function(o){var a,s=rn(o,t,r);if(function(e){return e&&Tt(e.canDeactivate)}(s))a=xe(s.canDeactivate(e,t,n,i));else{if(!Tt(s))throw new Error("Invalid CanDeactivate guard");a=xe(s(e,t,n,i))}return a.pipe(U())});return(0,s.of)(a).pipe(Rt())}(e.component,e.route,n,t,i)}),U(function(e){return!0!==e},!0))}(l,i,r,e).pipe((0,Y.zg)(function(n){return n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,i){return(0,a.D)(t).pipe((0,z.b)(function(t){return(0,h.z)(function(e,t){return null!==e&&t&&t(new ue(e)),(0,s.of)(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new ce(e)),(0,s.of)(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return(0,f.P)(function(){var r=t.guards.map(function(r){var o,a=rn(r,t.node,n);if(function(e){return e&&Tt(e.canActivateChild)}(a))o=xe(a.canActivateChild(i,e));else{if(!Tt(a))throw new Error("Invalid CanActivateChild guard");o=xe(a(i,e))}return o.pipe(U())});return(0,s.of)(r).pipe(Rt())})});return(0,s.of)(r).pipe(Rt())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return(0,s.of)(!0);var r=i.map(function(i){return(0,f.P)(function(){var r,o=rn(i,t,n);if(function(e){return e&&Tt(e.canActivate)}(o))r=xe(o.canActivate(t,e));else{if(!Tt(o))throw new Error("Invalid CanActivate guard");r=xe(o(t,e))}return r.pipe(U())})});return(0,s.of)(r).pipe(Rt())}(e,t.route,n))}),U(function(e){return!0!==e},!0))}(i,u,e,t):(0,s.of)(n)}),(0,q.U)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),(0,G.b)(function(e){if(Pt(e.guardsResult)){var n=me('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new ie(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),(0,x.h)(function(e){return!!e.guardsResult||(t.restoreHistory(e),t.cancelNavigationTransition(e,""),!1)}),vn(function(e){if(e.guards.canActivateChecks.length)return(0,s.of)(e).pipe((0,G.b)(function(e){var n=new re(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,V.w)(function(e){var n=!1;return(0,s.of)(e).pipe(function(e,t){return(0,Y.zg)(function(n){var i=n.targetSnapshot,r=n.guards.canActivateChecks;if(!r.length)return(0,s.of)(n);var o=0;return(0,a.D)(r).pipe((0,z.b)(function(n){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return(0,s.of)({});var o={};return(0,a.D)(r).pipe((0,Y.zg)(function(r){return function(e,t,n,i){var r=rn(e,t,i);return xe(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe((0,G.b)(function(e){o[r]=e}))}),S(1),(0,Y.zg)(function(){return Object.keys(o).length===r.length?(0,s.of)(o):d.E}))}(e._resolve,e,t,i).pipe((0,q.U)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),ot(e,n).resolve),null}))}(n.route,i,e,t)}),(0,G.b)(function(){return o++}),S(1),(0,Y.zg)(function(e){return o===r.length?(0,s.of)(n):d.E}))})}(t.paramsInheritanceStrategy,t.ngModule.injector),(0,G.b)({next:function(){return n=!0},complete:function(){n||(t.restoreHistory(e),t.cancelNavigationTransition(e,"At least one route resolver didn't emit any value."))}}))}),(0,G.b)(function(e){var n=new oe(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),vn(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),(0,q.U)(function(e){var n=function(e,t,n){var i=ft(e,t._root,n?n._root:void 0);return new nt(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),(0,G.b)(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,e),t.browserUrlTree=e.urlAfterRedirects)}),function(e,t,n){return(0,q.U)(function(i){return new St(t,i.targetRouterState,i.currentRouterState,n).activate(e),i})}(t.rootContexts,t.routeReuseStrategy,function(e){return t.triggerEvent(e)}),(0,G.b)({next:function(){i=!0},complete:function(){i=!0}}),function(e){return function(t){return t.lift(new Z(e))}}(function(){if(!i&&!r){var n="Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId);"replace"===t.canceledNavigationResolution?(t.restoreHistory(e),t.cancelNavigationTransition(e,n)):t.cancelNavigationTransition(e,n)}t.currentNavigation=null}),b(function(i){if(r=!0,function(e){return e&&e[_e]}(i)){var o=Pt(i.url);o||(t.navigated=!0,t.restoreHistory(e,!0));var a=new $(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(a),o?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree),r={skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||On(e.source)};t.scheduleNavigation(n,"imperative",null,r,{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.restoreHistory(e,!0);var s=new ee(e.id,t.serializeUrl(e.extractedUrl),i);n.next(s);try{e.resolve(t.errorHandler(i))}catch(a){e.reject(a)}}return d.E}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return t.transitionId!==e.transitionId||!n||!("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source)}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){Lt(e),this.config=e.map(Ut),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,s=n||this.routerState.root,u=a?this.currentUrlTree.fragment:r,l=null;switch(o){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(e,t,n,i,r){if(0===n.length)return _t(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new gt(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return we(i.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(_toConsumableArray(e),[{outlets:o}])}if(i.segmentPath)return[].concat(_toConsumableArray(e),[i.segmentPath])}return"string"!=typeof i?[].concat(_toConsumableArray(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(_toConsumableArray(e),[i])},[]);return new gt(n,t,i)}(n);if(o.toRoot())return _t(t.root,new Re([],{}),t,i,r);var a=function(e,t,n){if(e.isAbsolute)return new yt(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new yt(i,i===t.root,0)}var r=pt(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new yt(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?bt(a.segmentGroup,a.index,o.commands):kt(a.segmentGroup,a.index,o.commands);return _t(a.segmentGroup,s,t,i,r)}(s,this.currentUrlTree,e,l,null!=u?u:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Pt(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(t=this.currentNavigation)||void 0===t?void 0:t.finalUrl)||0===r?this.currentUrlTree===(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,t){var n=new $(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(n),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":t}:{navigationId:e}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.DyG),r.LFG(Le),r.LFG(kn),r.LFG(i.Ye),r.LFG(r.zs3),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(void 0))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}();function On(e){return"imperative"!==e}var Tn=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new v.xQ,null==i&&r.setAttribute(o.nativeElement,"tabindex","0")}return _createClass(e,[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(An),r.Y36(rt),r.$8M("tabindex"),r.Y36(r.Qsj),r.Y36(r.SBq))},e.\u0275dir=r.lG2({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&r.NdJ("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),e}(),Pn=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.onChanges=new v.xQ,this.subscription=t.events.subscribe(function(e){e instanceof X&&r.updateTargetUrlAndHref()})}return _createClass(e,[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,i,r){if(0!==e||t||n||i||r||"string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(An),r.Y36(rt),r.Y36(i.S$))},e.\u0275dir=r.lG2({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&r.NdJ("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(r.Ikx("href",t.href,r.LSH),r.uIk("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),e}();function In(e){return""===e||!!e}var Rn=function(){var e=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.name=o||de,t.onChildOutletCreated(this.name,this)}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new Dn(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(kn),r.Y36(r.s_b),r.Y36(r._Vd),r.$8M("name"),r.Y36(r.sBO))},e.\u0275dir=r.lG2({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),Dn=function(){function e(t,n,i){_classCallCheck(this,e),this.route=t,this.childContexts=n,this.parent=i}return _createClass(e,[{key:"get",value:function(e,t){return e===rt?this.route:e===kn?this.childContexts:this.parent.get(e,t)}}]),e}(),Mn=function e(){_classCallCheck(this,e)},Ln=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return(0,s.of)(null)}}]),e}(),Fn=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new gn(n,i,function(e){return t.triggerEvent(new ae(e))},function(e){return t.triggerEvent(new se(e))})}return _createClass(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe((0,x.h)(function(e){return e instanceof X}),(0,z.b)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(r.h0i);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var s=o._loadedConfig;i.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(e,o)):o.children&&i.push(this.processRoutes(e,o.children))}}catch(u){r.e(u)}finally{r.f()}return(0,a.D)(i).pipe((0,W.J)(),(0,q.U)(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?(0,s.of)(t._loadedConfig):n.loader.load(e.injector,t)).pipe((0,Y.zg)(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(An),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(Mn))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Nn=function(){var e=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof J?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof X&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof fe&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new fe(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(An),r.LFG(i.EM),r.LFG(void 0))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Un=new r.OlP("ROUTER_CONFIGURATION"),Bn=new r.OlP("ROUTER_FORROOT_GUARD"),Zn=[i.Ye,{provide:Le,useClass:Fe},{provide:An,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new An(null,e,t,n,i,r,o,be(a));return u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,c),s.enableTracing&&c.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),c},deps:[Le,kn,i.Ye,r.zs3,r.v3s,r.Sil,mn,Un,[function(){return function e(){_classCallCheck(this,e)}}(),new r.FiY],[function(){return function e(){_classCallCheck(this,e)}}(),new r.FiY]]},kn,{provide:rt,useFactory:function(e){return e.routerState.root},deps:[An]},{provide:r.v3s,useClass:r.EAV},Fn,Ln,function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return t().pipe(b(function(){return(0,s.of)(null)}))}}]),e}(),{provide:Un,useValue:{enableTracing:!1}}];function jn(){return new r.PXZ("Router",An)}var qn=function(){var e=function(){function e(t,n){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Zn,Yn(t),{provide:Bn,useFactory:zn,deps:[[An,new r.FiY,new r.tp0]]},{provide:Un,useValue:n||{}},{provide:i.S$,useFactory:Hn,deps:[i.lw,[new r.tBr(i.mr),new r.FiY],Un]},{provide:Nn,useFactory:Vn,deps:[An,i.EM,Un]},{provide:Mn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ln},{provide:r.PXZ,multi:!0,useFactory:jn},[Gn,{provide:r.ip1,multi:!0,useFactory:Kn,deps:[Gn]},{provide:Qn,useFactory:Wn,deps:[Gn]},{provide:r.tb,multi:!0,useExisting:Qn}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Yn(t)]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(Bn,8),r.LFG(An,8))},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}();function Vn(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Nn(e,t,n)}function Hn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new i.Do(e,t):new i.b0(e,t)}function zn(e){return"guarded"}function Yn(e){return[{provide:r.deG,multi:!0,useValue:e},{provide:mn,multi:!0,useValue:e}]}var Gn=function(){var e=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new v.xQ}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(i.V_,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(An),r=e.injector.get(Un);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?(0,s.of)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Un),n=this.injector.get(Fn),i=this.injector.get(Nn),o=this.injector.get(An),a=this.injector.get(r.z2F);e===a.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&o.initialNavigation(),n.setUpPreloading(),i.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.zs3))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}();function Kn(e){return e.appInitializer.bind(e)}function Wn(e){return e.bootstrapListener.bind(e)}var Qn=new r.OlP("Router Initializer")},6215:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var i=n(9765),r=n(7971),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._value=e,i}return _createClass(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=_get(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.N;return this._value}},{key:"next",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=e)}}]),n}(i.xQ)},1593:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var i=n(9193),r=n(5917),o=n(7574),a=function(){function e(t,n,i){_classCallCheck(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,r.of)(this.value);case"E":return e=this.error,new o.y(function(t){return t.error(e)});case"C":return(0,i.c)()}var e;throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();a.completeNotification=new a("C"),a.undefinedValueNotification=new a("N",void 0)},7574:function(e,t,n){"use strict";n.d(t,{y:function(){return c}});var i,r=n(7393),o=n(9181),a=n(6490),s=n(6554),u=n(4487),l=n(2494),c=((i=function(e){function t(e){_classCallCheck(this,t),this._isScalar=!1,e&&(this._subscribe=e)}return _createClass(t,[{key:"lift",value:function(e){var n=new t;return n.source=this,n.operator=e,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,s=function(e,t,n){if(e){if(e instanceof r.L)return e;if(e[o.b])return e[o.b]()}return e||t||n?new r.L(e,t,n):new r.L(a.c)}(e,t,n);if(s.add(i?i.call(s,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),l.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){l.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,i=t.destination,o=t.isStopped;if(n||o)return!1;e=i&&i instanceof r.L?i:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=h(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:e,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n4&&void 0!==arguments[4]?arguments[4]:new s(e,n,i);if(!r.closed)return t instanceof l.y?t.subscribe(r):(0,u.s)(t)(r)}var h=n(6693),f={};function d(){for(var e=arguments.length,t=new Array(e),n=0;n1?Array.prototype.slice.call(arguments):e)},i,n)})}function u(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(t,n),o=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,h=e.length;c1&&"number"==typeof t[t.length-1]&&(s=t.pop())):"number"==typeof l&&(s=t.pop()),null===u&&1===t.length&&t[0]instanceof i.y?t[0]:(0,o.J)(s)((0,a.n)(t,u))}},5917:function(e,t,n){"use strict";n.d(t,{of:function(){return a}});var i=n(4869),r=n(6693),o=n(4087);function a(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:i.P;return function(e){return function(t){return t.lift(new o(e))}}(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=-1;return(0,u.k)(t)?r=Number(t)<1?1:Number(t):(0,l.K)(t)&&(n=t),(0,l.K)(n)||(n=i.P),new s.y(function(t){var i=(0,u.k)(e)?e:+e-n.now();return n.schedule(c,i,{index:0,period:r,subscriber:t})})}(e,t)})}},4612:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var i=n(9773);function r(e,t){return(0,i.zg)(e,t,1)}},4395:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var i=n(7393),r=n(3637);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P;return function(n){return n.lift(new a(e,t))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.dueTime=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return _createClass(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(u,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(i.L);function u(e){e.debouncedNext()}},7519:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var i=n(7393);function r(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.compare=t,this.keySelector=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.compare,this.keySelector))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return _createClass(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(n){return this.destination.error(n)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(i.L)},5435:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var i=n(7393);function r(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).predicate=i,o.thisArg=r,o.count=0,o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(i.L)},8002:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});var i=n(7393);function r(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||_assertThisInitialized(o),o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(i.L)},3282:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var i=n(9773),r=n(4487);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,i.zg)(r.y,e)}},9773:function(e,t,n){"use strict";n.d(t,{zg:function(){return a}});var i=n(8002),r=n(4402),o=n(5345);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(o){return o.pipe(a(function(n,o){return(0,r.D)(e(n,o)).pipe((0,i.U)(function(e,i){return t(n,e,o,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new s(e,n))})}var s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.project,this.concurrent))}}]),e}(),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(o.Ds)},1307:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var i=n(7393);function r(){return function(e){return e.lift(new o(e))}}var o=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new a(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).connectable=i,r}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}else this.connection=null}}]),n}(i.L)},3653:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var i=n(7393);function r(e){return function(t){return t.lift(new o(e))}}var o=function(){function e(t){_classCallCheck(this,e),this.total=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.total))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(i.L)},9761:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var i=n(8071),r=n(4869);function o(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"schedule",value:function(e){return this}}]),n}(n(5319).w))},6102:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var i,r=((i=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}()).now=function(){return Date.now()},i),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.now;return _classCallCheck(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==_assertThisInitialized(i)?n.delegate.now():o()})).actions=[],i.active=!1,i.scheduled=void 0,i}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(r)},4581:function(e,t,n){"use strict";n.d(t,{E:function(){return c}});var i=1,r=Promise.resolve(),o={};function a(e){return e in o&&(delete o[e],!0)}var s=function(e){var t=i++;return o[t]=!0,r.then(function(){return a(t)&&e()}),t},u=function(e){a(e)},l=n(6465),c=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=s(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(u(t),e.scheduled=void 0)}}]),n}(l.o))},3637:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var i=n(6465),r=new(n(6102).v)(i.o)},377:function(e,t,n){"use strict";n.d(t,{hZ:function(){return i}});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},7971:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},4449:function(e,t,n){"use strict";function i(e){setTimeout(function(){throw e},0)}n.d(t,{z:function(){return i}})},4487:function(e,t,n){"use strict";function i(e){return e}n.d(t,{y:function(){return i}})},9796:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var i=Array.isArray||function(e){return e&&"number"==typeof e.length}},9489:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},9105:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,{m:function(){return i}})},6561:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var i=n(9796);function r(e){return!(0,i.k)(e)&&e-parseFloat(e)+1>=0}},1555:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,{K:function(){return i}})},5639:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var i=n(7574);function r(e){return!!e&&(e instanceof i.y||"function"==typeof e.lift&&"function"==typeof e.subscribe)}},4072:function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,{t:function(){return i}})},4869:function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,{K:function(){return i}})},7444:function(e,t,n){"use strict";n.d(t,{s:function(){return c}});var i=n(5015),r=n(4449),o=n(377),a=n(6554),s=n(9489),u=n(4072),l=n(1555),c=function(e){if(e&&"function"==typeof e[a.L])return function(e){return function(t){var n=e[a.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}}(e);if((0,s.z)(e))return(0,i.V)(e);if((0,u.t)(e))return function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,r.z),t}}(e);if(e&&"function"==typeof e[o.hZ])return function(e){return function(t){for(var n=e[o.hZ]();;){var i=void 0;try{i=n.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}}(e);var t="You provided ".concat((0,l.K)(e)?"an invalid object":"'".concat(e,"'")," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.");throw new TypeError(t)}},5015:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var i=function(e){return function(t){for(var n=0,i=e.length;n0?(this.dialogRef.afterClosed().subscribe(function(t){e.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.P;return(!(0,a.k)(e)||e<0)&&(e=0),(!t||"function"!=typeof t.schedule)&&(t=o.P),new r.y(function(n){return n.add(t.schedule(s,e,{subscriber:n,counter:0,period:e})),n})}(1e3).subscribe(function(t){var n=e.data.autoclose-1e3*(t+1);e.setExtra(n),n<=0&&e.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(function(t){e.closed()}),this.subscription=this.data.checkClose.subscribe(function(t){window.setTimeout(function(){e.doClose()})}))}},{key:"initYesNo",value:function(){}},{key:"ngOnInit",value:function(){this.data.type===m.yesno?this.initYesNo():this.initAlert()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.Y36(i.so),u.Y36(i.WI))},e.\u0275cmp=u.Xpm({type:e,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"]],template:function(e,t){1&e&&(u._UZ(0,"h4",0),u.ALo(1,"safeHtml"),u._UZ(2,"mat-dialog-content",1),u.ALo(3,"safeHtml"),u.TgZ(4,"mat-dialog-actions"),u.YNc(5,d,4,1,"button",2),u.YNc(6,p,3,0,"button",2),u.YNc(7,v,3,0,"button",2),u.qZA()),2&e&&(u.Q6J("innerHtml",u.lcZ(1,5,t.data.title),u.oJD),u.xp6(2),u.Q6J("innerHTML",u.lcZ(3,7,t.data.body),u.oJD),u.xp6(3),u.Q6J("ngIf",0===t.data.type),u.xp6(1),u.Q6J("ngIf",1===t.data.type),u.xp6(1),u.Q6J("ngIf",1===t.data.type))},directives:[i.uh,i.xY,i.H8,l.O5,c.lW,i.ZT,h.P],pipes:[f.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}(),y=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialog=t}return _createClass(e,[{key:"alert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=window.innerWidth<800?"80%":"40%";return this.dialog.open(g,{width:r,data:{title:e,body:t,autoclose:n,checkClose:i,type:m.alert},disableClose:!0})}},{key:"yesno",value:function(e,t){var n=window.innerWidth<800?"80%":"40%";return this.dialog.open(g,{width:n,data:{title:e,body:t,type:m.yesno},disableClose:!0}).componentInstance.yesno}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.LFG(i.uw))},e.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac}),e}()},2870:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var i,r=n(7574),o=((i=function(){function e(t){_classCallCheck(this,e),this.api=t,this.delay=t.config.launcher_wait_time}return _createClass(e,[{key:"launchURL",value:function(t){var n=this,i="init",o=function(e){var t=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof e?t=e:403===e.status&&(t=django.gettext("Your session has expired. Please, login again")),window.setTimeout(function(){n.showAlert(django.gettext("Error"),t,5e3),403===e.status&&window.setTimeout(function(){n.api.logout()},5e3)})};if("udsa://"===t.substring(0,7)){var a=t.split("//")[1].split("/"),s=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new r.y(function(e){var t=0,r=function i(){s.componentInstance&&n.api.status(a[0],a[1]).subscribe(function(r){"ready"===r.status?(t?Date.now()-t>5*n.delay&&(s.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),s.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(t=Date.now(),s.componentInstance.data.title=django.gettext("Service ready"),s.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(i,n.delay)):"accessed"===r.status?(s.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),e.next(!0),e.complete()):"running"===r.status?window.setTimeout(i,n.delay):(e.next(!0),e.complete(),o())},function(t){e.next(!0),e.complete(),o(t)})};window.setTimeout(function e(){if("init"===i)window.setTimeout(e,n.delay);else{if("error"===i||"stop"===i)return;window.setTimeout(r)}})}));this.api.enabler(a[0],a[1]).subscribe(function(e){if(e.error)i="error",n.api.gui.alert(django.gettext("Error launching service"),e.error);else{if(e.url.startsWith("/"))return s.componentInstance&&s.componentInstance.close(),i="stop",void n.launchURL(e.url);"https:"===window.location.protocol&&(e.url=e.url.replace("uds://","udss://")),i="enabled",n.doLaunch(e.url)}},function(e){n.api.logout()})}else var u=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new r.y(function(i){window.setTimeout(function r(){u.componentInstance&&n.api.transportUrl(t).subscribe(function(t){if(t.url)if(i.next(!0),i.complete(),-1!==t.url.indexOf("o_s_w=")){var a=/(.*)&o_s_w=.*/.exec(t.url);window.location.href=a[1]}else{var s="global";if(-1!==t.url.indexOf("o_n_w=")){var u=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(t.url);u&&(s=u[2],t.url=u[1])}e.transportsWindow[s]&&e.transportsWindow[s].close(),e.transportsWindow[s]=window.open(t.url,"uds_trans_"+s)}else t.running?window.setTimeout(r,n.delay):(i.next(!0),i.complete(),o(t.error))},function(e){i.next(!0),i.complete(),o(e)})})}))}},{key:"showAlert",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return this.api.gui.alert(django.gettext("Launching service"),'

'+e+'

'+t+"

",n,i)}},{key:"doLaunch",value:function(e){var t=document.getElementById("hiddenUdsLauncherIFrame");if(null===t){var n=document.createElement("div");n.id="testID",n.innerHTML='',document.body.appendChild(n),t=document.getElementById("hiddenUdsLauncherIFrame")}t.contentWindow.location.href=e}}]),e}()).transportsWindow={},i)},4902:function _(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G:function(){return LoginComponent}});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3018),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(665),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8295),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9983),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8583),_angular_material_button__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1095),_angular_material_select__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7441),_angular_material_core__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2458),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template(e,t){if(1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&e){var n=t.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",n.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",n.name," ")}}function LoginComponent_div_22_Template(e,t){if(1&e){var n=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(1,"mat-form-field",17),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(2,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(e){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(n),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(e.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()}if(2&e){var i=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",i.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",i.auths)}}var LoginComponent=function(){var LoginComponent=function(){function LoginComponent(e){_classCallCheck(this,LoginComponent),this.api=e,this.title="UDS Enterprise",this.title=e.config.site_name,this.auths=e.config.authenticators.slice(0),this.auths.sort(function(e,t){return e.priority-t.priority})}return _createClass(LoginComponent,[{key:"ngOnInit",value:function(){document.getElementById("loginform").action=this.api.config.urls.login;var e=document.getElementById("token");e.name=this.api.csrfField,e.value=this.api.csrfToken,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}},{key:"changeAuth",value:function changeAuth(auth){this.auth.value=auth;var doCustomAuth=function doCustomAuth(data){eval(data)},_iterator22=_createForOfIteratorHelper(this.auths),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var Ke=_step22.value;Ke.id===auth&&Ke.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml(Ke.id).subscribe(function(e){return doCustomAuth(e)}))}}catch(err){_iterator22.e(err)}finally{_iterator22.f()}}},{key:"launch",value:function(){return document.getElementById("loginform").submit(),!0}}]),LoginComponent}();return LoginComponent.\u0275fac=function(e){return new(e||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return t.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(2,"input",2),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(10,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(11,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(12,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(17,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(18,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(24,"button",15),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",t.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",t.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",t.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,t.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_button__WEBPACK_IMPORTED_MODULE_7__.lW,_angular_material_select__WEBPACK_IMPORTED_MODULE_8__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_9__.ey],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent}()},7918:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var i,r=n(3018),o=((i=function(){function e(t){_classCallCheck(this,e),this.el=t}return _createClass(e,[{key:"ngOnInit",value:function(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}]),e}()).\u0275fac=function(e){return new(e||i)(r.Y36(r.SBq))},i.\u0275dir=r.lG2({type:i,selectors:[["uds-translate"]]}),i)},3513:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var i=function(){function e(t){_classCallCheck(this,e),this.user=t.user,this.role=t.role,this.admin=t.admin}return _createClass(e,[{key:"isStaff",get:function(){return"staff"===this.role||"admin"===this.role}},{key:"isAdmin",get:function(){return"admin"===this.role}},{key:"isLogged",get:function(){return null!=this.user}},{key:"isRestricted",get:function(){return"restricted"===this.role}}]),e}()},7540:function _(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return UDSApiService}});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3018),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1841),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3183),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8741),UDSApiService=function(){var UDSApiService=function(){function UDSApiService(e,t,n){_classCallCheck(this,UDSApiService),this.http=e,this.gui=t,this.router=n,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}return _createClass(UDSApiService,[{key:"config",get:function(){return udsData.config}},{key:"csrfField",get:function(){return csrf.csrfField}},{key:"csrfToken",get:function(){return csrf.csrfToken}},{key:"staffInfo",get:function(){return udsData.info}},{key:"plugins",get:function(){return udsData.plugins}},{key:"actors",get:function(){return udsData.actors}},{key:"errors",get:function(){return udsData.errors}},{key:"enabler",value:function(e,t){var n=this.config.urls.enabler.replace("param1",e).replace("param2",t);return this.http.get(n)}},{key:"status",value:function(e,t){var n=this.config.urls.status.replace("param1",e).replace("param2",t);return this.http.get(n)}},{key:"action",value:function(e,t){var n=this.config.urls.action.replace("param1",t).replace("param2",e);return this.http.get(n)}},{key:"transportUrl",value:function(e){return this.http.get(e)}},{key:"galleryImageURL",value:function(e){return this.config.urls.galleryImage.replace("param1",e)}},{key:"transportIconURL",value:function(e){return this.config.urls.transportIcon.replace("param1",e)}},{key:"staticURL",value:function(e){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+e:"/static/"+e}},{key:"getServicesInformation",value:function(){return this.http.get(this.config.urls.services)}},{key:"getErrorInformation",value:function(e){return this.http.get(this.config.urls.error.replace("9999",e))}},{key:"executeCustomJSForServiceLaunch",value:function executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}},{key:"gotoAdmin",value:function(){window.location.href=this.config.urls.admin}},{key:"logout",value:function(){window.location.href=this.config.urls.logout}},{key:"launchURL",value:function(e){this.plugin.launchURL(e)}},{key:"getAuthCustomHtml",value:function(e){return this.http.get(this.config.urls.customAuth+e,{responseType:"text"})}}]),UDSApiService}();return UDSApiService.\u0275fac=function(e){return new(e||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService}()},2340:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i={production:!0}},6445:function(e,t,n){"use strict";var i,r,o=n(9075),a=n(3018),s=n(9490),u=n(9765),l=n(739),c=n(8071),h=n(7574),f=n(5257),d=n(3653),p=n(4395),v=n(8002),_=n(9761),m=n(6782),g=n(521),y=((i=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||i)},i.\u0275mod=a.oAB({type:i}),i.\u0275inj=a.cJS({}),i),k=new Set,b=function(){var e=function(){function e(t){_classCallCheck(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):C}return _createClass(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!k.has(e))try{r||((r=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(r)),r.sheet&&(r.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),k.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(g.t4))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(g.t4))},token:e,providedIn:"root"}),e}();function C(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var w=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new u.xQ}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return x((0,s.Eq)(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=x((0,s.Eq)(e)).map(function(e){return t._registerQuery(e).observable}),i=(0,l.aj)(n);return(i=(0,c.z)(i.pipe((0,f.q)(1)),i.pipe((0,d.T)(1),(0,p.b)(0)))).pipe((0,v.U)(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new h.y(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe((0,_.O)(n),(0,v.U)(function(t){var n=t.matches;return{query:e,matches:n}}),(0,m.R)(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(b),a.LFG(a.R0b))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(b),a.LFG(a.R0b))},token:e,providedIn:"root"}),e}();function x(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var E=n(1841),S=n(8741),A=n(7540),O=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"canActivate",value:function(e,t){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(A.n))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),T=n(4902),P=n(7918),I=n(8583);function R(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw().download(e.url)}),a.TgZ(1,"div",7),a._UZ(2,"img",8),a.qZA(),a.TgZ(3,"div",9),a._uU(4),a.qZA(),a.TgZ(5,"div",10),a._uU(6),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.Tol(r.css(i)),a.xp6(2),a.Q6J("src",r.img(i.name),a.LSH),a.xp6(2),a.lnq(" ",r.legacy(i)," ",i.name," (",i.url.split(".").pop(),") "),a.xp6(2),a.hij(" ",i.description," ")}}var D=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"download",value:function(e){window.location.href=e}},{key:"img",value:function(e){return this.api.staticURL("modern/img/"+e+".png")}},{key:"css",value:function(e){var t=["plugin"];return e.legacy&&t.push("legacy"),t}},{key:"legacy",value:function(e){return e.legacy?"Legacy":""}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a.TgZ(3,"h1"),a.TgZ(4,"uds-translate"),a._uU(5,"UDS Client"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.YNc(7,R,7,7,"div",4),a.qZA(),a.TgZ(8,"div",5),a.TgZ(9,"ul"),a.TgZ(10,"li"),a.TgZ(11,"uds-translate"),a._uU(12,"Download UDS client for your platform"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(7),a.Q6J("ngForOf",t.api.plugins))},directives:[P.P,I.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem}"]}),e}(),M=n(6498);function L(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw().download(e.url)}),a.TgZ(1,"div",7),a._UZ(2,"img",8),a.qZA(),a._UZ(3,"div",9),a.ALo(4,"safeHtml"),a._UZ(5,"div",10),a.ALo(6,"safeHtml"),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.Tol(r.css(i.name)),a.xp6(2),a.Q6J("src",r.img(i.name),a.LSH),a.xp6(1),a.Q6J("innerHTML",a.lcZ(4,5,i.name),a.oJD),a.xp6(2),a.Q6J("innerHTML",a.lcZ(6,7,i.description),a.oJD)}}var F=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.actors=[];var t=[];this.api.actors.forEach(function(n){n.name.includes("legacy")?t.push(n):e.actors.push(n)}),t.forEach(function(t){e.actors.push(t)})}},{key:"download",value:function(e){window.location.href=e}},{key:"img",value:function(e){var t=e.split(".").pop().toLowerCase(),n="Linux";return"exe"===t?n="Windows":"pkg"===t&&(n="MacOS"),this.api.staticURL("modern/img/"+n+".png")}},{key:"css",value:function(e){var t=["actor"];return e.toLowerCase().includes("legacy")&&t.push("legacy"),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a.TgZ(3,"h1"),a.TgZ(4,"uds-translate"),a._uU(5,"Downloads"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.YNc(7,L,7,9,"div",4),a.qZA(),a.TgZ(8,"div",5),a.TgZ(9,"ul"),a.TgZ(10,"li"),a.TgZ(11,"uds-translate"),a._uU(12,"Always download the UDS actor matching your platform"),a.qZA(),a.qZA(),a.TgZ(13,"li"),a.TgZ(14,"uds-translate"),a._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(7),a.Q6J("ngForOf",t.actors))},directives:[P.P,I.sg],pipes:[M.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:bold;overflow:hidden}"]}),e}(),N=n(5319),U=n(8345),B=0,Z=new a.OlP("CdkAccordion"),j=function(){var e=function(){function e(){_classCallCheck(this,e),this._stateChanges=new u.xQ,this._openCloseAllActions=new u.xQ,this.id="cdk-accordion-"+B++,this._multi=!1}return _createClass(e,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=(0,s.Ig)(e)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[a._Bn([{provide:Z,useExisting:e}]),a.TTD]}),e}(),q=0,V=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=N.w.EMPTY,this.closed=new a.vpe,this.opened=new a.vpe,this.destroyed=new a.vpe,this.expandedChange=new a.vpe,this.id="cdk-accordion-child-"+q++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen(function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return _createClass(e,[{key:"expanded",get:function(){return this._expanded},set:function(e){e=(0,s.Ig)(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,s.Ig)(e)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe(function(t){e.disabled||(e.expanded=t)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Z,12),a.Y36(a.sBO),a.Y36(U.A8))},e.\u0275dir=a.lG2({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[a._Bn([{provide:Z,useValue:void 0}])]}),e}(),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),z=n(7636),Y=n(2458),G=n(9238),K=n(7519),W=n(5435),Q=n(6461),J=n(6237),X=n(9193),$=n(6682),ee=n(7238),te=["body"];function ne(e,t){}var ie=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],re=["mat-expansion-panel-header","*","mat-action-row"];function oe(e,t){if(1&e&&a._UZ(0,"span",2),2&e){var n=a.oxw();a.Q6J("@indicatorRotate",n._getExpandedState())}}var ae=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],se=["mat-panel-title","mat-panel-description","*"],ue=new a.OlP("MAT_ACCORDION"),le="225ms cubic-bezier(0.4,0.0,0.2,1)",ce={indicatorRotate:(0,ee.X$)("indicatorRotate",[(0,ee.SB)("collapsed, void",(0,ee.oB)({transform:"rotate(0deg)"})),(0,ee.SB)("expanded",(0,ee.oB)({transform:"rotate(180deg)"})),(0,ee.eR)("expanded <=> collapsed, void => collapsed",(0,ee.jt)(le))]),bodyExpansion:(0,ee.X$)("bodyExpansion",[(0,ee.SB)("collapsed, void",(0,ee.oB)({height:"0px",visibility:"hidden"})),(0,ee.SB)("expanded",(0,ee.oB)({height:"*",visibility:"visible"})),(0,ee.eR)("expanded <=> collapsed, void => collapsed",(0,ee.jt)(le))])},he=function(){var e=function e(t){_classCallCheck(this,e),this._template=t};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.Rgc))},e.\u0275dir=a.lG2({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e}(),fe=0,de=new a.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),pe=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,l,c){var h;return _classCallCheck(this,n),(h=t.call(this,e,i,r))._viewContainerRef=o,h._animationMode=l,h._hideToggle=!1,h.afterExpand=new a.vpe,h.afterCollapse=new a.vpe,h._inputChanges=new u.xQ,h._headerId="mat-expansion-panel-header-"+fe++,h._bodyAnimationDone=new u.xQ,h.accordion=e,h._document=s,h._bodyAnimationDone.pipe((0,K.x)(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){"void"!==e.fromState&&("expanded"===e.toState?h.afterExpand.emit():"collapsed"===e.toState&&h.afterCollapse.emit())}),c&&(h.hideToggle=c.hideToggle),h}return _createClass(n,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=(0,s.Ig)(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe((0,_.O)(null),(0,W.h)(function(){return e.expanded&&!e._portal}),(0,f.q)(1)).subscribe(function(){e._portal=new z.UE(e._lazyContent._template,e._viewContainerRef)})}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}]),n}(V);return e.\u0275fac=function(t){return new(t||e)(a.Y36(ue,12),a.Y36(a.sBO),a.Y36(U.A8),a.Y36(a.s_b),a.Y36(I.K0),a.Y36(J.Qb,8),a.Y36(de,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,he,5),2&e)&&(a.iGM(i=a.CRH())&&(t._lazyContent=i.first))},viewQuery:function(e,t){var n;(1&e&&a.Gf(te,5),2&e)&&(a.iGM(n=a.CRH())&&(t._body=n.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&a.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[a._Bn([{provide:ue,useValue:void 0}]),a.qOj,a.TTD],ngContentSelectors:re,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(a.F$t(ie),a.Hsn(0),a.TgZ(1,"div",0,1),a.NdJ("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),a.TgZ(3,"div",2),a.Hsn(4,1),a.YNc(5,ne,0,0,"ng-template",3),a.qZA(),a.Hsn(6,2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),a.uIk("aria-labelledby",t._headerId),a.xp6(4),a.Q6J("cdkPortalOutlet",t._portal))},directives:[z.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ce.bodyExpansion]},changeDetection:0}),e}(),ve=(0,Y.sb)(function e(){_classCallCheck(this,e)}),_e=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u){var l;_classCallCheck(this,n),(l=t.call(this)).panel=e,l._element=i,l._focusMonitor=r,l._changeDetectorRef=o,l._animationMode=s,l._parentChangeSubscription=N.w.EMPTY;var c=e.accordion?e.accordion._stateChanges.pipe((0,W.h)(function(e){return!(!e.hideToggle&&!e.togglePosition)})):X.E;return l.tabIndex=parseInt(u||"")||0,l._parentChangeSubscription=(0,$.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,W.h)(function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)}))).subscribe(function(){return l._changeDetectorRef.markForCheck()}),e.closed.pipe((0,W.h)(function(){return e._containsFocus()})).subscribe(function(){return r.focusVia(i,"program")}),a&&(l.expandedHeight=a.expandedHeight,l.collapsedHeight=a.collapsedHeight),l}return _createClass(n,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(e){switch(e.keyCode){case Q.L_:case Q.K5:(0,Q.Vb)(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._element).subscribe(function(t){t&&e.panel.accordion&&e.panel.accordion._handleHeaderFocus(e)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),n}(ve);return e.\u0275fac=function(t){return new(t||e)(a.Y36(pe,1),a.Y36(a.SBq),a.Y36(G.tE),a.Y36(a.sBO),a.Y36(de,8),a.Y36(J.Qb,8),a.$8M("tabindex"))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&a.NdJ("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(a.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),a.Udp("height",t._getHeaderHeight()),a.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[a.qOj],ngContentSelectors:se,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(a.F$t(ae),a.TgZ(0,"span",0),a.Hsn(1),a.Hsn(2,1),a.Hsn(3,2),a.qZA(),a.YNc(4,oe,1,1,"span",1)),2&e&&(a.xp6(4),a.Q6J("ngIf",t._showToggle()))},directives:[I.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[ce.indicatorRotate]},changeDetection:0}),e}(),me=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),e}(),ge=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e}(),ye=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._ownHeaders=new a.n_E,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return _createClass(n,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=(0,s.Ig)(e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe((0,_.O)(this._headers)).subscribe(function(t){e._ownHeaders.reset(t.filter(function(t){return t.panel.accordion===e})),e._ownHeaders.notifyOnChanges()}),this._keyManager=new G.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(e){this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),n}(j);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,_e,5),2&e)&&(a.iGM(i=a.CRH())&&(t._headers=i))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[a._Bn([{provide:ue,useExisting:t}]),a.qOj]}),t}(),ke=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[I.ez,Y.BQ,H,z.eL]]}),e}();function be(e,t){if(1&e&&(a.TgZ(0,"li"),a.TgZ(1,"uds-translate"),a._uU(2,"Detected proxy ip"),a.qZA(),a._uU(3),a.qZA()),2&e){var n=a.oxw(2);a.xp6(3),a.hij(": ",n.api.staffInfo.ip_proxy,"")}}function Ce(e,t){if(1&e&&(a.TgZ(0,"li"),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n)}}function we(e,t){if(1&e&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n)}}function xe(e,t){if(1&e&&(a.TgZ(0,"div",1),a.TgZ(1,"h1"),a.TgZ(2,"uds-translate"),a._uU(3,"Information"),a.qZA(),a.qZA(),a.TgZ(4,"mat-accordion"),a.TgZ(5,"mat-expansion-panel"),a.TgZ(6,"mat-expansion-panel-header",2),a.TgZ(7,"mat-panel-title"),a._uU(8," IPs "),a.qZA(),a.TgZ(9,"mat-panel-description"),a.TgZ(10,"uds-translate"),a._uU(11,"Client IP"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(12,"ol"),a.TgZ(13,"li"),a.TgZ(14,"uds-translate"),a._uU(15,"Client IP"),a.qZA(),a._uU(16),a.qZA(),a.YNc(17,be,4,1,"li",3),a.qZA(),a.qZA(),a.TgZ(18,"mat-expansion-panel"),a.TgZ(19,"mat-expansion-panel-header",2),a.TgZ(20,"mat-panel-title"),a.TgZ(21,"uds-translate"),a._uU(22,"Transports"),a.qZA(),a.qZA(),a.TgZ(23,"mat-panel-description"),a.TgZ(24,"uds-translate"),a._uU(25,"UDS transports for this client"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(26,"ol"),a.YNc(27,Ce,2,1,"li",4),a.qZA(),a.qZA(),a.TgZ(28,"mat-expansion-panel"),a.TgZ(29,"mat-expansion-panel-header",2),a.TgZ(30,"mat-panel-title"),a.TgZ(31,"uds-translate"),a._uU(32,"Networks"),a.qZA(),a.qZA(),a.TgZ(33,"mat-panel-description"),a.TgZ(34,"uds-translate"),a._uU(35,"UDS networks for this IP"),a.qZA(),a.qZA(),a.qZA(),a.YNc(36,we,2,1,"span",4),a._uU(37,"\xa0 "),a.qZA(),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.xp6(16),a.hij(": ",n.api.staffInfo.ip,""),a.xp6(1),a.Q6J("ngIf",n.api.staffInfo.ip_proxy!==n.api.staffInfo.ip),a.xp6(10),a.Q6J("ngForOf",n.api.staffInfo.transports),a.xp6(9),a.Q6J("ngForOf",n.api.staffInfo.networks)}}var Ee=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(e,t){1&e&&a.YNc(0,xe,38,4,"div",0),2&e&&a.Q6J("ngIf",t.api.staffInfo)},directives:[I.O5,P.P,ye,pe,_e,ge,me,I.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4}"]}),e}(),Se=n(2759),Ae=n(3342),Oe=n(8295),Te=n(9983),Pe=["input"],Ie=function(){var e=function(){function e(){_classCallCheck(this,e),this.updateEvent=new a.vpe}return _createClass(e,[{key:"ngAfterViewInit",value:function(){var e=this;(0,Se.R)(this.input.nativeElement,"keyup").pipe((0,W.h)(Boolean),(0,p.b)(600),(0,K.x)(),(0,Ae.b)(function(){return e.update(e.input.nativeElement.value)})).subscribe()}},{key:"update",value:function(e){this.updateEvent.emit(e.toLowerCase())}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-filter"]],viewQuery:function(e,t){var n;(1&e&&a.Gf(Pe,7),2&e)&&(a.iGM(n=a.CRH())&&(t.input=n.first))},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"mat-form-field",1),a.TgZ(2,"mat-label"),a.TgZ(3,"uds-translate"),a._uU(4,"Filter"),a.qZA(),a.qZA(),a._UZ(5,"input",2,3),a.TgZ(7,"i",4),a._uU(8,"search"),a.qZA(),a.qZA(),a.qZA())},directives:[Oe.KE,Oe.hX,P.P,Te.Nt,Oe.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),e}(),Re=n(5917),De=n(4581),Me=n(3190),Le=n(3637),Fe=n(7393),Ne=n(1593);function Ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Le.P,n=function(e){return e instanceof Date&&!isNaN(+e)}(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new Be(n,t))}}var Be=function(){function e(t,n){_classCallCheck(this,e),this.delay=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Ze(e,this.delay,this.scheduler))}}]),e}(),Ze=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return _createClass(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new je(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(Ne.P.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Ne.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(Fe.L),je=function e(t,n){_classCallCheck(this,e),this.time=t,this.notification=n},qe=n(625),Ve=n(9243),He=n(946),ze=["mat-menu-item",""];function Ye(e,t){1&e&&(a.O4$(),a.TgZ(0,"svg",2),a._UZ(1,"polygon",3),a.qZA())}var Ge=["*"];function Ke(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",0),a.NdJ("keydown",function(e){return a.CHM(n),a.oxw()._handleKeydown(e)})("click",function(){return a.CHM(n),a.oxw().closed.emit("click")})("@transformMenu.start",function(e){return a.CHM(n),a.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return a.CHM(n),a.oxw()._onAnimationDone(e)}),a.TgZ(1,"div",1),a.Hsn(2),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),a.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var We={transformMenu:(0,ee.X$)("transformMenu",[(0,ee.SB)("void",(0,ee.oB)({opacity:0,transform:"scale(0.8)"})),(0,ee.eR)("void => enter",(0,ee.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.oB)({opacity:1,transform:"scale(1)"}))),(0,ee.eR)("* => void",(0,ee.jt)("100ms 25ms linear",(0,ee.oB)({opacity:0})))]),fadeInItems:(0,ee.X$)("fadeInItems",[(0,ee.SB)("showing",(0,ee.oB)({opacity:1})),(0,ee.eR)("void => *",[(0,ee.oB)({opacity:0}),(0,ee.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Qe=new a.OlP("MatMenuContent"),Je=new a.OlP("MAT_MENU_PANEL"),Xe=(0,Y.Kr)((0,Y.Id)(function(){return function e(){_classCallCheck(this,e)}}())),$e=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s;return _classCallCheck(this,n),(s=t.call(this))._elementRef=e,s._focusMonitor=r,s._parentMenu=o,s._changeDetectorRef=a,s.role="menuitem",s._hovered=new u.xQ,s._focused=new u.xQ,s._highlighted=!1,s._triggersSubmenu=!1,o&&o.addItem&&o.addItem(_assertThisInitialized(s)),s}return _createClass(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t=this,n=Math.min(this._baseElevation+e,24),i="".concat(this._elevationPrefix).concat(n),r=Object.keys(this._classList).find(function(e){return e.startsWith(t._elevationPrefix)});(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe((0,_.O)(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(et))},e.\u0275dir=a.lG2({type:e,contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,Qe,5),a.Suo(n,$e,5),a.Suo(n,$e,4)),2&e)&&(a.iGM(i=a.CRH())&&(t.lazyContent=i.first),a.iGM(i=a.CRH())&&(t._allItems=i),a.iGM(i=a.CRH())&&(t.items=i))},viewQuery:function(e,t){var n;(1&e&&a.Gf(a.Rgc,5),2&e)&&(a.iGM(n=a.CRH())&&(t.templateRef=n.first))},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),it=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i,r))._elevationPrefix="mat-elevation-z",o._baseElevation=4,o}return n}(nt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(et))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&a.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[a._Bn([{provide:Je,useExisting:e}]),a.qOj],ngContentSelectors:Ge,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(a.F$t(),a.YNc(0,Ke,3,6,"ng-template"))},directives:[I.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[We.transformMenu,We.fadeInItems]},changeDetection:0}),e}(),rt=new a.OlP("mat-menu-scroll-strategy"),ot={provide:rt,deps:[qe.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},at=(0,g.i$)({passive:!0}),st=function(){var e=function(){function e(t,n,i,r,o,s,u,l){var c=this;_classCallCheck(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=u,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=N.w.EMPTY,this._hoverSubscription=N.w.EMPTY,this._menuCloseSubscription=N.w.EMPTY,this._handleTouchStart=function(e){(0,G.yG)(e)||(c._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new a.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof nt?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,at),s&&(s._triggersSubmenu=this.triggersSubmenu())}return _createClass(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),("click"===e||"tab"===e)&&t._parentMaterialMenu&&t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,at),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof nt&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof nt?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe((0,W.h)(function(e){return"void"===e.toState}),(0,f.q)(1),(0,m.R)(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new qe.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,u=a,l=n,c=i,h=0;this.triggersSubmenu()?(c=n="before"===this.menu.xPosition?"start":"end",i=l="end"===n?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",u="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:l,overlayY:o,offsetY:h},{originX:i,originY:s,overlayX:c,overlayY:o,offsetY:h},{originX:n,originY:u,overlayX:l,overlayY:a,offsetY:-h},{originX:i,originY:u,overlayX:c,overlayY:a,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Re.of)(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,W.h)(function(t){return t!==e._menuItemInstance}),(0,W.h)(function(){return e._menuOpen})):(0,Re.of)();return(0,$.T)(t,i,r,n)}},{key:"_handleMousedown",value:function(e){(0,G.X6)(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;(t===Q.K5||t===Q.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===Q.SV&&"ltr"===this.dir||t===Q.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,W.h)(function(t){return t===e._menuItemInstance&&!t.disabled}),Ue(0,De.E)).subscribe(function(){e._openedBy="mouse",e.menu instanceof nt&&e.menu._isAnimating?e.menu._animationDone.pipe((0,f.q)(1),Ue(0,De.E),(0,m.R)(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new z.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(a.s_b),a.Y36(rt),a.Y36(Je,8),a.Y36($e,10),a.Y36(He.Is,8),a.Y36(G.tE))},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&a.NdJ("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&a.uIk("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),ut=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[ot],imports:[Y.BQ]}),e}(),lt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[ot],imports:[[I.ez,Y.BQ,Y.si,qe.U8,ut],Ve.ZD,Y.BQ,ut]}),e}(),ct={tooltipState:(0,ee.X$)("state",[(0,ee.SB)("initial, void, hidden",(0,ee.oB)({opacity:0,transform:"scale(0)"})),(0,ee.SB)("visible",(0,ee.oB)({transform:"scale(1)"})),(0,ee.eR)("* => visible",(0,ee.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,ee.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,ee.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,ee.eR)("* => hidden",(0,ee.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.oB)({opacity:0})))])},ht="tooltip-panel",ft=(0,g.i$)({passive:!0}),dt=new a.OlP("mat-tooltip-scroll-strategy"),pt={provide:dt,deps:[qe.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},vt=new a.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),_t=function(){var e=function(){function e(t,n,i,r,o,a,s,l,c,h,f,d){var p=this;_classCallCheck(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=l,this._dir=h,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new u.xQ,this._handleKeydown=function(e){p._isTooltipVisible()&&e.keyCode===Q.hY&&!(0,Q.Vb)(e)&&(e.preventDefault(),e.stopPropagation(),p._ngZone.run(function(){return p.hide(0)}))},this._scrollStrategy=c,this._document=d,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe((0,m.R)(this._destroyed)).subscribe(function(){p._overlayRef&&p._updatePosition(p._overlayRef)}),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",p._handleKeydown)})}return _createClass(e,[{key:"position",get:function(){return this._position},set:function(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,s.Ig)(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,m.R)(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=_slicedToArray(t,2),i=n[0],r=n[1];e.removeEventListener(i,r,ft)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new z.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,m.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe((0,m.R)(this._destroyed)).subscribe(function(t){e._updateCurrentPositionClass(t.connectionPair),e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-").concat(ht),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,m.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,m.R)(this._destroyed)).subscribe(function(){var t;return null===(t=e._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var t=e.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,f.q)(1),(0,m.R)(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_updateCurrentPositionClass",value:function(e){var t,n=e.overlayY,i=e.originX,r=e.originY;if((t="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===r?"above":"below")!==this._currentPosition){var o=this._overlayRef;if(o){var a="".concat(this._cssClassPrefix,"-").concat(ht,"-");o.removePanelClass(a+this._currentPosition),o.addPanelClass(a+t)}this._currentPosition=t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=_slicedToArray(e,2),i=n[0],r=n[1];t._elementRef.nativeElement.addEventListener(i,r,ft)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t!==n&&!n.contains(t)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),("on"===e||!t.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(Ve.mF),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(g.t4),a.Y36(G.$s),a.Y36(G.tE),a.Y36(void 0),a.Y36(He.Is),a.Y36(void 0),a.Y36(I.K0))},e.\u0275dir=a.lG2({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),mt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u,l,c,h,f,d){var p;return _classCallCheck(this,n),(p=t.call(this,e,i,r,o,a,s,u,l,c,h,f,d))._tooltipComponent=yt,p}return n}(_t);return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(Ve.mF),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(g.t4),a.Y36(G.$s),a.Y36(G.tE),a.Y36(dt),a.Y36(He.Is,8),a.Y36(vt,8),a.Y36(I.K0))},e.\u0275dir=a.lG2({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[a.qOj]}),e}(),gt=function(){var e=function(){function e(t){_classCallCheck(this,e),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new u.xQ}return _createClass(e,[{key:"show",value:function(e){var t=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=void 0,t._onShow(),t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=void 0,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO))},e.\u0275dir=a.lG2({type:e}),e}(),yt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e))._breakpointObserver=i,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return n}(gt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO),a.Y36(w))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&a.Udp("zoom","visible"===t._visibility?1:null)},features:[a.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(a.TgZ(0,"div",0),a.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),a.ALo(1,"async"),a._uU(2),a.qZA()),2&e)&&(a.ekj("mat-tooltip-handset",null==(n=a.lcZ(1,5,t._isHandset))?null:n.matches),a.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),a.xp6(2),a.Oqu(t.message))},directives:[I.mk],pipes:[I.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ct.tooltipState]},changeDetection:0}),e}(),kt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[pt],imports:[[G.rt,I.ez,qe.U8,Y.BQ],Y.BQ,Ve.ZD]}),e}(),bt=n(1095);function Ct(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(2).launch(e)}),a.TgZ(1,"div",15),a._UZ(2,"img",9),a._uU(3),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw(2);a.xp6(2),a.Q6J("src",r.getTransportIcon(i.id),a.LSH),a.xp6(1),a.hij(" ",i.name," ")}}function wt(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).action("release")}),a.TgZ(1,"i",16),a._uU(2,"delete"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4," Release service"),a.qZA(),a.qZA()}}function xt(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).action("reset")}),a.TgZ(1,"i",16),a._uU(2,"refresh"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4," Reset service"),a.qZA(),a.qZA()}}function Et(e,t){if(1&e&&(a.TgZ(0,"button",17),a.TgZ(1,"uds-translate"),a._uU(2,"Connections"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(2);a.Q6J("matMenuTriggerFor",n)}}function St(e,t){if(1&e&&(a.TgZ(0,"button",17),a.TgZ(1,"uds-translate"),a._uU(2,"Actions"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(5);a.Q6J("matMenuTriggerFor",n)}}function At(e,t){if(1&e&&(a.TgZ(0,"button",18),a.TgZ(1,"i",16),a._uU(2,"menu"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(9);a.Q6J("matMenuTriggerFor",n)}}function Ot(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"mat-menu",null,1),a.YNc(3,Ct,4,2,"button",2),a.qZA(),a.TgZ(4,"mat-menu",null,3),a.YNc(6,wt,5,0,"button",4),a.YNc(7,xt,5,0,"button",4),a.qZA(),a.TgZ(8,"mat-menu",null,5),a.YNc(10,Et,3,1,"button",6),a.YNc(11,St,3,1,"button",6),a.qZA(),a.TgZ(12,"div",7),a.TgZ(13,"div",8),a.NdJ("click",function(){return a.CHM(n),a.oxw().launch(null)}),a._UZ(14,"img",9),a.qZA(),a.TgZ(15,"div",10),a.TgZ(16,"span",11),a._uU(17),a.qZA(),a.qZA(),a.TgZ(18,"div",12),a.YNc(19,At,3,1,"button",13),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(3),a.Q6J("ngForOf",i.service.transports),a.xp6(3),a.Q6J("ngIf",i.service.allow_users_remove),a.xp6(1),a.Q6J("ngIf",i.service.allow_users_reset),a.xp6(3),a.Q6J("ngIf",i.showTransportsMenu()),a.xp6(1),a.Q6J("ngIf",i.hasActions()),a.xp6(1),a.Q6J("ngClass",i.serviceClass)("matTooltipDisabled",""===i.serviceTooltip)("matTooltip",i.serviceTooltip),a.xp6(2),a.Q6J("src",i.serviceImage,a.LSH),a.xp6(2),a.Q6J("ngClass",i.serviceNameClass),a.xp6(1),a.Oqu(i.serviceName),a.xp6(2),a.Q6J("ngIf",i.hasMenu())}}var Tt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"serviceImage",get:function(){return this.api.galleryImageURL(this.service.imageId)}},{key:"serviceName",get:function(){var e=this.service.visual_name;return e.length>32&&(e=e.substring(0,29)+"..."),e}},{key:"serviceTooltip",get:function(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}},{key:"serviceClass",get:function(){var e=["service"];return null!=this.service.to_be_replaced?e.push("tobereplaced"):this.service.maintenance?e.push("maintenance"):this.service.not_accesible?e.push("forbidden"):this.service.in_use&&e.push("inuse"),e.length>1&&e.push("alert"),e}},{key:"serviceNameClass",get:function(){var e=[],t=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return t>=16&&e.push("small-"+t.toString()),e}},{key:"getTransportIcon",value:function(e){return this.api.transportIconURL(e)}},{key:"hasActions",value:function(){return this.service.allow_users_remove||this.service.allow_users_reset}},{key:"showTransportsMenu",value:function(){return this.service.transports.length>1&&this.service.show_transports}},{key:"hasMenu",value:function(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}},{key:"notifyNotLaunching",value:function(e){this.api.gui.alert('

'+django.gettext("Launcher")+"

",e)}},{key:"launch",value:function(e){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){var t=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching('

'+django.gettext("This service is currently not accesible due to schedule restrictions.")+'

'+t+'

')}else(null===e||!1===this.service.show_transports)&&(e=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(e.link)}},{key:"action",value:function(e){var t=this,n=("release"===e?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,i="release"===e?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(n,django.gettext("Are you sure?")).subscribe(function(r){r&&t.api.action(e,t.service.id).subscribe(function(e){e&&t.api.gui.alert(n,i)})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(e,t){1&e&&a.YNc(0,Ot,20,12,"div",0),2&e&&a.Q6J("ngIf",t.service.transports.length>0)},directives:[I.O5,it,I.sg,I.mk,mt,$e,P.P,st,bt.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:rgba(0,0,0,.22);display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22)}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;border-radius:1px;background-color:rgba(255,255,255,.8)}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:"Material Icons";font-weight:normal;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"}']}),e}();function Pt(e,t){1&e&&a._UZ(0,"uds-service",8),2&e&&a.Q6J("service",t.$implicit)}function It(e,t){if(1&e&&(a.TgZ(0,"mat-expansion-panel",1),a.TgZ(1,"mat-expansion-panel-header",2),a.TgZ(2,"mat-panel-title"),a.TgZ(3,"div",3),a._UZ(4,"img",4),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"mat-panel-description",5),a._uU(7),a.qZA(),a.qZA(),a.TgZ(8,"div",6),a.YNc(9,Pt,1,1,"uds-service",7),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.Q6J("expanded",n.expanded),a.xp6(1),a.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),a.xp6(3),a.Q6J("src",n.groupImage,a.LSH),a.xp6(1),a.hij(" ",n.group.name,""),a.xp6(2),a.hij(" ",n.group.comments," "),a.xp6(2),a.Q6J("ngForOf",n.sortedServices)}}var Rt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.expanded=!1}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"groupImage",get:function(){return this.api.galleryImageURL(this.group.imageUuid)}},{key:"hasVisibleServices",get:function(){return this.services.length>0}},{key:"sortedServices",get:function(){return this.services.sort(function(e,t){return e.name>t.name?1:e.name0&&void 0!==arguments[0]?arguments[0]:"";this.group=[];var n=null;this.servicesInformation.services.filter(function(e){return!t||e.visual_name.toLowerCase().includes(t)||e.group.name.toLowerCase().includes(t)}).sort(function(e,t){return e.group.priority!==t.group.priority?e.group.priority-t.group.priority:e.group.id>t.group.id?1:e.group.id=t.api.config.min_for_filter&&t.api.config.site_filter_on_top),a.xp6(3),a.Q6J("ngForOf",t.group),a.xp6(1),a.Q6J("ngIf",t.servicesInformation.services.length>=t.api.config.min_for_filter&&!t.api.config.site_filter_on_top))},directives:[I.O5,ye,I.sg,Ee,Ie,Rt],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),e}(),Ut=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.api=t,this.route=n}return _createClass(e,[{key:"ngOnInit",value:function(){this.getError()}},{key:"getError",value:function(){var e=this,t=this.route.snapshot.paramMap.get("id");"19"===t&&(this.returnUrl="/mfa"),this.error="",this.api.getErrorInformation(t).subscribe(function(t){e.error=t.error})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n),a.Y36(S.gz))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-error"]],decls:14,vars:2,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],["mat-raised-button","","color","warn",3,"routerLink"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.O4$(),a.TgZ(2,"svg",2),a._UZ(3,"path",3),a.qZA(),a.TgZ(4,"svg",4),a._UZ(5,"path",5),a.qZA(),a.qZA(),a.kcU(),a.TgZ(6,"h1",6),a.TgZ(7,"uds-translate"),a._uU(8,"An error has occurred"),a.qZA(),a.qZA(),a.TgZ(9,"p",7),a._uU(10),a.qZA(),a.TgZ(11,"a",8),a.TgZ(12,"uds-translate"),a._uU(13,"Return"),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(10),a.hij(" ",t.error," "),a.xp6(1),a.Q6J("routerLink",t.returnUrl))},directives:[P.P,bt.zs,S.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),e}(),Bt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.year=(new Date).getFullYear()}return _createClass(e,[{key:"ngOnInit",value:function(){this.year<2021&&(this.year=2021)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-about"]],decls:45,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"h1"),a._uU(2),a.qZA(),a.TgZ(3,"h3"),a.TgZ(4,"a",1),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"h4"),a.TgZ(7,"uds-translate"),a._uU(8,"You can access UDS Open Source code at"),a.qZA(),a.TgZ(9,"a",2),a._uU(10,"OpenUDS github repository"),a.qZA(),a.qZA(),a.TgZ(11,"div",3),a.TgZ(12,"h2"),a.TgZ(13,"uds-translate"),a._uU(14,"UDS has been developed using these components:"),a.qZA(),a.qZA(),a.TgZ(15,"ul"),a.TgZ(16,"li"),a.TgZ(17,"a",4),a._uU(18,"Python"),a.qZA(),a.qZA(),a.TgZ(19,"li"),a.TgZ(20,"a",5),a._uU(21,"TypeScript"),a.qZA(),a.qZA(),a.TgZ(22,"li"),a.TgZ(23,"a",6),a._uU(24,"Django"),a.qZA(),a.qZA(),a.TgZ(25,"li"),a.TgZ(26,"a",7),a._uU(27,"Angular"),a.qZA(),a.qZA(),a.TgZ(28,"li"),a.TgZ(29,"a",8),a._uU(30,"Guacamole"),a.qZA(),a.qZA(),a.TgZ(31,"li"),a.TgZ(32,"a",9),a._uU(33,"weasyprint"),a.qZA(),a.qZA(),a.TgZ(34,"li"),a.TgZ(35,"a",10),a._uU(36,"Crystal project icons"),a.qZA(),a.qZA(),a.TgZ(37,"li"),a.TgZ(38,"a",11),a._uU(39,"Flattr Icons"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(40,"p"),a.TgZ(41,"small"),a._uU(42,"* "),a.TgZ(43,"uds-translate"),a._uU(44,"If you find that we missed any component, please let us know"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(2),a.AsE("Universal Desktop Services ",t.api.config.version," build ",t.api.config.version_stamp,""),a.xp6(3),a.hij(" \xa9 2012-",t.year," Virtual Cable S.L.U."))},directives:[P.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:normal}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px}"]}),e}(),Zt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"h1"),a.TgZ(3,"uds-translate"),a._uU(4,"UDS Service launcher"),a.qZA(),a.qZA(),a.TgZ(5,"h4"),a.TgZ(6,"uds-translate"),a._uU(7,"The service you have requested is being launched."),a.qZA(),a.qZA(),a.TgZ(8,"h5"),a.TgZ(9,"uds-translate"),a._uU(10,"Please, note that reloading this page will not work."),a.qZA(),a.qZA(),a.TgZ(11,"h5"),a.TgZ(12,"uds-translate"),a._uU(13,"To relaunch service, you will have to do it from origin."),a.qZA(),a.qZA(),a.TgZ(14,"h6"),a.TgZ(15,"uds-translate"),a._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),a.qZA(),a.qZA(),a.TgZ(17,"h6"),a.TgZ(18,"uds-translate"),a._uU(19,"You can obtain it from the"),a.qZA(),a._uU(20,"\xa0"),a.TgZ(21,"a",2),a.TgZ(22,"uds-translate"),a._uU(23,"UDS Client download page"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA())},directives:[P.P,S.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:rgba(0,0,0,.22);padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:normal}"]}),e}(),jt=n(665),qt=n(8553),Vt=["input"],Ht=function(e){return{enterDuration:e}},zt=["*"],Yt=new a.OlP("mat-checkbox-default-options",{providedIn:"root",factory:Gt});function Gt(){return{color:"accent",clickAction:"check-indeterminate"}}var Kt=0,Wt={color:"accent",clickAction:"check-indeterminate"},Qt={provide:jt.JU,useExisting:(0,a.Gpc)(function(){return $t}),multi:!0},Jt=function e(){_classCallCheck(this,e)},Xt=(0,Y.sb)((0,Y.pj)((0,Y.Kr)((0,Y.Id)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}())))),$t=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,u,l){var c;return _classCallCheck(this,n),(c=t.call(this,e))._changeDetectorRef=i,c._focusMonitor=r,c._ngZone=o,c._animationMode=u,c._options=l,c.ariaLabel="",c.ariaLabelledby=null,c._uniqueId="mat-checkbox-"+ ++Kt,c.id=c._uniqueId,c.labelPosition="after",c.name=null,c.change=new a.vpe,c.indeterminateChange=new a.vpe,c._onTouched=function(){},c._currentAnimationClass="",c._currentCheckState=0,c._controlValueAccessorChangeFn=function(){},c._checked=!1,c._disabled=!1,c._indeterminate=!1,c._options=c._options||Wt,c.color=c.defaultColor=c._options.color||Wt.color,c.tabIndex=parseInt(s)||0,c}return _createClass(n,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,s.Ig)(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){t||Promise.resolve().then(function(){e._onTouched(),e._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=(0,s.Ig)(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=(0,s.Ig)(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){n.classList.remove(i)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var e=new Jt;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t,n=this,i=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===i?!this.disabled&&"noop"===i&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(function(){n._indeterminate=!1,n.indeterminateChange.emit(n._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}]),n}(Xt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(G.tE),a.Y36(a.R0b),a.$8M("tabindex"),a.Y36(J.Qb,8),a.Y36(Yt,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;(1&e&&(a.Gf(Vt,5),a.Gf(Y.wG,5)),2&e)&&(a.iGM(n=a.CRH())&&(t._inputElement=n.first),a.iGM(n=a.CRH())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(a.Ikx("id",t.id),a.uIk("tabindex",null),a.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[a._Bn([Qt]),a.qOj],ngContentSelectors:zt,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(a.F$t(),a.TgZ(0,"label",0,1),a.TgZ(2,"span",2),a.TgZ(3,"input",3,4),a.NdJ("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),a.qZA(),a.TgZ(5,"span",5),a._UZ(6,"span",6),a.qZA(),a._UZ(7,"span",7),a.TgZ(8,"span",8),a.O4$(),a.TgZ(9,"svg",9),a._UZ(10,"path",10),a.qZA(),a.kcU(),a._UZ(11,"span",11),a.qZA(),a.qZA(),a.TgZ(12,"span",12,13),a.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),a.TgZ(14,"span",14),a._uU(15,"\xa0"),a.qZA(),a.Hsn(16),a.qZA(),a.qZA()),2&e){var n=a.MAs(1),i=a.MAs(13);a.uIk("for",t.inputId),a.xp6(2),a.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),a.xp6(1),a.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),a.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),a.xp6(2),a.Q6J("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",a.VKq(19,Ht,"NoopAnimations"===t._animationMode?0:150))}},directives:[Y.wG,qt.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),e}(),en=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),tn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[Y.si,Y.BQ,qt.Q8,en],Y.BQ,en]}),e}(),nn=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:Nt,canActivate:[O]},{path:"login",component:T.G},{path:"login/:id",component:T.G},{path:"mfa",component:function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){document.getElementById("mfaform").action=this.api.config.urls.mfa,this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}},{key:"launch",value:function(){return document.getElementById("mfaform").submit(),!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-mfa"]],decls:21,vars:2,consts:[["id","mfaform","method","post",3,"ngSubmit"],[1,"mfa-container"],[1,"mfa-brand"],[3,"src"],[1,"mfa-info"],[1,"mfa-form"],[1,"mfa-field"],["appearance","standard"],["matInput","","id","code","name","code","value","","required","","autofocus",""],["id","remember","name","remember"],[1,"mfa-button"],["mat-stroked-button","","color","primary","type","submit"]],template:function(e,t){1&e&&(a.TgZ(0,"form",0),a.NdJ("ngSubmit",function(){return t.launch()}),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a._UZ(3,"img",3),a.qZA(),a.TgZ(4,"div",4),a.TgZ(5,"uds-translate"),a._uU(6,"Login Verification"),a.qZA(),a.qZA(),a.TgZ(7,"div",5),a.TgZ(8,"div",6),a.TgZ(9,"mat-form-field",7),a.TgZ(10,"mat-label"),a._uU(11),a.qZA(),a._UZ(12,"input",8),a.qZA(),a.qZA(),a.TgZ(13,"div",6),a.TgZ(14,"mat-checkbox",9),a.TgZ(15,"uds-translate"),a._uU(16,"Remember Me"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(17,"div",10),a.TgZ(18,"button",11),a.TgZ(19,"uds-translate"),a._uU(20,"Submit"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(3),a.Q6J("src",t.api.staticURL("modern/img/login-img.png"),a.LSH),a.xp6(8),a.hij(" ",t.api.config.mfa.label," "))},directives:[jt._Y,jt.JL,jt.F,P.P,Oe.KE,Oe.hX,Te.Nt,$t,bt.lW],styles:[".mfa-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.mfa-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.mfa-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.mfa-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.mfa-form[_ngcontent-%COMP%]{min-width:80%}}"]}),e}()},{path:"client-download",component:D},{path:"downloads",component:F,canActivate:[O]},{path:"error/:id",component:Ut},{path:"about",component:Bt},{path:"ticket/launcher",component:Zt},{path:"**",redirectTo:"services"}],rn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[S.Bz.forRoot(nn,{relativeLinkResolution:"legacy"})],S.Bz]}),e}(),on=n(2238),an=n(7441),sn=["*",[["mat-toolbar-row"]]],un=["*","mat-toolbar-row"],ln=(0,Y.pj)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}()),cn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),hn=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e))._platform=i,o._document=r,o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(ln);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(g.t4),a.Y36(I.K0))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,cn,5),2&e)&&(a.iGM(i=a.CRH())&&(t._toolbarRows=i))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&a.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[a.qOj],ngContentSelectors:un,decls:2,vars:0,template:function(e,t){1&e&&(a.F$t(sn),a.Hsn(0),a.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),fn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[Y.BQ],Y.BQ]}),e}(),dn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[{provide:Oe.o2,useValue:{floatLabel:"always"}}],imports:[jt.u5,fn,bt.ot,lt,kt,ke,on.Is,Oe.lN,Te.c,an.LD,tn]}),e}();function pn(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",9),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(2).changeLang(e)}),a._uU(1),a.qZA()}if(2&e){var i=t.$implicit;a.xp6(1),a.Oqu(i.name)}}function vn(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",9),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).admin()}),a.TgZ(1,"i",23),a._uU(2,"dashboard"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4,"Dashboard"),a.qZA(),a.qZA()}}function _n(e,t){1&e&&(a.TgZ(0,"button",28),a.TgZ(1,"i",23),a._uU(2,"file_download"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4,"Downloads"),a.qZA(),a.qZA())}function mn(e,t){if(1&e&&(a.TgZ(0,"button",14),a._uU(1),a.qZA()),2&e){a.oxw();var n=a.MAs(8),i=a.oxw();a.Q6J("matMenuTriggerFor",n),a.xp6(1),a.Oqu(i.api.user.user)}}function gn(e,t){if(1&e&&(a.TgZ(0,"button",25),a._uU(1),a.TgZ(2,"i",23),a._uU(3,"arrow_drop_down"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(8),i=a.oxw();a.Q6J("matMenuTriggerFor",n),a.xp6(1),a.hij("",i.api.user.user," ")}}function yn(e,t){if(1&e){var n=a.EpF();a.ynx(0),a.TgZ(1,"form",1),a._UZ(2,"input",2),a._UZ(3,"input",3),a.qZA(),a.TgZ(4,"mat-menu",null,4),a.YNc(6,pn,2,1,"button",5),a.qZA(),a.TgZ(7,"mat-menu",null,6),a.YNc(9,vn,5,0,"button",7),a.YNc(10,_n,5,0,"button",8),a.TgZ(11,"button",9),a.NdJ("click",function(){return a.CHM(n),a.oxw().logout()}),a.TgZ(12,"i",10),a._uU(13,"exit_to_app"),a.qZA(),a.TgZ(14,"uds-translate"),a._uU(15,"Logout"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(16,"mat-menu",11,12),a.YNc(18,mn,2,2,"button",13),a.TgZ(19,"button",14),a._uU(20),a.qZA(),a.TgZ(21,"button",15),a.TgZ(22,"uds-translate"),a._uU(23,"UDS Client"),a.qZA(),a.qZA(),a.TgZ(24,"button",16),a.TgZ(25,"uds-translate"),a._uU(26,"About"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(27,"mat-toolbar",17),a.TgZ(28,"button",18),a._UZ(29,"img",19),a._uU(30),a.qZA(),a._UZ(31,"span",20),a.TgZ(32,"div",21),a.TgZ(33,"button",22),a.TgZ(34,"i",23),a._uU(35,"file_download"),a.qZA(),a.TgZ(36,"uds-translate"),a._uU(37,"UDS Client"),a.qZA(),a.qZA(),a.TgZ(38,"button",24),a.TgZ(39,"i",23),a._uU(40,"info"),a.qZA(),a.TgZ(41,"uds-translate"),a._uU(42,"About"),a.qZA(),a.qZA(),a.TgZ(43,"button",25),a._uU(44),a.TgZ(45,"i",23),a._uU(46,"arrow_drop_down"),a.qZA(),a.qZA(),a.YNc(47,gn,4,2,"button",26),a.qZA(),a.TgZ(48,"div",27),a.TgZ(49,"button",25),a.TgZ(50,"i",23),a._uU(51,"menu"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.BQk()}if(2&e){var i=a.MAs(5),r=a.MAs(17),o=a.oxw();a.xp6(1),a.s9C("action",o.api.config.urls.changeLang,a.LSH),a.xp6(1),a.s9C("name",o.api.csrfField),a.s9C("value",o.api.csrfToken),a.xp6(1),a.s9C("value",o.lang.id),a.xp6(3),a.Q6J("ngForOf",o.langs),a.xp6(3),a.Q6J("ngIf",o.api.user.isStaff),a.xp6(1),a.Q6J("ngIf",o.api.user.isStaff),a.xp6(8),a.Q6J("ngIf",o.api.user.isLogged),a.xp6(1),a.Q6J("matMenuTriggerFor",i),a.xp6(1),a.hij("",o.lang.name," "),a.xp6(9),a.Q6J("src",o.api.staticURL("modern/img/udsicon.png"),a.LSH),a.xp6(1),a.hij(" ",o.api.config.site_logo_name," "),a.xp6(13),a.Q6J("matMenuTriggerFor",i),a.xp6(1),a.hij("",o.lang.name," "),a.xp6(3),a.Q6J("ngIf",o.api.user.isLogged),a.xp6(2),a.Q6J("matMenuTriggerFor",r)}}var kn=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.style="";var n=t.config.language;this.langs=[];var i,r=_createForOfIteratorHelper(t.config.available_languages);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.id===n?this.lang=o:this.langs.push(o)}}catch(a){r.e(a)}finally{r.f()}}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"changeLang",value:function(e){return this.lang=e,document.getElementById("id_language").attributes.value.value=e.id,document.getElementById("form_language").submit(),!1}},{key:"admin",value:function(){this.api.gotoAdmin()}},{key:"logout",value:function(){this.api.logout()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(e,t){1&e&&a.YNc(0,yn,52,16,"ng-container",0),2&e&&a.Q6J("ngIf",""===t.api.config.urls.launch)},directives:[I.O5,jt._Y,jt.JL,jt.F,it,I.sg,$e,P.P,st,S.rH,hn,bt.lW],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),e}(),bn=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(e,t){1&e&&(a.TgZ(0,"div"),a.TgZ(1,"a",0),a._uU(2),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Q6J("href",t.api.config.site_copyright_link,a.LSH),a.xp6(1),a.Oqu(t.api.config.site_copyright_info))},styles:[""]}),e}(),Cn=function(){var e=function(){function e(){_classCallCheck(this,e),this.title="uds"}return _createClass(e,[{key:"ngOnInit",value:function(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-root"]],decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(e,t){1&e&&(a._UZ(0,"uds-navbar"),a.TgZ(1,"div",0),a.TgZ(2,"div",1),a._UZ(3,"router-outlet"),a.qZA(),a.TgZ(4,"div",2),a._UZ(5,"uds-footer"),a.qZA(),a.qZA())},directives:[kn,S.lC,bn],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),e}(),wn=n(3183),xn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e,bootstrap:[Cn]}),e.\u0275inj=a.cJS({providers:[A.n,wn.h],imports:[[o.b2,y,E.JF,rn,J.PW,dn]]}),e}();n(2340).N.production&&(0,a.G48)(),o.q6().bootstrapModule(xn).catch(function(e){return console.log(e)})}},function(e){e(e.s=6445)}])})(); \ No newline at end of file diff --git a/server/src/uds/static/modern/translations-fakejs.js b/server/src/uds/static/modern/translations-fakejs.js index c44d07358..4ad608c07 100644 --- a/server/src/uds/static/modern/translations-fakejs.js +++ b/server/src/uds/static/modern/translations-fakejs.js @@ -72,4 +72,5 @@ gettext("Password"); gettext("Authenticator"); gettext("Login"); gettext("Login Verification"); +gettext("Remember Me"); gettext("Submit"); diff --git a/server/src/uds/templates/uds/admin/index.html b/server/src/uds/templates/uds/admin/index.html index 8fa29c129..dab771f5f 100644 --- a/server/src/uds/templates/uds/admin/index.html +++ b/server/src/uds/templates/uds/admin/index.html @@ -99,7 +99,7 @@ - + \ No newline at end of file diff --git a/server/src/uds/web/forms/MFAForm.py b/server/src/uds/web/forms/MFAForm.py index cb92cfb04..a4c9239d7 100644 --- a/server/src/uds/web/forms/MFAForm.py +++ b/server/src/uds/web/forms/MFAForm.py @@ -33,16 +33,14 @@ import logging from django.utils.translation import ugettext_lazy as _ from django import forms -from uds.models import Authenticator logger = logging.getLogger(__name__) class MFAForm(forms.Form): - code = forms.CharField(label=_('Authentication Code'), max_length=64, widget=forms.TextInput()) + code = forms.CharField(max_length=64, widget=forms.TextInput()) + remember = forms.BooleanField(required=False) def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - - choices = [] diff --git a/server/src/uds/web/views/modern.py b/server/src/uds/web/views/modern.py index 289c509e9..08e815119 100644 --- a/server/src/uds/web/views/modern.py +++ b/server/src/uds/web/views/modern.py @@ -28,8 +28,10 @@ """ @author: Adolfo Gómez, dkmaster at dkmon dot com """ +import datetime import time import logging +import hashlib import typing from django.middleware import csrf @@ -37,6 +39,7 @@ from django.shortcuts import render from django.views.decorators.csrf import csrf_exempt from django.http import HttpRequest, HttpResponse, JsonResponse, HttpResponseRedirect from django.urls import reverse +from django.utils.translation import gettext as _ from uds.core.util.request import ExtendedHttpRequest, ExtendedHttpRequestWithUser from django.views.decorators.cache import never_cache @@ -64,7 +67,11 @@ def index(request: HttpRequest) -> HttpResponse: if csrf_token is not None: csrf_token = str(csrf_token) - response = render(request, 'uds/modern/index.html', {'csrf_field': CSRF_FIELD, 'csrf_token': csrf_token}) + response = render( + request, + 'uds/modern/index.html', + {'csrf_field': CSRF_FIELD, 'csrf_token': csrf_token}, + ) # Ensure UDS cookie is present auth.getUDSCookie(request, response) @@ -84,10 +91,12 @@ def login( ) -> HttpResponse: # Default empty form logger.debug('Tag: %s', tag) - + if request.method == 'POST': request.session['restricted'] = False # Access is from login - request.authorized = False # Ensure that on login page, user is unauthorized first + request.authorized = ( + False # Ensure that on login page, user is unauthorized first + ) form = LoginForm(request.POST, tag=tag) user, data = checkLogin(request, form, tag) @@ -108,10 +117,10 @@ def login( if user.manager.getType().providesMfa() and user.manager.mfa: authInstance = user.manager.getInstance() if authInstance.mfaIdentifier(): - request.authorized = False # We can ask for MFA so first disauthorize user - response = HttpResponseRedirect( - reverse('page.mfa') + request.authorized = ( + False # We can ask for MFA so first disauthorize user ) + response = HttpResponseRedirect(reverse('page.mfa')) else: # If error is numeric, redirect... @@ -157,6 +166,7 @@ def js(request: ExtendedHttpRequest) -> HttpResponse: def servicesData(request: ExtendedHttpRequestWithUser) -> HttpResponse: return JsonResponse(getServicesData(request)) + # The MFA page does not needs CRF token, so we disable it @csrf_exempt def mfa(request: ExtendedHttpRequest) -> HttpResponse: @@ -167,10 +177,30 @@ def mfa(request: ExtendedHttpRequest) -> HttpResponse: if not mfaProvider: return HttpResponseRedirect(reverse('page.index')) + userHashValue: str = hashlib.sha3_256( + (request.user.name + request.user.uuid + mfaProvider.uuid).encode() + ).hexdigest() + cookieName = 'bgd' + userHashValue + + # Try to get cookie anc check it + mfaCookie = request.COOKIES.get(cookieName, None) + if mfaCookie: # Cookie is valid, skip MFA setting authorization + request.authorized = True + return HttpResponseRedirect(reverse('page.index')) + # Obtain MFA data authInstance = request.user.manager.getInstance() mfaInstance = mfaProvider.getInstance() + # Get validity duration + validity = min(mfaInstance.validity(), mfaProvider.validity * 60) + start_time = request.session.get('mfa_start_time', time.time()) + + # If mfa process timed out, we need to start login again + if validity > 0 and time.time() - start_time > validity: + request.session.flush() # Clear session, and redirect to login + return HttpResponseRedirect(reverse('page.login')) + mfaIdentifier = authInstance.mfaIdentifier() label = mfaInstance.label() @@ -179,9 +209,27 @@ def mfa(request: ExtendedHttpRequest) -> HttpResponse: if form.is_valid(): code = form.cleaned_data['code'] try: - mfaInstance.validate(str(request.user.pk), mfaIdentifier, code) + mfaInstance.validate( + userHashValue, mfaIdentifier, code, validity=validity + ) request.authorized = True - return HttpResponseRedirect(reverse('page.index')) + # Remove mfa_start_time from session + if 'mfa_start_time' in request.session: + del request.session['mfa_start_time'] + + response = HttpResponseRedirect(reverse('page.index')) + # If mfaProvider requests to keep MFA code on client, create a mfacookie for this user + if ( + mfaProvider.remember_device > 0 + and form.cleaned_data['remember'] is True + ): + response.set_cookie( + cookieName, + 'true', + max_age=mfaProvider.remember_device * 60 * 60, + ) + + return response except exceptions.MFAError as e: logger.error('MFA error: %s', e) return errors.errorView(request, errors.INVALID_MFA_CODE) @@ -189,11 +237,25 @@ def mfa(request: ExtendedHttpRequest) -> HttpResponse: pass # Will render again the page else: # Make MFA send a code - mfaInstance.process(str(request.user.pk), mfaIdentifier) + mfaInstance.process(userHashValue, mfaIdentifier, validity=validity) + # store on session the start time of the MFA process if not already stored + if 'mfa_start_time' not in request.session: + request.session['mfa_start_time'] = time.time() + + # Compose a nice "XX years, XX months, XX days, XX hours, XX minutes" string from mfaProvider.remember_device + remember_device = '' + # Remember_device is in hours + if mfaProvider.remember_device > 0: + # if more than a day, we show days only + if mfaProvider.remember_device >= 24: + remember_device = _('{} days').format(mfaProvider.remember_device // 24) + else: + remember_device = _('{} hours').format(mfaProvider.remember_device) # Redirect to index, but with MFA data request.session['mfa'] = { - 'label': label, - 'validity': mfaInstance.validity(), + 'label': label or _('MFA Code'), + 'validity': validity if validity >= 0 else 0, + 'remember_device': remember_device, } - return index(request) # Render index with MFA data \ No newline at end of file + return index(request) # Render index with MFA data From c7e6857492cd7d1759e0641852ad1befd1a32e94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Fri, 24 Jun 2022 11:28:46 +0200 Subject: [PATCH 12/15] If user has already been authorized, no mfa is allowed --- server/src/uds/core/auths/auth.py | 6 ++++-- server/src/uds/web/views/modern.py | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/server/src/uds/core/auths/auth.py b/server/src/uds/core/auths/auth.py index 45a9b84bf..7dd0ec1c3 100644 --- a/server/src/uds/core/auths/auth.py +++ b/server/src/uds/core/auths/auth.py @@ -137,6 +137,7 @@ def webLoginRequired( def decorator( view_func: typing.Callable[..., HttpResponse] ) -> typing.Callable[..., HttpResponse]: + @wraps(view_func) def _wrapped_view( request: 'ExtendedHttpRequest', *args, **kwargs ) -> HttpResponse: @@ -292,7 +293,6 @@ def authenticate( username, ) return None - return __registerUser(authenticator, authInstance, username) @@ -377,7 +377,9 @@ def webLogin( cookie = getUDSCookie(request, response) user.updateLastAccess() - request.authorized = False # For now, we don't know if the user is authorized until MFA is checked + request.authorized = ( + False # For now, we don't know if the user is authorized until MFA is checked + ) request.session[USER_KEY] = user.id request.session[PASS_KEY] = cryptoManager().symCrypt( password, cookie diff --git a/server/src/uds/web/views/modern.py b/server/src/uds/web/views/modern.py index 08e815119..3756146bd 100644 --- a/server/src/uds/web/views/modern.py +++ b/server/src/uds/web/views/modern.py @@ -170,9 +170,10 @@ def servicesData(request: ExtendedHttpRequestWithUser) -> HttpResponse: # The MFA page does not needs CRF token, so we disable it @csrf_exempt def mfa(request: ExtendedHttpRequest) -> HttpResponse: - if not request.user: + if not request.user or request.authorized: # If no user, or user is already authorized, redirect to index return HttpResponseRedirect(reverse('page.index')) # No user, no MFA + mfaProvider: 'models.MFA' = request.user.manager.mfa if not mfaProvider: return HttpResponseRedirect(reverse('page.index')) From a948d5eeb18bff08614ce89f929ed235f5fefd07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Fri, 24 Jun 2022 13:26:39 +0200 Subject: [PATCH 13/15] Added email MFA --- server/src/uds/core/mfas/mfa.py | 4 +- server/src/uds/core/util/decorators.py | 12 ++ server/src/uds/core/util/tools.py | 10 +- server/src/uds/core/util/validators.py | 34 ++++ server/src/uds/mfas/email/__init__.py | 1 + server/src/uds/mfas/email/mail.png | Bin 0 -> 11030 bytes server/src/uds/mfas/email/mfa.py | 188 ++++++++++++++++++++ server/src/uds/mfas/sample/mfa.py | 2 +- server/src/uds/static/modern/main-es2015.js | 2 +- server/src/uds/static/modern/main-es5.js | 2 +- server/src/uds/web/views/modern.py | 17 +- 11 files changed, 260 insertions(+), 12 deletions(-) create mode 100644 server/src/uds/mfas/email/__init__.py create mode 100644 server/src/uds/mfas/email/mail.png create mode 100644 server/src/uds/mfas/email/mfa.py diff --git a/server/src/uds/core/mfas/mfa.py b/server/src/uds/core/mfas/mfa.py index d923460bc..73f82810b 100644 --- a/server/src/uds/core/mfas/mfa.py +++ b/server/src/uds/core/mfas/mfa.py @@ -118,7 +118,7 @@ class MFA(Module): """ return self.cacheTime - def sendCode(self, code: str) -> None: + def sendCode(self, userId: str, identifier: str, code: str) -> None: """ This method will be invoked from "process" method, to send the MFA code to the user. """ @@ -149,7 +149,7 @@ class MFA(Module): # Store the code in the database, own storage space self.storage.putPickle(userId, (getSqlDatetime(), code)) # Send the code to the user - self.sendCode(code) + self.sendCode(userId, identifier, code) def validate(self, userId: str, identifier: str, code: str, validity: typing.Optional[int] = None) -> None: """ diff --git a/server/src/uds/core/util/decorators.py b/server/src/uds/core/util/decorators.py index f8864405a..039e336e2 100644 --- a/server/src/uds/core/util/decorators.py +++ b/server/src/uds/core/util/decorators.py @@ -34,6 +34,7 @@ from functools import wraps import logging import inspect import typing +import threading from uds.core.util.html import checkBrowser from uds.web.util import errors @@ -188,3 +189,14 @@ def allowCache( return wrapper return allowCacheDecorator + +# Decorator to execute method in a thread +def threaded(func: typing.Callable[..., None]) -> typing.Callable[..., None]: + """Decorator to execute method in a thread""" + + @wraps(func) + def wrapper(*args, **kwargs) -> None: + thread = threading.Thread(target=func, args=args, kwargs=kwargs) + thread.start() + + return wrapper \ No newline at end of file diff --git a/server/src/uds/core/util/tools.py b/server/src/uds/core/util/tools.py index c2cabb3a0..144091f9b 100644 --- a/server/src/uds/core/util/tools.py +++ b/server/src/uds/core/util/tools.py @@ -189,6 +189,14 @@ def checkValidBasename(baseName: str, length: int = -1) -> None: ugettext('The machine name can\'t be only numbers') ) - def removeControlCharacters(s: str) -> str: + """ + Removes control characters from an unicode string + + Arguments: + s {str} -- string to remove control characters from + + Returns: + str -- string without control characters + """ return ''.join(ch for ch in s if unicodedata.category(ch)[0] != "C") diff --git a/server/src/uds/core/util/validators.py b/server/src/uds/core/util/validators.py index fb6f6b289..911199448 100644 --- a/server/src/uds/core/util/validators.py +++ b/server/src/uds/core/util/validators.py @@ -116,6 +116,22 @@ def validatePort(portStr: str) -> int: return validateNumeric(portStr, minValue=0, maxValue=65535, fieldName='Port') +def validateHostPortPair(hostPortPair: str) -> typing.Tuple[str, int]: + """ + Validates that a host:port pair is valid + :param hostPortPair: host:port pair to validate + :param returnAsInteger: if True, returns value as integer, if not, as string + :return: Raises Module.Validation exception if is invalid, else return the value "fixed" + """ + try: + host, port = hostPortPair.split(':') + return validateHostname(host, 255, False), validatePort(port) + except Exception: + raise Module.ValidationException( + _('{} is not a valid host:port pair').format(hostPortPair) + ) + + def validateTimeout(timeOutStr: str) -> int: """ Validates that a timeout value is valid @@ -154,3 +170,21 @@ def validateMacRange(macRange: str) -> str: ) return macRange + +def validateEmail(email: str) -> str: + """ + Validates that an email is valid + :param email: email to validate + :return: Raises Module.Validation exception if is invalid, else return the value "fixed" + """ + if len(email) > 254: + raise Module.ValidationException( + _('Email address is too long') + ) + + if not re.match(r"[^@]+@[^@]+\.[^@]+", email): + raise Module.ValidationException( + _('Email address is not valid') + ) + + return email diff --git a/server/src/uds/mfas/email/__init__.py b/server/src/uds/mfas/email/__init__.py new file mode 100644 index 000000000..f963c676e --- /dev/null +++ b/server/src/uds/mfas/email/__init__.py @@ -0,0 +1 @@ +from . import mfa diff --git a/server/src/uds/mfas/email/mail.png b/server/src/uds/mfas/email/mail.png new file mode 100644 index 0000000000000000000000000000000000000000..b7ed429f4cec1be80da57f1e1e05f47541f0398b GIT binary patch literal 11030 zcmWkz1yqx56#hmxNGaXj-QCjN9Rrb$(T#*kcZ<>~DGdUmAOl1|a`fmSjnuz?=e&E* zzVq$weD}T2bD#SxNl!-&ABPeL004Xqb!7wO9`*mi!a%+c%i2#MH*9Zpb3XvUCHa4W zfP$hI0Dz%_L0*832NoiVeX=hWq3)*J~Gwnu$?a znqCHESo8*pZ=*=lSveW7iC!i$d{`vYA9|*uf=2bdED<#&CF&iSJ~v)6&L7NehVqoy zkBQ0ScN?J}-RFC+cPAg)7i8h}=f$m4n1fh&IqE|CB2joXinPzxW5-6mZEW+(N8>Pi z14LM@P7HnzOd#MULRy-OaS*c~00qtBVgZBNg@gRm2~UIviuqQcs5sD|f4aCPRum~9 zACjV23COF0qKfla4S_N=z;43PVGGdX0qoc!cV~g9;+y(A)_OLWyu&04zL!Uq3OP13(J}?7lNG1p#sS z0IBMksq|m2Mj|*TGE@02(p}6FD$$l$JU*DFro6Q5P>ttYq@wmH_6731UxV{01fzus z*Ux_fKv_B&@@dZ>f}jMAP^f512Z1fm!2re+ql3fN$uB_(#k;;M+;g^1*N&q;Mv?u^WHSw?9p7(x8sR~G*EgBo1iW93zYxfH z6aKTuDj8z$jmAb(_>M(l&#;sTa!58~O2K-bAAiFzq>e`XmYM!XBB?&3X1a*FfI+em zy|FsYnT#)rM1qxSce>PfKrrV1O|P0jR&+-WC&fr3=>vchTK zHcFXyq95SXb*_XKU0{jY3{nbn$YtliIUM_xDx z3M81Rb2H5or;_jyg(fPEh%plYyo2GKC#YcjvA|%p z`h(FkkyH!Ch7TPEP5KGdB*Fm&5|gpy8k!Xi<=L~8uFqYs-J16NyPvIQ)9U0-oBo>E zSKG_oL%o3D;lCk^9ZLkWQxv|yd;z9_ylBePs-&2GOEG4|FD7u92hS(W_cAu)?BEO| zOCQI{ewodhO~uJ)R8w17yH<;9d~Q5plv-nB7~ZIAEM&ME1 z*XHErnANG*>DQ?p_K7wgR~1+Gsq~oNMH48Dy=1duQv;_$(Tm}Ri-xOJI924@GLn~# zytVEXR3CbjAp@ROCwV3PHc=&7UR7(seei$O;d~E94<7%jF4geNFk11LF_!V5FQi9B ze7vM-_{Nt1>ML0f%PUpbXWQp)#HDx5NPnDDeXmOR&h4Ak7W00Sut1{ST(f| zv`-2Qw7V)fDy6ifw8kcXPL@y3=Zh4|2rLM~3*m(eg|JRLiy#Z`j_Qst&KfP-7M12F z9lf6M782$aX2urQt*Q;h4J`9L4Lw!Qs=9PCb?Qpy!NbjeJAQQ3bW$|${J~gm?C|Ia zw+A~s2X~G(4xeQ9WrlZ$zkiUy#7|fxsH3r@-1eu~VCVPF3Eg3@65Du~QY6!p(^JUP3{Vxt z0s^BZMJq&GqTJntgfR@H$Vo0cU$rbAE4(Y~QXo@EjcJJ48ERl~{eG0zz;F%EgQi2> z2;%i3_U5NC?RV|p4oBdz#V5p@zL87uPBf#O5y%yR%&aK+!Ib|g=P0igf(3LXns{D{ zaLU&5zLH)N>lW^o`^M{H{&UW(*i7TKCba}FXQQa+>weh%@p-~#@h0w8=<__j@7CVI zAD~|^;;YDOc!{|sbL6!Wb;Pqy6^J;i$=|V@kw92daDu(#>7S}l|;AukA|_Yjnk>=TI1NKf-otYy&7>;NBt zcU=M}>Yd|T9!EXjcJk3?WBzb&O{+&Y=fUYvtlTrQU|-~k_A+9mbPJH;`%EGa=t{I;>tlj?Kn_?I-@>jCjYU)P1oTglUx$N(*@swB+duKEF;l#(<0WOQNl&q(y-*J``{!j0$52~}wCmGIHrvSsh} zgY1v~Wn+-B_MFR{^PR?B>$O~CQtkdt&Yg#KgN}#K@fhka)CWu^f{ul*-*Ys-WQ+__ z=eZ8m2*&98ABzzX9(+-JM=_>xP3??UT0FlXrkX}~mmuM`W; z3RDXX3+^l(EW34o%FfImtcBdGEz=Pe2}_#?zdSek;kL9NGn)xMn|fEAT^t_4d%I${ zT;351cZ9-T5qcrIiTpQysXV=fOZ7@YtM3aKvU2Y_3F&JOb-CWBDiMROUi1b3C4ZWqE0K^{?K=pYSR`GB!cu3K- z{O#*E+WsFwLIO4yCU?g}kQE3G;voWX)FNTJ|Xvg00`g*fCD=Kkjw*s=Uy4M zqpHYT1vHcujDnVqtb@ahcDf?^TYr+z%LAZz`izNDvJcseM(i^&-so*>4u6v^dU?y9 zJEwEamo_Z)%~v=ySXtpsEOPFb$j6RW z78Lq%>k}cAKgjP_0uNtGIM@gty$>uEuj55X^7xXH& z_&|W-Mw%vZng}nO{F%Q3E5N)Vq7hUK;y+eHuwqA6v7kG#pE81+?(|XYh!rpN*nfL| zPx~MPJr4JjOHx0^Vn}1IscdVzIM3#K8~A2;BQb%S;v=wLBo;Jfcj|139uA-YzCau5 zG=}`)2!C1 zyRlxJkWSR>w?+!$D6I85;2ux}mQcQY_z ze-6c7|IvFjAg6mxI!%q0h8Oe$!y0{%R7JnB%jL+}uu7+|$#x(D)u906o7w81=KNF! zb2Jf(c@D#b;MLLM`TSrsYEx5v{YXBe0xsylbY3Iohv5;tKJw}DIrI^MS&2^}=)?`T z62)U8*wcv0m1g$tFtrW8oVWDsa_)bKJf$l@<3SS-c4I@~L*?)B-~Z+O?}B2W|K$0= z7amfa_S8`ad<+}F36c1WDWWCf;olZm5uGyTL)_7_@-)lP(Je5DxW4o3cKa14g6Qqp zt<=bL;Yj{vGb_yAf>&CuXiUmpi(=kR8=maYx4YpAsE+ucl#ucxE;ifaJv|3D z$cT#6cPHDFpdb(teoaU%?w!|om^kWS;y>{+meFSAg`=_iLSwk|<-y#c;AWz;0>z#P zq}F;i0cgV@I$CIgsqj7BX3NpZm=JSG*o+g>$ZqENjiu(Ek+6*inX8}^nwp#)9K51U zQV!xK-|BAkn-!LDe7E2@E9$k@`}%ttLu{N&MojktiN!zQJy!4Rv`-Wvn$l3K3$#eY zeQF_;FgM%ubXcul7wErGrr`4uKfRyTm3z3`oB8O)9OsWYJ>%sU*1SB|vmO-kj z+X1PptrhfK`BHb%4>G3&bkIOs#ps0cwSRg65=>hu0nUv zO^Z>6nuwD4XKK>F2}SS+YMLZA}8q)X5^cuvZ#va1! zskAa7r-YF=!!huZP|t=+H?rn`Pb(O!pps(j)51*bZN)i8$uR7w{L)g`W&d3zOw{xK zMk;2=&T^9X(8xI8y|q#_vT~$lAtx&p15XbK)9joaT8KJWEu2&yFUo!(=UH8Beg+CN z!ONl9HTD0S zk63I|SU9qN7m*I|6c4JhAFgMIYGim{?#;;MBLh63^3t3NY0t`Yco?m7RD6cO!Xd-4 zgtA{gefbi^w&@2F00m8^gb18XRo{cTKn6ehd>(J%*ZF~nK1eE+*rOcQ`a%GWGUI!U z-T=MmW2ufviLgJ-J+-y9jG}odzYo89VoBJdJ-*v{d|iM^q$#z?dl=I^zyI(-uljtL z@F{S9C>BQ3SX;Y0mXdv%u{9R#X1SLD}tDA`n9z5ajo928)ciXN{e07aN(gi$BJ zncXDb_MeIp&a}*;q!vD^i9sg<*yOov=@eubU(70eA*)6R2M33DP6Yp*5EAd^8B{Er z+Ox{q%qZ3i3i9-tf<^<$uFN5?e^;k3crAB$bkb}TuuTauL$O3Pg!pC+0S)2@z|JOc z(K+|=3NlbAvDZ@iPDooxP>V_8G%gB@qpZI)$sk#s8Ap4zK8#5-EfJ0J84*$2tL)g# z%}ofBvLpqFlf+r4UUPO$iK3)2i^zcNik5pI*Azl7D*_QKH&Q6k@>IyAGrPC*a-6oj zmT7{dz!R0rkzn%?VVFlDOs~IY01}xQ*hs%}o!fLFI(~G@I8OBE^R9zAK^ZE&XoFZ7 zu|sz!g%J-;kq?LF!NI}sQ6$fK_e3*^;hcUp!%KH1eJ7v}{l%BQxjxJaFaRJ@^XT&L zJ0DfwbA}=Mt~-`XJL7>Wg(xG#FIqXyvVlimCcu*g5^&qQV!5Bw0eY%ih7$N_YmM+{ zNy_#Hv*;y6#F((vV}vrdU=#ovpu4*|zAHnro2jXhQQnnh3pvW~QsBonE$|MPue;iA z_g((Ajo+k*n6LN12dc&uF^tnU_GOiZO{g8{vVda!H9Cmd^3j@j@R*a=tl4h& zz1Z4KmWSSK`D)<_8j)ISQ6d{~fdrR-kz~NZrz8@uqWKQ%W!`jkX4&jntijOY@R%V# z03uIbZcVIVH-Mp7G-VWU*wASs68U(a8gDdcfu$#QN;D{j5;1^ylSHC6nJ3^F7!lC~ z`i#tuP^h?)C;w@HWGGb-mH}cr?90@Ks%%l|F@j@4@TI1v7(ShB*!FYVuxFnKo_jFJ zzxn~$E&=gl64Hk4e@vAXy&KDY2<;H=2k=kL3;Y0BZmPSzr zqO-7iH37smQ<^jOL@r;c5R#0Ze5ADuE2I6H+;BB zmDN82wiAn*D5nnQYKc@c%87x01H4Aq?ozHojbXv?VkVoA{R$p!?HGT?sOwL-AC2ow z9v54mLceNfvQ9!LJz$oz!rxo)jMIlCDAB?mie!ixVM&2plckiWv?yiu^{;17H-;l0 zk-b}GCXOw!k_0poPvx;bNQZxajGztfMY8p@()7x-B z?$Ra(*%g$_1H|uwgfKNGq&A+k81EPv4AP^CV#>?QB^Ipwv@hy8_zU)SY90Yh$4ggg+NP))H52W9a13M*6#wnf^**imuPF} zA(zN5ZgX=s!50}LsPjGR3uTF3P??-c}EQys+QPUl9Z5n80Ygg*m5oBfhR%=`rA?5NjF9B_9LNFRIP+}?_NqvJh_+`VC#Orve zeOYgofBpP+{rc{B6|)qEIR}retv%)746DT{)s2TCl(e<+$H%#d`;C~1Rf2=j8E4qB z81#%R6_^)UqL~+!o9SpA#7APxuCOr(O5j9&iZn6}Mz#DQ7klPNeL@q1*JGd_OE$TD%a<=W6uu!rjzv^^M1#Fy-_v}MEpyzIY%V2) z49U4mWMs9q^2WyOwKyvJWwq^7U3E1{Wwo`GSpwJXH&K|M-!Z4l7s)Uj$XLq|rydwR z)6y{rk=(D4wL~&+(;07p6CG$K=LB=dpeUEGQ~BfA8I3T{YO!3+7(hu zUvpUY53Z4!`_!SSh}%vTpVY8iU->B-AULAx=}xO;;rz(F?;BQXQSg33$;d_{8e{{4 zkVtRs4nWB2%!^T!lg@9$j>BY2oizGh z$MR-HCF6}2@0IRkSE#6jian*DAVJ1t?r*`XfUq1q0G6R>Y&^c1{=&G8~M!z z66-yS%xS*_XoL$ivz_wAXL!f^7%eMGHphEZFf_=|d+g4Ns0pLds%08?&>w%}uMtLi z#}3&It#tX(eYRZHmXv%{B9WKX54mS|)G{?@8Csms+4`0gIJMZNjMUN&@ZhQ{zPXd* zx5SZeio=yUVq#)6reyDqBL56l6{8ddGO4=)KY*;O<7LRh&6cj{Zs49bIryjNQDR>R z$8F5}9!0he&yDVX|Jpncms`EQ9`DVW+RD71ED-5=Mwjv(cA~DyUAQ5lFwCaa41^LC_6g8vy*EZAu1+j`s`jlFc=u-zbG#!LnOp7 zSpGu?Bd(5Rpf>a%>B&NW|112(ZU`b`j;pEHcK{s3%7wMg9bSv%XxQn)H4Jfnci-5` zrbxm@dt6f--e=LNy>~>_@}5raaj3?yia@gpL*MaP6bLE$F;n^>s0xydSk6eiNXP`zY^Nk0DtVa0|M@#lZ;)yO>dnoR~cJPI03I zzh-C3?C1-<=B4Jh8yxW#Kl&7d5k398E*eTrjXpT=@1QRBe0Q?2sy5kjfsJO7(cJM= zC-`u+=eh}b6{2eqmZ$nfJWdE_Hz8p1fp@h#;P84<3>NlH0$xz*W4+MTNVURWzbdQ^ zsmfwKdFNv?R-$4#Cv&~x7wm}UAZf*(G1zUON)V+3bgzV+Pi9KMSNOG_-%CbUwdt(4 z;)c4vRc7qL#l`Ir$wJ##1SsZNES6FCaLN{tKV)LgOf=*LvRUcBJLw_o>gw`U`hOmy zY-QNE0pQ8z|B8^+t6Dxol3Xra7Vx%y4Vm>vuXFfRq`I+j8OJU*)n7*aa-6o<0EG(L zRJq3+k|ICoi#qTKIQV0}4EhDcEPnF}9-f%oy0u z&SbaQ%7+X8?znybc5ir*ygqt}jZDZzlQ{gD8g_wYNfUzn?dVl1rAV!AC1+F~Mpy@q zKbki|luhKn+0w_ouo?1oLoX2#kRXjX8&6+$AbJ~4x`oqFuH?3!MkLallpOLX~yXVd6 zhR5L+_OEPU&1jlruuE6w^7kxH^LdD|Vs>^m;^7D^cjzrh{OOR#ky>dlApkd*7YMm~ zczi2&yPb(Y`TQm`7Lhg4L0ms@HqIrrpc3QH8f8e1VZWMtO$~(e_FeoE*zmql$36WK z4GEkTrg6MUMN;RL2J*&!x2!xI3)DTlGO;LGBrE2xGG22;bqwitB? zih2owy_i|9ja=l93>M7-kyDQHHFOw%m;DPXF+8XQd~R;;|EvVRuK~cDis>0@*eD$W zc*t?Lb>iRUq3zG9si%e42Z++6Jl{jU;79GSZzlJB=aO)0*-}DG0%|kgzbv`;E#k#R>13l$`jvoX#g@u@z?eJsPM(! z%oeOP^6|FtmnY{JT4p;@Y=5)sl_bE9O7!)gtBYCPsma&t`h4r716wi2%6+K4ry(9c zT&9KbNg^aRqBn*UI;WUX5|vLmLAyWmTm6ykw@&DJP{hHYUrF8oNqK3kM3c~l1e{-+ zB$=@k0xyQ>XubU~ZAkr-w2A(pQ!1VT7?KVD=WpBTxk~pxo5|*bWaV~XeyJC1$^&dL z%ic}9_2x%2Cjg#CN@1LBY{}bu8pFWC!h$i?ygVkw;5gX*q(d6j1)eGyhO7oG%od#& zXhF}Vv2Qj9G``DYTup~S^Km;aLovS97aL%xQm{K#*VlgySa>M+ z($UfR_6&%@5oex8BOXC|HjkT~u!tThM|_*U;y#xB6mkTj!9f~Dt%sjbQtWky*bid|$x#Kp(QH*mXKSSpRQj3C-e-P$`x`U$O& zgP^8X@K3>Doi@Xnow1K4i(PA4Xf%~>U-`AYQ(^&u76$Yn4f=ne^9jCz`@pm9AG(6y z7~SAU!HnxkE_}R*oZp7mVAY0#HJ_{BZ67V)`M-+w7@@--j@I`y*3t8{sqfMSIvI%|2Si_kJq@mdnJM4rWaoN$?16N1m&e$8 zX*O|HIqOwEQk%hF#QFO9EjL+qp3G?Sb~z0a;`E}vzQ@G18!?Xd0e^U7p2|Ig#@h6N zK5gDh!Tb+^l1!E@p!ou1WMqeIYo`-my~TeDdI;?KYke@J*mHJv-q6Tol?mVeo*pY# z-TK^QTYOVKq@r{&YCiBv`g6Twn+cCDMLRxiz=YIGe6EGUH`xe$)HjX8{CInBK-voo z6T}@}%l~x5sXb2v-u$|JgQ4|D1?4xuFZ*ZHY>T3OY&0h~G z{JN}t;c ze*f9`VQiZL)}5b9QIW)n^baf^N1vA>RPG6!%^guPD^SLsCoaq}0Ty!SKZR7#(b3^6 zfy*8PjB(6fv-9cKy5a1x(L!Iwfe$mot2VN_!a<&d^j%$kzlRvG9Dg#RSCm!mNAPN7 z5Mf~`a6ClpXN*Qp2hh02;p$d>#MW}g*ri1wqn zPaEYfz@(}bj?EE0cW@!W6{=NzM?+^9BXB~ytj8W_#%=Q1ZT6dKPVeomW>4Vp3g(7R z#eT^3DP0U2&L)_$z2#bOszj!Tl#EO!YzY0i)yRvwx%(Qwl_hk`cdwThh5pQxs$)Q~ zb6Ju?#^WDl(JOQ=q^7o>O|i%C|9+^%&MdIY>KYR!!iqAe4R5m_-V}pb-TXSS?&(;x z9qw8e_Toj0(xc>ThVo%8qPe2dPxn9&jsKgJ(sFW7R$OumbV2%OU22aFr5^hb6U0#) zeU9(nL|w*f?1}EA47${igNPY zvbxF)Uv)2zBd(Q9Nbf%eja52p<~|0`R=%g=s3=%{F-tUn{6irH?erh$FZag|(Py7H z3@h)Kart`rSA8dY3D&o?X+Ceqa-C~XihE*zAF5WuItct*6i)-?>5?-aks7nPyj?dm zK3eN@A6uTtc|hE`!z{rsRNEiIMMA}ni$m~yTN&kBjMl58wy^J!_%0E8^}Cu2Z@4<4 zH8s_8%(Bzrcc^8@-=b3CB^5BA)>$G~2voq76g?smxVuIyBa^|>)ZglIDOFHuj5SF0 z6`BzZqsES6ZrDsKLyHEXVvvU2Y$Oa2#w&W@&yren)8^XN1-!MWgc<{(G%$)^{uUh$ zjj5e}Zi*vPtWyHjE!<2*SnEi$_U^3-cjQOc(KE80ogJ2r7K!(K)`>v}*$=xq0J8=< z!!l6^sO)F4)ODlO$(JpdV*#sp=!ZbKy6X+IkEPJaypE&;qZ>WnwmC|ytiLPd0x8R_cWO+J zn?x7k@_wO@-1_#OZ+m;YO$dMX1kOe&XS$ou-#AMAQMRiU+@9mxr_U!DT9wn(*vM;p z{kYVb%WK`TJ^1)wy9|qE1(o19(|Tt}rHGiKh%=|j)Rf`Z9}-m~jn}1j8kwGyhK7cY zg|a!#fu*&fV_!t7e`I_Q=R8%J)}HlG)#QH>*LXN{Nf*}q>c^%EZvW%IL%#Uxz)x%P zVFWS3gK}&S4QmBt5@T&(Cfa)mGJA;zVexB z{{Da#4QhM#SOY!U(#7-L;IYNKFj@AN80#L$iCK5h-@3zv$mVDR%67Sr>5Nlv;Tobp zXjEFG0S8X+vuZ=B2_&wUJpRZFd~jzg=v%7u|NRp4UH7vo>EJbipxRo+%iGgqG1!q! zx6@yDq`7$_skFeA9&}d6+vZ&}w%A%J?YgK8AV||e^v&USS2D=DD=24=c)6%y(HR)$ zhv6wW73W#r+F2kTK`r6y^mI1x5HQo?>_z7G*{tSR$zPYp>l4-KqACFI?_K-h(2dk| zBy2iG)knW;3~4KbH!kWd&LP~g?T+0_)Ri7*+$8(LJ}Go^5&p*%<*cXdvWf23gC!}f# z``Nx=6Y5u`Q;bud?%HdL5C}@HRWvp}x^qFCsJtcb`#W@ph;+(R&Bm`h0j(`}PKi$= z>xcN2E-n}FrMC8!z5Ryqf;D6{au*JNVkb_LUuY;aE7Z{dcY2bkL{Gtoks||PZ{Jaa z3Rlk4v9`0;fhRPTzwCGqfF9g>;*9*qc$T3kcl$e!#!N@jZRe}D5Aa)C58%(S)N z``?_}6ES|!UcNeUHh%GT;S4zlu&5wI-5(!2s~}~~n9OR=i&uPq^nTkE!YS&@DYOBy zC~gg68e!MzGWVvwtE;zs{Wk}$!Us~m+gRl@?2PGHOYQE2nFah>I7vitiVAVV8_DHl z6Q;dgt{axf=m}`+jaY6*$h$b9MGvx(#7PQGd3$p>kZ62ca5=bg$0+fWaCpT8-5aTc;U<@FzFPlXtl z3YUXHj38g28fhV{V&GE>_j|$mACNXwT|q%XEz%o_XhmM|kb<1tV^#?7*6h%Ln<}c| zLgU*aVUB&O_1c4&L$|`=yrl7|X@1HiJGEvZo!gQ228Xa*H zguXH#H;N};tpZ-*#4kYezR%^FMDM#3WMocxtCRSutjxFp zrh+b~-9~fN(tR{LjVSWm7>QS~qH^>b?o*&f8uV8 str: + return 'OTP received via email' + + @decorators.threaded + def sendCode(self, userId: str, identifier: str, code: str) -> None: + # Send and email with the notification + with self.login() as smtp: + try: + # Create message container + msg = MIMEMultipart('alternative') + msg['Subject'] = self.emailSubject.cleanStr() + msg['From'] = self.fromEmail.cleanStr() + msg['To'] = identifier + + msg.attach(MIMEText(f'Your verification code is {code}', 'plain')) + + if self.enableHTML.value: + msg.attach(MIMEText(f'

Your OTP code is {code}

', 'html')) + + smtp.sendmail(self.fromEmail.value, identifier, msg.as_string()) + except smtplib.SMTPException as e: + logger.error('Error sending email: {}'.format(e)) + raise + + def login(self) -> smtplib.SMTP: + """ + Login to SMTP server + """ + host = self.hostname.cleanStr() + if ':' in host: + host, ports = host.split(':') + port = int(ports) + else: + port = None + + if self.security.value in ('tls', 'ssl'): + context = ssl.create_default_context() + context.check_hostname = False + context.verify_mode = ssl.CERT_NONE + if self.security.value == 'tls': + if port: + smtp = smtplib.SMTP( + host, + port, + ) + else: + smtp = smtplib.SMTP(host) + smtp.starttls(context=context) + else: + if port: + smtp = smtplib.SMTP_SSL(host, port, context=context) + else: + smtp = smtplib.SMTP_SSL(host, context=context) + else: + if port: + smtp = smtplib.SMTP(host, port) + else: + smtp = smtplib.SMTP(host) + + if self.username.value and self.password.value: + smtp.login(self.username.value, self.password.value) + + return smtp diff --git a/server/src/uds/mfas/sample/mfa.py b/server/src/uds/mfas/sample/mfa.py index cb5272754..7c1d42706 100644 --- a/server/src/uds/mfas/sample/mfa.py +++ b/server/src/uds/mfas/sample/mfa.py @@ -33,7 +33,7 @@ class SampleMFA(mfas.MFA): def label(self) -> str: return 'Code is in log' - def sendCode(self, code: str) -> None: + def sendCode(self, userId: str, identifier: str, code: str) -> None: logger.debug('Sending code: %s', code) return diff --git a/server/src/uds/static/modern/main-es2015.js b/server/src/uds/static/modern/main-es2015.js index fbfb9648e..01e08e931 100644 --- a/server/src/uds/static/modern/main-es2015.js +++ b/server/src/uds/static/modern/main-es2015.js @@ -1 +1 @@ -(self.webpackChunkuds=self.webpackChunkuds||[]).push([[179],{8255:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=8255,t.exports=e},7238:function(t,e,n){"use strict";n.d(e,{l3:function(){return r},_j:function(){return i},LC:function(){return s},ZN:function(){return g},jt:function(){return a},pV:function(){return p},F4:function(){return h},IO:function(){return f},vP:function(){return l},SB:function(){return u},oB:function(){return c},eR:function(){return d},X$:function(){return o},ZE:function(){return _},k1:function(){return y}});class i{}class s{}const r="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function u(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t){return{type:5,steps:t}}function d(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function p(t=null){return{type:9,options:t}}function f(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function m(t){Promise.resolve(null).then(t)}class g{constructor(t=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=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){m(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?m(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const y="!"},9238:function(t,e,n){"use strict";n.d(e,{rt:function(){return et},s1:function(){return R},$s:function(){return T},Em:function(){return D},tE:function(){return W},qV:function(){return B},qm:function(){return tt},Kd:function(){return G},X6:function(){return U},yG:function(){return Z}});var i=n(8583),s=n(3018),r=n(9765),o=n(5319),a=n(6215),l=n(5917),c=n(6461),u=n(3342),h=n(4395),d=n(5435),p=n(8002),f=n(5257),m=n(3653),g=n(7519),_=n(6782),y=n(9490),b=n(521),v=n(8553);function w(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const x="cdk-describedby-message-container",C="cdk-describedby-message",E="cdk-describedby-host";let k=0;const S=new Map;let A=null,T=(()=>{class t{constructor(t){this._document=t}describe(t,e,n){if(!this._canBeDescribed(t,e))return;const i=O(e,n);"string"!=typeof e?(P(e),S.set(i,{messageElement:e,referenceCount:0})):S.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}removeDescription(t,e,n){if(!e||!this._isElementNode(t))return;const i=O(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){const t=S.get(i);t&&0===t.referenceCount&&this._deleteMessageElement(i)}A&&0===A.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll(`[${E}]`);for(let e=0;e0!=t.indexOf(C));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=S.get(e);(function(t,e,n){const i=w(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))})(t,"aria-describedby",n.messageElement.id),t.setAttribute(E,""),n.referenceCount++}_removeMessageReference(t,e){const n=S.get(e);n.referenceCount--,function(t,e,n){const i=w(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(E)}_isElementDescribedByMessage(t,e){const n=w(t,"aria-describedby"),i=S.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.K0))},token:t,providedIn:"root"}),t})();function O(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function P(t){t.id||(t.id=`${C}-${k++}`)}class I{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new r.xQ,this._typeaheadSubscription=o.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new r.xQ,this.change=new r.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,u.b)(t=>this._pressedLetters.push(t)),(0,h.b)(t),(0,d.h)(()=>this._pressedLetters.length>0),(0,p.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.Mf:return void this.tabOut.next();case c.JH:if(this._vertical&&n){this.setNextItemActive();break}return;case c.LH:if(this._vertical&&n){this.setPreviousItemActive();break}return;case c.SV:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.oh:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.Sd:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case c.uR:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||(0,c.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.A&&e<=c.Z||e>=c.xE&&e<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class R extends I{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class D extends I{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let M=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}(function(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(t));if(e&&(-1===F(e)||!this.isVisible(e)))return!1;let n=t.nodeName.toLowerCase(),i=F(t);return t.hasAttribute("contenteditable")?-1!==i:!("iframe"===n||"object"===n||this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==i:"video"===n?-1!==i&&(null!==i||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||L(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4))},token:t,providedIn:"root"}),t})();function L(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function F(t){if(!L(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class N{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(t)}}let B=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new N(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(M),s.LFG(s.R0b),s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(M),s.LFG(s.R0b),s.LFG(i.K0))},token:t,providedIn:"root"}),t})();function U(t){return 0===t.offsetX&&0===t.offsetY}function Z(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&∈const q=new s.OlP("cdk-input-modality-detector-options"),j={ignoreKeys:[c.zL,c.jx,c.b2,c.MW,c.JU]},V=(0,b.i$)({passive:!0,capture:!0});let H=(()=>{class t{constructor(t,e,n,i){this._platform=t,this._mostRecentTarget=null,this._modality=new a.X(null),this._lastTouchMs=0,this._onKeydown=t=>{var e,n;(null===(n=null===(e=this._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some(e=>e===t.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,b.sA)(t))},this._onMousedown=t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(U(t)?"keyboard":"mouse"),this._mostRecentTarget=(0,b.sA)(t))},this._onTouchstart=t=>{Z(t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,b.sA)(t))},this._options=Object.assign(Object.assign({},j),i),this.modalityDetected=this._modality.pipe((0,m.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,g.x)()),t.isBrowser&&e.runOutsideAngular(()=>{n.addEventListener("keydown",this._onKeydown,V),n.addEventListener("mousedown",this._onMousedown,V),n.addEventListener("touchstart",this._onTouchstart,V)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,V),document.removeEventListener("mousedown",this._onMousedown,V),document.removeEventListener("touchstart",this._onTouchstart,V))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4),s.LFG(s.R0b),s.LFG(i.K0),s.LFG(q,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4),s.LFG(s.R0b),s.LFG(i.K0),s.LFG(q,8))},token:t,providedIn:"root"}),t})();const z=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Y=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let G=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),n=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,n,i,s){this._ngZone=t,this._platform=e,this._inputModalityDetector=n,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new r.xQ,this._rootNodeFocusAndBlurListener=t=>{const e=(0,b.sA)(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=i,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,e=!1){const n=(0,y.fI)(t);if(!this._platform.isBrowser||1!==n.nodeType)return(0,l.of)(null);const i=(0,b.kV)(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new r.xQ,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=(0,y.fI)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=(0,y.fI)(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOrigin(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOrigin(t,e=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&e,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,e){const n=this._elementInfo.get(e),i=(0,b.sA)(t);!n||!n.checkChildren&&e!==i||this._originChanged(e,this._getFocusOrigin(i),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,$),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,$)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,_.R)(this._stopInputModalityDetector)).subscribe(t=>{this._setOrigin(t,!0)}))}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,$),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,$),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(b.t4),s.LFG(H),s.LFG(i.K0,8),s.LFG(K,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(b.t4),s.LFG(H),s.LFG(i.K0,8),s.LFG(K,8))},token:t,providedIn:"root"}),t})();const Q="cdk-high-contrast-black-on-white",J="cdk-high-contrast-white-on-black",X="cdk-high-contrast-active";let tt=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(X),t.remove(Q),t.remove(J),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(X),t.add(Q)):2===e&&(t.add(X),t.add(J))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4),s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4),s.LFG(i.K0))},token:t,providedIn:"root"}),t})(),et=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(tt))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ud,v.Q8]]}),t})()},946:function(t,e,n){"use strict";n.d(e,{vT:function(){return a},Is:function(){return o}});var i=n(3018),s=n(8583);const r=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,i.f3M)(s.K0)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.vpe,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(r,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(r,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},8345:function(t,e,n){"use strict";n.d(e,{P3:function(){return l},Ov:function(){return u},A8:function(){return h},eX:function(){return c},k:function(){return d},Z9:function(){return a}});var i=n(5639),s=n(5917),r=n(9765),o=n(3018);function a(t){return t&&"function"==typeof t.connect}class l extends class{}{constructor(t){super(),this._data=t}connect(){return(0,i.b)(this._data)?this._data:(0,s.of)(this._data)}disconnect(){}}class c{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,s){t.forEachOperation((t,r,o)=>{let a,l;null==t.previousIndex?(a=this._insertView(()=>n(t,r,o),o,e,i(t)),l=a?1:0):null==o?(this._detachAndCacheView(r,e),l=3):(a=this._moveView(r,o,e,i(t)),l=2),s&&s({context:null==a?void 0:a.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,n,i){const s=this._insertViewFromCache(e,n);if(s)return void(s.context.$implicit=i);const r=t();return n.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(t,e){const n=e.detach(t);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const s=n.get(t);return n.move(s,e),s.context.$implicit=i,s}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let h=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const d=new o.OlP("_ViewRepeater")},6461:function(t,e,n){"use strict";n.d(e,{A:function(){return y},zL:function(){return a},jx:function(){return o},JH:function(){return m},uR:function(){return u},K5:function(){return s},hY:function(){return l},Sd:function(){return h},oh:function(){return d},b2:function(){return w},MW:function(){return v},aO:function(){return _},SV:function(){return f},JU:function(){return r},L_:function(){return c},Mf:function(){return i},LH:function(){return p},Z:function(){return b},xE:function(){return g},Vb:function(){return x}});const i=9,s=13,r=16,o=17,a=18,l=27,c=32,u=35,h=36,d=37,p=38,f=39,m=40,g=48,_=57,y=65,b=90,v=91,w=224;function x(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},8553:function(t,e,n){"use strict";n.d(e,{wD:function(){return u},yq:function(){return c},Q8:function(){return h}});var i=n(9490),s=n(3018),r=n(7574),o=n(9765),a=n(4395);let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=(0,i.fI)(t);return new r.y(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.xQ,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(l))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(l))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,i.Ig)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=(0,i.su)(t),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,a.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[l]}),t})()},625:function(t,e,n){"use strict";n.d(e,{pI:function(){return J},xu:function(){return Q},aV:function(){return K},X_:function(){return A},Xj:function(){return L},U8:function(){return tt}});var i=n(9243),s=n(3018),r=n(521),o=n(946),a=n(8583),l=n(9490),c=n(7636),u=n(9765),h=n(5319),d=n(6682),p=n(7393);class f{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new m(t,this.predicate,this.inclusive))}}class m extends p.L{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}var g=n(5257),_=n(6782),y=n(6461);const b=(0,r.Mq)();class v{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=(0,l.HM)(-this._previousScrollPosition.left),t.style.top=(0,l.HM)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),b&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),b&&(e.scrollBehavior=i,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class w{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class x{enable(){}disable(){}attach(){}}function C(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function E(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class k{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();C(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let S=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new x,this.close=t=>new w(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new v(this._viewportRuler,this._document),this.reposition=t=>new k(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.mF),s.LFG(i.rL),s.LFG(s.R0b),s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.mF),s.LFG(i.rL),s.LFG(s.R0b),s.LFG(a.K0))},token:t,providedIn:"root"}),t})();class A{constructor(t){if(this.scrollStrategy=new x,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class T{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class O{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let P=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends P{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),R=(()=>{class t extends P{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=(0,r.sA)(t),n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0),s.LFG(r.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0),s.LFG(r.t4))},token:t,providedIn:"root"}),t})();const D="undefined"!=typeof window?window:{},M=void 0!==D.__karma__&&!!D.__karma__||void 0!==D.jasmine&&!!D.jasmine||void 0!==D.jest&&!!D.jest||void 0!==D.Mocha&&!!D.Mocha;let L=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||M){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new u.xQ,this._outsidePointerEvents=new u.xQ,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=(0,l.HM)(this._config.width),t.height=(0,l.HM)(this._config.height),t.minWidth=(0,l.HM)(this._config.minWidth),t.minHeight=(0,l.HM)(this._config.minHeight),t.maxWidth=(0,l.HM)(this._config.maxWidth),t.maxHeight=(0,l.HM)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(!t)return;let e,n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;(0,l.Eq)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe((0,_.R)((0,d.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const N="cdk-overlay-connected-position-bounding-box",B=/([A-Za-z%]+)$/;class U{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new u.xQ,this._resizeSubscription=h.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(N),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Z(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(N),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){const s=j(e);let{x:r,y:o}=t,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(r+=a),l&&(o+=l);let c=0-o,u=o+s.height-n.height,h=this._subtractOverflows(s.width,0-r,r+s.width-n.width),d=this._subtractOverflows(s.height,c,u),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=q(this._overlayRef.getConfig().minHeight),o=q(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=j(e),s=this._viewportRect,r=Math.max(t.x+i.width-s.width,0),o=Math.max(t.y+i.height-s.height,0),a=Math.max(s.top-n.top-t.y,0),l=Math.max(s.left-n.left-t.x,0);let c=0,u=0;return c=i.width<=s.width?l||-r:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=(0,l.HM)(n.height),i.top=(0,l.HM)(n.top),i.bottom=(0,l.HM)(n.bottom),i.width=(0,l.HM)(n.width),i.left=(0,l.HM)(n.left),i.right=(0,l.HM)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=(0,l.HM)(t)),s&&(i.maxWidth=(0,l.HM)(s))}this._lastBoundingBoxSize=n,Z(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Z(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Z(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();Z(n,this._getExactOverlayY(e,t,i)),Z(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=(0,l.HM)(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=(0,l.HM)(r.maxWidth):s&&(n.maxWidth="")),Z(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=(0,l.HM)(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=(0,l.HM)(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:E(t,n),isOriginOutsideView:C(t,n),isOverlayClipped:E(e,n),isOverlayOutsideView:C(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&(0,l.Eq)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function Z(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function q(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(B);return n&&"px"!==n?null:parseFloat(e)}return t||null}function j(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class V{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new U(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new T(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const H="cdk-global-overlay-wrapper";class z{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(H),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(H),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Y=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new z}connectedTo(t,e,n){return new V(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new U(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.rL),s.LFG(a.K0),s.LFG(r.t4),s.LFG(L))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.rL),s.LFG(a.K0),s.LFG(r.t4),s.LFG(L))},token:t,providedIn:"root"}),t})(),G=0,K=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new A(t);return s.direction=s.direction||this._directionality.value,new F(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+G++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new c.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(S),s.LFG(L),s.LFG(s._Vd),s.LFG(Y),s.LFG(I),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(o.Is),s.LFG(a.Ye),s.LFG(R))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const $=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],W=new s.OlP("cdk-connected-overlay-scroll-strategy");let Q=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),J=(()=>{class t{constructor(t,e,n,i,r){this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.vpe,this.positionChange=new s.vpe,this.attach=new s.vpe,this.detach=new s.vpe,this.overlayKeydown=new s.vpe,this.overlayOutsideClick=new s.vpe,this._templatePortal=new c.UE(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,l.Ig)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=(0,l.Ig)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=(0,l.Ig)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=(0,l.Ig)(t)}get push(){return this._push}set push(t){this._push=(0,l.Ig)(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=$);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode===y.hY&&!this.disableClose&&!(0,y.Vb)(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new A({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return n=>n.lift(new f(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(K),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(W),s.Y36(o.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.TTD]}),t})();const X={provide:W,deps:[K],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[K,X],imports:[[o.vT,c.eL,i.Cl],i.Cl]}),t})()},521:function(t,e,n){"use strict";n.d(e,{t4:function(){return a},ud:function(){return l},sA:function(){return v},ht:function(){return b},kV:function(){return y},_i:function(){return _},qK:function(){return u},i$:function(){return m},Mq:function(){return g}});var i=n(3018),s=n(8583);let r;try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(w){r=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,s.NF)(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&&!r)&&"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)(i.LFG(i.Lbi))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(i.Lbi))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(c),o;let t=document.createElement("input");return o=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let h,d,p,f;function m(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function g(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if("scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p}function _(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function y(t){if(function(){if(null==f){const t="undefined"!=typeof document?document.head:null;f=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function b(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function v(t){return t.composedPath?t.composedPath()[0]:t.target}},7636:function(t,e,n){"use strict";n.d(e,{en:function(){return c},Pl:function(){return h},C5:function(){return o},u0:function(){return u},eL:function(){return d},UE:function(){return a}});var i=n(3018),s=n(8583);class r{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class o extends r{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class a extends r{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class l extends r{constructor(t){super(),this.element=t instanceof i.SBq?t.nativeElement:t}}class c{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof o?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class u extends c{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let h=(()=>{class t extends c{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(s.K0))},t.\u0275dir=i.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},9243:function(t,e,n){"use strict";n.d(e,{ZD:function(){return y},mF:function(){return g},Cl:function(){return b},rL:function(){return _}});var i=n(9490),s=n(3018),r=n(6465),o=n(6102);new class extends o.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});var a=n(9765),l=n(5917),c=n(7574),u=n(2759);n(4581);n(5319),n(5639),n(7393),new class extends o.v{}(class extends r.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}),n(1593),n(7971),n(8858),n(7519);var h=n(628),d=n(5435),p=(n(6782),n(9761),n(3190),n(521)),f=n(8583),m=n(946);n(8345);let g=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new a.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new c.y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe((0,h.e)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,l.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,d.h)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=(0,i.fI)(e),s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return(0,u.R)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(p.t4),s.LFG(f.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(p.t4),s.LFG(f.K0,8))},token:t,providedIn:"root"}),t})(),_=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new a.xQ,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe((0,h.e)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(p.t4),s.LFG(s.R0b),s.LFG(f.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(p.t4),s.LFG(s.R0b),s.LFG(f.K0,8))},token:t,providedIn:"root"}),t})(),y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[m.vT,p.ud,y],m.vT,y]}),t})()},9490:function(t,e,n){"use strict";n.d(e,{Eq:function(){return o},Ig:function(){return s},HM:function(){return a},fI:function(){return l},su:function(){return r}});var i=n(3018);function s(t){return null!=t&&"false"!=`${t}`}function r(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function o(t){return Array.isArray(t)?t:[t]}function a(t){return null==t?"":"string"==typeof t?t:`${t}px`}function l(t){return t instanceof i.SBq?t.nativeElement:t}},8583:function(t,e,n){"use strict";n.d(e,{mr:function(){return v},Ov:function(){return Y},ez:function(){return G},K0:function(){return l},Do:function(){return x},V_:function(){return h},Ye:function(){return C},S$:function(){return y},mk:function(){return I},sg:function(){return D},O5:function(){return L},RF:function(){return U},n9:function(){return Z},ED:function(){return q},b0:function(){return w},lw:function(){return c},EM:function(){return W},JF:function(){return X},NF:function(){return $},w_:function(){return a},bD:function(){return K},q:function(){return r},Mx:function(){return P},HT:function(){return o}});var i=n(3018);let s=null;function r(){return s}function o(t){s||(s=t)}class a{}const l=new i.OlP("DocumentToken");let c=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return(0,i.LFG)(d)}const h=new i.OlP("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return r().getBaseHref(this._doc)}onPopState(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(l))},t.\u0275prov=(0,i.Yz7)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d((0,i.LFG)(l))}function m(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function _(t){return t&&"?"!==t[0]?"?"+t:t}let y=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:b,token:t,providedIn:"root"}),t})();function b(t){const e=(0,i.LFG)(l).location;return new w((0,i.LFG)(c),e&&e.origin||"")}const v=new i.OlP("appBaseHref");let w=(()=>{class t extends y{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+_(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+_(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+_(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(v,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t extends y{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+_(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+_(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(v,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e){this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(k(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+_(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,k(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(y),i.LFG(c))},t.normalizeQueryParams=_,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=(0,i.Yz7)({factory:E,token:t,providedIn:"root"}),t})();function E(){return new C((0,i.LFG)(y),(0,i.LFG)(c))}function k(t){return t.replace(/\/index.html$/,"")}var S=(()=>((S=S||{})[S.Zero=0]="Zero",S[S.One=1]="One",S[S.Two=2]="Two",S[S.Few=3]="Few",S[S.Many=4]="Many",S[S.Other=5]="Other",S))();const A=i.kL8;class T{}let O=(()=>{class t extends T{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(A(e||this.locale)(t)){case S.Zero:return"zero";case S.One:return"one";case S.Two:return"two";case S.Few:return"few";case S.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.soG))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function P(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let I=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class R{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 D=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(t){return t.name||typeof t}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new R(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new M(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new M(t,s);e.push(r)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class M{constructor(t,e){this.record=t,this.view=e}}let L=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new F,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){N("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){N("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class F{constructor(){this.$implicit=null,this.ngIf=null}}function N(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.AaK)(e)}'.`)}class B{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let U=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new B(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(U,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),q=(()=>{class t{constructor(t,e,n){n._addDefault(new B(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(U,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})();class j{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class V{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const H=new V,z=new j;let Y=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,i.QGY)(e))return H;if((0,i.F4k)(e))return z;throw function(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,i.AaK)(t)}'`)}(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO,16))},t.\u0275pipe=i.Yjl({name:"async",type:t,pure:!1}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:T,useClass:O}]}),t})();const K="browser";function $(t){return t===K}let W=(()=>{class t{}return t.\u0275prov=(0,i.Yz7)({token:t,providedIn:"root",factory:()=>new Q((0,i.LFG)(l),window)}),t})();class Q{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=J(this.window.history)||J(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function J(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class X{}},1841:function(t,e,n){"use strict";n.d(e,{eN:function(){return P},JF:function(){return V}});var i=n(8583),s=n(3018),r=n(5917),o=n(7574),a=n(4612),l=n(5435),c=n(8002);class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return g(t)}encodeValue(t){return g(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const f=/%(\d[a-f0-9])/gi,m={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function g(t){return encodeURIComponent(t).replace(f,(t,e)=>{var n;return null!==(n=m[e])&&void 0!==n?n:t})}function _(t){return`${t}`}class y{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new y({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(_(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(_(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class b{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function v(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function w(t){return"undefined"!=typeof Blob&&t instanceof Blob}function x(t){return"undefined"!=typeof FormData&&t instanceof FormData}class C{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new b),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new C(n,i,r,{params:c,headers:l,context:u,reportProgress:a,responseType:s,withCredentials:o})}}var E=(()=>((E=E||{})[E.Sent=0]="Sent",E[E.UploadProgress=1]="UploadProgress",E[E.ResponseHeader=2]="ResponseHeader",E[E.DownloadProgress=3]="DownloadProgress",E[E.Response=4]="Response",E[E.User=5]="User",E))();class k{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class S extends k{constructor(t={}){super(t),this.type=E.ResponseHeader}clone(t={}){return new S({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class A extends k{constructor(t={}){super(t),this.type=E.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new A({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class T extends k{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function O(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let P=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof C)i=t;else{let s,r;s=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(r=n.params instanceof y?n.params:new y({fromObject:n.params})),i=new C(t,e,void 0!==n.body?n.body:null,{headers:s,context:n.context,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=(0,r.of)(i).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof C||"events"===n.observe)return s;const o=s.pipe((0,l.h)(t=>t instanceof A));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe((0,c.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe((0,c.U)(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new y).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,O(n,e))}post(t,e,n={}){return this.request("POST",t,O(n,e))}put(t,e,n={}){return this.request("PUT",t,O(n,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(u))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class I{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const R=new s.OlP("HTTP_INTERCEPTORS");let D=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const M=/^\)\]\}',?\n/;let L=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new S({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(M,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new A({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new T({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new T({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:E.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&!!n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:E.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:E.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const F=new s.OlP("XSRF_COOKIE_NAME"),N=new s.OlP("XSRF_HEADER_NAME");class B{}let U=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0),s.LFG(s.Lbi),s.LFG(F))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null!==i&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(B),s.LFG(N))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),q=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(R,[]);this.chain=t.reduceRight((t,e)=>new I(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Z,useClass:D}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:F,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Z,{provide:R,useExisting:Z,multi:!0},{provide:B,useClass:U},{provide:F,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[P,{provide:u,useClass:q},L,{provide:h,useExisting:L}],imports:[[j.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},3018:function(t,e,n){"use strict";n.d(e,{deG:function(){return un},tb:function(){return tc},AFp:function(){return $l},ip1:function(){return Gl},CZH:function(){return Kl},hGG:function(){return Gc},z2F:function(){return Nc},sBO:function(){return Wa},Sil:function(){return hc},_Vd:function(){return va},EJc:function(){return ic},SBq:function(){return Ea},qLn:function(){return Di},vpe:function(){return Tl},gxx:function(){return wr},tBr:function(){return Ln},XFs:function(){return R},OlP:function(){return cn},zs3:function(){return Fr},ZZ4:function(){return Va},aQg:function(){return za},soG:function(){return nc},YKP:function(){return ol},v3s:function(){return Uc},h0i:function(){return rl},PXZ:function(){return Rc},R0b:function(){return fc},FiY:function(){return Fn},Lbi:function(){return Xl},g9A:function(){return Jl},n_E:function(){return Pl},Qsj:function(){return Aa},FYo:function(){return Sa},JOm:function(){return Fi},Tiy:function(){return Oa},q3G:function(){return Ei},tp0:function(){return Nn},EAV:function(){return jc},Rgc:function(){return el},dDg:function(){return wc},DyG:function(){return hn},GfV:function(){return Pa},s_b:function(){return ll},ifc:function(){return B},eFA:function(){return Dc},G48:function(){return Oc},Gpc:function(){return m},f3M:function(){return Pn},X6Q:function(){return Tc},_c5:function(){return zc},VLi:function(){return Ec},c2e:function(){return ec},zSh:function(){return Cr},wAp:function(){return ra},vHH:function(){return y},EiD:function(){return xi},mCW:function(){return oi},qzn:function(){return $n},JVY:function(){return Qn},pB0:function(){return ei},eBb:function(){return Xn},L6k:function(){return Jn},LAX:function(){return ti},cg1:function(){return na},Tjo:function(){return Hc},kL8:function(){return ia},yhl:function(){return Wn},dqk:function(){return V},sIi:function(){return Yr},CqO:function(){return po},QGY:function(){return uo},F4k:function(){return ho},RDi:function(){return Tt},AaK:function(){return d},z3N:function(){return Kn},qOj:function(){return Br},TTD:function(){return vt},_Bn:function(){return ga},xp6:function(){return Cs},uIk:function(){return Wr},Tol:function(){return Do},Gre:function(){return Wo},ekj:function(){return Ro},Suo:function(){return jl},Xpm:function(){return tt},lG2:function(){return at},Yz7:function(){return C},cJS:function(){return E},oAB:function(){return st},Yjl:function(){return lt},Y36:function(){return eo},_UZ:function(){return oo},BQk:function(){return lo},ynx:function(){return ao},qZA:function(){return ro},TgZ:function(){return so},EpF:function(){return co},n5z:function(){return sn},Ikx:function(){return Qo},LFG:function(){return On},$8M:function(){return on},NdJ:function(){return fo},CRH:function(){return Vl},kcU:function(){return xe},O4$:function(){return we},oxw:function(){return bo},ALo:function(){return kl},lcZ:function(){return Sl},Hsn:function(){return xo},F$t:function(){return wo},Q6J:function(){return no},s9C:function(){return Co},VKq:function(){return Cl},iGM:function(){return Zl},MAs:function(){return to},CHM:function(){return Gt},oJD:function(){return ki},LSH:function(){return Si},kYT:function(){return rt},Udp:function(){return Io},WFA:function(){return mo},d8E:function(){return Jo},YNc:function(){return Xr},_uU:function(){return zo},Oqu:function(){return Yo},hij:function(){return Go},AsE:function(){return Ko},lnq:function(){return $o},Gf:function(){return ql}});var i=n(9765),s=n(5319),r=n(7574),o=n(6682),a=n(2441);var l=n(1307);function c(){return new i.xQ}function u(t){for(let e in t)if(t[e]===u)return e;throw Error("Could not find renamed property on target object.")}function h(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function d(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(d).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function p(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const f=u({__forward_ref__:u});function m(t){return t.__forward_ref__=m,t.toString=function(){return d(this())},t}function g(t){return _(t)?t():t}function _(t){return"function"==typeof t&&t.hasOwnProperty(f)&&t.__forward_ref__===m}class y extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function b(t){return"string"==typeof t?t:null==t?"":String(t)}function v(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():b(t)}function w(t,e){const n=e?` in ${e}`:"";throw new y("201",`No provider for ${v(t)} found${n}`)}function x(t,e){null==t&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${n} ${i} ${e} <=Actual]`))}(e,t,null,"!=")}function C(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function E(t){return{providers:t.providers||[],imports:t.imports||[]}}function k(t){return S(t,T)||S(t,P)}function S(t,e){return t.hasOwnProperty(e)?t[e]:null}function A(t){return t&&(t.hasOwnProperty(O)||t.hasOwnProperty(I))?t[O]:null}const T=u({"\u0275prov":u}),O=u({"\u0275inj":u}),P=u({ngInjectableDef:u}),I=u({ngInjectorDef:u});var R=(()=>((R=R||{})[R.Default=0]="Default",R[R.Host=1]="Host",R[R.Self=2]="Self",R[R.SkipSelf=4]="SkipSelf",R[R.Optional=8]="Optional",R))();let D;function M(t){const e=D;return D=t,e}function L(t,e,n){const i=k(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&R.Optional?null:void 0!==e?e:void w(d(t),"Injector")}function F(t){return{toString:t}.toString()}var N=(()=>((N=N||{})[N.OnPush=0]="OnPush",N[N.Default=1]="Default",N))(),B=(()=>((B=B||{})[B.Emulated=0]="Emulated",B[B.None=2]="None",B[B.ShadowDom=3]="ShadowDom",B))();const U="undefined"!=typeof globalThis&&globalThis,Z="undefined"!=typeof window&&window,q="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,V=U||j||Z||q,H={},z=[],Y=u({"\u0275cmp":u}),G=u({"\u0275dir":u}),K=u({"\u0275pipe":u}),$=u({"\u0275mod":u}),W=u({"\u0275loc":u}),Q=u({"\u0275fac":u}),J=u({__NG_ELEMENT_ID__:u});let X=0;function tt(t){return F(()=>{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===N.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||z,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||B.Emulated,id:"c",styles:t.styles||z,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=X++,n.inputs=ot(t.inputs,e),n.outputs=ot(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(et):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(nt):null,n})}function et(t){return ct(t)||function(t){return t[G]||null}(t)}function nt(t){return function(t){return t[K]||null}(t)}const it={};function st(t){return F(()=>{const e={type:t.type,bootstrap:t.bootstrap||z,declarations:t.declarations||z,imports:t.imports||z,exports:t.exports||z,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(it[t.id]=t.type),e})}function rt(t,e){return F(()=>{const n=ut(t,!0);n.declarations=e.declarations||z,n.imports=e.imports||z,n.exports=e.exports||z})}function ot(t,e){if(null==t)return H;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const at=tt;function lt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ct(t){return t[Y]||null}function ut(t,e){const n=t[$]||null;if(!n&&!0===e)throw new Error(`Type ${d(t)} does not have '\u0275mod' property.`);return n}function ht(t){return Array.isArray(t)&&"object"==typeof t[1]}function dt(t){return Array.isArray(t)&&!0===t[1]}function pt(t){return 0!=(8&t.flags)}function ft(t){return 2==(2&t.flags)}function mt(t){return 1==(1&t.flags)}function gt(t){return null!==t.template}function _t(t){return 0!=(512&t[2])}function yt(t,e){return t.hasOwnProperty(Q)?t[Q]:null}class bt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function vt(){return wt}function wt(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ct),xt}function xt(){const t=kt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===H)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Ct(t,e,n,i){const s=kt(t)||function(t,e){return t[Et]=e}(t,{previous:H,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new bt(l&&l.currentValue,e,o===H),t[i]=e}vt.ngInherit=!0;const Et="__ngSimpleChanges__";function kt(t){return t[Et]||null}const St="http://www.w3.org/2000/svg";let At;function Tt(t){At=t}function Ot(){return void 0!==At?At:"undefined"!=typeof document?document:void 0}function Pt(t){return!!t.listen}const It={createRenderer:(t,e)=>Ot()};function Rt(t){for(;Array.isArray(t);)t=t[0];return t}function Dt(t,e){return Rt(e[t])}function Mt(t,e){return Rt(e[t.index])}function Lt(t,e){return t.data[e]}function Ft(t,e){return t[e]}function Nt(t,e){const n=e[t];return ht(n)?n:n[0]}function Bt(t){return 4==(4&t[2])}function Ut(t){return 128==(128&t[2])}function Zt(t,e){return null==e?null:t[e]}function qt(t){t[18]=0}function jt(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Vt={lFrame:fe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ht(){return Vt.bindingsEnabled}function zt(){return Vt.lFrame.lView}function Yt(){return Vt.lFrame.tView}function Gt(t){return Vt.lFrame.contextLView=t,t[8]}function Kt(){let t=$t();for(;null!==t&&64===t.type;)t=t.parent;return t}function $t(){return Vt.lFrame.currentTNode}function Wt(t,e){const n=Vt.lFrame;n.currentTNode=t,n.isParent=e}function Qt(){return Vt.lFrame.isParent}function Jt(){Vt.lFrame.isParent=!1}function Xt(){return Vt.isInCheckNoChangesMode}function te(t){Vt.isInCheckNoChangesMode=t}function ee(){const t=Vt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ne(){return Vt.lFrame.bindingIndex}function ie(){return Vt.lFrame.bindingIndex++}function se(t){const e=Vt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function re(t,e){const n=Vt.lFrame;n.bindingIndex=n.bindingRootIndex=t,oe(e)}function oe(t){Vt.lFrame.currentDirectiveIndex=t}function ae(t){const e=Vt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function le(){return Vt.lFrame.currentQueryIndex}function ce(t){Vt.lFrame.currentQueryIndex=t}function ue(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function he(t,e,n){if(n&R.SkipSelf){let i=e,s=t;for(;!(i=i.parent,null!==i||n&R.Host||(i=ue(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;e=i,t=s}const i=Vt.lFrame=pe();return i.currentTNode=e,i.lView=t,!0}function de(t){const e=pe(),n=t[1];Vt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function pe(){const t=Vt.lFrame,e=null===t?null:t.child;return null===e?fe(t):e}function fe(t){const e={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=e),e}function me(){const t=Vt.lFrame;return Vt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ge=me;function _e(){const t=me();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 ye(){return Vt.lFrame.selectedIndex}function be(t){Vt.lFrame.selectedIndex=t}function ve(){const t=Vt.lFrame;return Lt(t.tView,t.selectedIndex)}function we(){Vt.lFrame.currentNamespace=St}function xe(){Vt.lFrame.currentNamespace=null}function Ce(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}class Oe{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Pe(t,e,n){const i=Pt(t);let s=0;for(;se){o=r-1;break}}}for(;r>16}(t),i=e;for(;n>0;)i=i[15],n--;return i}let Be=!0;function Ue(t){const e=Be;return Be=t,e}let Ze=0;function qe(t,e){const n=Ve(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,je(i.data,t),je(e,null),je(i.blueprint,null));const s=He(t,e),r=t.injectorIndex;if(Le(s)){const t=Fe(s),n=Ne(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function je(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ve(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function He(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function ze(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(i=n[J]),null==i&&(i=n[J]=Ze++);const s=255&i;e.data[t+(s>>5)]|=1<=0?255&e:We:e}(n);if("function"==typeof r){if(!he(e,t,i))return i&R.Host?Ye(s,n,i):Ge(e,n,i,s);try{const t=r(i);if(null!=t||i&R.Optional)return t;w(n)}finally{ge()}}else if("number"==typeof r){let s=null,o=Ve(t,e),a=-1,l=i&R.Host?e[16][6]:null;for((-1===o||i&R.SkipSelf)&&(a=-1===o?He(t,e):e[o+8],-1!==a&&en(i,!1)?(s=e[1],o=Fe(a),e=Ne(a,e)):o=-1);-1!==o;){const t=e[1];if(tn(r,o,t.data)){const t=Qe(o,e,n,s,i,l);if(t!==$e)return t}a=e[o+8],-1!==a&&en(i,e[1].data[o+8]===l)&&tn(r,o,e)?(s=t,o=Fe(a),e=Ne(a,e)):o=-1}}}return Ge(e,n,i,s)}const $e={};function We(){return new nn(Kt(),zt())}function Qe(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=Je(a,o,n,null==i?ft(a)&&Be:i!=o&&0!=(3&a.type),s&R.Host&&r===a);return null!==l?Xe(e,o,l,a):$e}function Je(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,u=s?a+c:t.directiveEnd;for(let h=i?a:a+c;h=l&&t.type===n)return h}if(s){const t=o[l];if(t&>(t)&&t.type===n)return l}return null}function Xe(t,e,n,i){let s=t[n];const r=e.data;if(function(t){return t instanceof Oe}(s)){const o=s;o.resolving&&function(t,e){throw new y("200",`Circular dependency in DI detected for ${t}`)}(v(r[n]));const a=Ue(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?M(o.injectImpl):null;he(t,i,R.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=wt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&M(l),Ue(a),o.resolving=!1,ge()}}return s}function tn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Q]||rn(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Q]||rn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function rn(t){return _(t)?()=>{const e=rn(g(t));return e&&e()}:yt(t)}function on(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty(an)?t[an]:Object.defineProperty(t,an,{value:[]})[an];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class cn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=C({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const un=new cn("AnalyzeForEntryComponents"),hn=Function;function dn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?pn(t,e):e(t))}function fn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function mn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function gn(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function yn(t,e){const n=bn(t,e);if(n>=0)return t[1|n]}function bn(t,e){return function(t,e,n){let i=0,s=t.length>>n;for(;s!==i;){const r=i+(s-i>>1),o=t[r<e?s=r:i=r+1}return~(s< ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):d(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(Cn,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t[xn]=null,t}const Ln=Rn(ln("Inject",t=>({token:t})),-1),Fn=Rn(ln("Optional"),8),Nn=Rn(ln("SkipSelf"),4);let Bn,Un;function Zn(t){var e;return(null===(e=function(){if(void 0===Bn&&(Bn=null,V.trustedTypes))try{Bn=V.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Bn}())||void 0===e?void 0:e.createHTML(t))||t}function qn(t){var e;return(null===(e=function(){if(void 0===Un&&(Un=null,V.trustedTypes))try{Un=V.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Un}())||void 0===e?void 0:e.createHTML(t))||t}class jn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Vn extends jn{getTypeName(){return"HTML"}}class Hn extends jn{getTypeName(){return"Style"}}class zn extends jn{getTypeName(){return"Script"}}class Yn extends jn{getTypeName(){return"URL"}}class Gn extends jn{getTypeName(){return"ResourceURL"}}function Kn(t){return t instanceof jn?t.changingThisBreaksApplicationSecurity:t}function $n(t,e){const n=Wn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Wn(t){return t instanceof jn&&t.getTypeName()||null}function Qn(t){return new Vn(t)}function Jn(t){return new Hn(t)}function Xn(t){return new zn(t)}function ti(t){return new Yn(t)}function ei(t){return new Gn(t)}class ni{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Zn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class ii{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Zn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Zn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0oi(t.trim())).join(", ")),this.buf.push(" ",e,'="',vi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();di.hasOwnProperty(e)&&!ci.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(vi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const yi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bi=/([^\#-~ |!])/g;function vi(t){return t.replace(/&/g,"&").replace(yi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(bi,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let wi;function xi(t,e){let n=null;try{wi=wi||function(t){const e=new ii(t);return function(){try{return!!(new window.DOMParser).parseFromString(Zn(""),"text/html")}catch(t){return!1}}()?new ni(e):e}(t);let i=e?String(e):"";n=wi.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=wi.getInertBodyElement(i)}while(i!==r);return Zn((new _i).sanitizeChildren(Ci(n)||n))}finally{if(n){const t=Ci(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Ci(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ei=(()=>((Ei=Ei||{})[Ei.NONE=0]="NONE",Ei[Ei.HTML=1]="HTML",Ei[Ei.STYLE=2]="STYLE",Ei[Ei.SCRIPT=3]="SCRIPT",Ei[Ei.URL=4]="URL",Ei[Ei.RESOURCE_URL=5]="RESOURCE_URL",Ei))();function ki(t){const e=Ai();return e?qn(e.sanitize(Ei.HTML,t)||""):$n(t,"HTML")?qn(Kn(t)):xi(Ot(),b(t))}function Si(t){const e=Ai();return e?e.sanitize(Ei.URL,t)||"":$n(t,"URL")?Kn(t):oi(b(t))}function Ai(){const t=zt();return t&&t[12]}const Ti="__ngContext__";function Oi(t,e){t[Ti]=e}function Pi(t){const e=function(t){return t[Ti]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ii(t){return t.ngOriginalError}function Ri(t,...e){t.error(...e)}class Di{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=(s=t)&&s.ngErrorLogger||Ri;var s;i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?t.ngDebugContext||this._findContext(Ii(t)):null}_findOriginalError(t){let e=t&&Ii(t);for(;e&&Ii(e);)e=Ii(e);return e||null}}const Mi=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(V))();function Li(t){return t instanceof Function?t():t}var Fi=(()=>((Fi=Fi||{})[Fi.Important=1]="Important",Fi[Fi.DashCase=2]="DashCase",Fi))();function Ni(t,e){return undefined(t,e)}function Bi(t){const e=t[3];return dt(e)?e[3]:e}function Ui(t){return qi(t[13])}function Zi(t){return qi(t[4])}function qi(t){for(;null!==t&&!dt(t);)t=t[4];return t}function ji(t,e,n,i,s){if(null!=i){let r,o=!1;dt(i)?r=i:ht(i)&&(o=!0,i=i[0]);const a=Rt(i);0===t&&null!==n?null==s?Wi(e,n,a):$i(e,n,a,s||null,!0):1===t&&null!==n?$i(e,n,a,s||null,!0):2===t?function(t,e,n){const i=Ji(t,e);i&&function(t,e,n,i){Pt(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==Rt(n)&&ji(e,t,i,r,s);for(let o=10;o0&&(t[n-1][4]=i[4]);const r=mn(t,10+e);!function(t,e){os(t,e,e[11],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Yi(t,e){if(!(256&e[2])){const n=e[11];Pt(n)&&n.destroyNode&&os(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Gi(t[1],t);for(;e;){let n=null;if(ht(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ht(e)&&Gi(e[1],e),e=e[3];null===e&&(e=t),ht(e)&&Gi(e[1],e),n=e&&e[4]}e=n}}(e)}}function Gi(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?i[s=l]():i[s=-l].unsubscribe(),r+=2}else{const t=i[s=n[r+1]];n[r].call(t)}if(null!==i){for(let t=s+1;tr?"":s[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==us(e,c,0)||2&i&&c!==t){if(gs(i))return!1;o=!0}}}}else{if(!o&&!gs(i)&&!gs(l))return!1;if(o&&gs(l))continue;o=!1,i=l|1&i}}return gs(i)||o}function gs(t){return 0==(1&t)}function _s(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""!==s&&!gs(o)&&(e+=vs(r,s),s=""),i=o,r=r||!gs(i);n++}return""!==s&&(e+=vs(r,s)),e}const xs={};function Cs(t){Es(Yt(),zt(),ye()+t,Xt())}function Es(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ee(e,i,n)}else{const i=t.preOrderHooks;null!==i&&ke(e,i,0,n)}be(n)}function ks(t,e){return t<<17|e<<2}function Ss(t){return t>>17&32767}function As(t){return 2|t}function Ts(t){return(131068&t)>>2}function Os(t,e){return-131069&t|e<<2}function Ps(t){return 1|t}function Is(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i20&&Es(t,e,20,Xt()),n(i,s)}finally{be(r)}}function Us(t,e,n){if(pt(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function $s(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ws(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Qs(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&or(n)}}function or(t){for(let n=Ui(t);null!==n;n=Zi(n))for(let t=10;t0&&or(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&or(i)}}function ar(t,e){const n=Nt(e,t),i=n[1];(function(t,e){for(let n=e.length;nPromise.resolve(null))();function fr(t){return t[7]||(t[7]=[])}function mr(t){return t.cleanup||(t.cleanup=[])}function gr(t,e,n){return(null===t||gt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function _r(t,e){const n=t[9],i=n?n.get(Di,null):null;i&&i.handleError(e)}function yr(t,e,n,i,s){for(let r=0;rthis.processProvider(n,t,e)),pn([t],t=>this.processInjectorType(t,[],s)),this.records.set(wr,Rr(void 0,this));const r=this.records.get(Cr);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:d(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=vn,n=R.Default){this.assertNotDestroyed();const i=An(this),s=M(void 0);try{if(!(n&R.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof cn)&&k(t);e=n&&this.injectableDefInScope(n)?Rr(Pr(t),Er):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&R.Self?Ar():this.parent).get(t,e=n&R.Optional&&e===vn?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[xn]=o[xn]||[]).unshift(d(t)),i)throw o;return Mn(o,t,"R3InjectorError",this.source)}throw o}finally{M(s),An(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(d(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=g(t)))return!1;let i=A(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=A(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{pn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||z))}}this.injectorDefTypes.add(r);const a=yt(r)||(()=>new r);this.records.set(r,Rr(a,Er));const l=i.providers;if(null!=l&&!o){const e=t;pn(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=Mr(t=g(t))?t:g(t&&t.provide);const s=Dr(r=t)?Rr(void 0,r.useValue):Rr(Ir(r),Er);var r;if(Mr(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Rr(void 0,Er,!0),e.factory=()=>In(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){return e.value===Er&&(e.value=kr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value;var n}injectableDefInScope(t){if(!t.providedIn)return!1;const e=g(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Pr(t){const e=k(t),n=null!==e?e.factory:yt(t);if(null!==n)return n;if(t instanceof cn)throw new Error(`Token ${d(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=gn(e,"?");throw new Error(`Can't resolve all parameters for ${d(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[T]||t[P]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" 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 "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Ir(t,e,n){let i;if(Mr(t)){const e=g(t);return yt(e)||Pr(e)}if(Dr(t))i=()=>g(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...In(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>On(g(t.useExisting));else{const e=g(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return yt(e)||Pr(e);i=()=>new e(...In(t.deps))}return i}function Rr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Dr(t){return null!==t&&"object"==typeof t&&kn in t}function Mr(t){return"function"==typeof t}const Lr=function(t,e,n){return function(t,e=null,n=null,i){const s=Tr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};class Fr{static create(t,e){return Array.isArray(t)?Lr(t,e,""):Lr(t.providers,t.parent,t.name||"")}}function Nr(t,e){Ce(Pi(t)[1],Kt())}function Br(t){let e=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const i=[t];for(;e;){let s;if(gt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=Ur(t.inputs),e.declaredInputs=Ur(t.declaredInputs),e.outputs=Ur(t.outputs);const n=s.hostBindings;n&&jr(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&Zr(t,r),o&&qr(t,o),h(t.inputs,s.inputs),h(t.declaredInputs,s.declaredInputs),h(t.outputs,s.outputs),gt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=De(s.hostAttrs,n=De(n,s.hostAttrs))}}(i)}function Ur(t){return t===H?{}:t===z?[]:t}function Zr(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function qr(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function jr(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}Fr.THROW_IF_NOT_FOUND=vn,Fr.NULL=new xr,Fr.\u0275prov=C({token:Fr,providedIn:"any",factory:()=>On(wr)}),Fr.__NG_ELEMENT_ID__=-1;let Vr=null;function Hr(){if(!Vr){const t=V.Symbol;if(t&&t.iterator)Vr=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Rt(t[i.index])):i.index;if(Pt(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,d=!1;else{r=yo(i,e,u,r,!1);const t=n.listen(f,s,r);h.push(r,t),c&&c.push(s,g,m,m+1)}}else r=yo(i,e,u,r,!0),f.addEventListener(s,r,o),h.push(r),c&&c.push(s,g,m,o)}else r=yo(i,e,u,r,!1);const p=i.outputs;let f;if(d&&null!==p&&(f=p[s])){const t=f.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Vt.lFrame.contextLView))[8]}(t)}function vo(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Ao={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function To(t){return t.substring(Ao.key,Ao.keyEnd)}function Oo(t,e){const n=Ao.textEnd;return n===e?-1:(e=Ao.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Ao.key=e,n),Po(t,e,n))}function Po(t,e,n){for(;e=0;n=Oo(e,n))_n(t,To(e),!0)}function Lo(t,e,n,i){const s=zt(),r=Yt(),o=se(2);r.firstUpdatePass&&Bo(r,t,o,i),e!==xs&&Kr(s,o,e)&&qo(r,r.data[ye()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=d(Kn(t)))),t}(e,n),i,o)}function Fo(t,e,n,i){const s=Yt(),r=se(2);s.firstUpdatePass&&Bo(s,null,r,i);const o=zt();if(n!==xs&&Kr(o,r,n)){const a=s.data[ye()];if(Ho(a,i)&&!No(s,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=p(t,n||"")),io(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===xs&&(s=z);let l=0,c=0,u=0=t.expandoStartIndex}function Bo(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[ye()],o=No(t,n);Ho(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=ae(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=Zo(n=Uo(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=Uo(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Ts(i))return t[Ss(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Uo(null,t,e,n[1],i),n=Zo(n,e.attrs,i),function(t,e,n,i){t[Ss(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=Ss(t[a+1]);t[i+1]=ks(e,a),0!==e&&(t[e+1]=Os(t[e+1],i)),t[a+1]=function(t,e){return 131071&t|e<<17}(t[a+1],i)}else t[i+1]=ks(a,0),0!==a&&(t[a+1]=Os(t[a+1],i)),a=i;else t[i+1]=ks(l,0),0===a?a=i:t[l+1]=Os(t[l+1],i),l=i;u&&(t[i+1]=As(t[i+1])),ko(t,c,i,!0),ko(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&bn(r,e)>=0&&(n[i+1]=Ps(n[i+1]))}(e,c,t,i,r),o=ks(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function Uo(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let u=n[s+1];u===xs&&(u=c?z:void 0);let h=c?yn(u,i):l===i?u:void 0;if(r&&!Vo(h)&&(h=yn(e,i)),Vo(h)&&(a=h,o))return a;const d=t[s+1];s=o?Ss(d):Ts(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=yn(t,i))}return a}function Vo(t){return void 0!==t}function Ho(t,e){return 0!=(t.flags&(e?16:32))}function zo(t,e=""){const n=zt(),i=Yt(),s=t+20,r=i.firstCreatePass?Ds(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return Pt(t)?t.createText(e):t.createTextNode(e)}(n[11],e);es(i,n,o,r),Wt(r,!1)}function Yo(t){return Go("",t,""),Yo}function Go(t,e,n){const i=zt(),s=Qr(i,t,e,n);return s!==xs&&br(i,ye(),s),Go}function Ko(t,e,n,i,s){const r=zt(),o=function(t,e,n,i,s,r){const o=$r(t,ne(),n,s);return se(2),o?e+b(n)+i+b(s)+r:xs}(r,t,e,n,i,s);return o!==xs&&br(r,ye(),o),Ko}function $o(t,e,n,i,s,r,o){const a=zt(),l=Jr(a,t,e,n,i,s,r,o);return l!==xs&&br(a,ye(),l),$o}function Wo(t,e,n){Fo(_n,Mo,Qr(zt(),t,e,n),!0)}function Qo(t,e,n){const i=zt();return Kr(i,ie(),e)&&Ys(Yt(),ve(),i,t,e,i[11],n,!0),Qo}function Jo(t,e,n){const i=zt();if(Kr(i,ie(),e)){const s=Yt(),r=ve();Ys(s,r,i,t,e,gr(ae(s.data),r,i),n,!0)}return Jo}const Xo=void 0;var ta=["en",[["a","p"],["AM","PM"],Xo],[["AM","PM"],Xo,Xo],[["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"]],Xo,[["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"]],Xo,[["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}",Xo,"{1} 'at' {0}",Xo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ea={};function na(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=sa(e);if(n)return n;const i=e.split("-")[0];if(n=sa(i),n)return n;if("en"===i)return ta;throw new Error(`Missing locale data for the locale "${t}".`)}function ia(t){return na(t)[ra.PluralCase]}function sa(t){return t in ea||(ea[t]=V.ng&&V.ng.common&&V.ng.common.locales&&V.ng.common.locales[t]),ea[t]}var ra=(()=>((ra=ra||{})[ra.LocaleId=0]="LocaleId",ra[ra.DayPeriodsFormat=1]="DayPeriodsFormat",ra[ra.DayPeriodsStandalone=2]="DayPeriodsStandalone",ra[ra.DaysFormat=3]="DaysFormat",ra[ra.DaysStandalone=4]="DaysStandalone",ra[ra.MonthsFormat=5]="MonthsFormat",ra[ra.MonthsStandalone=6]="MonthsStandalone",ra[ra.Eras=7]="Eras",ra[ra.FirstDayOfWeek=8]="FirstDayOfWeek",ra[ra.WeekendRange=9]="WeekendRange",ra[ra.DateFormat=10]="DateFormat",ra[ra.TimeFormat=11]="TimeFormat",ra[ra.DateTimeFormat=12]="DateTimeFormat",ra[ra.NumberSymbols=13]="NumberSymbols",ra[ra.NumberFormats=14]="NumberFormats",ra[ra.CurrencyCode=15]="CurrencyCode",ra[ra.CurrencySymbol=16]="CurrencySymbol",ra[ra.CurrencyName=17]="CurrencyName",ra[ra.Currencies=18]="Currencies",ra[ra.Directionality=19]="Directionality",ra[ra.PluralCase=20]="PluralCase",ra[ra.ExtraData=21]="ExtraData",ra))();const oa="en-US";let aa=oa;function la(t){x(t,"Expected localeId to be defined"),"string"==typeof t&&(aa=t.toLowerCase().replace(/_/g,"-"))}function ca(t,e,n,i,s){if(t=g(t),Array.isArray(t))for(let r=0;r>20;if(Mr(t)||!t.multi){const i=new Oe(l,s,eo),p=da(a,e,s?u:u+d,h);-1===p?(ze(qe(c,o),r,a),ua(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=da(a,e,u+d,h),f=da(a,e,u,u+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){ze(qe(c,o),r,a);const u=function(t,e,n,i,s){const r=new Oe(t,n,eo);return r.multi=[],r.index=e,r.componentProviders=0,ha(r,s,i&&!n),r}(s?fa:pa,n.length,s,i,l);!s&&g&&(n[f].providerFactory=u),ua(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else ua(r,t,p>-1?p:f,ha(n[s?f:p],l,!s&&i));!s&&i&&g&&n[f].componentProviders++}}}function ua(t,e,n,i){const s=Mr(e);if(s||function(t){return!!t.useClass}(e)){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function ha(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function da(t,e,n,i){for(let s=n;s{n.providersResolver=(n,i)=>function(t,e,n){const i=Yt();if(i.firstCreatePass){const s=gt(t);ca(n,i.data,i.blueprint,s,!0),ca(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class _a{}const ya="ngComponent";class ba{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${d(t)}. Did you add it to @NgModule.entryComponents?`);return e[ya]=t,e}(t)}}class va{}function wa(...t){}function xa(t,e){return new Ea(Mt(t,e))}va.NULL=new ba;const Ca=function(){return xa(Kt(),zt())};let Ea=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Ca,t})();function ka(t){return t instanceof Ea?t.nativeElement:t}class Sa{}let Aa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ta(),t})();const Ta=function(){const t=zt(),e=Nt(Kt().index,t);return function(t){return t[11]}(ht(e)?e:t)};let Oa=(()=>{class t{}return t.\u0275prov=C({token:t,providedIn:"root",factory:()=>null}),t})();class Pa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ia=new Pa("12.2.4");class Ra{constructor(){}supports(t){return Yr(t)}create(t){return new Ma(t)}}const Da=(t,e)=>e;class Ma{constructor(t){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=t||Da}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):t=this._addAfter(new La(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Na),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Na),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class La{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Fa{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Na{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Fa,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ba(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new qa(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class qa{constructor(t){this.key=t,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 ja(){return new Va([new Ra])}let Va=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||ja()),deps:[[t,new Nn,new Fn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${function(t){return t.name||typeof t}(t)}'`)}}return t.\u0275prov=C({token:t,providedIn:"root",factory:ja}),t})();function Ha(){return new za([new Ua])}let za=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ha()),deps:[[t,new Nn,new Fn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=C({token:t,providedIn:"root",factory:Ha}),t})();function Ya(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(Rt(r)),dt(r))for(let t=10;t-1&&(zi(t,n),mn(e,n))}this._attachedToViewContainer=!1}Yi(this._lView[1],this._lView)}onDestroy(t){Hs(this._lView[1],this._lView,null,t)}markForCheck(){cr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ur(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){te(!0);try{ur(t,e,n)}finally{te(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,os(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ka extends Ga{constructor(t){super(t),this._view=t}detectChanges(){hr(this._view)}checkNoChanges(){!function(t){te(!0);try{hr(t)}finally{te(!1)}}(this._view)}get context(){return null}}const $a=function(t){return function(t,e,n){if(ft(t)&&!n){const n=Nt(t.index,e);return new Ga(n,n)}return 47&t.type?new Ga(e[16],e):null}(Kt(),zt(),16==(16&t))};let Wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=$a,t})();const Qa=[new Ua],Ja=new Va([new Ra]),Xa=new za(Qa),tl=function(){return sl(Kt(),zt())};let el=(()=>{class t{}return t.__NG_ELEMENT_ID__=tl,t})();const nl=el,il=class extends nl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Rs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Ls(e,n,t),new Ga(n)}};function sl(t,e){return 4&t.type?new il(e,t,xa(t,e)):null}class rl{}class ol{}const al=function(){return pl(Kt(),zt())};let ll=(()=>{class t{}return t.__NG_ELEMENT_ID__=al,t})();const cl=ll,ul=class extends cl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return xa(this._hostTNode,this._hostLView)}get injector(){return new nn(this._hostTNode,this._hostLView)}get parentInjector(){const t=He(this._hostTNode,this._hostLView);if(Le(t)){const e=Ne(t,this._hostLView),n=Fe(t);return new nn(e[1].data[n+8],e)}return new nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=hl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(rl,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(dt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new ul(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=10+i,r=n.length;i>0&&(n[s-1][4]=e),iMi});class yl extends _a{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ws).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return gl(this.componentDef.inputs)}get outputs(){return gl(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,fl,s);return r!==fl||i===fl?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(Sa,It),o=s.get(Oa,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Pt(t))return t.selectRootElement(e,n===B.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Vi(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?St:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h=function(t,e){return{components:[],scheduler:t||Mi,clean:pr,playerHandler:e||null,flags:0}}(),d=Vs(0,null,null,1,0,null,null,null,null,null),p=Rs(null,d,h,u,null,null,r,a,o,s);let f,m;de(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=Ds(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(vr(a,l,!0),null!==t&&(Pe(s,t,l),null!==a.classes&&cs(s,t,a.classes),null!==a.styles&&ls(s,t,a.styles)));const c=i.createRenderer(t,e),u=Rs(n,js(e),null,e.onPush?64:16,n[20],a,i,c,r||null,null);return o.firstCreatePass&&(ze(qe(a,n),o,e.type),Ws(o,a),Js(a,n.length,1)),lr(n,u),n[20]=u}(c,this.componentDef,p,r,a);if(c)if(n)Pe(a,c,["ng-version",Ia.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i0&&cs(a,c,e.join(" "))}if(m=Lt(d,20),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Kt();e.contentQueries(1,o,t.directiveStart)}const a=Kt();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(be(a.index),Ks(n[1],a,0,a.directiveStart,a.directiveEnd,e),$s(e,o)),o}(t,this.componentDef,p,h,[Nr]),Ls(d,p,null)}finally{_e()}return new bl(this.componentType,f,xa(m,p),p,m)}}class bl extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Ka(i),this.componentType=t}get injector(){return new nn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const vl=new Map;class wl extends rl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ml(this);const n=ut(t),i=t[W]||null;i&&la(i),this._bootstrapComponents=Li(n.bootstrap),this._r3Injector=Tr(t,e,[{provide:rl,useValue:this},{provide:va,useValue:this.componentFactoryResolver}],d(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Fr.THROW_IF_NOT_FOUND,n=R.Default){return t===Fr||t===rl||t===wr?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class xl extends ol{constructor(t){super(),this.moduleType=t,null!==ut(t)&&function(t){const e=new Set;!function t(n){const i=ut(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${d(e)} vs ${d(e.name)}`)}(s,vl.get(s),n),vl.set(s,n));const r=Li(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new wl(this.moduleType,t)}}function Cl(t,e,n,i){return El(zt(),ee(),t,e,n,i)}function El(t,e,n,i,s,r){const o=e+n;return Kr(t,o,s)?function(t,e,n){return t[e]=n}(t,o+1,r?i.call(r,s):i(s)):function(t,e){const n=t[e];return n===xs?void 0:n}(t,o+1)}function kl(t,e){const n=Yt();let i;const s=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new y("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=yt(i.type)),o=M(eo);try{const t=Ue(!1),e=r();return Ue(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,zt(),s,e),e}finally{M(o)}}function Sl(t,e,n){const i=t+20,s=zt(),r=Ft(s,i);return function(t,e){zr.isWrapped(e)&&(e=zr.unwrap(e),t[ne()]=xs);return e}(s,function(t,e){return t[1].data[e].pure}(s,i)?El(s,ee(),e,r.transform,n,r):r.transform(n))}function Al(t){return e=>{setTimeout(t,void 0,e)}}const Tl=class extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,r,o;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),l=null===(r=e.error)||void 0===r?void 0:r.bind(e),c=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(l=Al(l),a&&(a=Al(a)),c&&(c=Al(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof s.w&&t.add(u),u}};function Ol(){return this._results[Hr()]()}class Pl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Hr(),n=Pl.prototype;n[e]||(n[e]=Ol)}get changes(){return this._changes||(this._changes=new Tl)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=dn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=wa,this.reject=wa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(On(Gl,8))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();const $l=new cn("AppId"),Wl={provide:$l,useFactory:function(){return`${Ql()}${Ql()}${Ql()}`},deps:[]};function Ql(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Jl=new cn("Platform Initializer"),Xl=new cn("Platform ID"),tc=new cn("appBootstrapListener");let ec=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();const nc=new cn("LocaleId"),ic=new cn("DefaultCurrencyCode");class sc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const rc=function(t){return new xl(t)},oc=rc,ac=function(t){return Promise.resolve(rc(t))},lc=function(t){const e=rc(t),n=Li(ut(t).declarations).reduce((t,e)=>{const n=ct(e);return n&&t.push(new yl(n)),t},[]);return new sc(e,n)},cc=lc,uc=function(t){return Promise.resolve(lc(t))};let hc=(()=>{class t{constructor(){this.compileModuleSync=oc,this.compileModuleAsync=ac,this.compileModuleAndAllComponentsSync=cc,this.compileModuleAndAllComponentsAsync=uc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();const dc=(()=>Promise.resolve(0))();function pc(t){"undefined"==typeof Zone?dc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class fc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Tl(!1),this.onMicrotaskEmpty=new Tl(!1),this.onStable=new Tl(!1),this.onError=new Tl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=V.requestAnimationFrame,e=V.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(V,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,_c(t),t.isCheckStableRunning=!0,gc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),_c(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,r,o,a)=>{try{return yc(t),n.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),bc(t)}},onInvoke:(n,i,s,r,o,a,l)=>{try{return yc(t),n.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),bc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,_c(t),gc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!fc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(fc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,mc,wa,wa);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const mc={};function gc(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 _c(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function yc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bc(t){t._nesting--,gc(t)}class vc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Tl,this.onMicrotaskEmpty=new Tl,this.onStable=new Tl,this.onError=new Tl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let wc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{fc.assertNotInAngularZone(),pc(()=>{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())pc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!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(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(On(fc))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})(),xc=(()=>{class t{constructor(){this._applications=new Map,kc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return kc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();class Cc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Ec(t){kc=t}let kc=new Cc,Sc=!0,Ac=!1;function Tc(){return Ac=!0,Sc}function Oc(){if(Ac)throw new Error("Cannot enable prod mode after platform setup.");Sc=!1}let Pc;const Ic=new cn("AllowMultipleToken");class Rc{constructor(t,e){this.name=t,this.token=e}}function Dc(t,e,n=[]){const i=`Platform: ${e}`,s=new cn(i);return(e=[])=>{let r=Mc();if(!r||r.injector.get(Ic,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Cr,useValue:"platform"});!function(t){if(Pc&&!Pc.destroyed&&!Pc.injector.get(Ic,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Pc=t.get(Lc);const e=t.get(Jl,null);e&&e.forEach(t=>t())}(Fr.create({providers:t,name:i}))}return function(t){const e=Mc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Mc(){return Pc&&!Pc.destroyed?Pc:null}let Lc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new vc:("zone.js"===t?void 0:t)||new fc({enableLongStackTrace:Tc(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:fc,useValue:n}];return n.run(()=>{const s=Fr.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(s),o=r.injector.get(Di,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{o.handleError(t)}});r.onDestroy(()=>{Bc(this._modules,r),t.unsubscribe()})}),function(t,n,i){try{const e=i();return uo(e)?e.catch(e=>{throw n.runOutsideAngular(()=>t.handleError(e)),e}):e}catch(e){throw n.runOutsideAngular(()=>t.handleError(e)),e}}(o,n,()=>{const t=r.injector.get(Kl);return t.runInitializers(),t.donePromise.then(()=>(la(r.injector.get(nc,oa)||oa),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=Fc({},e);return function(t,e,n){const i=new xl(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Nc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${d(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(On(Fr))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();function Fc(t,e){return Array.isArray(e)?e.reduce(Fc,t):Object.assign(Object.assign({},t),e)}let Nc=(()=>{class t{constructor(t,e,n,i,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=s,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 u=new r.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),h=new r.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{fc.assertNotInAngularZone(),pc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{fc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=(0,o.T)(u,h.pipe(t=>(0,l.x)()(function(t,e){return function(e){let n;n="function"==typeof t?t:function(){return t};const i=Object.create(e,a.N);return i.source=e,i.subjectFactory=n,i}}(c)(t))))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof _a?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=function(t){return t.isBoundToModule}(n)?void 0:this._injector.get(rl),s=n.create(Fr.NULL,[],e||n.selector,i),r=s.location.nativeElement,o=s.injector.get(wc,null),a=o&&s.injector.get(xc);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Bc(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Bc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(tc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(On(fc),On(Fr),On(Di),On(va),On(Kl))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();function Bc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Uc{}class Zc{}const qc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let jc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||qc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(8255)(e).then(t=>t[i]).then(t=>Vc(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>Vc(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(On(hc),On(Zc,8))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();function Vc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Hc=function(t){return null},zc=Dc(null,"core",[{provide:Xl,useValue:"unknown"},{provide:Lc,deps:[Fr]},{provide:xc,deps:[]},{provide:ec,deps:[]}]),Yc=[{provide:Nc,useClass:Nc,deps:[fc,Fr,Di,va,Kl]},{provide:_l,deps:[fc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Kl,useClass:Kl,deps:[[new Fn,Gl]]},{provide:hc,useClass:hc,deps:[]},Wl,{provide:Va,useFactory:function(){return Ja},deps:[]},{provide:za,useFactory:function(){return Xa},deps:[]},{provide:nc,useFactory:function(t){return la(t=t||"undefined"!=typeof $localize&&$localize.locale||oa),t},deps:[[new Ln(nc),new Fn,new Nn]]},{provide:ic,useValue:"USD"}];let Gc=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(On(Nc))},t.\u0275mod=st({type:t}),t.\u0275inj=E({providers:Yc}),t})()},665:function(t,e,n){"use strict";n.d(e,{Zs:function(){return ct},sg:function(){return rt},u5:function(){return ht},Cf:function(){return h},JU:function(){return u},a5:function(){return O},JL:function(){return P},F:function(){return et},_Y:function(){return nt}});var i=n(3018),s=(n(8583),n(7574)),r=n(9796),o=n(8002),a=n(1555),l=n(4402);function c(t,e){return new s.y(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a{u||(u=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,(r===i||!u)&&(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}const u=new i.OlP("NgValueAccessor");const h=new i.OlP("NgValidators"),d=new i.OlP("NgAsyncValidators");function p(t){return null!=t}function f(t){const e=(0,i.QGY)(t)?(0,l.D)(t):t;return(0,i.CqO)(e),e}function m(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function g(t,e){return e.map(e=>e(t))}function _(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function y(t){return null!=t?function(t){if(!t)return null;const e=t.filter(p);return 0==e.length?null:function(t){return m(g(t,e))}}(_(t)):null}function b(t){return null!=t?function(t){if(!t)return null;const e=t.filter(p);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if((0,r.k)(e))return c(e,null);if((0,a.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&(0,r.k)(t[0])?t[0]:t,null).pipe((0,o.U)(t=>e(...t)))}return c(t,null)}(g(t,e).map(f)).pipe((0,o.U)(m))}}(_(t)):null}function v(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function w(t){return t._rawValidators}function x(t){return t._rawAsyncValidators}function C(t){return t?Array.isArray(t)?t:[t]:[]}function E(t,e){return Array.isArray(t)?t.includes(e):t===e}function k(t,e){const n=C(e);return C(t).forEach(t=>{E(n,t)||n.push(t)}),n}function S(t,e){return C(e).filter(e=>!E(t,e))}let A=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=y(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=b(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t}),t})(),T=(()=>{class t extends A{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();class O extends A{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let P=(()=>{class t extends class{constructor(t){this._cd=t}is(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(T,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[i.qOj]}),t})();function I(t,e){M(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&F(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&F(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function R(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),L(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function D(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function M(t,e){const n=w(t);null!==e.validator?t.setValidators(v(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const i=x(t);null!==e.asyncValidator?t.setAsyncValidators(v(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const s=()=>t.updateValueAndValidity();D(e._rawValidators,s),D(e._rawAsyncValidators,s)}function L(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=w(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.validator);s.length!==i.length&&(n=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const i=x(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.asyncValidator);s.length!==i.length&&(n=!0,t.setAsyncValidators(s))}}}const i=()=>{};return D(e._rawValidators,i),D(e._rawAsyncValidators,i),n}function F(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function N(t,e){M(t,e)}function B(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function U(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Z="VALID",q="INVALID",j="PENDING",V="DISABLED";function H(t){return(K(t)?t.validators:t)||null}function z(t){return Array.isArray(t)?y(t):t||null}function Y(t,e){return(K(e)?e.asyncValidators:t)||null}function G(t){return Array.isArray(t)?b(t):t||null}function K(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ${constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=z(this._rawValidators),this._composedAsyncValidatorFn=G(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Z}get invalid(){return this.status===q}get pending(){return this.status==j}get disabled(){return this.status===V}get enabled(){return this.status!==V}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=z(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=G(t)}addValidators(t){this.setValidators(k(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(k(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(S(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(S(t,this._rawAsyncValidators))}hasValidator(t){return E(this._rawValidators,t)}hasAsyncValidator(t){return E(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=j,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=V,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Z,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Z||this.status===j)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?V:Z}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=j,this._hasOwnPendingAsyncValidator=!0;const e=f(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let i=t;return e.forEach(t=>{i=i instanceof Q?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof J&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?V:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(j)?j:this._anyControlsHaveStatus(q)?q:Z}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){K(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class W extends ${constructor(t=null,e,n){super(H(e),Y(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){U(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){U(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Q extends ${constructor(t,e,n){super(H(e),Y(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof W?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class J extends ${constructor(t,e,n){super(H(e),Y(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof W?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const X={provide:T,useExisting:(0,i.Gpc)(()=>et)},tt=(()=>Promise.resolve(null))();let et=(()=>{class t extends T{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.vpe,this.form=new Q({},y(t),b(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){tt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),I(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){tt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),U(this._directives,t)})}addFormGroup(t){tt.then(()=>{const e=this._findContainer(t.path),n=new Q({});N(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){tt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){tt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,B(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h,10),i.Y36(d,10))},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([X]),i.qOj]}),t})(),nt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),it=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const st={provide:T,useExisting:(0,i.Gpc)(()=>rt)};let rt=(()=>{class t extends T{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(L(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return I(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){R(t.control||null,t,!1),U(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,B(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(R(e||null,t),n instanceof W&&(I(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);N(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return L(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){M(this.form,this),this._oldForm&&L(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h,10),i.Y36(d,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([st]),i.qOj,i.TTD]}),t})();const ot={provide:h,useExisting:(0,i.Gpc)(()=>lt),multi:!0},at={provide:h,useExisting:(0,i.Gpc)(()=>ct),multi:!0};let lt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?function(t){return function(t){return null==t||0===t.length}(t.value)?{required:!0}:null}(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[i._Bn([ot])]}),t})(),ct=(()=>{class t extends lt{validate(t){return this.required?function(t){return!0===t.value?null:{required:!0}}(t):null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},features:[i._Bn([at]),i.qOj]}),t})(),ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[it]]}),t})(),ht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[ut]}),t})()},1095:function(t,e,n){"use strict";n.d(e,{zs:function(){return p},lW:function(){return d},ot:function(){return f}});var i=n(2458),s=n(6237),r=n(3018),o=n(9238);const a=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",u=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],h=(0,i.pj)((0,i.Id)((0,i.Kr)(class{constructor(t){this._elementRef=t}})));let d=(()=>{class t extends h{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of u)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(o.tE),r.Y36(s.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&r.Gf(i.wG,5),2&t){let t;r.iGM(t=r.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(r.uIk("disabled",e.disabled||null),r.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1),r._UZ(3,"span",2)),2&t&&(r.xp6(2),r.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[c],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t extends d{constructor(t,e,n){super(e,t,n)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(o.tE),r.Y36(r.SBq),r.Y36(s.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._haltDisabledEvents(t)}),2&t&&(r.uIk("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),r.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[r.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1),r._UZ(3,"span",2)),2&t&&(r.xp6(2),r.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[c],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[i.si,i.BQ],i.BQ]}),t})()},2458:function(t,e,n){"use strict";n.d(e,{rD:function(){return k},K7:function(){return q},HF:function(){return N},BQ:function(){return b},ey:function(){return z},Ng:function(){return K},wG:function(){return D},si:function(){return M},CB:function(){return Y},jH:function(){return G},pj:function(){return w},Kr:function(){return x},Id:function(){return v},FD:function(){return E},sb:function(){return C}});var i=n(3018),s=n(9238),r=n(946);const o=new i.GfV("12.2.4");var a=n(8583),l=n(9490),c=n(9765),u=n(521),h=n(6237),d=n(6461);function p(t,e){if(1&t&&i._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=i.oxw();i.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function f(t,e){if(1&t&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.hij("(",t.group.label,")")}}const m=["*"],g=new i.GfV("12.2.4"),_=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let y,b=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checkIsEnabled(t){return!(!(0,i.X6Q)()||this._isTestEnv())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&g.full!==o.full&&console.warn("The Angular Material version ("+g.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.qm),i.LFG(_,8),i.LFG(a.K0))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[r.vT],r.vT]}),t})();function v(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}}}function w(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function x(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,l.Ig)(t)}}}function C(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?(0,l.su)(t):this.defaultTabIndex}}}function E(t){return class extends t{constructor(...t){super(...t),this.stateChanges=new c.xQ,this.errorState=!1}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}try{y="undefined"!=typeof Intl}catch($){y=!1}let k=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();class S{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const A={enterDuration:225,exitDuration:150},T=(0,u.i$)({passive:!0}),O=["mousedown","touchstart"],P=["mouseup","mouseleave","touchend","touchcancel"];class I{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=(0,l.fI)(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},A),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new S(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,!n.persistent&&(!t||!this._isPointerDown)&&u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},A),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=(0,l.fI)(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(O))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(P),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=(0,s.X6)(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,T)})})}_removeTriggerEvents(){this._triggerElement&&(O.forEach(t=>{this._triggerElement.removeEventListener(t,this,T)}),this._pointerUpEventsRegistered&&P.forEach(t=>{this._triggerElement.removeEventListener(t,this,T)}))}}const R=new i.OlP("mat-ripple-global-options");let D=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new I(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(u.t4),i.Y36(R,8),i.Y36(h.Qb,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[b,u.ud],b]}),t})(),L=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h.Qb,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[b]]}),t})();const N=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),B=v(class{});let U=0,Z=(()=>{class t extends B{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+U++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(N,8))},t.\u0275dir=i.lG2({type:t,inputs:{label:"label"},features:[i.qOj]}),t})();const q=new i.OlP("MatOptgroup");let j=0;class V{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let H=(()=>{class t{constructor(t,e,n,s){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+j++,this.onSelectionChange=new i.vpe,this._stateChanges=new c.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===d.K5||t.keyCode===d.L_)&&!(0,d.Vb)(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new V(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(void 0),i.Y36(Z))},t.\u0275dir=i.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),z=(()=>{class t extends H{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(N,8),i.Y36(q,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(i.Ikx("id",e.id),i.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:m,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,p,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,f,2,1,"span",2),i._UZ(4,"div",3)),2&t&&(i.Q6J("ngIf",e.multiple),i.xp6(3),i.Q6J("ngIf",e.group&&e.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.O5,D,L],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function Y(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;en+i?Math.max(0,t-i+e):n}let K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[M,a.ez,b,F]]}),t})()},2238:function(t,e,n){"use strict";n.d(e,{WI:function(){return A},uw:function(){return R},H8:function(){return N},ZT:function(){return M},xY:function(){return F},Is:function(){return U},so:function(){return k},uh:function(){return L}});var i=n(625),s=n(7636),r=n(3018),o=n(2458),a=n(946),l=n(8583),c=n(9765),u=n(1439),h=n(5917),d=n(5435),p=n(5257),f=n(9761),m=n(521),g=n(7238),_=n(6461),y=n(9238);function b(t,e){}class v{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const w={dialogContainer:(0,g.X$)("dialogContainer",[(0,g.SB)("void, exit",(0,g.oB)({opacity:0,transform:"scale(0.7)"})),(0,g.SB)("enter",(0,g.oB)({transform:"none"})),(0,g.eR)("* => enter",(0,g.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,g.oB)({transform:"none",opacity:1}))),(0,g.eR)("* => void, * => exit",(0,g.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,g.oB)({opacity:0})))])};let x=(()=>{class t extends s.en{constructor(t,e,n,i,s,o){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=s,this._focusMonitor=o,this._animationStateChanged=new r.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=(0,m.ht)(),n=this._elementRef.nativeElement;(!e||e===this._document.body||e===n||n.contains(e))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,m.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=(0,m.ht)();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(y.qV),r.Y36(r.sBO),r.Y36(l.K0,8),r.Y36(v),r.Y36(y.tE))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&r.Gf(s.Pl,7),2&t){let t;r.iGM(t=r.CRH())&&(e._portalOutlet=t.first)}},features:[r.qOj]}),t})(),C=(()=>{class t extends x{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&r.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(r.Ikx("id",e._id),r.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),r.d8E("@dialogContainer",e._state))},features:[r.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&r.YNc(0,b,0,0,"ng-template",0)},directives:[s.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[w.dialogContainer]}}),t})(),E=0;class k{constructor(t,e,n="mat-dialog-"+E++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new c.xQ,this._afterClosed=new c.xQ,this._beforeClosed=new c.xQ,this._state=0,e._id=n,e._animationStateChanged.pipe((0,d.h)(t=>"opened"===t.state),(0,p.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,d.h)(t=>"closed"===t.state),(0,p.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,d.h)(t=>t.keyCode===_.hY&&!this.disableClose&&!(0,_.Vb)(t))).subscribe(t=>{t.preventDefault(),S(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():S(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,d.h)(t=>"closing"===t.state),(0,p.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function S(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const A=new r.OlP("MatDialogData"),T=new r.OlP("mat-dialog-default-options"),O=new r.OlP("mat-dialog-scroll-strategy"),P={provide:O,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.block()}};let I=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new c.xQ,this._afterOpenedAtThisLevel=new c.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,u.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,f.O)(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new v)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),s=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=r.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:v,useValue:e}]}),i=new s.C5(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const o=new this._dialogRefConstructor(n,e,i.id);if(t instanceof r.Rgc)e.attachTemplatePortal(new s.UE(t,null,{$implicit:i.data,dialogRef:o}));else{const n=this._createInjector(i,o,e),r=e.attachComponentPortal(new s.C5(t,i.viewContainerRef,n));o.componentInstance=r.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return t.direction&&(!i||!i.get(a.Is,null,r.XFs.Optional))&&s.push({provide:a.Is,useValue:{value:t.direction,change:(0,h.of)()}}),r.zs3.create({parent:i||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i!==t&&"SCRIPT"!==i.nodeName&&"STYLE"!==i.nodeName&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(i.aV),r.Y36(r.zs3),r.Y36(void 0),r.Y36(void 0),r.Y36(i.Xj),r.Y36(void 0),r.Y36(r.DyG),r.Y36(r.DyG),r.Y36(r.OlP))},t.\u0275dir=r.lG2({type:t}),t})(),R=(()=>{class t extends I{constructor(t,e,n,i,s,r,o){super(t,e,i,r,o,s,k,C,A)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.aV),r.LFG(r.zs3),r.LFG(l.Ye,8),r.LFG(T,8),r.LFG(O),r.LFG(t,12),r.LFG(i.Xj))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),D=0,M=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=B(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){S(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(k,8),r.Y36(r.SBq),r.Y36(R))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._onButtonClick(t)}),2&t&&r.uIk("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[r.TTD]}),t})(),L=(()=>{class t{constructor(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+D++}ngOnInit(){this._dialogRef||(this._dialogRef=B(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(k,8),r.Y36(r.SBq),r.Y36(R))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&r.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function B(t,e){let n=t.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(t=>t.id===n.id):null}let U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[R,P],imports:[[i.U8,s.eL,o.BQ],o.BQ]}),t})()},8295:function(t,e,n){"use strict";n.d(e,{G_:function(){return G},o2:function(){return Y},KE:function(){return K},Eo:function(){return N},lN:function(){return $},hX:function(){return U},R9:function(){return V}});var i=n(8553),s=n(8583),r=n(3018),o=n(2458),a=n(9490),l=n(9765),c=n(6682),u=n(2759),h=n(9761),d=n(6782),p=n(5257),f=n(7238),m=n(6237),g=n(946),_=n(521);const y=["underline"],b=["connectionContainer"],v=["inputContainer"],w=["label"];function x(t,e){1&t&&(r.ynx(0),r.TgZ(1,"div",14),r._UZ(2,"div",15),r._UZ(3,"div",16),r._UZ(4,"div",17),r.qZA(),r.TgZ(5,"div",18),r._UZ(6,"div",15),r._UZ(7,"div",16),r._UZ(8,"div",17),r.qZA(),r.BQk())}function C(t,e){1&t&&(r.TgZ(0,"div",19),r.Hsn(1,1),r.qZA())}function E(t,e){if(1&t&&(r.ynx(0),r.Hsn(1,2),r.TgZ(2,"span"),r._uU(3),r.qZA(),r.BQk()),2&t){const t=r.oxw(2);r.xp6(3),r.Oqu(t._control.placeholder)}}function k(t,e){1&t&&r.Hsn(0,3,["*ngSwitchCase","true"])}function S(t,e){1&t&&(r.TgZ(0,"span",23),r._uU(1," *"),r.qZA())}function A(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"label",20,21),r.NdJ("cdkObserveContent",function(){return r.CHM(t),r.oxw().updateOutlineGap()}),r.YNc(2,E,4,1,"ng-container",12),r.YNc(3,k,1,0,"ng-content",12),r.YNc(4,S,2,0,"span",22),r.qZA()}if(2&t){const t=r.oxw();r.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),r.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),r.uIk("for",t._control.id)("aria-owns",t._control.id),r.xp6(2),r.Q6J("ngSwitchCase",!1),r.xp6(1),r.Q6J("ngSwitchCase",!0),r.xp6(1),r.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function T(t,e){1&t&&(r.TgZ(0,"div",24),r.Hsn(1,4),r.qZA())}function O(t,e){if(1&t&&(r.TgZ(0,"div",25,26),r._UZ(2,"span",27),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function P(t,e){if(1&t&&(r.TgZ(0,"div"),r.Hsn(1,5),r.qZA()),2&t){const t=r.oxw();r.Q6J("@transitionMessages",t._subscriptAnimationState)}}function I(t,e){if(1&t&&(r.TgZ(0,"div",31),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.Q6J("id",t._hintLabelId),r.xp6(1),r.Oqu(t.hintLabel)}}function R(t,e){if(1&t&&(r.TgZ(0,"div",28),r.YNc(1,I,2,2,"div",29),r.Hsn(2,6),r._UZ(3,"div",30),r.Hsn(4,7),r.qZA()),2&t){const t=r.oxw();r.Q6J("@transitionMessages",t._subscriptAnimationState),r.xp6(1),r.Q6J("ngIf",t.hintLabel)}}const D=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],M=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],L=new r.OlP("MatError"),F={transitionMessages:(0,f.X$)("transitionMessages",[(0,f.SB)("enter",(0,f.oB)({opacity:1,transform:"translateY(0%)"})),(0,f.eR)("void => enter",[(0,f.oB)({opacity:0,transform:"translateY(-5px)"}),(0,f.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t}),t})();const B=new r.OlP("MatHint");let U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-label"]]}),t})(),Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const q=new r.OlP("MatPrefix"),j=new r.OlP("MatSuffix");let V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","matSuffix",""]],features:[r._Bn([{provide:j,useExisting:t}])]}),t})(),H=0;const z=(0,o.pj)(class{constructor(t){this._elementRef=t}},"primary"),Y=new r.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),G=new r.OlP("MatFormField");let K=(()=>{class t extends z{constructor(t,e,n,i,s,r,o,a){super(t),this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+H++,this._labelId="mat-form-field-label-"+H++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=(0,a.Ig)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe((0,h.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,d.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,c.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,u.R)(this._label.nativeElement,"transitionend").pipe((0,p.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[s.ez,o.BQ,i.Q8],o.BQ]}),t})()},9983:function(t,e,n){"use strict";n.d(e,{Nt:function(){return y},c:function(){return b}});var i=n(521),s=n(3018),r=n(9490),o=n(9193),a=n(9765);n(2759),n(628),n(6782),n(8583);const l=(0,i.i$)({passive:!0});let c=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return o.E;const e=(0,r.fI)(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new a.xQ,s="cdk-text-field-autofilled",c=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",c,l),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",c,l)}}),i}stopMonitoring(t){const e=(0,r.fI)(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.t4),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.t4),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ud]]}),t})();var h=n(2458),d=n(8295),p=n(665);const f=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),m=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g=0;const _=(0,h.FD)(class{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}});let y=(()=>{class t extends _{constructor(t,e,n,s,r,o,l,c,u,h){super(o,s,r,n),this._elementRef=t,this._platform=e,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+g++,this.focused=!1,this.stateChanges=new a.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>(0,i.qK)().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=l||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&u.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;!e.value&&0===e.selectionStart&&0===e.selectionEnd&&(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&(0,i.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=(0,r.Ig)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){m.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(i.t4),s.Y36(p.a5,10),s.Y36(p.F,8),s.Y36(p.sg,8),s.Y36(h.rD),s.Y36(f,10),s.Y36(c),s.Y36(s.R0b),s.Y36(d.G_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),s.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s._Bn([{provide:d.Eo,useExisting:t}]),s.qOj,s.TTD]}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[h.rD],imports:[[u,d.lN,h.BQ],u,d.lN]}),t})()},7441:function(t,e,n){"use strict";n.d(e,{gD:function(){return H},LD:function(){return z}});var i=n(625),s=n(8583),r=n(3018),o=n(2458),a=n(8295),l=n(9243),c=n(9238),u=n(9490),h=n(8345),d=n(6461),p=n(9765),f=n(1439),m=n(6682),g=n(9761),_=n(3190),y=n(5257),b=n(5435),v=n(8002),w=n(7519),x=n(6782),C=n(7238),E=n(946),k=n(665);const S=["trigger"],A=["panel"];function T(t,e){if(1&t&&(r.TgZ(0,"span",8),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.placeholder)}}function O(t,e){if(1&t&&(r.TgZ(0,"span",12),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Oqu(t.triggerValue)}}function P(t,e){1&t&&r.Hsn(0,0,["*ngSwitchCase","true"])}function I(t,e){if(1&t&&(r.TgZ(0,"span",9),r.YNc(1,O,2,1,"span",10),r.YNc(2,P,1,0,"ng-content",11),r.qZA()),2&t){const t=r.oxw();r.Q6J("ngSwitch",!!t.customTrigger),r.xp6(2),r.Q6J("ngSwitchCase",!0)}}function R(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",13),r.TgZ(1,"div",14,15),r.NdJ("@transformPanel.done",function(e){return r.CHM(t),r.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return r.CHM(t),r.oxw()._handleKeydown(e)}),r.Hsn(3,1),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@transformPanelWrap",void 0),r.xp6(1),r.Gre("mat-select-panel ",t._getPanelTheme(),""),r.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),r.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),r.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const D=[[["mat-select-trigger"]],"*"],M=["mat-select-trigger","*"],L={transformPanelWrap:(0,C.X$)("transformPanelWrap",[(0,C.eR)("* => void",(0,C.IO)("@transformPanel",[(0,C.pV)()],{optional:!0}))]),transformPanel:(0,C.X$)("transformPanel",[(0,C.SB)("void",(0,C.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,C.SB)("showing",(0,C.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,C.SB)("showing-multiple",(0,C.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,C.eR)("void => *",(0,C.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,C.eR)("* => void",(0,C.jt)("100ms 25ms linear",(0,C.oB)({opacity:0})))])};let F=0;const N=new r.OlP("mat-select-scroll-strategy"),B=new r.OlP("MAT_SELECT_CONFIG"),U={provide:N,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class Z{constructor(t,e){this.source=t,this.value=e}}const q=(0,o.Kr)((0,o.sb)((0,o.Id)((0,o.FD)(class{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}})))),j=new r.OlP("MatSelectTrigger");let V=(()=>{class t extends q{constructor(t,e,n,i,s,o,a,l,c,u,h,d,w,x){var C,E,k;super(s,i,a,l,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=o,this._parentFormField=c,this._liveAnnouncer=w,this._defaultOptions=x,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+F++,this._triggerAriaLabelledBy=null,this._destroy=new p.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+F++,this._panelDoneAnimatingStream=new p.xQ,this._overlayPanelClass=(null===(C=this._defaultOptions)||void 0===C?void 0:C.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(k=null===(E=this._defaultOptions)||void 0===E?void 0:E.disableOptionCentering)&&void 0!==k&&k,this.ariaLabel="",this.optionSelectionChanges=(0,f.P)(()=>{const t=this.options;return t?t.changes.pipe((0,g.O)(t),(0,_.w)(()=>(0,m.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,y.q)(1),(0,_.w)(()=>this.optionSelectionChanges))}),this.openedChange=new r.vpe,this._openedStream=this.openedChange.pipe((0,b.h)(t=>t),(0,v.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,b.h)(t=>!t),(0,v.U)(()=>{})),this.selectionChange=new r.vpe,this.valueChange=new r.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==x?void 0:x.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=x.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=(0,u.Ig)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,u.Ig)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=(0,u.Ig)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=(0,u.su)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,w.x)(),(0,x.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,x.R)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe((0,g.O)(null),(0,x.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=e===d.JH||e===d.LH||e===d.oh||e===d.SV,i=e===d.K5||e===d.L_,s=this._keyManager;if(!s.isTyping()&&i&&!(0,d.Vb)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=n===d.JH||n===d.LH,s=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(s||n!==d.K5&&n!==d.L_||!e.activeItem||(0,d.Vb)(t))if(!s&&this._multiple&&n===d.A&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,y.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new c.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,x.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,x.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=(0,m.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,x.R)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,m.T)(...this.options.map(t=>t._stateChanges)).pipe((0,x.R)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(l.rL),r.Y36(r.sBO),r.Y36(r.R0b),r.Y36(o.rD),r.Y36(r.SBq),r.Y36(E.Is,8),r.Y36(k.F,8),r.Y36(k.sg,8),r.Y36(a.G_,8),r.Y36(k.a5,10),r.$8M("tabindex"),r.Y36(N),r.Y36(c.Kd),r.Y36(B,8))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&(r.Gf(S,5),r.Gf(A,5),r.Gf(i.pI,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.trigger=t.first),r.iGM(t=r.CRH())&&(e.panel=t.first),r.iGM(t=r.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[r.qOj,r.TTD]}),t})(),H=(()=>{class t extends V{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,x.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,y.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=(0,o.CB)(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=0===t&&1===e?0:(0,o.jH)((t+e)*n,n,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new Z(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),o=t.right+s-e.width+(n?0:i);r>0?s+=r+8:o>0&&(s-=o+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(256/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>i?this._adjustPanelDown(r,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=(0,o.CB)(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(r.Suo(n,j,5),r.Suo(n,o.ey,5),r.Suo(n,o.K7,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.customTrigger=t.first),r.iGM(t=r.CRH())&&(e.options=t),r.iGM(t=r.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&r.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(r.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),r.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[r._Bn([{provide:a.Eo,useExisting:t},{provide:o.HF,useExisting:t}]),r.qOj],ngContentSelectors:M,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(r.F$t(D),r.TgZ(0,"div",0,1),r.NdJ("click",function(){return e.toggle()}),r.TgZ(3,"div",2),r.YNc(4,T,2,1,"span",3),r.YNc(5,I,3,2,"span",4),r.qZA(),r.TgZ(6,"div",5),r._UZ(7,"div",6),r.qZA(),r.qZA(),r.YNc(8,R,4,14,"ng-template",7),r.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=r.MAs(1);r.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),r.xp6(3),r.Q6J("ngSwitch",e.empty),r.uIk("id",e._valueId),r.xp6(1),r.Q6J("ngSwitchCase",!0),r.xp6(1),r.Q6J("ngSwitchCase",!1),r.xp6(3),r.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[i.xu,s.RF,s.n9,i.pI,s.ED,s.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[L.transformPanelWrap,L.transformPanel]},changeDetection:0}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[U],imports:[[s.ez,i.U8,o.Ng,o.BQ],l.ZD,a.lN,o.Ng,o.BQ]}),t})()},6237:function(t,e,n){"use strict";n.d(e,{Qb:function(){return De},PW:function(){return Ne}});var i=n(3018),s=n(9075),r=n(7238);function o(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function l(t){switch(t.length){case 0:return new r.ZN;case 1:return t[0];default:return new r.ZE(t)}}function c(t,e,n,i,s={},o={}){const a=[],l=[];let c=-1,u=null;if(i.forEach(t=>{const n=t.offset,i=n==c,h=i&&u||{};Object.keys(t).forEach(n=>{let i=n,l=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),l){case r.k1:l=s[n];break;case r.l3:l=o[n];break;default:l=e.normalizeStyleValue(n,i,l,a)}h[i]=l}),i||l.push(h),u=h,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function u(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&h(n,"start",t)));break;case"done":t.onDone(()=>i(n&&h(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&h(n,"destroy",t)))}}function h(t,e,n){const i=n.totalTime,s=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function d(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function p(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function f(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let m=(t,e)=>!1,g=(t,e)=>!1,_=(t,e,n)=>[];const y=a();(y||"undefined"!=typeof Element)&&(m=o()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),g=(()=>{if(y||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):g}})(),_=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let S=(()=>{class t{validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,o=[],a){return new r.ZN(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class A{}A.NOOP=new S;const T="ng-enter",O="ng-leave",P="ng-trigger",I=".ng-trigger",R="ng-animating",D=".ng-animating";function M(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:L(parseFloat(e[1]),e[2])}function L(t,e){switch(e){case"s":return 1e3*t;default:return t}}function F(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=L(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=L(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function N(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function B(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else N(t,n);return n}function U(t,e,n){return n?e+":"+n+";":""}function Z(t){let e="";for(let n=0;n{const s=$(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),a()&&Z(t))}function j(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=$(e);t.style[n]=""}),a()&&Z(t))}function V(t){return Array.isArray(t)?1==t.length?t[0]:(0,r.vP)(t):t}const H=new RegExp("{{\\s*(.+?)\\s*}}","g");function z(t){let e=[];if("string"==typeof t){let n;for(;n=H.exec(t);)e.push(n[1]);H.lastIndex=0}return e}function Y(t,e,n){const i=t.toString(),s=i.replace(H,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),s=""),s.toString()});return s==i?t:s}function G(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const K=/-+([a-z0-9])/g;function $(t){return t.replace(K,(...t)=>t[1].toUpperCase())}function W(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Q(t,e){return 0===t||0===e}function J(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(st(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&e.push(st(o,s))}(t,n,e)):n.push(t),n}const nt=new Set(["true","1"]),it=new Set(["false","0"]);function st(t,e){const n=nt.has(t)||it.has(t),i=nt.has(e)||it.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?nt.has(t):it.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?nt.has(e):it.has(e)),o&&a}}const rt=new RegExp("s*:selfs*,?","g");function ot(t,e,n){return new at(t).build(e,n)}class at{constructor(t){this._driver=t}build(t,e){const n=new lt(e);return this._resetContextStyleTimingState(n),X(this,V(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(ct(t)){const e=t;Object.keys(e).forEach(t=>{z(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=G(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=X(this,V(t.animation),e);return{type:1,matchers:et(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:ut(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>X(this,t,e)),options:ut(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=X(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:ut(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return ht(F(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ht(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||F(i,e),ht(n.duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let i,s=t.styles?t.styles:(0,r.oB)({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};n.easing&&(t.easing=n.easing),s=(0,r.oB)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(s,e);a.isEmptyStep=o,i=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==r.l3?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(ct(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=z(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c0&&i{const r=u>0?i==h?1:u*i:s[i],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:X(this,V(t.animation),e),options:ut(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ut(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ut(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(rt,"")),[t=t.replace(/@\*/g,I).replace(/@\w+/g,t=>I+"-"+t.substr(1)).replace(/:animating/g,D),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,p(e.collectedStyles,e.currentQuerySelector,{});const o=X(this,V(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:ut(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:F(t.timings,e.errors,!0);return{type:12,animation:X(this,V(t.animation),e),timings:n,options:null}}}class lt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ct(t){return!Array.isArray(t)&&"object"==typeof t}function ut(t){return t?(t=N(t)).params&&(t.params=function(t){return t?N(t):null}(t.params)):t={},t}function ht(t,e,n){return{duration:t,delay:e,easing:n}}function dt(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class pt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ft=new RegExp(":enter","g"),mt=new RegExp(":leave","g");function gt(t,e,n,i,s,r={},o={},a,l,c=[]){return(new _t).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class _t{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new pt;const u=new bt(t,e,l,i,s,c,[]);u.options=a,u.currentTimeline.setStyles([r],null,u.errors,a),X(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[dt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?M(n.duration):null,r=null!=n.delay?M(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),X(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=yt);const t=M(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>X(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?M(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),X(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return F(e.params?Y(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?M(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=yt);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),X(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;X(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const yt={};class bt{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new vt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=M(n.duration)),null!=n.delay&&(i.delay=M(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{(!e||!t.hasOwnProperty(n))&&(t[n]=Y(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new bt(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=yt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new wt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(ft,"."+this._enterClassName)).replace(mt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return!s&&0==o.length&&r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class vt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new vt(this._driver,t,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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||r.l3,this._currentKeyframe[t]=r.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},o=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=r.l3})):B(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=Y(o[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:r.l3),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,o)=>{const a=B(s,!0);Object.keys(a).forEach(n=>{const i=a[n];i==r.k1?t.add(n):i==r.l3&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const s=t.size?G(t.values()):[],o=e.size?G(e.values()):[];if(n){const t=i[0],e=N(t);t.offset=0,e.offset=1,i=[t,e]}return dt(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class wt extends vt{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=B(t[0],!1);a.offset=0,s.push(a);const l=B(t[0],!1);l.offset=xt(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=B(t[i],!1);o.offset=xt((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return dt(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function xt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Ct{}class Et extends Ct{normalizePropertyName(t,e){return $(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(kt[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const kt=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function St(t,e,n,i,s,r,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const At={};class Tt{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||At,d=this.buildStyles(n,o&&o.params||At,u),f=a&&a.params||At,m=this.buildStyles(i,f,u),g=new Set,_=new Map,y=new Map,b="void"===i,v={params:Object.assign(Object.assign({},h),f)},w=c?[]:gt(t,e,this.ast.animation,s,r,d,m,v,l,u);let x=0;if(w.forEach(t=>{x=Math.max(t.duration+t.delay,x)}),u.length)return St(e,this._triggerName,n,i,b,d,m,[],[],_,y,x,u);w.forEach(t=>{const n=t.element,i=p(_,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=p(y,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&g.add(n)});const C=G(g.values());return St(e,this._triggerName,n,i,b,d,m,w,C,_,y,x)}}class Ot{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},i=N(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Y(r,i,e));const o=this.normalizer.normalizePropertyName(t,e);r=this.normalizer.normalizeStyleValue(t,o,r,e),n[o]=r})}}),n}}class Pt{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Ot(t.style,t.options&&t.options.params||{},n)}),It(this.states,"true","1"),It(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Tt(t,e,this.states))}),this.fallbackTransition=function(t,e,n){return new Tt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},e)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function It(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Rt=new pt;class Dt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=ot(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=c(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let o;const a=new Map;if(s?(o=gt(this._driver,e,s,T,O,{},{},n,Rt,i),o.forEach(t=>{const e=p(a,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);a.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,r.l3)})});const c=l(o.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const s=d(e,"","","");return u(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Mt="ng-animate-queued",Lt="ng-animate-disabled",Ft=".ng-animate-disabled",Nt=[],Bt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ut={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zt="__ng_removed";class qt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=N(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const jt="void",Vt=new qt(jt);class Ht{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Jt(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=p(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=p(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Jt(t,P),Jt(t,P+"-"+e),a[e]=Vt),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new Yt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Jt(t,P),Jt(t,P+"-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new qt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Vt),l.value!==jt&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s{j(t,n),q(t,i)})}return}const c=p(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:r,isFallbackTransition:h}),h||(Jt(t,Mt),r.onStart(()=>{Xt(t,Mt)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,I,!0);n.forEach(t=>{if(t[Zt])return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,jt,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&l(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const s=e.name;if(i.has(s))return;i.add(s);const r=this._triggers[s].fallbackTransition,o=n[s]||Vt,a=new qt(jt),l=new Yt(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t[Zt];(!i||i===Bt)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Jt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=d(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,u(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class zt{constructor(t,e,n){this.bodyNode=t,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Ht(t,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[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Jt(t,Lt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Xt(t,Lt))}removeNode(t,e,n,i){if(Gt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e[Zt]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Gt(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,I,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,D,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return l(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Zt];if(e&&e.setForRemoval){if(t[Zt]=Bt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Ft)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Ft,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?l(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new pt,i=[],s=new Map,o=[],a=new Map,c=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n=T+_++;g.set(e,n),t.forEach(t=>Jt(t,n))});const y=[],b=new Set,v=new Set;for(let r=0;rb.add(t)):v.add(t))}const w=new Map,x=Wt(f,Array.from(b));x.forEach((t,e)=>{const n=O+_++;w.set(e,n),t.forEach(t=>Jt(t,n))}),t.push(()=>{m.forEach((t,e)=>{const n=g.get(e);t.forEach(t=>Xt(t,n))}),x.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Xt(t,n))}),y.forEach(t=>{this.processLeaveNode(t)})});const C=[],E=[];for(let r=this._namespaceList.length-1;r>=0;r--)this._namespaceList[r].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(C.push(e),this.collectedEnterElements.length){const t=s[Zt];if(t&&t.setForMove)return void e.destroy()}const r=!d||!this.driver.containsElement(d,s),l=w.get(s),h=g.get(s),f=this._buildInstruction(t,n,h,l,r);if(f.errors&&f.errors.length)E.push(f);else{if(r)return e.onStart(()=>j(s,f.fromStyles)),e.onDestroy(()=>q(s,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>j(s,f.fromStyles)),e.onDestroy(()=>q(s,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),o.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>p(a,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(E.length){const t=[];E.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),C.forEach(t=>t.destroy()),this.reportError(t)}const k=new Map,S=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,k))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{p(k,e,[]).push(t),t.destroy()})});const A=y.filter(t=>ne(t,c,u)),P=new Map;$t(P,this.driver,v,u,r.l3).forEach(t=>{ne(t,c,u)&&A.push(t)});const I=new Map;m.forEach((t,e)=>{$t(I,this.driver,new Set(t),c,r.k1)}),A.forEach(t=>{const e=P.get(t),n=I.get(t);P.set(t,Object.assign(Object.assign({},e),n))});const R=[],M=[],L={};o.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(h.has(e))return r.onDestroy(()=>q(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=L;if(S.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=S.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>S.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,k,s,I,P);if(r.setRealPlayer(n),t===L)R.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=l(e)),i.push(r)}}else j(e,o.fromStyles),r.onDestroy(()=>q(e,o.toStyles)),M.push(r),h.has(e)&&i.push(r)}),M.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=l(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let r=0;r!t.destroyed);i.length?te(this,t,i):this.processLeaveNode(t)}return y.length=0,R.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),R}elementContainsData(t,e){let n=!1;const i=e[Zt];return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==jt;e.forEach(e=>{e.queued||!t&&e.triggerName!=i||r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=p(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}j(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,o){const a=e.triggerName,u=e.element,h=[],d=new Set,f=new Set,m=e.timelines.map(e=>{const l=e.element;d.add(l);const p=l[Zt];if(p&&p.removedBeforeQueried)return new r.ZN(e.duration,e.delay);const m=l!==u,g=function(t){const e=[];return ee(t,e),e}((n.get(l)||Nt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===l),_=s.get(l),y=o.get(l),b=c(0,this._normalizer,0,e.keyframes,_,y),v=this._buildPlayer(e,b,g);if(e.subTimeline&&i&&f.add(l),m){const e=new Yt(t,a,l);e.setRealPlayer(v),h.push(e)}return v});h.forEach(t=>{p(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),d.forEach(t=>Jt(t,R));const g=l(m);return g.onDestroy(()=>{d.forEach(t=>Xt(t,R)),q(u,e.toStyles)}),f.forEach(t=>{p(i,t,[]).push(g)}),g}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new r.ZN(t.duration,t.delay)}}class Yt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new r.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>u(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){p(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Gt(t){return t&&1===t.nodeType}function Kt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function $t(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Kt(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);(!n||0==n.length)&&(i[Zt]=Ut,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Kt(t,r[a++])),o}function Wt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}const Qt="$$classes";function Jt(t,e){if(t.classList)t.classList.add(e);else{let n=t[Qt];n||(n=t[Qt]={}),n[e]=!0}}function Xt(t,e){if(t.classList)t.classList.remove(e);else{let n=t[Qt];n&&delete n[e]}}function te(t,e,n){l(n).onDone(()=>t.processLeaveNode(e))}function ee(t,e){for(let n=0;ns.add(t)):e.set(t,i),n.delete(t),!0}class ie{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new zt(t,e,n),this._timelineEngine=new Dt(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=ot(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e,n){return new Pt(t,e,n)}(i,e,this._normalizer),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=f(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=f(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function se(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=oe(e[0]),e.length>1&&(i=oe(e[e.length-1]))):e&&(n=oe(e)),n||i?new re(t,n,i):null}class re{constructor(t,e,n){this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;let i=re.initialStylesByElement.get(t);i||re.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(re.initialStylesByElement.delete(this._element),this._startStyles&&(j(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}function oe(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){(function(t,e){const n=ge(t,"").trim();let i=0;n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),fe(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=ge(t,"").split(","),i=pe(n,e);i>=0&&(n.splice(i,1),me(t,"",n.join(",")))}(this._element,this._name))}}function he(t,e,n){me(t,"PlayState",n,de(t,e))}function de(t,e){const n=ge(t,"");return n.indexOf(",")>0?pe(n.split(","),e):pe([n],e)}function pe(t,e){for(let n=0;n=0)return n;return-1}function fe(t,e,n){n?t.removeEventListener(ce,e):t.addEventListener(ce,e)}function me(t,e,n,i){const s=le+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function ge(t,e){return t.style[le+e]||""}class _e{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ue(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:tt(this.element,n))})}this.currentSnapshot=t}}class ye extends r.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=k(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class be{constructor(){this._count=0}validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>k(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=`${s}}\n`}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){const a=r.filter(t=>t instanceof _e),l={};Q(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"==n||"easing"==n||(e[n]=t[n])})}),e}(e=J(t,e,l));if(0==n)return new ye(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(h);const d=se(t,e),p=new _e(t,e,u,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class ve{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,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(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:tt(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class we{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(xe().toString()),this._cssKeyframesDriver=new be}validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof ve);Q(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=se(t,e=J(t,e=e.map(t=>B(t,!1)),l));return new ve(t,e,a,u)}}function xe(){return o()&&Element.prototype.animate||{}}var Ce=n(8583);let Ee=(()=>{class t extends r._j{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?(0,r.vP)(t):t;return Ae(this._renderer,null,e,"register",[n]),new ke(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(Ce.K0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class ke extends r.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Se(this._id,t,e||{},this._renderer)}}class Se{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Ae(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Ae(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}const Te="@.disabled";let Oe=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Pe("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new Ie(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(ie),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Pe{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&e==Te?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Ie extends Pe{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==Te?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Re=(()=>{class t extends ie{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ce.K0),i.LFG(A),i.LFG(Ct))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const De=new i.OlP("AnimationModuleType"),Me=[{provide:r._j,useClass:Ee},{provide:Ct,useFactory:function(){return new Et}},{provide:ie,useClass:Re},{provide:i.FYo,useFactory:function(t,e,n){return new Oe(t,e,n)},deps:[s.se,ie,i.R0b]}],Le=[{provide:A,useFactory:function(){return"function"==typeof xe()?new we:new be}},{provide:De,useValue:"BrowserAnimations"},...Me],Fe=[{provide:A,useClass:S},{provide:De,useValue:"NoopAnimations"},...Me];let Ne=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Fe:Le}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:Le,imports:[s.b2]}),t})()},9075:function(t,e,n){"use strict";n.d(e,{b2:function(){return N},H7:function(){return D},q6:function(){return L},se:function(){return C}});var i=n(8583),s=n(3018);class r extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class o extends r{static makeCurrent(){(0,i.HT)(new o)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(l=l||document.querySelector("base"),l?l.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,i.Mx)(document.cookie,t)}}let a,l=null;const c=new s.OlP("TRANSITION_ID"),u=[{provide:s.ip1,useFactory:function(t,e,n){return()=>{n.get(s.CZH).donePromise.then(()=>{const n=(0,i.q)(),s=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let t=0;t{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?(0,i.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new s.OlP("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t extends g{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(y),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(y))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function y(t){(0,i.q)().remove(t)}const b={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},v=/%COMP%/g;function w(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let C=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new E(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new k(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case s.ifc.ShadowDom:return new S(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=w(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f),s.LFG(_),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class E{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(b[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=b[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=b[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,n,i&s.JOm.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,x(n)):this.eventManager.addEventListener(t,e,x(n))}}class k extends E{constructor(t,e,n,i){super(t),this.component=n;const s=w(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(v,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(v,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class S extends E{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=w(i.id,i.styles,[]);for(let r=0;r{class t extends m{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const T=["alt","control","meta","shift"],O={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},P={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"},I={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let R=(()=>{class t extends m{constructor(t){super(t)}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(()=>(0,i.q)().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(T.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&P.hasOwnProperty(e)&&(e=P[e]))}return O[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),T.forEach(i=>{i!=n&&I[i](t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(M)},token:t,providedIn:"root"}),t})(),M=(()=>{class t extends D{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return function(t){return new M(t.get(i.K0))}((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const L=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:i.bD},{provide:s.g9A,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),F=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:p,useClass:A,multi:!0,deps:[i.K0,s.R0b,s.Lbi]},{provide:p,useClass:R,multi:!0,deps:[i.K0]},[],{provide:C,useClass:C,deps:[f,_,s.AFp]},{provide:s.FYo,useExisting:C},{provide:g,useExisting:_},{provide:_,useClass:_,deps:[i.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:f,useClass:f,deps:[p,s.R0b]},{provide:i.JF,useClass:d,deps:[]},[]];let N=(()=>{class t{constructor(t){if(t)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:s.AFp,useValue:e.appId},{provide:c,useExisting:s.AFp},u]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:F,imports:[i.ez,s.hGG]}),t})();"undefined"!=typeof window&&window},8741:function(t,e,n){"use strict";n.d(e,{gz:function(){return se},F0:function(){return An},rH:function(){return On},yS:function(){return Pn},Bz:function(){return jn},lC:function(){return Rn}});var i=n(8583),s=n(3018);const r=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var o=n(4402),a=n(5917),l=n(6215),c=n(739),u=n(7574),h=n(8071),d=n(1439),p=n(9193),f=n(2441),m=n(9765),g=n(7393);function _(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new y(t,e,n))}}class y{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new b(t,this.accumulator,this.seed,this.hasSeed))}}class b extends g.L{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}var v=n(5345);function w(t){return function(e){const n=new x(t),i=e.lift(n);return n.caught=i}}class x{constructor(t){this.selector=t}call(t,e){return e.subscribe(new C(t,this.selector,this.caught))}}class C extends v.Ds{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new v.IY(this);this.add(i);const s=(0,v.ft)(n,i);s!==i&&this.add(s)}}}var E=n(5435),k=n(7108);function S(t){return function(e){return 0===t?(0,p.c)():e.lift(new A(t))}}class A{constructor(t){if(this.total=t,this.total<0)throw new k.W}call(t,e){return e.subscribe(new T(t,this.total))}}class T extends g.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;se.lift(new P(t))}class P{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new I(t,this.errorFactory))}}class I extends g.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function R(){return new r}function D(t=null){return e=>e.lift(new M(t))}class M{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new L(t,this.defaultValue))}}class L extends g.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var F=n(4487),N=n(5257);function B(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,E.h)((e,n)=>t(e,n,i)):F.y,(0,N.q)(1),n?D(e):O(()=>new r))}var U=n(5319);class Z{constructor(t){this.callback=t}call(t,e){return e.subscribe(new q(t,this.callback))}}class q extends g.L{constructor(t,e){super(t),this.add(new U.w(e))}}var j=n(8002),V=n(3190),H=n(9761),z=n(4612),Y=n(9773),G=n(3342),K=n(1307),$=n(3282);class W{constructor(t,e){this.id=t,this.url=e}}class Q extends W{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class J extends W{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class X extends W{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class tt extends W{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class et extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nt extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class it extends W{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class st extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rt extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ot{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class at{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class lt{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ct{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ut{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ht{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dt{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const pt="primary";class ft{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function mt(t){return new ft(t)}const gt="ngNavigationCancelingError";function _t(t){const e=Error("NavigationCancelingError: "+t);return e[gt]=!0,e}function yt(t,e,n){const i=n.path.split("/");if(i.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function wt(t){return Array.prototype.concat.apply([],t)}function xt(t){return t.length>0?t[t.length-1]:null}function Ct(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Et(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,a.of)(t)}const kt={exact:function t(e,n,i){if(!Mt(e.segments,n.segments)||!Pt(e.segments,n.segments,i)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const s in n.children)if(!e.children[s]||!t(e.children[s],n.children[s],i))return!1;return!0},subset:Tt},St={exact:function(t,e){return bt(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>vt(t[n],e[n]))},ignored:()=>!0};function At(t,e,n){return kt[n.paths](t.root,e.root,n.matrixParams)&&St[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function Tt(t,e,n){return Ot(t,e,e.segments,n)}function Ot(t,e,n,i){if(t.segments.length>n.length){const s=t.segments.slice(0,n.length);return!(!Mt(s,n)||e.hasChildren()||!Pt(s,n,i))}if(t.segments.length===n.length){if(!Mt(t.segments,n)||!Pt(t.segments,n,i))return!1;for(const n in e.children)if(!t.children[n]||!Tt(t.children[n],e.children[n],i))return!1;return!0}{const s=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!(Mt(t.segments,s)&&Pt(t.segments,s,i)&&t.children[pt])&&Ot(t.children[pt],e,r,i)}}function Pt(t,e,n){return e.every((e,i)=>St[n](t[i].parameters,e.parameters))}class It{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mt(this.queryParams)),this._queryParamMap}toString(){return Nt.serialize(this)}}class Rt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ct(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bt(this)}}class Dt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=mt(this.parameters)),this._parameterMap}toString(){return zt(this)}}function Mt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Lt{}class Ft{parse(t){const e=new Wt(t);return new It(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${Ut(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${qt(e)}=${qt(t)}`).join("&"):`${qt(e)}=${qt(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Nt=new Ft;function Bt(t){return t.segments.map(t=>zt(t)).join("/")}function Ut(t,e){if(!t.hasChildren())return Bt(t);if(e){const e=t.children[pt]?Ut(t.children[pt],!1):"",n=[];return Ct(t.children,(t,e)=>{e!==pt&&n.push(`${e}:${Ut(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return Ct(t.children,(t,i)=>{i===pt&&(n=n.concat(e(t,i)))}),Ct(t.children,(t,i)=>{i!==pt&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===pt?[Ut(t.children[pt],!1)]:[`${n}:${Ut(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[pt]?`${Bt(t)}/${e[0]}`:`${Bt(t)}/(${e.join("//")})`}}function Zt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qt(t){return Zt(t).replace(/%3B/gi,";")}function jt(t){return Zt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vt(t){return decodeURIComponent(t)}function Ht(t){return Vt(t.replace(/\+/g,"%20"))}function zt(t){return`${jt(t.path)}${function(t){return Object.keys(t).map(e=>`;${jt(e)}=${jt(t[e])}`).join("")}(t.parameters)}`}const Yt=/^[^\/()?;=#]+/;function Gt(t){const e=t.match(Yt);return e?e[0]:""}const Kt=/^[^=?&#]+/,$t=/^[^?&#]+/;class Wt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Rt([],{}):new Rt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[pt]=new Rt(t,e)),n}parseSegment(){const t=Gt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Dt(Vt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Gt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Gt(this.remaining);t&&(n=t,this.capture(n))}t[Vt(e)]=Vt(n)}parseQueryParam(t){const e=function(t){const e=t.match(Kt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match($t);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Ht(e),s=Ht(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Gt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=pt);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r[pt]:new Rt([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Qt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Jt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Jt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Xt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Xt(t,this._root).map(t=>t.value)}}function Jt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Jt(t,n);if(e)return e}return null}function Xt(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Xt(t,n);if(i.length)return i.unshift(e),i}return[]}class te{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function ee(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class ne extends Qt{constructor(t,e){super(t),this.snapshot=e,le(this,t)}toString(){return this.snapshot.toString()}}function ie(t,e){const n=function(t,e){const n=new oe([],{},{},"",{},pt,e,null,t.root,-1,{});return new ae("",new te(n,[]))}(t,e),i=new l.X([new Dt("",{})]),s=new l.X({}),r=new l.X({}),o=new l.X({}),a=new l.X(""),c=new se(i,s,o,a,r,pt,e,n.root);return c.snapshot=n.root,new ne(new te(c,[]),n)}class se{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}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((0,j.U)(t=>mt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,j.U)(t=>mt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function re(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class oe{constructor(t,e,n,i,s,r,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}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=mt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ae extends Qt{constructor(t,e){super(e),this.url=t,le(this,e)}toString(){return ce(this._root)}}function le(t,e){e.value._routerState=t,e.children.forEach(e=>le(t,e))}function ce(t){const e=t.children.length>0?` { ${t.children.map(ce).join(", ")} } `:"";return`${t.value}${e}`}function ue(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,bt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),bt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nbt(t.parameters,e[n].parameters))}(t.url,e.url)&&!(!t.parent!=!e.parent)&&(!t.parent||he(t.parent,e.parent))}function de(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return de(t,e,i);return de(t,e)})}(t,e,n);return new te(i,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return pe(e,t),t}}const n=function(t){return new se(new l.X(t.url),new l.X(t.params),new l.X(t.queryParams),new l.X(t.fragment),new l.X(t.data),t.outlet,t.component,t)}(e.value),i=e.children.map(e=>de(t,e));return new te(n,i)}}function pe(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new It(n.root===t?e:_e(n.root,t,e),r,s)}function _e(t,e,n){const i={};return Ct(t.children,(t,s)=>{i[s]=t===e?n:_e(t,e,n)}),new Rt(t.segments,i)}class ye{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&fe(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(me);if(i&&i!==xt(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class be{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function ve(t,e,n){if(t||(t=new Rt([],{})),0===t.segments.length&&t.hasChildren())return we(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return r;const e=t.segments[s],o=n[i];if(me(o))break;const a=`${o}`,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!ke(a,l,e))return r;i+=2}else{if(!ke(a,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(s[i]=ve(t.children[i],e,n))}),Ct(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new Rt(t.segments,s)}}function xe(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=xe(new Rt([],{}),0,t))}),e}function Ee(t){const e={};return Ct(t,(t,n)=>e[n]=`${t}`),e}function ke(t,e,n){return t==n.path&&bt(e,n.parameters)}class Se{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),ue(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=ee(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),Ct(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,s=ee(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=ee(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new ht(t.value.snapshot))}),t.children.length&&this.forwardEvent(new ct(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(ue(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Ae(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Ae(t){ue(t.value),t.children.forEach(Ae)}class Te{constructor(t,e){this.routes=t,this.module=e}}function Oe(t){return"function"==typeof t}function Pe(t){return t instanceof It}const Ie=Symbol("INITIAL_VALUE");function Re(){return(0,V.w)(t=>(0,c.aj)(t.map(t=>t.pipe((0,N.q)(1),(0,H.O)(Ie)))).pipe(_((t,e)=>{let n=!1;return e.reduce((t,i,s)=>t!==Ie?t:(i===Ie&&(n=!0),n||!1!==i&&s!==e.length-1&&!Pe(i)?t:i),t)},Ie),(0,E.h)(t=>t!==Ie),(0,j.U)(t=>Pe(t)?t:!0===t),(0,N.q)(1)))}let De=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[Rn]},encapsulation:2}),t})();function Me(t,e=""){for(let n=0;nBe(t)===e);return n.push(...t.filter(t=>Be(t)!==e)),n}const Ze={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function qe(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Ze):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||yt)(n,t,e);if(!s)return Object.assign({},Ze);const r={};Ct(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function je(t,e,n,i,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Ve(t,e,n)&&Be(n)!==pt)}(t,n,i)){const s=new Rt(e,function(t,e,n,i){const s={};s[pt]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&Be(r)!==pt){const n=new Rt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Be(r)]=n}return s}(t,e,i,new Rt(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Ve(t,e,n))}(t,n,i)){const r=new Rt(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(Ve(t,n,a)&&!s[Be(a)]){const n=new Rt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Be(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Rt(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Ve(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function He(t,e,n,i){return!!(Be(t)===i||i!==pt&&Ve(e,n,t))&&("**"===t.path||qe(e,t,n).matched)}function ze(t,e,n){return 0===e.length&&!t.children[n]}class Ye{constructor(t){this.segmentGroup=t||null}}class Ge{constructor(t){this.urlTree=t}}function Ke(t){return new u.y(e=>e.error(new Ye(t)))}function $e(t){return new u.y(e=>e.error(new Ge(t)))}function We(t){return new u.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Qe{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=je(this.urlTree.root,[],[],this.config).segmentGroup,e=new Rt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,pt).pipe((0,j.U)(t=>this.createUrlTree(Je(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(w(t=>{if(t instanceof Ge)return this.allowRedirects=!1,this.match(t.urlTree);throw t instanceof Ye?this.noMatchError(t):t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,pt).pipe((0,j.U)(e=>this.createUrlTree(Je(e),t.queryParams,t.fragment))).pipe(w(t=>{throw t instanceof Ye?this.noMatchError(t):t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Rt([],{[pt]:t}):t;return new It(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,j.U)(t=>new Rt([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const s of Object.keys(n.children))"primary"===s?i.unshift(s):i.push(s);return(0,o.D)(i).pipe((0,z.b)(i=>{const s=n.children[i],r=Ue(e,i);return this.expandSegmentGroup(t,r,s,i).pipe((0,j.U)(t=>({segment:t,outlet:i})))}),_((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,E.h)((e,n)=>t(e,n,i)):F.y,S(1),n?D(e):O(()=>new r))}())}expandSegment(t,e,n,i,s,l){return(0,o.D)(n).pipe((0,z.b)(r=>this.expandSegmentAgainstRoute(t,e,n,r,i,s,l).pipe(w(t=>{if(t instanceof Ye)return(0,a.of)(null);throw t}))),B(t=>!!t),w((t,n)=>{if(t instanceof r||"EmptyError"===t.name){if(ze(e,i,s))return(0,a.of)(new Rt([],{}));throw new Ye(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return He(i,e,s,r)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):Ke(e):Ke(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?$e(s):this.lineralizeSegments(n,s).pipe((0,Y.zg)(n=>{const s=new Rt(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=qe(e,i,s);if(!o)return Ke(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?$e(u):this.lineralizeSegments(i,u).pipe((0,Y.zg)(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,a.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,j.U)(t=>(n._loadedConfig=t,new Rt(i,{})))):(0,a.of)(new Rt(i,{}));const{matched:r,consumedSegments:o,lastChild:l}=qe(e,n,i);if(!r)return Ke(e);const c=i.slice(l);return this.getChildConfig(t,n,i).pipe((0,Y.zg)(t=>{const i=t.module,r=t.routes,{segmentGroup:l,slicedSegments:u}=je(e,o,c,r),h=new Rt(l.segments,l.children);if(0===u.length&&h.hasChildren())return this.expandChildren(i,r,h).pipe((0,j.U)(t=>new Rt(o,t)));if(0===r.length&&0===u.length)return(0,a.of)(new Rt(o,{}));const d=Be(n)===s;return this.expandSegment(i,h,r,u,d?pt:s,!0).pipe((0,j.U)(t=>new Rt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?(0,a.of)(new Te(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,a.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,Y.zg)(n=>{return n?this.configLoader.load(t.injector,e).pipe((0,j.U)(t=>(e._loadedConfig=t,t))):(i=e,new u.y(t=>t.error(_t(`Cannot load children because the guard of the route "path: '${i.path}'" returned false`))));var i})):(0,a.of)(new Te([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return(0,a.of)(!0);const s=i.map(i=>{const s=t.get(i);let r;if((o=s)&&Oe(o.canLoad))r=s.canLoad(e,n);else{if(!Oe(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}var o;return Et(r)});return(0,a.of)(s).pipe(Re(),(0,G.b)(t=>{if(!Pe(t))return;const e=_t(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,j.U)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,a.of)(n);if(i.numberOfChildren>1||!i.children[pt])return We(t.redirectTo);i=i.children[pt]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new It(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Ct(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return Ct(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new Rt(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function Je(t){const e={};for(const n of Object.keys(t.children)){const i=Je(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children[pt]){const e=t.children[pt];return new Rt(t.segments.concat(e.segments),e.children)}return t}(new Rt(t.segments,e))}class Xe{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class tn{constructor(t,e){this.component=t,this.route=e}}function en(t,e,n){const i=t._root;return sn(i,e?e._root:null,n,[i.value])}function nn(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function sn(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=ee(e);return t.children.forEach(t=>{(function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Mt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Mt(t.url,e.url)||!bt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!he(t,e)||!bt(t.queryParams,e.queryParams);case"paramsChange":default:return!he(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Xe(i)):(r.data=o.data,r._resolvedData=o._resolvedData),sn(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new tn(a.outlet.component,o))}else o&&rn(e,a,s),s.canActivateChecks.push(new Xe(i)),sn(t,null,r.component?a?a.children:null:n,i,s)})(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),Ct(r,(t,e)=>rn(t,n.getContext(e),s)),s}function rn(t,e,n){const i=ee(t),s=t.value;Ct(i,(t,i)=>{rn(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new tn(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class on{}function an(t){return new u.y(e=>e.error(t))}class ln{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=je(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,pt);if(null===e)return null;const n=new oe([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},pt,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new te(n,e),s=new ae(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=re(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const i=e.children[s],r=Ue(t,s),o=this.processSegmentGroup(r,i,s);if(null===o)return null;n.push(...o)}const i=un(n);return i.sort((t,e)=>t.value.outlet===pt?-1:e.value.outlet===pt?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,i);if(null!==t)return t}return ze(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!He(t,e,n,i))return null;let s,r=[],o=[];if("**"===t.path){const i=n.length>0?xt(n).parameters:{};s=new oe(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,pn(t),Be(t),t.component,t,hn(e),dn(e)+n.length,fn(t))}else{const i=qe(e,t,n);if(!i.matched)return null;r=i.consumedSegments,o=n.slice(i.lastChild),s=new oe(r,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,pn(t),Be(t),t.component,t,hn(e),dn(e)+r.length,fn(t))}const a=(u=t).children?u.children:u.loadChildren?u._loadedConfig.routes:[],{segmentGroup:l,slicedSegments:c}=je(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);var u;if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new te(s,t)]}if(0===a.length&&0===c.length)return[new te(s,[])];const h=Be(t)===i,d=this.processSegment(a,l,c,h?pt:i);return null===d?null:[new te(s,d)]}}function cn(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function un(t){const e=[],n=new Set;for(const i of t){if(!cn(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=un(i.children);e.push(new te(i.value,t))}return e.filter(t=>!n.has(t))}function hn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function dn(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function pn(t){return t.data||{}}function fn(t){return t.resolve||{}}function mn(t){return(0,V.w)(e=>{const n=t(e);return n?(0,o.D)(n).pipe((0,j.U)(()=>e)):(0,a.of)(e)})}class gn extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const _n=new s.OlP("ROUTES");class yn{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe((0,j.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new Te(wt(i.injector.get(_n,void 0,s.XFs.Self|s.XFs.Optional)).map(Ne),i)}),w(t=>{throw e._loader$=void 0,t}));return e._loader$=new f.c(n,()=>new m.xQ).pipe((0,K.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):Et(t()).pipe((0,Y.zg)(t=>t instanceof s.YKP?(0,a.of)(t):(0,o.D)(this.compiler.compileModuleAsync(t))))}}class bn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new vn,this.attachRef=null}}class vn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new bn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class wn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function xn(t){throw t}function Cn(t,e,n){return e.parse("/")}function En(t,e){return(0,a.of)(null)}const kn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Sn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let An=(()=>{class t{constructor(t,e,n,i,r,o,a,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new m.xQ,this.errorHandler=xn,this.malformedUriErrorHandler=Cn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:En,afterPreactivation:En},this.urlHandlingStrategy=new wn,this.routeReuseStrategy=new gn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=r.get(s.h0i),this.console=r.get(s.c2e);const u=r.get(s.R0b);this.isNgZoneEnabled=u instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new It(new Rt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new yn(o,a,t=>this.triggerEvent(new ot(t)),t=>this.triggerEvent(new at(t))),this.routerState=ie(this.currentUrlTree,this.rootComponentType),this.transitions=new l.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe((0,E.h)(t=>0!==t.id),(0,j.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,V.w)(t=>{let n=!1,i=!1;return(0,a.of)(t).pipe((0,G.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,V.w)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString(),s=("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl);if(Tn(t.source)&&(this.browserUrlTree=t.rawUrl),s)return(0,a.of)(t).pipe((0,V.w)(t=>{const n=this.transitions.getValue();return e.next(new Q(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?p.E:Promise.resolve(t)}),function(t,e,n,i){return(0,V.w)(s=>function(t,e,n,i,s){return new Qe(t,e,n,i,s).apply()}(t,e,n,s.extractedUrl,i).pipe((0,j.U)(t=>Object.assign(Object.assign({},s),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,G.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,s,r){return(0,Y.zg)(o=>function(t,e,n,s,r="emptyOnly",o="legacy"){try{const i=new ln(t,e,n,s,r,o).recognize();return null===i?an(new on):(0,a.of)(i)}catch(i){return an(i)}}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),s,r).pipe((0,j.U)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,G.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new et(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,l=new Q(n,this.serializeUrl(i),s,r);e.next(l);const c=ie(i,this.rootComponentType).snapshot;return(0,a.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.E}),mn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),(0,G.b)(t=>{const e=new nt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,j.U)(t=>Object.assign(Object.assign({},t),{guards:en(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,Y.zg)(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:l}}=n;return 0===l.length&&0===r.length?(0,a.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return(0,o.D)(t).pipe((0,Y.zg)(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return(0,a.of)(!0);const o=r.map(r=>{const o=nn(r,e,s);let a;if(function(t){return t&&Oe(t.canDeactivate)}(o))a=Et(o.canDeactivate(t,e,n,i));else{if(!Oe(o))throw new Error("Invalid CanDeactivate guard");a=Et(o(t,e,n,i))}return a.pipe(B())});return(0,a.of)(o).pipe(Re())}(t.component,t.route,n,e,i)),B(t=>!0!==t,!0))}(l,i,s,t).pipe((0,Y.zg)(n=>n&&function(t){return"boolean"==typeof t}(n)?function(t,e,n,i){return(0,o.D)(e).pipe((0,z.b)(e=>(0,h.z)(function(t,e){return null!==t&&e&&e(new lt(t)),(0,a.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new ut(t)),(0,a.of)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>(0,d.P)(()=>{const s=e.guards.map(s=>{const r=nn(s,e.node,n);let o;if(function(t){return t&&Oe(t.canActivateChild)}(r))o=Et(r.canActivateChild(i,t));else{if(!Oe(r))throw new Error("Invalid CanActivateChild guard");o=Et(r(i,t))}return o.pipe(B())});return(0,a.of)(s).pipe(Re())}));return(0,a.of)(s).pipe(Re())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return(0,a.of)(!0);const s=i.map(i=>(0,d.P)(()=>{const s=nn(i,e,n);let r;if(function(t){return t&&Oe(t.canActivate)}(s))r=Et(s.canActivate(e,t));else{if(!Oe(s))throw new Error("Invalid CanActivate guard");r=Et(s(e,t))}return r.pipe(B())}));return(0,a.of)(s).pipe(Re())}(t,e.route,n))),B(t=>!0!==t,!0))}(i,r,t,e):(0,a.of)(n)),(0,j.U)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,G.b)(t=>{if(Pe(t.guardsResult)){const e=_t(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new it(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,E.h)(t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1)),mn(t=>{if(t.guards.canActivateChecks.length)return(0,a.of)(t).pipe((0,G.b)(t=>{const e=new st(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,V.w)(t=>{let e=!1;return(0,a.of)(t).pipe(function(t,e){return(0,Y.zg)(n=>{const{targetSnapshot:i,guards:{canActivateChecks:s}}=n;if(!s.length)return(0,a.of)(n);let r=0;return(0,o.D)(s).pipe((0,z.b)(n=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return(0,a.of)({});const r={};return(0,o.D)(s).pipe((0,Y.zg)(s=>function(t,e,n,i){const s=nn(t,e,i);return Et(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe((0,G.b)(t=>{r[s]=t}))),S(1),(0,Y.zg)(()=>Object.keys(r).length===s.length?(0,a.of)(r):p.E))}(t._resolve,t,e,i).pipe((0,j.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),re(t,n).resolve),null)))}(n.route,i,t,e)),(0,G.b)(()=>r++),S(1),(0,Y.zg)(t=>r===s.length?(0,a.of)(n):p.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,G.b)({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}))}),(0,G.b)(t=>{const e=new rt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),mn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),(0,j.U)(t=>{const e=function(t,e,n){const i=de(t,e._root,n?n._root:void 0);return new ne(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,G.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),((t,e,n)=>(0,j.U)(i=>(new Se(e,i.targetRouterState,i.currentRouterState,n).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,t=>this.triggerEvent(t)),(0,G.b)({next(){n=!0},complete(){n=!0}}),function(t){return e=>e.lift(new Z(t))}(()=>{if(!n&&!i){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}this.currentNavigation=null}),w(n=>{if(i=!0,function(t){return t&&t[gt]}(n)){const i=Pe(n.url);i||(this.navigated=!0,this.restoreHistory(t,!0));const s=new X(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),i={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Tn(t.source)};this.scheduleNavigation(e,"imperative",null,i,{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.restoreHistory(t,!0);const i=new tt(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}return p.E}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return e.transitionId!==t.transitionId||!n||!("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Me(t),this.config=t.map(Ne),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(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,s){if(0===n.length)return ge(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ye(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return Ct(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new ye(n,e,i)}(n);if(r.toRoot())return ge(e.root,new Rt([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new be(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new be(t,t===e.root,0)}const i=fe(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new be(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?we(o.segmentGroup,o.index,r.commands):ve(o.segmentGroup,o.index,r.commands);return ge(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Pe(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new J(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){var r,o;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l=Tn(e)&&a&&!Tn(a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&c)return Promise.resolve(!0);let u,h,d;s?(u=s.resolve,h=s.reject,d=s.promise):d=new Promise((t,e)=>{u=t,h=e});const p=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.\u0275routerPageId?n.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(r=this.browserPageId)&&void 0!==r?r:0:(null!==(o=this.browserPageId)&&void 0!==o?o:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:u,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}restoreHistory(t,e=!1){var n,i;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new X(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(Lt),s.LFG(vn),s.LFG(i.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Tn(t){return"imperative"!==t}let On=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new m.xQ,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(An),s.Y36(se),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})(),Pn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new m.xQ,this.subscription=t.events.subscribe(t=>{t instanceof J&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,s){if(0!==t||e||n||i||s||"string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(An),s.Y36(se),s.Y36(i.S$))},t.\u0275dir=s.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Ikx("href",e.href,s.LSH),s.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})();function In(t){return""===t||!!t}let Rn=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=i||pt,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.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 t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new Dn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(vn),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Dn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===se?this.route:t===vn?this.childContexts:this.parent.get(t,e)}}class Mn{}class Ln{preload(t,e){return(0,a.of)(null)}}let Fn=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new yn(e,n,e=>t.triggerEvent(new ot(e)),e=>t.triggerEvent(new at(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,E.h)(t=>t instanceof J),(0,z.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return(0,o.D)(n).pipe((0,$.J)(),(0,j.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,a.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,Y.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(An),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(Mn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Nn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Q?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof J&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof dt&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new dt(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(An),s.LFG(i.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Bn=new s.OlP("ROUTER_CONFIGURATION"),Un=new s.OlP("ROUTER_FORROOT_GUARD"),Zn=[i.Ye,{provide:Lt,useClass:Ft},{provide:An,useFactory:function(t,e,n,i,s,r,o,a={},l,c){const u=new An(null,t,e,n,i,s,r,wt(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[Lt,vn,i.Ye,s.zs3,s.v3s,s.Sil,_n,Bn,[class{},new s.FiY],[class{},new s.FiY]]},vn,{provide:se,useFactory:function(t){return t.routerState.root},deps:[An]},{provide:s.v3s,useClass:s.EAV},Fn,Ln,class{preload(t,e){return e().pipe(w(()=>(0,a.of)(null)))}},{provide:Bn,useValue:{enableTracing:!1}}];function qn(){return new s.PXZ("Router",An)}let jn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Zn,Yn(e),{provide:Un,useFactory:zn,deps:[[An,new s.FiY,new s.tp0]]},{provide:Bn,useValue:n||{}},{provide:i.S$,useFactory:Hn,deps:[i.lw,[new s.tBr(i.mr),new s.FiY],Bn]},{provide:Nn,useFactory:Vn,deps:[An,i.EM,Bn]},{provide:Mn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ln},{provide:s.PXZ,multi:!0,useFactory:qn},[Gn,{provide:s.ip1,multi:!0,useFactory:Kn,deps:[Gn]},{provide:Wn,useFactory:$n,deps:[Gn]},{provide:s.tb,multi:!0,useExisting:Wn}]]}}static forChild(e){return{ngModule:t,providers:[Yn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Un,8),s.LFG(An,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function Vn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Nn(t,e,n)}function Hn(t,e,n={}){return n.useHash?new i.Do(t,e):new i.b0(t,e)}function zn(t){return"guarded"}function Yn(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:_n,multi:!0,useValue:t}]}let Gn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new m.xQ}appInitializer(){return this.injector.get(i.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(An),i=this.injector.get(Bn);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,a.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Bn),n=this.injector.get(Fn),i=this.injector.get(Nn),r=this.injector.get(An),o=this.injector.get(s.z2F);t===o.components[0]&&(("enabledNonBlocking"===e.initialNavigation||void 0===e.initialNavigation)&&r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Kn(t){return t.appInitializer.bind(t)}function $n(t){return t.bootstrapListener.bind(t)}const Wn=new s.OlP("Router Initializer")},6215:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});var i=n(9765),s=n(7971);class r extends i.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(t){super.next(this._value=t)}}},1593:function(t,e,n){"use strict";n.d(e,{P:function(){return o}});var i=n(9193),s=n(5917),r=n(7574);class o{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return t=this.error,new r.y(e=>e.error(t));case"C":return(0,i.c)()}var t;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new o("N",t):o.undefinedValueNotification}static createError(t){return new o("E",void 0,t)}static createComplete(){return o.completeNotification}}o.completeNotification=new o("C"),o.undefinedValueNotification=new o("N",void 0)},7574:function(t,e,n){"use strict";n.d(e,{y:function(){return c}});var i=n(7393),s=n(9181),r=n(6490),o=n(6554),a=n(4487);var l=n(2494);let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof i.L)return t;if(t[s.b])return t[s.b]()}return t||e||n?new i.L(t,e,n):new i.L(r.c)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof i.L?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.L](){return this}pipe(...t){return 0===t.length?this:function(t){return 0===t.length?a.y:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}(t)(this)}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=l.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},6490:function(t,e,n){"use strict";n.d(e,{c:function(){return r}});var i=n(2494),s=n(4449);const r={closed:!0,next(t){},error(t){if(i.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},9765:function(t,e,n){"use strict";n.d(e,{Yc:function(){return c},xQ:function(){return u}});var i=n(7574),s=n(7393),r=n(5319),o=n(7971),a=n(8858),l=n(9181);class c extends s.L{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends i.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.b](){return new c(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.N;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;snew h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):r.w.EMPTY}}},8858:function(t,e,n){"use strict";n.d(e,{W:function(){return s}});var i=n(5319);class s extends i.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},7393:function(t,e,n){"use strict";n.d(e,{L:function(){return c}});var i=n(9105),s=n(6490),r=n(5319),o=n(9181),a=n(2494),l=n(4449);class c extends r.w{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.b](){return this}static create(t,e,n){const i=new c(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends c{constructor(t,e,n,r){super(),this._parentSubscriber=t;let o,a=this;(0,i.m)(e)?o=e:e&&(o=e.next,n=e.error,r=e.complete,e!==s.c&&(a=Object.create(e),(0,i.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.v;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,l.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,l.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw n;(0,l.z)(n)}}__tryOrSetError(t,e,n){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):((0,l.z)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},5319:function(t,e,n){"use strict";n.d(e,{w:function(){return a}});var i=n(9796),s=n(1555),r=n(9105);const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class a{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof a)e.remove(this);else if(null!==e)for(let i=0;it.concat(e instanceof o?e.errors:e),[])}a.EMPTY=((l=new a).closed=!0,l)},2494:function(t,e,n){"use strict";n.d(e,{v:function(){return s}});let i=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},5345:function(t,e,n){"use strict";n.d(e,{IY:function(){return o},Ds:function(){return a},ft:function(){return l}});var i=n(7393),s=n(7574),r=n(7444);class o extends i.L{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends i.L{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function l(t,e){if(e.closed)return;if(t instanceof s.y)return t.subscribe(e);let n;try{n=(0,r.s)(t)(e)}catch(i){e.error(i)}return n}},2441:function(t,e,n){"use strict";n.d(e,{c:function(){return a},N:function(){return l}});var i=n(9765),s=n(7574),r=n(5319),o=n(1307);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new r.w,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed&&(this._connection=null,t=r.w.EMPTY)),t}refCount(){return(0,o.x)()(this)}}const l=(()=>{const t=a.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 c extends i.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},739:function(t,e,n){"use strict";n.d(e,{aj:function(){return p}});var i=n(4869),s=n(9796),r=n(7393);class o extends r.L{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class a extends r.L{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var l=n(7444),c=n(7574);function u(t,e,n,i,s=new a(t,n,i)){if(!s.closed)return e instanceof c.y?e.subscribe(s):(0,l.s)(e)(s)}var h=n(6693);const d={};function p(...t){let e,n;return(0,i.K)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,h.n)(t,n).lift(new f(e))}class f{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new m(t,this.resultSelector))}}class m extends o{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(d),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{let n;try{n=t()}catch(i){return void e.error(i)}return(n?(0,s.D)(n):(0,r.c)()).subscribe(e)})}},9193:function(t,e,n){"use strict";n.d(e,{E:function(){return s},c:function(){return r}});var i=n(7574);const s=new i.y(t=>t.complete());function r(t){return t?function(t){return new i.y(e=>t.schedule(()=>e.complete()))}(t):s}},4402:function(t,e,n){"use strict";n.d(e,{D:function(){return h}});var i=n(7574),s=n(7444),r=n(5319),o=n(6554),a=n(4087),l=n(377),c=n(4072),u=n(9489);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.L]}(t))return function(t,e){return new i.y(n=>{const i=new r.w;return i.add(e.schedule(()=>{const s=t[o.L]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if((0,c.t)(t))return function(t,e){return new i.y(n=>{const i=new r.w;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if((0,u.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[l.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.y(n=>{const i=new r.w;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[l.hZ](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.y?t:new i.y((0,s.s)(t))}},6693:function(t,e,n){"use strict";n.d(e,{n:function(){return o}});var i=n(7574),s=n(5015),r=n(4087);function o(t,e){return e?(0,r.r)(t,e):new i.y((0,s.V)(t))}},2759:function(t,e,n){"use strict";n.d(e,{R:function(){return a}});var i=n(7574),s=n(9796),r=n(9105),o=n(8002);function a(t,e,n,c){return(0,r.m)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe((0,o.U)(t=>(0,s.k)(t)?c(...t):c(t))):new i.y(i=>{l(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function l(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.y?t[0]:(0,r.J)(e)((0,o.n)(t,n))}},5917:function(t,e,n){"use strict";n.d(e,{of:function(){return o}});var i=n(4869),s=n(6693),r=n(4087);function o(...t){let e=t[t.length-1];return(0,i.K)(e)?(t.pop(),(0,r.r)(t,e)):(0,s.n)(t)}},628:function(t,e,n){"use strict";n.d(e,{e:function(){return h}});var i=n(3637),s=n(5345);class r{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new o(t,this.durationSelector))}}class o extends s.Ds{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=(0,s.ft)(n,new s.IY(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,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(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n(7574),l=n(6561),c=n(4869);function u(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function h(t,e=i.P){return function(t){return function(e){return e.lift(new r(t))}}(()=>function(t=0,e,n){let s=-1;return(0,l.k)(e)?s=Number(e)<1?1:Number(e):(0,c.K)(e)&&(n=e),(0,c.K)(n)||(n=i.P),new a.y(e=>{const i=(0,l.k)(t)?t:+t-n.now();return n.schedule(u,i,{index:0,period:s,subscriber:e})})}(t,e))}},4612:function(t,e,n){"use strict";n.d(e,{b:function(){return s}});var i=n(9773);function s(t,e){return(0,i.zg)(t,e,1)}},4395:function(t,e,n){"use strict";n.d(e,{b:function(){return r}});var i=n(7393),s=n(3637);function r(t,e=s.P){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.L{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},7519:function(t,e,n){"use strict";n.d(e,{x:function(){return s}});var i=n(7393);function s(t,e){return n=>n.lift(new r(t,e))}class r{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends i.L{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},5435:function(t,e,n){"use strict";n.d(e,{h:function(){return s}});var i=n(7393);function s(t,e){return function(n){return n.lift(new r(t,e))}}class r{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},8002:function(t,e,n){"use strict";n.d(e,{U:function(){return s}});var i=n(7393);function s(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new r(t,e))}}class r{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},3282:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});var i=n(9773),s=n(4487);function r(t=Number.POSITIVE_INFINITY){return(0,i.zg)(s.y,t)}},9773:function(t,e,n){"use strict";n.d(e,{zg:function(){return o}});var i=n(8002),s=n(4402),r=n(5345);function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(o((n,r)=>(0,s.D)(t(n,r)).pipe((0,i.U)((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends r.Ds{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1307:function(t,e,n){"use strict";n.d(e,{x:function(){return s}});var i=n(7393);function s(){return function(t){return t.lift(new r(t))}}class r{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new o(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class o extends i.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}},3653:function(t,e,n){"use strict";n.d(e,{T:function(){return s}});var i=n(7393);function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.total=t}call(t,e){return e.subscribe(new o(t,this.total))}}class o extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},9761:function(t,e,n){"use strict";n.d(e,{O:function(){return r}});var i=n(8071),s=n(4869);function r(...t){const e=t[t.length-1];return(0,s.K)(e)?(t.pop(),n=>(0,i.z)(t,n,e)):e=>(0,i.z)(t,e)}},3190:function(t,e,n){"use strict";n.d(e,{w:function(){return o}});var i=n(8002),s=n(4402),r=n(5345);function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,r)=>(0,s.D)(t(n,r)).pipe((0,i.U)((t,i)=>e(n,t,r,i))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends r.Ds{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new r.IY(this),i=this.destination;i.add(n),this.innerSubscription=(0,r.ft)(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},5257:function(t,e,n){"use strict";n.d(e,{q:function(){return o}});var i=n(7393),s=n(7108),r=n(9193);function o(t){return e=>0===t?(0,r.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},6782:function(t,e,n){"use strict";n.d(e,{R:function(){return s}});var i=n(5345);function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.notifier=t}call(t,e){const n=new o(t),s=(0,i.ft)(this.notifier,new i.IY(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class o extends i.Ds{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},3342:function(t,e,n){"use strict";n.d(e,{b:function(){return o}});var i=n(7393);function s(){}var r=n(9105);function o(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends i.L{constructor(t,e,n,i){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=n||s,this._tapComplete=i||s,(0,r.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},4087:function(t,e,n){"use strict";n.d(e,{r:function(){return r}});var i=n(7574),s=n(5319);function r(t,e){return new i.y(n=>{const i=new s.w;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},6465:function(t,e,n){"use strict";n.d(e,{o:function(){return r}});var i=n(5319);class s extends i.w{constructor(t,e){super()}schedule(t,e=0){return this}}class r extends s{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},6102:function(t,e,n){"use strict";n.d(e,{v:function(){return s}});let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class s extends i{constructor(t,e=i.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},4581:function(t,e,n){"use strict";n.d(e,{E:function(){return u}});let i=1;const s=Promise.resolve(),r={};function o(t){return t in r&&(delete r[t],!0)}const a={setImmediate(t){const e=i++;return r[e]=!0,s.then(()=>o(e)&&t()),e},clearImmediate(t){o(t)}};var l=n(6465),c=n(6102);const u=new class extends c.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}})},3637:function(t,e,n){"use strict";n.d(e,{P:function(){return s}});var i=n(6465);const s=new(n(6102).v)(i.o)},377:function(t,e,n){"use strict";n.d(e,{hZ:function(){return i}});const i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:function(t,e,n){"use strict";n.d(e,{W:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},7971:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4449:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,{z:function(){return i}})},4487:function(t,e,n){"use strict";function i(t){return t}n.d(e,{y:function(){return i}})},9796:function(t,e,n){"use strict";n.d(e,{k:function(){return i}});const i=Array.isArray||(t=>t&&"number"==typeof t.length)},9489:function(t,e,n){"use strict";n.d(e,{z:function(){return i}});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},9105:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,{m:function(){return i}})},6561:function(t,e,n){"use strict";n.d(e,{k:function(){return s}});var i=n(9796);function s(t){return!(0,i.k)(t)&&t-parseFloat(t)+1>=0}},1555:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,{K:function(){return i}})},5639:function(t,e,n){"use strict";n.d(e,{b:function(){return s}});var i=n(7574);function s(t){return!!t&&(t instanceof i.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},4072:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:function(){return i}})},4869:function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,{K:function(){return i}})},7444:function(t,e,n){"use strict";n.d(e,{s:function(){return u}});var i=n(5015),s=n(4449),r=n(377),o=n(6554),a=n(9489),l=n(4072),c=n(1555);const u=t=>{if(t&&"function"==typeof t[o.L])return(t=>e=>{const n=t[o.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if((0,a.z)(t))return(0,i.V)(t);if((0,l.t)(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,s.z),e))(t);if(t&&"function"==typeof t[r.hZ])return(t=>e=>{const n=t[r.hZ]();for(;;){let t;try{t=n.next()}catch(i){return e.error(i),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const e=`You provided ${(0,c.K)(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}}},5015:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});const i=t=>e=>{for(let n=0,i=t.length;n{class t{constructor(t){this.sanitizer=t}transform(t,e){return t=(t=(t=t.replace(/<\s*script\s*/gi,"")).replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,"")).replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s.H7,16))},t.\u0275pipe=i.Yjl({name:"safeHtml",type:t,pure:!0}),t})()},3183:function(t,e,n){"use strict";n.d(e,{h:function(){return y}});var i=n(2238),s=n(7574),r=n(3637),o=n(6561);function a(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var l=n(3018),c=n(8583),u=n(1095),h=n(7918),d=n(6498);function p(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().close()}),l.TgZ(1,"uds-translate"),l._uU(2,"Close"),l.qZA(),l._uU(3),l.qZA()}if(2&t){const t=l.oxw();l.xp6(3),l.Oqu(t.extra)}}function f(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().yes()}),l.TgZ(1,"uds-translate"),l._uU(2,"Yes"),l.qZA(),l.qZA()}}function m(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().no()}),l.TgZ(1,"uds-translate"),l._uU(2,"No"),l.qZA(),l.qZA()}}var g=(()=>{return(t=g||(g={}))[t.alert=0]="alert",t[t.yesno=1]="yesno",g;var t})();let _=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.subscription=null,this.resetCallbacks(),this.yesno=new s.y(t=>{this.yes=()=>{t.next(!0),t.complete()},this.no=()=>{t.next(!1),t.complete()},this.close=()=>{this.doClose(),t.next(!1),t.complete()};const e=this;return{unsubscribe:()=>e.resetCallbacks()}})}resetCallbacks(){this.yes=this.no=()=>this.close(),this.close=()=>this.doClose()}closed(){null!==this.subscription&&this.subscription.unsubscribe()}doClose(){this.dialogRef.close()}setExtra(t){this.extra=" ("+Math.floor(t/1e3)+" "+django.gettext("seconds")+") "}initAlert(){this.data.autoclose>0?(this.dialogRef.afterClosed().subscribe(t=>{this.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(t=0,e=r.P){return(!(0,o.k)(t)||t<0)&&(t=0),(!e||"function"!=typeof e.schedule)&&(e=r.P),new s.y(n=>(n.add(e.schedule(a,t,{subscriber:n,counter:0,period:t})),n))}(1e3).subscribe(t=>{const e=this.data.autoclose-1e3*(t+1);this.setExtra(e),e<=0&&this.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(t=>{this.closed()}),this.subscription=this.data.checkClose.subscribe(t=>{window.setTimeout(()=>{this.doClose()})}))}initYesNo(){}ngOnInit(){this.data.type===g.yesno?this.initYesNo():this.initAlert()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(i.so),l.Y36(i.WI))},t.\u0275cmp=l.Xpm({type:t,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"]],template:function(t,e){1&t&&(l._UZ(0,"h4",0),l.ALo(1,"safeHtml"),l._UZ(2,"mat-dialog-content",1),l.ALo(3,"safeHtml"),l.TgZ(4,"mat-dialog-actions"),l.YNc(5,p,4,1,"button",2),l.YNc(6,f,3,0,"button",2),l.YNc(7,m,3,0,"button",2),l.qZA()),2&t&&(l.Q6J("innerHtml",l.lcZ(1,5,e.data.title),l.oJD),l.xp6(2),l.Q6J("innerHTML",l.lcZ(3,7,e.data.body),l.oJD),l.xp6(3),l.Q6J("ngIf",0===e.data.type),l.xp6(1),l.Q6J("ngIf",1===e.data.type),l.xp6(1),l.Q6J("ngIf",1===e.data.type))},directives:[i.uh,i.xY,i.H8,c.O5,u.lW,i.ZT,h.P],pipes:[d.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t})(),y=(()=>{class t{constructor(t){this.dialog=t}alert(t,e,n=0,i=null){const s=window.innerWidth<800?"80%":"40%";return this.dialog.open(_,{width:s,data:{title:t,body:e,autoclose:n,checkClose:i,type:g.alert},disableClose:!0})}yesno(t,e){const n=window.innerWidth<800?"80%":"40%";return this.dialog.open(_,{width:n,data:{title:t,body:e,type:g.yesno},disableClose:!0}).componentInstance.yesno}}return t.\u0275fac=function(e){return new(e||t)(l.LFG(i.uw))},t.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac}),t})()},2870:function(t,e,n){"use strict";n.d(e,{S:function(){return s}});var i=n(7574);let s=(()=>{class t{constructor(t){this.api=t,this.delay=t.config.launcher_wait_time}launchURL(e){let n="init";const s=t=>{let e=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof t?e=t:403===t.status&&(e=django.gettext("Your session has expired. Please, login again")),window.setTimeout(()=>{this.showAlert(django.gettext("Error"),e,5e3),403===t.status&&window.setTimeout(()=>{this.api.logout()},5e3)})};if("udsa://"===e.substring(0,7)){const t=e.split("//")[1].split("/"),r=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new i.y(e=>{let i=0;const o=()=>{r.componentInstance&&this.api.status(t[0],t[1]).subscribe(t=>{"ready"===t.status?(i?Date.now()-i>5*this.delay&&(r.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),r.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(i=Date.now(),r.componentInstance.data.title=django.gettext("Service ready"),r.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(o,this.delay)):"accessed"===t.status?(r.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),e.next(!0),e.complete()):"running"===t.status?window.setTimeout(o,this.delay):(e.next(!0),e.complete(),s())},t=>{e.next(!0),e.complete(),s(t)})},a=()=>{if("init"===n)window.setTimeout(a,this.delay);else{if("error"===n||"stop"===n)return;window.setTimeout(o)}};window.setTimeout(a)}));this.api.enabler(t[0],t[1]).subscribe(t=>{if(t.error)n="error",this.api.gui.alert(django.gettext("Error launching service"),t.error);else{if(t.url.startsWith("/"))return r.componentInstance&&r.componentInstance.close(),n="stop",void this.launchURL(t.url);"https:"===window.location.protocol&&(t.url=t.url.replace("uds://","udss://")),n="enabled",this.doLaunch(t.url)}},t=>{this.api.logout()})}else{const n=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new i.y(i=>{const r=()=>{n.componentInstance&&this.api.transportUrl(e).subscribe(e=>{if(e.url)if(i.next(!0),i.complete(),-1!==e.url.indexOf("o_s_w=")){const t=/(.*)&o_s_w=.*/.exec(e.url);window.location.href=t[1]}else{let n="global";if(-1!==e.url.indexOf("o_n_w=")){const t=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(e.url);t&&(n=t[2],e.url=t[1])}t.transportsWindow[n]&&t.transportsWindow[n].close(),t.transportsWindow[n]=window.open(e.url,"uds_trans_"+n)}else e.running?window.setTimeout(r,this.delay):(i.next(!0),i.complete(),s(e.error))},t=>{i.next(!0),i.complete(),s(t)})};window.setTimeout(r)}))}}showAlert(t,e,n,i=null){return this.api.gui.alert(django.gettext("Launching service"),'

'+t+'

'+e+"

",n,i)}doLaunch(t){let e=document.getElementById("hiddenUdsLauncherIFrame");if(null===e){const t=document.createElement("div");t.id="testID",t.innerHTML='',document.body.appendChild(t),e=document.getElementById("hiddenUdsLauncherIFrame")}e.contentWindow.location.href=t}}return t.transportsWindow={},t})()},4902:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G:function(){return LoginComponent}});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3018),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(665),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8295),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9983),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8583),_angular_material_button__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1095),_angular_material_select__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7441),_angular_material_core__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2458),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template(t,e){if(1&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&t){const t=e.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",t.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",t.name," ")}}function LoginComponent_div_22_Template(t,e){if(1&t){const t=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(1,"mat-form-field",17),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(2,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(e){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(t),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(e.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()}if(2&t){const t=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",t.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",t.auths)}}let LoginComponent=(()=>{class LoginComponent{constructor(t){this.api=t,this.title="UDS Enterprise",this.title=t.config.site_name,this.auths=t.config.authenticators.slice(0),this.auths.sort((t,e)=>t.priority-e.priority)}ngOnInit(){document.getElementById("loginform").action=this.api.config.urls.login;const t=document.getElementById("token");t.name=this.api.csrfField,t.value=this.api.csrfToken,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}changeAuth(auth){this.auth.value=auth;const doCustomAuth=data=>{eval(data)};for(const t of this.auths)t.id===auth&&t.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml(t.id).subscribe(t=>doCustomAuth(t)))}launch(){return document.getElementById("loginform").submit(),!0}}return LoginComponent.\u0275fac=function(t){return new(t||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return e.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(2,"input",2),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(10,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(11,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(12,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(17,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(18,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(24,"button",15),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",e.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",e.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",e.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,e.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_button__WEBPACK_IMPORTED_MODULE_7__.lW,_angular_material_select__WEBPACK_IMPORTED_MODULE_8__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_9__.ey],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent})()},7918:function(t,e,n){"use strict";n.d(e,{P:function(){return s}});var i=n(3018);let s=(()=>{class t{constructor(t){this.el=t}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t,selectors:[["uds-translate"]]}),t})()},3513:function(t,e,n){"use strict";n.d(e,{n:function(){return i}});class i{constructor(t){this.user=t.user,this.role=t.role,this.admin=t.admin}get isStaff(){return"staff"===this.role||"admin"===this.role}get isAdmin(){return"admin"===this.role}get isLogged(){return null!=this.user}get isRestricted(){return"restricted"===this.role}}},7540:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return UDSApiService}});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3018),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1841),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3183),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8741);let UDSApiService=(()=>{class UDSApiService{constructor(t,e,n){this.http=t,this.gui=e,this.router=n,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get staffInfo(){return udsData.info}get plugins(){return udsData.plugins}get actors(){return udsData.actors}get errors(){return udsData.errors}enabler(t,e){const n=this.config.urls.enabler.replace("param1",t).replace("param2",e);return this.http.get(n)}status(t,e){const n=this.config.urls.status.replace("param1",t).replace("param2",e);return this.http.get(n)}action(t,e){const n=this.config.urls.action.replace("param1",e).replace("param2",t);return this.http.get(n)}transportUrl(t){return this.http.get(t)}galleryImageURL(t){return this.config.urls.galleryImage.replace("param1",t)}transportIconURL(t){return this.config.urls.transportIcon.replace("param1",t)}staticURL(t){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+t:"/static/"+t}getServicesInformation(){return this.http.get(this.config.urls.services)}getErrorInformation(t){return this.http.get(this.config.urls.error.replace("9999",t))}executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}gotoAdmin(){window.location.href=this.config.urls.admin}logout(){window.location.href=this.config.urls.logout}launchURL(t){this.plugin.launchURL(t)}getAuthCustomHtml(t){return this.http.get(this.config.urls.customAuth+t,{responseType:"text"})}}return UDSApiService.\u0275fac=function(t){return new(t||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService})()},2340:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i={production:!0}},6445:function(t,e,n){"use strict";var i=n(9075),s=n(3018),r=n(9490),o=n(9765),a=n(739),l=n(8071),c=n(7574),u=n(5257),h=n(3653),d=n(4395),p=n(8002),f=n(9761),m=n(6782),g=n(521);let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const y=new Set;let b,v=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):w}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!y.has(t))try{b||(b=document.createElement("style"),b.setAttribute("type","text/css"),document.head.appendChild(b)),b.sheet&&(b.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),y.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(g.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(g.t4))},token:t,providedIn:"root"}),t})();function w(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let x=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new o.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return C((0,r.Eq)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=C((0,r.Eq)(t)).map(t=>this._registerQuery(t).observable);let n=(0,a.aj)(e);return n=(0,l.z)(n.pipe((0,u.q)(1)),n.pipe((0,h.T)(1),(0,d.b)(0))),n.pipe((0,p.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new c.y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe((0,f.O)(e),(0,p.U)(({matches:e})=>({query:t,matches:e})),(0,m.R)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(v),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(v),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})();function C(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var E=n(1841),k=n(8741),S=n(7540);let A=(()=>{class t{constructor(t){this.api=t}canActivate(t,e){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(S.n))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var T=n(4902),O=n(7918),P=n(8583);function I(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().download(e.url)}),s.TgZ(1,"div",7),s._UZ(2,"img",8),s.qZA(),s.TgZ(3,"div",9),s._uU(4),s.qZA(),s.TgZ(5,"div",10),s._uU(6),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.Tol(n.css(t)),s.xp6(2),s.Q6J("src",n.img(t.name),s.LSH),s.xp6(2),s.lnq(" ",n.legacy(t)," ",t.name," (",t.url.split(".").pop(),") "),s.xp6(2),s.hij(" ",t.description," ")}}let R=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}download(t){window.location.href=t}img(t){return this.api.staticURL("modern/img/"+t+".png")}css(t){const e=["plugin"];return t.legacy&&e.push("legacy"),e}legacy(t){return t.legacy?"Legacy":""}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h1"),s.TgZ(4,"uds-translate"),s._uU(5,"UDS Client"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"div",3),s.YNc(7,I,7,7,"div",4),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"ul"),s.TgZ(10,"li"),s.TgZ(11,"uds-translate"),s._uU(12,"Download UDS client for your platform"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(7),s.Q6J("ngForOf",e.api.plugins))},directives:[O.P,P.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem}"]}),t})();var D=n(6498);function M(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().download(e.url)}),s.TgZ(1,"div",7),s._UZ(2,"img",8),s.qZA(),s._UZ(3,"div",9),s.ALo(4,"safeHtml"),s._UZ(5,"div",10),s.ALo(6,"safeHtml"),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.Tol(n.css(t.name)),s.xp6(2),s.Q6J("src",n.img(t.name),s.LSH),s.xp6(1),s.Q6J("innerHTML",s.lcZ(4,5,t.name),s.oJD),s.xp6(2),s.Q6J("innerHTML",s.lcZ(6,7,t.description),s.oJD)}}let L=(()=>{class t{constructor(t){this.api=t}ngOnInit(){this.actors=[];const t=[];this.api.actors.forEach(e=>{e.name.includes("legacy")?t.push(e):this.actors.push(e)}),t.forEach(t=>{this.actors.push(t)})}download(t){window.location.href=t}img(t){const e=t.split(".").pop().toLowerCase();let n="Linux";return"exe"===e?n="Windows":"pkg"===e&&(n="MacOS"),this.api.staticURL("modern/img/"+n+".png")}css(t){const e=["actor"];return t.toLowerCase().includes("legacy")&&e.push("legacy"),e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h1"),s.TgZ(4,"uds-translate"),s._uU(5,"Downloads"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"div",3),s.YNc(7,M,7,9,"div",4),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"ul"),s.TgZ(10,"li"),s.TgZ(11,"uds-translate"),s._uU(12,"Always download the UDS actor matching your platform"),s.qZA(),s.qZA(),s.TgZ(13,"li"),s.TgZ(14,"uds-translate"),s._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(7),s.Q6J("ngForOf",e.actors))},directives:[O.P,P.sg],pipes:[D.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:bold;overflow:hidden}"]}),t})();var F=n(5319),N=n(8345);let B=0;const U=new s.OlP("CdkAccordion");let Z=(()=>{class t{constructor(){this._stateChanges=new o.xQ,this._openCloseAllActions=new o.xQ,this.id="cdk-accordion-"+B++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=(0,r.Ig)(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[s._Bn([{provide:U,useExisting:t}]),s.TTD]}),t})(),q=0,j=(()=>{class t{constructor(t,e,n){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=n,this._openCloseAllSubscription=F.w.EMPTY,this.closed=new s.vpe,this.opened=new s.vpe,this.destroyed=new s.vpe,this.expandedChange=new s.vpe,this.id="cdk-accordion-child-"+q++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=n.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=(0,r.Ig)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(U,12),s.Y36(s.sBO),s.Y36(N.A8))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[s._Bn([{provide:U,useValue:void 0}])]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();var H=n(7636),z=n(2458),Y=n(9238),G=n(7519),K=n(5435),$=n(6461),W=n(6237),Q=n(9193),J=n(6682),X=n(7238);const tt=["body"];function et(t,e){}const nt=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],it=["mat-expansion-panel-header","*","mat-action-row"];function st(t,e){if(1&t&&s._UZ(0,"span",2),2&t){const t=s.oxw();s.Q6J("@indicatorRotate",t._getExpandedState())}}const rt=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],ot=["mat-panel-title","mat-panel-description","*"],at=new s.OlP("MAT_ACCORDION"),lt="225ms cubic-bezier(0.4,0.0,0.2,1)",ct={indicatorRotate:(0,X.X$)("indicatorRotate",[(0,X.SB)("collapsed, void",(0,X.oB)({transform:"rotate(0deg)"})),(0,X.SB)("expanded",(0,X.oB)({transform:"rotate(180deg)"})),(0,X.eR)("expanded <=> collapsed, void => collapsed",(0,X.jt)(lt))]),bodyExpansion:(0,X.X$)("bodyExpansion",[(0,X.SB)("collapsed, void",(0,X.oB)({height:"0px",visibility:"hidden"})),(0,X.SB)("expanded",(0,X.oB)({height:"*",visibility:"visible"})),(0,X.eR)("expanded <=> collapsed, void => collapsed",(0,X.jt)(lt))])};let ut=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),ht=0;const dt=new s.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let pt=(()=>{class t extends j{constructor(t,e,n,i,r,a,l){super(t,e,n),this._viewContainerRef=i,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new s.vpe,this.afterCollapse=new s.vpe,this._inputChanges=new o.xQ,this._headerId="mat-expansion-panel-header-"+ht++,this._bodyAnimationDone=new o.xQ,this.accordion=t,this._document=r,this._bodyAnimationDone.pipe((0,G.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=(0,r.Ig)(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,f.O)(null),(0,K.h)(()=>this.expanded&&!this._portal),(0,u.q)(1)).subscribe(()=>{this._portal=new H.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(at,12),s.Y36(s.sBO),s.Y36(N.A8),s.Y36(s.s_b),s.Y36(P.K0),s.Y36(W.Qb,8),s.Y36(dt,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,ut,5),2&t){let t;s.iGM(t=s.CRH())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&s.Gf(tt,5),2&t){let t;s.iGM(t=s.CRH())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[s._Bn([{provide:at,useValue:void 0}]),s.qOj,s.TTD],ngContentSelectors:it,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(s.F$t(nt),s.Hsn(0),s.TgZ(1,"div",0,1),s.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),s.TgZ(3,"div",2),s.Hsn(4,1),s.YNc(5,et,0,0,"ng-template",3),s.qZA(),s.Hsn(6,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),s.uIk("aria-labelledby",e._headerId),s.xp6(4),s.Q6J("cdkPortalOutlet",e._portal))},directives:[H.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ct.bodyExpansion]},changeDetection:0}),t})();class ft{}const mt=(0,z.sb)(ft);let gt=(()=>{class t extends mt{constructor(t,e,n,i,s,r,o){super(),this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=i,this._animationMode=r,this._parentChangeSubscription=F.w.EMPTY;const a=t.accordion?t.accordion._stateChanges.pipe((0,K.h)(t=>!(!t.hideToggle&&!t.togglePosition))):Q.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,J.T)(t.opened,t.closed,a,t._inputChanges.pipe((0,K.h)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe((0,K.h)(()=>t._containsFocus())).subscribe(()=>n.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case $.L_:case $.K5:(0,$.Vb)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(pt,1),s.Y36(s.SBq),s.Y36(Y.tE),s.Y36(s.sBO),s.Y36(dt,8),s.Y36(W.Qb,8),s.$8M("tabindex"))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.uIk("id",e.panel._headerId)("tabindex",e.tabIndex)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),s.Udp("height",e._getHeaderHeight()),s.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[s.qOj],ngContentSelectors:ot,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(s.F$t(rt),s.TgZ(0,"span",0),s.Hsn(1),s.Hsn(2,1),s.Hsn(3,2),s.qZA(),s.YNc(4,st,1,1,"span",1)),2&t&&(s.xp6(4),s.Q6J("ngIf",e._showToggle()))},directives:[P.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[ct.indicatorRotate]},changeDetection:0}),t})(),_t=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),yt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),bt=(()=>{class t extends Z{constructor(){super(...arguments),this._ownHeaders=new s.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=(0,r.Ig)(t)}ngAfterContentInit(){this._headers.changes.pipe((0,f.O)(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Y.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,gt,5),2&t){let t;s.iGM(t=s.CRH())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[s._Bn([{provide:at,useExisting:t}]),s.qOj]}),t})(),vt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[P.ez,z.BQ,V,H.eL]]}),t})();function wt(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"uds-translate"),s._uU(2,"Detected proxy ip"),s.qZA(),s._uU(3),s.qZA()),2&t){const t=s.oxw(2);s.xp6(3),s.hij(": ",t.api.staffInfo.ip_proxy,"")}}function xt(t,e){if(1&t&&(s.TgZ(0,"li"),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function Ct(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function Et(t,e){if(1&t&&(s.TgZ(0,"div",1),s.TgZ(1,"h1"),s.TgZ(2,"uds-translate"),s._uU(3,"Information"),s.qZA(),s.qZA(),s.TgZ(4,"mat-accordion"),s.TgZ(5,"mat-expansion-panel"),s.TgZ(6,"mat-expansion-panel-header",2),s.TgZ(7,"mat-panel-title"),s._uU(8," IPs "),s.qZA(),s.TgZ(9,"mat-panel-description"),s.TgZ(10,"uds-translate"),s._uU(11,"Client IP"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(12,"ol"),s.TgZ(13,"li"),s.TgZ(14,"uds-translate"),s._uU(15,"Client IP"),s.qZA(),s._uU(16),s.qZA(),s.YNc(17,wt,4,1,"li",3),s.qZA(),s.qZA(),s.TgZ(18,"mat-expansion-panel"),s.TgZ(19,"mat-expansion-panel-header",2),s.TgZ(20,"mat-panel-title"),s.TgZ(21,"uds-translate"),s._uU(22,"Transports"),s.qZA(),s.qZA(),s.TgZ(23,"mat-panel-description"),s.TgZ(24,"uds-translate"),s._uU(25,"UDS transports for this client"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(26,"ol"),s.YNc(27,xt,2,1,"li",4),s.qZA(),s.qZA(),s.TgZ(28,"mat-expansion-panel"),s.TgZ(29,"mat-expansion-panel-header",2),s.TgZ(30,"mat-panel-title"),s.TgZ(31,"uds-translate"),s._uU(32,"Networks"),s.qZA(),s.qZA(),s.TgZ(33,"mat-panel-description"),s.TgZ(34,"uds-translate"),s._uU(35,"UDS networks for this IP"),s.qZA(),s.qZA(),s.qZA(),s.YNc(36,Ct,2,1,"span",4),s._uU(37,"\xa0 "),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(16),s.hij(": ",t.api.staffInfo.ip,""),s.xp6(1),s.Q6J("ngIf",t.api.staffInfo.ip_proxy!==t.api.staffInfo.ip),s.xp6(10),s.Q6J("ngForOf",t.api.staffInfo.transports),s.xp6(9),s.Q6J("ngForOf",t.api.staffInfo.networks)}}let kt=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(t,e){1&t&&s.YNc(0,Et,38,4,"div",0),2&t&&s.Q6J("ngIf",e.api.staffInfo)},directives:[P.O5,O.P,bt,pt,gt,yt,_t,P.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4}"]}),t})();var St=n(2759),At=n(3342),Tt=n(8295),Ot=n(9983);const Pt=["input"];let It=(()=>{class t{constructor(){this.updateEvent=new s.vpe}ngAfterViewInit(){(0,St.R)(this.input.nativeElement,"keyup").pipe((0,K.h)(Boolean),(0,d.b)(600),(0,G.x)(),(0,At.b)(()=>this.update(this.input.nativeElement.value))).subscribe()}update(t){this.updateEvent.emit(t.toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-filter"]],viewQuery:function(t,e){if(1&t&&s.Gf(Pt,7),2&t){let t;s.iGM(t=s.CRH())&&(e.input=t.first)}},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-form-field",1),s.TgZ(2,"mat-label"),s.TgZ(3,"uds-translate"),s._uU(4,"Filter"),s.qZA(),s.qZA(),s._UZ(5,"input",2,3),s.TgZ(7,"i",4),s._uU(8,"search"),s.qZA(),s.qZA(),s.qZA())},directives:[Tt.KE,Tt.hX,O.P,Ot.Nt,Tt.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),t})();var Rt=n(5917),Dt=n(4581),Mt=n(3190),Lt=n(3637),Ft=n(7393),Nt=n(1593);function Bt(t,e=Lt.P){const n=function(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-e.now():Math.abs(t);return t=>t.lift(new Ut(n,e))}class Ut{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Zt(t,this.delay,this.scheduler))}}class Zt extends Ft.L{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Zt.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new qt(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Nt.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Nt.P.createComplete()),this.unsubscribe()}}class qt{constructor(t,e){this.time=t,this.notification=e}}var jt=n(625),Vt=n(9243),Ht=n(946);const zt=["mat-menu-item",""];function Yt(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",2),s._UZ(1,"polygon",3),s.qZA())}const Gt=["*"];function Kt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.NdJ("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)})("click",function(){return s.CHM(t),s.oxw().closed.emit("click")})("@transformMenu.start",function(e){return s.CHM(t),s.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return s.CHM(t),s.oxw()._onAnimationDone(e)}),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),s.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const $t={transformMenu:(0,X.X$)("transformMenu",[(0,X.SB)("void",(0,X.oB)({opacity:0,transform:"scale(0.8)"})),(0,X.eR)("void => enter",(0,X.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,X.oB)({opacity:1,transform:"scale(1)"}))),(0,X.eR)("* => void",(0,X.jt)("100ms 25ms linear",(0,X.oB)({opacity:0})))]),fadeInItems:(0,X.X$)("fadeInItems",[(0,X.SB)("showing",(0,X.oB)({opacity:1})),(0,X.eR)("void => *",[(0,X.oB)({opacity:0}),(0,X.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Wt=new s.OlP("MatMenuContent"),Qt=new s.OlP("MAT_MENU_PANEL"),Jt=(0,z.Kr)((0,z.Id)(class{}));let Xt=(()=>{class t extends Jt{constructor(t,e,n,i,s){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new o.xQ,this._focused=new o.xQ,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.n_E,this._tabSubscription=F.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new o.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+ee++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=(0,r.Ig)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,r.Ig)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Y.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,f.O)(this._directDescendantItems),(0,Mt.w)(t=>(0,J.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,f.O)(this._directDescendantItems),(0,Mt.w)(t=>(0,J.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case $.hY:(0,$.Vb)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case $.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case $.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(e===$.LH||e===$.JH)&&n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,u.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=Math.min(this._baseElevation+t,24),n=`${this._elevationPrefix}${e}`,i=Object.keys(this._classList).find(t=>t.startsWith(this._elevationPrefix));(!i||i===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[n]=!0,this._previousElevation=n)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,f.O)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(te))},t.\u0275dir=s.lG2({type:t,contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,Wt,5),s.Suo(n,Xt,5),s.Suo(n,Xt,4)),2&t){let t;s.iGM(t=s.CRH())&&(e.lazyContent=t.first),s.iGM(t=s.CRH())&&(e._allItems=t),s.iGM(t=s.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(s.Rgc,5),2&t){let t;s.iGM(t=s.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),ie=(()=>{class t extends ne{constructor(t,e,n){super(t,e,n),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(te))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&s.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[s._Bn([{provide:Qt,useExisting:t}]),s.qOj],ngContentSelectors:Gt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,Kt,3,6,"ng-template"))},directives:[P.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[$t.transformMenu,$t.fadeInItems]},changeDetection:0}),t})();const se=new s.OlP("mat-menu-scroll-strategy"),re={provide:se,deps:[jt.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},oe=(0,g.i$)({passive:!0});let ae=(()=>{class t{constructor(t,e,n,i,r,o,a,l){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=o,this._dir=a,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=F.w.EMPTY,this._hoverSubscription=F.w.EMPTY,this._menuCloseSubscription=F.w.EMPTY,this._handleTouchStart=t=>{(0,Y.yG)(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new s.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=r instanceof ne?r:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,oe),o&&(o._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,oe),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ne&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===t||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,e instanceof ne?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,K.h)(t=>"void"===t.toState),(0,u.q)(1),(0,m.R)(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new jt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[i,s],[a,l]=[e,n],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(r="top"===i?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:r,overlayX:l,overlayY:i,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Rt.of)(),i=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,K.h)(t=>t!==this._menuItemInstance),(0,K.h)(()=>this._menuOpen)):(0,Rt.of)();return(0,J.T)(t,n,i,e)}_handleMousedown(t){(0,Y.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;(e===$.K5||e===$.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===$.SV&&"ltr"===this.dir||e===$.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,K.h)(t=>t===this._menuItemInstance&&!t.disabled),Bt(0,Dt.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ne&&this.menu._isAnimating?this.menu._animationDone.pipe((0,u.q)(1),Bt(0,Dt.E),(0,m.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new H.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(se),s.Y36(Qt,8),s.Y36(Xt,10),s.Y36(Ht.Is,8),s.Y36(Y.tE))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&s.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),le=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[re],imports:[z.BQ]}),t})(),ce=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[re],imports:[[P.ez,z.BQ,z.si,jt.U8,le],Vt.ZD,z.BQ,le]}),t})();const ue={tooltipState:(0,X.X$)("state",[(0,X.SB)("initial, void, hidden",(0,X.oB)({opacity:0,transform:"scale(0)"})),(0,X.SB)("visible",(0,X.oB)({transform:"scale(1)"})),(0,X.eR)("* => visible",(0,X.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,X.F4)([(0,X.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,X.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,X.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,X.eR)("* => hidden",(0,X.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,X.oB)({opacity:0})))])},he="tooltip-panel",de=(0,g.i$)({passive:!0}),pe=new s.OlP("mat-tooltip-scroll-strategy"),fe={provide:pe,deps:[jt.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},me=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let ge=(()=>{class t{constructor(t,e,n,i,s,r,a,l,c,u,h,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=r,this._ariaDescriber=a,this._focusMonitor=l,this._dir=u,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new o.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===$.hY&&!(0,$.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=d,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,m.R)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,de)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new H.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe((0,m.R)(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-${he}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,m.R)(this._destroyed)).subscribe(()=>{var t;return null===(t=this._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,u.q)(1),(0,m.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:n,originY:i}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===n?"left":"right":"start"===n?"left":"right":"bottom"===e&&"top"===i?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-${he}-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,de)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e!==n&&!n.contains(e)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),("on"===t||!e.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(Vt.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(g.t4),s.Y36(Y.$s),s.Y36(Y.tE),s.Y36(void 0),s.Y36(Ht.Is),s.Y36(void 0),s.Y36(P.K0))},t.\u0275dir=s.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),_e=(()=>{class t extends ge{constructor(t,e,n,i,s,r,o,a,l,c,u,h){super(t,e,n,i,s,r,o,a,l,c,u,h),this._tooltipComponent=be}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(Vt.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(g.t4),s.Y36(Y.$s),s.Y36(Y.tE),s.Y36(pe),s.Y36(Ht.Is,8),s.Y36(me,8),s.Y36(P.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),t})(),ye=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new o.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"===e&&!this.isVisible()&&this._onHide.next(),("visible"===e||"hidden"===e)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t}),t})(),be=(()=>{class t extends ye{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(x))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){2&t&&s.Udp("zoom","visible"===e._visibility?1:null)},features:[s.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.TgZ(0,"div",0),s.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),s.ALo(1,"async"),s._uU(2),s.qZA()),2&t){let t;s.ekj("mat-tooltip-handset",null==(t=s.lcZ(1,5,e._isHandset))?null:t.matches),s.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),s.xp6(2),s.Oqu(e.message)}},directives:[P.mk],pipes:[P.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ue.tooltipState]},changeDetection:0}),t})(),ve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[fe],imports:[[Y.rt,P.ez,jt.U8,z.BQ],z.BQ,Vt.ZD]}),t})();var we=n(1095);function xe(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(2).launch(e)}),s.TgZ(1,"div",15),s._UZ(2,"img",9),s._uU(3),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw(2);s.xp6(2),s.Q6J("src",n.getTransportIcon(t.id),s.LSH),s.xp6(1),s.hij(" ",t.name," ")}}function Ce(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).action("release")}),s.TgZ(1,"i",16),s._uU(2,"delete"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4," Release service"),s.qZA(),s.qZA()}}function Ee(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).action("reset")}),s.TgZ(1,"i",16),s._uU(2,"refresh"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4," Reset service"),s.qZA(),s.qZA()}}function ke(t,e){if(1&t&&(s.TgZ(0,"button",17),s.TgZ(1,"uds-translate"),s._uU(2,"Connections"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(2);s.Q6J("matMenuTriggerFor",t)}}function Se(t,e){if(1&t&&(s.TgZ(0,"button",17),s.TgZ(1,"uds-translate"),s._uU(2,"Actions"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(5);s.Q6J("matMenuTriggerFor",t)}}function Ae(t,e){if(1&t&&(s.TgZ(0,"button",18),s.TgZ(1,"i",16),s._uU(2,"menu"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(9);s.Q6J("matMenuTriggerFor",t)}}function Te(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"mat-menu",null,1),s.YNc(3,xe,4,2,"button",2),s.qZA(),s.TgZ(4,"mat-menu",null,3),s.YNc(6,Ce,5,0,"button",4),s.YNc(7,Ee,5,0,"button",4),s.qZA(),s.TgZ(8,"mat-menu",null,5),s.YNc(10,ke,3,1,"button",6),s.YNc(11,Se,3,1,"button",6),s.qZA(),s.TgZ(12,"div",7),s.TgZ(13,"div",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().launch(null)}),s._UZ(14,"img",9),s.qZA(),s.TgZ(15,"div",10),s.TgZ(16,"span",11),s._uU(17),s.qZA(),s.qZA(),s.TgZ(18,"div",12),s.YNc(19,Ae,3,1,"button",13),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.Q6J("ngForOf",t.service.transports),s.xp6(3),s.Q6J("ngIf",t.service.allow_users_remove),s.xp6(1),s.Q6J("ngIf",t.service.allow_users_reset),s.xp6(3),s.Q6J("ngIf",t.showTransportsMenu()),s.xp6(1),s.Q6J("ngIf",t.hasActions()),s.xp6(1),s.Q6J("ngClass",t.serviceClass)("matTooltipDisabled",""===t.serviceTooltip)("matTooltip",t.serviceTooltip),s.xp6(2),s.Q6J("src",t.serviceImage,s.LSH),s.xp6(2),s.Q6J("ngClass",t.serviceNameClass),s.xp6(1),s.Oqu(t.serviceName),s.xp6(2),s.Q6J("ngIf",t.hasMenu())}}let Oe=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}get serviceImage(){return this.api.galleryImageURL(this.service.imageId)}get serviceName(){let t=this.service.visual_name;return t.length>32&&(t=t.substring(0,29)+"..."),t}get serviceTooltip(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}get serviceClass(){const t=["service"];return null!=this.service.to_be_replaced?t.push("tobereplaced"):this.service.maintenance?t.push("maintenance"):this.service.not_accesible?t.push("forbidden"):this.service.in_use&&t.push("inuse"),t.length>1&&t.push("alert"),t}get serviceNameClass(){const t=[],e=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return e>=16&&t.push("small-"+e.toString()),t}getTransportIcon(t){return this.api.transportIconURL(t)}hasActions(){return this.service.allow_users_remove||this.service.allow_users_reset}showTransportsMenu(){return this.service.transports.length>1&&this.service.show_transports}hasMenu(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}notifyNotLaunching(t){this.api.gui.alert('

'+django.gettext("Launcher")+"

",t)}launch(t){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){const t=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching('

'+django.gettext("This service is currently not accesible due to schedule restrictions.")+'

'+t+'

')}else(null===t||!1===this.service.show_transports)&&(t=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(t.link)}action(t){const e=("release"===t?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,n="release"===t?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(e,django.gettext("Are you sure?")).subscribe(i=>{i&&this.api.action(t,this.service.id).subscribe(t=>{t&&this.api.gui.alert(e,n)})})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(t,e){1&t&&s.YNc(0,Te,20,12,"div",0),2&t&&s.Q6J("ngIf",e.service.transports.length>0)},directives:[P.O5,ie,P.sg,P.mk,_e,Xt,O.P,ae,we.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:rgba(0,0,0,.22);display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22)}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;border-radius:1px;background-color:rgba(255,255,255,.8)}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:"Material Icons";font-weight:normal;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"}']}),t})();function Pe(t,e){1&t&&s._UZ(0,"uds-service",8),2&t&&s.Q6J("service",e.$implicit)}function Ie(t,e){if(1&t&&(s.TgZ(0,"mat-expansion-panel",1),s.TgZ(1,"mat-expansion-panel-header",2),s.TgZ(2,"mat-panel-title"),s.TgZ(3,"div",3),s._UZ(4,"img",4),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"mat-panel-description",5),s._uU(7),s.qZA(),s.qZA(),s.TgZ(8,"div",6),s.YNc(9,Pe,1,1,"uds-service",7),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.Q6J("expanded",t.expanded),s.xp6(1),s.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),s.xp6(3),s.Q6J("src",t.groupImage,s.LSH),s.xp6(1),s.hij(" ",t.group.name,""),s.xp6(2),s.hij(" ",t.group.comments," "),s.xp6(2),s.Q6J("ngForOf",t.sortedServices)}}let Re=(()=>{class t{constructor(t){this.api=t,this.expanded=!1}ngOnInit(){}get groupImage(){return this.api.galleryImageURL(this.group.imageUuid)}get hasVisibleServices(){return this.services.length>0}get sortedServices(){return this.services.sort((t,e)=>t.name>e.name?1:t.name{class t{constructor(t){this.api=t,this.servicesInformation={autorun:!1,ip:"",nets:"",services:[],transports:""}}update(t){this.updateServices(t)}ngOnInit(){this.api.config.urls.launch?this.api.logout():this.loadServices()}autorun(){if(this.servicesInformation.autorun&&1===this.servicesInformation.services.length){if(!this.servicesInformation.services[0].maintenance)return this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(this.servicesInformation.services[0].transports[0].link),!0;this.api.gui.alert(django.gettext("Warning"),django.gettext("Service is in maintenance and cannot be executed"))}return!1}loadServices(){this.api.user.isRestricted&&this.api.logout(),this.api.getServicesInformation().subscribe(t=>{this.servicesInformation=t,this.autorun(),this.updateServices()})}updateServices(t=""){this.group=[];let e=null;this.servicesInformation.services.filter(e=>!t||e.visual_name.toLowerCase().includes(t)||e.group.name.toLowerCase().includes(t)).sort((t,e)=>t.group.priority!==e.group.priority?t.group.priority-e.group.priority:t.group.id>e.group.id?1:t.group.id{(null===e||t.group.id!==e.group.id)&&(null!==e&&this.group.push(e),e=new Fe(t.group)),e.services.push(t)}),null!==e&&this.group.push(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-services-page"]],decls:6,vars:3,consts:[[3,"updateEvent",4,"ngIf"],[1,"services-groups"],[3,"services","group","expanded",4,"ngFor","ngForOf"],[3,"updateEvent"],[3,"services","group","expanded"]],template:function(t,e){1&t&&(s.YNc(0,De,1,0,"uds-filter",0),s.TgZ(1,"div",1),s.TgZ(2,"mat-accordion"),s.YNc(3,Me,1,3,"uds-services-group",2),s.qZA(),s.qZA(),s.YNc(4,Le,1,0,"uds-filter",0),s._UZ(5,"uds-staff-info")),2&t&&(s.Q6J("ngIf",e.servicesInformation.services.length>=e.api.config.min_for_filter&&e.api.config.site_filter_on_top),s.xp6(3),s.Q6J("ngForOf",e.group),s.xp6(1),s.Q6J("ngIf",e.servicesInformation.services.length>=e.api.config.min_for_filter&&!e.api.config.site_filter_on_top))},directives:[P.O5,bt,P.sg,kt,It,Re],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),t})(),Be=(()=>{class t{constructor(t,e){this.api=t,this.route=e}ngOnInit(){this.getError()}getError(){const t=this.route.snapshot.paramMap.get("id");"19"===t&&(this.returnUrl="/mfa"),this.error="",this.api.getErrorInformation(t).subscribe(t=>{this.error=t.error})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n),s.Y36(k.gz))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-error"]],decls:14,vars:2,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],["mat-raised-button","","color","warn",3,"routerLink"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.O4$(),s.TgZ(2,"svg",2),s._UZ(3,"path",3),s.qZA(),s.TgZ(4,"svg",4),s._UZ(5,"path",5),s.qZA(),s.qZA(),s.kcU(),s.TgZ(6,"h1",6),s.TgZ(7,"uds-translate"),s._uU(8,"An error has occurred"),s.qZA(),s.qZA(),s.TgZ(9,"p",7),s._uU(10),s.qZA(),s.TgZ(11,"a",8),s.TgZ(12,"uds-translate"),s._uU(13,"Return"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(10),s.hij(" ",e.error," "),s.xp6(1),s.Q6J("routerLink",e.returnUrl))},directives:[O.P,we.zs,k.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),t})(),Ue=(()=>{class t{constructor(t){this.api=t,this.year=(new Date).getFullYear()}ngOnInit(){this.year<2021&&(this.year=2021)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-about"]],decls:45,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1"),s._uU(2),s.qZA(),s.TgZ(3,"h3"),s.TgZ(4,"a",1),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"h4"),s.TgZ(7,"uds-translate"),s._uU(8,"You can access UDS Open Source code at"),s.qZA(),s.TgZ(9,"a",2),s._uU(10,"OpenUDS github repository"),s.qZA(),s.qZA(),s.TgZ(11,"div",3),s.TgZ(12,"h2"),s.TgZ(13,"uds-translate"),s._uU(14,"UDS has been developed using these components:"),s.qZA(),s.qZA(),s.TgZ(15,"ul"),s.TgZ(16,"li"),s.TgZ(17,"a",4),s._uU(18,"Python"),s.qZA(),s.qZA(),s.TgZ(19,"li"),s.TgZ(20,"a",5),s._uU(21,"TypeScript"),s.qZA(),s.qZA(),s.TgZ(22,"li"),s.TgZ(23,"a",6),s._uU(24,"Django"),s.qZA(),s.qZA(),s.TgZ(25,"li"),s.TgZ(26,"a",7),s._uU(27,"Angular"),s.qZA(),s.qZA(),s.TgZ(28,"li"),s.TgZ(29,"a",8),s._uU(30,"Guacamole"),s.qZA(),s.qZA(),s.TgZ(31,"li"),s.TgZ(32,"a",9),s._uU(33,"weasyprint"),s.qZA(),s.qZA(),s.TgZ(34,"li"),s.TgZ(35,"a",10),s._uU(36,"Crystal project icons"),s.qZA(),s.qZA(),s.TgZ(37,"li"),s.TgZ(38,"a",11),s._uU(39,"Flattr Icons"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(40,"p"),s.TgZ(41,"small"),s._uU(42,"* "),s.TgZ(43,"uds-translate"),s._uU(44,"If you find that we missed any component, please let us know"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.AsE("Universal Desktop Services ",e.api.config.version," build ",e.api.config.version_stamp,""),s.xp6(3),s.hij(" \xa9 2012-",e.year," Virtual Cable S.L.U."))},directives:[O.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:normal}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px}"]}),t})(),Ze=(()=>{class t{constructor(t){this.api=t}ngOnInit(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"h1"),s.TgZ(3,"uds-translate"),s._uU(4,"UDS Service launcher"),s.qZA(),s.qZA(),s.TgZ(5,"h4"),s.TgZ(6,"uds-translate"),s._uU(7,"The service you have requested is being launched."),s.qZA(),s.qZA(),s.TgZ(8,"h5"),s.TgZ(9,"uds-translate"),s._uU(10,"Please, note that reloading this page will not work."),s.qZA(),s.qZA(),s.TgZ(11,"h5"),s.TgZ(12,"uds-translate"),s._uU(13,"To relaunch service, you will have to do it from origin."),s.qZA(),s.qZA(),s.TgZ(14,"h6"),s.TgZ(15,"uds-translate"),s._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),s.qZA(),s.qZA(),s.TgZ(17,"h6"),s.TgZ(18,"uds-translate"),s._uU(19,"You can obtain it from the"),s.qZA(),s._uU(20,"\xa0"),s.TgZ(21,"a",2),s.TgZ(22,"uds-translate"),s._uU(23,"UDS Client download page"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA())},directives:[O.P,k.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:rgba(0,0,0,.22);padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:normal}"]}),t})();var qe=n(665),je=n(8553);const Ve=["input"],He=function(t){return{enterDuration:t}},ze=["*"],Ye=new s.OlP("mat-checkbox-default-options",{providedIn:"root",factory:Ge});function Ge(){return{color:"accent",clickAction:"check-indeterminate"}}let Ke=0;const $e=Ge(),We={provide:qe.JU,useExisting:(0,s.Gpc)(()=>Xe),multi:!0};class Qe{}const Je=(0,z.sb)((0,z.pj)((0,z.Kr)((0,z.Id)(class{constructor(t){this._elementRef=t}}))));let Xe=(()=>{class t extends Je{constructor(t,e,n,i,r,o,a){super(t),this._changeDetectorRef=e,this._focusMonitor=n,this._ngZone=i,this._animationMode=o,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++Ke,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.vpe,this.indeterminateChange=new s.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||$e,this.color=this.defaultColor=this._options.color||$e.color,this.tabIndex=parseInt(r)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=(0,r.Ig)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=(0,r.Ig)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new Qe;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const n=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===n?!this.disabled&&"noop"===n&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==n&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let n="";switch(t){case 0:if(1===e)n="unchecked-checked";else{if(3!=e)return"";n="unchecked-indeterminate"}break;case 2:n=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${n}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Y.tE),s.Y36(s.R0b),s.$8M("tabindex"),s.Y36(W.Qb,8),s.Y36(Ye,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(s.Gf(Ve,5),s.Gf(z.wG,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._inputElement=t.first),s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",null),s.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s._Bn([We]),s.qOj],ngContentSelectors:ze,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"span",2),s.TgZ(3,"input",3,4),s.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(5,"span",5),s._UZ(6,"span",6),s.qZA(),s._UZ(7,"span",7),s.TgZ(8,"span",8),s.O4$(),s.TgZ(9,"svg",9),s._UZ(10,"path",10),s.qZA(),s.kcU(),s._UZ(11,"span",11),s.qZA(),s.qZA(),s.TgZ(12,"span",12,13),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(14,"span",14),s._uU(15,"\xa0"),s.qZA(),s.Hsn(16),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),n=s.MAs(13);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),s.xp6(1),s.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.VKq(19,He,"NoopAnimations"===e._animationMode?0:150))}},directives:[z.wG,je.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})(),tn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),en=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[z.si,z.BQ,je.Q8,tn],z.BQ,tn]}),t})();const nn=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:Ne,canActivate:[A]},{path:"login",component:T.G},{path:"login/:id",component:T.G},{path:"mfa",component:(()=>{class t{constructor(t){this.api=t}ngOnInit(){document.getElementById("mfaform").action=this.api.config.urls.mfa,this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}launch(){return document.getElementById("mfaform").submit(),!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-mfa"]],decls:21,vars:2,consts:[["id","mfaform","method","post",3,"ngSubmit"],[1,"mfa-container"],[1,"mfa-brand"],[3,"src"],[1,"mfa-info"],[1,"mfa-form"],[1,"mfa-field"],["appearance","standard"],["matInput","","id","code","name","code","value","","required","","autofocus",""],["id","remember","name","remember"],[1,"mfa-button"],["mat-stroked-button","","color","primary","type","submit"]],template:function(t,e){1&t&&(s.TgZ(0,"form",0),s.NdJ("ngSubmit",function(){return e.launch()}),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s._UZ(3,"img",3),s.qZA(),s.TgZ(4,"div",4),s.TgZ(5,"uds-translate"),s._uU(6,"Login Verification"),s.qZA(),s.qZA(),s.TgZ(7,"div",5),s.TgZ(8,"div",6),s.TgZ(9,"mat-form-field",7),s.TgZ(10,"mat-label"),s._uU(11),s.qZA(),s._UZ(12,"input",8),s.qZA(),s.qZA(),s.TgZ(13,"div",6),s.TgZ(14,"mat-checkbox",9),s.TgZ(15,"uds-translate"),s._uU(16,"Remember Me"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(17,"div",10),s.TgZ(18,"button",11),s.TgZ(19,"uds-translate"),s._uU(20,"Submit"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Q6J("src",e.api.staticURL("modern/img/login-img.png"),s.LSH),s.xp6(8),s.hij(" ",e.api.config.mfa.label," "))},directives:[qe._Y,qe.JL,qe.F,O.P,Tt.KE,Tt.hX,Ot.Nt,Xe,we.lW],styles:[".mfa-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.mfa-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.mfa-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.mfa-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.mfa-form[_ngcontent-%COMP%]{min-width:80%}}"]}),t})()},{path:"client-download",component:R},{path:"downloads",component:L,canActivate:[A]},{path:"error/:id",component:Be},{path:"about",component:Ue},{path:"ticket/launcher",component:Ze},{path:"**",redirectTo:"services"}];let sn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[k.Bz.forRoot(nn,{relativeLinkResolution:"legacy"})],k.Bz]}),t})();var rn=n(2238),on=n(7441);const an=["*",[["mat-toolbar-row"]]],ln=["*","mat-toolbar-row"],cn=(0,z.pj)(class{constructor(t){this._elementRef=t}});let un=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),hn=(()=>{class t extends cn{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(g.t4),s.Y36(P.K0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,un,5),2&t){let t;s.iGM(t=s.CRH())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.qOj],ngContentSelectors:ln,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t(an),s.Hsn(0),s.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),dn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[z.BQ],z.BQ]}),t})(),pn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:Tt.o2,useValue:{floatLabel:"always"}}],imports:[qe.u5,dn,we.ot,ce,ve,vt,rn.Is,Tt.lN,Ot.c,on.LD,en]}),t})();function fn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(2).changeLang(e)}),s._uU(1),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.name)}}function mn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).admin()}),s.TgZ(1,"i",23),s._uU(2,"dashboard"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4,"Dashboard"),s.qZA(),s.qZA()}}function gn(t,e){1&t&&(s.TgZ(0,"button",28),s.TgZ(1,"i",23),s._uU(2,"file_download"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4,"Downloads"),s.qZA(),s.qZA())}function _n(t,e){if(1&t&&(s.TgZ(0,"button",14),s._uU(1),s.qZA()),2&t){s.oxw();const t=s.MAs(8),e=s.oxw();s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.Oqu(e.api.user.user)}}function yn(t,e){if(1&t&&(s.TgZ(0,"button",25),s._uU(1),s.TgZ(2,"i",23),s._uU(3,"arrow_drop_down"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(8),e=s.oxw();s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",e.api.user.user," ")}}function bn(t,e){if(1&t){const t=s.EpF();s.ynx(0),s.TgZ(1,"form",1),s._UZ(2,"input",2),s._UZ(3,"input",3),s.qZA(),s.TgZ(4,"mat-menu",null,4),s.YNc(6,fn,2,1,"button",5),s.qZA(),s.TgZ(7,"mat-menu",null,6),s.YNc(9,mn,5,0,"button",7),s.YNc(10,gn,5,0,"button",8),s.TgZ(11,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().logout()}),s.TgZ(12,"i",10),s._uU(13,"exit_to_app"),s.qZA(),s.TgZ(14,"uds-translate"),s._uU(15,"Logout"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(16,"mat-menu",11,12),s.YNc(18,_n,2,2,"button",13),s.TgZ(19,"button",14),s._uU(20),s.qZA(),s.TgZ(21,"button",15),s.TgZ(22,"uds-translate"),s._uU(23,"UDS Client"),s.qZA(),s.qZA(),s.TgZ(24,"button",16),s.TgZ(25,"uds-translate"),s._uU(26,"About"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(27,"mat-toolbar",17),s.TgZ(28,"button",18),s._UZ(29,"img",19),s._uU(30),s.qZA(),s._UZ(31,"span",20),s.TgZ(32,"div",21),s.TgZ(33,"button",22),s.TgZ(34,"i",23),s._uU(35,"file_download"),s.qZA(),s.TgZ(36,"uds-translate"),s._uU(37,"UDS Client"),s.qZA(),s.qZA(),s.TgZ(38,"button",24),s.TgZ(39,"i",23),s._uU(40,"info"),s.qZA(),s.TgZ(41,"uds-translate"),s._uU(42,"About"),s.qZA(),s.qZA(),s.TgZ(43,"button",25),s._uU(44),s.TgZ(45,"i",23),s._uU(46,"arrow_drop_down"),s.qZA(),s.qZA(),s.YNc(47,yn,4,2,"button",26),s.qZA(),s.TgZ(48,"div",27),s.TgZ(49,"button",25),s.TgZ(50,"i",23),s._uU(51,"menu"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.BQk()}if(2&t){const t=s.MAs(5),e=s.MAs(17),n=s.oxw();s.xp6(1),s.s9C("action",n.api.config.urls.changeLang,s.LSH),s.xp6(1),s.s9C("name",n.api.csrfField),s.s9C("value",n.api.csrfToken),s.xp6(1),s.s9C("value",n.lang.id),s.xp6(3),s.Q6J("ngForOf",n.langs),s.xp6(3),s.Q6J("ngIf",n.api.user.isStaff),s.xp6(1),s.Q6J("ngIf",n.api.user.isStaff),s.xp6(8),s.Q6J("ngIf",n.api.user.isLogged),s.xp6(1),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",n.lang.name," "),s.xp6(9),s.Q6J("src",n.api.staticURL("modern/img/udsicon.png"),s.LSH),s.xp6(1),s.hij(" ",n.api.config.site_logo_name," "),s.xp6(13),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",n.lang.name," "),s.xp6(3),s.Q6J("ngIf",n.api.user.isLogged),s.xp6(2),s.Q6J("matMenuTriggerFor",e)}}let vn=(()=>{class t{constructor(t){this.api=t,this.style="";const e=t.config.language;this.langs=[];for(const n of t.config.available_languages)n.id===e?this.lang=n:this.langs.push(n)}ngOnInit(){}changeLang(t){return this.lang=t,document.getElementById("id_language").attributes.value.value=t.id,document.getElementById("form_language").submit(),!1}admin(){this.api.gotoAdmin()}logout(){this.api.logout()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(t,e){1&t&&s.YNc(0,bn,52,16,"ng-container",0),2&t&&s.Q6J("ngIf",""===e.api.config.urls.launch)},directives:[P.O5,qe._Y,qe.JL,qe.F,ie,P.sg,Xt,O.P,ae,k.rH,hn,we.lW],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),t})(),wn=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"a",0),s._uU(2),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Q6J("href",e.api.config.site_copyright_link,s.LSH),s.xp6(1),s.Oqu(e.api.config.site_copyright_info))},styles:[""]}),t})(),xn=(()=>{class t{constructor(){this.title="uds"}ngOnInit(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-root"]],decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,e){1&t&&(s._UZ(0,"uds-navbar"),s.TgZ(1,"div",0),s.TgZ(2,"div",1),s._UZ(3,"router-outlet"),s.qZA(),s.TgZ(4,"div",2),s._UZ(5,"uds-footer"),s.qZA(),s.qZA())},directives:[vn,k.lC,wn],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),t})();var Cn=n(3183);let En=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t,bootstrap:[xn]}),t.\u0275inj=s.cJS({providers:[S.n,Cn.h],imports:[[i.b2,_,E.JF,sn,W.PW,pn]]}),t})();n(2340).N.production&&(0,s.G48)(),i.q6().bootstrapModule(En).catch(t=>console.log(t))}},function(t){t(t.s=6445)}]); \ No newline at end of file +(self.webpackChunkuds=self.webpackChunkuds||[]).push([[179],{8255:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=8255,t.exports=e},7238:function(t,e,n){"use strict";n.d(e,{l3:function(){return r},_j:function(){return i},LC:function(){return s},ZN:function(){return g},jt:function(){return a},pV:function(){return p},F4:function(){return h},IO:function(){return f},vP:function(){return l},SB:function(){return u},oB:function(){return c},eR:function(){return d},X$:function(){return o},ZE:function(){return _},k1:function(){return y}});class i{}class s{}const r="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function u(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t){return{type:5,steps:t}}function d(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function p(t=null){return{type:9,options:t}}function f(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function m(t){Promise.resolve(null).then(t)}class g{constructor(t=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=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){m(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const s=this.players.length;0==s?m(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const y="!"},9238:function(t,e,n){"use strict";n.d(e,{rt:function(){return et},s1:function(){return R},$s:function(){return T},Em:function(){return D},tE:function(){return W},qV:function(){return B},qm:function(){return tt},Kd:function(){return G},X6:function(){return U},yG:function(){return Z}});var i=n(8583),s=n(3018),r=n(9765),o=n(5319),a=n(6215),l=n(5917),c=n(6461),u=n(3342),h=n(4395),d=n(5435),p=n(8002),f=n(5257),m=n(3653),g=n(7519),_=n(6782),y=n(9490),b=n(521),v=n(8553);function w(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const x="cdk-describedby-message-container",C="cdk-describedby-message",E="cdk-describedby-host";let k=0;const S=new Map;let A=null,T=(()=>{class t{constructor(t){this._document=t}describe(t,e,n){if(!this._canBeDescribed(t,e))return;const i=O(e,n);"string"!=typeof e?(P(e),S.set(i,{messageElement:e,referenceCount:0})):S.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}removeDescription(t,e,n){if(!e||!this._isElementNode(t))return;const i=O(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){const t=S.get(i);t&&0===t.referenceCount&&this._deleteMessageElement(i)}A&&0===A.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll(`[${E}]`);for(let e=0;e0!=t.indexOf(C));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=S.get(e);(function(t,e,n){const i=w(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))})(t,"aria-describedby",n.messageElement.id),t.setAttribute(E,""),n.referenceCount++}_removeMessageReference(t,e){const n=S.get(e);n.referenceCount--,function(t,e,n){const i=w(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(E)}_isElementDescribedByMessage(t,e){const n=w(t,"aria-describedby"),i=S.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.K0))},token:t,providedIn:"root"}),t})();function O(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function P(t){t.id||(t.id=`${C}-${k++}`)}class I{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new r.xQ,this._typeaheadSubscription=o.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new r.xQ,this.change=new r.xQ,t instanceof s.n_E&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,u.b)(t=>this._pressedLetters.push(t)),(0,h.b)(t),(0,d.h)(()=>this._pressedLetters.length>0),(0,p.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.Mf:return void this.tabOut.next();case c.JH:if(this._vertical&&n){this.setNextItemActive();break}return;case c.LH:if(this._vertical&&n){this.setPreviousItemActive();break}return;case c.SV:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.oh:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.Sd:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case c.uR:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||(0,c.Vb)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.A&&e<=c.Z||e>=c.xE&&e<=c.aO)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.n_E?this._items.toArray():this._items}}class R extends I{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class D extends I{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let M=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}(function(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(t));if(e&&(-1===F(e)||!this.isVisible(e)))return!1;let n=t.nodeName.toLowerCase(),i=F(t);return t.hasAttribute("contenteditable")?-1!==i:!("iframe"===n||"object"===n||this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==i:"video"===n?-1!==i&&(null!==i||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||L(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4))},token:t,providedIn:"root"}),t})();function L(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function F(t){if(!L(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class N{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(t)}}let B=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new N(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(M),s.LFG(s.R0b),s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(M),s.LFG(s.R0b),s.LFG(i.K0))},token:t,providedIn:"root"}),t})();function U(t){return 0===t.offsetX&&0===t.offsetY}function Z(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&∈const q=new s.OlP("cdk-input-modality-detector-options"),j={ignoreKeys:[c.zL,c.jx,c.b2,c.MW,c.JU]},V=(0,b.i$)({passive:!0,capture:!0});let H=(()=>{class t{constructor(t,e,n,i){this._platform=t,this._mostRecentTarget=null,this._modality=new a.X(null),this._lastTouchMs=0,this._onKeydown=t=>{var e,n;(null===(n=null===(e=this._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some(e=>e===t.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,b.sA)(t))},this._onMousedown=t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(U(t)?"keyboard":"mouse"),this._mostRecentTarget=(0,b.sA)(t))},this._onTouchstart=t=>{Z(t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,b.sA)(t))},this._options=Object.assign(Object.assign({},j),i),this.modalityDetected=this._modality.pipe((0,m.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,g.x)()),t.isBrowser&&e.runOutsideAngular(()=>{n.addEventListener("keydown",this._onKeydown,V),n.addEventListener("mousedown",this._onMousedown,V),n.addEventListener("touchstart",this._onTouchstart,V)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,V),document.removeEventListener("mousedown",this._onMousedown,V),document.removeEventListener("touchstart",this._onTouchstart,V))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4),s.LFG(s.R0b),s.LFG(i.K0),s.LFG(q,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4),s.LFG(s.R0b),s.LFG(i.K0),s.LFG(q,8))},token:t,providedIn:"root"}),t})();const z=new s.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Y=new s.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let G=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),n=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e,n,i,s){this._ngZone=t,this._platform=e,this._inputModalityDetector=n,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new r.xQ,this._rootNodeFocusAndBlurListener=t=>{const e=(0,b.sA)(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=i,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,e=!1){const n=(0,y.fI)(t);if(!this._platform.isBrowser||1!==n.nodeType)return(0,l.of)(null);const i=(0,b.kV)(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new r.xQ,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=(0,y.fI)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=(0,y.fI)(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOrigin(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOrigin(t,e=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&e,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,e){const n=this._elementInfo.get(e),i=(0,b.sA)(t);!n||!n.checkChildren&&e!==i||this._originChanged(e,this._getFocusOrigin(i),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,$),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,$)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,_.R)(this._stopInputModalityDetector)).subscribe(t=>{this._setOrigin(t,!0)}))}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,$),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,$),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(b.t4),s.LFG(H),s.LFG(i.K0,8),s.LFG(K,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(b.t4),s.LFG(H),s.LFG(i.K0,8),s.LFG(K,8))},token:t,providedIn:"root"}),t})();const Q="cdk-high-contrast-black-on-white",J="cdk-high-contrast-white-on-black",X="cdk-high-contrast-active";let tt=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(X),t.remove(Q),t.remove(J),this._hasCheckedHighContrastMode=!0;const e=this.getHighContrastMode();1===e?(t.add(X),t.add(Q)):2===e&&(t.add(X),t.add(J))}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(b.t4),s.LFG(i.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(b.t4),s.LFG(i.K0))},token:t,providedIn:"root"}),t})(),et=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(tt))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[b.ud,v.Q8]]}),t})()},946:function(t,e,n){"use strict";n.d(e,{vT:function(){return a},Is:function(){return o}});var i=n(3018),s=n(8583);const r=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,i.f3M)(s.K0)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.vpe,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(r,8))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(r,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},8345:function(t,e,n){"use strict";n.d(e,{P3:function(){return l},Ov:function(){return u},A8:function(){return h},eX:function(){return c},k:function(){return d},Z9:function(){return a}});var i=n(5639),s=n(5917),r=n(9765),o=n(3018);function a(t){return t&&"function"==typeof t.connect}class l extends class{}{constructor(t){super(),this._data=t}connect(){return(0,i.b)(this._data)?this._data:(0,s.of)(this._data)}disconnect(){}}class c{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,s){t.forEachOperation((t,r,o)=>{let a,l;null==t.previousIndex?(a=this._insertView(()=>n(t,r,o),o,e,i(t)),l=a?1:0):null==o?(this._detachAndCacheView(r,e),l=3):(a=this._moveView(r,o,e,i(t)),l=2),s&&s({context:null==a?void 0:a.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,n,i){const s=this._insertViewFromCache(e,n);if(s)return void(s.context.$implicit=i);const r=t();return n.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(t,e){const n=e.detach(t);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const s=n.get(t);return n.move(s,e),s.context.$implicit=i,s}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}let h=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();const d=new o.OlP("_ViewRepeater")},6461:function(t,e,n){"use strict";n.d(e,{A:function(){return y},zL:function(){return a},jx:function(){return o},JH:function(){return m},uR:function(){return u},K5:function(){return s},hY:function(){return l},Sd:function(){return h},oh:function(){return d},b2:function(){return w},MW:function(){return v},aO:function(){return _},SV:function(){return f},JU:function(){return r},L_:function(){return c},Mf:function(){return i},LH:function(){return p},Z:function(){return b},xE:function(){return g},Vb:function(){return x}});const i=9,s=13,r=16,o=17,a=18,l=27,c=32,u=35,h=36,d=37,p=38,f=39,m=40,g=48,_=57,y=65,b=90,v=91,w=224;function x(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},8553:function(t,e,n){"use strict";n.d(e,{wD:function(){return u},yq:function(){return c},Q8:function(){return h}});var i=n(9490),s=n(3018),r=n(7574),o=n(9765),a=n(4395);let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=(0,i.fI)(t);return new r.y(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.xQ,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(l))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(l))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new s.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,i.Ig)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=(0,i.su)(t),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe((0,a.b)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(c),s.Y36(s.SBq),s.Y36(s.R0b))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[l]}),t})()},625:function(t,e,n){"use strict";n.d(e,{pI:function(){return J},xu:function(){return Q},aV:function(){return K},X_:function(){return A},Xj:function(){return L},U8:function(){return tt}});var i=n(9243),s=n(3018),r=n(521),o=n(946),a=n(8583),l=n(9490),c=n(7636),u=n(9765),h=n(5319),d=n(6682),p=n(7393);class f{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new m(t,this.predicate,this.inclusive))}}class m extends p.L{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}var g=n(5257),_=n(6782),y=n(6461);const b=(0,r.Mq)();class v{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=(0,l.HM)(-this._previousScrollPosition.left),t.style.top=(0,l.HM)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),b&&(e.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),b&&(e.scrollBehavior=i,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class w{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class x{enable(){}disable(){}attach(){}}function C(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function E(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class k{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();C(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let S=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new x,this.close=t=>new w(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new v(this._viewportRuler,this._document),this.reposition=t=>new k(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.mF),s.LFG(i.rL),s.LFG(s.R0b),s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.mF),s.LFG(i.rL),s.LFG(s.R0b),s.LFG(a.K0))},token:t,providedIn:"root"}),t})();class A{constructor(t){if(this.scrollStrategy=new x,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class T{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class O{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let P=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends P{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0))},token:t,providedIn:"root"}),t})(),R=(()=>{class t extends P{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=(0,r.sA)(t),n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(a.K0),s.LFG(r.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(a.K0),s.LFG(r.t4))},token:t,providedIn:"root"}),t})();const D="undefined"!=typeof window?window:{},M=void 0!==D.__karma__&&!!D.__karma__||void 0!==D.jasmine&&!!D.jasmine||void 0!==D.jest&&!!D.jest||void 0!==D.Mocha&&!!D.Mocha;let L=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||M){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new u.xQ,this._outsidePointerEvents=new u.xQ,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=(0,l.HM)(this._config.width),t.height=(0,l.HM)(this._config.height),t.minWidth=(0,l.HM)(this._config.minWidth),t.minHeight=(0,l.HM)(this._config.minHeight),t.maxWidth=(0,l.HM)(this._config.maxWidth),t.maxHeight=(0,l.HM)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(!t)return;let e,n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;(0,l.Eq)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe((0,_.R)((0,d.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const N="cdk-overlay-connected-position-bounding-box",B=/([A-Za-z%]+)$/;class U{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new u.xQ,this._resizeSubscription=h.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(N),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Z(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(N),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){const s=j(e);let{x:r,y:o}=t,a=this._getOffset(i,"x"),l=this._getOffset(i,"y");a&&(r+=a),l&&(o+=l);let c=0-o,u=o+s.height-n.height,h=this._subtractOverflows(s.width,0-r,r+s.width-n.width),d=this._subtractOverflows(s.height,c,u),p=h*d;return{visibleArea:p,isCompletelyWithinViewport:s.width*s.height===p,fitsInViewportVertically:d===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=q(this._overlayRef.getConfig().minHeight),o=q(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=j(e),s=this._viewportRect,r=Math.max(t.x+i.width-s.width,0),o=Math.max(t.y+i.height-s.height,0),a=Math.max(s.top-n.top-t.y,0),l=Math.max(s.left-n.left-t.x,0);let c=0,u=0;return c=i.width<=s.width?l||-r:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=(0,l.HM)(n.height),i.top=(0,l.HM)(n.top),i.bottom=(0,l.HM)(n.bottom),i.width=(0,l.HM)(n.width),i.left=(0,l.HM)(n.left),i.right=(0,l.HM)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=(0,l.HM)(t)),s&&(i.maxWidth=(0,l.HM)(s))}this._lastBoundingBoxSize=n,Z(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Z(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Z(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();Z(n,this._getExactOverlayY(e,t,i)),Z(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),c&&(o+=`translateY(${c}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=(0,l.HM)(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=(0,l.HM)(r.maxWidth):s&&(n.maxWidth="")),Z(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=(0,l.HM)(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=(0,l.HM)(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:E(t,n),isOriginOutsideView:C(t,n),isOverlayClipped:E(e,n),isOverlayOutsideView:C(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&(0,l.Eq)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.SBq)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function Z(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function q(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(B);return n&&"px"!==n?null:parseFloat(e)}return t||null}function j(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class V{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new U(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new T(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const H="cdk-global-overlay-wrapper";class z{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(H),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(H),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Y=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new z}connectedTo(t,e,n){return new V(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new U(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.rL),s.LFG(a.K0),s.LFG(r.t4),s.LFG(L))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.rL),s.LFG(a.K0),s.LFG(r.t4),s.LFG(L))},token:t,providedIn:"root"}),t})(),G=0,K=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new A(t);return s.direction=s.direction||this._directionality.value,new F(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+G++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.z2F)),new c.u0(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(S),s.LFG(L),s.LFG(s._Vd),s.LFG(Y),s.LFG(I),s.LFG(s.zs3),s.LFG(s.R0b),s.LFG(a.K0),s.LFG(o.Is),s.LFG(a.Ye),s.LFG(R))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const $=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],W=new s.OlP("cdk-connected-overlay-scroll-strategy");let Q=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),J=(()=>{class t{constructor(t,e,n,i,r){this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.vpe,this.positionChange=new s.vpe,this.attach=new s.vpe,this.detach=new s.vpe,this.overlayKeydown=new s.vpe,this.overlayOutsideClick=new s.vpe,this._templatePortal=new c.UE(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,l.Ig)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=(0,l.Ig)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=(0,l.Ig)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=(0,l.Ig)(t)}get push(){return this._push}set push(t){this._push=(0,l.Ig)(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=$);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode===y.hY&&!this.disableClose&&!(0,y.Vb)(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new A({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return n=>n.lift(new f(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(K),s.Y36(s.Rgc),s.Y36(s.s_b),s.Y36(W),s.Y36(o.Is,8))},t.\u0275dir=s.lG2({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.TTD]}),t})();const X={provide:W,deps:[K],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[K,X],imports:[[o.vT,c.eL,i.Cl],i.Cl]}),t})()},521:function(t,e,n){"use strict";n.d(e,{t4:function(){return a},ud:function(){return l},sA:function(){return v},ht:function(){return b},kV:function(){return y},_i:function(){return _},qK:function(){return u},i$:function(){return m},Mq:function(){return g}});var i=n(3018),s=n(8583);let r;try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(w){r=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?(0,s.NF)(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&&!r)&&"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)(i.LFG(i.Lbi))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(i.Lbi))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(c),o;let t=document.createElement("input");return o=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let h,d,p,f;function m(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function g(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if("scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return p}function _(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function y(t){if(function(){if(null==f){const t="undefined"!=typeof document?document.head:null;f=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function b(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function v(t){return t.composedPath?t.composedPath()[0]:t.target}},7636:function(t,e,n){"use strict";n.d(e,{en:function(){return c},Pl:function(){return h},C5:function(){return o},u0:function(){return u},eL:function(){return d},UE:function(){return a}});var i=n(3018),s=n(8583);class r{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class o extends r{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class a extends r{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class l extends r{constructor(t){super(),this.element=t instanceof i.SBq?t.nativeElement:t}}class c{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof o?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class u extends c{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let h=(()=>{class t extends c{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(s.K0))},t.\u0275dir=i.lG2({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},9243:function(t,e,n){"use strict";n.d(e,{ZD:function(){return y},mF:function(){return g},Cl:function(){return b},rL:function(){return _}});var i=n(9490),s=n(3018),r=n(6465),o=n(6102);new class extends o.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});var a=n(9765),l=n(5917),c=n(7574),u=n(2759);n(4581);n(5319),n(5639),n(7393),new class extends o.v{}(class extends r.o{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}),n(1593),n(7971),n(8858),n(7519);var h=n(628),d=n(5435),p=(n(6782),n(9761),n(3190),n(521)),f=n(8583),m=n(946);n(8345);let g=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new a.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new c.y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe((0,h.e)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,l.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe((0,d.h)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=(0,i.fI)(e),s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return(0,u.R)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.R0b),s.LFG(p.t4),s.LFG(f.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(s.R0b),s.LFG(p.t4),s.LFG(f.K0,8))},token:t,providedIn:"root"}),t})(),_=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new a.xQ,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe((0,h.e)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(p.t4),s.LFG(s.R0b),s.LFG(f.K0,8))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(p.t4),s.LFG(s.R0b),s.LFG(f.K0,8))},token:t,providedIn:"root"}),t})(),y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[m.vT,p.ud,y],m.vT,y]}),t})()},9490:function(t,e,n){"use strict";n.d(e,{Eq:function(){return o},Ig:function(){return s},HM:function(){return a},fI:function(){return l},su:function(){return r}});var i=n(3018);function s(t){return null!=t&&"false"!=`${t}`}function r(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function o(t){return Array.isArray(t)?t:[t]}function a(t){return null==t?"":"string"==typeof t?t:`${t}px`}function l(t){return t instanceof i.SBq?t.nativeElement:t}},8583:function(t,e,n){"use strict";n.d(e,{mr:function(){return v},Ov:function(){return Y},ez:function(){return G},K0:function(){return l},Do:function(){return x},V_:function(){return h},Ye:function(){return C},S$:function(){return y},mk:function(){return I},sg:function(){return D},O5:function(){return L},RF:function(){return U},n9:function(){return Z},ED:function(){return q},b0:function(){return w},lw:function(){return c},EM:function(){return W},JF:function(){return X},NF:function(){return $},w_:function(){return a},bD:function(){return K},q:function(){return r},Mx:function(){return P},HT:function(){return o}});var i=n(3018);let s=null;function r(){return s}function o(t){s||(s=t)}class a{}const l=new i.OlP("DocumentToken");let c=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return(0,i.LFG)(d)}const h=new i.OlP("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return r().getBaseHref(this._doc)}onPopState(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=r().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(l))},t.\u0275prov=(0,i.Yz7)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d((0,i.LFG)(l))}function m(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function _(t){return t&&"?"!==t[0]?"?"+t:t}let y=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:b,token:t,providedIn:"root"}),t})();function b(t){const e=(0,i.LFG)(l).location;return new w((0,i.LFG)(c),e&&e.origin||"")}const v=new i.OlP("appBaseHref");let w=(()=>{class t extends y{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+_(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+_(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+_(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(v,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t extends y{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+_(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+_(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(v,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e){this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(k(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+_(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,k(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+_(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(y),i.LFG(c))},t.normalizeQueryParams=_,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=(0,i.Yz7)({factory:E,token:t,providedIn:"root"}),t})();function E(){return new C((0,i.LFG)(y),(0,i.LFG)(c))}function k(t){return t.replace(/\/index.html$/,"")}var S=(()=>((S=S||{})[S.Zero=0]="Zero",S[S.One=1]="One",S[S.Two=2]="Two",S[S.Few=3]="Few",S[S.Many=4]="Many",S[S.Other=5]="Other",S))();const A=i.kL8;class T{}let O=(()=>{class t extends T{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(A(e||this.locale)(t)){case S.Zero:return"zero";case S.One:return"one";case S.Two:return"two";case S.Few:return"few";case S.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.soG))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function P(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let I=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.AaK)(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class R{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 D=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(t){return t.name||typeof t}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new R(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new M(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new M(t,s);e.push(r)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class M{constructor(t,e){this.record=t,this.view=e}}let L=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new F,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){N("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){N("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class F{constructor(){this.$implicit=null,this.ngIf=null}}function N(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.AaK)(e)}'.`)}class B{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let U=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new B(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(U,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),q=(()=>{class t{constructor(t,e,n){n._addDefault(new B(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(U,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchDefault",""]]}),t})();class j{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class V{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const H=new V,z=new j;let Y=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,i.QGY)(e))return H;if((0,i.F4k)(e))return z;throw function(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,i.AaK)(t)}'`)}(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO,16))},t.\u0275pipe=i.Yjl({name:"async",type:t,pure:!1}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:T,useClass:O}]}),t})();const K="browser";function $(t){return t===K}let W=(()=>{class t{}return t.\u0275prov=(0,i.Yz7)({token:t,providedIn:"root",factory:()=>new Q((0,i.LFG)(l),window)}),t})();class Q{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=J(this.window.history)||J(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function J(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class X{}},1841:function(t,e,n){"use strict";n.d(e,{eN:function(){return P},JF:function(){return V}});var i=n(8583),s=n(3018),r=n(5917),o=n(7574),a=n(4612),l=n(5435),c=n(8002);class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return g(t)}encodeValue(t){return g(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const f=/%(\d[a-f0-9])/gi,m={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function g(t){return encodeURIComponent(t).replace(f,(t,e)=>{var n;return null!==(n=m[e])&&void 0!==n?n:t})}function _(t){return`${t}`}class y{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new y({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(_(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(_(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class b{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function v(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function w(t){return"undefined"!=typeof Blob&&t instanceof Blob}function x(t){return"undefined"!=typeof FormData&&t instanceof FormData}class C{constructor(t,e,n,i){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.context||(this.context=new b),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new C(n,i,r,{params:c,headers:l,context:u,reportProgress:a,responseType:s,withCredentials:o})}}var E=(()=>((E=E||{})[E.Sent=0]="Sent",E[E.UploadProgress=1]="UploadProgress",E[E.ResponseHeader=2]="ResponseHeader",E[E.DownloadProgress=3]="DownloadProgress",E[E.Response=4]="Response",E[E.User=5]="User",E))();class k{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class S extends k{constructor(t={}){super(t),this.type=E.ResponseHeader}clone(t={}){return new S({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class A extends k{constructor(t={}){super(t),this.type=E.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new A({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class T extends k{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function O(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let P=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof C)i=t;else{let s,r;s=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(r=n.params instanceof y?n.params:new y({fromObject:n.params})),i=new C(t,e,void 0!==n.body?n.body:null,{headers:s,context:n.context,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=(0,r.of)(i).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof C||"events"===n.observe)return s;const o=s.pipe((0,l.h)(t=>t instanceof A));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe((0,c.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe((0,c.U)(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new y).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,O(n,e))}post(t,e,n={}){return this.request("POST",t,O(n,e))}put(t,e,n={}){return this.request("PUT",t,O(n,e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(u))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class I{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const R=new s.OlP("HTTP_INTERCEPTORS");let D=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const M=/^\)\]\}',?\n/;let L=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new S({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(M,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new A({body:l,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new T({error:l,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new T({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let s={type:E.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&!!n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:E.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:E.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",o),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.JF))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const F=new s.OlP("XSRF_COOKIE_NAME"),N=new s.OlP("XSRF_HEADER_NAME");class B{}let U=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0),s.LFG(s.Lbi),s.LFG(F))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Z=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null!==i&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(B),s.LFG(N))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),q=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(R,[]);this.chain=t.reduceRight((t,e)=>new I(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(h),s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Z,useClass:D}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:F,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[Z,{provide:R,useExisting:Z,multi:!0},{provide:B,useClass:U},{provide:F,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[P,{provide:u,useClass:q},L,{provide:h,useExisting:L}],imports:[[j.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},3018:function(t,e,n){"use strict";n.d(e,{deG:function(){return un},tb:function(){return tc},AFp:function(){return $l},ip1:function(){return Gl},CZH:function(){return Kl},hGG:function(){return Gc},z2F:function(){return Nc},sBO:function(){return Wa},Sil:function(){return hc},_Vd:function(){return va},EJc:function(){return ic},SBq:function(){return Ea},qLn:function(){return Di},vpe:function(){return Tl},gxx:function(){return wr},tBr:function(){return Ln},XFs:function(){return R},OlP:function(){return cn},zs3:function(){return Fr},ZZ4:function(){return Va},aQg:function(){return za},soG:function(){return nc},YKP:function(){return ol},v3s:function(){return Uc},h0i:function(){return rl},PXZ:function(){return Rc},R0b:function(){return fc},FiY:function(){return Fn},Lbi:function(){return Xl},g9A:function(){return Jl},n_E:function(){return Pl},Qsj:function(){return Aa},FYo:function(){return Sa},JOm:function(){return Fi},Tiy:function(){return Oa},q3G:function(){return Ei},tp0:function(){return Nn},EAV:function(){return jc},Rgc:function(){return el},dDg:function(){return wc},DyG:function(){return hn},GfV:function(){return Pa},s_b:function(){return ll},ifc:function(){return B},eFA:function(){return Dc},G48:function(){return Oc},Gpc:function(){return m},f3M:function(){return Pn},X6Q:function(){return Tc},_c5:function(){return zc},VLi:function(){return Ec},c2e:function(){return ec},zSh:function(){return Cr},wAp:function(){return ra},vHH:function(){return y},EiD:function(){return xi},mCW:function(){return oi},qzn:function(){return $n},JVY:function(){return Qn},pB0:function(){return ei},eBb:function(){return Xn},L6k:function(){return Jn},LAX:function(){return ti},cg1:function(){return na},Tjo:function(){return Hc},kL8:function(){return ia},yhl:function(){return Wn},dqk:function(){return V},sIi:function(){return Yr},CqO:function(){return po},QGY:function(){return uo},F4k:function(){return ho},RDi:function(){return Tt},AaK:function(){return d},z3N:function(){return Kn},qOj:function(){return Br},TTD:function(){return vt},_Bn:function(){return ga},xp6:function(){return Cs},uIk:function(){return Wr},Tol:function(){return Do},Gre:function(){return Wo},ekj:function(){return Ro},Suo:function(){return jl},Xpm:function(){return tt},lG2:function(){return at},Yz7:function(){return C},cJS:function(){return E},oAB:function(){return st},Yjl:function(){return lt},Y36:function(){return eo},_UZ:function(){return oo},BQk:function(){return lo},ynx:function(){return ao},qZA:function(){return ro},TgZ:function(){return so},EpF:function(){return co},n5z:function(){return sn},Ikx:function(){return Qo},LFG:function(){return On},$8M:function(){return on},NdJ:function(){return fo},CRH:function(){return Vl},kcU:function(){return xe},O4$:function(){return we},oxw:function(){return bo},ALo:function(){return kl},lcZ:function(){return Sl},Hsn:function(){return xo},F$t:function(){return wo},Q6J:function(){return no},s9C:function(){return Co},VKq:function(){return Cl},iGM:function(){return Zl},MAs:function(){return to},CHM:function(){return Gt},oJD:function(){return ki},LSH:function(){return Si},kYT:function(){return rt},Udp:function(){return Io},WFA:function(){return mo},d8E:function(){return Jo},YNc:function(){return Xr},_uU:function(){return zo},Oqu:function(){return Yo},hij:function(){return Go},AsE:function(){return Ko},lnq:function(){return $o},Gf:function(){return ql}});var i=n(9765),s=n(5319),r=n(7574),o=n(6682),a=n(2441);var l=n(1307);function c(){return new i.xQ}function u(t){for(let e in t)if(t[e]===u)return e;throw Error("Could not find renamed property on target object.")}function h(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function d(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(d).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function p(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const f=u({__forward_ref__:u});function m(t){return t.__forward_ref__=m,t.toString=function(){return d(this())},t}function g(t){return _(t)?t():t}function _(t){return"function"==typeof t&&t.hasOwnProperty(f)&&t.__forward_ref__===m}class y extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function b(t){return"string"==typeof t?t:null==t?"":String(t)}function v(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():b(t)}function w(t,e){const n=e?` in ${e}`:"";throw new y("201",`No provider for ${v(t)} found${n}`)}function x(t,e){null==t&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${n} ${i} ${e} <=Actual]`))}(e,t,null,"!=")}function C(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function E(t){return{providers:t.providers||[],imports:t.imports||[]}}function k(t){return S(t,T)||S(t,P)}function S(t,e){return t.hasOwnProperty(e)?t[e]:null}function A(t){return t&&(t.hasOwnProperty(O)||t.hasOwnProperty(I))?t[O]:null}const T=u({"\u0275prov":u}),O=u({"\u0275inj":u}),P=u({ngInjectableDef:u}),I=u({ngInjectorDef:u});var R=(()=>((R=R||{})[R.Default=0]="Default",R[R.Host=1]="Host",R[R.Self=2]="Self",R[R.SkipSelf=4]="SkipSelf",R[R.Optional=8]="Optional",R))();let D;function M(t){const e=D;return D=t,e}function L(t,e,n){const i=k(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&R.Optional?null:void 0!==e?e:void w(d(t),"Injector")}function F(t){return{toString:t}.toString()}var N=(()=>((N=N||{})[N.OnPush=0]="OnPush",N[N.Default=1]="Default",N))(),B=(()=>((B=B||{})[B.Emulated=0]="Emulated",B[B.None=2]="None",B[B.ShadowDom=3]="ShadowDom",B))();const U="undefined"!=typeof globalThis&&globalThis,Z="undefined"!=typeof window&&window,q="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,V=U||j||Z||q,H={},z=[],Y=u({"\u0275cmp":u}),G=u({"\u0275dir":u}),K=u({"\u0275pipe":u}),$=u({"\u0275mod":u}),W=u({"\u0275loc":u}),Q=u({"\u0275fac":u}),J=u({__NG_ELEMENT_ID__:u});let X=0;function tt(t){return F(()=>{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===N.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||z,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||B.Emulated,id:"c",styles:t.styles||z,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=X++,n.inputs=ot(t.inputs,e),n.outputs=ot(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(et):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(nt):null,n})}function et(t){return ct(t)||function(t){return t[G]||null}(t)}function nt(t){return function(t){return t[K]||null}(t)}const it={};function st(t){return F(()=>{const e={type:t.type,bootstrap:t.bootstrap||z,declarations:t.declarations||z,imports:t.imports||z,exports:t.exports||z,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(it[t.id]=t.type),e})}function rt(t,e){return F(()=>{const n=ut(t,!0);n.declarations=e.declarations||z,n.imports=e.imports||z,n.exports=e.exports||z})}function ot(t,e){if(null==t)return H;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const at=tt;function lt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ct(t){return t[Y]||null}function ut(t,e){const n=t[$]||null;if(!n&&!0===e)throw new Error(`Type ${d(t)} does not have '\u0275mod' property.`);return n}function ht(t){return Array.isArray(t)&&"object"==typeof t[1]}function dt(t){return Array.isArray(t)&&!0===t[1]}function pt(t){return 0!=(8&t.flags)}function ft(t){return 2==(2&t.flags)}function mt(t){return 1==(1&t.flags)}function gt(t){return null!==t.template}function _t(t){return 0!=(512&t[2])}function yt(t,e){return t.hasOwnProperty(Q)?t[Q]:null}class bt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function vt(){return wt}function wt(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ct),xt}function xt(){const t=kt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===H)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Ct(t,e,n,i){const s=kt(t)||function(t,e){return t[Et]=e}(t,{previous:H,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],l=o[a];r[a]=new bt(l&&l.currentValue,e,o===H),t[i]=e}vt.ngInherit=!0;const Et="__ngSimpleChanges__";function kt(t){return t[Et]||null}const St="http://www.w3.org/2000/svg";let At;function Tt(t){At=t}function Ot(){return void 0!==At?At:"undefined"!=typeof document?document:void 0}function Pt(t){return!!t.listen}const It={createRenderer:(t,e)=>Ot()};function Rt(t){for(;Array.isArray(t);)t=t[0];return t}function Dt(t,e){return Rt(e[t])}function Mt(t,e){return Rt(e[t.index])}function Lt(t,e){return t.data[e]}function Ft(t,e){return t[e]}function Nt(t,e){const n=e[t];return ht(n)?n:n[0]}function Bt(t){return 4==(4&t[2])}function Ut(t){return 128==(128&t[2])}function Zt(t,e){return null==e?null:t[e]}function qt(t){t[18]=0}function jt(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Vt={lFrame:fe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ht(){return Vt.bindingsEnabled}function zt(){return Vt.lFrame.lView}function Yt(){return Vt.lFrame.tView}function Gt(t){return Vt.lFrame.contextLView=t,t[8]}function Kt(){let t=$t();for(;null!==t&&64===t.type;)t=t.parent;return t}function $t(){return Vt.lFrame.currentTNode}function Wt(t,e){const n=Vt.lFrame;n.currentTNode=t,n.isParent=e}function Qt(){return Vt.lFrame.isParent}function Jt(){Vt.lFrame.isParent=!1}function Xt(){return Vt.isInCheckNoChangesMode}function te(t){Vt.isInCheckNoChangesMode=t}function ee(){const t=Vt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ne(){return Vt.lFrame.bindingIndex}function ie(){return Vt.lFrame.bindingIndex++}function se(t){const e=Vt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function re(t,e){const n=Vt.lFrame;n.bindingIndex=n.bindingRootIndex=t,oe(e)}function oe(t){Vt.lFrame.currentDirectiveIndex=t}function ae(t){const e=Vt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function le(){return Vt.lFrame.currentQueryIndex}function ce(t){Vt.lFrame.currentQueryIndex=t}function ue(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function he(t,e,n){if(n&R.SkipSelf){let i=e,s=t;for(;!(i=i.parent,null!==i||n&R.Host||(i=ue(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;e=i,t=s}const i=Vt.lFrame=pe();return i.currentTNode=e,i.lView=t,!0}function de(t){const e=pe(),n=t[1];Vt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function pe(){const t=Vt.lFrame,e=null===t?null:t.child;return null===e?fe(t):e}function fe(t){const e={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=e),e}function me(){const t=Vt.lFrame;return Vt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ge=me;function _e(){const t=me();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 ye(){return Vt.lFrame.selectedIndex}function be(t){Vt.lFrame.selectedIndex=t}function ve(){const t=Vt.lFrame;return Lt(t.tView,t.selectedIndex)}function we(){Vt.lFrame.currentNamespace=St}function xe(){Vt.lFrame.currentNamespace=null}function Ce(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e){t[2]+=2048;try{r.call(o)}finally{}}}else try{r.call(o)}finally{}}class Oe{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Pe(t,e,n){const i=Pt(t);let s=0;for(;se){o=r-1;break}}}for(;r>16}(t),i=e;for(;n>0;)i=i[15],n--;return i}let Be=!0;function Ue(t){const e=Be;return Be=t,e}let Ze=0;function qe(t,e){const n=Ve(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,je(i.data,t),je(e,null),je(i.blueprint,null));const s=He(t,e),r=t.injectorIndex;if(Le(s)){const t=Fe(s),n=Ne(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function je(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ve(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function He(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function ze(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(i=n[J]),null==i&&(i=n[J]=Ze++);const s=255&i;e.data[t+(s>>5)]|=1<=0?255&e:We:e}(n);if("function"==typeof r){if(!he(e,t,i))return i&R.Host?Ye(s,n,i):Ge(e,n,i,s);try{const t=r(i);if(null!=t||i&R.Optional)return t;w(n)}finally{ge()}}else if("number"==typeof r){let s=null,o=Ve(t,e),a=-1,l=i&R.Host?e[16][6]:null;for((-1===o||i&R.SkipSelf)&&(a=-1===o?He(t,e):e[o+8],-1!==a&&en(i,!1)?(s=e[1],o=Fe(a),e=Ne(a,e)):o=-1);-1!==o;){const t=e[1];if(tn(r,o,t.data)){const t=Qe(o,e,n,s,i,l);if(t!==$e)return t}a=e[o+8],-1!==a&&en(i,e[1].data[o+8]===l)&&tn(r,o,e)?(s=t,o=Fe(a),e=Ne(a,e)):o=-1}}}return Ge(e,n,i,s)}const $e={};function We(){return new nn(Kt(),zt())}function Qe(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],l=Je(a,o,n,null==i?ft(a)&&Be:i!=o&&0!=(3&a.type),s&R.Host&&r===a);return null!==l?Xe(e,o,l,a):$e}function Je(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,u=s?a+c:t.directiveEnd;for(let h=i?a:a+c;h=l&&t.type===n)return h}if(s){const t=o[l];if(t&>(t)&&t.type===n)return l}return null}function Xe(t,e,n,i){let s=t[n];const r=e.data;if(function(t){return t instanceof Oe}(s)){const o=s;o.resolving&&function(t,e){throw new y("200",`Circular dependency in DI detected for ${t}`)}(v(r[n]));const a=Ue(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?M(o.injectImpl):null;he(t,i,R.Default);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=wt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&M(l),Ue(a),o.resolving=!1,ge()}}return s}function tn(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[Q]||rn(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[Q]||rn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function rn(t){return _(t)?()=>{const e=rn(g(t));return e&&e()}:yt(t)}function on(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty(an)?t[an]:Object.defineProperty(t,an,{value:[]})[an];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class cn{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=C({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const un=new cn("AnalyzeForEntryComponents"),hn=Function;function dn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?pn(t,e):e(t))}function fn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function mn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function gn(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function yn(t,e){const n=bn(t,e);if(n>=0)return t[1|n]}function bn(t,e){return function(t,e,n){let i=0,s=t.length>>n;for(;s!==i;){const r=i+(s-i>>1),o=t[r<e?s=r:i=r+1}return~(s< ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):d(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(Cn,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t[xn]=null,t}const Ln=Rn(ln("Inject",t=>({token:t})),-1),Fn=Rn(ln("Optional"),8),Nn=Rn(ln("SkipSelf"),4);let Bn,Un;function Zn(t){var e;return(null===(e=function(){if(void 0===Bn&&(Bn=null,V.trustedTypes))try{Bn=V.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Bn}())||void 0===e?void 0:e.createHTML(t))||t}function qn(t){var e;return(null===(e=function(){if(void 0===Un&&(Un=null,V.trustedTypes))try{Un=V.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Un}())||void 0===e?void 0:e.createHTML(t))||t}class jn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Vn extends jn{getTypeName(){return"HTML"}}class Hn extends jn{getTypeName(){return"Style"}}class zn extends jn{getTypeName(){return"Script"}}class Yn extends jn{getTypeName(){return"URL"}}class Gn extends jn{getTypeName(){return"ResourceURL"}}function Kn(t){return t instanceof jn?t.changingThisBreaksApplicationSecurity:t}function $n(t,e){const n=Wn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Wn(t){return t instanceof jn&&t.getTypeName()||null}function Qn(t){return new Vn(t)}function Jn(t){return new Hn(t)}function Xn(t){return new zn(t)}function ti(t){return new Yn(t)}function ei(t){return new Gn(t)}class ni{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Zn(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class ii{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Zn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Zn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0oi(t.trim())).join(", ")),this.buf.push(" ",e,'="',vi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();di.hasOwnProperty(e)&&!ci.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(vi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const yi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bi=/([^\#-~ |!])/g;function vi(t){return t.replace(/&/g,"&").replace(yi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(bi,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let wi;function xi(t,e){let n=null;try{wi=wi||function(t){const e=new ii(t);return function(){try{return!!(new window.DOMParser).parseFromString(Zn(""),"text/html")}catch(t){return!1}}()?new ni(e):e}(t);let i=e?String(e):"";n=wi.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=wi.getInertBodyElement(i)}while(i!==r);return Zn((new _i).sanitizeChildren(Ci(n)||n))}finally{if(n){const t=Ci(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Ci(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ei=(()=>((Ei=Ei||{})[Ei.NONE=0]="NONE",Ei[Ei.HTML=1]="HTML",Ei[Ei.STYLE=2]="STYLE",Ei[Ei.SCRIPT=3]="SCRIPT",Ei[Ei.URL=4]="URL",Ei[Ei.RESOURCE_URL=5]="RESOURCE_URL",Ei))();function ki(t){const e=Ai();return e?qn(e.sanitize(Ei.HTML,t)||""):$n(t,"HTML")?qn(Kn(t)):xi(Ot(),b(t))}function Si(t){const e=Ai();return e?e.sanitize(Ei.URL,t)||"":$n(t,"URL")?Kn(t):oi(b(t))}function Ai(){const t=zt();return t&&t[12]}const Ti="__ngContext__";function Oi(t,e){t[Ti]=e}function Pi(t){const e=function(t){return t[Ti]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ii(t){return t.ngOriginalError}function Ri(t,...e){t.error(...e)}class Di{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=(s=t)&&s.ngErrorLogger||Ri;var s;i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?t.ngDebugContext||this._findContext(Ii(t)):null}_findOriginalError(t){let e=t&&Ii(t);for(;e&&Ii(e);)e=Ii(e);return e||null}}const Mi=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(V))();function Li(t){return t instanceof Function?t():t}var Fi=(()=>((Fi=Fi||{})[Fi.Important=1]="Important",Fi[Fi.DashCase=2]="DashCase",Fi))();function Ni(t,e){return undefined(t,e)}function Bi(t){const e=t[3];return dt(e)?e[3]:e}function Ui(t){return qi(t[13])}function Zi(t){return qi(t[4])}function qi(t){for(;null!==t&&!dt(t);)t=t[4];return t}function ji(t,e,n,i,s){if(null!=i){let r,o=!1;dt(i)?r=i:ht(i)&&(o=!0,i=i[0]);const a=Rt(i);0===t&&null!==n?null==s?Wi(e,n,a):$i(e,n,a,s||null,!0):1===t&&null!==n?$i(e,n,a,s||null,!0):2===t?function(t,e,n){const i=Ji(t,e);i&&function(t,e,n,i){Pt(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,s){const r=n[7];r!==Rt(n)&&ji(e,t,i,r,s);for(let o=10;o0&&(t[n-1][4]=i[4]);const r=mn(t,10+e);!function(t,e){os(t,e,e[11],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Yi(t,e){if(!(256&e[2])){const n=e[11];Pt(n)&&n.destroyNode&&os(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Gi(t[1],t);for(;e;){let n=null;if(ht(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ht(e)&&Gi(e[1],e),e=e[3];null===e&&(e=t),ht(e)&&Gi(e[1],e),n=e&&e[4]}e=n}}(e)}}function Gi(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?i[s=l]():i[s=-l].unsubscribe(),r+=2}else{const t=i[s=n[r+1]];n[r].call(t)}if(null!==i){for(let t=s+1;tr?"":s[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==us(e,c,0)||2&i&&c!==t){if(gs(i))return!1;o=!0}}}}else{if(!o&&!gs(i)&&!gs(l))return!1;if(o&&gs(l))continue;o=!1,i=l|1&i}}return gs(i)||o}function gs(t){return 0==(1&t)}function _s(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""!==s&&!gs(o)&&(e+=vs(r,s),s=""),i=o,r=r||!gs(i);n++}return""!==s&&(e+=vs(r,s)),e}const xs={};function Cs(t){Es(Yt(),zt(),ye()+t,Xt())}function Es(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ee(e,i,n)}else{const i=t.preOrderHooks;null!==i&&ke(e,i,0,n)}be(n)}function ks(t,e){return t<<17|e<<2}function Ss(t){return t>>17&32767}function As(t){return 2|t}function Ts(t){return(131068&t)>>2}function Os(t,e){return-131069&t|e<<2}function Ps(t){return 1|t}function Is(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i20&&Es(t,e,20,Xt()),n(i,s)}finally{be(r)}}function Us(t,e,n){if(pt(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=r&&n.push(r),n.push(i,s,o)}}function $s(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ws(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Qs(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&or(n)}}function or(t){for(let n=Ui(t);null!==n;n=Zi(n))for(let t=10;t0&&or(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&or(i)}}function ar(t,e){const n=Nt(e,t),i=n[1];(function(t,e){for(let n=e.length;nPromise.resolve(null))();function fr(t){return t[7]||(t[7]=[])}function mr(t){return t.cleanup||(t.cleanup=[])}function gr(t,e,n){return(null===t||gt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function _r(t,e){const n=t[9],i=n?n.get(Di,null):null;i&&i.handleError(e)}function yr(t,e,n,i,s){for(let r=0;rthis.processProvider(n,t,e)),pn([t],t=>this.processInjectorType(t,[],s)),this.records.set(wr,Rr(void 0,this));const r=this.records.get(Cr);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:d(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=vn,n=R.Default){this.assertNotDestroyed();const i=An(this),s=M(void 0);try{if(!(n&R.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof cn)&&k(t);e=n&&this.injectableDefInScope(n)?Rr(Pr(t),Er):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&R.Self?Ar():this.parent).get(t,e=n&R.Optional&&e===vn?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[xn]=o[xn]||[]).unshift(d(t)),i)throw o;return Mn(o,t,"R3InjectorError",this.source)}throw o}finally{M(s),An(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(d(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=g(t)))return!1;let i=A(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=A(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{pn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||z))}}this.injectorDefTypes.add(r);const a=yt(r)||(()=>new r);this.records.set(r,Rr(a,Er));const l=i.providers;if(null!=l&&!o){const e=t;pn(l,t=>this.processProvider(t,e,l))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=Mr(t=g(t))?t:g(t&&t.provide);const s=Dr(r=t)?Rr(void 0,r.useValue):Rr(Ir(r),Er);var r;if(Mr(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Rr(void 0,Er,!0),e.factory=()=>In(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){return e.value===Er&&(e.value=kr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value;var n}injectableDefInScope(t){if(!t.providedIn)return!1;const e=g(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Pr(t){const e=k(t),n=null!==e?e.factory:yt(t);if(null!==n)return n;if(t instanceof cn)throw new Error(`Token ${d(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=gn(e,"?");throw new Error(`Can't resolve all parameters for ${d(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[T]||t[P]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" 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 "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Ir(t,e,n){let i;if(Mr(t)){const e=g(t);return yt(e)||Pr(e)}if(Dr(t))i=()=>g(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...In(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>On(g(t.useExisting));else{const e=g(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return yt(e)||Pr(e);i=()=>new e(...In(t.deps))}return i}function Rr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Dr(t){return null!==t&&"object"==typeof t&&kn in t}function Mr(t){return"function"==typeof t}const Lr=function(t,e,n){return function(t,e=null,n=null,i){const s=Tr(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};class Fr{static create(t,e){return Array.isArray(t)?Lr(t,e,""):Lr(t.providers,t.parent,t.name||"")}}function Nr(t,e){Ce(Pi(t)[1],Kt())}function Br(t){let e=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const i=[t];for(;e;){let s;if(gt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=Ur(t.inputs),e.declaredInputs=Ur(t.declaredInputs),e.outputs=Ur(t.outputs);const n=s.hostBindings;n&&jr(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&Zr(t,r),o&&qr(t,o),h(t.inputs,s.inputs),h(t.declaredInputs,s.declaredInputs),h(t.outputs,s.outputs),gt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=De(s.hostAttrs,n=De(n,s.hostAttrs))}}(i)}function Ur(t){return t===H?{}:t===z?[]:t}function Zr(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function qr(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function jr(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}Fr.THROW_IF_NOT_FOUND=vn,Fr.NULL=new xr,Fr.\u0275prov=C({token:Fr,providedIn:"any",factory:()=>On(wr)}),Fr.__NG_ELEMENT_ID__=-1;let Vr=null;function Hr(){if(!Vr){const t=V.Symbol;if(t&&t.iterator)Vr=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Rt(t[i.index])):i.index;if(Pt(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,d=!1;else{r=yo(i,e,u,r,!1);const t=n.listen(f,s,r);h.push(r,t),c&&c.push(s,g,m,m+1)}}else r=yo(i,e,u,r,!0),f.addEventListener(s,r,o),h.push(r),c&&c.push(s,g,m,o)}else r=yo(i,e,u,r,!1);const p=i.outputs;let f;if(d&&null!==p&&(f=p[s])){const t=f.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Vt.lFrame.contextLView))[8]}(t)}function vo(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const Ao={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function To(t){return t.substring(Ao.key,Ao.keyEnd)}function Oo(t,e){const n=Ao.textEnd;return n===e?-1:(e=Ao.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Ao.key=e,n),Po(t,e,n))}function Po(t,e,n){for(;e=0;n=Oo(e,n))_n(t,To(e),!0)}function Lo(t,e,n,i){const s=zt(),r=Yt(),o=se(2);r.firstUpdatePass&&Bo(r,t,o,i),e!==xs&&Kr(s,o,e)&&qo(r,r.data[ye()],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=d(Kn(t)))),t}(e,n),i,o)}function Fo(t,e,n,i){const s=Yt(),r=se(2);s.firstUpdatePass&&Bo(s,null,r,i);const o=zt();if(n!==xs&&Kr(o,r,n)){const a=s.data[ye()];if(Ho(a,i)&&!No(s,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=p(t,n||"")),io(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===xs&&(s=z);let l=0,c=0,u=0=t.expandoStartIndex}function Bo(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[ye()],o=No(t,n);Ho(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=ae(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=Zo(n=Uo(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=Uo(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Ts(i))return t[Ss(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Uo(null,t,e,n[1],i),n=Zo(n,e.attrs,i),function(t,e,n,i){t[Ss(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(u=!0)}else c=n;if(s)if(0!==l){const e=Ss(t[a+1]);t[i+1]=ks(e,a),0!==e&&(t[e+1]=Os(t[e+1],i)),t[a+1]=function(t,e){return 131071&t|e<<17}(t[a+1],i)}else t[i+1]=ks(a,0),0!==a&&(t[a+1]=Os(t[a+1],i)),a=i;else t[i+1]=ks(l,0),0===a?a=i:t[l+1]=Os(t[l+1],i),l=i;u&&(t[i+1]=As(t[i+1])),ko(t,c,i,!0),ko(t,c,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&bn(r,e)>=0&&(n[i+1]=Ps(n[i+1]))}(e,c,t,i,r),o=ks(a,l),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function Uo(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let u=n[s+1];u===xs&&(u=c?z:void 0);let h=c?yn(u,i):l===i?u:void 0;if(r&&!Vo(h)&&(h=yn(e,i)),Vo(h)&&(a=h,o))return a;const d=t[s+1];s=o?Ss(d):Ts(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=yn(t,i))}return a}function Vo(t){return void 0!==t}function Ho(t,e){return 0!=(t.flags&(e?16:32))}function zo(t,e=""){const n=zt(),i=Yt(),s=t+20,r=i.firstCreatePass?Ds(i,s,1,e,null):i.data[s],o=n[s]=function(t,e){return Pt(t)?t.createText(e):t.createTextNode(e)}(n[11],e);es(i,n,o,r),Wt(r,!1)}function Yo(t){return Go("",t,""),Yo}function Go(t,e,n){const i=zt(),s=Qr(i,t,e,n);return s!==xs&&br(i,ye(),s),Go}function Ko(t,e,n,i,s){const r=zt(),o=function(t,e,n,i,s,r){const o=$r(t,ne(),n,s);return se(2),o?e+b(n)+i+b(s)+r:xs}(r,t,e,n,i,s);return o!==xs&&br(r,ye(),o),Ko}function $o(t,e,n,i,s,r,o){const a=zt(),l=Jr(a,t,e,n,i,s,r,o);return l!==xs&&br(a,ye(),l),$o}function Wo(t,e,n){Fo(_n,Mo,Qr(zt(),t,e,n),!0)}function Qo(t,e,n){const i=zt();return Kr(i,ie(),e)&&Ys(Yt(),ve(),i,t,e,i[11],n,!0),Qo}function Jo(t,e,n){const i=zt();if(Kr(i,ie(),e)){const s=Yt(),r=ve();Ys(s,r,i,t,e,gr(ae(s.data),r,i),n,!0)}return Jo}const Xo=void 0;var ta=["en",[["a","p"],["AM","PM"],Xo],[["AM","PM"],Xo,Xo],[["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"]],Xo,[["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"]],Xo,[["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}",Xo,"{1} 'at' {0}",Xo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ea={};function na(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=sa(e);if(n)return n;const i=e.split("-")[0];if(n=sa(i),n)return n;if("en"===i)return ta;throw new Error(`Missing locale data for the locale "${t}".`)}function ia(t){return na(t)[ra.PluralCase]}function sa(t){return t in ea||(ea[t]=V.ng&&V.ng.common&&V.ng.common.locales&&V.ng.common.locales[t]),ea[t]}var ra=(()=>((ra=ra||{})[ra.LocaleId=0]="LocaleId",ra[ra.DayPeriodsFormat=1]="DayPeriodsFormat",ra[ra.DayPeriodsStandalone=2]="DayPeriodsStandalone",ra[ra.DaysFormat=3]="DaysFormat",ra[ra.DaysStandalone=4]="DaysStandalone",ra[ra.MonthsFormat=5]="MonthsFormat",ra[ra.MonthsStandalone=6]="MonthsStandalone",ra[ra.Eras=7]="Eras",ra[ra.FirstDayOfWeek=8]="FirstDayOfWeek",ra[ra.WeekendRange=9]="WeekendRange",ra[ra.DateFormat=10]="DateFormat",ra[ra.TimeFormat=11]="TimeFormat",ra[ra.DateTimeFormat=12]="DateTimeFormat",ra[ra.NumberSymbols=13]="NumberSymbols",ra[ra.NumberFormats=14]="NumberFormats",ra[ra.CurrencyCode=15]="CurrencyCode",ra[ra.CurrencySymbol=16]="CurrencySymbol",ra[ra.CurrencyName=17]="CurrencyName",ra[ra.Currencies=18]="Currencies",ra[ra.Directionality=19]="Directionality",ra[ra.PluralCase=20]="PluralCase",ra[ra.ExtraData=21]="ExtraData",ra))();const oa="en-US";let aa=oa;function la(t){x(t,"Expected localeId to be defined"),"string"==typeof t&&(aa=t.toLowerCase().replace(/_/g,"-"))}function ca(t,e,n,i,s){if(t=g(t),Array.isArray(t))for(let r=0;r>20;if(Mr(t)||!t.multi){const i=new Oe(l,s,eo),p=da(a,e,s?u:u+d,h);-1===p?(ze(qe(c,o),r,a),ua(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=da(a,e,u+d,h),f=da(a,e,u,u+d),m=p>=0&&n[p],g=f>=0&&n[f];if(s&&!g||!s&&!m){ze(qe(c,o),r,a);const u=function(t,e,n,i,s){const r=new Oe(t,n,eo);return r.multi=[],r.index=e,r.componentProviders=0,ha(r,s,i&&!n),r}(s?fa:pa,n.length,s,i,l);!s&&g&&(n[f].providerFactory=u),ua(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else ua(r,t,p>-1?p:f,ha(n[s?f:p],l,!s&&i));!s&&i&&g&&n[f].componentProviders++}}}function ua(t,e,n,i){const s=Mr(e);if(s||function(t){return!!t.useClass}(e)){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function ha(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function da(t,e,n,i){for(let s=n;s{n.providersResolver=(n,i)=>function(t,e,n){const i=Yt();if(i.firstCreatePass){const s=gt(t);ca(n,i.data,i.blueprint,s,!0),ca(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class _a{}const ya="ngComponent";class ba{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${d(t)}. Did you add it to @NgModule.entryComponents?`);return e[ya]=t,e}(t)}}class va{}function wa(...t){}function xa(t,e){return new Ea(Mt(t,e))}va.NULL=new ba;const Ca=function(){return xa(Kt(),zt())};let Ea=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Ca,t})();function ka(t){return t instanceof Ea?t.nativeElement:t}class Sa{}let Aa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ta(),t})();const Ta=function(){const t=zt(),e=Nt(Kt().index,t);return function(t){return t[11]}(ht(e)?e:t)};let Oa=(()=>{class t{}return t.\u0275prov=C({token:t,providedIn:"root",factory:()=>null}),t})();class Pa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ia=new Pa("12.2.4");class Ra{constructor(){}supports(t){return Yr(t)}create(t){return new Ma(t)}}const Da=(t,e)=>e;class Ma{constructor(t){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=t||Da}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):t=this._addAfter(new La(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Na),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Na),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class La{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Fa{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Na{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Fa,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ba(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new qa(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class qa{constructor(t){this.key=t,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 ja(){return new Va([new Ra])}let Va=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||ja()),deps:[[t,new Nn,new Fn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${function(t){return t.name||typeof t}(t)}'`)}}return t.\u0275prov=C({token:t,providedIn:"root",factory:ja}),t})();function Ha(){return new za([new Ua])}let za=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ha()),deps:[[t,new Nn,new Fn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=C({token:t,providedIn:"root",factory:Ha}),t})();function Ya(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(Rt(r)),dt(r))for(let t=10;t-1&&(zi(t,n),mn(e,n))}this._attachedToViewContainer=!1}Yi(this._lView[1],this._lView)}onDestroy(t){Hs(this._lView[1],this._lView,null,t)}markForCheck(){cr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ur(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){te(!0);try{ur(t,e,n)}finally{te(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,os(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Ka extends Ga{constructor(t){super(t),this._view=t}detectChanges(){hr(this._view)}checkNoChanges(){!function(t){te(!0);try{hr(t)}finally{te(!1)}}(this._view)}get context(){return null}}const $a=function(t){return function(t,e,n){if(ft(t)&&!n){const n=Nt(t.index,e);return new Ga(n,n)}return 47&t.type?new Ga(e[16],e):null}(Kt(),zt(),16==(16&t))};let Wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=$a,t})();const Qa=[new Ua],Ja=new Va([new Ra]),Xa=new za(Qa),tl=function(){return sl(Kt(),zt())};let el=(()=>{class t{}return t.__NG_ELEMENT_ID__=tl,t})();const nl=el,il=class extends nl{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Rs(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Ls(e,n,t),new Ga(n)}};function sl(t,e){return 4&t.type?new il(e,t,xa(t,e)):null}class rl{}class ol{}const al=function(){return pl(Kt(),zt())};let ll=(()=>{class t{}return t.__NG_ELEMENT_ID__=al,t})();const cl=ll,ul=class extends cl{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return xa(this._hostTNode,this._hostLView)}get injector(){return new nn(this._hostTNode,this._hostLView)}get parentInjector(){const t=He(this._hostTNode,this._hostLView);if(Le(t)){const e=Ne(t,this._hostLView),n=Fe(t);return new nn(e[1].data[n+8],e)}return new nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=hl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(rl,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(dt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new ul(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,n,i){const s=10+i,r=n.length;i>0&&(n[s-1][4]=e),iMi});class yl extends _a{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(ws).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return gl(this.componentDef.inputs)}get outputs(){return gl(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,fl,s);return r!==fl||i===fl?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(Sa,It),o=s.get(Oa,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Pt(t))return t.selectRootElement(e,n===B.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Vi(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?St:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h=function(t,e){return{components:[],scheduler:t||Mi,clean:pr,playerHandler:e||null,flags:0}}(),d=Vs(0,null,null,1,0,null,null,null,null,null),p=Rs(null,d,h,u,null,null,r,a,o,s);let f,m;de(p);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=Ds(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(vr(a,l,!0),null!==t&&(Pe(s,t,l),null!==a.classes&&cs(s,t,a.classes),null!==a.styles&&ls(s,t,a.styles)));const c=i.createRenderer(t,e),u=Rs(n,js(e),null,e.onPush?64:16,n[20],a,i,c,r||null,null);return o.firstCreatePass&&(ze(qe(a,n),o,e.type),Ws(o,a),Js(a,n.length,1)),lr(n,u),n[20]=u}(c,this.componentDef,p,r,a);if(c)if(n)Pe(a,c,["ng-version",Ia.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i0&&cs(a,c,e.join(" "))}if(m=Lt(d,20),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=Kt();e.contentQueries(1,o,t.directiveStart)}const a=Kt();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(be(a.index),Ks(n[1],a,0,a.directiveStart,a.directiveEnd,e),$s(e,o)),o}(t,this.componentDef,p,h,[Nr]),Ls(d,p,null)}finally{_e()}return new bl(this.componentType,f,xa(m,p),p,m)}}class bl extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Ka(i),this.componentType=t}get injector(){return new nn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const vl=new Map;class wl extends rl{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ml(this);const n=ut(t),i=t[W]||null;i&&la(i),this._bootstrapComponents=Li(n.bootstrap),this._r3Injector=Tr(t,e,[{provide:rl,useValue:this},{provide:va,useValue:this.componentFactoryResolver}],d(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Fr.THROW_IF_NOT_FOUND,n=R.Default){return t===Fr||t===rl||t===wr?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class xl extends ol{constructor(t){super(),this.moduleType=t,null!==ut(t)&&function(t){const e=new Set;!function t(n){const i=ut(n,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${d(e)} vs ${d(e.name)}`)}(s,vl.get(s),n),vl.set(s,n));const r=Li(i.imports);for(const o of r)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new wl(this.moduleType,t)}}function Cl(t,e,n,i){return El(zt(),ee(),t,e,n,i)}function El(t,e,n,i,s,r){const o=e+n;return Kr(t,o,s)?function(t,e,n){return t[e]=n}(t,o+1,r?i.call(r,s):i(s)):function(t,e){const n=t[e];return n===xs?void 0:n}(t,o+1)}function kl(t,e){const n=Yt();let i;const s=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new y("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=yt(i.type)),o=M(eo);try{const t=Ue(!1),e=r();return Ue(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,zt(),s,e),e}finally{M(o)}}function Sl(t,e,n){const i=t+20,s=zt(),r=Ft(s,i);return function(t,e){zr.isWrapped(e)&&(e=zr.unwrap(e),t[ne()]=xs);return e}(s,function(t,e){return t[1].data[e].pure}(s,i)?El(s,ee(),e,r.transform,n,r):r.transform(n))}function Al(t){return e=>{setTimeout(t,void 0,e)}}const Tl=class extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,r,o;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),l=null===(r=e.error)||void 0===r?void 0:r.bind(e),c=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}this.__isAsync&&(l=Al(l),a&&(a=Al(a)),c&&(c=Al(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof s.w&&t.add(u),u}};function Ol(){return this._results[Hr()]()}class Pl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Hr(),n=Pl.prototype;n[e]||(n[e]=Ol)}get changes(){return this._changes||(this._changes=new Tl)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=dn(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i0)i.push(o[t/2]);else{const s=r[t+1],o=e[-n];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=wa,this.reject=wa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(On(Gl,8))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();const $l=new cn("AppId"),Wl={provide:$l,useFactory:function(){return`${Ql()}${Ql()}${Ql()}`},deps:[]};function Ql(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Jl=new cn("Platform Initializer"),Xl=new cn("Platform ID"),tc=new cn("appBootstrapListener");let ec=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();const nc=new cn("LocaleId"),ic=new cn("DefaultCurrencyCode");class sc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const rc=function(t){return new xl(t)},oc=rc,ac=function(t){return Promise.resolve(rc(t))},lc=function(t){const e=rc(t),n=Li(ut(t).declarations).reduce((t,e)=>{const n=ct(e);return n&&t.push(new yl(n)),t},[]);return new sc(e,n)},cc=lc,uc=function(t){return Promise.resolve(lc(t))};let hc=(()=>{class t{constructor(){this.compileModuleSync=oc,this.compileModuleAsync=ac,this.compileModuleAndAllComponentsSync=cc,this.compileModuleAndAllComponentsAsync=uc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();const dc=(()=>Promise.resolve(0))();function pc(t){"undefined"==typeof Zone?dc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class fc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Tl(!1),this.onMicrotaskEmpty=new Tl(!1),this.onStable=new Tl(!1),this.onError=new Tl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=V.requestAnimationFrame,e=V.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(V,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,_c(t),t.isCheckStableRunning=!0,gc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),_c(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,s,r,o,a)=>{try{return yc(t),n.invokeTask(s,r,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&e(),bc(t)}},onInvoke:(n,i,s,r,o,a,l)=>{try{return yc(t),n.invoke(s,r,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),bc(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,_c(t),gc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!fc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(fc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,mc,wa,wa);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const mc={};function gc(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 _c(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function yc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bc(t){t._nesting--,gc(t)}class vc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Tl,this.onMicrotaskEmpty=new Tl,this.onStable=new Tl,this.onError=new Tl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let wc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{fc.assertNotInAngularZone(),pc(()=>{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())pc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!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(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(On(fc))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})(),xc=(()=>{class t{constructor(){this._applications=new Map,kc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return kc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();class Cc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Ec(t){kc=t}let kc=new Cc,Sc=!0,Ac=!1;function Tc(){return Ac=!0,Sc}function Oc(){if(Ac)throw new Error("Cannot enable prod mode after platform setup.");Sc=!1}let Pc;const Ic=new cn("AllowMultipleToken");class Rc{constructor(t,e){this.name=t,this.token=e}}function Dc(t,e,n=[]){const i=`Platform: ${e}`,s=new cn(i);return(e=[])=>{let r=Mc();if(!r||r.injector.get(Ic,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Cr,useValue:"platform"});!function(t){if(Pc&&!Pc.destroyed&&!Pc.injector.get(Ic,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Pc=t.get(Lc);const e=t.get(Jl,null);e&&e.forEach(t=>t())}(Fr.create({providers:t,name:i}))}return function(t){const e=Mc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function Mc(){return Pc&&!Pc.destroyed?Pc:null}let Lc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new vc:("zone.js"===t?void 0:t)||new fc({enableLongStackTrace:Tc(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:fc,useValue:n}];return n.run(()=>{const s=Fr.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(s),o=r.injector.get(Di,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{o.handleError(t)}});r.onDestroy(()=>{Bc(this._modules,r),t.unsubscribe()})}),function(t,n,i){try{const e=i();return uo(e)?e.catch(e=>{throw n.runOutsideAngular(()=>t.handleError(e)),e}):e}catch(e){throw n.runOutsideAngular(()=>t.handleError(e)),e}}(o,n,()=>{const t=r.injector.get(Kl);return t.runInitializers(),t.donePromise.then(()=>(la(r.injector.get(nc,oa)||oa),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=Fc({},e);return function(t,e,n){const i=new xl(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Nc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${d(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(On(Fr))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();function Fc(t,e){return Array.isArray(e)?e.reduce(Fc,t):Object.assign(Object.assign({},t),e)}let Nc=(()=>{class t{constructor(t,e,n,i,s){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=s,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 u=new r.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),h=new r.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{fc.assertNotInAngularZone(),pc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{fc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=(0,o.T)(u,h.pipe(t=>(0,l.x)()(function(t,e){return function(e){let n;n="function"==typeof t?t:function(){return t};const i=Object.create(e,a.N);return i.source=e,i.subjectFactory=n,i}}(c)(t))))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof _a?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=function(t){return t.isBoundToModule}(n)?void 0:this._injector.get(rl),s=n.create(Fr.NULL,[],e||n.selector,i),r=s.location.nativeElement,o=s.injector.get(wc,null),a=o&&s.injector.get(xc);return o&&a&&a.registerApplication(r,o),s.onDestroy(()=>{this.detachView(s.hostView),Bc(this.components,s),a&&a.unregisterApplication(r)}),this._loadComponent(s),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Bc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(tc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(On(fc),On(Fr),On(Di),On(va),On(Kl))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();function Bc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Uc{}class Zc{}const qc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let jc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||qc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(8255)(e).then(t=>t[i]).then(t=>Vc(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n(8255)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>Vc(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(On(hc),On(Zc,8))},t.\u0275prov=C({token:t,factory:t.\u0275fac}),t})();function Vc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Hc=function(t){return null},zc=Dc(null,"core",[{provide:Xl,useValue:"unknown"},{provide:Lc,deps:[Fr]},{provide:xc,deps:[]},{provide:ec,deps:[]}]),Yc=[{provide:Nc,useClass:Nc,deps:[fc,Fr,Di,va,Kl]},{provide:_l,deps:[fc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Kl,useClass:Kl,deps:[[new Fn,Gl]]},{provide:hc,useClass:hc,deps:[]},Wl,{provide:Va,useFactory:function(){return Ja},deps:[]},{provide:za,useFactory:function(){return Xa},deps:[]},{provide:nc,useFactory:function(t){return la(t=t||"undefined"!=typeof $localize&&$localize.locale||oa),t},deps:[[new Ln(nc),new Fn,new Nn]]},{provide:ic,useValue:"USD"}];let Gc=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(On(Nc))},t.\u0275mod=st({type:t}),t.\u0275inj=E({providers:Yc}),t})()},665:function(t,e,n){"use strict";n.d(e,{Zs:function(){return ct},sg:function(){return rt},u5:function(){return ht},Cf:function(){return h},JU:function(){return u},a5:function(){return O},JL:function(){return P},F:function(){return et},_Y:function(){return nt}});var i=n(3018),s=(n(8583),n(7574)),r=n(9796),o=n(8002),a=n(1555),l=n(4402);function c(t,e){return new s.y(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let a=0;a{u||(u=!0,o++),s[a]=t},error:t=>n.error(t),complete:()=>{r++,(r===i||!u)&&(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}const u=new i.OlP("NgValueAccessor");const h=new i.OlP("NgValidators"),d=new i.OlP("NgAsyncValidators");function p(t){return null!=t}function f(t){const e=(0,i.QGY)(t)?(0,l.D)(t):t;return(0,i.CqO)(e),e}function m(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function g(t,e){return e.map(e=>e(t))}function _(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function y(t){return null!=t?function(t){if(!t)return null;const e=t.filter(p);return 0==e.length?null:function(t){return m(g(t,e))}}(_(t)):null}function b(t){return null!=t?function(t){if(!t)return null;const e=t.filter(p);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if((0,r.k)(e))return c(e,null);if((0,a.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&(0,r.k)(t[0])?t[0]:t,null).pipe((0,o.U)(t=>e(...t)))}return c(t,null)}(g(t,e).map(f)).pipe((0,o.U)(m))}}(_(t)):null}function v(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function w(t){return t._rawValidators}function x(t){return t._rawAsyncValidators}function C(t){return t?Array.isArray(t)?t:[t]:[]}function E(t,e){return Array.isArray(t)?t.includes(e):t===e}function k(t,e){const n=C(e);return C(t).forEach(t=>{E(n,t)||n.push(t)}),n}function S(t,e){return C(e).filter(e=>!E(t,e))}let A=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=y(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=b(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t}),t})(),T=(()=>{class t extends A{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();class O extends A{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let P=(()=>{class t extends class{constructor(t){this._cd=t}is(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(T,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[i.qOj]}),t})();function I(t,e){M(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&F(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&F(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function R(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),L(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function D(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function M(t,e){const n=w(t);null!==e.validator?t.setValidators(v(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const i=x(t);null!==e.asyncValidator?t.setAsyncValidators(v(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const s=()=>t.updateValueAndValidity();D(e._rawValidators,s),D(e._rawAsyncValidators,s)}function L(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=w(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.validator);s.length!==i.length&&(n=!0,t.setValidators(s))}}if(null!==e.asyncValidator){const i=x(t);if(Array.isArray(i)&&i.length>0){const s=i.filter(t=>t!==e.asyncValidator);s.length!==i.length&&(n=!0,t.setAsyncValidators(s))}}}const i=()=>{};return D(e._rawValidators,i),D(e._rawAsyncValidators,i),n}function F(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function N(t,e){M(t,e)}function B(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function U(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Z="VALID",q="INVALID",j="PENDING",V="DISABLED";function H(t){return(K(t)?t.validators:t)||null}function z(t){return Array.isArray(t)?y(t):t||null}function Y(t,e){return(K(e)?e.asyncValidators:t)||null}function G(t){return Array.isArray(t)?b(t):t||null}function K(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ${constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=z(this._rawValidators),this._composedAsyncValidatorFn=G(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Z}get invalid(){return this.status===q}get pending(){return this.status==j}get disabled(){return this.status===V}get enabled(){return this.status!==V}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=z(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=G(t)}addValidators(t){this.setValidators(k(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(k(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(S(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(S(t,this._rawAsyncValidators))}hasValidator(t){return E(this._rawValidators,t)}hasAsyncValidator(t){return E(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=j,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=V,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Z,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Z||this.status===j)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?V:Z}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=j,this._hasOwnPendingAsyncValidator=!0;const e=f(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let i=t;return e.forEach(t=>{i=i instanceof Q?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof J&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?V:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(j)?j:this._anyControlsHaveStatus(q)?q:Z}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){K(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class W extends ${constructor(t=null,e,n){super(H(e),Y(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){U(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){U(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Q extends ${constructor(t,e,n){super(H(e),Y(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof W?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class J extends ${constructor(t,e,n){super(H(e),Y(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof W?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const X={provide:T,useExisting:(0,i.Gpc)(()=>et)},tt=(()=>Promise.resolve(null))();let et=(()=>{class t extends T{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.vpe,this.form=new Q({},y(t),b(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){tt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),I(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){tt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),U(this._directives,t)})}addFormGroup(t){tt.then(()=>{const e=this._findContainer(t.path),n=new Q({});N(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){tt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){tt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,B(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h,10),i.Y36(d,10))},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([X]),i.qOj]}),t})(),nt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),it=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const st={provide:T,useExisting:(0,i.Gpc)(()=>rt)};let rt=(()=>{class t extends T{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(L(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return I(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){R(t.control||null,t,!1),U(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,B(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(R(e||null,t),n instanceof W&&(I(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);N(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return L(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){M(this.form,this),this._oldForm&&L(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h,10),i.Y36(d,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([st]),i.qOj,i.TTD]}),t})();const ot={provide:h,useExisting:(0,i.Gpc)(()=>lt),multi:!0},at={provide:h,useExisting:(0,i.Gpc)(()=>ct),multi:!0};let lt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?function(t){return function(t){return null==t||0===t.length}(t.value)?{required:!0}:null}(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},inputs:{required:"required"},features:[i._Bn([ot])]}),t})(),ct=(()=>{class t extends lt{validate(t){return this.required?function(t){return!0===t.value?null:{required:!0}}(t):null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("required",e.required?"":null)},features:[i._Bn([at]),i.qOj]}),t})(),ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[it]]}),t})(),ht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[ut]}),t})()},1095:function(t,e,n){"use strict";n.d(e,{zs:function(){return p},lW:function(){return d},ot:function(){return f}});var i=n(2458),s=n(6237),r=n(3018),o=n(9238);const a=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",u=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],h=(0,i.pj)((0,i.Id)((0,i.Kr)(class{constructor(t){this._elementRef=t}})));let d=(()=>{class t extends h{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of u)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(o.tE),r.Y36(s.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&r.Gf(i.wG,5),2&t){let t;r.iGM(t=r.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(r.uIk("disabled",e.disabled||null),r.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1),r._UZ(3,"span",2)),2&t&&(r.xp6(2),r.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[c],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t extends d{constructor(t,e,n){super(e,t,n)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(o.tE),r.Y36(r.SBq),r.Y36(s.Qb,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._haltDisabledEvents(t)}),2&t&&(r.uIk("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),r.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[r.qOj],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1),r._UZ(3,"span",2)),2&t&&(r.xp6(2),r.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.wG],styles:[c],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[i.si,i.BQ],i.BQ]}),t})()},2458:function(t,e,n){"use strict";n.d(e,{rD:function(){return k},K7:function(){return q},HF:function(){return N},BQ:function(){return b},ey:function(){return z},Ng:function(){return K},wG:function(){return D},si:function(){return M},CB:function(){return Y},jH:function(){return G},pj:function(){return w},Kr:function(){return x},Id:function(){return v},FD:function(){return E},sb:function(){return C}});var i=n(3018),s=n(9238),r=n(946);const o=new i.GfV("12.2.4");var a=n(8583),l=n(9490),c=n(9765),u=n(521),h=n(6237),d=n(6461);function p(t,e){if(1&t&&i._UZ(0,"mat-pseudo-checkbox",4),2&t){const t=i.oxw();i.Q6J("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function f(t,e){if(1&t&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.hij("(",t.group.label,")")}}const m=["*"],g=new i.GfV("12.2.4"),_=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let y,b=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checkIsEnabled(t){return!(!(0,i.X6Q)()||this._isTestEnv())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&g.full!==o.full&&console.warn("The Angular Material version ("+g.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(s.qm),i.LFG(_,8),i.LFG(a.K0))},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[r.vT],r.vT]}),t})();function v(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}}}function w(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function x(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=(0,l.Ig)(t)}}}function C(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?(0,l.su)(t):this.defaultTabIndex}}}function E(t){return class extends t{constructor(...t){super(...t),this.stateChanges=new c.xQ,this.errorState=!1}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}try{y="undefined"!=typeof Intl}catch($){y=!1}let k=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({factory:function(){return new t},token:t,providedIn:"root"}),t})();class S{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const A={enterDuration:225,exitDuration:150},T=(0,u.i$)({passive:!0}),O=["mousedown","touchstart"],P=["mouseup","mouseleave","touchend","touchcancel"];class I{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=(0,l.fI)(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},A),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new S(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,!n.persistent&&(!t||!this._isPointerDown)&&u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},A),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=(0,l.fI)(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(O))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(P),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=(0,s.X6)(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,T)})})}_removeTriggerEvents(){this._triggerElement&&(O.forEach(t=>{this._triggerElement.removeEventListener(t,this,T)}),this._pointerUpEventsRegistered&&P.forEach(t=>{this._triggerElement.removeEventListener(t,this,T)}))}}const R=new i.OlP("mat-ripple-global-options");let D=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new I(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(u.t4),i.Y36(R,8),i.Y36(h.Qb,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),M=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[b,u.ud],b]}),t})(),L=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(h.Qb,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[b]]}),t})();const N=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),B=v(class{});let U=0,Z=(()=>{class t extends B{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+U++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(N,8))},t.\u0275dir=i.lG2({type:t,inputs:{label:"label"},features:[i.qOj]}),t})();const q=new i.OlP("MatOptgroup");let j=0;class V{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let H=(()=>{class t{constructor(t,e,n,s){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+j++,this.onSelectionChange=new i.vpe,this._stateChanges=new c.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=(0,l.Ig)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===d.K5||t.keyCode===d.L_)&&!(0,d.Vb)(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new V(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(void 0),i.Y36(Z))},t.\u0275dir=i.lG2({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),z=(()=>{class t extends H{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(N,8),i.Y36(q,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.NdJ("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(i.Ikx("id",e.id),i.uIk("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.ekj("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:m,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,p,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,f,2,1,"span",2),i._UZ(4,"div",3)),2&t&&(i.Q6J("ngIf",e.multiple),i.xp6(3),i.Q6J("ngIf",e.group&&e.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.O5,D,L],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function Y(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;en+i?Math.max(0,t-i+e):n}let K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[M,a.ez,b,F]]}),t})()},2238:function(t,e,n){"use strict";n.d(e,{WI:function(){return A},uw:function(){return R},H8:function(){return N},ZT:function(){return M},xY:function(){return F},Is:function(){return U},so:function(){return k},uh:function(){return L}});var i=n(625),s=n(7636),r=n(3018),o=n(2458),a=n(946),l=n(8583),c=n(9765),u=n(1439),h=n(5917),d=n(5435),p=n(5257),f=n(9761),m=n(521),g=n(7238),_=n(6461),y=n(9238);function b(t,e){}class v{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const w={dialogContainer:(0,g.X$)("dialogContainer",[(0,g.SB)("void, exit",(0,g.oB)({opacity:0,transform:"scale(0.7)"})),(0,g.SB)("enter",(0,g.oB)({transform:"none"})),(0,g.eR)("* => enter",(0,g.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,g.oB)({transform:"none",opacity:1}))),(0,g.eR)("* => void, * => exit",(0,g.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,g.oB)({opacity:0})))])};let x=(()=>{class t extends s.en{constructor(t,e,n,i,s,o){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=s,this._focusMonitor=o,this._animationStateChanged=new r.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=(0,m.ht)(),n=this._elementRef.nativeElement;(!e||e===this._document.body||e===n||n.contains(e))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,m.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=(0,m.ht)();return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(y.qV),r.Y36(r.sBO),r.Y36(l.K0,8),r.Y36(v),r.Y36(y.tE))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&r.Gf(s.Pl,7),2&t){let t;r.iGM(t=r.CRH())&&(e._portalOutlet=t.first)}},features:[r.qOj]}),t})(),C=(()=>{class t extends x{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&r.WFA("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(r.Ikx("id",e._id),r.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),r.d8E("@dialogContainer",e._state))},features:[r.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&r.YNc(0,b,0,0,"ng-template",0)},directives:[s.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[w.dialogContainer]}}),t})(),E=0;class k{constructor(t,e,n="mat-dialog-"+E++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new c.xQ,this._afterClosed=new c.xQ,this._beforeClosed=new c.xQ,this._state=0,e._id=n,e._animationStateChanged.pipe((0,d.h)(t=>"opened"===t.state),(0,p.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,d.h)(t=>"closed"===t.state),(0,p.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe((0,d.h)(t=>t.keyCode===_.hY&&!this.disableClose&&!(0,_.Vb)(t))).subscribe(t=>{t.preventDefault(),S(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():S(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe((0,d.h)(t=>"closing"===t.state),(0,p.q)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function S(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const A=new r.OlP("MatDialogData"),T=new r.OlP("mat-dialog-default-options"),O=new r.OlP("mat-dialog-scroll-strategy"),P={provide:O,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.block()}};let I=(()=>{class t{constructor(t,e,n,i,s,r,o,a,l){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new c.xQ,this._afterOpenedAtThisLevel=new c.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,u.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,f.O)(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new v)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),s=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=r.zs3.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:v,useValue:e}]}),i=new s.C5(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const o=new this._dialogRefConstructor(n,e,i.id);if(t instanceof r.Rgc)e.attachTemplatePortal(new s.UE(t,null,{$implicit:i.data,dialogRef:o}));else{const n=this._createInjector(i,o,e),r=e.attachComponentPortal(new s.C5(t,i.viewContainerRef,n));o.componentInstance=r.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return t.direction&&(!i||!i.get(a.Is,null,r.XFs.Optional))&&s.push({provide:a.Is,useValue:{value:t.direction,change:(0,h.of)()}}),r.zs3.create({parent:i||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i!==t&&"SCRIPT"!==i.nodeName&&"STYLE"!==i.nodeName&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(i.aV),r.Y36(r.zs3),r.Y36(void 0),r.Y36(void 0),r.Y36(i.Xj),r.Y36(void 0),r.Y36(r.DyG),r.Y36(r.DyG),r.Y36(r.OlP))},t.\u0275dir=r.lG2({type:t}),t})(),R=(()=>{class t extends I{constructor(t,e,n,i,s,r,o){super(t,e,i,r,o,s,k,C,A)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.aV),r.LFG(r.zs3),r.LFG(l.Ye,8),r.LFG(T,8),r.LFG(O),r.LFG(t,12),r.LFG(i.Xj))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),D=0,M=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=B(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){S(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(k,8),r.Y36(r.SBq),r.Y36(R))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e._onButtonClick(t)}),2&t&&r.uIk("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[r.TTD]}),t})(),L=(()=>{class t{constructor(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+D++}ngOnInit(){this._dialogRef||(this._dialogRef=B(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(k,8),r.Y36(r.SBq),r.Y36(R))},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&r.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function B(t,e){let n=t.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(t=>t.id===n.id):null}let U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[R,P],imports:[[i.U8,s.eL,o.BQ],o.BQ]}),t})()},8295:function(t,e,n){"use strict";n.d(e,{G_:function(){return G},o2:function(){return Y},KE:function(){return K},Eo:function(){return N},lN:function(){return $},hX:function(){return U},R9:function(){return V}});var i=n(8553),s=n(8583),r=n(3018),o=n(2458),a=n(9490),l=n(9765),c=n(6682),u=n(2759),h=n(9761),d=n(6782),p=n(5257),f=n(7238),m=n(6237),g=n(946),_=n(521);const y=["underline"],b=["connectionContainer"],v=["inputContainer"],w=["label"];function x(t,e){1&t&&(r.ynx(0),r.TgZ(1,"div",14),r._UZ(2,"div",15),r._UZ(3,"div",16),r._UZ(4,"div",17),r.qZA(),r.TgZ(5,"div",18),r._UZ(6,"div",15),r._UZ(7,"div",16),r._UZ(8,"div",17),r.qZA(),r.BQk())}function C(t,e){1&t&&(r.TgZ(0,"div",19),r.Hsn(1,1),r.qZA())}function E(t,e){if(1&t&&(r.ynx(0),r.Hsn(1,2),r.TgZ(2,"span"),r._uU(3),r.qZA(),r.BQk()),2&t){const t=r.oxw(2);r.xp6(3),r.Oqu(t._control.placeholder)}}function k(t,e){1&t&&r.Hsn(0,3,["*ngSwitchCase","true"])}function S(t,e){1&t&&(r.TgZ(0,"span",23),r._uU(1," *"),r.qZA())}function A(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"label",20,21),r.NdJ("cdkObserveContent",function(){return r.CHM(t),r.oxw().updateOutlineGap()}),r.YNc(2,E,4,1,"ng-container",12),r.YNc(3,k,1,0,"ng-content",12),r.YNc(4,S,2,0,"span",22),r.qZA()}if(2&t){const t=r.oxw();r.ekj("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),r.Q6J("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),r.uIk("for",t._control.id)("aria-owns",t._control.id),r.xp6(2),r.Q6J("ngSwitchCase",!1),r.xp6(1),r.Q6J("ngSwitchCase",!0),r.xp6(1),r.Q6J("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function T(t,e){1&t&&(r.TgZ(0,"div",24),r.Hsn(1,4),r.qZA())}function O(t,e){if(1&t&&(r.TgZ(0,"div",25,26),r._UZ(2,"span",27),r.qZA()),2&t){const t=r.oxw();r.xp6(2),r.ekj("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function P(t,e){if(1&t&&(r.TgZ(0,"div"),r.Hsn(1,5),r.qZA()),2&t){const t=r.oxw();r.Q6J("@transitionMessages",t._subscriptAnimationState)}}function I(t,e){if(1&t&&(r.TgZ(0,"div",31),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.Q6J("id",t._hintLabelId),r.xp6(1),r.Oqu(t.hintLabel)}}function R(t,e){if(1&t&&(r.TgZ(0,"div",28),r.YNc(1,I,2,2,"div",29),r.Hsn(2,6),r._UZ(3,"div",30),r.Hsn(4,7),r.qZA()),2&t){const t=r.oxw();r.Q6J("@transitionMessages",t._subscriptAnimationState),r.xp6(1),r.Q6J("ngIf",t.hintLabel)}}const D=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],M=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],L=new r.OlP("MatError"),F={transitionMessages:(0,f.X$)("transitionMessages",[(0,f.SB)("enter",(0,f.oB)({opacity:1,transform:"translateY(0%)"})),(0,f.eR)("void => enter",[(0,f.oB)({opacity:0,transform:"translateY(-5px)"}),(0,f.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t}),t})();const B=new r.OlP("MatHint");let U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-label"]]}),t})(),Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["mat-placeholder"]]}),t})();const q=new r.OlP("MatPrefix"),j=new r.OlP("MatSuffix");let V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["","matSuffix",""]],features:[r._Bn([{provide:j,useExisting:t}])]}),t})(),H=0;const z=(0,o.pj)(class{constructor(t){this._elementRef=t}},"primary"),Y=new r.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),G=new r.OlP("MatFormField");let K=(()=>{class t extends z{constructor(t,e,n,i,s,r,o,a){super(t),this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+H++,this._labelId="mat-form-field-label-"+H++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=(0,a.Ig)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe((0,h.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,d.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,c.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,d.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,u.R)(this._label.nativeElement,"transitionend").pipe((0,p.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let o=0;o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[s.ez,o.BQ,i.Q8],o.BQ]}),t})()},9983:function(t,e,n){"use strict";n.d(e,{Nt:function(){return y},c:function(){return b}});var i=n(521),s=n(3018),r=n(9490),o=n(9193),a=n(9765);n(2759),n(628),n(6782),n(8583);const l=(0,i.i$)({passive:!0});let c=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return o.E;const e=(0,r.fI)(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new a.xQ,s="cdk-text-field-autofilled",c=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",c,l),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",c,l)}}),i}stopMonitoring(t){const e=(0,r.fI)(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.t4),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(i.t4),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[i.ud]]}),t})();var h=n(2458),d=n(8295),p=n(665);const f=new s.OlP("MAT_INPUT_VALUE_ACCESSOR"),m=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g=0;const _=(0,h.FD)(class{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}});let y=(()=>{class t extends _{constructor(t,e,n,s,r,o,l,c,u,h){super(o,s,r,n),this._elementRef=t,this._platform=e,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+g++,this.focused=!1,this.stateChanges=new a.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>(0,i.qK)().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=l||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&u.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{const e=t.target;!e.value&&0===e.selectionStart&&0===e.selectionEnd&&(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&(0,i.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=(0,r.Ig)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){m.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(i.t4),s.Y36(p.a5,10),s.Y36(p.F,8),s.Y36(p.sg,8),s.Y36(h.rD),s.Y36(f,10),s.Y36(c),s.Y36(s.R0b),s.Y36(d.G_,8))},t.\u0275dir=s.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Ikx("disabled",e.disabled)("required",e.required),s.uIk("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),s.ekj("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s._Bn([{provide:d.Eo,useExisting:t}]),s.qOj,s.TTD]}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[h.rD],imports:[[u,d.lN,h.BQ],u,d.lN]}),t})()},7441:function(t,e,n){"use strict";n.d(e,{gD:function(){return H},LD:function(){return z}});var i=n(625),s=n(8583),r=n(3018),o=n(2458),a=n(8295),l=n(9243),c=n(9238),u=n(9490),h=n(8345),d=n(6461),p=n(9765),f=n(1439),m=n(6682),g=n(9761),_=n(3190),y=n(5257),b=n(5435),v=n(8002),w=n(7519),x=n(6782),C=n(7238),E=n(946),k=n(665);const S=["trigger"],A=["panel"];function T(t,e){if(1&t&&(r.TgZ(0,"span",8),r._uU(1),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Oqu(t.placeholder)}}function O(t,e){if(1&t&&(r.TgZ(0,"span",12),r._uU(1),r.qZA()),2&t){const t=r.oxw(2);r.xp6(1),r.Oqu(t.triggerValue)}}function P(t,e){1&t&&r.Hsn(0,0,["*ngSwitchCase","true"])}function I(t,e){if(1&t&&(r.TgZ(0,"span",9),r.YNc(1,O,2,1,"span",10),r.YNc(2,P,1,0,"ng-content",11),r.qZA()),2&t){const t=r.oxw();r.Q6J("ngSwitch",!!t.customTrigger),r.xp6(2),r.Q6J("ngSwitchCase",!0)}}function R(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"div",13),r.TgZ(1,"div",14,15),r.NdJ("@transformPanel.done",function(e){return r.CHM(t),r.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return r.CHM(t),r.oxw()._handleKeydown(e)}),r.Hsn(3,1),r.qZA(),r.qZA()}if(2&t){const t=r.oxw();r.Q6J("@transformPanelWrap",void 0),r.xp6(1),r.Gre("mat-select-panel ",t._getPanelTheme(),""),r.Udp("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),r.Q6J("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),r.uIk("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const D=[[["mat-select-trigger"]],"*"],M=["mat-select-trigger","*"],L={transformPanelWrap:(0,C.X$)("transformPanelWrap",[(0,C.eR)("* => void",(0,C.IO)("@transformPanel",[(0,C.pV)()],{optional:!0}))]),transformPanel:(0,C.X$)("transformPanel",[(0,C.SB)("void",(0,C.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,C.SB)("showing",(0,C.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,C.SB)("showing-multiple",(0,C.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,C.eR)("void => *",(0,C.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,C.eR)("* => void",(0,C.jt)("100ms 25ms linear",(0,C.oB)({opacity:0})))])};let F=0;const N=new r.OlP("mat-select-scroll-strategy"),B=new r.OlP("MAT_SELECT_CONFIG"),U={provide:N,deps:[i.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class Z{constructor(t,e){this.source=t,this.value=e}}const q=(0,o.Kr)((0,o.sb)((0,o.Id)((0,o.FD)(class{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}})))),j=new r.OlP("MatSelectTrigger");let V=(()=>{class t extends q{constructor(t,e,n,i,s,o,a,l,c,u,h,d,w,x){var C,E,k;super(s,i,a,l,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=o,this._parentFormField=c,this._liveAnnouncer=w,this._defaultOptions=x,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+F++,this._triggerAriaLabelledBy=null,this._destroy=new p.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+F++,this._panelDoneAnimatingStream=new p.xQ,this._overlayPanelClass=(null===(C=this._defaultOptions)||void 0===C?void 0:C.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(k=null===(E=this._defaultOptions)||void 0===E?void 0:E.disableOptionCentering)&&void 0!==k&&k,this.ariaLabel="",this.optionSelectionChanges=(0,f.P)(()=>{const t=this.options;return t?t.changes.pipe((0,g.O)(t),(0,_.w)(()=>(0,m.T)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe((0,y.q)(1),(0,_.w)(()=>this.optionSelectionChanges))}),this.openedChange=new r.vpe,this._openedStream=this.openedChange.pipe((0,b.h)(t=>t),(0,v.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,b.h)(t=>!t),(0,v.U)(()=>{})),this.selectionChange=new r.vpe,this.valueChange=new r.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==x?void 0:x.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=x.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=(0,u.Ig)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=(0,u.Ig)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=(0,u.Ig)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=(0,u.su)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,w.x)(),(0,x.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,x.R)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe((0,g.O)(null),(0,x.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=e===d.JH||e===d.LH||e===d.oh||e===d.SV,i=e===d.K5||e===d.L_,s=this._keyManager;if(!s.isTyping()&&i&&!(0,d.Vb)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=n===d.JH||n===d.LH,s=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(s||n!==d.K5&&n!==d.L_||!e.activeItem||(0,d.Vb)(t))if(!s&&this._multiple&&n===d.A&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,y.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new c.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,x.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,x.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=(0,m.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,x.R)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,m.T)(...this.options.map(t=>t._stateChanges)).pipe((0,x.R)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(l.rL),r.Y36(r.sBO),r.Y36(r.R0b),r.Y36(o.rD),r.Y36(r.SBq),r.Y36(E.Is,8),r.Y36(k.F,8),r.Y36(k.sg,8),r.Y36(a.G_,8),r.Y36(k.a5,10),r.$8M("tabindex"),r.Y36(N),r.Y36(c.Kd),r.Y36(B,8))},t.\u0275dir=r.lG2({type:t,viewQuery:function(t,e){if(1&t&&(r.Gf(S,5),r.Gf(A,5),r.Gf(i.pI,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.trigger=t.first),r.iGM(t=r.CRH())&&(e.panel=t.first),r.iGM(t=r.CRH())&&(e._overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[r.qOj,r.TTD]}),t})(),H=(()=>{class t extends V{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,x.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,y.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=(0,o.CB)(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=0===t&&1===e?0:(0,o.jH)((t+e)*n,n,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new Z(this,t)}_calculateOverlayOffsetX(){const t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),o=t.right+s-e.width+(n?0:i);r>0?s+=r+8:o>0&&(s-=o+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(256/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>i?this._adjustPanelDown(r,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=(0,o.CB)(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275cmp=r.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(r.Suo(n,j,5),r.Suo(n,o.ey,5),r.Suo(n,o.K7,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.customTrigger=t.first),r.iGM(t=r.CRH())&&(e.options=t),r.iGM(t=r.CRH())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&r.NdJ("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(r.uIk("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),r.ekj("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[r._Bn([{provide:a.Eo,useExisting:t},{provide:o.HF,useExisting:t}]),r.qOj],ngContentSelectors:M,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(r.F$t(D),r.TgZ(0,"div",0,1),r.NdJ("click",function(){return e.toggle()}),r.TgZ(3,"div",2),r.YNc(4,T,2,1,"span",3),r.YNc(5,I,3,2,"span",4),r.qZA(),r.TgZ(6,"div",5),r._UZ(7,"div",6),r.qZA(),r.qZA(),r.YNc(8,R,4,14,"ng-template",7),r.NdJ("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=r.MAs(1);r.uIk("aria-owns",e.panelOpen?e.id+"-panel":null),r.xp6(3),r.Q6J("ngSwitch",e.empty),r.uIk("id",e._valueId),r.xp6(1),r.Q6J("ngSwitchCase",!0),r.xp6(1),r.Q6J("ngSwitchCase",!1),r.xp6(3),r.Q6J("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[i.xu,s.RF,s.n9,i.pI,s.ED,s.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[L.transformPanelWrap,L.transformPanel]},changeDetection:0}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[U],imports:[[s.ez,i.U8,o.Ng,o.BQ],l.ZD,a.lN,o.Ng,o.BQ]}),t})()},6237:function(t,e,n){"use strict";n.d(e,{Qb:function(){return De},PW:function(){return Ne}});var i=n(3018),s=n(9075),r=n(7238);function o(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function l(t){switch(t.length){case 0:return new r.ZN;case 1:return t[0];default:return new r.ZE(t)}}function c(t,e,n,i,s={},o={}){const a=[],l=[];let c=-1,u=null;if(i.forEach(t=>{const n=t.offset,i=n==c,h=i&&u||{};Object.keys(t).forEach(n=>{let i=n,l=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),l){case r.k1:l=s[n];break;case r.l3:l=o[n];break;default:l=e.normalizeStyleValue(n,i,l,a)}h[i]=l}),i||l.push(h),u=h,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function u(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&h(n,"start",t)));break;case"done":t.onDone(()=>i(n&&h(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&h(n,"destroy",t)))}}function h(t,e,n){const i=n.totalTime,s=d(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function d(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function p(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function f(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let m=(t,e)=>!1,g=(t,e)=>!1,_=(t,e,n)=>[];const y=a();(y||"undefined"!=typeof Element)&&(m=o()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),g=(()=>{if(y||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):g}})(),_=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let S=(()=>{class t{validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,o=[],a){return new r.ZN(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class A{}A.NOOP=new S;const T="ng-enter",O="ng-leave",P="ng-trigger",I=".ng-trigger",R="ng-animating",D=".ng-animating";function M(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:L(parseFloat(e[1]),e[2])}function L(t,e){switch(e){case"s":return 1e3*t;default:return t}}function F(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=L(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=L(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function N(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function B(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else N(t,n);return n}function U(t,e,n){return n?e+":"+n+";":""}function Z(t){let e="";for(let n=0;n{const s=$(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),a()&&Z(t))}function j(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=$(e);t.style[n]=""}),a()&&Z(t))}function V(t){return Array.isArray(t)?1==t.length?t[0]:(0,r.vP)(t):t}const H=new RegExp("{{\\s*(.+?)\\s*}}","g");function z(t){let e=[];if("string"==typeof t){let n;for(;n=H.exec(t);)e.push(n[1]);H.lastIndex=0}return e}function Y(t,e,n){const i=t.toString(),s=i.replace(H,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),s=""),s.toString()});return s==i?t:s}function G(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const K=/-+([a-z0-9])/g;function $(t){return t.replace(K,(...t)=>t[1].toUpperCase())}function W(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Q(t,e){return 0===t||0===e}function J(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(st(s,o));"<"==r[0]&&!("*"==s&&"*"==o)&&e.push(st(o,s))}(t,n,e)):n.push(t),n}const nt=new Set(["true","1"]),it=new Set(["false","0"]);function st(t,e){const n=nt.has(t)||it.has(t),i=nt.has(e)||it.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?nt.has(t):it.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?nt.has(e):it.has(e)),o&&a}}const rt=new RegExp("s*:selfs*,?","g");function ot(t,e,n){return new at(t).build(e,n)}class at{constructor(t){this._driver=t}build(t,e){const n=new lt(e);return this._resetContextStyleTimingState(n),X(this,V(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(ct(t)){const e=t;Object.keys(e).forEach(t=>{z(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=G(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=X(this,V(t.animation),e);return{type:1,matchers:et(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:ut(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>X(this,t,e)),options:ut(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=X(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:ut(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return ht(F(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ht(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||F(i,e),ht(n.duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let i,s=t.styles?t.styles:(0,r.oB)({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};n.easing&&(t.easing=n.easing),s=(0,r.oB)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(s,e);a.isEmptyStep=o,i=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==r.l3?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(ct(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=z(t);s.length&&s.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,r=r||c0&&i{const r=u>0?i==h?1:u*i:s[i],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:X(this,V(t.animation),e),options:ut(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ut(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ut(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(rt,"")),[t=t.replace(/@\*/g,I).replace(/@\w+/g,t=>I+"-"+t.substr(1)).replace(/:animating/g,D),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,p(e.collectedStyles,e.currentQuerySelector,{});const o=X(this,V(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:ut(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:F(t.timings,e.errors,!0);return{type:12,animation:X(this,V(t.animation),e),timings:n,options:null}}}class lt{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ct(t){return!Array.isArray(t)&&"object"==typeof t}function ut(t){return t?(t=N(t)).params&&(t.params=function(t){return t?N(t):null}(t.params)):t={},t}function ht(t,e,n){return{duration:t,delay:e,easing:n}}function dt(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class pt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const ft=new RegExp(":enter","g"),mt=new RegExp(":leave","g");function gt(t,e,n,i,s,r={},o={},a,l,c=[]){return(new _t).buildKeyframes(t,e,n,i,s,r,o,a,l,c)}class _t{buildKeyframes(t,e,n,i,s,r,o,a,l,c=[]){l=l||new pt;const u=new bt(t,e,l,i,s,c,[]);u.options=a,u.currentTimeline.setStyles([r],null,u.errors,a),X(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[dt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const s=null!=n.duration?M(n.duration):null,r=null!=n.delay?M(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),X(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=yt);const t=M(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>X(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?M(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),X(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return F(e.params?Y(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?M(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=yt);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),X(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;X(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const yt={};class bt{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new vt(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=M(n.duration)),null!=n.delay&&(i.delay=M(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{(!e||!t.hasOwnProperty(n))&&(t[n]=Y(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,s=new bt(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=yt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new wt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(ft,"."+this._enterClassName)).replace(mt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return!s&&0==o.length&&r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class vt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new vt(this._driver,t,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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||r.l3,this._currentKeyframe[t]=r.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},o=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=r.l3})):B(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=Y(o[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:r.l3),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,o)=>{const a=B(s,!0);Object.keys(a).forEach(n=>{const i=a[n];i==r.k1?t.add(n):i==r.l3&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const s=t.size?G(t.values()):[],o=e.size?G(e.values()):[];if(n){const t=i[0],e=N(t);t.offset=0,e.offset=1,i=[t,e]}return dt(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class wt extends vt{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=B(t[0],!1);a.offset=0,s.push(a);const l=B(t[0],!1);l.offset=xt(o),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=B(t[i],!1);o.offset=xt((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return dt(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function xt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Ct{}class Et extends Ct{normalizePropertyName(t,e){return $(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(kt[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const kt=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function St(t,e,n,i,s,r,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const At={};class Tt{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||At,d=this.buildStyles(n,o&&o.params||At,u),f=a&&a.params||At,m=this.buildStyles(i,f,u),g=new Set,_=new Map,y=new Map,b="void"===i,v={params:Object.assign(Object.assign({},h),f)},w=c?[]:gt(t,e,this.ast.animation,s,r,d,m,v,l,u);let x=0;if(w.forEach(t=>{x=Math.max(t.duration+t.delay,x)}),u.length)return St(e,this._triggerName,n,i,b,d,m,[],[],_,y,x,u);w.forEach(t=>{const n=t.element,i=p(_,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=p(y,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&g.add(n)});const C=G(g.values());return St(e,this._triggerName,n,i,b,d,m,w,C,_,y,x)}}class Ot{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},i=N(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=Y(r,i,e));const o=this.normalizer.normalizePropertyName(t,e);r=this.normalizer.normalizeStyleValue(t,o,r,e),n[o]=r})}}),n}}class Pt{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Ot(t.style,t.options&&t.options.params||{},n)}),It(this.states,"true","1"),It(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Tt(t,e,this.states))}),this.fallbackTransition=function(t,e,n){return new Tt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},e)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function It(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Rt=new pt;class Dt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=ot(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,s=c(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let o;const a=new Map;if(s?(o=gt(this._driver,e,s,T,O,{},{},n,Rt,i),o.forEach(t=>{const e=p(a,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);a.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,r.l3)})});const c=l(o.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const s=d(e,"","","");return u(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Mt="ng-animate-queued",Lt="ng-animate-disabled",Ft=".ng-animate-disabled",Nt=[],Bt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ut={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zt="__ng_removed";class qt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=N(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const jt="void",Vt=new qt(jt);class Ht{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Jt(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=p(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=p(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Jt(t,P),Jt(t,P+"-"+e),a[e]=Vt),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const s=this._getTrigger(e),r=new Yt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Jt(t,P),Jt(t,P+"-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new qt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=Vt),l.value!==jt&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s{j(t,n),q(t,i)})}return}const c=p(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:r,isFallbackTransition:h}),h||(Jt(t,Mt),r.onStart(()=>{Xt(t,Mt)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,I,!0);n.forEach(t=>{if(t[Zt])return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,jt,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&l(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const s=e.name;if(i.has(s))return;i.add(s);const r=this._triggers[s].fallbackTransition,o=n[s]||Vt,a=new qt(jt),l=new Yt(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:o,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t[Zt];(!i||i===Bt)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Jt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=d(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,u(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class zt{constructor(t,e,n){this.bodyNode=t,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Ht(t,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[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Jt(t,Lt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Xt(t,Lt))}removeNode(t,e,n,i){if(Gt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e[Zt]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Gt(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,I,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,D,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return l(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Zt];if(e&&e.setForRemoval){if(t[Zt]=Bt,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Ft)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Ft,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?l(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new pt,i=[],s=new Map,o=[],a=new Map,c=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n=T+_++;g.set(e,n),t.forEach(t=>Jt(t,n))});const y=[],b=new Set,v=new Set;for(let r=0;rb.add(t)):v.add(t))}const w=new Map,x=Wt(f,Array.from(b));x.forEach((t,e)=>{const n=O+_++;w.set(e,n),t.forEach(t=>Jt(t,n))}),t.push(()=>{m.forEach((t,e)=>{const n=g.get(e);t.forEach(t=>Xt(t,n))}),x.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Xt(t,n))}),y.forEach(t=>{this.processLeaveNode(t)})});const C=[],E=[];for(let r=this._namespaceList.length-1;r>=0;r--)this._namespaceList[r].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(C.push(e),this.collectedEnterElements.length){const t=s[Zt];if(t&&t.setForMove)return void e.destroy()}const r=!d||!this.driver.containsElement(d,s),l=w.get(s),h=g.get(s),f=this._buildInstruction(t,n,h,l,r);if(f.errors&&f.errors.length)E.push(f);else{if(r)return e.onStart(()=>j(s,f.fromStyles)),e.onDestroy(()=>q(s,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>j(s,f.fromStyles)),e.onDestroy(()=>q(s,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),o.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>p(a,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(E.length){const t=[];E.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),C.forEach(t=>t.destroy()),this.reportError(t)}const k=new Map,S=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(S.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,k))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{p(k,e,[]).push(t),t.destroy()})});const A=y.filter(t=>ne(t,c,u)),P=new Map;$t(P,this.driver,v,u,r.l3).forEach(t=>{ne(t,c,u)&&A.push(t)});const I=new Map;m.forEach((t,e)=>{$t(I,this.driver,new Set(t),c,r.k1)}),A.forEach(t=>{const e=P.get(t),n=I.get(t);P.set(t,Object.assign(Object.assign({},e),n))});const R=[],M=[],L={};o.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(h.has(e))return r.onDestroy(()=>q(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=L;if(S.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=S.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>S.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,k,s,I,P);if(r.setRealPlayer(n),t===L)R.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=l(e)),i.push(r)}}else j(e,o.fromStyles),r.onDestroy(()=>q(e,o.toStyles)),M.push(r),h.has(e)&&i.push(r)}),M.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=l(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let r=0;r!t.destroyed);i.length?te(this,t,i):this.processLeaveNode(t)}return y.length=0,R.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),R}elementContainsData(t,e){let n=!1;const i=e[Zt];return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==jt;e.forEach(e=>{e.queued||!t&&e.triggerName!=i||r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=p(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}j(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,o){const a=e.triggerName,u=e.element,h=[],d=new Set,f=new Set,m=e.timelines.map(e=>{const l=e.element;d.add(l);const p=l[Zt];if(p&&p.removedBeforeQueried)return new r.ZN(e.duration,e.delay);const m=l!==u,g=function(t){const e=[];return ee(t,e),e}((n.get(l)||Nt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===l),_=s.get(l),y=o.get(l),b=c(0,this._normalizer,0,e.keyframes,_,y),v=this._buildPlayer(e,b,g);if(e.subTimeline&&i&&f.add(l),m){const e=new Yt(t,a,l);e.setRealPlayer(v),h.push(e)}return v});h.forEach(t=>{p(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),d.forEach(t=>Jt(t,R));const g=l(m);return g.onDestroy(()=>{d.forEach(t=>Xt(t,R)),q(u,e.toStyles)}),f.forEach(t=>{p(i,t,[]).push(g)}),g}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new r.ZN(t.duration,t.delay)}}class Yt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new r.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>u(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){p(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Gt(t){return t&&1===t.nodeType}function Kt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function $t(t,e,n,i,s){const r=[];n.forEach(t=>r.push(Kt(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);(!n||0==n.length)&&(i[Zt]=Ut,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>Kt(t,r[a++])),o}function Wt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:r(o),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}const Qt="$$classes";function Jt(t,e){if(t.classList)t.classList.add(e);else{let n=t[Qt];n||(n=t[Qt]={}),n[e]=!0}}function Xt(t,e){if(t.classList)t.classList.remove(e);else{let n=t[Qt];n&&delete n[e]}}function te(t,e,n){l(n).onDone(()=>t.processLeaveNode(e))}function ee(t,e){for(let n=0;ns.add(t)):e.set(t,i),n.delete(t),!0}class ie{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new zt(t,e,n),this._timelineEngine=new Dt(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=ot(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e,n){return new Pt(t,e,n)}(i,e,this._normalizer),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=f(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=f(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function se(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=oe(e[0]),e.length>1&&(i=oe(e[e.length-1]))):e&&(n=oe(e)),n||i?new re(t,n,i):null}class re{constructor(t,e,n){this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;let i=re.initialStylesByElement.get(t);i||re.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(re.initialStylesByElement.delete(this._element),this._startStyles&&(j(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}function oe(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){(function(t,e){const n=ge(t,"").trim();let i=0;n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),fe(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=ge(t,"").split(","),i=pe(n,e);i>=0&&(n.splice(i,1),me(t,"",n.join(",")))}(this._element,this._name))}}function he(t,e,n){me(t,"PlayState",n,de(t,e))}function de(t,e){const n=ge(t,"");return n.indexOf(",")>0?pe(n.split(","),e):pe([n],e)}function pe(t,e){for(let n=0;n=0)return n;return-1}function fe(t,e,n){n?t.removeEventListener(ce,e):t.addEventListener(ce,e)}function me(t,e,n,i){const s=le+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function ge(t,e){return t.style[le+e]||""}class _e{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ue(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:tt(this.element,n))})}this.currentSnapshot=t}}class ye extends r.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=k(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class be{constructor(){this._count=0}validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>k(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=`${s}}\n`}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],o){const a=r.filter(t=>t instanceof _e),l={};Q(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"==n||"easing"==n||(e[n]=t[n])})}),e}(e=J(t,e,l));if(0==n)return new ye(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(h);const d=se(t,e),p=new _e(t,e,u,n,i,s,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class ve{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,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(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:tt(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class we{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(xe().toString()),this._cssKeyframesDriver=new be}validateStyleProperty(t){return w(t)}matchesElement(t,e){return x(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return E(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const l={},c=r.filter(t=>t instanceof ve);Q(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=se(t,e=J(t,e=e.map(t=>B(t,!1)),l));return new ve(t,e,a,u)}}function xe(){return o()&&Element.prototype.animate||{}}var Ce=n(8583);let Ee=(()=>{class t extends r._j{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?(0,r.vP)(t):t;return Ae(this._renderer,null,e,"register",[n]),new ke(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(Ce.K0))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class ke extends r.LC{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Se(this._id,t,e||{},this._renderer)}}class Se{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Ae(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Ae(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}const Te="@.disabled";let Oe=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Pe("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new Ie(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.FYo),i.LFG(ie),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();class Pe{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&e==Te?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Ie extends Pe{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==Te?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Re=(()=>{class t extends ie{constructor(t,e,n){super(t.body,e,n)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ce.K0),i.LFG(A),i.LFG(Ct))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const De=new i.OlP("AnimationModuleType"),Me=[{provide:r._j,useClass:Ee},{provide:Ct,useFactory:function(){return new Et}},{provide:ie,useClass:Re},{provide:i.FYo,useFactory:function(t,e,n){return new Oe(t,e,n)},deps:[s.se,ie,i.R0b]}],Le=[{provide:A,useFactory:function(){return"function"==typeof xe()?new we:new be}},{provide:De,useValue:"BrowserAnimations"},...Me],Fe=[{provide:A,useClass:S},{provide:De,useValue:"NoopAnimations"},...Me];let Ne=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?Fe:Le}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:Le,imports:[s.b2]}),t})()},9075:function(t,e,n){"use strict";n.d(e,{b2:function(){return N},H7:function(){return D},q6:function(){return L},se:function(){return C}});var i=n(8583),s=n(3018);class r extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class o extends r{static makeCurrent(){(0,i.HT)(new o)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(l=l||document.querySelector("base"),l?l.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,i.Mx)(document.cookie,t)}}let a,l=null;const c=new s.OlP("TRANSITION_ID"),u=[{provide:s.ip1,useFactory:function(t,e,n){return()=>{n.get(s.CZH).donePromise.then(()=>{const n=(0,i.q)(),s=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let t=0;t{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},s.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),s.dqk.frameworkStabilizers||(s.dqk.frameworkStabilizers=[]),s.dqk.frameworkStabilizers.push(t=>{const e=s.dqk.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?(0,i.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new s.OlP("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t extends g{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(y),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(y))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function y(t){(0,i.q)().remove(t)}const b={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},v=/%COMP%/g;function w(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let C=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new E(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ifc.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new k(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case s.ifc.ShadowDom:return new S(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=w(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(f),s.LFG(_),s.LFG(s.AFp))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();class E{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(b[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const s=b[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=b[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(s.JOm.DashCase|s.JOm.Important)?t.style.setProperty(e,n,i&s.JOm.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&s.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,x(n)):this.eventManager.addEventListener(t,e,x(n))}}class k extends E{constructor(t,e,n,i){super(t),this.component=n;const s=w(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(v,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(v,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class S extends E{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=w(i.id,i.styles,[]);for(let r=0;r{class t extends m{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const T=["alt","control","meta","shift"],O={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},P={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"},I={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let R=(()=>{class t extends m{constructor(t){super(t)}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(()=>(0,i.q)().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(T.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&P.hasOwnProperty(e)&&(e=P[e]))}return O[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),T.forEach(i=>{i!=n&&I[i](t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,s.Yz7)({factory:function(){return(0,s.LFG)(M)},token:t,providedIn:"root"}),t})(),M=(()=>{class t extends D{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.q3G.NONE:return e;case s.q3G.HTML:return(0,s.qzn)(e,"HTML")?(0,s.z3N)(e):(0,s.EiD)(this._doc,String(e)).toString();case s.q3G.STYLE:return(0,s.qzn)(e,"Style")?(0,s.z3N)(e):e;case s.q3G.SCRIPT:if((0,s.qzn)(e,"Script"))return(0,s.z3N)(e);throw new Error("unsafe value used in a script context");case s.q3G.URL:return(0,s.yhl)(e),(0,s.qzn)(e,"URL")?(0,s.z3N)(e):(0,s.mCW)(String(e));case s.q3G.RESOURCE_URL:if((0,s.qzn)(e,"ResourceURL"))return(0,s.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,s.JVY)(t)}bypassSecurityTrustStyle(t){return(0,s.L6k)(t)}bypassSecurityTrustScript(t){return(0,s.eBb)(t)}bypassSecurityTrustUrl(t){return(0,s.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,s.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(i.K0))},t.\u0275prov=(0,s.Yz7)({factory:function(){return function(t){return new M(t.get(i.K0))}((0,s.LFG)(s.gxx))},token:t,providedIn:"root"}),t})();const L=(0,s.eFA)(s._c5,"browser",[{provide:s.Lbi,useValue:i.bD},{provide:s.g9A,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,s.RDi)(document),document},deps:[]}]),F=[[],{provide:s.zSh,useValue:"root"},{provide:s.qLn,useFactory:function(){return new s.qLn},deps:[]},{provide:p,useClass:A,multi:!0,deps:[i.K0,s.R0b,s.Lbi]},{provide:p,useClass:R,multi:!0,deps:[i.K0]},[],{provide:C,useClass:C,deps:[f,_,s.AFp]},{provide:s.FYo,useExisting:C},{provide:g,useExisting:_},{provide:_,useClass:_,deps:[i.K0]},{provide:s.dDg,useClass:s.dDg,deps:[s.R0b]},{provide:f,useClass:f,deps:[p,s.R0b]},{provide:i.JF,useClass:d,deps:[]},[]];let N=(()=>{class t{constructor(t){if(t)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:s.AFp,useValue:e.appId},{provide:c,useExisting:s.AFp},u]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(t,12))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:F,imports:[i.ez,s.hGG]}),t})();"undefined"!=typeof window&&window},8741:function(t,e,n){"use strict";n.d(e,{gz:function(){return se},F0:function(){return An},rH:function(){return On},yS:function(){return Pn},Bz:function(){return jn},lC:function(){return Rn}});var i=n(8583),s=n(3018);const r=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var o=n(4402),a=n(5917),l=n(6215),c=n(739),u=n(7574),h=n(8071),d=n(1439),p=n(9193),f=n(2441),m=n(9765),g=n(7393);function _(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new y(t,e,n))}}class y{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new b(t,this.accumulator,this.seed,this.hasSeed))}}class b extends g.L{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}var v=n(5345);function w(t){return function(e){const n=new x(t),i=e.lift(n);return n.caught=i}}class x{constructor(t){this.selector=t}call(t,e){return e.subscribe(new C(t,this.selector,this.caught))}}class C extends v.Ds{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new v.IY(this);this.add(i);const s=(0,v.ft)(n,i);s!==i&&this.add(s)}}}var E=n(5435),k=n(7108);function S(t){return function(e){return 0===t?(0,p.c)():e.lift(new A(t))}}class A{constructor(t){if(this.total=t,this.total<0)throw new k.W}call(t,e){return e.subscribe(new T(t,this.total))}}class T extends g.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;se.lift(new P(t))}class P{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new I(t,this.errorFactory))}}class I extends g.L{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function R(){return new r}function D(t=null){return e=>e.lift(new M(t))}class M{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new L(t,this.defaultValue))}}class L extends g.L{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var F=n(4487),N=n(5257);function B(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,E.h)((e,n)=>t(e,n,i)):F.y,(0,N.q)(1),n?D(e):O(()=>new r))}var U=n(5319);class Z{constructor(t){this.callback=t}call(t,e){return e.subscribe(new q(t,this.callback))}}class q extends g.L{constructor(t,e){super(t),this.add(new U.w(e))}}var j=n(8002),V=n(3190),H=n(9761),z=n(4612),Y=n(9773),G=n(3342),K=n(1307),$=n(3282);class W{constructor(t,e){this.id=t,this.url=e}}class Q extends W{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class J extends W{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class X extends W{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class tt extends W{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class et extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nt extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class it extends W{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class st extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class rt extends W{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ot{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class at{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class lt{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ct{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ut{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ht{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dt{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const pt="primary";class ft{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function mt(t){return new ft(t)}const gt="ngNavigationCancelingError";function _t(t){const e=Error("NavigationCancelingError: "+t);return e[gt]=!0,e}function yt(t,e,n){const i=n.path.split("/");if(i.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function wt(t){return Array.prototype.concat.apply([],t)}function xt(t){return t.length>0?t[t.length-1]:null}function Ct(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Et(t){return(0,s.CqO)(t)?t:(0,s.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,a.of)(t)}const kt={exact:function t(e,n,i){if(!Mt(e.segments,n.segments)||!Pt(e.segments,n.segments,i)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const s in n.children)if(!e.children[s]||!t(e.children[s],n.children[s],i))return!1;return!0},subset:Tt},St={exact:function(t,e){return bt(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>vt(t[n],e[n]))},ignored:()=>!0};function At(t,e,n){return kt[n.paths](t.root,e.root,n.matrixParams)&&St[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function Tt(t,e,n){return Ot(t,e,e.segments,n)}function Ot(t,e,n,i){if(t.segments.length>n.length){const s=t.segments.slice(0,n.length);return!(!Mt(s,n)||e.hasChildren()||!Pt(s,n,i))}if(t.segments.length===n.length){if(!Mt(t.segments,n)||!Pt(t.segments,n,i))return!1;for(const n in e.children)if(!t.children[n]||!Tt(t.children[n],e.children[n],i))return!1;return!0}{const s=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!(Mt(t.segments,s)&&Pt(t.segments,s,i)&&t.children[pt])&&Ot(t.children[pt],e,r,i)}}function Pt(t,e,n){return e.every((e,i)=>St[n](t[i].parameters,e.parameters))}class It{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mt(this.queryParams)),this._queryParamMap}toString(){return Nt.serialize(this)}}class Rt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ct(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bt(this)}}class Dt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=mt(this.parameters)),this._parameterMap}toString(){return zt(this)}}function Mt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Lt{}class Ft{parse(t){const e=new Wt(t);return new It(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${Ut(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${qt(e)}=${qt(t)}`).join("&"):`${qt(e)}=${qt(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Nt=new Ft;function Bt(t){return t.segments.map(t=>zt(t)).join("/")}function Ut(t,e){if(!t.hasChildren())return Bt(t);if(e){const e=t.children[pt]?Ut(t.children[pt],!1):"",n=[];return Ct(t.children,(t,e)=>{e!==pt&&n.push(`${e}:${Ut(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return Ct(t.children,(t,i)=>{i===pt&&(n=n.concat(e(t,i)))}),Ct(t.children,(t,i)=>{i!==pt&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===pt?[Ut(t.children[pt],!1)]:[`${n}:${Ut(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[pt]?`${Bt(t)}/${e[0]}`:`${Bt(t)}/(${e.join("//")})`}}function Zt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qt(t){return Zt(t).replace(/%3B/gi,";")}function jt(t){return Zt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vt(t){return decodeURIComponent(t)}function Ht(t){return Vt(t.replace(/\+/g,"%20"))}function zt(t){return`${jt(t.path)}${function(t){return Object.keys(t).map(e=>`;${jt(e)}=${jt(t[e])}`).join("")}(t.parameters)}`}const Yt=/^[^\/()?;=#]+/;function Gt(t){const e=t.match(Yt);return e?e[0]:""}const Kt=/^[^=?&#]+/,$t=/^[^?&#]+/;class Wt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Rt([],{}):new Rt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[pt]=new Rt(t,e)),n}parseSegment(){const t=Gt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Dt(Vt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Gt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Gt(this.remaining);t&&(n=t,this.capture(n))}t[Vt(e)]=Vt(n)}parseQueryParam(t){const e=function(t){const e=t.match(Kt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match($t);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Ht(e),s=Ht(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Gt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=pt);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r[pt]:new Rt([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Qt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Jt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Jt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Xt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Xt(t,this._root).map(t=>t.value)}}function Jt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Jt(t,n);if(e)return e}return null}function Xt(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Xt(t,n);if(i.length)return i.unshift(e),i}return[]}class te{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function ee(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class ne extends Qt{constructor(t,e){super(t),this.snapshot=e,le(this,t)}toString(){return this.snapshot.toString()}}function ie(t,e){const n=function(t,e){const n=new oe([],{},{},"",{},pt,e,null,t.root,-1,{});return new ae("",new te(n,[]))}(t,e),i=new l.X([new Dt("",{})]),s=new l.X({}),r=new l.X({}),o=new l.X({}),a=new l.X(""),c=new se(i,s,o,a,r,pt,e,n.root);return c.snapshot=n.root,new ne(new te(c,[]),n)}class se{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=a}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((0,j.U)(t=>mt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,j.U)(t=>mt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function re(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class oe{constructor(t,e,n,i,s,r,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}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=mt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=mt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ae extends Qt{constructor(t,e){super(e),this.url=t,le(this,e)}toString(){return ce(this._root)}}function le(t,e){e.value._routerState=t,e.children.forEach(e=>le(t,e))}function ce(t){const e=t.children.length>0?` { ${t.children.map(ce).join(", ")} } `:"";return`${t.value}${e}`}function ue(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,bt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),bt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nbt(t.parameters,e[n].parameters))}(t.url,e.url)&&!(!t.parent!=!e.parent)&&(!t.parent||he(t.parent,e.parent))}function de(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return de(t,e,i);return de(t,e)})}(t,e,n);return new te(i,s)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return pe(e,t),t}}const n=function(t){return new se(new l.X(t.url),new l.X(t.params),new l.X(t.queryParams),new l.X(t.fragment),new l.X(t.data),t.outlet,t.component,t)}(e.value),i=e.children.map(e=>de(t,e));return new te(n,i)}}function pe(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new It(n.root===t?e:_e(n.root,t,e),r,s)}function _e(t,e,n){const i={};return Ct(t.children,(t,s)=>{i[s]=t===e?n:_e(t,e,n)}),new Rt(t.segments,i)}class ye{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&fe(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(me);if(i&&i!==xt(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class be{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function ve(t,e,n){if(t||(t=new Rt([],{})),0===t.segments.length&&t.hasChildren())return we(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return r;const e=t.segments[s],o=n[i];if(me(o))break;const a=`${o}`,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!ke(a,l,e))return r;i+=2}else{if(!ke(a,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(s[i]=ve(t.children[i],e,n))}),Ct(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new Rt(t.segments,s)}}function xe(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=xe(new Rt([],{}),0,t))}),e}function Ee(t){const e={};return Ct(t,(t,n)=>e[n]=`${t}`),e}function ke(t,e,n){return t==n.path&&bt(e,n.parameters)}class Se{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),ue(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=ee(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),Ct(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,s=ee(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=ee(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new ht(t.value.snapshot))}),t.children.length&&this.forwardEvent(new ct(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(ue(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Ae(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Ae(t){ue(t.value),t.children.forEach(Ae)}class Te{constructor(t,e){this.routes=t,this.module=e}}function Oe(t){return"function"==typeof t}function Pe(t){return t instanceof It}const Ie=Symbol("INITIAL_VALUE");function Re(){return(0,V.w)(t=>(0,c.aj)(t.map(t=>t.pipe((0,N.q)(1),(0,H.O)(Ie)))).pipe(_((t,e)=>{let n=!1;return e.reduce((t,i,s)=>t!==Ie?t:(i===Ie&&(n=!0),n||!1!==i&&s!==e.length-1&&!Pe(i)?t:i),t)},Ie),(0,E.h)(t=>t!==Ie),(0,j.U)(t=>Pe(t)?t:!0===t),(0,N.q)(1)))}let De=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s._UZ(0,"router-outlet")},directives:function(){return[Rn]},encapsulation:2}),t})();function Me(t,e=""){for(let n=0;nBe(t)===e);return n.push(...t.filter(t=>Be(t)!==e)),n}const Ze={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function qe(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Ze):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||yt)(n,t,e);if(!s)return Object.assign({},Ze);const r={};Ct(s.posParams,(t,e)=>{r[e]=t.path});const o=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:o,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function je(t,e,n,i,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>Ve(t,e,n)&&Be(n)!==pt)}(t,n,i)){const s=new Rt(e,function(t,e,n,i){const s={};s[pt]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&Be(r)!==pt){const n=new Rt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Be(r)]=n}return s}(t,e,i,new Rt(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Ve(t,e,n))}(t,n,i)){const r=new Rt(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(Ve(t,n,a)&&!s[Be(a)]){const n=new Rt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Be(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Rt(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Ve(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function He(t,e,n,i){return!!(Be(t)===i||i!==pt&&Ve(e,n,t))&&("**"===t.path||qe(e,t,n).matched)}function ze(t,e,n){return 0===e.length&&!t.children[n]}class Ye{constructor(t){this.segmentGroup=t||null}}class Ge{constructor(t){this.urlTree=t}}function Ke(t){return new u.y(e=>e.error(new Ye(t)))}function $e(t){return new u.y(e=>e.error(new Ge(t)))}function We(t){return new u.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Qe{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(s.h0i)}apply(){const t=je(this.urlTree.root,[],[],this.config).segmentGroup,e=new Rt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,pt).pipe((0,j.U)(t=>this.createUrlTree(Je(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(w(t=>{if(t instanceof Ge)return this.allowRedirects=!1,this.match(t.urlTree);throw t instanceof Ye?this.noMatchError(t):t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,pt).pipe((0,j.U)(e=>this.createUrlTree(Je(e),t.queryParams,t.fragment))).pipe(w(t=>{throw t instanceof Ye?this.noMatchError(t):t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Rt([],{[pt]:t}):t;return new It(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,j.U)(t=>new Rt([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const s of Object.keys(n.children))"primary"===s?i.unshift(s):i.push(s);return(0,o.D)(i).pipe((0,z.b)(i=>{const s=n.children[i],r=Ue(e,i);return this.expandSegmentGroup(t,r,s,i).pipe((0,j.U)(t=>({segment:t,outlet:i})))}),_((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,E.h)((e,n)=>t(e,n,i)):F.y,S(1),n?D(e):O(()=>new r))}())}expandSegment(t,e,n,i,s,l){return(0,o.D)(n).pipe((0,z.b)(r=>this.expandSegmentAgainstRoute(t,e,n,r,i,s,l).pipe(w(t=>{if(t instanceof Ye)return(0,a.of)(null);throw t}))),B(t=>!!t),w((t,n)=>{if(t instanceof r||"EmptyError"===t.name){if(ze(e,i,s))return(0,a.of)(new Rt([],{}));throw new Ye(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return He(i,e,s,r)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):Ke(e):Ke(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?$e(s):this.lineralizeSegments(n,s).pipe((0,Y.zg)(n=>{const s=new Rt(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=qe(e,i,s);if(!o)return Ke(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?$e(u):this.lineralizeSegments(i,u).pipe((0,Y.zg)(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i,s){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,a.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,j.U)(t=>(n._loadedConfig=t,new Rt(i,{})))):(0,a.of)(new Rt(i,{}));const{matched:r,consumedSegments:o,lastChild:l}=qe(e,n,i);if(!r)return Ke(e);const c=i.slice(l);return this.getChildConfig(t,n,i).pipe((0,Y.zg)(t=>{const i=t.module,r=t.routes,{segmentGroup:l,slicedSegments:u}=je(e,o,c,r),h=new Rt(l.segments,l.children);if(0===u.length&&h.hasChildren())return this.expandChildren(i,r,h).pipe((0,j.U)(t=>new Rt(o,t)));if(0===r.length&&0===u.length)return(0,a.of)(new Rt(o,{}));const d=Be(n)===s;return this.expandSegment(i,h,r,u,d?pt:s,!0).pipe((0,j.U)(t=>new Rt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?(0,a.of)(new Te(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,a.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,Y.zg)(n=>{return n?this.configLoader.load(t.injector,e).pipe((0,j.U)(t=>(e._loadedConfig=t,t))):(i=e,new u.y(t=>t.error(_t(`Cannot load children because the guard of the route "path: '${i.path}'" returned false`))));var i})):(0,a.of)(new Te([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return(0,a.of)(!0);const s=i.map(i=>{const s=t.get(i);let r;if((o=s)&&Oe(o.canLoad))r=s.canLoad(e,n);else{if(!Oe(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}var o;return Et(r)});return(0,a.of)(s).pipe(Re(),(0,G.b)(t=>{if(!Pe(t))return;const e=_t(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,j.U)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,a.of)(n);if(i.numberOfChildren>1||!i.children[pt])return We(t.redirectTo);i=i.children[pt]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new It(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Ct(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return Ct(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new Rt(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function Je(t){const e={};for(const n of Object.keys(t.children)){const i=Je(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children[pt]){const e=t.children[pt];return new Rt(t.segments.concat(e.segments),e.children)}return t}(new Rt(t.segments,e))}class Xe{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class tn{constructor(t,e){this.component=t,this.route=e}}function en(t,e,n){const i=t._root;return sn(i,e?e._root:null,n,[i.value])}function nn(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function sn(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=ee(e);return t.children.forEach(t=>{(function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Mt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Mt(t.url,e.url)||!bt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!he(t,e)||!bt(t.queryParams,e.queryParams);case"paramsChange":default:return!he(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Xe(i)):(r.data=o.data,r._resolvedData=o._resolvedData),sn(t,e,r.component?a?a.children:null:n,i,s),l&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new tn(a.outlet.component,o))}else o&&rn(e,a,s),s.canActivateChecks.push(new Xe(i)),sn(t,null,r.component?a?a.children:null:n,i,s)})(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),Ct(r,(t,e)=>rn(t,n.getContext(e),s)),s}function rn(t,e,n){const i=ee(t),s=t.value;Ct(i,(t,i)=>{rn(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new tn(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class on{}function an(t){return new u.y(e=>e.error(t))}class ln{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=je(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,pt);if(null===e)return null;const n=new oe([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},pt,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new te(n,e),s=new ae(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=re(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const s of Object.keys(e.children)){const i=e.children[s],r=Ue(t,s),o=this.processSegmentGroup(r,i,s);if(null===o)return null;n.push(...o)}const i=un(n);return i.sort((t,e)=>t.value.outlet===pt?-1:e.value.outlet===pt?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,i);if(null!==t)return t}return ze(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!He(t,e,n,i))return null;let s,r=[],o=[];if("**"===t.path){const i=n.length>0?xt(n).parameters:{};s=new oe(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,pn(t),Be(t),t.component,t,hn(e),dn(e)+n.length,fn(t))}else{const i=qe(e,t,n);if(!i.matched)return null;r=i.consumedSegments,o=n.slice(i.lastChild),s=new oe(r,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,pn(t),Be(t),t.component,t,hn(e),dn(e)+r.length,fn(t))}const a=(u=t).children?u.children:u.loadChildren?u._loadedConfig.routes:[],{segmentGroup:l,slicedSegments:c}=je(e,r,o,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);var u;if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new te(s,t)]}if(0===a.length&&0===c.length)return[new te(s,[])];const h=Be(t)===i,d=this.processSegment(a,l,c,h?pt:i);return null===d?null:[new te(s,d)]}}function cn(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function un(t){const e=[],n=new Set;for(const i of t){if(!cn(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=un(i.children);e.push(new te(i.value,t))}return e.filter(t=>!n.has(t))}function hn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function dn(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function pn(t){return t.data||{}}function fn(t){return t.resolve||{}}function mn(t){return(0,V.w)(e=>{const n=t(e);return n?(0,o.D)(n).pipe((0,j.U)(()=>e)):(0,a.of)(e)})}class gn extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const _n=new s.OlP("ROUTES");class yn{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe((0,j.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new Te(wt(i.injector.get(_n,void 0,s.XFs.Self|s.XFs.Optional)).map(Ne),i)}),w(t=>{throw e._loader$=void 0,t}));return e._loader$=new f.c(n,()=>new m.xQ).pipe((0,K.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):Et(t()).pipe((0,Y.zg)(t=>t instanceof s.YKP?(0,a.of)(t):(0,o.D)(this.compiler.compileModuleAsync(t))))}}class bn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new vn,this.attachRef=null}}class vn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new bn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class wn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function xn(t){throw t}function Cn(t,e,n){return e.parse("/")}function En(t,e){return(0,a.of)(null)}const kn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Sn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let An=(()=>{class t{constructor(t,e,n,i,r,o,a,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new m.xQ,this.errorHandler=xn,this.malformedUriErrorHandler=Cn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:En,afterPreactivation:En},this.urlHandlingStrategy=new wn,this.routeReuseStrategy=new gn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=r.get(s.h0i),this.console=r.get(s.c2e);const u=r.get(s.R0b);this.isNgZoneEnabled=u instanceof s.R0b&&s.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new It(new Rt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new yn(o,a,t=>this.triggerEvent(new ot(t)),t=>this.triggerEvent(new at(t))),this.routerState=ie(this.currentUrlTree,this.rootComponentType),this.transitions=new l.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe((0,E.h)(t=>0!==t.id),(0,j.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,V.w)(t=>{let n=!1,i=!1;return(0,a.of)(t).pipe((0,G.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,V.w)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString(),s=("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl);if(Tn(t.source)&&(this.browserUrlTree=t.rawUrl),s)return(0,a.of)(t).pipe((0,V.w)(t=>{const n=this.transitions.getValue();return e.next(new Q(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?p.E:Promise.resolve(t)}),function(t,e,n,i){return(0,V.w)(s=>function(t,e,n,i,s){return new Qe(t,e,n,i,s).apply()}(t,e,n,s.extractedUrl,i).pipe((0,j.U)(t=>Object.assign(Object.assign({},s),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,G.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,s,r){return(0,Y.zg)(o=>function(t,e,n,s,r="emptyOnly",o="legacy"){try{const i=new ln(t,e,n,s,r,o).recognize();return null===i?an(new on):(0,a.of)(i)}catch(i){return an(i)}}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),s,r).pipe((0,j.U)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,G.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new et(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,l=new Q(n,this.serializeUrl(i),s,r);e.next(l);const c=ie(i,this.rootComponentType).snapshot;return(0,a.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.E}),mn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),(0,G.b)(t=>{const e=new nt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,j.U)(t=>Object.assign(Object.assign({},t),{guards:en(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,Y.zg)(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:l}}=n;return 0===l.length&&0===r.length?(0,a.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return(0,o.D)(t).pipe((0,Y.zg)(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return(0,a.of)(!0);const o=r.map(r=>{const o=nn(r,e,s);let a;if(function(t){return t&&Oe(t.canDeactivate)}(o))a=Et(o.canDeactivate(t,e,n,i));else{if(!Oe(o))throw new Error("Invalid CanDeactivate guard");a=Et(o(t,e,n,i))}return a.pipe(B())});return(0,a.of)(o).pipe(Re())}(t.component,t.route,n,e,i)),B(t=>!0!==t,!0))}(l,i,s,t).pipe((0,Y.zg)(n=>n&&function(t){return"boolean"==typeof t}(n)?function(t,e,n,i){return(0,o.D)(e).pipe((0,z.b)(e=>(0,h.z)(function(t,e){return null!==t&&e&&e(new lt(t)),(0,a.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new ut(t)),(0,a.of)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>(0,d.P)(()=>{const s=e.guards.map(s=>{const r=nn(s,e.node,n);let o;if(function(t){return t&&Oe(t.canActivateChild)}(r))o=Et(r.canActivateChild(i,t));else{if(!Oe(r))throw new Error("Invalid CanActivateChild guard");o=Et(r(i,t))}return o.pipe(B())});return(0,a.of)(s).pipe(Re())}));return(0,a.of)(s).pipe(Re())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return(0,a.of)(!0);const s=i.map(i=>(0,d.P)(()=>{const s=nn(i,e,n);let r;if(function(t){return t&&Oe(t.canActivate)}(s))r=Et(s.canActivate(e,t));else{if(!Oe(s))throw new Error("Invalid CanActivate guard");r=Et(s(e,t))}return r.pipe(B())}));return(0,a.of)(s).pipe(Re())}(t,e.route,n))),B(t=>!0!==t,!0))}(i,r,t,e):(0,a.of)(n)),(0,j.U)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,G.b)(t=>{if(Pe(t.guardsResult)){const e=_t(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new it(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,E.h)(t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1)),mn(t=>{if(t.guards.canActivateChecks.length)return(0,a.of)(t).pipe((0,G.b)(t=>{const e=new st(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,V.w)(t=>{let e=!1;return(0,a.of)(t).pipe(function(t,e){return(0,Y.zg)(n=>{const{targetSnapshot:i,guards:{canActivateChecks:s}}=n;if(!s.length)return(0,a.of)(n);let r=0;return(0,o.D)(s).pipe((0,z.b)(n=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return(0,a.of)({});const r={};return(0,o.D)(s).pipe((0,Y.zg)(s=>function(t,e,n,i){const s=nn(t,e,i);return Et(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe((0,G.b)(t=>{r[s]=t}))),S(1),(0,Y.zg)(()=>Object.keys(r).length===s.length?(0,a.of)(r):p.E))}(t._resolve,t,e,i).pipe((0,j.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),re(t,n).resolve),null)))}(n.route,i,t,e)),(0,G.b)(()=>r++),S(1),(0,Y.zg)(t=>r===s.length?(0,a.of)(n):p.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,G.b)({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}))}),(0,G.b)(t=>{const e=new rt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),mn(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),(0,j.U)(t=>{const e=function(t,e,n){const i=de(t,e._root,n?n._root:void 0);return new ne(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,G.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),((t,e,n)=>(0,j.U)(i=>(new Se(e,i.targetRouterState,i.currentRouterState,n).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,t=>this.triggerEvent(t)),(0,G.b)({next(){n=!0},complete(){n=!0}}),function(t){return e=>e.lift(new Z(t))}(()=>{if(!n&&!i){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}this.currentNavigation=null}),w(n=>{if(i=!0,function(t){return t&&t[gt]}(n)){const i=Pe(n.url);i||(this.navigated=!0,this.restoreHistory(t,!0));const s=new X(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),i={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Tn(t.source)};this.scheduleNavigation(e,"imperative",null,i,{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.restoreHistory(t,!0);const i=new tt(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}return p.E}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return e.transitionId!==t.transitionId||!n||!("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Me(t),this.config=t.map(Ne),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(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:o}=e,a=n||this.routerState.root,l=o?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,s){if(0===n.length)return ge(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ye(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return Ct(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new ye(n,e,i)}(n);if(r.toRoot())return ge(e.root,new Rt([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new be(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new be(t,t===e.root,0)}const i=fe(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new be(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?we(o.segmentGroup,o.index,r.commands):ve(o.segmentGroup,o.index,r.commands);return ge(o.segmentGroup,a,e,i,s)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=Pe(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new J(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){var r,o;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l=Tn(e)&&a&&!Tn(a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&c)return Promise.resolve(!0);let u,h,d;s?(u=s.resolve,h=s.reject,d=s.promise):d=new Promise((t,e)=>{u=t,h=e});const p=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.\u0275routerPageId?n.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(r=this.browserPageId)&&void 0!==r?r:0:(null!==(o=this.browserPageId)&&void 0!==o?o:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:u,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}restoreHistory(t,e=!1){var n,i;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new X(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.DyG),s.LFG(Lt),s.LFG(vn),s.LFG(i.Ye),s.LFG(s.zs3),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Tn(t){return"imperative"!==t}let On=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new m.xQ,null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(An),s.Y36(se),s.$8M("tabindex"),s.Y36(s.Qsj),s.Y36(s.SBq))},t.\u0275dir=s.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})(),Pn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new m.xQ,this.subscription=t.events.subscribe(t=>{t instanceof J&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,s){if(0!==t||e||n||i||s||"string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(An),s.Y36(se),s.Y36(i.S$))},t.\u0275dir=s.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Ikx("href",e.href,s.LSH),s.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[s.TTD]}),t})();function In(t){return""===t||!!t}let Rn=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.vpe,this.deactivateEvents=new s.vpe,this.name=i||pt,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.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 t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new Dn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(vn),s.Y36(s.s_b),s.Y36(s._Vd),s.$8M("name"),s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Dn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===se?this.route:t===vn?this.childContexts:this.parent.get(t,e)}}class Mn{}class Ln{preload(t,e){return(0,a.of)(null)}}let Fn=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new yn(e,n,e=>t.triggerEvent(new ot(e)),e=>t.triggerEvent(new at(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,E.h)(t=>t instanceof J),(0,z.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return(0,o.D)(n).pipe((0,$.J)(),(0,j.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,a.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,Y.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(An),s.LFG(s.v3s),s.LFG(s.Sil),s.LFG(s.zs3),s.LFG(Mn))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})(),Nn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Q?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof J&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof dt&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new dt(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(An),s.LFG(i.EM),s.LFG(void 0))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();const Bn=new s.OlP("ROUTER_CONFIGURATION"),Un=new s.OlP("ROUTER_FORROOT_GUARD"),Zn=[i.Ye,{provide:Lt,useClass:Ft},{provide:An,useFactory:function(t,e,n,i,s,r,o,a={},l,c){const u=new An(null,t,e,n,i,s,r,wt(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[Lt,vn,i.Ye,s.zs3,s.v3s,s.Sil,_n,Bn,[class{},new s.FiY],[class{},new s.FiY]]},vn,{provide:se,useFactory:function(t){return t.routerState.root},deps:[An]},{provide:s.v3s,useClass:s.EAV},Fn,Ln,class{preload(t,e){return e().pipe(w(()=>(0,a.of)(null)))}},{provide:Bn,useValue:{enableTracing:!1}}];function qn(){return new s.PXZ("Router",An)}let jn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Zn,Yn(e),{provide:Un,useFactory:zn,deps:[[An,new s.FiY,new s.tp0]]},{provide:Bn,useValue:n||{}},{provide:i.S$,useFactory:Hn,deps:[i.lw,[new s.tBr(i.mr),new s.FiY],Bn]},{provide:Nn,useFactory:Vn,deps:[An,i.EM,Bn]},{provide:Mn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ln},{provide:s.PXZ,multi:!0,useFactory:qn},[Gn,{provide:s.ip1,multi:!0,useFactory:Kn,deps:[Gn]},{provide:Wn,useFactory:$n,deps:[Gn]},{provide:s.tb,multi:!0,useExisting:Wn}]]}}static forChild(e){return{ngModule:t,providers:[Yn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(Un,8),s.LFG(An,8))},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();function Vn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Nn(t,e,n)}function Hn(t,e,n={}){return n.useHash?new i.Do(t,e):new i.b0(t,e)}function zn(t){return"guarded"}function Yn(t){return[{provide:s.deG,multi:!0,useValue:t},{provide:_n,multi:!0,useValue:t}]}let Gn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new m.xQ}appInitializer(){return this.injector.get(i.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(An),i=this.injector.get(Bn);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,a.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(Bn),n=this.injector.get(Fn),i=this.injector.get(Nn),r=this.injector.get(An),o=this.injector.get(s.z2F);t===o.components[0]&&(("enabledNonBlocking"===e.initialNavigation||void 0===e.initialNavigation)&&r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(s.zs3))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac}),t})();function Kn(t){return t.appInitializer.bind(t)}function $n(t){return t.bootstrapListener.bind(t)}const Wn=new s.OlP("Router Initializer")},6215:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});var i=n(9765),s=n(7971);class r extends i.xQ{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value}next(t){super.next(this._value=t)}}},1593:function(t,e,n){"use strict";n.d(e,{P:function(){return o}});var i=n(9193),s=n(5917),r=n(7574);class o{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return t=this.error,new r.y(e=>e.error(t));case"C":return(0,i.c)()}var t;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new o("N",t):o.undefinedValueNotification}static createError(t){return new o("E",void 0,t)}static createComplete(){return o.completeNotification}}o.completeNotification=new o("C"),o.undefinedValueNotification=new o("N",void 0)},7574:function(t,e,n){"use strict";n.d(e,{y:function(){return c}});var i=n(7393),s=n(9181),r=n(6490),o=n(6554),a=n(4487);var l=n(2494);let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof i.L)return t;if(t[s.b])return t[s.b]()}return t||e||n?new i.L(t,e,n):new i.L(r.c)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof i.L?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.L](){return this}pipe(...t){return 0===t.length?this:function(t){return 0===t.length?a.y:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}(t)(this)}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=l.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},6490:function(t,e,n){"use strict";n.d(e,{c:function(){return r}});var i=n(2494),s=n(4449);const r={closed:!0,next(t){},error(t){if(i.v.useDeprecatedSynchronousErrorHandling)throw t;(0,s.z)(t)},complete(){}}},9765:function(t,e,n){"use strict";n.d(e,{Yc:function(){return c},xQ:function(){return u}});var i=n(7574),s=n(7393),r=n(5319),o=n(7971),a=n(8858),l=n(9181);class c extends s.L{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends i.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.b](){return new c(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.N;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;snew h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):r.w.EMPTY}}},8858:function(t,e,n){"use strict";n.d(e,{W:function(){return s}});var i=n(5319);class s extends i.w{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},7393:function(t,e,n){"use strict";n.d(e,{L:function(){return c}});var i=n(9105),s=n(6490),r=n(5319),o=n(9181),a=n(2494),l=n(4449);class c extends r.w{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.c;break;case 1:if(!t){this.destination=s.c;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.b](){return this}static create(t,e,n){const i=new c(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends c{constructor(t,e,n,r){super(),this._parentSubscriber=t;let o,a=this;(0,i.m)(e)?o=e:e&&(o=e.next,n=e.error,r=e.complete,e!==s.c&&(a=Object.create(e),(0,i.m)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.v;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,l.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,l.z)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw n;(0,l.z)(n)}}__tryOrSetError(t,e,n){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):((0,l.z)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},5319:function(t,e,n){"use strict";n.d(e,{w:function(){return a}});var i=n(9796),s=n(1555),r=n(9105);const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();class a{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:n,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof a)e.remove(this);else if(null!==e)for(let i=0;it.concat(e instanceof o?e.errors:e),[])}a.EMPTY=((l=new a).closed=!0,l)},2494:function(t,e,n){"use strict";n.d(e,{v:function(){return s}});let i=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},5345:function(t,e,n){"use strict";n.d(e,{IY:function(){return o},Ds:function(){return a},ft:function(){return l}});var i=n(7393),s=n(7574),r=n(7444);class o extends i.L{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends i.L{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function l(t,e){if(e.closed)return;if(t instanceof s.y)return t.subscribe(e);let n;try{n=(0,r.s)(t)(e)}catch(i){e.error(i)}return n}},2441:function(t,e,n){"use strict";n.d(e,{c:function(){return a},N:function(){return l}});var i=n(9765),s=n(7574),r=n(5319),o=n(1307);class a extends s.y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new r.w,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed&&(this._connection=null,t=r.w.EMPTY)),t}refCount(){return(0,o.x)()(this)}}const l=(()=>{const t=a.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 c extends i.Yc{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},739:function(t,e,n){"use strict";n.d(e,{aj:function(){return p}});var i=n(4869),s=n(9796),r=n(7393);class o extends r.L{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class a extends r.L{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var l=n(7444),c=n(7574);function u(t,e,n,i,s=new a(t,n,i)){if(!s.closed)return e instanceof c.y?e.subscribe(s):(0,l.s)(e)(s)}var h=n(6693);const d={};function p(...t){let e,n;return(0,i.K)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,h.n)(t,n).lift(new f(e))}class f{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new m(t,this.resultSelector))}}class m extends o{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(d),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{let n;try{n=t()}catch(i){return void e.error(i)}return(n?(0,s.D)(n):(0,r.c)()).subscribe(e)})}},9193:function(t,e,n){"use strict";n.d(e,{E:function(){return s},c:function(){return r}});var i=n(7574);const s=new i.y(t=>t.complete());function r(t){return t?function(t){return new i.y(e=>t.schedule(()=>e.complete()))}(t):s}},4402:function(t,e,n){"use strict";n.d(e,{D:function(){return h}});var i=n(7574),s=n(7444),r=n(5319),o=n(6554),a=n(4087),l=n(377),c=n(4072),u=n(9489);function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.L]}(t))return function(t,e){return new i.y(n=>{const i=new r.w;return i.add(e.schedule(()=>{const s=t[o.L]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if((0,c.t)(t))return function(t,e){return new i.y(n=>{const i=new r.w;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if((0,u.z)(t))return(0,a.r)(t,e);if(function(t){return t&&"function"==typeof t[l.hZ]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.y(n=>{const i=new r.w;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[l.hZ](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.y?t:new i.y((0,s.s)(t))}},6693:function(t,e,n){"use strict";n.d(e,{n:function(){return o}});var i=n(7574),s=n(5015),r=n(4087);function o(t,e){return e?(0,r.r)(t,e):new i.y((0,s.V)(t))}},2759:function(t,e,n){"use strict";n.d(e,{R:function(){return a}});var i=n(7574),s=n(9796),r=n(9105),o=n(8002);function a(t,e,n,c){return(0,r.m)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe((0,o.U)(t=>(0,s.k)(t)?c(...t):c(t))):new i.y(i=>{l(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function l(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,o=t.length;r1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.y?t[0]:(0,r.J)(e)((0,o.n)(t,n))}},5917:function(t,e,n){"use strict";n.d(e,{of:function(){return o}});var i=n(4869),s=n(6693),r=n(4087);function o(...t){let e=t[t.length-1];return(0,i.K)(e)?(t.pop(),(0,r.r)(t,e)):(0,s.n)(t)}},628:function(t,e,n){"use strict";n.d(e,{e:function(){return h}});var i=n(3637),s=n(5345);class r{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new o(t,this.durationSelector))}}class o extends s.Ds{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=(0,s.ft)(n,new s.IY(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,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(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n(7574),l=n(6561),c=n(4869);function u(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function h(t,e=i.P){return function(t){return function(e){return e.lift(new r(t))}}(()=>function(t=0,e,n){let s=-1;return(0,l.k)(e)?s=Number(e)<1?1:Number(e):(0,c.K)(e)&&(n=e),(0,c.K)(n)||(n=i.P),new a.y(e=>{const i=(0,l.k)(t)?t:+t-n.now();return n.schedule(u,i,{index:0,period:s,subscriber:e})})}(t,e))}},4612:function(t,e,n){"use strict";n.d(e,{b:function(){return s}});var i=n(9773);function s(t,e){return(0,i.zg)(t,e,1)}},4395:function(t,e,n){"use strict";n.d(e,{b:function(){return r}});var i=n(7393),s=n(3637);function r(t,e=s.P){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.L{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},7519:function(t,e,n){"use strict";n.d(e,{x:function(){return s}});var i=n(7393);function s(t,e){return n=>n.lift(new r(t,e))}class r{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends i.L{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},5435:function(t,e,n){"use strict";n.d(e,{h:function(){return s}});var i=n(7393);function s(t,e){return function(n){return n.lift(new r(t,e))}}class r{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},8002:function(t,e,n){"use strict";n.d(e,{U:function(){return s}});var i=n(7393);function s(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new r(t,e))}}class r{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends i.L{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},3282:function(t,e,n){"use strict";n.d(e,{J:function(){return r}});var i=n(9773),s=n(4487);function r(t=Number.POSITIVE_INFINITY){return(0,i.zg)(s.y,t)}},9773:function(t,e,n){"use strict";n.d(e,{zg:function(){return o}});var i=n(8002),s=n(4402),r=n(5345);function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(o((n,r)=>(0,s.D)(t(n,r)).pipe((0,i.U)((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends r.Ds{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1307:function(t,e,n){"use strict";n.d(e,{x:function(){return s}});var i=n(7393);function s(){return function(t){return t.lift(new r(t))}}class r{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new o(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class o extends i.L{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}},3653:function(t,e,n){"use strict";n.d(e,{T:function(){return s}});var i=n(7393);function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.total=t}call(t,e){return e.subscribe(new o(t,this.total))}}class o extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},9761:function(t,e,n){"use strict";n.d(e,{O:function(){return r}});var i=n(8071),s=n(4869);function r(...t){const e=t[t.length-1];return(0,s.K)(e)?(t.pop(),n=>(0,i.z)(t,n,e)):e=>(0,i.z)(t,e)}},3190:function(t,e,n){"use strict";n.d(e,{w:function(){return o}});var i=n(8002),s=n(4402),r=n(5345);function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,r)=>(0,s.D)(t(n,r)).pipe((0,i.U)((t,i)=>e(n,t,r,i))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends r.Ds{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new r.IY(this),i=this.destination;i.add(n),this.innerSubscription=(0,r.ft)(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},5257:function(t,e,n){"use strict";n.d(e,{q:function(){return o}});var i=n(7393),s=n(7108),r=n(9193);function o(t){return e=>0===t?(0,r.c)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.W}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends i.L{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},6782:function(t,e,n){"use strict";n.d(e,{R:function(){return s}});var i=n(5345);function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.notifier=t}call(t,e){const n=new o(t),s=(0,i.ft)(this.notifier,new i.IY(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class o extends i.Ds{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},3342:function(t,e,n){"use strict";n.d(e,{b:function(){return o}});var i=n(7393);function s(){}var r=n(9105);function o(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends i.L{constructor(t,e,n,i){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=n||s,this._tapComplete=i||s,(0,r.m)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},4087:function(t,e,n){"use strict";n.d(e,{r:function(){return r}});var i=n(7574),s=n(5319);function r(t,e){return new i.y(n=>{const i=new s.w;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},6465:function(t,e,n){"use strict";n.d(e,{o:function(){return r}});var i=n(5319);class s extends i.w{constructor(t,e){super()}schedule(t,e=0){return this}}class r extends s{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n,i=!1;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},6102:function(t,e,n){"use strict";n.d(e,{v:function(){return s}});let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class s extends i{constructor(t,e=i.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},4581:function(t,e,n){"use strict";n.d(e,{E:function(){return u}});let i=1;const s=Promise.resolve(),r={};function o(t){return t in r&&(delete r[t],!0)}const a={setImmediate(t){const e=i++;return r[e]=!0,s.then(()=>o(e)&&t()),e},clearImmediate(t){o(t)}};var l=n(6465),c=n(6102);const u=new class extends c.v{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}})},3637:function(t,e,n){"use strict";n.d(e,{P:function(){return s}});var i=n(6465);const s=new(n(6102).v)(i.o)},377:function(t,e,n){"use strict";n.d(e,{hZ:function(){return i}});const i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:function(t,e,n){"use strict";n.d(e,{W:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},7971:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},4449:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,{z:function(){return i}})},4487:function(t,e,n){"use strict";function i(t){return t}n.d(e,{y:function(){return i}})},9796:function(t,e,n){"use strict";n.d(e,{k:function(){return i}});const i=Array.isArray||(t=>t&&"number"==typeof t.length)},9489:function(t,e,n){"use strict";n.d(e,{z:function(){return i}});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},9105:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,{m:function(){return i}})},6561:function(t,e,n){"use strict";n.d(e,{k:function(){return s}});var i=n(9796);function s(t){return!(0,i.k)(t)&&t-parseFloat(t)+1>=0}},1555:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,{K:function(){return i}})},5639:function(t,e,n){"use strict";n.d(e,{b:function(){return s}});var i=n(7574);function s(t){return!!t&&(t instanceof i.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},4072:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,{t:function(){return i}})},4869:function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,{K:function(){return i}})},7444:function(t,e,n){"use strict";n.d(e,{s:function(){return u}});var i=n(5015),s=n(4449),r=n(377),o=n(6554),a=n(9489),l=n(4072),c=n(1555);const u=t=>{if(t&&"function"==typeof t[o.L])return(t=>e=>{const n=t[o.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if((0,a.z)(t))return(0,i.V)(t);if((0,l.t)(t))return(t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,s.z),e))(t);if(t&&"function"==typeof t[r.hZ])return(t=>e=>{const n=t[r.hZ]();for(;;){let t;try{t=n.next()}catch(i){return e.error(i),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const e=`You provided ${(0,c.K)(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}}},5015:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});const i=t=>e=>{for(let n=0,i=t.length;n{class t{constructor(t){this.sanitizer=t}transform(t,e){return t=(t=(t=t.replace(/<\s*script\s*/gi,"")).replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,"")).replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s.H7,16))},t.\u0275pipe=i.Yjl({name:"safeHtml",type:t,pure:!0}),t})()},3183:function(t,e,n){"use strict";n.d(e,{h:function(){return y}});var i=n(2238),s=n(7574),r=n(3637),o=n(6561);function a(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var l=n(3018),c=n(8583),u=n(1095),h=n(7918),d=n(6498);function p(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().close()}),l.TgZ(1,"uds-translate"),l._uU(2,"Close"),l.qZA(),l._uU(3),l.qZA()}if(2&t){const t=l.oxw();l.xp6(3),l.Oqu(t.extra)}}function f(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().yes()}),l.TgZ(1,"uds-translate"),l._uU(2,"Yes"),l.qZA(),l.qZA()}}function m(t,e){if(1&t){const t=l.EpF();l.TgZ(0,"button",3),l.NdJ("click",function(){return l.CHM(t),l.oxw().no()}),l.TgZ(1,"uds-translate"),l._uU(2,"No"),l.qZA(),l.qZA()}}var g=(()=>{return(t=g||(g={}))[t.alert=0]="alert",t[t.yesno=1]="yesno",g;var t})();let _=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.subscription=null,this.resetCallbacks(),this.yesno=new s.y(t=>{this.yes=()=>{t.next(!0),t.complete()},this.no=()=>{t.next(!1),t.complete()},this.close=()=>{this.doClose(),t.next(!1),t.complete()};const e=this;return{unsubscribe:()=>e.resetCallbacks()}})}resetCallbacks(){this.yes=this.no=()=>this.close(),this.close=()=>this.doClose()}closed(){null!==this.subscription&&this.subscription.unsubscribe()}doClose(){this.dialogRef.close()}setExtra(t){this.extra=" ("+Math.floor(t/1e3)+" "+django.gettext("seconds")+") "}initAlert(){this.data.autoclose>0?(this.dialogRef.afterClosed().subscribe(t=>{this.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(t=0,e=r.P){return(!(0,o.k)(t)||t<0)&&(t=0),(!e||"function"!=typeof e.schedule)&&(e=r.P),new s.y(n=>(n.add(e.schedule(a,t,{subscriber:n,counter:0,period:t})),n))}(1e3).subscribe(t=>{const e=this.data.autoclose-1e3*(t+1);this.setExtra(e),e<=0&&this.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(t=>{this.closed()}),this.subscription=this.data.checkClose.subscribe(t=>{window.setTimeout(()=>{this.doClose()})}))}initYesNo(){}ngOnInit(){this.data.type===g.yesno?this.initYesNo():this.initAlert()}}return t.\u0275fac=function(e){return new(e||t)(l.Y36(i.so),l.Y36(i.WI))},t.\u0275cmp=l.Xpm({type:t,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"]],template:function(t,e){1&t&&(l._UZ(0,"h4",0),l.ALo(1,"safeHtml"),l._UZ(2,"mat-dialog-content",1),l.ALo(3,"safeHtml"),l.TgZ(4,"mat-dialog-actions"),l.YNc(5,p,4,1,"button",2),l.YNc(6,f,3,0,"button",2),l.YNc(7,m,3,0,"button",2),l.qZA()),2&t&&(l.Q6J("innerHtml",l.lcZ(1,5,e.data.title),l.oJD),l.xp6(2),l.Q6J("innerHTML",l.lcZ(3,7,e.data.body),l.oJD),l.xp6(3),l.Q6J("ngIf",0===e.data.type),l.xp6(1),l.Q6J("ngIf",1===e.data.type),l.xp6(1),l.Q6J("ngIf",1===e.data.type))},directives:[i.uh,i.xY,i.H8,c.O5,u.lW,i.ZT,h.P],pipes:[d.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t})(),y=(()=>{class t{constructor(t){this.dialog=t}alert(t,e,n=0,i=null){const s=window.innerWidth<800?"80%":"40%";return this.dialog.open(_,{width:s,data:{title:t,body:e,autoclose:n,checkClose:i,type:g.alert},disableClose:!0})}yesno(t,e){const n=window.innerWidth<800?"80%":"40%";return this.dialog.open(_,{width:n,data:{title:t,body:e,type:g.yesno},disableClose:!0}).componentInstance.yesno}}return t.\u0275fac=function(e){return new(e||t)(l.LFG(i.uw))},t.\u0275prov=l.Yz7({token:t,factory:t.\u0275fac}),t})()},2870:function(t,e,n){"use strict";n.d(e,{S:function(){return s}});var i=n(7574);let s=(()=>{class t{constructor(t){this.api=t,this.delay=t.config.launcher_wait_time}launchURL(e){let n="init";const s=t=>{let e=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof t?e=t:403===t.status&&(e=django.gettext("Your session has expired. Please, login again")),window.setTimeout(()=>{this.showAlert(django.gettext("Error"),e,5e3),403===t.status&&window.setTimeout(()=>{this.api.logout()},5e3)})};if("udsa://"===e.substring(0,7)){const t=e.split("//")[1].split("/"),r=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new i.y(e=>{let i=0;const o=()=>{r.componentInstance&&this.api.status(t[0],t[1]).subscribe(t=>{"ready"===t.status?(i?Date.now()-i>5*this.delay&&(r.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),r.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(i=Date.now(),r.componentInstance.data.title=django.gettext("Service ready"),r.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(o,this.delay)):"accessed"===t.status?(r.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),e.next(!0),e.complete()):"running"===t.status?window.setTimeout(o,this.delay):(e.next(!0),e.complete(),s())},t=>{e.next(!0),e.complete(),s(t)})},a=()=>{if("init"===n)window.setTimeout(a,this.delay);else{if("error"===n||"stop"===n)return;window.setTimeout(o)}};window.setTimeout(a)}));this.api.enabler(t[0],t[1]).subscribe(t=>{if(t.error)n="error",this.api.gui.alert(django.gettext("Error launching service"),t.error);else{if(t.url.startsWith("/"))return r.componentInstance&&r.componentInstance.close(),n="stop",void this.launchURL(t.url);"https:"===window.location.protocol&&(t.url=t.url.replace("uds://","udss://")),n="enabled",this.doLaunch(t.url)}},t=>{this.api.logout()})}else{const n=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new i.y(i=>{const r=()=>{n.componentInstance&&this.api.transportUrl(e).subscribe(e=>{if(e.url)if(i.next(!0),i.complete(),-1!==e.url.indexOf("o_s_w=")){const t=/(.*)&o_s_w=.*/.exec(e.url);window.location.href=t[1]}else{let n="global";if(-1!==e.url.indexOf("o_n_w=")){const t=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(e.url);t&&(n=t[2],e.url=t[1])}t.transportsWindow[n]&&t.transportsWindow[n].close(),t.transportsWindow[n]=window.open(e.url,"uds_trans_"+n)}else e.running?window.setTimeout(r,this.delay):(i.next(!0),i.complete(),s(e.error))},t=>{i.next(!0),i.complete(),s(t)})};window.setTimeout(r)}))}}showAlert(t,e,n,i=null){return this.api.gui.alert(django.gettext("Launching service"),'

'+t+'

'+e+"

",n,i)}doLaunch(t){let e=document.getElementById("hiddenUdsLauncherIFrame");if(null===e){const t=document.createElement("div");t.id="testID",t.innerHTML='',document.body.appendChild(t),e=document.getElementById("hiddenUdsLauncherIFrame")}e.contentWindow.location.href=t}}return t.transportsWindow={},t})()},4902:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G:function(){return LoginComponent}});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3018),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(665),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8295),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9983),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8583),_angular_material_button__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1095),_angular_material_select__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7441),_angular_material_core__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2458),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template(t,e){if(1&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&t){const t=e.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",t.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",t.name," ")}}function LoginComponent_div_22_Template(t,e){if(1&t){const t=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(1,"mat-form-field",17),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(2,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(e){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(t),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(e.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()}if(2&t){const t=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",t.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",t.auths)}}let LoginComponent=(()=>{class LoginComponent{constructor(t){this.api=t,this.title="UDS Enterprise",this.title=t.config.site_name,this.auths=t.config.authenticators.slice(0),this.auths.sort((t,e)=>t.priority-e.priority)}ngOnInit(){document.getElementById("loginform").action=this.api.config.urls.login;const t=document.getElementById("token");t.name=this.api.csrfField,t.value=this.api.csrfToken,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}changeAuth(auth){this.auth.value=auth;const doCustomAuth=data=>{eval(data)};for(const t of this.auths)t.id===auth&&t.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml(t.id).subscribe(t=>doCustomAuth(t)))}launch(){return document.getElementById("loginform").submit(),!0}}return LoginComponent.\u0275fac=function(t){return new(t||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return e.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(2,"input",2),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(10,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(11,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(12,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(17,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(18,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(24,"button",15),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",e.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",e.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",e.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,e.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_button__WEBPACK_IMPORTED_MODULE_7__.lW,_angular_material_select__WEBPACK_IMPORTED_MODULE_8__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_9__.ey],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent})()},7918:function(t,e,n){"use strict";n.d(e,{P:function(){return s}});var i=n(3018);let s=(()=>{class t{constructor(t){this.el=t}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t,selectors:[["uds-translate"]]}),t})()},3513:function(t,e,n){"use strict";n.d(e,{n:function(){return i}});class i{constructor(t){this.user=t.user,this.role=t.role,this.admin=t.admin}get isStaff(){return"staff"===this.role||"admin"===this.role}get isAdmin(){return"admin"===this.role}get isLogged(){return null!=this.user}get isRestricted(){return"restricted"===this.role}}},7540:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return UDSApiService}});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3018),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1841),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3183),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8741);let UDSApiService=(()=>{class UDSApiService{constructor(t,e,n){this.http=t,this.gui=e,this.router=n,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}get config(){return udsData.config}get csrfField(){return csrf.csrfField}get csrfToken(){return csrf.csrfToken}get staffInfo(){return udsData.info}get plugins(){return udsData.plugins}get actors(){return udsData.actors}get errors(){return udsData.errors}enabler(t,e){const n=this.config.urls.enabler.replace("param1",t).replace("param2",e);return this.http.get(n)}status(t,e){const n=this.config.urls.status.replace("param1",t).replace("param2",e);return this.http.get(n)}action(t,e){const n=this.config.urls.action.replace("param1",e).replace("param2",t);return this.http.get(n)}transportUrl(t){return this.http.get(t)}galleryImageURL(t){return this.config.urls.galleryImage.replace("param1",t)}transportIconURL(t){return this.config.urls.transportIcon.replace("param1",t)}staticURL(t){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+t:"/static/"+t}getServicesInformation(){return this.http.get(this.config.urls.services)}getErrorInformation(t){return this.http.get(this.config.urls.error.replace("9999",t))}executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}gotoAdmin(){window.location.href=this.config.urls.admin}logout(){window.location.href=this.config.urls.logout}launchURL(t){this.plugin.launchURL(t)}getAuthCustomHtml(t){return this.http.get(this.config.urls.customAuth+t,{responseType:"text"})}}return UDSApiService.\u0275fac=function(t){return new(t||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService})()},2340:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});const i={production:!0}},6445:function(t,e,n){"use strict";var i=n(9075),s=n(3018),r=n(9490),o=n(9765),a=n(739),l=n(8071),c=n(7574),u=n(5257),h=n(3653),d=n(4395),p=n(8002),f=n(9761),m=n(6782),g=n(521);let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();const y=new Set;let b,v=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):w}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!y.has(t))try{b||(b=document.createElement("style"),b.setAttribute("type","text/css"),document.head.appendChild(b)),b.sheet&&(b.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),y.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(g.t4))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(g.t4))},token:t,providedIn:"root"}),t})();function w(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let x=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new o.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return C((0,r.Eq)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=C((0,r.Eq)(t)).map(t=>this._registerQuery(t).observable);let n=(0,a.aj)(e);return n=(0,l.z)(n.pipe((0,u.q)(1)),n.pipe((0,h.T)(1),(0,d.b)(0))),n.pipe((0,p.U)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new c.y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe((0,f.O)(e),(0,p.U)(({matches:e})=>({query:t,matches:e})),(0,m.R)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(v),s.LFG(s.R0b))},t.\u0275prov=s.Yz7({factory:function(){return new t(s.LFG(v),s.LFG(s.R0b))},token:t,providedIn:"root"}),t})();function C(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var E=n(1841),k=n(8741),S=n(7540);let A=(()=>{class t{constructor(t){this.api=t}canActivate(t,e){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}return t.\u0275fac=function(e){return new(e||t)(s.LFG(S.n))},t.\u0275prov=s.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var T=n(4902),O=n(7918),P=n(8583);function I(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().download(e.url)}),s.TgZ(1,"div",7),s._UZ(2,"img",8),s.qZA(),s.TgZ(3,"div",9),s._uU(4),s.qZA(),s.TgZ(5,"div",10),s._uU(6),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.Tol(n.css(t)),s.xp6(2),s.Q6J("src",n.img(t.name),s.LSH),s.xp6(2),s.lnq(" ",n.legacy(t)," ",t.name," (",t.url.split(".").pop(),") "),s.xp6(2),s.hij(" ",t.description," ")}}let R=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}download(t){window.location.href=t}img(t){return this.api.staticURL("modern/img/"+t+".png")}css(t){const e=["plugin"];return t.legacy&&e.push("legacy"),e}legacy(t){return t.legacy?"Legacy":""}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h1"),s.TgZ(4,"uds-translate"),s._uU(5,"UDS Client"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"div",3),s.YNc(7,I,7,7,"div",4),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"ul"),s.TgZ(10,"li"),s.TgZ(11,"uds-translate"),s._uU(12,"Download UDS client for your platform"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(7),s.Q6J("ngForOf",e.api.plugins))},directives:[O.P,P.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem}"]}),t})();var D=n(6498);function M(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",6),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw().download(e.url)}),s.TgZ(1,"div",7),s._UZ(2,"img",8),s.qZA(),s._UZ(3,"div",9),s.ALo(4,"safeHtml"),s._UZ(5,"div",10),s.ALo(6,"safeHtml"),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw();s.Tol(n.css(t.name)),s.xp6(2),s.Q6J("src",n.img(t.name),s.LSH),s.xp6(1),s.Q6J("innerHTML",s.lcZ(4,5,t.name),s.oJD),s.xp6(2),s.Q6J("innerHTML",s.lcZ(6,7,t.description),s.oJD)}}let L=(()=>{class t{constructor(t){this.api=t}ngOnInit(){this.actors=[];const t=[];this.api.actors.forEach(e=>{e.name.includes("legacy")?t.push(e):this.actors.push(e)}),t.forEach(t=>{this.actors.push(t)})}download(t){window.location.href=t}img(t){const e=t.split(".").pop().toLowerCase();let n="Linux";return"exe"===e?n="Windows":"pkg"===e&&(n="MacOS"),this.api.staticURL("modern/img/"+n+".png")}css(t){const e=["actor"];return t.toLowerCase().includes("legacy")&&e.push("legacy"),e}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s.TgZ(3,"h1"),s.TgZ(4,"uds-translate"),s._uU(5,"Downloads"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"div",3),s.YNc(7,M,7,9,"div",4),s.qZA(),s.TgZ(8,"div",5),s.TgZ(9,"ul"),s.TgZ(10,"li"),s.TgZ(11,"uds-translate"),s._uU(12,"Always download the UDS actor matching your platform"),s.qZA(),s.qZA(),s.TgZ(13,"li"),s.TgZ(14,"uds-translate"),s._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(7),s.Q6J("ngForOf",e.actors))},directives:[O.P,P.sg],pipes:[D.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:bold;overflow:hidden}"]}),t})();var F=n(5319),N=n(8345);let B=0;const U=new s.OlP("CdkAccordion");let Z=(()=>{class t{constructor(){this._stateChanges=new o.xQ,this._openCloseAllActions=new o.xQ,this.id="cdk-accordion-"+B++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=(0,r.Ig)(t)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[s._Bn([{provide:U,useExisting:t}]),s.TTD]}),t})(),q=0,j=(()=>{class t{constructor(t,e,n){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=n,this._openCloseAllSubscription=F.w.EMPTY,this.closed=new s.vpe,this.opened=new s.vpe,this.destroyed=new s.vpe,this.expandedChange=new s.vpe,this.id="cdk-accordion-child-"+q++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=n.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=(0,r.Ig)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(U,12),s.Y36(s.sBO),s.Y36(N.A8))},t.\u0275dir=s.lG2({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[s._Bn([{provide:U,useValue:void 0}])]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})();var H=n(7636),z=n(2458),Y=n(9238),G=n(7519),K=n(5435),$=n(6461),W=n(6237),Q=n(9193),J=n(6682),X=n(7238);const tt=["body"];function et(t,e){}const nt=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],it=["mat-expansion-panel-header","*","mat-action-row"];function st(t,e){if(1&t&&s._UZ(0,"span",2),2&t){const t=s.oxw();s.Q6J("@indicatorRotate",t._getExpandedState())}}const rt=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],ot=["mat-panel-title","mat-panel-description","*"],at=new s.OlP("MAT_ACCORDION"),lt="225ms cubic-bezier(0.4,0.0,0.2,1)",ct={indicatorRotate:(0,X.X$)("indicatorRotate",[(0,X.SB)("collapsed, void",(0,X.oB)({transform:"rotate(0deg)"})),(0,X.SB)("expanded",(0,X.oB)({transform:"rotate(180deg)"})),(0,X.eR)("expanded <=> collapsed, void => collapsed",(0,X.jt)(lt))]),bodyExpansion:(0,X.X$)("bodyExpansion",[(0,X.SB)("collapsed, void",(0,X.oB)({height:"0px",visibility:"hidden"})),(0,X.SB)("expanded",(0,X.oB)({height:"*",visibility:"visible"})),(0,X.eR)("expanded <=> collapsed, void => collapsed",(0,X.jt)(lt))])};let ut=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.Rgc))},t.\u0275dir=s.lG2({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),ht=0;const dt=new s.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let pt=(()=>{class t extends j{constructor(t,e,n,i,r,a,l){super(t,e,n),this._viewContainerRef=i,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new s.vpe,this.afterCollapse=new s.vpe,this._inputChanges=new o.xQ,this._headerId="mat-expansion-panel-header-"+ht++,this._bodyAnimationDone=new o.xQ,this.accordion=t,this._document=r,this._bodyAnimationDone.pipe((0,G.x)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=(0,r.Ig)(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,f.O)(null),(0,K.h)(()=>this.expanded&&!this._portal),(0,u.q)(1)).subscribe(()=>{this._portal=new H.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(at,12),s.Y36(s.sBO),s.Y36(N.A8),s.Y36(s.s_b),s.Y36(P.K0),s.Y36(W.Qb,8),s.Y36(dt,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,ut,5),2&t){let t;s.iGM(t=s.CRH())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&s.Gf(tt,5),2&t){let t;s.iGM(t=s.CRH())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&s.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[s._Bn([{provide:at,useValue:void 0}]),s.qOj,s.TTD],ngContentSelectors:it,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(s.F$t(nt),s.Hsn(0),s.TgZ(1,"div",0,1),s.NdJ("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),s.TgZ(3,"div",2),s.Hsn(4,1),s.YNc(5,et,0,0,"ng-template",3),s.qZA(),s.Hsn(6,2),s.qZA()),2&t&&(s.xp6(1),s.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),s.uIk("aria-labelledby",e._headerId),s.xp6(4),s.Q6J("cdkPortalOutlet",e._portal))},directives:[H.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ct.bodyExpansion]},changeDetection:0}),t})();class ft{}const mt=(0,z.sb)(ft);let gt=(()=>{class t extends mt{constructor(t,e,n,i,s,r,o){super(),this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=i,this._animationMode=r,this._parentChangeSubscription=F.w.EMPTY;const a=t.accordion?t.accordion._stateChanges.pipe((0,K.h)(t=>!(!t.hideToggle&&!t.togglePosition))):Q.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,J.T)(t.opened,t.closed,a,t._inputChanges.pipe((0,K.h)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe((0,K.h)(()=>t._containsFocus())).subscribe(()=>n.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case $.L_:case $.K5:(0,$.Vb)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t,e){t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(pt,1),s.Y36(s.SBq),s.Y36(Y.tE),s.Y36(s.sBO),s.Y36(dt,8),s.Y36(W.Qb,8),s.$8M("tabindex"))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.NdJ("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.uIk("id",e.panel._headerId)("tabindex",e.tabIndex)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),s.Udp("height",e._getHeaderHeight()),s.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[s.qOj],ngContentSelectors:ot,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(s.F$t(rt),s.TgZ(0,"span",0),s.Hsn(1),s.Hsn(2,1),s.Hsn(3,2),s.qZA(),s.YNc(4,st,1,1,"span",1)),2&t&&(s.xp6(4),s.Q6J("ngIf",e._showToggle()))},directives:[P.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[ct.indicatorRotate]},changeDetection:0}),t})(),_t=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),yt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),bt=(()=>{class t extends Z{constructor(){super(...arguments),this._ownHeaders=new s.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=(0,r.Ig)(t)}ngAfterContentInit(){this._headers.changes.pipe((0,f.O)(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Y.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=s.n5z(t)))(n||t)}}(),t.\u0275dir=s.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,gt,5),2&t){let t;s.iGM(t=s.CRH())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&s.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[s._Bn([{provide:at,useExisting:t}]),s.qOj]}),t})(),vt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[P.ez,z.BQ,V,H.eL]]}),t})();function wt(t,e){if(1&t&&(s.TgZ(0,"li"),s.TgZ(1,"uds-translate"),s._uU(2,"Detected proxy ip"),s.qZA(),s._uU(3),s.qZA()),2&t){const t=s.oxw(2);s.xp6(3),s.hij(": ",t.api.staffInfo.ip_proxy,"")}}function xt(t,e){if(1&t&&(s.TgZ(0,"li"),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function Ct(t,e){if(1&t&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t)}}function Et(t,e){if(1&t&&(s.TgZ(0,"div",1),s.TgZ(1,"h1"),s.TgZ(2,"uds-translate"),s._uU(3,"Information"),s.qZA(),s.qZA(),s.TgZ(4,"mat-accordion"),s.TgZ(5,"mat-expansion-panel"),s.TgZ(6,"mat-expansion-panel-header",2),s.TgZ(7,"mat-panel-title"),s._uU(8," IPs "),s.qZA(),s.TgZ(9,"mat-panel-description"),s.TgZ(10,"uds-translate"),s._uU(11,"Client IP"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(12,"ol"),s.TgZ(13,"li"),s.TgZ(14,"uds-translate"),s._uU(15,"Client IP"),s.qZA(),s._uU(16),s.qZA(),s.YNc(17,wt,4,1,"li",3),s.qZA(),s.qZA(),s.TgZ(18,"mat-expansion-panel"),s.TgZ(19,"mat-expansion-panel-header",2),s.TgZ(20,"mat-panel-title"),s.TgZ(21,"uds-translate"),s._uU(22,"Transports"),s.qZA(),s.qZA(),s.TgZ(23,"mat-panel-description"),s.TgZ(24,"uds-translate"),s._uU(25,"UDS transports for this client"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(26,"ol"),s.YNc(27,xt,2,1,"li",4),s.qZA(),s.qZA(),s.TgZ(28,"mat-expansion-panel"),s.TgZ(29,"mat-expansion-panel-header",2),s.TgZ(30,"mat-panel-title"),s.TgZ(31,"uds-translate"),s._uU(32,"Networks"),s.qZA(),s.qZA(),s.TgZ(33,"mat-panel-description"),s.TgZ(34,"uds-translate"),s._uU(35,"UDS networks for this IP"),s.qZA(),s.qZA(),s.qZA(),s.YNc(36,Ct,2,1,"span",4),s._uU(37,"\xa0 "),s.qZA(),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.xp6(16),s.hij(": ",t.api.staffInfo.ip,""),s.xp6(1),s.Q6J("ngIf",t.api.staffInfo.ip_proxy!==t.api.staffInfo.ip),s.xp6(10),s.Q6J("ngForOf",t.api.staffInfo.transports),s.xp6(9),s.Q6J("ngForOf",t.api.staffInfo.networks)}}let kt=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(t,e){1&t&&s.YNc(0,Et,38,4,"div",0),2&t&&s.Q6J("ngIf",e.api.staffInfo)},directives:[P.O5,O.P,bt,pt,gt,yt,_t,P.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4}"]}),t})();var St=n(2759),At=n(3342),Tt=n(8295),Ot=n(9983);const Pt=["input"];let It=(()=>{class t{constructor(){this.updateEvent=new s.vpe}ngAfterViewInit(){(0,St.R)(this.input.nativeElement,"keyup").pipe((0,K.h)(Boolean),(0,d.b)(600),(0,G.x)(),(0,At.b)(()=>this.update(this.input.nativeElement.value))).subscribe()}update(t){this.updateEvent.emit(t.toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-filter"]],viewQuery:function(t,e){if(1&t&&s.Gf(Pt,7),2&t){let t;s.iGM(t=s.CRH())&&(e.input=t.first)}},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"mat-form-field",1),s.TgZ(2,"mat-label"),s.TgZ(3,"uds-translate"),s._uU(4,"Filter"),s.qZA(),s.qZA(),s._UZ(5,"input",2,3),s.TgZ(7,"i",4),s._uU(8,"search"),s.qZA(),s.qZA(),s.qZA())},directives:[Tt.KE,Tt.hX,O.P,Ot.Nt,Tt.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),t})();var Rt=n(5917),Dt=n(4581),Mt=n(3190),Lt=n(3637),Ft=n(7393),Nt=n(1593);function Bt(t,e=Lt.P){const n=function(t){return t instanceof Date&&!isNaN(+t)}(t)?+t-e.now():Math.abs(t);return t=>t.lift(new Ut(n,e))}class Ut{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Zt(t,this.delay,this.scheduler))}}class Zt extends Ft.L{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Zt.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new qt(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Nt.P.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Nt.P.createComplete()),this.unsubscribe()}}class qt{constructor(t,e){this.time=t,this.notification=e}}var jt=n(625),Vt=n(9243),Ht=n(946);const zt=["mat-menu-item",""];function Yt(t,e){1&t&&(s.O4$(),s.TgZ(0,"svg",2),s._UZ(1,"polygon",3),s.qZA())}const Gt=["*"];function Kt(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div",0),s.NdJ("keydown",function(e){return s.CHM(t),s.oxw()._handleKeydown(e)})("click",function(){return s.CHM(t),s.oxw().closed.emit("click")})("@transformMenu.start",function(e){return s.CHM(t),s.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return s.CHM(t),s.oxw()._onAnimationDone(e)}),s.TgZ(1,"div",1),s.Hsn(2),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.Q6J("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),s.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const $t={transformMenu:(0,X.X$)("transformMenu",[(0,X.SB)("void",(0,X.oB)({opacity:0,transform:"scale(0.8)"})),(0,X.eR)("void => enter",(0,X.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,X.oB)({opacity:1,transform:"scale(1)"}))),(0,X.eR)("* => void",(0,X.jt)("100ms 25ms linear",(0,X.oB)({opacity:0})))]),fadeInItems:(0,X.X$)("fadeInItems",[(0,X.SB)("showing",(0,X.oB)({opacity:1})),(0,X.eR)("void => *",[(0,X.oB)({opacity:0}),(0,X.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Wt=new s.OlP("MatMenuContent"),Qt=new s.OlP("MAT_MENU_PANEL"),Jt=(0,z.Kr)((0,z.Id)(class{}));let Xt=(()=>{class t extends Jt{constructor(t,e,n,i,s){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new o.xQ,this._focused=new o.xQ,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.n_E,this._tabSubscription=F.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new o.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+ee++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=(0,r.Ig)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=(0,r.Ig)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Y.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,f.O)(this._directDescendantItems),(0,Mt.w)(t=>(0,J.T)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,f.O)(this._directDescendantItems),(0,Mt.w)(t=>(0,J.T)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case $.hY:(0,$.Vb)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case $.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case $.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(e===$.LH||e===$.JH)&&n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe((0,u.q)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=Math.min(this._baseElevation+t,24),n=`${this._elevationPrefix}${e}`,i=Object.keys(this._classList).find(t=>t.startsWith(this._elevationPrefix));(!i||i===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[n]=!0,this._previousElevation=n)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,f.O)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(te))},t.\u0275dir=s.lG2({type:t,contentQueries:function(t,e,n){if(1&t&&(s.Suo(n,Wt,5),s.Suo(n,Xt,5),s.Suo(n,Xt,4)),2&t){let t;s.iGM(t=s.CRH())&&(e.lazyContent=t.first),s.iGM(t=s.CRH())&&(e._allItems=t),s.iGM(t=s.CRH())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&s.Gf(s.Rgc,5),2&t){let t;s.iGM(t=s.CRH())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),ie=(()=>{class t extends ne{constructor(t,e,n){super(t,e,n),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.R0b),s.Y36(te))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&s.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[s._Bn([{provide:Qt,useExisting:t}]),s.qOj],ngContentSelectors:Gt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(s.F$t(),s.YNc(0,Kt,3,6,"ng-template"))},directives:[P.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[$t.transformMenu,$t.fadeInItems]},changeDetection:0}),t})();const se=new s.OlP("mat-menu-scroll-strategy"),re={provide:se,deps:[jt.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},oe=(0,g.i$)({passive:!0});let ae=(()=>{class t{constructor(t,e,n,i,r,o,a,l){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=o,this._dir=a,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=F.w.EMPTY,this._hoverSubscription=F.w.EMPTY,this._menuCloseSubscription=F.w.EMPTY,this._handleTouchStart=t=>{(0,Y.yG)(t)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new s.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=r instanceof ne?r:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,oe),o&&(o._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,oe),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ne&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}updatePosition(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}_destroyMenu(t){if(!this._overlayRef||!this.menuOpen)return;const e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===t||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,e instanceof ne?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe((0,K.h)(t=>"void"===t.toState),(0,u.q)(1),(0,m.R)(e.lazyContent._attached)).subscribe({next:()=>e.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new jt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,o]=[i,s],[a,l]=[e,n],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",c="bottom"===i?8:-8):this.menu.overlapTrigger||(r="top"===i?"bottom":"top",o="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:a,overlayY:i,offsetY:c},{originX:n,originY:r,overlayX:l,overlayY:i,offsetY:c},{originX:e,originY:o,overlayX:a,overlayY:s,offsetY:-c},{originX:n,originY:o,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Rt.of)(),i=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,K.h)(t=>t!==this._menuItemInstance),(0,K.h)(()=>this._menuOpen)):(0,Rt.of)();return(0,J.T)(t,n,i,e)}_handleMousedown(t){(0,Y.X6)(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;(e===$.K5||e===$.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===$.SV&&"ltr"===this.dir||e===$.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,K.h)(t=>t===this._menuItemInstance&&!t.disabled),Bt(0,Dt.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ne&&this.menu._isAnimating?this.menu._animationDone.pipe((0,u.q)(1),Bt(0,Dt.E),(0,m.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new H.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(s.s_b),s.Y36(se),s.Y36(Qt,8),s.Y36(Xt,10),s.Y36(Ht.Is,8),s.Y36(Y.tE))},t.\u0275dir=s.lG2({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.NdJ("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&s.uIk("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),le=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[re],imports:[z.BQ]}),t})(),ce=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[re],imports:[[P.ez,z.BQ,z.si,jt.U8,le],Vt.ZD,z.BQ,le]}),t})();const ue={tooltipState:(0,X.X$)("state",[(0,X.SB)("initial, void, hidden",(0,X.oB)({opacity:0,transform:"scale(0)"})),(0,X.SB)("visible",(0,X.oB)({transform:"scale(1)"})),(0,X.eR)("* => visible",(0,X.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,X.F4)([(0,X.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,X.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,X.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,X.eR)("* => hidden",(0,X.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,X.oB)({opacity:0})))])},he="tooltip-panel",de=(0,g.i$)({passive:!0}),pe=new s.OlP("mat-tooltip-scroll-strategy"),fe={provide:pe,deps:[jt.aV],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},me=new s.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let ge=(()=>{class t{constructor(t,e,n,i,s,r,a,l,c,u,h,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=r,this._ariaDescriber=a,this._focusMonitor=l,this._dir=u,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new o.xQ,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===$.hY&&!(0,$.Vb)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,this._document=d,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),u.change.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,r.Ig)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,m.R)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,de)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new H.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return e.positionChanges.pipe((0,m.R)(this._destroyed)).subscribe(t=>{this._updateCurrentPositionClass(t.connectionPair),this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-${he}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,m.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,m.R)(this._destroyed)).subscribe(()=>{var t;return null===(t=this._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){const e=t.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}_addOffset(t){return t}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,u.q)(1),(0,m.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){const{overlayY:e,originX:n,originY:i}=t;let s;if(s="center"===e?this._dir&&"rtl"===this._dir.value?"end"===n?"left":"right":"start"===n?"left":"right":"bottom"===e&&"top"===i?"above":"below",s!==this._currentPosition){const t=this._overlayRef;if(t){const e=`${this._cssClassPrefix}-${he}-`;t.removePanelClass(e+this._currentPosition),t.addPanelClass(e+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,de)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=this._document.elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e!==n&&!n.contains(e)&&this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),("on"===t||!e.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(Vt.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(g.t4),s.Y36(Y.$s),s.Y36(Y.tE),s.Y36(void 0),s.Y36(Ht.Is),s.Y36(void 0),s.Y36(P.K0))},t.\u0275dir=s.lG2({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),_e=(()=>{class t extends ge{constructor(t,e,n,i,s,r,o,a,l,c,u,h){super(t,e,n,i,s,r,o,a,l,c,u,h),this._tooltipComponent=be}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(jt.aV),s.Y36(s.SBq),s.Y36(Vt.mF),s.Y36(s.s_b),s.Y36(s.R0b),s.Y36(g.t4),s.Y36(Y.$s),s.Y36(Y.tE),s.Y36(pe),s.Y36(Ht.Is,8),s.Y36(me,8),s.Y36(P.K0))},t.\u0275dir=s.lG2({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[s.qOj]}),t})(),ye=(()=>{class t{constructor(t){this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new o.xQ}show(t){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},t)}hide(t){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"===e&&!this.isVisible()&&this._onHide.next(),("visible"===e||"hidden"===e)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO))},t.\u0275dir=s.lG2({type:t}),t})(),be=(()=>{class t extends ye{constructor(t,e){super(t),this._breakpointObserver=e,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.sBO),s.Y36(x))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){2&t&&s.Udp("zoom","visible"===e._visibility?1:null)},features:[s.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.TgZ(0,"div",0),s.NdJ("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),s.ALo(1,"async"),s._uU(2),s.qZA()),2&t){let t;s.ekj("mat-tooltip-handset",null==(t=s.lcZ(1,5,e._isHandset))?null:t.matches),s.Q6J("ngClass",e.tooltipClass)("@state",e._visibility),s.xp6(2),s.Oqu(e.message)}},directives:[P.mk],pipes:[P.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ue.tooltipState]},changeDetection:0}),t})(),ve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[fe],imports:[[Y.rt,P.ez,jt.U8,z.BQ],z.BQ,Vt.ZD]}),t})();var we=n(1095);function xe(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(2).launch(e)}),s.TgZ(1,"div",15),s._UZ(2,"img",9),s._uU(3),s.qZA(),s.qZA()}if(2&t){const t=e.$implicit,n=s.oxw(2);s.xp6(2),s.Q6J("src",n.getTransportIcon(t.id),s.LSH),s.xp6(1),s.hij(" ",t.name," ")}}function Ce(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).action("release")}),s.TgZ(1,"i",16),s._uU(2,"delete"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4," Release service"),s.qZA(),s.qZA()}}function Ee(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",14),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).action("reset")}),s.TgZ(1,"i",16),s._uU(2,"refresh"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4," Reset service"),s.qZA(),s.qZA()}}function ke(t,e){if(1&t&&(s.TgZ(0,"button",17),s.TgZ(1,"uds-translate"),s._uU(2,"Connections"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(2);s.Q6J("matMenuTriggerFor",t)}}function Se(t,e){if(1&t&&(s.TgZ(0,"button",17),s.TgZ(1,"uds-translate"),s._uU(2,"Actions"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(5);s.Q6J("matMenuTriggerFor",t)}}function Ae(t,e){if(1&t&&(s.TgZ(0,"button",18),s.TgZ(1,"i",16),s._uU(2,"menu"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(9);s.Q6J("matMenuTriggerFor",t)}}function Te(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"div"),s.TgZ(1,"mat-menu",null,1),s.YNc(3,xe,4,2,"button",2),s.qZA(),s.TgZ(4,"mat-menu",null,3),s.YNc(6,Ce,5,0,"button",4),s.YNc(7,Ee,5,0,"button",4),s.qZA(),s.TgZ(8,"mat-menu",null,5),s.YNc(10,ke,3,1,"button",6),s.YNc(11,Se,3,1,"button",6),s.qZA(),s.TgZ(12,"div",7),s.TgZ(13,"div",8),s.NdJ("click",function(){return s.CHM(t),s.oxw().launch(null)}),s._UZ(14,"img",9),s.qZA(),s.TgZ(15,"div",10),s.TgZ(16,"span",11),s._uU(17),s.qZA(),s.qZA(),s.TgZ(18,"div",12),s.YNc(19,Ae,3,1,"button",13),s.qZA(),s.qZA(),s.qZA()}if(2&t){const t=s.oxw();s.xp6(3),s.Q6J("ngForOf",t.service.transports),s.xp6(3),s.Q6J("ngIf",t.service.allow_users_remove),s.xp6(1),s.Q6J("ngIf",t.service.allow_users_reset),s.xp6(3),s.Q6J("ngIf",t.showTransportsMenu()),s.xp6(1),s.Q6J("ngIf",t.hasActions()),s.xp6(1),s.Q6J("ngClass",t.serviceClass)("matTooltipDisabled",""===t.serviceTooltip)("matTooltip",t.serviceTooltip),s.xp6(2),s.Q6J("src",t.serviceImage,s.LSH),s.xp6(2),s.Q6J("ngClass",t.serviceNameClass),s.xp6(1),s.Oqu(t.serviceName),s.xp6(2),s.Q6J("ngIf",t.hasMenu())}}let Oe=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}get serviceImage(){return this.api.galleryImageURL(this.service.imageId)}get serviceName(){let t=this.service.visual_name;return t.length>32&&(t=t.substring(0,29)+"..."),t}get serviceTooltip(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}get serviceClass(){const t=["service"];return null!=this.service.to_be_replaced?t.push("tobereplaced"):this.service.maintenance?t.push("maintenance"):this.service.not_accesible?t.push("forbidden"):this.service.in_use&&t.push("inuse"),t.length>1&&t.push("alert"),t}get serviceNameClass(){const t=[],e=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return e>=16&&t.push("small-"+e.toString()),t}getTransportIcon(t){return this.api.transportIconURL(t)}hasActions(){return this.service.allow_users_remove||this.service.allow_users_reset}showTransportsMenu(){return this.service.transports.length>1&&this.service.show_transports}hasMenu(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}notifyNotLaunching(t){this.api.gui.alert('

'+django.gettext("Launcher")+"

",t)}launch(t){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){const t=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching('

'+django.gettext("This service is currently not accesible due to schedule restrictions.")+'

'+t+'

')}else(null===t||!1===this.service.show_transports)&&(t=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(t.link)}action(t){const e=("release"===t?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,n="release"===t?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(e,django.gettext("Are you sure?")).subscribe(i=>{i&&this.api.action(t,this.service.id).subscribe(t=>{t&&this.api.gui.alert(e,n)})})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(t,e){1&t&&s.YNc(0,Te,20,12,"div",0),2&t&&s.Q6J("ngIf",e.service.transports.length>0)},directives:[P.O5,ie,P.sg,P.mk,_e,Xt,O.P,ae,we.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:rgba(0,0,0,.22);display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22)}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;border-radius:1px;background-color:rgba(255,255,255,.8)}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:"Material Icons";font-weight:normal;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"}']}),t})();function Pe(t,e){1&t&&s._UZ(0,"uds-service",8),2&t&&s.Q6J("service",e.$implicit)}function Ie(t,e){if(1&t&&(s.TgZ(0,"mat-expansion-panel",1),s.TgZ(1,"mat-expansion-panel-header",2),s.TgZ(2,"mat-panel-title"),s.TgZ(3,"div",3),s._UZ(4,"img",4),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"mat-panel-description",5),s._uU(7),s.qZA(),s.qZA(),s.TgZ(8,"div",6),s.YNc(9,Pe,1,1,"uds-service",7),s.qZA(),s.qZA()),2&t){const t=s.oxw();s.Q6J("expanded",t.expanded),s.xp6(1),s.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),s.xp6(3),s.Q6J("src",t.groupImage,s.LSH),s.xp6(1),s.hij(" ",t.group.name,""),s.xp6(2),s.hij(" ",t.group.comments," "),s.xp6(2),s.Q6J("ngForOf",t.sortedServices)}}let Re=(()=>{class t{constructor(t){this.api=t,this.expanded=!1}ngOnInit(){}get groupImage(){return this.api.galleryImageURL(this.group.imageUuid)}get hasVisibleServices(){return this.services.length>0}get sortedServices(){return this.services.sort((t,e)=>t.name>e.name?1:t.name{class t{constructor(t){this.api=t,this.servicesInformation={autorun:!1,ip:"",nets:"",services:[],transports:""}}update(t){this.updateServices(t)}ngOnInit(){this.api.config.urls.launch?this.api.logout():this.loadServices()}autorun(){if(this.servicesInformation.autorun&&1===this.servicesInformation.services.length){if(!this.servicesInformation.services[0].maintenance)return this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(this.servicesInformation.services[0].transports[0].link),!0;this.api.gui.alert(django.gettext("Warning"),django.gettext("Service is in maintenance and cannot be executed"))}return!1}loadServices(){this.api.user.isRestricted&&this.api.logout(),this.api.getServicesInformation().subscribe(t=>{this.servicesInformation=t,this.autorun(),this.updateServices()})}updateServices(t=""){this.group=[];let e=null;this.servicesInformation.services.filter(e=>!t||e.visual_name.toLowerCase().includes(t)||e.group.name.toLowerCase().includes(t)).sort((t,e)=>t.group.priority!==e.group.priority?t.group.priority-e.group.priority:t.group.id>e.group.id?1:t.group.id{(null===e||t.group.id!==e.group.id)&&(null!==e&&this.group.push(e),e=new Fe(t.group)),e.services.push(t)}),null!==e&&this.group.push(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-services-page"]],decls:6,vars:3,consts:[[3,"updateEvent",4,"ngIf"],[1,"services-groups"],[3,"services","group","expanded",4,"ngFor","ngForOf"],[3,"updateEvent"],[3,"services","group","expanded"]],template:function(t,e){1&t&&(s.YNc(0,De,1,0,"uds-filter",0),s.TgZ(1,"div",1),s.TgZ(2,"mat-accordion"),s.YNc(3,Me,1,3,"uds-services-group",2),s.qZA(),s.qZA(),s.YNc(4,Le,1,0,"uds-filter",0),s._UZ(5,"uds-staff-info")),2&t&&(s.Q6J("ngIf",e.servicesInformation.services.length>=e.api.config.min_for_filter&&e.api.config.site_filter_on_top),s.xp6(3),s.Q6J("ngForOf",e.group),s.xp6(1),s.Q6J("ngIf",e.servicesInformation.services.length>=e.api.config.min_for_filter&&!e.api.config.site_filter_on_top))},directives:[P.O5,bt,P.sg,kt,It,Re],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),t})(),Be=(()=>{class t{constructor(t,e){this.api=t,this.route=e}ngOnInit(){this.getError()}getError(){const t=this.route.snapshot.paramMap.get("id");"19"===t&&(this.returnUrl="/mfa"),this.error="",this.api.getErrorInformation(t).subscribe(t=>{this.error=t.error})}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n),s.Y36(k.gz))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-error"]],decls:14,vars:2,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],["mat-raised-button","","color","warn",3,"routerLink"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.O4$(),s.TgZ(2,"svg",2),s._UZ(3,"path",3),s.qZA(),s.TgZ(4,"svg",4),s._UZ(5,"path",5),s.qZA(),s.qZA(),s.kcU(),s.TgZ(6,"h1",6),s.TgZ(7,"uds-translate"),s._uU(8,"An error has occurred"),s.qZA(),s.qZA(),s.TgZ(9,"p",7),s._uU(10),s.qZA(),s.TgZ(11,"a",8),s.TgZ(12,"uds-translate"),s._uU(13,"Return"),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(10),s.hij(" ",e.error," "),s.xp6(1),s.Q6J("routerLink",e.returnUrl))},directives:[O.P,we.zs,k.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),t})(),Ue=(()=>{class t{constructor(t){this.api=t,this.year=(new Date).getFullYear()}ngOnInit(){this.year<2021&&(this.year=2021)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-about"]],decls:45,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"h1"),s._uU(2),s.qZA(),s.TgZ(3,"h3"),s.TgZ(4,"a",1),s._uU(5),s.qZA(),s.qZA(),s.TgZ(6,"h4"),s.TgZ(7,"uds-translate"),s._uU(8,"You can access UDS Open Source code at"),s.qZA(),s.TgZ(9,"a",2),s._uU(10,"OpenUDS github repository"),s.qZA(),s.qZA(),s.TgZ(11,"div",3),s.TgZ(12,"h2"),s.TgZ(13,"uds-translate"),s._uU(14,"UDS has been developed using these components:"),s.qZA(),s.qZA(),s.TgZ(15,"ul"),s.TgZ(16,"li"),s.TgZ(17,"a",4),s._uU(18,"Python"),s.qZA(),s.qZA(),s.TgZ(19,"li"),s.TgZ(20,"a",5),s._uU(21,"TypeScript"),s.qZA(),s.qZA(),s.TgZ(22,"li"),s.TgZ(23,"a",6),s._uU(24,"Django"),s.qZA(),s.qZA(),s.TgZ(25,"li"),s.TgZ(26,"a",7),s._uU(27,"Angular"),s.qZA(),s.qZA(),s.TgZ(28,"li"),s.TgZ(29,"a",8),s._uU(30,"Guacamole"),s.qZA(),s.qZA(),s.TgZ(31,"li"),s.TgZ(32,"a",9),s._uU(33,"weasyprint"),s.qZA(),s.qZA(),s.TgZ(34,"li"),s.TgZ(35,"a",10),s._uU(36,"Crystal project icons"),s.qZA(),s.qZA(),s.TgZ(37,"li"),s.TgZ(38,"a",11),s._uU(39,"Flattr Icons"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(40,"p"),s.TgZ(41,"small"),s._uU(42,"* "),s.TgZ(43,"uds-translate"),s._uU(44,"If you find that we missed any component, please let us know"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(2),s.AsE("Universal Desktop Services ",e.api.config.version," build ",e.api.config.version_stamp,""),s.xp6(3),s.hij(" \xa9 2012-",e.year," Virtual Cable S.L.U."))},directives:[O.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:normal}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px}"]}),t})(),Ze=(()=>{class t{constructor(t){this.api=t}ngOnInit(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(t,e){1&t&&(s.TgZ(0,"div",0),s.TgZ(1,"div",1),s.TgZ(2,"h1"),s.TgZ(3,"uds-translate"),s._uU(4,"UDS Service launcher"),s.qZA(),s.qZA(),s.TgZ(5,"h4"),s.TgZ(6,"uds-translate"),s._uU(7,"The service you have requested is being launched."),s.qZA(),s.qZA(),s.TgZ(8,"h5"),s.TgZ(9,"uds-translate"),s._uU(10,"Please, note that reloading this page will not work."),s.qZA(),s.qZA(),s.TgZ(11,"h5"),s.TgZ(12,"uds-translate"),s._uU(13,"To relaunch service, you will have to do it from origin."),s.qZA(),s.qZA(),s.TgZ(14,"h6"),s.TgZ(15,"uds-translate"),s._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),s.qZA(),s.qZA(),s.TgZ(17,"h6"),s.TgZ(18,"uds-translate"),s._uU(19,"You can obtain it from the"),s.qZA(),s._uU(20,"\xa0"),s.TgZ(21,"a",2),s.TgZ(22,"uds-translate"),s._uU(23,"UDS Client download page"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA())},directives:[O.P,k.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:rgba(0,0,0,.22);padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:normal}"]}),t})();var qe=n(665),je=n(8553);const Ve=["input"],He=function(t){return{enterDuration:t}},ze=["*"],Ye=new s.OlP("mat-checkbox-default-options",{providedIn:"root",factory:Ge});function Ge(){return{color:"accent",clickAction:"check-indeterminate"}}let Ke=0;const $e=Ge(),We={provide:qe.JU,useExisting:(0,s.Gpc)(()=>Xe),multi:!0};class Qe{}const Je=(0,z.sb)((0,z.pj)((0,z.Kr)((0,z.Id)(class{constructor(t){this._elementRef=t}}))));let Xe=(()=>{class t extends Je{constructor(t,e,n,i,r,o,a){super(t),this._changeDetectorRef=e,this._focusMonitor=n,this._ngZone=i,this._animationMode=o,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++Ke,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.vpe,this.indeterminateChange=new s.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||$e,this.color=this.defaultColor=this._options.color||$e.color,this.tabIndex=parseInt(r)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=(0,r.Ig)(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=(0,r.Ig)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=(0,r.Ig)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new Qe;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const n=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===n?!this.disabled&&"noop"===n&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==n&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t,e){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let n="";switch(t){case 0:if(1===e)n="unchecked-checked";else{if(3!=e)return"";n="unchecked-indeterminate"}break;case 2:n=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${n}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(s.sBO),s.Y36(Y.tE),s.Y36(s.R0b),s.$8M("tabindex"),s.Y36(W.Qb,8),s.Y36(Ye,8))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(s.Gf(Ve,5),s.Gf(z.wG,5)),2&t){let t;s.iGM(t=s.CRH())&&(e._inputElement=t.first),s.iGM(t=s.CRH())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Ikx("id",e.id),s.uIk("tabindex",null),s.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s._Bn([We]),s.qOj],ngContentSelectors:ze,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.F$t(),s.TgZ(0,"label",0,1),s.TgZ(2,"span",2),s.TgZ(3,"input",3,4),s.NdJ("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),s.qZA(),s.TgZ(5,"span",5),s._UZ(6,"span",6),s.qZA(),s._UZ(7,"span",7),s.TgZ(8,"span",8),s.O4$(),s.TgZ(9,"svg",9),s._UZ(10,"path",10),s.qZA(),s.kcU(),s._UZ(11,"span",11),s.qZA(),s.qZA(),s.TgZ(12,"span",12,13),s.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),s.TgZ(14,"span",14),s._uU(15,"\xa0"),s.qZA(),s.Hsn(16),s.qZA(),s.qZA()),2&t){const t=s.MAs(1),n=s.MAs(13);s.uIk("for",e.inputId),s.xp6(2),s.ekj("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),s.xp6(1),s.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),s.xp6(2),s.Q6J("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.VKq(19,He,"NoopAnimations"===e._animationMode?0:150))}},directives:[z.wG,je.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),t})(),tn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({}),t})(),en=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[z.si,z.BQ,je.Q8,tn],z.BQ,tn]}),t})();const nn=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:Ne,canActivate:[A]},{path:"login",component:T.G},{path:"login/:id",component:T.G},{path:"mfa",component:(()=>{class t{constructor(t){this.api=t}ngOnInit(){document.getElementById("mfaform").action=this.api.config.urls.mfa,this.api.user.isLogged&&this.api.router.navigate(["/"]),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}launch(){return document.getElementById("mfaform").submit(),!0}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-mfa"]],decls:21,vars:2,consts:[["id","mfaform","method","post",3,"ngSubmit"],[1,"mfa-container"],[1,"mfa-brand"],[3,"src"],[1,"mfa-info"],[1,"mfa-form"],[1,"mfa-field"],["appearance","standard"],["matInput","","id","code","name","code","value","","required","","autofocus",""],["id","remember","name","remember"],[1,"mfa-button"],["mat-stroked-button","","color","primary","type","submit"]],template:function(t,e){1&t&&(s.TgZ(0,"form",0),s.NdJ("ngSubmit",function(){return e.launch()}),s.TgZ(1,"div",1),s.TgZ(2,"div",2),s._UZ(3,"img",3),s.qZA(),s.TgZ(4,"div",4),s.TgZ(5,"uds-translate"),s._uU(6,"Login Verification"),s.qZA(),s.qZA(),s.TgZ(7,"div",5),s.TgZ(8,"div",6),s.TgZ(9,"mat-form-field",7),s.TgZ(10,"mat-label"),s._uU(11),s.qZA(),s._UZ(12,"input",8),s.qZA(),s.qZA(),s.TgZ(13,"div",6),s.TgZ(14,"mat-checkbox",9),s.TgZ(15,"uds-translate"),s._uU(16,"Remember Me"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(17,"div",10),s.TgZ(18,"button",11),s.TgZ(19,"uds-translate"),s._uU(20,"Submit"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.qZA()),2&t&&(s.xp6(3),s.Q6J("src",e.api.staticURL("modern/img/login-img.png"),s.LSH),s.xp6(8),s.hij(" ",e.api.config.mfa.label," "))},directives:[qe._Y,qe.JL,qe.F,O.P,Tt.KE,Tt.hX,Ot.Nt,Xe,we.lW],styles:[".mfa-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.mfa-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.mfa-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.mfa-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.mfa-form[_ngcontent-%COMP%]{min-width:80%}}"]}),t})()},{path:"client-download",component:R},{path:"downloads",component:L,canActivate:[A]},{path:"error/:id",component:Be},{path:"about",component:Ue},{path:"ticket/launcher",component:Ze},{path:"**",redirectTo:"services"}];let sn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[k.Bz.forRoot(nn,{relativeLinkResolution:"legacy"})],k.Bz]}),t})();var rn=n(2238),on=n(7441);const an=["*",[["mat-toolbar-row"]]],ln=["*","mat-toolbar-row"],cn=(0,z.pj)(class{constructor(t){this._elementRef=t}});let un=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.lG2({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),hn=(()=>{class t extends cn{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(s.SBq),s.Y36(g.t4),s.Y36(P.K0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&s.Suo(n,un,5),2&t){let t;s.iGM(t=s.CRH())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.qOj],ngContentSelectors:ln,decls:2,vars:0,template:function(t,e){1&t&&(s.F$t(an),s.Hsn(0),s.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),dn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({imports:[[z.BQ],z.BQ]}),t})(),pn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t}),t.\u0275inj=s.cJS({providers:[{provide:Tt.o2,useValue:{floatLabel:"always"}}],imports:[qe.u5,dn,we.ot,ce,ve,vt,rn.Is,Tt.lN,Ot.c,on.LD,en]}),t})();function fn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){const e=s.CHM(t).$implicit;return s.oxw(2).changeLang(e)}),s._uU(1),s.qZA()}if(2&t){const t=e.$implicit;s.xp6(1),s.Oqu(t.name)}}function mn(t,e){if(1&t){const t=s.EpF();s.TgZ(0,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw(2).admin()}),s.TgZ(1,"i",23),s._uU(2,"dashboard"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4,"Dashboard"),s.qZA(),s.qZA()}}function gn(t,e){1&t&&(s.TgZ(0,"button",28),s.TgZ(1,"i",23),s._uU(2,"file_download"),s.qZA(),s.TgZ(3,"uds-translate"),s._uU(4,"Downloads"),s.qZA(),s.qZA())}function _n(t,e){if(1&t&&(s.TgZ(0,"button",14),s._uU(1),s.qZA()),2&t){s.oxw();const t=s.MAs(8),e=s.oxw();s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.Oqu(e.api.user.user)}}function yn(t,e){if(1&t&&(s.TgZ(0,"button",25),s._uU(1),s.TgZ(2,"i",23),s._uU(3,"arrow_drop_down"),s.qZA(),s.qZA()),2&t){s.oxw();const t=s.MAs(8),e=s.oxw();s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",e.api.user.user," ")}}function bn(t,e){if(1&t){const t=s.EpF();s.ynx(0),s.TgZ(1,"form",1),s._UZ(2,"input",2),s._UZ(3,"input",3),s.qZA(),s.TgZ(4,"mat-menu",null,4),s.YNc(6,fn,2,1,"button",5),s.qZA(),s.TgZ(7,"mat-menu",null,6),s.YNc(9,mn,5,0,"button",7),s.YNc(10,gn,5,0,"button",8),s.TgZ(11,"button",9),s.NdJ("click",function(){return s.CHM(t),s.oxw().logout()}),s.TgZ(12,"i",10),s._uU(13,"exit_to_app"),s.qZA(),s.TgZ(14,"uds-translate"),s._uU(15,"Logout"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(16,"mat-menu",11,12),s.YNc(18,_n,2,2,"button",13),s.TgZ(19,"button",14),s._uU(20),s.qZA(),s.TgZ(21,"button",15),s.TgZ(22,"uds-translate"),s._uU(23,"UDS Client"),s.qZA(),s.qZA(),s.TgZ(24,"button",16),s.TgZ(25,"uds-translate"),s._uU(26,"About"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(27,"mat-toolbar",17),s.TgZ(28,"button",18),s._UZ(29,"img",19),s._uU(30),s.qZA(),s._UZ(31,"span",20),s.TgZ(32,"div",21),s.TgZ(33,"button",22),s.TgZ(34,"i",23),s._uU(35,"file_download"),s.qZA(),s.TgZ(36,"uds-translate"),s._uU(37,"UDS Client"),s.qZA(),s.qZA(),s.TgZ(38,"button",24),s.TgZ(39,"i",23),s._uU(40,"info"),s.qZA(),s.TgZ(41,"uds-translate"),s._uU(42,"About"),s.qZA(),s.qZA(),s.TgZ(43,"button",25),s._uU(44),s.TgZ(45,"i",23),s._uU(46,"arrow_drop_down"),s.qZA(),s.qZA(),s.YNc(47,yn,4,2,"button",26),s.qZA(),s.TgZ(48,"div",27),s.TgZ(49,"button",25),s.TgZ(50,"i",23),s._uU(51,"menu"),s.qZA(),s.qZA(),s.qZA(),s.qZA(),s.BQk()}if(2&t){const t=s.MAs(5),e=s.MAs(17),n=s.oxw();s.xp6(1),s.s9C("action",n.api.config.urls.changeLang,s.LSH),s.xp6(1),s.s9C("name",n.api.csrfField),s.s9C("value",n.api.csrfToken),s.xp6(1),s.s9C("value",n.lang.id),s.xp6(3),s.Q6J("ngForOf",n.langs),s.xp6(3),s.Q6J("ngIf",n.api.user.isStaff),s.xp6(1),s.Q6J("ngIf",n.api.user.isStaff),s.xp6(8),s.Q6J("ngIf",n.api.user.isLogged),s.xp6(1),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",n.lang.name," "),s.xp6(9),s.Q6J("src",n.api.staticURL("modern/img/udsicon.png"),s.LSH),s.xp6(1),s.hij(" ",n.api.config.site_logo_name," "),s.xp6(13),s.Q6J("matMenuTriggerFor",t),s.xp6(1),s.hij("",n.lang.name," "),s.xp6(3),s.Q6J("ngIf",n.api.user.isLogged),s.xp6(2),s.Q6J("matMenuTriggerFor",e)}}let vn=(()=>{class t{constructor(t){this.api=t,this.style="";const e=t.config.language;this.langs=[];for(const n of t.config.available_languages)n.id===e?this.lang=n:this.langs.push(n)}ngOnInit(){}changeLang(t){return this.lang=t,document.getElementById("id_language").attributes.value.value=t.id,document.getElementById("form_language").submit(),!1}admin(){this.api.gotoAdmin()}logout(){this.api.logout()}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(t,e){1&t&&s.YNc(0,bn,52,16,"ng-container",0),2&t&&s.Q6J("ngIf",""===e.api.config.urls.launch)},directives:[P.O5,qe._Y,qe.JL,qe.F,ie,P.sg,Xt,O.P,ae,k.rH,hn,we.lW],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),t})(),wn=(()=>{class t{constructor(t){this.api=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(s.Y36(S.n))},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(t,e){1&t&&(s.TgZ(0,"div"),s.TgZ(1,"a",0),s._uU(2),s.qZA(),s.qZA()),2&t&&(s.xp6(1),s.Q6J("href",e.api.config.site_copyright_link,s.LSH),s.xp6(1),s.Oqu(e.api.config.site_copyright_info))},styles:[""]}),t})(),xn=(()=>{class t{constructor(){this.title="uds"}ngOnInit(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Xpm({type:t,selectors:[["uds-root"]],decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,e){1&t&&(s._UZ(0,"uds-navbar"),s.TgZ(1,"div",0),s.TgZ(2,"div",1),s._UZ(3,"router-outlet"),s.qZA(),s.TgZ(4,"div",2),s._UZ(5,"uds-footer"),s.qZA(),s.qZA())},directives:[vn,k.lC,wn],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),t})();var Cn=n(3183);let En=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=s.oAB({type:t,bootstrap:[xn]}),t.\u0275inj=s.cJS({providers:[S.n,Cn.h],imports:[[i.b2,_,E.JF,sn,W.PW,pn]]}),t})();n(2340).N.production&&(0,s.G48)(),i.q6().bootstrapModule(En).catch(t=>console.log(t))}},function(t){t(t.s=6445)}]); \ No newline at end of file diff --git a/server/src/uds/static/modern/main-es5.js b/server/src/uds/static/modern/main-es5.js index b6a939947..a756ab3ff 100644 --- a/server/src/uds/static/modern/main-es5.js +++ b/server/src/uds/static/modern/main-es5.js @@ -1 +1 @@ -(function(){function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)})(e)}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&_setPrototypeOf(r,n.prototype),r}).apply(null,arguments)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function l(e){return{type:6,styles:e,offset:null}}function c(e,t,n){return{type:0,name:e,styles:t,options:n}}function h(e){return{type:5,steps:e}}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function v(e){Promise.resolve(null).then(e)}var _=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;v(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),m=function(){function e(t){var n=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?v(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),g="!"},9238:function(e,t,n){"use strict";n.d(t,{rt:function(){return ne},s1:function(){return D},$s:function(){return T},Em:function(){return M},tE:function(){return J},qV:function(){return B},qm:function(){return te},Kd:function(){return K},X6:function(){return Z},yG:function(){return j}});var i=n(8583),r=n(3018),o=n(9765),a=n(5319),s=n(6215),u=n(5917),l=n(6461),c=n(3342),h=n(4395),f=n(5435),d=n(8002),p=n(5257),v=n(3653),_=n(7519),m=n(6782),g=n(9490),y=n(521),k=n(8553);function b(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var C,w="cdk-describedby-message-container",x="cdk-describedby-message",E="cdk-describedby-host",S=0,A=new Map,O=null,T=((C=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=P(t,n);"string"!=typeof t?(I(t),A.set(i,{messageElement:t,referenceCount:0})):A.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=P(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=A.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}O&&0===O.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[".concat(E,"]")),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return _createClass(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,c.b)(function(t){return e._pressedLetters.push(t)}),(0,h.b)(t),(0,f.h)(function(){return e._pressedLetters.length>0}),(0,d.U)(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case l.Mf:return void this.tabOut.next();case l.JH:if(this._vertical&&i){this.setNextItemActive();break}return;case l.LH:if(this._vertical&&i){this.setPreviousItemActive();break}return;case l.SV:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.oh:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.Sd:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case l.uR:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||(0,l.Vb)(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=l.A&&n<=l.Z||n>=l.xE&&n<=l.aO)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof r.n_E?this._items.toArray():this._items}}]),e}(),D=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(R),M=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._origin="program",e}return _createClass(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(R),L=function(){var e=function(){function e(t){_classCallCheck(this,e),this._platform=t}return _createClass(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t=function(e){try{return e.frameElement}catch(t){return null}}(function(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(e));if(t&&(-1===N(t)||!this.isVisible(t)))return!1;var n=e.nodeName.toLowerCase(),i=N(e);return e.hasAttribute("contenteditable")?-1!==i:!("iframe"===n||"object"===n||this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===n?!!e.hasAttribute("controls")&&-1!==i:"video"===n?-1!==i&&(null!==i||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||F(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4))},token:e,providedIn:"root"}),e}();function F(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function N(e){if(!F(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var U=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return _createClass(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusInitialElement(e))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusFirstTabbableElement(e))})})}},{key:"focusLastTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusLastTabbableElement(e))})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(e)}}]),e}(),B=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._checker=t,this._ngZone=n,this._document=i}return _createClass(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new U(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(L),r.LFG(r.R0b),r.LFG(i.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(L),r.LFG(r.R0b),r.LFG(i.K0))},token:e,providedIn:"root"}),e}();function Z(e){return 0===e.offsetX&&0===e.offsetY}function j(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈var q=new r.OlP("cdk-input-modality-detector-options"),V={ignoreKeys:[l.zL,l.jx,l.b2,l.MW,l.JU]},H=(0,y.i$)({passive:!0,capture:!0}),z=function(){var e=function(){function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._platform=t,this._mostRecentTarget=null,this._modality=new s.X(null),this._lastTouchMs=0,this._onKeydown=function(e){var t,n;(null===(n=null===(t=o._options)||void 0===t?void 0:t.ignoreKeys)||void 0===n?void 0:n.some(function(t){return t===e.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=(0,y.sA)(e))},this._onMousedown=function(e){Date.now()-o._lastTouchMs<650||(o._modality.next(Z(e)?"keyboard":"mouse"),o._mostRecentTarget=(0,y.sA)(e))},this._onTouchstart=function(e){j(e)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=(0,y.sA)(e))},this._options=Object.assign(Object.assign({},V),r),this.modalityDetected=this._modality.pipe((0,v.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,_.x)()),t.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",o._onKeydown,H),i.addEventListener("mousedown",o._onMousedown,H),i.addEventListener("touchstart",o._onTouchstart,H)})}return _createClass(e,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,H),document.removeEventListener("mousedown",this._onMousedown,H),document.removeEventListener("touchstart",this._onTouchstart,H))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4),r.LFG(r.R0b),r.LFG(i.K0),r.LFG(q,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4),r.LFG(r.R0b),r.LFG(i.K0),r.LFG(q,8))},token:e,providedIn:"root"}),e}(),Y=new r.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),G=new r.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),K=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return _createClass(e,[{key:"announce",value:function(e){for(var t,n,i,r=this,o=this._defaultOptions,a=arguments.length,s=new Array(a>1?a-1:0),u=1;u1&&void 0!==arguments[1]&&arguments[1],n=(0,g.fI)(e);if(!this._platform.isBrowser||1!==n.nodeType)return(0,u.of)(null);var i=(0,y.kV)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var a={checkChildren:t,subject:new o.xQ,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}},{key:"stopMonitoring",value:function(e){var t=(0,g.fI)(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=(0,g.fI)(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=_slicedToArray(e,2),r=n[0],o=n[1];return i._originChanged(r,t,o)}):(this._setOrigin(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOrigin",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){t._origin=e,t._originFromTouchInteraction="touch"===e&&n,0===t._detectionMode&&(clearTimeout(t._originTimeoutId),t._originTimeoutId=setTimeout(function(){return t._origin=null},t._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t),i=(0,y.sA)(e);!n||!n.checkChildren&&t!==i||this._originChanged(t,this._getFocusOrigin(i),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,Q),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,Q)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){t._getWindow().addEventListener("focus",t._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,m.R)(this._stopInputModalityDetector)).subscribe(function(e){t._setOrigin(e,!0)}))}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Q),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Q),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.R0b),r.LFG(y.t4),r.LFG(z),r.LFG(i.K0,8),r.LFG(W,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(r.R0b),r.LFG(y.t4),r.LFG(z),r.LFG(i.K0,8),r.LFG(W,8))},token:e,providedIn:"root"}),e}(),X="cdk-high-contrast-black-on-white",$="cdk-high-contrast-white-on-black",ee="cdk-high-contrast-active",te=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._document=n}return _createClass(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove(ee),e.remove(X),e.remove($),this._hasCheckedHighContrastMode=!0;var t=this.getHighContrastMode();1===t?(e.add(ee),e.add(X)):2===t&&(e.add(ee),e.add($))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4),r.LFG(i.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4),r.LFG(i.K0))},token:e,providedIn:"root"}),e}(),ne=function(){var e=function e(t){_classCallCheck(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(r.LFG(te))},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[[y.ud,k.Q8]]}),e}()},946:function(e,t,n){"use strict";n.d(t,{vT:function(){return u},Is:function(){return s}});var i,r=n(3018),o=n(8583),a=new r.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,r.f3M)(o.K0)}}),s=((i=function(){function e(t){if(_classCallCheck(this,e),this.value="ltr",this.change=new r.vpe,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||i)(r.LFG(a,8))},i.\u0275prov=r.Yz7({factory:function(){return new i(r.LFG(a,8))},token:i,providedIn:"root"}),i),u=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}()},8345:function(e,t,n){"use strict";n.d(t,{P3:function(){return l},Ov:function(){return h},A8:function(){return f},eX:function(){return c},k:function(){return d},Z9:function(){return s}});var i=n(5639),r=n(5917),o=n(9765),a=n(3018);function s(e){return e&&"function"==typeof e.connect}var u,l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._data=e,i}return _createClass(n,[{key:"connect",value:function(){return(0,i.b)(this._data)?this._data:(0,r.of)(this._data)}},{key:"disconnect",value:function(){}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),c=function(){function e(){_classCallCheck(this,e),this.viewCacheSize=20,this._viewCache=[]}return _createClass(e,[{key:"applyChanges",value:function(e,t,n,i,r){var o=this;e.forEachOperation(function(e,a,s){var u,l;null==e.previousIndex?l=(u=o._insertView(function(){return n(e,a,s)},s,t,i(e)))?1:0:null==s?(o._detachAndCacheView(a,t),l=3):(u=o._moveView(a,s,t,i(e)),l=2),r&&r({context:null==u?void 0:u.context,operation:l,record:e})})}},{key:"detach",value:function(){var e,t=_createForOfIteratorHelper(this._viewCache);try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(n){t.e(n)}finally{t.f()}this._viewCache=[]}},{key:"_insertView",value:function(e,t,n,i){var r=this._insertViewFromCache(t,n);if(!r){var o=e();return n.createEmbeddedView(o.templateRef,o.context,o.index)}r.context.$implicit=i}},{key:"_detachAndCacheView",value:function(e,t){var n=t.detach(e);this._maybeCacheView(n,t)}},{key:"_moveView",value:function(e,t,n,i){var r=n.get(e);return n.move(r,t),r.context.$implicit=i,r}},{key:"_maybeCacheView",value:function(e,t){if(this._viewCache.length0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.xQ,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return _createClass(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i1?t-1:0),i=1;it.height||e.scrollWidth>t.width}}]),e}(),b=function(){function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),C=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function w(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function x(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var E,S=function(){function e(t,n,i,r){_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;w(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),A=((E=function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new C},this.close=function(e){return new b(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new k(o._viewportRuler,o._document)},this.reposition=function(e){return new S(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r}).\u0275fac=function(e){return new(e||E)(r.LFG(i.mF),r.LFG(i.rL),r.LFG(r.R0b),r.LFG(s.K0))},E.\u0275prov=r.Yz7({factory:function(){return new E(r.LFG(i.mF),r.LFG(i.rL),r.LFG(r.R0b),r.LFG(s.K0))},token:E,providedIn:"root"}),E),O=function e(t){if(_classCallCheck(this,e),this.scrollStrategy=new C,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0))},token:e,providedIn:"root"}),e}(),R=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return _createClass(n,[{key:"add",value:function(e){_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(I);return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0))},token:e,providedIn:"root"}),e}(),D=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=(0,o.sA)(e),n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var a=n[i];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(t))break;a._outsidePointerEvents.next(e)}}},r}return _createClass(n,[{key:"add",value:function(e){if(_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),!this._isAttached){var t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(I);return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0),r.LFG(o.t4))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0),r.LFG(o.t4))},token:e,providedIn:"root"}),e}(),M="undefined"!=typeof window?window:{},L=void 0!==M.__karma__&&!!M.__karma__||void 0!==M.jasmine&&!!M.jasmine||void 0!==M.jest&&!!M.jest||void 0!==M.Mocha&&!!M.Mocha,F=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=n,this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e="cdk-overlay-container";if(this._platform.isBrowser||L)for(var t=this._document.querySelectorAll(".".concat(e,'[platform="server"], .').concat(e,'[platform="test"]')),n=0;nd&&(d=_,f=v)}}catch(m){p.e(m)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&j(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(U),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=V(t),o=e.x,a=e.y,s=this._getOffset(i,"x"),u=this._getOffset(i,"y");s&&(o+=s),u&&(a+=u);var l=0-a,c=a+r.height-n.height,h=this._subtractOverflows(r.width,0-o,o+r.width-n.width),f=this._subtractOverflows(r.height,l,c),d=h*f;return{visibleArea:d,isCompletelyWithinViewport:r.width*r.height===d,fitsInViewportVertically:f===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=q(this._overlayRef.getConfig().minHeight),a=q(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=V(t),a=this._viewportRect,s=Math.max(e.x+o.width-a.width,0),u=Math.max(e.y+o.height-a.height,0),l=Math.max(a.top-n.top-e.y,0),c=Math.max(a.left-n.left-e.x,0);return i=o.width<=a.width?c||-s:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!l||"start"===t.overlayX&&l)s=u.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!l||"end"===t.overlayX&&l)a=e.x,o=u.right-e.x;else{var f=Math.min(u.right-e.x+u.left,e.x),d=this._lastBoundingBoxSize.width;o=2*f,a=e.x-f,o>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-d/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=(0,u.HM)(n.height),i.top=(0,u.HM)(n.top),i.bottom=(0,u.HM)(n.bottom),i.width=(0,u.HM)(n.width),i.left=(0,u.HM)(n.left),i.right=(0,u.HM)(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=(0,u.HM)(r)),o&&(i.maxWidth=(0,u.HM)(o))}this._lastBoundingBoxSize=n,j(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){j(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){j(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();j(n,this._getExactOverlayY(t,e,a)),j(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),c&&(s+="translateY(".concat(c,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=(0,u.HM)(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=(0,u.HM)(o.maxWidth):r&&(n.maxWidth="")),j(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=(0,u.HM)(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=(0,u.HM)(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:x(e,n),isOriginOutsideView:w(e,n),isOverlayClipped:x(t,n),isOverlayOutsideView:w(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(z),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),G=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return _createClass(e,[{key:"global",value:function(){return new Y}},{key:"connectedTo",value:function(e,t,n){return new H(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new Z(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.rL),r.LFG(s.K0),r.LFG(o.t4),r.LFG(F))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(i.rL),r.LFG(s.K0),r.LFG(o.t4),r.LFG(F))},token:e,providedIn:"root"}),e}(),K=0,W=function(){var e=function(){function e(t,n,i,r,o,a,s,u,l,c,h){_classCallCheck(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}return _createClass(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new O(e);return r.direction=r.direction||this._directionality.value,new N(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+K++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(r.z2F)),new l.u0(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(A),r.LFG(F),r.LFG(r._Vd),r.LFG(G),r.LFG(R),r.LFG(r.zs3),r.LFG(r.R0b),r.LFG(s.K0),r.LFG(a.Is),r.LFG(s.Ye),r.LFG(D))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Q=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],J=new r.OlP("cdk-connected-overlay-scroll-strategy"),X=function(){var e=function e(t){_classCallCheck(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.SBq))},e.\u0275dir=r.lG2({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),$=function(){var e=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this._overlay=t,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new r.vpe,this.positionChange=new r.vpe,this.attach=new r.vpe,this.detach=new r.vpe,this.overlayKeydown=new r.vpe,this.overlayOutsideClick=new r.vpe,this._templatePortal=new l.UE(n,i),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=(0,u.Ig)(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=(0,u.Ig)(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=(0,u.Ig)(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=(0,u.Ig)(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=(0,u.Ig)(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;(!this.positions||!this.positions.length)&&(this.positions=Q);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),t.keyCode===g.hY&&!e.disableClose&&!(0,g.Vb)(t)&&(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new O({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new p(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(W),r.Y36(r.Rgc),r.Y36(r.s_b),r.Y36(J),r.Y36(a.Is,8))},e.\u0275dir=r.lG2({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[r.TTD]}),e}(),ee={provide:J,deps:[W],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},te=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[W,ee],imports:[[a.vT,l.eL,i.Cl],i.Cl]}),e}()},521:function(e,t,n){"use strict";n.d(t,{t4:function(){return f},ud:function(){return d},sA:function(){return b},ht:function(){return k},kV:function(){return y},_i:function(){return g},qK:function(){return v},i$:function(){return _},Mq:function(){return m}});var i,r=n(3018),o=n(8583);try{i="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(s){i=!1}var a,s,u,l,c,h,f=((s=function e(t){_classCallCheck(this,e),this._platformId=t,this.isBrowser=this._platformId?(0,o.NF)(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&&!i)&&"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}).\u0275fac=function(e){return new(e||s)(r.LFG(r.Lbi))},s.\u0275prov=r.Yz7({factory:function(){return new s(r.LFG(r.Lbi))},token:s,providedIn:"root"}),s),d=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}(),p=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function v(){if(a)return a;if("object"!=typeof document||!document)return a=new Set(p);var e=document.createElement("input");return a=new Set(p.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function _(e){return function(){if(null==u&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return u=!0}}))}finally{u=u||!1}return u}()?e:!!e.capture}function m(){if(null==c){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return c=!1;if("scrollBehavior"in document.documentElement.style)c=!0;else{var e=Element.prototype.scrollTo;c=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return c}function g(){if("object"!=typeof document||!document)return 0;if(null==l){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),l=0,0===e.scrollLeft&&(e.scrollLeft=1,l=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return l}function y(e){if(function(){if(null==h){var e="undefined"!=typeof document?document.head:null;h=!(!e||!e.createShadowRoot&&!e.attachShadow)}return h}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function k(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}function b(e){return e.composedPath?e.composedPath()[0]:e.target}},7636:function(e,t,n){"use strict";n.d(t,{en:function(){return c},Pl:function(){return f},C5:function(){return s},u0:function(){return h},eL:function(){return d},UE:function(){return u}});var i,r=n(3018),o=n(8583),a=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(a),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return _createClass(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(n.prototype),"detach",this).call(this)}}]),n}(a),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).element=e instanceof r.SBq?e.nativeElement:e,i}return n}(a),c=function(){function e(){_classCallCheck(this,e),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof s?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof u?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof l?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),h=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s,u;return _classCallCheck(this,n),(u=t.call(this)).outletElement=e,u._componentFactoryResolver=i,u._appRef=r,u._defaultInjector=o,u.attachDomPortal=function(e){var t=e.element,i=u._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),u.outletElement.appendChild(t),u._attachedPortal=e,_get((s=_assertThisInitialized(u),_getPrototypeOf(n.prototype)),"setDisposeFn",s).call(s,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},u._document=a,u}return _createClass(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),this._attachedPortal=e,i}},{key:"dispose",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(c),f=((i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,o){var a,s;return _classCallCheck(this,n),(s=t.call(this))._componentFactoryResolver=e,s._viewContainerRef=i,s._isInitialized=!1,s.attached=new r.vpe,s.attachDomPortal=function(e){var t=e.element,i=s._document.createComment("dom-portal");e.setAttachedHost(_assertThisInitialized(s)),t.parentNode.insertBefore(i,t),s._getRootNode().appendChild(t),s._attachedPortal=e,_get((a=_assertThisInitialized(s),_getPrototypeOf(n.prototype)),"setDisposeFn",a).call(a,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},s._document=o,s}return _createClass(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&_get(_getPrototypeOf(n.prototype),"detach",this).call(this),e&&_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),_get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(c)).\u0275fac=function(e){return new(e||i)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(o.K0))},i.\u0275dir=r.lG2({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),i),d=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}()},9243:function(e,t,n){"use strict";n.d(t,{ZD:function(){return y},mF:function(){return m},Cl:function(){return k},rL:function(){return g}});var i=n(9490),r=n(3018),o=n(6465),a=n(6102);new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(o.o));var s=n(9765),u=n(5917),l=n(7574),c=n(2759);n(4581),n(5319),n(5639),n(7393),new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(a.v))(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?_get(_getPrototypeOf(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(o.o)),n(1593),n(7971),n(8858),n(7519);var h=n(628),f=n(5435),d=(n(6782),n(9761),n(3190),n(521)),p=n(8583),v=n(946);n(8345);var _,m=((_=function(){function e(t,n,i){_classCallCheck(this,e),this._ngZone=t,this._platform=n,this._scrolled=new s.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return _createClass(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(function(){return t._scrolled.next(e)}))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new l.y(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe((0,h.e)(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):(0,u.of)()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,f.h)(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=(0,i.fI)(t),r=e.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var t=e._getWindow();return(0,c.R)(t.document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||_)(r.LFG(r.R0b),r.LFG(d.t4),r.LFG(p.K0,8))},_.\u0275prov=r.Yz7({factory:function(){return new _(r.LFG(r.R0b),r.LFG(d.t4),r.LFG(p.K0,8))},token:_,providedIn:"root"}),_),g=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this._platform=t,this._change=new s.xQ,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._viewportSize=null})})}return _createClass(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe((0,h.e)(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(d.t4),r.LFG(r.R0b),r.LFG(p.K0,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(d.t4),r.LFG(r.R0b),r.LFG(p.K0,8))},token:e,providedIn:"root"}),e}(),y=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}(),k=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[[v.vT,d.ud,y],v.vT,y]}),e}()},9490:function(e,t,n){"use strict";n.d(t,{Eq:function(){return a},Ig:function(){return r},HM:function(){return s},fI:function(){return u},su:function(){return o}});var i=n(3018);function r(e){return null!=e&&"false"!="".concat(e)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function a(e){return Array.isArray(e)?e:[e]}function s(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function u(e){return e instanceof i.SBq?e.nativeElement:e}},8583:function(e,t,n){"use strict";n.d(t,{mr:function(){return b},Ov:function(){return Y},ez:function(){return G},K0:function(){return l},Do:function(){return w},V_:function(){return f},Ye:function(){return x},S$:function(){return y},mk:function(){return R},sg:function(){return M},O5:function(){return F},RF:function(){return Z},n9:function(){return j},ED:function(){return q},b0:function(){return C},lw:function(){return c},EM:function(){return Q},JF:function(){return $},NF:function(){return W},w_:function(){return u},bD:function(){return K},q:function(){return o},Mx:function(){return I},HT:function(){return a}});var i=n(3018),r=null;function o(){return r}function a(e){r||(r=e)}var s,u=function e(){_classCallCheck(this,e)},l=new i.OlP("DocumentToken"),c=((s=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}()).\u0275fac=function(e){return new(e||s)},s.\u0275prov=(0,i.Yz7)({factory:h,token:s,providedIn:"platform"}),s);function h(){return(0,i.LFG)(d)}var f=new i.OlP("Location Initialized"),d=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i._init(),i}return _createClass(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return o().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=o().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=o().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){p()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){p()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}]),n}(c);return e.\u0275fac=function(t){return new(t||e)(i.LFG(l))},e.\u0275prov=(0,i.Yz7)({factory:v,token:e,providedIn:"platform"}),e}();function p(){return!!window.history.pushState}function v(){return new d((0,i.LFG)(l))}function _(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function g(e){return e&&"?"!==e[0]?"?"+e:e}var y=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,i.Yz7)({factory:k,token:e,providedIn:"root"}),e}();function k(e){var t=(0,i.LFG)(l).location;return new C((0,i.LFG)(c),t&&t.origin||"")}var b=new i.OlP("appBaseHref"),C=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;if(_classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._removeListenerFns=[],null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)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.");return r._baseHref=i,_possibleConstructorReturn(r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return _(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(i.LFG(c),i.LFG(b,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),w=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",r._removeListenerFns=[],null!=i&&(r._baseHref=i),r}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=_(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(i.LFG(c),i.LFG(b,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),x=function(){var e=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;var o=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=m(S(o)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})})}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+g(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,S(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.LFG(y),i.LFG(c))},e.normalizeQueryParams=g,e.joinWithSlash=_,e.stripTrailingSlash=m,e.\u0275prov=(0,i.Yz7)({factory:E,token:e,providedIn:"root"}),e}();function E(){return new x((0,i.LFG)(y),(0,i.LFG)(c))}function S(e){return e.replace(/\/index.html$/,"")}var A=((A=A||{})[A.Zero=0]="Zero",A[A.One=1]="One",A[A.Two=2]="Two",A[A.Few=3]="Few",A[A.Many=4]="Many",A[A.Other=5]="Other",A),O=i.kL8,T=function e(){_classCallCheck(this,e)},P=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).locale=e,i}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(O(t||this.locale)(e)){case A.Zero:return"zero";case A.One:return"one";case A.Two:return"two";case A.Few:return"few";case A.Many:return"many";default:return"other"}}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.soG))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}();function I(e,t){t=encodeURIComponent(t);var n,i=_createForOfIteratorHelper(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=_slicedToArray(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[0],u=a[1];if(s.trim()===t)return decodeURIComponent(u)}}catch(l){i.e(l)}finally{i.f()}return null}var R=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(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&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,i.AaK)(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},e.\u0275dir=i.lG2({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),D=function(){function e(t,n,i,r){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),M=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat(function(e){return e.name||typeof e}(e),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new D(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new L(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var u=new L(e,s);n.push(u)}});for(var i=0;i0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,_toConsumableArray(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),d=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return _(e)}},{key:"encodeValue",value:function(e){return _(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}(),p=/%(\d[a-f0-9])/gi,v={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function _(e){return encodeURIComponent(e).replace(p,function(e,t){var n;return null!==(n=v[t])&&void 0!==n?n:e})}function m(e){return"".concat(e)}var g=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new d,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),r=_slicedToArray(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(m(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(m(t.value));-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),y=function(){function e(){_classCallCheck(this,e),this.map=new Map}return _createClass(e,[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function k(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function b(e){return"undefined"!=typeof Blob&&e instanceof Blob}function C(e){return"undefined"!=typeof FormData&&e instanceof FormData}var w=function(){function e(t,n,i,r){var o;if(_classCallCheck(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new f),this.context||(this.context=new y),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,u=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,l=n.headers||this.headers,c=n.params||this.params,h=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},l)),n.setParams&&(c=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},c)),new e(i,r,a,{params:c,headers:l,context:h,reportProgress:u,responseType:o,withCredentials:s})}}]),e}(),x=((x=x||{})[x.Sent=0]="Sent",x[x.UploadProgress=1]="UploadProgress",x[x.ResponseHeader=2]="ResponseHeader",x[x.DownloadProgress=3]="DownloadProgress",x[x.Response=4]="Response",x[x.User=5]="User",x),E=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,e),this.headers=t.headers||new f,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},S=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=x.ResponseHeader,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(E),A=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=x.Response,e.body=void 0!==i.body?i.body:null,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(E),O=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(E);function T(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var P,I=((P=function(){function e(t){_classCallCheck(this,e),this.handler=t}return _createClass(e,[{key:"request",value:function(e,t){var n,i,r,a=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof w?n=e:(i=c.headers instanceof f?c.headers:new f(c.headers),c.params&&(r=c.params instanceof g?c.params:new g({fromObject:c.params})),n=new w(e,t,void 0!==c.body?c.body:null,{headers:i,context:c.context,params:r,reportProgress:c.reportProgress,responseType:c.responseType||"json",withCredentials:c.withCredentials}));var h=(0,o.of)(n).pipe((0,s.b)(function(e){return a.handler.handle(e)}));if(e instanceof w||"events"===c.observe)return h;var d=h.pipe((0,u.h)(function(e){return e instanceof A}));switch(c.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return d.pipe((0,l.U)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return d.pipe((0,l.U)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return d.pipe((0,l.U)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return d.pipe((0,l.U)(function(e){return e.body}))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type ".concat(c.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new g).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,T(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,T(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,T(n,t))}}]),e}()).\u0275fac=function(e){return new(e||P)(r.LFG(c))},P.\u0275prov=r.Yz7({token:P,factory:P.\u0275fac}),P),R=function(){function e(t,n){_classCallCheck(this,e),this.next=t,this.interceptor=n}return _createClass(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),D=new r.OlP("HTTP_INTERCEPTORS"),M=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),L=/^\)\]\}',?\n/,F=function(){var e=function(){function e(t){_classCallCheck(this,e),this.xhrFactory=t}return _createClass(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new a.y(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new f(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new S({headers:r,status:t,statusText:n,url:o})},l=function(){var t=u(),r=t.headers,o=t.status,a=t.statusText,s=t.url,l=null;204!==o&&(l=void 0===i.response?i.responseText:i.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof l){var h=l;l=l.replace(L,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=h,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new A({body:l,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new O({error:l,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=u().url,r=new O({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},h=!1,d=function(t){h||(n.next(u()),h=!0);var r={type:x.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&!!i.responseText&&(r.partialText=i.responseText),n.next(r)},p=function(e){var t={type:x.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",d),null!==a&&i.upload&&i.upload.addEventListener("progress",p)),i.send(a),n.next({type:x.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",d),null!==a&&i.upload&&i.upload.removeEventListener("progress",p)),i.readyState!==i.DONE&&i.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.JF))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),N=new r.OlP("XSRF_COOKIE_NAME"),U=new r.OlP("XSRF_HEADER_NAME"),B=function e(){_classCallCheck(this,e)},Z=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.K0),r.LFG(r.Lbi),r.LFG(N))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),j=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.tokenService=t,this.headerName=n}return _createClass(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null!==i&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(B),r.LFG(U))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),q=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.backend=t,this.injector=n,this.chain=null}return _createClass(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(D,[]);this.chain=t.reduceRight(function(e,t){return new R(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(h),r.LFG(r.zs3))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),V=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:j,useClass:M}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:N,useValue:t.cookieName}:[],t.headerName?{provide:U,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[j,{provide:D,useExisting:j,multi:!0},{provide:B,useClass:Z},{provide:N,useValue:"XSRF-TOKEN"},{provide:U,useValue:"X-XSRF-TOKEN"}]}),e}(),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[I,{provide:c,useClass:q},F,{provide:h,useExisting:F}],imports:[[V.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}()},3018:function(e,t,n){"use strict";n.d(t,{deG:function(){return ln},tb:function(){return Gu},AFp:function(){return qu},ip1:function(){return Zu},CZH:function(){return ju},hGG:function(){return Bl},z2F:function(){return Tl},sBO:function(){return zs},Sil:function(){return rl},_Vd:function(){return vs},EJc:function(){return Qu},SBq:function(){return ys},qLn:function(){return Ri},vpe:function(){return bu},gxx:function(){return bo},tBr:function(){return Fn},XFs:function(){return R},OlP:function(){return un},zs3:function(){return Lo},ZZ4:function(){return Us},aQg:function(){return Zs},soG:function(){return Wu},YKP:function(){return eu},v3s:function(){return Il},h0i:function(){return $s},PXZ:function(){return xl},R0b:function(){return sl},FiY:function(){return Nn},Lbi:function(){return Yu},g9A:function(){return zu},n_E:function(){return wu},Qsj:function(){return Cs},FYo:function(){return bs},JOm:function(){return Li},Tiy:function(){return xs},q3G:function(){return wi},tp0:function(){return Un},EAV:function(){return Ml},Rgc:function(){return Qs},dDg:function(){return pl},DyG:function(){return cn},GfV:function(){return Es},s_b:function(){return nu},ifc:function(){return N},eFA:function(){return El},G48:function(){return Cl},Gpc:function(){return v},f3M:function(){return Tn},X6Q:function(){return bl},_c5:function(){return Nl},VLi:function(){return _l},c2e:function(){return Ku},zSh:function(){return wo},wAp:function(){return ns},vHH:function(){return g},EiD:function(){return bi},mCW:function(){return oi},qzn:function(){return Kn},JVY:function(){return Qn},pB0:function(){return ei},eBb:function(){return Xn},L6k:function(){return Jn},LAX:function(){return $n},cg1:function(){return $a},Tjo:function(){return Fl},kL8:function(){return es},yhl:function(){return Wn},dqk:function(){return q},sIi:function(){return zo},CqO:function(){return ca},QGY:function(){return ua},F4k:function(){return la},RDi:function(){return Ae},AaK:function(){return f},z3N:function(){return Gn},qOj:function(){return No},TTD:function(){return ye},_Bn:function(){return fs},xp6:function(){return Cr},uIk:function(){return Wo},Tol:function(){return Pa},Gre:function(){return Ga},ekj:function(){return Ta},Suo:function(){return Lu},Xpm:function(){return $},lG2:function(){return ae},Yz7:function(){return C},cJS:function(){return w},oAB:function(){return ie},Yjl:function(){return se},Y36:function(){return $o},_UZ:function(){return ra},BQk:function(){return aa},ynx:function(){return oa},qZA:function(){return ia},TgZ:function(){return na},EpF:function(){return sa},n5z:function(){return nn},Ikx:function(){return Ka},LFG:function(){return On},$8M:function(){return on},NdJ:function(){return ha},CRH:function(){return Fu},kcU:function(){return bt},O4$:function(){return kt},oxw:function(){return _a},ALo:function(){return gu},lcZ:function(){return yu},Hsn:function(){return ya},F$t:function(){return ga},Q6J:function(){return ea},s9C:function(){return ka},VKq:function(){return _u},iGM:function(){return Du},MAs:function(){return Xo},CHM:function(){return Ye},oJD:function(){return xi},LSH:function(){return Ei},kYT:function(){return re},Udp:function(){return Oa},WFA:function(){return fa},d8E:function(){return Wa},YNc:function(){return Jo},_uU:function(){return qa},Oqu:function(){return Va},hij:function(){return Ha},AsE:function(){return za},lnq:function(){return Ya},Gf:function(){return Mu}});var i=n(9765),r=n(5319),o=n(7574),a=n(6682),s=n(2441),u=n(1307);function l(){return new i.xQ}function c(e){for(var t in e)if(e[t]===c)return t;throw Error("Could not find renamed property on target object.")}function h(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function f(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(f).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function d(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var p=c({__forward_ref__:c});function v(e){return e.__forward_ref__=v,e.toString=function(){return f(this())},e}function _(e){return m(e)?e():e}function m(e){return"function"==typeof e&&e.hasOwnProperty(p)&&e.__forward_ref__===v}var g=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(_wrapNativeSuper(Error));function y(e){return"string"==typeof e?e:null==e?"":String(e)}function k(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():y(e)}function b(e,t){var n=t?" in ".concat(t):"";throw new g("201","No provider for ".concat(k(e)," found").concat(n))}function C(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function w(e){return{providers:e.providers||[],imports:e.imports||[]}}function x(e){return E(e,O)||E(e,P)}function E(e,t){return e.hasOwnProperty(t)?e[t]:null}function S(e){return e&&(e.hasOwnProperty(T)||e.hasOwnProperty(I))?e[T]:null}var A,O=c({"\u0275prov":c}),T=c({"\u0275inj":c}),P=c({ngInjectableDef:c}),I=c({ngInjectorDef:c}),R=((R=R||{})[R.Default=0]="Default",R[R.Host=1]="Host",R[R.Self=2]="Self",R[R.SkipSelf=4]="SkipSelf",R[R.Optional=8]="Optional",R);function D(e){var t=A;return A=e,t}function M(e,t,n){var i=x(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&R.Optional?null:void 0!==t?t:void b(f(e),"Injector")}function L(e){return{toString:e}.toString()}var F=((F=F||{})[F.OnPush=0]="OnPush",F[F.Default=1]="Default",F),N=((N=N||{})[N.Emulated=0]="Emulated",N[N.None=2]="None",N[N.ShadowDom=3]="ShadowDom",N),U="undefined"!=typeof globalThis&&globalThis,B="undefined"!=typeof window&&window,Z="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,q=U||j||B||Z,V={},H=[],z=c({"\u0275cmp":c}),Y=c({"\u0275dir":c}),G=c({"\u0275pipe":c}),K=c({"\u0275mod":c}),W=c({"\u0275loc":c}),Q=c({"\u0275fac":c}),J=c({__NG_ELEMENT_ID__:c}),X=0;function $(e){return L(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===F.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||H,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||N.Emulated,id:"c",styles:e.styles||H,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=X++,n.inputs=oe(e.inputs,t),n.outputs=oe(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(ee)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(te)}:null,n})}function ee(e){return ue(e)||function(e){return e[Y]||null}(e)}function te(e){return function(e){return e[G]||null}(e)}var ne={};function ie(e){return L(function(){var t={type:e.type,bootstrap:e.bootstrap||H,declarations:e.declarations||H,imports:e.imports||H,exports:e.exports||H,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ne[e.id]=e.type),t})}function re(e,t){return L(function(){var n=le(e,!0);n.declarations=t.declarations||H,n.imports=t.imports||H,n.exports=t.exports||H})}function oe(e,t){if(null==e)return V;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var ae=$;function se(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ue(e){return e[z]||null}function le(e,t){var n=e[K]||null;if(!n&&!0===t)throw new Error("Type ".concat(f(e)," does not have '\u0275mod' property."));return n}function ce(e){return Array.isArray(e)&&"object"==typeof e[1]}function he(e){return Array.isArray(e)&&!0===e[1]}function fe(e){return 0!=(8&e.flags)}function de(e){return 2==(2&e.flags)}function pe(e){return 1==(1&e.flags)}function ve(e){return null!==e.template}function _e(e){return 0!=(512&e[2])}function me(e,t){return e.hasOwnProperty(Q)?e[Q]:null}var ge=function(){function e(t,n,i){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function ye(){return ke}function ke(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ce),be}function be(){var e=xe(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===V)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Ce(e,t,n,i){var r=xe(e)||function(e,t){return e[we]=t}(e,{previous:V,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],u=a[s];o[s]=new ge(u&&u.currentValue,t,a===V),e[i]=t}ye.ngInherit=!0;var we="__ngSimpleChanges__";function xe(e){return e[we]||null}var Ee,Se="http://www.w3.org/2000/svg";function Ae(e){Ee=e}function Oe(){return void 0!==Ee?Ee:"undefined"!=typeof document?document:void 0}function Te(e){return!!e.listen}var Pe={createRenderer:function(e,t){return Oe()}};function Ie(e){for(;Array.isArray(e);)e=e[0];return e}function Re(e,t){return Ie(t[e])}function De(e,t){return Ie(t[e.index])}function Me(e,t){return e.data[t]}function Le(e,t){return e[t]}function Fe(e,t){var n=t[e];return ce(n)?n:n[0]}function Ne(e){return 4==(4&e[2])}function Ue(e){return 128==(128&e[2])}function Be(e,t){return null==t?null:e[t]}function Ze(e){e[18]=0}function je(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var qe={lFrame:dt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ve(){return qe.bindingsEnabled}function He(){return qe.lFrame.lView}function ze(){return qe.lFrame.tView}function Ye(e){return qe.lFrame.contextLView=e,e[8]}function Ge(){for(var e=Ke();null!==e&&64===e.type;)e=e.parent;return e}function Ke(){return qe.lFrame.currentTNode}function We(e,t){var n=qe.lFrame;n.currentTNode=e,n.isParent=t}function Qe(){return qe.lFrame.isParent}function Je(){qe.lFrame.isParent=!1}function Xe(){return qe.isInCheckNoChangesMode}function $e(e){qe.isInCheckNoChangesMode=e}function et(){var e=qe.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function tt(){return qe.lFrame.bindingIndex}function nt(){return qe.lFrame.bindingIndex++}function it(e){var t=qe.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function rt(e,t){var n=qe.lFrame;n.bindingIndex=n.bindingRootIndex=e,ot(t)}function ot(e){qe.lFrame.currentDirectiveIndex=e}function at(e){var t=qe.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function st(){return qe.lFrame.currentQueryIndex}function ut(e){qe.lFrame.currentQueryIndex=e}function lt(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function ct(e,t,n){if(n&R.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&R.Host||(i=lt(r),null===i||(r=r[15],10&i.type))););if(null===i)return!1;t=i,e=r}var o=qe.lFrame=ft();return o.currentTNode=t,o.lView=e,!0}function ht(e){var t=ft(),n=e[1];qe.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ft(){var e=qe.lFrame,t=null===e?null:e.child;return null===t?dt(e):t}function dt(e){var t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function pt(){var e=qe.lFrame;return qe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var vt=pt;function _t(){var e=pt();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function mt(){return qe.lFrame.selectedIndex}function gt(e){qe.lFrame.selectedIndex=e}function yt(){var e=qe.lFrame;return Me(e.tView,e.selectedIndex)}function kt(){qe.lFrame.currentNamespace=Se}function bt(){qe.lFrame.currentNamespace=null}function Ct(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[s]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var Ot=function e(t,n,i){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Tt(e,t,n){for(var i=Te(e),r=0;rt){a=o-1;break}}}for(;o>16}(e),i=t;n>0;)i=i[15],n--;return i}var Nt=!0;function Ut(e){var t=Nt;return Nt=e,t}var Bt=0;function Zt(e,t){var n=qt(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,jt(i.data,e),jt(t,null),jt(i.blueprint,null));var r=Vt(e,t),o=e.injectorIndex;if(Mt(r))for(var a=Lt(r),s=Ft(r,t),u=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|u[a+l];return t[o+8]=r,o}function jt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function qt(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Vt(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Ht(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(i=n[J]),null==i&&(i=n[J]=Bt++);var r=255&i;t.data[e+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:R.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(J)?e[J]:void 0;return"number"==typeof t?t>=0?255&t:Wt:t}(n);if("function"==typeof o){if(!ct(t,e,i))return i&R.Host?zt(r,n,i):Yt(t,n,i,r);try{var a=o(i);if(null!=a||i&R.Optional)return a;b(n)}finally{vt()}}else if("number"==typeof o){var s=null,u=qt(e,t),l=-1,c=i&R.Host?t[16][6]:null;for((-1===u||i&R.SkipSelf)&&(-1!==(l=-1===u?Vt(e,t):t[u+8])&&en(i,!1)?(s=t[1],u=Lt(l),t=Ft(l,t)):u=-1);-1!==u;){var h=t[1];if($t(o,u,h.data)){var f=Qt(u,t,n,s,i,c);if(f!==Kt)return f}-1!==(l=t[u+8])&&en(i,t[1].data[u+8]===c)&&$t(o,u,t)?(s=h,u=Lt(l),t=Ft(l,t)):u=-1}}}return Yt(t,n,i,r)}var Kt={};function Wt(){return new tn(Ge(),He())}function Qt(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],u=Jt(s,a,n,null==i?de(s)&&Nt:i!=a&&0!=(3&s.type),r&R.Host&&o===s);return null!==u?Xt(t,a,u,s):Kt}function Jt(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,l=o>>20,c=r?s+l:e.directiveEnd,h=i?s:s+l;h=u&&f.type===n)return h}if(r){var d=a[u];if(d&&ve(d)&&d.type===n)return u}return null}function Xt(e,t,n,i){var r=e[n],o=t.data;if(function(e){return e instanceof Ot}(r)){var a=r;a.resolving&&function(e,t){throw new g("200","Circular dependency in DI detected for ".concat(e))}(k(o[n]));var s=Ut(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?D(a.injectImpl):null;ct(e,i,R.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,o=i.ngOnInit,a=i.ngDoCheck;if(r){var s=ke(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==u&&D(u),Ut(s),a.resolving=!1,vt()}}return r}function $t(e,t,n){return!!(n[t+(e>>5)]&1<=e.length?e.push(n):e.splice(t,0,n)}function pn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function vn(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function mn(e,t){var n=gn(e,t);if(n>=0)return e[1|n]}function gn(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var yn,kn={},bn="__NG_DI_FLAG__",Cn="ngTempTokenPath",wn=/\n/gm,xn="__source",En=c({provide:String,useValue:c});function Sn(e){var t=yn;return yn=e,t}function An(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.Default;if(void 0===yn)throw new Error("inject() must be called from an injection context");return null===yn?M(e,void 0,t):yn.get(e,t&R.Optional?null:void 0,t)}function On(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.Default;return(A||An)(_(e),t)}var Tn=On;function Pn(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=f(t);if(Array.isArray(t))r=t.map(f).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):f(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(wn,"\n "))}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[Cn]=null,e}var Mn,Ln,Fn=In(sn("Inject",function(e){return{token:e}}),-1),Nn=In(sn("Optional"),8),Un=In(sn("SkipSelf"),4);function Bn(e){var t;return(null===(t=function(){if(void 0===Mn&&(Mn=null,q.trustedTypes))try{Mn=q.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(e){}return Mn}())||void 0===t?void 0:t.createHTML(e))||e}function Zn(e){var t;return(null===(t=function(){if(void 0===Ln&&(Ln=null,q.trustedTypes))try{Ln=q.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(e){}return Ln}())||void 0===t?void 0:t.createHTML(e))||e}var jn=function(){function e(t){_classCallCheck(this,e),this.changingThisBreaksApplicationSecurity=t}return _createClass(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity," (see https://g.co/ng/security#xss)")}}]),e}(),qn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(jn),Vn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(jn),Hn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(jn),zn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(jn),Yn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(jn);function Gn(e){return e instanceof jn?e.changingThisBreaksApplicationSecurity:e}function Kn(e,t){var n=Wn(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function Wn(e){return e instanceof jn&&e.getTypeName()||null}function Qn(e){return new qn(e)}function Jn(e){return new Vn(e)}function Xn(e){return new Hn(e)}function $n(e){return new zn(e)}function ei(e){return new Yn(e)}var ti=function(){function e(t){_classCallCheck(this,e),this.inertDocumentHelper=t}return _createClass(e,[{key:"getInertBodyElement",value:function(e){e=""+e;try{var t=(new window.DOMParser).parseFromString(Bn(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}]),e}(),ni=function(){function e(t){if(_classCallCheck(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return _createClass(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Bn(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Bn(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();fi.hasOwnProperty(t)&&!li.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(ki(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),gi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yi=/([^\#-~ |!])/g;function ki(e){return e.replace(/&/g,"&").replace(gi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(yi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function bi(e,t){var n=null;try{ui=ui||function(e){var t=new ni(e);return function(){try{return!!(new window.DOMParser).parseFromString(Bn(""),"text/html")}catch(e){return!1}}()?new ti(t):t}(e);var i=t?String(t):"";n=ui.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=ui.getInertBodyElement(i)}while(i!==o);return Bn((new mi).sanitizeChildren(Ci(n)||n))}finally{if(n)for(var a=Ci(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Ci(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var wi=((wi=wi||{})[wi.NONE=0]="NONE",wi[wi.HTML=1]="HTML",wi[wi.STYLE=2]="STYLE",wi[wi.SCRIPT=3]="SCRIPT",wi[wi.URL=4]="URL",wi[wi.RESOURCE_URL=5]="RESOURCE_URL",wi);function xi(e){var t=Si();return t?Zn(t.sanitize(wi.HTML,e)||""):Kn(e,"HTML")?Zn(Gn(e)):bi(Oe(),y(e))}function Ei(e){var t=Si();return t?t.sanitize(wi.URL,e)||"":Kn(e,"URL")?Gn(e):oi(y(e))}function Si(){var e=He();return e&&e[12]}var Ai="__ngContext__";function Oi(e,t){e[Ai]=t}function Ti(e){var t=function(e){return e[Ai]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Pi(e){return e.ngOriginalError}function Ii(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&(e[n-1][4]=i[4]);var o=pn(e,10+t);!function(e,t){or(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);var a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function zi(e,t){if(!(256&t[2])){var n=t[11];Te(n)&&n.destroyNode&&or(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Yi(e[1],e);for(;t;){var n=null;if(ce(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)ce(t)&&Yi(t[1],t),t=t[3];null===t&&(t=e),ce(t)&&Yi(t[1],t),n=t&&t[4]}t=n}}(t)}}function Yi(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i=0?i[r=l]():i[r=-l].unsubscribe(),o+=2}else{var c=i[r=n[o+1]];n[o].call(c)}if(null!==i){for(var h=r+1;ho?"":r[c+1].toLowerCase();var f=8&i?h:null;if(f&&-1!==lr(f,l,0)||2&i&&l!==h){if(vr(i))return!1;a=!0}}}}else{if(!a&&!vr(i)&&!vr(u))return!1;if(a&&vr(u))continue;a=!1,i=u|1&i}}return vr(i)||a}function vr(e){return 0==(1&e)}function _r(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!vr(a)&&(t+=yr(o,r),r=""),i=a,o=o||!vr(i);n++}return""!==r&&(t+=yr(o,r)),t}var br={};function Cr(e){wr(ze(),He(),mt()+e,Xe())}function wr(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&wt(t,r,n)}else{var o=e.preOrderHooks;null!==o&&xt(t,o,0,n)}gt(n)}function xr(e,t){return e<<17|t<<2}function Er(e){return e>>17&32767}function Sr(e){return 2|e}function Ar(e){return(131068&e)>>2}function Or(e,t){return-131069&e|t<<2}function Tr(e){return 1|e}function Pr(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&wr(e,t,20,Xe()),n(i,r)}finally{gt(o)}}function Ur(e,t,n){if(fe(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:De,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(i,r,a)}}function Kr(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Wr(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Qr(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&ro(n)}}function ro(e){for(var t=Ui(e);null!==t;t=Bi(t))for(var n=10;n0&&ro(i)}var o=e[1].components;if(null!==o)for(var a=0;a0&&ro(s)}}function oo(e,t){var n=Fe(t,e),i=n[1];(function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:kn;if(t===kn){var n=new Error("NullInjectorError: No provider for ".concat(f(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),wo=new un("Set Injector scope."),xo={},Eo={};function So(){return void 0===ko&&(ko=new Co),ko}function Ao(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Oo(e,n,t||So(),i)}var Oo=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&fn(n,function(e){return r.processProvider(e,t,n)}),fn([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(bo,Io(void 0,this));var s=this.records.get(wo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:f(t))}return _createClass(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.Default;this.assertNotDestroyed();var i,r=Sn(this),o=D(void 0);try{if(!(n&R.SkipSelf)){var a=this.records.get(e);if(void 0===a){var s=("function"==typeof(i=e)||"object"==typeof i&&i instanceof un)&&x(e);a=s&&this.injectableDefInScope(s)?Io(To(e),xo):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(n&R.Self?So():this.parent).get(e,t=n&R.Optional&&t===kn?null:t)}catch(u){if("NullInjectorError"===u.name){if((u[Cn]=u[Cn]||[]).unshift(f(e)),r)throw u;return Dn(u,e,"R3InjectorError",this.source)}throw u}finally{D(o),Sn(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(f(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=_(e)))return!1;var r=S(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=S(o)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(a);try{fn(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,r=t.providers;fn(r,function(e){return i.processProvider(e,n,r||H)})},c=0;c0){var n=vn(t,"?");throw new Error("Can't resolve all parameters for ".concat(f(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[O]||e[P]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" 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 "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Po(e,t,n){var i;if(Do(e)){var r=_(e);return me(r)||To(r)}if(Ro(e))i=function(){return _(e.useValue)};else if(function(e){return!(!e||!e.useFactory)}(e))i=function(){return e.useFactory.apply(e,_toConsumableArray(Pn(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return On(_(e.useExisting))};else{var o=_(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return me(o)||To(o);i=function(){return _construct(o,_toConsumableArray(Pn(e.deps)))}}return i}function Io(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Ro(e){return null!==e&&"object"==typeof e&&En in e}function Do(e){return"function"==typeof e}var Mo=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=Ao(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},Lo=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Mo(e,t,""):Mo(e.providers,e.parent,e.name||"")}}]),e}();function Fo(e,t){Ct(Ti(e)[1],Ge())}function No(e){for(var t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0,i=[e];t;){var r=void 0;if(ve(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=Uo(e.inputs),o.declaredInputs=Uo(e.declaredInputs),o.outputs=Uo(e.outputs);var a=r.hostBindings;a&&jo(e,a);var s=r.viewQuery,u=r.contentQueries;if(s&&Bo(e,s),u&&Zo(e,u),h(e.inputs,r.inputs),h(e.declaredInputs,r.declaredInputs),h(e.outputs,r.outputs),ve(r)&&r.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var f=0;f=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Rt(r.hostAttrs,n=Rt(n,r.hostAttrs))}}(i)}function Uo(e){return e===V?{}:e===H?[]:e}function Bo(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function Zo(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function jo(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}Lo.THROW_IF_NOT_FOUND=kn,Lo.NULL=new Co,Lo.\u0275prov=C({token:Lo,providedIn:"any",factory:function(){return On(bo)}}),Lo.__NG_ELEMENT_ID__=-1;var qo=null;function Vo(){if(!qo){var e=q.Symbol;if(e&&e.iterator)qo=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:R.Default,n=He();return null===n?On(e,t):Gt(Ge(),n,_(e),t)}function ea(e,t,n){var i=He();return Go(i,nt(),t)&&zr(ze(),yt(),i,e,t,i[11],n,!1),ea}function ta(e,t,n,i,r){var o=r?"class":"style";mo(e,n,t.inputs[o],o,i)}function na(e,t,n,i){var r=He(),o=ze(),a=20+e,s=r[11],u=r[a]=qi(s,t,qe.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,u=Rr(t,e,2,r,Be(s,o));return Yr(t,n,u,Be(s,a)),null!==u.attrs&&yo(u,u.attrs,!1),null!==u.mergedAttrs&&yo(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,o,r,0,t,n,i):o.data[a];We(l,!0);var c=l.mergedAttrs;null!==c&&Tt(s,u,c);var h=l.classes;null!==h&&ur(s,u,h);var f=l.styles;null!==f&&sr(s,u,f),64!=(64&l.flags)&&er(o,r,u,l),0===qe.lFrame.elementDepthCount&&Oi(u,r),qe.lFrame.elementDepthCount++,pe(l)&&(Br(o,r,l),Ur(o,l,r)),null!==i&&Zr(r,l)}function ia(){var e=Ge();Qe()?Je():We(e=e.parent,!1);var t=e;qe.lFrame.elementDepthCount--;var n=ze();n.firstCreatePass&&(Ct(n,e),fe(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&ta(n,t,He(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&ta(n,t,He(),t.stylesWithoutHost,!1)}function ra(e,t,n,i){na(e,t,n,i),ia()}function oa(e,t,n){var i=He(),r=ze(),o=e+20,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=Be(o,i),s=Rr(t,e,8,"ng-container",a);return null!==a&&yo(s,a,!0),Yr(t,n,s,Be(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,r,i,t,n):r.data[o];We(a,!0);var s=i[o]=i[11].createComment("");er(r,i,s,a),Oi(s,i),pe(a)&&(Br(r,i,a),Ur(r,a,i)),null!=n&&Zr(i,a)}function aa(){var e=Ge(),t=ze();Qe()?Je():We(e=e.parent,!1),t.firstCreatePass&&(Ct(t,e),fe(e)&&t.queries.elementEnd(e))}function sa(){return He()}function ua(e){return!!e&&"function"==typeof e.then}function la(e){return!!e&&"function"==typeof e.subscribe}var ca=la;function ha(e,t,n,i){var r=He(),o=ze(),a=Ge();return da(o,r,r[11],a,e,t,!!n,i),ha}function fa(e,t){var n=Ge(),i=He(),r=ze();return da(r,i,vo(at(r.data),n,i),n,e,t,!1),fa}function da(e,t,n,i,r,o,a,s){var u=pe(i),l=e.firstCreatePass&&po(e),c=t[8],h=fo(t),f=!0;if(3&i.type||s){var d=De(i,t),p=s?s(d):d,v=h.length,_=s?function(e){return s(Ie(e[i.index]))}:i.index;if(Te(n)){var m=null;if(!s&&u&&(m=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,f=!1;else{o=va(i,t,c,o,!1);var g=n.listen(p,r,o);h.push(o,g),l&&l.push(r,_,v,v+1)}}else o=va(i,t,c,o,!0),p.addEventListener(r,o,a),h.push(o),l&&l.push(r,_,v,a)}else o=va(i,t,c,o,!1);var y,k=i.outputs;if(f&&null!==k&&(y=k[r])){var b=y.length;if(b)for(var C=0;C0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(qe.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,qe.lFrame.contextLView))[8]}(e)}function ma(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=He(),r=ze(),o=Rr(r,20+e,16,null,n||null);null===o.projection&&(o.projection=t),Je(),64!=(64&o.flags)&&function(e,t,n){ar(t[11],0,t,n,Gi(e,n,t),Xi(n.parent||t[6],n,t))}(r,i,o)}function ka(e,t,n){return ba(e,"",t,"",n),ka}function ba(e,t,n,i,r){var o=He(),a=Qo(o,t,n,i);return a!==br&&zr(ze(),yt(),o,e,a,o[11],r,!1),ba}function Ca(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?Er(o):Ar(o),u=!1;0!==s&&(!1===u||a);){var l=e[s+1];wa(e[s],t)&&(u=!0,e[s+1]=i?Tr(l):Sr(l)),s=i?Er(l):Ar(l)}u&&(e[n+1]=i?Sr(o):Tr(o))}function wa(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&gn(e,t)>=0}var xa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ea(e){return e.substring(xa.key,xa.keyEnd)}function Sa(e,t){var n=xa.textEnd;return n===t?-1:(t=xa.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,xa.key=t,n),Aa(e,t,n))}function Aa(e,t,n){for(;t=0;n=Sa(t,n))_n(e,Ea(t),!0)}function Ra(e,t,n,i){var r=He(),o=ze(),a=it(2);o.firstUpdatePass&&La(o,e,a,i),t!==br&&Go(r,a,t)&&Ua(o,o.data[mt()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=f(Gn(e)))),e}(t,n),i,a)}function Da(e,t,n,i){var r=ze(),o=it(2);r.firstUpdatePass&&La(r,null,o,i);var a=He();if(n!==br&&Go(a,o,n)){var s=r.data[mt()];if(ja(s,i)&&!Ma(r,o)){var u=i?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(n=d(u,n||"")),ta(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===br&&(r=H);for(var u=0,l=0,c=0=e.expandoStartIndex}function La(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[mt()],a=Ma(e,n);ja(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=at(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Na(n=Fa(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=Fa(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Ar(i))return e[Er(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[Er(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Na(s=Fa(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i,r=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else l=n;if(r)if(0!==u){var f=Er(e[s+1]);e[i+1]=xr(f,s),0!==f&&(e[f+1]=Or(e[f+1],i)),e[s+1]=function(e,t){return 131071&e|t<<17}(e[s+1],i)}else e[i+1]=xr(s,0),0!==s&&(e[s+1]=Or(e[s+1],i)),s=i;else e[i+1]=xr(u,0),0===s?s=i:e[u+1]=Or(e[u+1],i),u=i;c&&(e[i+1]=Sr(e[i+1])),Ca(e,l,i,!0),Ca(e,l,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&gn(o,t)>=0&&(n[i+1]=Tr(n[i+1]))}(t,l,e,i,o),a=xr(s,u),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function Fa(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[r],l=Array.isArray(u),c=l?u[1]:u,h=null===c,f=n[r+1];f===br&&(f=h?H:void 0);var d=h?mn(f,i):c===i?f:void 0;if(l&&!Za(d)&&(d=mn(u,i)),Za(d)&&(a=d,s))return a;var p=e[r+1];r=s?Er(p):Ar(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(a=mn(v,i))}return a}function Za(e){return void 0!==e}function ja(e,t){return 0!=(e.flags&(t?16:32))}function qa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=He(),i=ze(),r=e+20,o=i.firstCreatePass?Rr(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return Te(e)?e.createText(t):e.createTextNode(t)}(n[11],t);er(i,n,a,o),We(o,!1)}function Va(e){return Ha("",e,""),Va}function Ha(e,t,n){var i=He(),r=Qo(i,e,t,n);return r!==br&&go(i,mt(),r),Ha}function za(e,t,n,i,r){var o=He(),a=function(e,t,n,i,r,o){var a=Ko(e,tt(),n,r);return it(2),a?t+y(n)+i+y(r)+o:br}(o,e,t,n,i,r);return a!==br&&go(o,mt(),a),za}function Ya(e,t,n,i,r,o,a){var s=He(),u=function(e,t,n,i,r,o,a,s){var u=function(e,t,n,i,r){var o=Ko(e,t,n,i);return Go(e,t+2,r)||o}(e,tt(),n,r,a);return it(3),u?t+y(n)+i+y(r)+o+y(a)+s:br}(s,e,t,n,i,r,o,a);return u!==br&&go(s,mt(),u),Ya}function Ga(e,t,n){Da(_n,Ia,Qo(He(),e,t,n),!0)}function Ka(e,t,n){var i=He();return Go(i,nt(),t)&&zr(ze(),yt(),i,e,t,i[11],n,!0),Ka}function Wa(e,t,n){var i=He();if(Go(i,nt(),t)){var r=ze(),o=yt();zr(r,o,i,e,t,vo(at(r.data),o,i),n,!0)}return Wa}var Qa=void 0,Ja=["en",[["a","p"],["AM","PM"],Qa],[["AM","PM"],Qa,Qa],[["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"]],Qa,[["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"]],Qa,[["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}",Qa,"{1} 'at' {0}",Qa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Xa={};function $a(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=ts(t);if(n)return n;var i=t.split("-")[0];if(n=ts(i))return n;if("en"===i)return Ja;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function es(e){return $a(e)[ns.PluralCase]}function ts(e){return e in Xa||(Xa[e]=q.ng&&q.ng.common&&q.ng.common.locales&&q.ng.common.locales[e]),Xa[e]}var ns=((ns=ns||{})[ns.LocaleId=0]="LocaleId",ns[ns.DayPeriodsFormat=1]="DayPeriodsFormat",ns[ns.DayPeriodsStandalone=2]="DayPeriodsStandalone",ns[ns.DaysFormat=3]="DaysFormat",ns[ns.DaysStandalone=4]="DaysStandalone",ns[ns.MonthsFormat=5]="MonthsFormat",ns[ns.MonthsStandalone=6]="MonthsStandalone",ns[ns.Eras=7]="Eras",ns[ns.FirstDayOfWeek=8]="FirstDayOfWeek",ns[ns.WeekendRange=9]="WeekendRange",ns[ns.DateFormat=10]="DateFormat",ns[ns.TimeFormat=11]="TimeFormat",ns[ns.DateTimeFormat=12]="DateTimeFormat",ns[ns.NumberSymbols=13]="NumberSymbols",ns[ns.NumberFormats=14]="NumberFormats",ns[ns.CurrencyCode=15]="CurrencyCode",ns[ns.CurrencySymbol=16]="CurrencySymbol",ns[ns.CurrencyName=17]="CurrencyName",ns[ns.Currencies=18]="Currencies",ns[ns.Directionality=19]="Directionality",ns[ns.PluralCase=20]="PluralCase",ns[ns.ExtraData=21]="ExtraData",ns),is="en-US";function rs(e){(function(e,t){null==e&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(t,e)})(e,"Expected localeId to be defined"),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function os(e,t,n,i,r){if(e=_(e),Array.isArray(e))for(var o=0;o>20;if(Do(e)||!e.multi){var p=new Ot(l,r,$o),v=us(u,t,r?h:h+d,f);-1===v?(Ht(Zt(c,s),a,u),as(a,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var m=us(u,t,h+d,f),g=us(u,t,h,h+d),y=m>=0&&n[m],k=g>=0&&n[g];if(r&&!k||!r&&!y){Ht(Zt(c,s),a,u);var b=function(e,t,n,i,r){var o=new Ot(e,n,$o);return o.multi=[],o.index=t,o.componentProviders=0,ss(o,r,i&&!n),o}(r?cs:ls,n.length,r,i,l);!r&&k&&(n[g].providerFactory=b),as(a,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(b),s.push(b)}else as(a,e,m>-1?m:g,ss(n[r?g:m],l,!r&&i));!r&&i&&k&&n[g].componentProviders++}}}function as(e,t,n,i){var r=Do(t);if(r||function(e){return!!e.useClass}(t)){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function ss(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function us(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=ze();if(i.firstCreatePass){var r=ve(e);os(n,i.data,i.blueprint,r,!0),os(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var ds=function e(){_classCallCheck(this,e)},ps=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(f(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),vs=function e(){_classCallCheck(this,e)};function _s(){}function ms(e,t){return new ys(De(e,t))}vs.NULL=new ps;var gs,ys=((gs=function e(t){_classCallCheck(this,e),this.nativeElement=t}).__NG_ELEMENT_ID__=function(){return ms(Ge(),He())},gs);function ks(e){return e instanceof ys?e.nativeElement:e}var bs=function e(){_classCallCheck(this,e)},Cs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return ws()},e}(),ws=function(){var e=He(),t=Fe(Ge().index,e);return function(e){return e[11]}(ce(t)?t:e)},xs=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=C({token:e,providedIn:"root",factory:function(){return null}}),e}(),Es=function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Ss=new Es("12.2.4"),As=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return zo(e)}},{key:"create",value:function(e){return new Ts(e)}}]),e}(),Os=function(e,t){return t},Ts=function(){function e(t){_classCallCheck(this,e),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=t||Os}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&i.push(Ie(o)),he(o))for(var a=10;a-1&&(Hi(e,n),pn(t,n))}this._attachedToViewContainer=!1}zi(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Vr(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){so(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){uo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){$e(!0);try{uo(e,t,n)}finally{$e(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,or(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Vs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._view=e,i}return _createClass(n,[{key:"detectChanges",value:function(){lo(this._view)}},{key:"checkNoChanges",value:function(){!function(e){$e(!0);try{lo(e)}finally{$e(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(qs),Hs=function(e){return function(e,t,n){if(de(e)&&!n){var i=Fe(e.index,t);return new qs(i,i)}return 47&e.type?new qs(t[16],t):null}(Ge(),He(),16==(16&e))},zs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Hs,e}(),Ys=[new Ms],Gs=new Us([new As]),Ks=new Zs(Ys),Ws=function(){return Xs(Ge(),He())},Qs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Ws,e}(),Js=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return _createClass(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Ir(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Mr(t,n,e),new qs(n)}}]),n}(Qs);function Xs(e,t){return 4&e.type?new Js(t,e,ms(e,t)):null}var $s=function e(){_classCallCheck(this,e)},eu=function e(){_classCallCheck(this,e)},tu=function(){return au(Ge(),He())},nu=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=tu,e}(),iu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return _createClass(n,[{key:"element",get:function(){return ms(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new tn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=Vt(this._hostTNode,this._hostLView);if(Mt(e)){var t=Ft(e,this._hostLView),n=Lt(e);return new tn(t[1].data[n+8],t)}return new tn(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=ru(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get($s,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(he(i[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=i[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var u=this._adjustIndex(t),l=this._lContainer;!function(e,t,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(nu);function ru(e){return e[8]}function ou(e){return e[8]||(e[8]=[])}function au(e,t){var n,i=t[e.index];if(he(i))n=i;else{var r;if(8&e.type)r=Ie(i);else{var o=t[11];r=o.createComment("");var a=De(e,t);Ki(o,Ji(o,a),r,function(e,t){return Te(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=no(i,t,r,e),ao(t,n)}return new iu(n,e,t)}var su={},uu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).ngModule=e,i}return _createClass(n,[{key:"resolveComponentFactory",value:function(e){var t=ue(e);return new hu(t,this.ngModule)}}]),n}(vs);function lu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var cu=new un("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Di}}),hu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(kr).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return _createClass(n,[{key:"inputs",get:function(){return lu(this.componentDef.inputs)}},{key:"outputs",get:function(){return lu(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,su,r);return o!==su||i===su?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(bs,Pe),u=a.get(xs,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Te(e))return e.selectRootElement(t,n===N.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(l,n,this.componentDef.encapsulation):qi(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?Se:"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:Di,clean:ho,playerHandler:null,flags:0},p=qr(0,null,null,1,0,null,null,null,null,null),v=Ir(null,p,d,f,null,null,s,l,u,a);ht(v);try{var _=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=Rr(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(yo(s,u,!0),null!==e&&(Tt(r,e,u),null!==s.classes&&ur(r,e,s.classes),null!==s.styles&&sr(r,e,s.styles)));var l=i.createRenderer(e,t),c=Ir(n,jr(t),null,t.onPush?64:16,n[20],s,i,l,null,null);return a.firstCreatePass&&(Ht(Zt(s,n),a,t.type),Wr(a,s),Jr(s,n.length,1)),ao(n,c),n[20]=c}(h,this.componentDef,v,s,l);if(h)if(n)Tt(l,h,["ng-version",Ss.full]);else{var m=function(e){for(var t=[],n=[],i=1,r=2;i0&&ur(l,h,y.join(" "))}if(o=Me(p,20),void 0!==t)for(var k=o.projection=[],b=0;b1&&void 0!==arguments[1]?arguments[1]:Lo.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.Default;return e===Lo||e===$s||e===bo?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}($s),vu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).moduleType=e,null!==le(e)&&function(e){var t=new Set;!function e(n){var i=le(n,!0),r=i.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(f(t)," vs ").concat(f(t.name)))}(r,du.get(r),n),du.set(r,n));var o,a=_createForOfIteratorHelper(Mi(i.imports));try{for(a.s();!(o=a.n()).done;){var s=o.value;t.has(s)||(t.add(s),e(s))}}catch(u){a.e(u)}finally{a.f()}}(e)}(e),i}return _createClass(n,[{key:"create",value:function(e){return new pu(this.moduleType,e)}}]),n}(eu);function _u(e,t,n,i){return mu(He(),et(),e,t,n,i)}function mu(e,t,n,i,r,o){var a=t+n;return Go(e,a,r)?function(e,t,n){return e[t]=n}(e,a+1,o?i.call(o,r):i(r)):function(e,t){var n=e[t];return n===br?void 0:n}(e,a+1)}function gu(e,t){var n,i=ze(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new g("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=me(n.type)),a=D($o);try{var s=Ut(!1),u=o();return Ut(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,He(),r,u),u}finally{D(a)}}function yu(e,t,n){var i=e+20,r=He(),o=Le(r,i);return function(e,t){return Ho.isWrapped(t)&&(t=Ho.unwrap(t),e[tt()]=br),t}(r,function(e,t){return e[1].data[t].pure}(r,i)?mu(r,et(),t,o.transform,n,o):o.transform(n))}function ku(e){return function(t){setTimeout(e,void 0,t)}}var bu=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=i,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var o,a,s,u=e,l=t||function(){return null},c=i;if(e&&"object"==typeof e){var h=e;u=null===(o=h.next)||void 0===o?void 0:o.bind(h),l=null===(a=h.error)||void 0===a?void 0:a.bind(h),c=null===(s=h.complete)||void 0===s?void 0:s.bind(h)}this.__isAsync&&(l=ku(l),u&&(u=ku(u)),c&&(c=ku(c)));var f=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,{next:u,error:l,complete:c});return e instanceof r.w&&e.add(f),f}}]),n}(i.xQ);function Cu(){return this._results[Vo()]()}var wu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classCallCheck(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Vo(),i=e.prototype;i[n]||(i[n]=Cu)}return _createClass(e,[{key:"changes",get:function(){return this._changes||(this._changes=new bu)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){var n=this;n.dirty=!1;var i=hn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,e),this.predicate=t,this.flags=n,this.read=i},Au=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(a[s/2]);else{for(var l=o[s+1],c=t[-u],h=10;h0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!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,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(On(sl))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}(),vl=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,gl.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return gl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function _l(e){gl=e}var ml,gl=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),yl=!0,kl=!1;function bl(){return kl=!0,yl}function Cl(){if(kl)throw new Error("Cannot enable prod mode after platform setup.");yl=!1}var wl=new un("AllowMultipleToken"),xl=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function El(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new un(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Sl();if(!o||o.injector.get(wl,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:wo,useValue:"platform"});!function(e){if(ml&&!ml.destroyed&&!ml.injector.get(wl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ml=e.get(Al);var t=e.get(zu,null);t&&t.forEach(function(e){return e()})}(Lo.create({providers:a,name:i}))}return function(e){var t=Sl();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Sl(){return ml&&!ml.destroyed?ml:null}var Al=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n=this,i=function(e,t){return"noop"===e?new dl:("zone.js"===e?void 0:e)||new sl({enableLongStackTrace:bl(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)})}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),r=[{provide:sl,useValue:i}];return i.run(function(){var o=Lo.create({providers:r,parent:n.injector,name:e.moduleType.name}),a=e.create(o),s=a.injector.get(Ri,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(function(){var e=i.onError.subscribe({next:function(e){s.handleError(e)}});a.onDestroy(function(){Pl(n._modules,a),e.unsubscribe()})}),function(e,i,r){try{var o=((s=a.injector.get(ju)).runInitializers(),s.donePromise.then(function(){return rs(a.injector.get(Wu,is)||is),n._moduleDoBootstrap(a),a}));return ua(o)?o.catch(function(t){throw i.runOutsideAngular(function(){return e.handleError(t)}),t}):o}catch(t){throw i.runOutsideAngular(function(){return e.handleError(t)}),t}var s}(s,i)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Ol({},n);return function(e,t,n){var i=new vu(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Tl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(f(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(On(Lo))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Ol(e,t){return Array.isArray(t)?t.reduce(Ol,e):Object.assign(Object.assign({},e),t)}var Tl=function(){var e=function(){function e(t,n,i,r,c){var h=this;_classCallCheck(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){h._zone.run(function(){h.tick()})}});var f=new o.y(function(e){h._stable=h._zone.isStable&&!h._zone.hasPendingMacrotasks&&!h._zone.hasPendingMicrotasks,h._zone.runOutsideAngular(function(){e.next(h._stable),e.complete()})}),d=new o.y(function(e){var t;h._zone.runOutsideAngular(function(){t=h._zone.onStable.subscribe(function(){sl.assertNotInAngularZone(),al(function(){!h._stable&&!h._zone.hasPendingMacrotasks&&!h._zone.hasPendingMicrotasks&&(h._stable=!0,e.next(!0))})})});var n=h._zone.onUnstable.subscribe(function(){sl.assertInAngularZone(),h._stable&&(h._stable=!1,h._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=(0,a.T)(f,d.pipe(function(e){return(0,u.x)()(function(e,t){return function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,s.N);return i.source=t,i.subjectFactory=n,i}}(l)(e))}))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof ds?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=function(e){return e.isBoundToModule}(n)?void 0:this._injector.get($s),o=n.create(Lo.NULL,[],t||n.selector,r),a=o.location.nativeElement,s=o.injector.get(pl,null),u=s&&o.injector.get(vl);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),Pl(i.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;){var i;t.value.detectChanges()}}catch(r){n.e(r)}finally{n.f()}}catch(i){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(i)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Pl(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Gu,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(On(sl),On(Lo),On(Ri),On(vs),On(ju))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Pl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Il=function e(){_classCallCheck(this,e)},Rl=function e(){_classCallCheck(this,e)},Dl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Ml=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||Dl}return _createClass(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=_slicedToArray(e.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n(8255)(r).then(function(e){return e[o]}).then(function(e){return Ll(e,r,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),i=t[0],r=t[1],o="NgFactory";return void 0===r&&(r="default",o=""),n(8255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+o]}).then(function(e){return Ll(e,i,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(On(rl),On(Rl,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Ll(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Fl=function(e){return null},Nl=El(null,"core",[{provide:Yu,useValue:"unknown"},{provide:Al,deps:[Lo]},{provide:vl,deps:[]},{provide:Ku,deps:[]}]),Ul=[{provide:Tl,useClass:Tl,deps:[sl,Lo,Ri,vs,ju]},{provide:cu,deps:[sl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:ju,useClass:ju,deps:[[new Nn,Zu]]},{provide:rl,useClass:rl,deps:[]},Vu,{provide:Us,useFactory:function(){return Gs},deps:[]},{provide:Zs,useFactory:function(){return Ks},deps:[]},{provide:Wu,useFactory:function(e){return rs(e=e||"undefined"!=typeof $localize&&$localize.locale||is),e},deps:[[new Fn(Wu),new Nn,new Un]]},{provide:Qu,useValue:"USD"}],Bl=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)(On(Tl))},e.\u0275mod=ie({type:e}),e.\u0275inj=w({providers:Ul}),e}()},665:function(e,t,n){"use strict";n.d(t,{Zs:function(){return ce},sg:function(){return ae},u5:function(){return fe},Cf:function(){return h},JU:function(){return c},a5:function(){return P},JL:function(){return I},F:function(){return ne},_Y:function(){return ie}});var i=n(3018),r=(n(8583),n(7574)),o=n(9796),a=n(8002),s=n(1555),u=n(4402);function l(e,t){return new r.y(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var l=(0,u.D)(e[s]),c=!1;n.add(l.subscribe({next:function(e){c||(c=!0,a++),r[s]=e},error:function(e){return n.error(e)},complete:function(){(++o===i||!c)&&(a===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},l=0;l0){var r=i.filter(function(e){return e!==t.validator});r.length!==i.length&&(n=!0,e.setValidators(r))}}if(null!==t.asyncValidator){var o=C(e);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(e){return e!==t.asyncValidator});a.length!==o.length&&(n=!0,e.setAsyncValidators(a))}}}var s=function(){};return M(t._rawValidators,s),M(t._rawAsyncValidators,s),n}function N(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function U(e,t){L(e,t)}function B(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Z(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var j="VALID",q="INVALID",V="PENDING",H="DISABLED";function z(e){return(W(e)?e.validators:e)||null}function Y(e){return Array.isArray(e)?g(e):e||null}function G(e,t){return(W(t)?t.asyncValidators:e)||null}function K(e){return Array.isArray(e)?y(e):e||null}function W(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Q=function(){function e(t,n){_classCallCheck(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Y(this._rawValidators),this._composedAsyncValidatorFn=K(this._rawAsyncValidators)}return _createClass(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===j}},{key:"invalid",get:function(){return this.status===q}},{key:"pending",get:function(){return this.status==V}},{key:"disabled",get:function(){return this.status===H}},{key:"enabled",get:function(){return this.status!==H}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Y(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=K(e)}},{key:"addValidators",value:function(e){this.setValidators(E(e,this._rawValidators))}},{key:"addAsyncValidators",value:function(e){this.setAsyncValidators(E(e,this._rawAsyncValidators))}},{key:"removeValidators",value:function(e){this.setValidators(S(e,this._rawValidators))}},{key:"removeAsyncValidators",value:function(e){this.setAsyncValidators(S(e,this._rawAsyncValidators))}},{key:"hasValidator",value:function(e){return x(this._rawValidators,e)}},{key:"hasAsyncValidator",value:function(e){return x(this._rawAsyncValidators,e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=V,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=H,this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=j,this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===j||this.status===V)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?H:j}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=V,this._hasOwnPendingAsyncValidator=!0;var n=p(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;var i=e;return t.forEach(function(e){i=i instanceof X?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof $&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?H:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(V)?V:this._anyControlsHaveStatus(q)?q:j}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){W(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),J=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this,z(r),G(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),e}return _createClass(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){Z(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){Z(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(Q),X=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,z(i),G(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return _createClass(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof J?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(Q),$=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,z(i),G(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return _createClass(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof J?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(Q),ee={provide:T,useExisting:(0,i.Gpc)(function(){return ne})},te=Promise.resolve(null),ne=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new i.vpe,o.form=new X({},g(e),y(r)),o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),R(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Z(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path),i=new X({});U(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;te.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,B(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.Y36(h,10),i.Y36(f,10))},e.\u0275dir=i.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([ee]),i.qOj]}),e}(),ie=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),re=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({}),e}(),oe={provide:T,useExisting:(0,i.Gpc)(function(){return ae})},ae=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this)).validators=e,o.asyncValidators=r,o.submitted=!1,o._onCollectionChange=function(){return o._updateDomValue()},o.directives=[],o.form=null,o.ngSubmit=new i.vpe,o._setValidators(e),o._setAsyncValidators(r),o}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(F(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return R(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){D(e.control||null,e,!1),Z(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,B(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(D(n||null,t),i instanceof J&&(R(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);U(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return F(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){L(this.form,this),this._oldForm&&F(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.Y36(h,10),i.Y36(f,10))},e.\u0275dir=i.lG2({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([oe]),i.qOj,i.TTD]}),e}(),se={provide:h,useExisting:(0,i.Gpc)(function(){return le}),multi:!0},ue={provide:h,useExisting:(0,i.Gpc)(function(){return ce}),multi:!0},le=function(){var e=function(){function e(){_classCallCheck(this,e),this._required=!1}return _createClass(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?function(e){return function(e){return null==e||0===e.length}(e.value)?{required:!0}:null}(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.lG2({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t.required?"":null)},inputs:{required:"required"},features:[i._Bn([se])]}),e}(),ce=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"validate",value:function(e){return this.required?function(e){return!0===e.value?null:{required:!0}}(e):null}}]),n}(le);return t.\u0275fac=function(n){return(e||(e=i.n5z(t)))(n||t)},t.\u0275dir=i.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t.required?"":null)},features:[i._Bn([ue]),i.qOj]}),t}(),he=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[re]]}),e}(),fe=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[he]}),e}()},1095:function(e,t,n){"use strict";n.d(t,{zs:function(){return p},lW:function(){return d},ot:function(){return v}});var i,r=n(2458),o=n(6237),a=n(3018),s=n(9238),u=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],f=(0,r.pj)((0,r.Id)((0,r.Kr)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}()))),d=((i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;_classCallCheck(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=_createForOfIteratorHelper(h);try{for(s.s();!(a=s.n()).done;){var u=a.value;o._hasHostAttributes(u)&&o._getHostElement().classList.add(u)}}catch(l){s.e(l)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return function(e){_inherits(i,e);var n=_createSuper(i);function i(){var e;_classCallCheck(this,i);for(var r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},A),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,u=t-r.top,l=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-a+"px",c.style.top=u-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(l,"ms"),this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var h=new S(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,!i.persistent&&(!e||!n._isPointerDown)&&h.fadeOut()},l),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},A),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=(0,u.fI)(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(T))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(P),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=(0,r.X6)(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,O)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(T.forEach(function(t){e._triggerElement.removeEventListener(t,e,O)}),this._pointerUpEventsRegistered&&P.forEach(function(t){e._triggerElement.removeEventListener(t,e,O)}))}}]),e}(),R=new i.OlP("mat-ripple-global-options"),D=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new I(this,n,t,i)}return _createClass(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(c.t4),i.Y36(R,8),i.Y36(h.Qb,8))},e.\u0275dir=i.lG2({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),M=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[y,c.ud],y]}),e}(),L=function(){var e=function e(t){_classCallCheck(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(i.Y36(h.Qb,8))},e.\u0275cmp=i.Xpm({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),F=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[y]]}),e}(),N=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),U=k(function(){return function e(){_classCallCheck(this,e)}}()),B=0,Z=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,r;return _classCallCheck(this,n),(i=t.call(this))._labelId="mat-optgroup-label-"+B++,i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(U);return e.\u0275fac=function(t){return new(t||e)(i.Y36(N,8))},e.\u0275dir=i.lG2({type:e,inputs:{label:"label"},features:[i.qOj]}),e}(),j=new i.OlP("MatOptgroup"),q=0,V=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,e),this.source=t,this.isUserInput=n},H=function(){var e=function(){function e(t,n,r,o){_classCallCheck(this,e),this._element=t,this._changeDetectorRef=n,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+q++,this.onSelectionChange=new i.vpe,this._stateChanges=new l.xQ}return _createClass(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=(0,u.Ig)(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){(e.keyCode===f.K5||e.keyCode===f.L_)&&!(0,f.Vb)(e)&&(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new V(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(void 0),i.Y36(Z))},e.\u0275dir=i.lG2({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),z=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){return _classCallCheck(this,n),t.call(this,e,i,r,o)}return n}(H);return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(N,8),i.Y36(j,8))},e.\u0275cmp=i.Xpm({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:_,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,d,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,p,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[s.O5,D,L],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function Y(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;an+i?Math.max(0,e-i+t):n}var K=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[M,s.ez,y,F]]}),e}()},2238:function(e,t,n){"use strict";n.d(t,{WI:function(){return O},uw:function(){return D},H8:function(){return U},ZT:function(){return L},xY:function(){return N},Is:function(){return Z},so:function(){return S},uh:function(){return F}});var i=n(625),r=n(7636),o=n(3018),a=n(2458),s=n(946),u=n(8583),l=n(9765),c=n(1439),h=n(5917),f=n(5435),d=n(5257),p=n(9761),v=n(521),_=n(7238),m=n(6461),g=n(9238);function y(e,t){}var k,b=function e(){_classCallCheck(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},C={dialogContainer:(0,_.X$)("dialogContainer",[(0,_.SB)("void, exit",(0,_.oB)({opacity:0,transform:"scale(0.7)"})),(0,_.SB)("enter",(0,_.oB)({transform:"none"})),(0,_.eR)("* => enter",(0,_.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,_.oB)({transform:"none",opacity:1}))),(0,_.eR)("* => void, * => exit",(0,_.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,_.oB)({opacity:0})))])},w=((k=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,s,u){var l;return _classCallCheck(this,n),(l=t.call(this))._elementRef=e,l._focusTrapFactory=i,l._changeDetectorRef=r,l._config=s,l._focusMonitor=u,l._animationStateChanged=new o.vpe,l._elementFocusedBeforeDialogWasOpened=null,l._closeInteractionType=null,l.attachDomPortal=function(e){return l._portalOutlet.hasAttached(),l._portalOutlet.attachDomPortal(e)},l._ariaLabelledBy=s.ariaLabelledBy||null,l._document=a,l}return _createClass(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=(0,v.ht)(),n=this._elementRef.nativeElement;(!t||t===this._document.body||t===n||n.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,v.ht)())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=(0,v.ht)();return e===t||e.contains(t)}}]),n}(r.en)).\u0275fac=function(e){return new(e||k)(o.Y36(o.SBq),o.Y36(g.qV),o.Y36(o.sBO),o.Y36(u.K0,8),o.Y36(b),o.Y36(g.tE))},k.\u0275dir=o.lG2({type:k,viewQuery:function(e,t){var n;1&e&&o.Gf(r.Pl,7),2&e&&o.iGM(n=o.CRH())&&(t._portalOutlet=n.first)},features:[o.qOj]}),k),x=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._state="enter",e}return _createClass(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(w);return t.\u0275fac=function(n){return(e||(e=o.n5z(t)))(n||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&o.WFA("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(o.Ikx("id",t._id),o.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),o.d8E("@dialogContainer",t._state))},features:[o.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&o.YNc(0,y,0,0,"ng-template",0)},directives:[r.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[C.dialogContainer]}}),t}(),E=0,S=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+E++;_classCallCheck(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new l.xQ,this._afterClosed=new l.xQ,this._beforeClosed=new l.xQ,this._state=0,n._id=r,n._animationStateChanged.pipe((0,f.h)(function(e){return"opened"===e.state}),(0,d.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe((0,f.h)(function(e){return"closed"===e.state}),(0,d.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe((0,f.h)(function(e){return e.keyCode===m.hY&&!i.disableClose&&!(0,m.Vb)(e)})).subscribe(function(e){e.preventDefault(),A(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():A(i,"mouse")})}return _createClass(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe((0,f.h)(function(e){return"closing"===e.state}),(0,d.q)(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function A(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var O=new o.OlP("MatDialogData"),T=new o.OlP("mat-dialog-default-options"),P=new o.OlP("mat-dialog-scroll-strategy"),I={provide:P,deps:[i.aV],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},R=function(){var e=function(){function e(t,n,i,r,o,a,s,u,h){var f=this;_classCallCheck(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=u,this._dialogDataToken=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.xQ,this._afterOpenedAtThisLevel=new l.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,c.P)(function(){return f.openDialogs.length?f._getAfterAllClosed():f._getAfterAllClosed().pipe((0,p.O)(void 0))}),this._scrollStrategy=a}return _createClass(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new b)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=o.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:b,useValue:t}]}),i=new r.C5(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var a=new this._dialogRefConstructor(n,t,i.id);if(e instanceof o.Rgc)t.attachTemplatePortal(new r.UE(e,null,{$implicit:i.data,dialogRef:a}));else{var s=this._createInjector(i,a,t),u=t.attachComponentPortal(new r.C5(e,i.viewContainerRef,s));a.componentInstance=u.instance}return a.updateSize(i.width,i.height).updatePosition(i.position),a}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!i||!i.get(s.Is,null,o.XFs.Optional))&&r.push({provide:s.Is,useValue:{value:e.direction,change:(0,h.of)()}}),o.zs3.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i!==e&&"SCRIPT"!==i.nodeName&&"STYLE"!==i.nodeName&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.aV),o.Y36(o.zs3),o.Y36(void 0),o.Y36(void 0),o.Y36(i.Xj),o.Y36(void 0),o.Y36(o.DyG),o.Y36(o.DyG),o.Y36(o.OlP))},e.\u0275dir=o.lG2({type:e}),e}(),D=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u){return _classCallCheck(this,n),t.call(this,e,i,o,s,u,a,S,x,O)}return n}(R);return e.\u0275fac=function(t){return new(t||e)(o.LFG(i.aV),o.LFG(o.zs3),o.LFG(u.Ye,8),o.LFG(T,8),o.LFG(P),o.LFG(e,12),o.LFG(i.Xj))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e}(),M=0,L=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.dialogRef=t,this._elementRef=n,this._dialog=i,this.type="button"}return _createClass(e,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=B(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}},{key:"_onButtonClick",value:function(e){A(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(S,8),o.Y36(o.SBq),o.Y36(D))},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&o.NdJ("click",function(e){return t._onButtonClick(e)}),2&e&&o.uIk("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[o.TTD]}),e}(),F=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+M++}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=B(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(S,8),o.Y36(o.SBq),o.Y36(D))},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&o.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),N=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),U=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function B(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}var Z=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({providers:[D,I],imports:[[i.U8,r.eL,a.BQ],a.BQ]}),e}()},8295:function(e,t,n){"use strict";n.d(t,{G_:function(){return K},o2:function(){return G},KE:function(){return W},Eo:function(){return U},lN:function(){return Q},hX:function(){return Z},R9:function(){return H}});var i=n(8553),r=n(8583),o=n(3018),a=n(2458),s=n(9490),u=n(9765),l=n(6682),c=n(2759),h=n(9761),f=n(6782),d=n(5257),p=n(7238),v=n(6237),_=n(946),m=n(521),g=["underline"],y=["connectionContainer"],k=["inputContainer"],b=["label"];function C(e,t){1&e&&(o.ynx(0),o.TgZ(1,"div",14),o._UZ(2,"div",15),o._UZ(3,"div",16),o._UZ(4,"div",17),o.qZA(),o.TgZ(5,"div",18),o._UZ(6,"div",15),o._UZ(7,"div",16),o._UZ(8,"div",17),o.qZA(),o.BQk())}function w(e,t){1&e&&(o.TgZ(0,"div",19),o.Hsn(1,1),o.qZA())}function x(e,t){if(1&e&&(o.ynx(0),o.Hsn(1,2),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.BQk()),2&e){var n=o.oxw(2);o.xp6(3),o.Oqu(n._control.placeholder)}}function E(e,t){1&e&&o.Hsn(0,3,["*ngSwitchCase","true"])}function S(e,t){1&e&&(o.TgZ(0,"span",23),o._uU(1," *"),o.qZA())}function A(e,t){if(1&e){var n=o.EpF();o.TgZ(0,"label",20,21),o.NdJ("cdkObserveContent",function(){return o.CHM(n),o.oxw().updateOutlineGap()}),o.YNc(2,x,4,1,"ng-container",12),o.YNc(3,E,1,0,"ng-content",12),o.YNc(4,S,2,0,"span",22),o.qZA()}if(2&e){var i=o.oxw();o.ekj("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),o.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),o.uIk("for",i._control.id)("aria-owns",i._control.id),o.xp6(2),o.Q6J("ngSwitchCase",!1),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function O(e,t){1&e&&(o.TgZ(0,"div",24),o.Hsn(1,4),o.qZA())}function T(e,t){if(1&e&&(o.TgZ(0,"div",25,26),o._UZ(2,"span",27),o.qZA()),2&e){var n=o.oxw();o.xp6(2),o.ekj("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function P(e,t){if(1&e&&(o.TgZ(0,"div"),o.Hsn(1,5),o.qZA()),2&e){var n=o.oxw();o.Q6J("@transitionMessages",n._subscriptAnimationState)}}function I(e,t){if(1&e&&(o.TgZ(0,"div",31),o._uU(1),o.qZA()),2&e){var n=o.oxw(2);o.Q6J("id",n._hintLabelId),o.xp6(1),o.Oqu(n.hintLabel)}}function R(e,t){if(1&e&&(o.TgZ(0,"div",28),o.YNc(1,I,2,2,"div",29),o.Hsn(2,6),o._UZ(3,"div",30),o.Hsn(4,7),o.qZA()),2&e){var n=o.oxw();o.Q6J("@transitionMessages",n._subscriptAnimationState),o.xp6(1),o.Q6J("ngIf",n.hintLabel)}}var D,M=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],L=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],F=new o.OlP("MatError"),N={transitionMessages:(0,p.X$)("transitionMessages",[(0,p.SB)("enter",(0,p.oB)({opacity:1,transform:"translateY(0%)"})),(0,p.eR)("void => enter",[(0,p.oB)({opacity:0,transform:"translateY(-5px)"}),(0,p.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},U=((D=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||D)},D.\u0275dir=o.lG2({type:D}),D),B=new o.OlP("MatHint"),Z=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["mat-label"]]}),e}(),j=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["mat-placeholder"]]}),e}(),q=new o.OlP("MatPrefix"),V=new o.OlP("MatSuffix"),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","matSuffix",""]],features:[o._Bn([{provide:V,useExisting:e}])]}),e}(),z=0,Y=(0,a.pj)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}(),"primary"),G=new o.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),K=new o.OlP("MatFormField"),W=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,l,c){var h;return _classCallCheck(this,n),(h=t.call(this,e))._changeDetectorRef=i,h._dir=o,h._defaults=a,h._platform=s,h._ngZone=l,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new u.xQ,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-"+z++,h._labelId="mat-form-field-label-"+z++,h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==c,h.appearance=a&&a.appearance?a.appearance:"legacy",h._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,h}return _createClass(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=(0,s.Ig)(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe((0,h.O)(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,f.R)(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe((0,f.R)(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),(0,l.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,f.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,c.R)(this._label.nativeElement,"transitionend").pipe((0,d.q)(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,_toConsumableArray(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,_toConsumableArray(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=e.children,l=this._getStartEnd(u[0].getBoundingClientRect()),c=0,h=0;h0?.75*c+10:0}for(var f=0;f-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(g);return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.SBq),r.Y36(i.t4),r.Y36(p.a5,10),r.Y36(p.F,8),r.Y36(p.sg,8),r.Y36(f.rD),r.Y36(v,10),r.Y36(c),r.Y36(r.R0b),r.Y36(d.G_,8))},e.\u0275dir=r.lG2({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&r.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(r.Ikx("disabled",t.disabled)("required",t.required),r.uIk("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),r.ekj("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[r._Bn([{provide:d.Eo,useExisting:e}]),r.qOj,r.TTD]}),e}(),k=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[f.rD],imports:[[h,d.lN,f.BQ],h,d.lN]}),e}()},7441:function(e,t,n){"use strict";n.d(t,{gD:function(){return z},LD:function(){return Y}});var i=n(625),r=n(8583),o=n(3018),a=n(2458),s=n(8295),u=n(9243),l=n(9238),c=n(9490),h=n(8345),f=n(6461),d=n(9765),p=n(1439),v=n(6682),_=n(9761),m=n(3190),g=n(5257),y=n(5435),k=n(8002),b=n(7519),C=n(6782),w=n(7238),x=n(946),E=n(665),S=["trigger"],A=["panel"];function O(e,t){if(1&e&&(o.TgZ(0,"span",8),o._uU(1),o.qZA()),2&e){var n=o.oxw();o.xp6(1),o.Oqu(n.placeholder)}}function T(e,t){if(1&e&&(o.TgZ(0,"span",12),o._uU(1),o.qZA()),2&e){var n=o.oxw(2);o.xp6(1),o.Oqu(n.triggerValue)}}function P(e,t){1&e&&o.Hsn(0,0,["*ngSwitchCase","true"])}function I(e,t){if(1&e&&(o.TgZ(0,"span",9),o.YNc(1,T,2,1,"span",10),o.YNc(2,P,1,0,"ng-content",11),o.qZA()),2&e){var n=o.oxw();o.Q6J("ngSwitch",!!n.customTrigger),o.xp6(2),o.Q6J("ngSwitchCase",!0)}}function R(e,t){if(1&e){var n=o.EpF();o.TgZ(0,"div",13),o.TgZ(1,"div",14,15),o.NdJ("@transformPanel.done",function(e){return o.CHM(n),o.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return o.CHM(n),o.oxw()._handleKeydown(e)}),o.Hsn(3,1),o.qZA(),o.qZA()}if(2&e){var i=o.oxw();o.Q6J("@transformPanelWrap",void 0),o.xp6(1),o.Gre("mat-select-panel ",i._getPanelTheme(),""),o.Udp("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),o.Q6J("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),o.uIk("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var D,M=[[["mat-select-trigger"]],"*"],L=["mat-select-trigger","*"],F={transformPanelWrap:(0,w.X$)("transformPanelWrap",[(0,w.eR)("* => void",(0,w.IO)("@transformPanel",[(0,w.pV)()],{optional:!0}))]),transformPanel:(0,w.X$)("transformPanel",[(0,w.SB)("void",(0,w.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,w.SB)("showing",(0,w.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,w.SB)("showing-multiple",(0,w.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,w.eR)("void => *",(0,w.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,w.eR)("* => void",(0,w.jt)("100ms 25ms linear",(0,w.oB)({opacity:0})))])},N=0,U=new o.OlP("mat-select-scroll-strategy"),B=new o.OlP("MAT_SELECT_CONFIG"),Z={provide:U,deps:[i.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},j=function e(t,n){_classCallCheck(this,e),this.source=t,this.value=n},q=(0,a.Kr)((0,a.sb)((0,a.Id)((0,a.FD)(function(){return function e(t,n,i,r,o){_classCallCheck(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o}}())))),V=new o.OlP("MatSelectTrigger"),H=((D=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,s,u,l,c,h,f,b,C,w,x){var E,S,A,O;return _classCallCheck(this,n),(E=t.call(this,s,a,l,c,f))._viewportRuler=e,E._changeDetectorRef=i,E._ngZone=r,E._dir=u,E._parentFormField=h,E._liveAnnouncer=w,E._defaultOptions=x,E._panelOpen=!1,E._compareWith=function(e,t){return e===t},E._uid="mat-select-"+N++,E._triggerAriaLabelledBy=null,E._destroy=new d.xQ,E._onChange=function(){},E._onTouched=function(){},E._valueId="mat-select-value-"+N++,E._panelDoneAnimatingStream=new d.xQ,E._overlayPanelClass=(null===(S=E._defaultOptions)||void 0===S?void 0:S.overlayPanelClass)||"",E._focused=!1,E.controlType="mat-select",E._required=!1,E._multiple=!1,E._disableOptionCentering=null!==(O=null===(A=E._defaultOptions)||void 0===A?void 0:A.disableOptionCentering)&&void 0!==O&&O,E.ariaLabel="",E.optionSelectionChanges=(0,p.P)(function(){var e=E.options;return e?e.changes.pipe((0,_.O)(e),(0,m.w)(function(){return v.T.apply(void 0,_toConsumableArray(e.map(function(e){return e.onSelectionChange})))})):E._ngZone.onStable.pipe((0,g.q)(1),(0,m.w)(function(){return E.optionSelectionChanges}))}),E.openedChange=new o.vpe,E._openedStream=E.openedChange.pipe((0,y.h)(function(e){return e}),(0,k.U)(function(){})),E._closedStream=E.openedChange.pipe((0,y.h)(function(e){return!e}),(0,k.U)(function(){})),E.selectionChange=new o.vpe,E.valueChange=new o.vpe,E.ngControl&&(E.ngControl.valueAccessor=_assertThisInitialized(E)),null!=(null==x?void 0:x.typeaheadDebounceInterval)&&(E._typeaheadDebounceInterval=x.typeaheadDebounceInterval),E._scrollStrategyFactory=C,E._scrollStrategy=E._scrollStrategyFactory(),E.tabIndex=parseInt(b)||0,E.id=E.id,E}return _createClass(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,c.Ig)(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=(0,c.Ig)(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=(0,c.Ig)(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=(0,c.su)(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,b.x)(),(0,C.R)(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,C.R)(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe((0,_.O)(null),(0,C.R)(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=t===f.JH||t===f.LH||t===f.oh||t===f.SV,i=t===f.K5||t===f.L_,r=this._keyManager;if(!r.isTyping()&&i&&!(0,f.Vb)(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=n===f.JH||n===f.LH,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||n!==f.K5&&n!==f.L_||!t.activeItem||(0,f.Vb)(e))if(!r&&this._multiple&&n===f.A&&e.ctrlKey){e.preventDefault();var o=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(o?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this._overlayDir.positionChange.pipe((0,g.q)(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new l.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,C.R)(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe((0,C.R)(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):!e._panelOpen&&!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=(0,v.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,C.R)(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),v.T.apply(void 0,_toConsumableArray(this.options.map(function(e){return e._stateChanges}))).pipe((0,C.R)(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(q)).\u0275fac=function(e){return new(e||D)(o.Y36(u.rL),o.Y36(o.sBO),o.Y36(o.R0b),o.Y36(a.rD),o.Y36(o.SBq),o.Y36(x.Is,8),o.Y36(E.F,8),o.Y36(E.sg,8),o.Y36(s.G_,8),o.Y36(E.a5,10),o.$8M("tabindex"),o.Y36(U),o.Y36(l.Kd),o.Y36(B,8))},D.\u0275dir=o.lG2({type:D,viewQuery:function(e,t){var n;1&e&&(o.Gf(S,5),o.Gf(A,5),o.Gf(i.pI,5)),2&e&&(o.iGM(n=o.CRH())&&(t.trigger=n.first),o.iGM(n=o.CRH())&&(t.panel=n.first),o.iGM(n=o.CRH())&&(t._overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[o.qOj,o.TTD]}),D),z=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return _createClass(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,C.R)(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"_canOpen",this).call(this)&&(_get(_getPrototypeOf(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(function(){e._triggerFontSize&&e._overlayDir.overlayRef&&e._overlayDir.overlayRef.overlayElement&&(e._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t=(0,a.CB)(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:(0,a.jH)((e+t)*n,n,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),_get(_getPrototypeOf(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new j(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this._overlayDir.offsetX=Math.round(e),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=(0,a.CB)(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(H);return t.\u0275fac=function(n){return(e||(e=o.n5z(t)))(n||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;(1&e&&(o.Suo(n,V,5),o.Suo(n,a.ey,5),o.Suo(n,a.K7,5)),2&e)&&(o.iGM(i=o.CRH())&&(t.customTrigger=i.first),o.iGM(i=o.CRH())&&(t.options=i),o.iGM(i=o.CRH())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&o.NdJ("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(o.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),o.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[o._Bn([{provide:s.Eo,useExisting:t},{provide:a.HF,useExisting:t}]),o.qOj],ngContentSelectors:L,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(o.F$t(M),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return t.toggle()}),o.TgZ(3,"div",2),o.YNc(4,O,2,1,"span",3),o.YNc(5,I,3,2,"span",4),o.qZA(),o.TgZ(6,"div",5),o._UZ(7,"div",6),o.qZA(),o.qZA(),o.YNc(8,R,4,14,"ng-template",7),o.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=o.MAs(1);o.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),o.xp6(3),o.Q6J("ngSwitch",t.empty),o.uIk("id",t._valueId),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngSwitchCase",!1),o.xp6(3),o.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[i.xu,r.RF,r.n9,i.pI,r.ED,r.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[F.transformPanelWrap,F.transformPanel]},changeDetection:0}),t}(),Y=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({providers:[Z],imports:[[r.ez,i.U8,a.Ng,a.BQ],u.ZD,s.lN,a.Ng,a.BQ]}),e}()},6237:function(e,t,n){"use strict";n.d(t,{Qb:function(){return Mt},PW:function(){return Ut}});var i=n(3018),r=n(9075),o=n(7238);function a(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function u(e){switch(e.length){case 0:return new o.ZN;case 1:return e[0];default:return new o.ZE(e)}}function l(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=[],u=[],l=-1,c=null;if(i.forEach(function(e){var n=e.offset,i=n==l,h=i&&c||{};Object.keys(e).forEach(function(n){var i=n,u=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,s),u){case o.k1:u=r[n];break;case o.l3:u=a[n];break;default:u=t.normalizeStyleValue(n,i,u,s)}h[i]=u}),i||u.push(h),c=h,l=n}),s.length){var h="\n - ";throw new Error("Unable to animate due to the following errors:".concat(h).concat(s.join(h)))}return u}function c(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&h(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&h(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&h(n,"destroy",e))})}}function h(e,t,n){var i=n.totalTime,r=f(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function f(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function d(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function p(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var v=function(e,t){return!1},_=function(e,t){return!1},m=function(e,t,n){return[]},g=s();(g||"undefined"!=typeof Element)&&(v=a()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},_=function(){if(g||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:_}(),m=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else U(e,n);return n}function Z(e,t,n){return n?t+":"+n+";":""}function j(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(oe(o,s)),"<"==a[0]&&("*"!=o||"*"!=s)&&t.push(oe(s,o))}(e,n,t)}):n.push(e),n}var ie=new Set(["true","1"]),re=new Set(["false","0"]);function oe(e,t){var n=ie.has(e)||re.has(e),i=ie.has(t)||re.has(t);return function(r,o){var a="*"==e||e==r,s="*"==t||t==o;return!a&&n&&"boolean"==typeof r&&(a=r?ie.has(e):re.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?ie.has(t):re.has(t)),a&&s}}var ae=new RegExp("s*:selfs*,?","g");function se(e,t,n){return new ue(e).build(t,n)}var ue=function(){function e(t){_classCallCheck(this,e),this._driver=t}return _createClass(e,[{key:"build",value:function(e,t){var n=new le(t);return this._resetContextStyleTimingState(n),ee(this,H(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,u=s.name;u.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,o.push(n.visitState(s,t))}),s.name=u}else if(1==e.type){var l=n.visitTransition(e,t);i+=l.queryCount,r+=l.depCount,a.push(l)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach(function(e){if(ce(e)){var t=e;Object.keys(t).forEach(function(e){Y(t[e]).forEach(function(e){o.hasOwnProperty(e)||r.add(e)})})}}),r.size){var a=K(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n=ee(this,H(e.animation),t);return{type:1,matchers:ne(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:he(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return ee(n,e,t)}),options:he(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=ee(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:he(e.options)}}},{key:"visitAnimate",value:function(e,t){var n=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return fe(N(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=fe(0,0,"");return r.dynamic=!0,r.strValue=i,r}return fe((n=n||N(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=n;var i,r=e.styles?e.styles:(0,o.oB)({});if(5==r.type)i=this.visitKeyframes(r,t);else{var a=e.styles,s=!1;if(!a){s=!0;var u={};n.easing&&(u.easing=n.easing),a=(0,o.oB)(u)}t.currentTime+=n.duration+n.delay;var l=this.visitStyle(a,t);l.isEmptyStep=s,i=l}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==o.l3?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(ce(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a=t.collectedStyles[t.currentQuerySelector],s=a[i],u=!0;s&&(o!=r&&o>=s.startTime&&r<=s.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(s.startTime,'ms" and "').concat(s.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),u=!1),o=s.startTime),u&&(a[i]={startTime:o,endTime:r}),t.options&&function(e,t,n){var i=t.params||{},r=Y(e);r.length&&r.forEach(function(e){i.hasOwnProperty(e)||n.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})}(e[i],t.options,t.errors)}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,u=0,l=e.steps.map(function(e){var i=n._makeStyleAst(e,t),l=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(ce(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(ce(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),s=s||c<0||c>1,a=a||c0&&r0?r==f?1:h*r:o[r],s=a*v;t.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:ee(this,H(e.animation),t),options:he(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:he(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:he(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(ae,"")),[e=e.replace(/@\*/g,R).replace(/@\w+/g,function(e){return R+"-"+e.substr(1)}).replace(/:animating/g,M),t]}(e.selector),2),o=r[0],a=r[1];t.currentQuerySelector=n.length?n+" "+o:o,d(t.collectedStyles,t.currentQuerySelector,{});var s=ee(this,H(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:he(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:N(e.timings,t.errors,!0);return{type:12,animation:ee(this,H(e.animation),t),timings:n,options:null}}}]),e}(),le=function e(t){_classCallCheck(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function ce(e){return!Array.isArray(e)&&"object"==typeof e}function he(e){return e?(e=U(e)).params&&(e.params=function(e){return e?U(e):null}(e.params)):e={},e}function fe(e,t,n){return{duration:e,delay:t,easing:n}}function de(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var pe=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),ve=new RegExp(":enter","g"),_e=new RegExp(":leave","g");function me(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new ge).buildKeyframes(e,t,n,i,r,o,a,s,u,l)}var ge=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new pe;var c=new ke(e,t,u,i,r,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),ee(this,n,c);var h=c.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,c.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[de(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?L(n.duration):null,o=null!=n.delay?L(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),ee(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ye);var a=L(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return ee(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?L(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),ee(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return N(t.params?G(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?L(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ye);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(u=s.currentTimeline),ee(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;ee(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}]),e}(),ye={},ke=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ye,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new be(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=L(i.duration)),null!=i.delay&&(r.delay=L(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){(!t||!a.hasOwnProperty(e))&&(a[e]=G(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=ye,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Ce(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(ve,"."+this._enterClassName)).replace(_e,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,_toConsumableArray(s))}return!r&&0==a.length&&o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}]),e}(),be=function(){function e(t,n,i,r){_classCallCheck(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||o.l3,t._currentKeyframe[e]=o.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var a=i&&i.params||{},s=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]=o.l3}):B(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(s).forEach(function(e){var t=G(s[e],a,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:o.l3),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(a,s){var u=B(a,!0);Object.keys(u).forEach(function(e){var i=u[e];i==o.k1?t.add(e):i==o.l3&&n.add(e)}),i||(u.offset=s/e.duration),r.push(u)});var a=t.size?K(t.values()):[],s=n.size?K(n.values()):[];if(i){var u=r[0],l=U(u);u.offset=0,l.offset=1,r=[u,l]}return de(this.element,r,a,s,this.duration,this.startTime,this.easing,!1)}}]),e}(),Ce=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(u=t.call(this,e,i,s.delay)).keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=l,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,u=B(e[0],!1);u.offset=0,o.push(u);var l=B(e[0],!1);l.offset=we(s),o.push(l);for(var c=e.length-1,h=1;h<=c;h++){var f=B(e[h],!1);f.offset=we((n+f.offset*i)/a),o.push(f)}i=a,n=0,r="",e=o}return de(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(be);function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var xe=function e(){_classCallCheck(this,e)},Ee=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(e,t){return Q(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(Se[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(xe),Se=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Ae(e,t,n,i,r,o,a,s,u,l,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:f}}var Oe={},Te=function(){function e(t,n,i){_classCallCheck(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return _createClass(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,u,l){var c=[],h=this.ast.options&&this.ast.options.params||Oe,f=this.buildStyles(n,a&&a.params||Oe,c),p=s&&s.params||Oe,v=this.buildStyles(i,p,c),_=new Set,m=new Map,g=new Map,y="void"===i,k={params:Object.assign(Object.assign({},h),p)},b=l?[]:me(e,t,this.ast.animation,r,o,f,v,k,u,c),C=0;if(b.forEach(function(e){C=Math.max(e.duration+e.delay,C)}),c.length)return Ae(t,this._triggerName,n,i,y,f,v,[],[],m,g,C,c);b.forEach(function(e){var n=e.element,i=d(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=d(g,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&_.add(n)});var w=K(_.values());return Ae(t,this._triggerName,n,i,y,f,v,b,w,m,g,C)}}]),e}(),Pe=function(){function e(t,n,i){_classCallCheck(this,e),this.styles=t,this.defaultParams=n,this.normalizer=i}return _createClass(e,[{key:"buildStyles",value:function(e,t){var n=this,i={},r=U(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach(function(e){var a=o[e];a.length>1&&(a=G(a,r,t));var s=n.normalizer.normalizePropertyName(e,t);a=n.normalizer.normalizeStyleValue(e,s,a,t),i[s]=a})}}),i}}]),e}(),Ie=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.name=t,this.ast=n,this._normalizer=i,this.transitionFactories=[],this.states={},n.states.forEach(function(e){r.states[e.name]=new Pe(e.style,e.options&&e.options.params||{},i)}),Re(this.states,"true","1"),Re(this.states,"false","0"),n.transitions.forEach(function(e){r.transitionFactories.push(new Te(t,e,r.states))}),this.fallbackTransition=function(e,t,n){return new Te(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},t)}(t,this.states)}return _createClass(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Re(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var De=new pe,Me=function(){function e(t,n,i){_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var n=[],i=se(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=l(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],s=this._animations[e],l=new Map;if(s?(n=me(this._driver,t,s,T,P,{},{},r,De,a)).forEach(function(e){var t=d(l,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));l.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,o.l3)})});var c=u(n.map(function(e){var t=l.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=c,c.onDestroy(function(){return i.destroy(e)}),this.players.push(c),c}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=f(t,"","","");return c(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);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(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Le="ng-animate-queued",Fe="ng-animate-disabled",Ne=".ng-animate-disabled",Ue=[],Be={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ze={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},je="__ng_removed",qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var o=U(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),Ve="void",He=new qe(Ve),ze=function(){function e(t,n,i){_classCallCheck(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,$e(n,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=d(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var u=d(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||($e(e,I),$e(e,I+"-"+t),u[t]=He),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete u[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new Ge(this.id,t,e),s=this._engine.statesByElement.get(e);s||($e(e,I),$e(e,I+"-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],l=new qe(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[t]=l,u||(u=He),l.value===Ve||u.value!==l.value){var c=d(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=o.matchTransition(u.value,l.value,e,l.params),f=!1;if(!h){if(!r)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:l,player:a,isFallbackTransition:f}),f||($e(e,Le),a.onStart(function(){et(e,Le)})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),$e(e,Fe)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),et(e,Fe))}},{key:"removeNode",value:function(e,t,n,i){if(Ke(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t[je]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return Ke(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,R,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,M,!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return u(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e[je];if(n&&n.setForRemoval){if(e[je]=Be,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,Ne)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Ne,!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;I--)this._namespaceList[I].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(A.push(t),n.collectedEnterElements.length){var a=o[je];if(a&&a.setForMove)return void t.destroy()}var u=!p||!n.driver.containsElement(p,o),f=E.get(o),v=m.get(o),_=n._buildInstruction(e,i,v,f,u);if(_.errors&&_.errors.length)O.push(_);else{if(u)return t.onStart(function(){return V(o,_.fromStyles)}),t.onDestroy(function(){return q(o,_.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return V(o,_.fromStyles)}),t.onDestroy(function(){return q(o,_.toStyles)}),void r.push(t);_.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(o,_.timelines),s.push({instruction:_,player:t,element:o}),_.queriedElements.forEach(function(e){return d(l,e,[]).push(t)}),_.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),_.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=h.get(t);i||h.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(O.length){var R=[];O.forEach(function(e){R.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return R.push("- ".concat(e,"\n"))})}),A.forEach(function(e){return e.destroy()}),this.reportError(R)}var D=new Map,L=new Map;s.forEach(function(e){var t=e.element;i.has(t)&&(L.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,D))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){d(D,t,[]).push(e),e.destroy()})});var F=y.filter(function(e){return it(e,c,h)}),N=new Map;Qe(N,this.driver,b,h,o.l3).forEach(function(e){it(e,c,h)&&F.push(e)});var U=new Map;_.forEach(function(e,t){Qe(U,n.driver,new Set(e),c,o.k1)}),F.forEach(function(e){var t=N.get(e),n=U.get(e);N.set(e,Object.assign(Object.assign({},t),n))});var B=[],Z=[],j={};s.forEach(function(e){var t=e.element,o=e.player,s=e.instruction;if(i.has(t)){if(f.has(t))return o.onDestroy(function(){return q(t,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var l=j;if(L.size>1){for(var c=t,h=[];c=c.parentNode;){var d=L.get(c);if(d){l=d;break}h.push(c)}h.forEach(function(e){return L.set(e,l)})}var p=n._buildAnimation(o.namespaceId,s,D,a,U,N);if(o.setRealPlayer(p),l===j)B.push(o);else{var v=n.playersByElement.get(l);v&&v.length&&(o.parentPlayer=u(v)),r.push(o)}}else V(t,s.fromStyles),o.onDestroy(function(){return q(t,s.toStyles)}),Z.push(o),f.has(t)&&r.push(o)}),Z.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=u(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var H=0;H0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new o.ZN(e.duration,e.delay)}}]),e}(),Ge=function(){function e(t,n,i){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new o.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return c(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){d(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Ke(e){return e&&1===e.nodeType}function We(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Qe(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(We(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);(!n||0==n.length)&&(i[je]=Ze,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return We(e,o[s++])}),a}function Je(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}var Xe="$$classes";function $e(e,t){if(e.classList)e.classList.add(t);else{var n=e[Xe];n||(n=e[Xe]={}),n[t]=!0}}function et(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Xe];n&&delete n[t]}}function tt(e,t,n){u(n).onDone(function(){return e.processLeaveNode(t)})}function nt(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function ot(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=st(t[0]),t.length>1&&(i=st(t[t.length-1]))):t&&(n=st(t)),n||i?new at(e,n,i):null}var at=function(){function e(t,n,i){_classCallCheck(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(V(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}]),e}();function st(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),vt(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){var n=mt(e,"").split(","),i=pt(n,t);i>=0&&(n.splice(i,1),_t(e,"",n.join(",")))}(this._element,this._name))}}]),e}();function ft(e,t,n){_t(e,"PlayState",n,dt(e,t))}function dt(e,t){var n=mt(e,"");return n.indexOf(",")>0?pt(n.split(","),t):pt([n],t)}function pt(e,t){for(var n=0;n=0)return n;return-1}function vt(e,t,n){n?e.removeEventListener(ct,t):e.addEventListener(ct,t)}function _t(e,t,n,i){var r=lt+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function mt(e,t){return e.style[lt+t]||""}var gt=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new ht(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:te(e.element,i))})}this.currentSnapshot=t}}]),e}(),yt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=E(i),r}return _createClass(n,[{key:"init",value:function(){var e=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(o.ZN),kt=function(){function e(){_classCallCheck(this,e),this._count=0}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return b(e)}},{key:"matchesElement",value:function(e,t){return C(e,t)}},{key:"containsElement",value:function(e,t){return w(e,t)}},{key:"query",value:function(e,t,n){return x(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return E(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof gt}),s={};X(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"==n||"easing"==n||(t[n]=e[n])})}),t}(t=$(e,t,s));if(0==n)return new yt(e,u);var l="gen_css_kf_"+this._count++,c=this.buildKeyframeElement(e,l,t);(function(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(e).appendChild(c);var h=ot(e,t),f=new gt(e,t,l,n,i,r,u,h);return f.onDestroy(function(){var e;(e=c).parentNode.removeChild(e)}),f}}]),e}(),bt=function(){function e(t,n,i,r){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:te(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Ct=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(wt().toString()),this._cssKeyframesDriver=new kt}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return b(e)}},{key:"matchesElement",value:function(e,t){return C(e,t)}},{key:"containsElement",value:function(e,t){return w(e,t)}},{key:"query",value:function(e,t,n){return x(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var u={},l=o.filter(function(e){return e instanceof bt});X(n,i)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var c=ot(e,t=$(e,t=t.map(function(e){return B(e,!1)}),u));return new bt(e,t,s,c)}}]),e}();function wt(){return a()&&Element.prototype.animate||{}}var xt=n(8583),Et=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this))._nextAnimationId=0,o._renderer=e.createRenderer(r.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}}),o}return _createClass(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?(0,o.vP)(e):e;return Ot(this._renderer,null,t,"register",[n]),new St(t,this._renderer)}}]),n}(o._j);return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.FYo),i.LFG(xt.K0))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),St=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return _createClass(n,[{key:"create",value:function(e,t){return new At(this._id,e,t||{},this._renderer)}}]),n}(o.LC),At=function(){function e(t,n,i,r){_classCallCheck(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&t==Tt?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),Rt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,i,r,o)).factory=e,a.namespaceId=i,a}return _createClass(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Tt?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i=this;if("@"==t.charAt(0)){var r,o=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),a=t.substr(1),s="";return"@"!=a.charAt(0)&&(a=(r=_slicedToArray(function(e){var t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(a),2))[0],s=r[1]),this.engine.listen(this.namespaceId,o,a,s,function(e){i.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(It),Dt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){return _classCallCheck(this,n),t.call(this,e.body,i,r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(rt);return e.\u0275fac=function(t){return new(t||e)(i.LFG(xt.K0),i.LFG(O),i.LFG(xe))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),Mt=new i.OlP("AnimationModuleType"),Lt=[{provide:o._j,useClass:Et},{provide:xe,useFactory:function(){return new Ee}},{provide:rt,useClass:Dt},{provide:i.FYo,useFactory:function(e,t,n){return new Pt(e,t,n)},deps:[r.se,rt,i.R0b]}],Ft=[{provide:O,useFactory:function(){return"function"==typeof wt()?new Ct:new kt}},{provide:Mt,useValue:"BrowserAnimations"}].concat(Lt),Nt=[{provide:O,useClass:A},{provide:Mt,useValue:"NoopAnimations"}].concat(Lt),Ut=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?Nt:Ft}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({providers:Ft,imports:[r.b2]}),e}()},9075:function(e,t,n){"use strict";n.d(t,{b2:function(){return N},H7:function(){return D},q6:function(){return L},se:function(){return w}});var i,r,o=n(8583),a=n(3018),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){e.parentNode&&e.parentNode.removeChild(e)}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getBaseHref",value:function(e){var t=(u=u||document.querySelector("base"))?u.getAttribute("href"):null;return null==t?null:function(e){(i=i||document.createElement("a")).setAttribute("href",e);var t=i.pathname;return"/"===t.charAt(0)?t:"/".concat(t)}(t)}},{key:"resetBaseElement",value:function(){u=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(e){return(0,o.Mx)(document.cookie,e)}}],[{key:"makeCurrent",value:function(){(0,o.HT)(new n)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).supportsDOMEvents=!0,e}return n}(o.w_)),u=null,l=new a.OlP("TRANSITION_ID"),c=[{provide:a.ip1,useFactory:function(e,t,n){return function(){n.get(a.CZH).donePromise.then(function(){for(var n=(0,o.q)(),i=t.querySelectorAll('style[ng-transition="'.concat(e,'"]')),r=0;r1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},a.dqk.getAllAngularTestabilities=function(){return e.getAllTestabilities()},a.dqk.getAllAngularRootElements=function(){return e.getAllRootElements()},a.dqk.frameworkStabilizers||(a.dqk.frameworkStabilizers=[]),a.dqk.frameworkStabilizers.push(function(e){var t=a.dqk.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?(0,o.q)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){(0,a.VLi)(new e)}}]),e}(),f=((r=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||r)},r.\u0275prov=a.Yz7({token:r,factory:r.\u0275fac}),r),d=new a.OlP("EventManagerPlugins"),p=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&P.hasOwnProperty(t)&&(t=P[t]))}return T[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),O.forEach(function(i){i!=n&&I[i](e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(v);return e.\u0275fac=function(t){return new(t||e)(a.LFG(o.K0))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),D=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,a.Yz7)({factory:function(){return(0,a.LFG)(M)},token:e,providedIn:"root"}),e}(),M=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i}return _createClass(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case a.q3G.NONE:return t;case a.q3G.HTML:return(0,a.qzn)(t,"HTML")?(0,a.z3N)(t):(0,a.EiD)(this._doc,String(t)).toString();case a.q3G.STYLE:return(0,a.qzn)(t,"Style")?(0,a.z3N)(t):t;case a.q3G.SCRIPT:if((0,a.qzn)(t,"Script"))return(0,a.z3N)(t);throw new Error("unsafe value used in a script context");case a.q3G.URL:return(0,a.yhl)(t),(0,a.qzn)(t,"URL")?(0,a.z3N)(t):(0,a.mCW)(String(t));case a.q3G.RESOURCE_URL:if((0,a.qzn)(t,"ResourceURL"))return(0,a.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return(0,a.JVY)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return(0,a.L6k)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return(0,a.eBb)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return(0,a.LAX)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return(0,a.pB0)(e)}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(a.LFG(o.K0))},e.\u0275prov=(0,a.Yz7)({factory:function(){return function(e){return new M(e.get(o.K0))}((0,a.LFG)(a.gxx))},token:e,providedIn:"root"}),e}(),L=(0,a.eFA)(a._c5,"browser",[{provide:a.Lbi,useValue:o.bD},{provide:a.g9A,useValue:function(){s.makeCurrent(),h.init()},multi:!0},{provide:o.K0,useFactory:function(){return(0,a.RDi)(document),document},deps:[]}]),F=[[],{provide:a.zSh,useValue:"root"},{provide:a.qLn,useFactory:function(){return new a.qLn},deps:[]},{provide:d,useClass:A,multi:!0,deps:[o.K0,a.R0b,a.Lbi]},{provide:d,useClass:R,multi:!0,deps:[o.K0]},[],{provide:w,useClass:w,deps:[p,m,a.AFp]},{provide:a.FYo,useExisting:w},{provide:_,useExisting:m},{provide:m,useClass:m,deps:[o.K0]},{provide:a.dDg,useClass:a.dDg,deps:[a.R0b]},{provide:p,useClass:p,deps:[d,a.R0b]},{provide:o.JF,useClass:f,deps:[]},[]],N=function(){var e=function(){function e(t){if(_classCallCheck(this,e),t)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.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:a.AFp,useValue:t.appId},{provide:l,useExisting:a.AFp},c]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(e,12))},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:F,imports:[o.ez,a.hGG]}),e}();"undefined"!=typeof window&&window},8741:function(e,t,n){"use strict";n.d(t,{gz:function(){return rt},F0:function(){return An},rH:function(){return Tn},yS:function(){return Pn},Bz:function(){return qn},lC:function(){return Rn}});var i=n(8583),r=n(3018),o=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),a=n(4402),s=n(5917),u=n(6215),l=n(739),c=n(7574),h=n(8071),f=n(1439),d=n(9193),p=n(2441),v=n(9765),_=n(7393);function m(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new g(e,t,n))}}var g=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new y(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),y=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return _createClass(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(_.L),k=n(5345);function b(e){return function(t){var n=new C(e),i=t.lift(n);return n.caught=i}}var C=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new w(e,this.selector,this.caught))}}]),e}(),w=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return _createClass(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var i=new k.IY(this);this.add(i);var r=(0,k.ft)(t,i);r!==i&&this.add(r)}}}]),n}(k.Ds),x=n(5435),E=n(7108);function S(e){return function(t){return 0===e?(0,d.c)():t.lift(new A(e))}}var A=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new E.W}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new O(e,this.total))}}]),e}(),O=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:R;return function(t){return t.lift(new P(e))}}var P=function(){function e(t){_classCallCheck(this,e),this.errorFactory=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new I(e,this.errorFactory))}}]),e}(),I=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(_.L);function R(){return new o}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new M(e))}}var M=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new L(e,this.defaultValue))}}]),e}(),L=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return _createClass(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(_.L),F=n(4487),N=n(5257);function U(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?(0,x.h)(function(t,n){return e(t,n,i)}):F.y,(0,N.q)(1),n?D(t):T(function(){return new o}))}}var B=n(5319),Z=function(){function e(t){_classCallCheck(this,e),this.callback=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new j(e,this.callback))}}]),e}(),j=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).add(new B.w(i)),r}return n}(_.L),q=n(8002),V=n(3190),H=n(9761),z=n(4612),Y=n(9773),G=n(3342),K=n(1307),W=n(3282),Q=function e(t,n){_classCallCheck(this,e),this.id=t,this.url=n},J=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Q),X=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Q),$=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).reason=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Q),ee=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).error=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Q),te=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ne=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ie=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s;return _classCallCheck(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(Q),re=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),oe=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ae=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),se=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),ue=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),le=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),ce=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),he=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fe=function(){function e(t,n,i){_classCallCheck(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),de="primary",pe=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function ve(e){return new pe(e)}var _e="ngNavigationCancelingError";function me(e){var t=Error("NavigationCancelingError: "+e);return t[_e]=!0,t}function ge(e,t,n){var i=n.path.split("/");if(i.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function we(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function xe(e){return(0,r.CqO)(e)?e:(0,r.QGY)(e)?(0,a.D)(Promise.resolve(e)):(0,s.of)(e)}var Ee={exact:function e(t,n,i){if(!Me(t.segments,n.segments)||!Pe(t.segments,n.segments,i)||t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children)if(!t.children[r]||!e(t.children[r],n.children[r],i))return!1;return!0},subset:Oe},Se={exact:function(e,t){return ye(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return ke(e[n],t[n])})},ignored:function(){return!0}};function Ae(e,t,n){return Ee[n.paths](e.root,t.root,n.matrixParams)&&Se[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Oe(e,t,n){return Te(e,t,t.segments,n)}function Te(e,t,n,i){if(e.segments.length>n.length){var r=e.segments.slice(0,n.length);return!(!Me(r,n)||t.hasChildren()||!Pe(r,n,i))}if(e.segments.length===n.length){if(!Me(e.segments,n)||!Pe(e.segments,n,i))return!1;for(var o in t.children)if(!e.children[o]||!Oe(e.children[o],t.children[o],i))return!1;return!0}var a=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!(Me(e.segments,a)&&Pe(e.segments,a,i)&&e.children[de])&&Te(e.children[de],t,s,i)}function Pe(e,t,n){return t.every(function(t,i){return Se[n](e[i].parameters,t.parameters)})}var Ie=function(){function e(t,n,i){_classCallCheck(this,e),this.root=t,this.queryParams=n,this.fragment=i}return _createClass(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ve(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Ne.serialize(this)}}]),e}(),Re=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.segments=t,this.children=n,this.parent=null,we(n,function(e,t){return e.parent=i})}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Ue(this)}}]),e}(),De=function(){function e(t,n){_classCallCheck(this,e),this.path=t,this.parameters=n}return _createClass(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=ve(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return ze(this)}}]),e}();function Me(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var Le=function e(){_classCallCheck(this,e)},Fe=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new Qe(e);return new Ie(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t;return"".concat("/".concat(Be(e.root,!0)),function(e){var t=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(je(t),"=").concat(je(e))}).join("&"):"".concat(je(t),"=").concat(je(n))}).filter(function(e){return!!e});return t.length?"?".concat(t.join("&")):""}(e.queryParams)).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),Ne=new Fe;function Ue(e){return e.segments.map(function(e){return ze(e)}).join("/")}function Be(e,t){if(!e.hasChildren())return Ue(e);if(t){var n=e.children[de]?Be(e.children[de],!1):"",i=[];return we(e.children,function(e,t){t!==de&&i.push("".concat(t,":").concat(Be(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return we(e.children,function(e,i){i===de&&(n=n.concat(t(e,i)))}),we(e.children,function(e,i){i!==de&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return n===de?[Be(e.children[de],!1)]:["".concat(n,":").concat(Be(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[de]?"".concat(Ue(e),"/").concat(r[0]):"".concat(Ue(e),"/(").concat(r.join("//"),")")}function Ze(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function je(e){return Ze(e).replace(/%3B/gi,";")}function qe(e){return Ze(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ve(e){return decodeURIComponent(e)}function He(e){return Ve(e.replace(/\+/g,"%20"))}function ze(e){return"".concat(qe(e.path)).concat(function(e){return Object.keys(e).map(function(t){return";".concat(qe(t),"=").concat(qe(e[t]))}).join("")}(e.parameters))}var Ye=/^[^\/()?;=#]+/;function Ge(e){var t=e.match(Ye);return t?t[0]:""}var Ke=/^[^=?&#]+/,We=/^[^?&#]+/,Qe=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Re([],{}):new Re([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[de]=new Re(e,t)),n}},{key:"parseSegment",value:function(){var e=Ge(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new De(Ve(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Ge(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Ge(this.remaining);i&&(n=i,this.capture(n))}e[Ve(t)]=Ve(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Ke);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(We);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=He(t),o=He(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Ge(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=de);var o=this.parseChildren();t[r]=1===Object.keys(o).length?o[de]:new Re([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Je=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Xe(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=Xe(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=$e(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return $e(e,this._root).map(function(e){return e.value})}}]),e}();function Xe(e,t){if(e===t.value)return t;var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=Xe(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function $e(e,t){if(e===t.value)return[t];var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=$e(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var et=function(){function e(t,n){_classCallCheck(this,e),this.value=t,this.children=n}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function tt(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var nt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).snapshot=i,ut(_assertThisInitialized(r),e),r}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Je);function it(e,t){var n=function(e,t){var n=new at([],{},{},"",{},de,t,null,e.root,-1,{});return new st("",new et(n,[]))}(e,t),i=new u.X([new De("",{})]),r=new u.X({}),o=new u.X({}),a=new u.X({}),s=new u.X(""),l=new rt(i,r,a,s,o,de,t,n.root);return l.snapshot=n.root,new nt(new et(l,[]),n)}var rt=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return _createClass(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,q.U)(function(e){return ve(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,q.U)(function(e){return ve(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var at=function(){function e(t,n,i,r,o,a,s,u,l,c,h){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return _createClass(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=ve(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ve(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),st=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,i)).url=e,ut(_assertThisInitialized(r),i),r}return _createClass(n,[{key:"toString",value:function(){return lt(this._root)}}]),n}(Je);function ut(e,t){t.value._routerState=e,t.children.forEach(function(t){return ut(e,t)})}function lt(e){var t=e.children.length>0?" { ".concat(e.children.map(lt).join(", ")," } "):"";return"".concat(e.value).concat(t)}function ct(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ye(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ye(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&pt(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(vt);if(r&&r!==Ce(i))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),yt=function e(t,n,i){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function kt(e,t,n){if(e||(e=new Re([],{})),0===e.segments.length&&e.hasChildren())return bt(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=e.segments[r],s=n[i];if(vt(s))break;var u="".concat(s),l=i0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!Et(u,l,a))return o;i+=2}else{if(!Et(u,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},jt):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||ge)(n,e,t);if(!r)return Object.assign({},jt);var o={};we(r.posParams,function(e,t){o[t]=e.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Vt(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Ht(e,t,n)&&Bt(n)!==de})}(e,n,i)){var o=new Re(t,function(e,t,n,i){var r={};r[de]=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,a=_createForOfIteratorHelper(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&Bt(s)!==de){var u=new Re([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,r[Bt(s)]=u}}}catch(l){a.e(l)}finally{a.f()}return r}(e,t,i,new Re(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Ht(e,t,n)})}(e,n,i)){var a=new Re(e.segments,function(e,t,n,i,r,o){var a,s={},u=_createForOfIteratorHelper(i);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(Ht(e,n,l)&&!r[Bt(l)]){var c=new Re([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[Bt(l)]=c}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new Re(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Ht(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function zt(e,t,n,i){return!!(Bt(e)===i||i!==de&&Ht(t,n,e))&&("**"===e.path||qt(t,e,n).matched)}function Yt(e,t,n){return 0===t.length&&!e.children[n]}var Gt=function e(t){_classCallCheck(this,e),this.segmentGroup=t||null},Kt=function e(t){_classCallCheck(this,e),this.urlTree=t};function Wt(e){return new c.y(function(t){return t.error(new Gt(e))})}function Qt(e){return new c.y(function(t){return t.error(new Kt(e))})}function Jt(e){return new c.y(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var Xt=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(r.h0i)}return _createClass(e,[{key:"apply",value:function(){var e=this,t=Vt(this.urlTree.root,[],[],this.config).segmentGroup,n=new Re(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,de).pipe((0,q.U)(function(t){return e.createUrlTree($t(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(b(function(t){if(t instanceof Kt)return e.allowRedirects=!1,e.match(t.urlTree);throw t instanceof Gt?e.noMatchError(t):t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,de).pipe((0,q.U)(function(n){return t.createUrlTree($t(n),e.queryParams,e.fragment)})).pipe(b(function(e){throw e instanceof Gt?t.noMatchError(e):e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new Re([],_defineProperty({},de,e)):e;return new Ie(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe((0,q.U)(function(e){return new Re([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],s=0,u=Object.keys(n.children);s=2;return function(i){return i.pipe(e?(0,x.h)(function(t,n){return e(t,n,i)}):F.y,S(1),n?D(t):T(function(){return new o}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,u){var l=this;return(0,a.D)(n).pipe((0,z.b)(function(o){return l.expandSegmentAgainstRoute(e,t,n,o,i,r,u).pipe(b(function(e){if(e instanceof Gt)return(0,s.of)(null);throw e}))}),U(function(e){return!!e}),b(function(e,n){if(e instanceof o||"EmptyError"===e.name){if(Yt(t,i,r))return(0,s.of)(new Re([],{}));throw new Gt(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return zt(i,t,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):Wt(t):Wt(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Qt(o):this.lineralizeSegments(n,o).pipe((0,Y.zg)(function(n){var o=new Re(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=qt(t,i,r),u=s.matched,l=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!u)return Wt(t);var f=this.applyRedirectCommands(l,i.redirectTo,h);return i.redirectTo.startsWith("/")?Qt(f):this.lineralizeSegments(i,f).pipe((0,Y.zg)(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,s.of)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe((0,q.U)(function(e){return n._loadedConfig=e,new Re(i,{})})):(0,s.of)(new Re(i,{}));var a=qt(t,n,i),u=a.matched,l=a.consumedSegments,c=a.lastChild;if(!u)return Wt(t);var h=i.slice(c);return this.getChildConfig(e,n,i).pipe((0,Y.zg)(function(e){var i=e.module,a=e.routes,u=Vt(t,l,h,a),c=u.segmentGroup,f=u.slicedSegments,d=new Re(c.segments,c.children);if(0===f.length&&d.hasChildren())return o.expandChildren(i,a,d).pipe((0,q.U)(function(e){return new Re(l,e)}));if(0===a.length&&0===f.length)return(0,s.of)(new Re(l,{}));var p=Bt(n)===r;return o.expandSegment(i,d,a,f,p?de:r,!0).pipe((0,q.U)(function(e){return new Re(l.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?(0,s.of)(new Ot(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?(0,s.of)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe((0,Y.zg)(function(n){return n?i.configLoader.load(e.injector,t).pipe((0,q.U)(function(e){return t._loadedConfig=e,e})):(r=t,new c.y(function(e){return e.error(me("Cannot load children because the guard of the route \"path: '".concat(r.path,"'\" returned false")))}));var r})):(0,s.of)(new Ot([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;if(!r||0===r.length)return(0,s.of)(!0);var o=r.map(function(i){var r,o,a=e.get(i);if((o=a)&&Tt(o.canLoad))r=a.canLoad(t,n);else{if(!Tt(a))throw new Error("Invalid CanLoad guard");r=a(t,n)}return xe(r)});return(0,s.of)(o).pipe(Rt(),(0,G.b)(function(e){if(Pt(e)){var t=me('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),(0,q.U)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,s.of)(n);if(i.numberOfChildren>1||!i.children[de])return Jt(e.redirectTo);i=i.children[de]}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new Ie(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return we(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return we(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new Re(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return e}}]),e}();function $t(e){for(var t={},n=0,i=Object.keys(e.children);n0||o.hasChildren())&&(t[r]=o)}return function(e){if(1===e.numberOfChildren&&e.children[de]){var t=e.children[de];return new Re(e.segments.concat(t.segments),t.children)}return e}(new Re(e.segments,t))}var en=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},tn=function e(t,n){_classCallCheck(this,e),this.component=t,this.route=n};function nn(e,t,n){var i=e._root;return on(i,t?t._root:null,n,[i.value])}function rn(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function on(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=tt(t);return e.children.forEach(function(e){(function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Me(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Me(e.url,t.url)||!ye(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ht(e,t)||!ye(e.queryParams,t.queryParams);case"paramsChange":default:return!ht(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new en(i)):(o.data=a.data,o._resolvedData=a._resolvedData),on(e,t,o.component?s?s.children:null:n,i,r),u&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new tn(s.outlet.component,a))}else a&&an(t,s,r),r.canActivateChecks.push(new en(i)),on(e,null,o.component?s?s.children:null:n,i,r)})(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),we(o,function(e,t){return an(e,n.getContext(t),r)}),r}function an(e,t,n){var i=tt(e),r=e.value;we(i,function(e,i){an(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new tn(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var sn=function e(){_classCallCheck(this,e)};function un(e){return new c.y(function(t){return t.error(e)})}var ln=function(){function e(t,n,i,r,o,a){_classCallCheck(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return _createClass(e,[{key:"recognize",value:function(){var e=Vt(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,de);if(null===t)return null;var n=new at([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},de,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new et(n,t),r=new st(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=ot(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i0?Ce(n).parameters:{};r=new at(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dn(e),Bt(e),e.component,e,hn(t),fn(t)+n.length,pn(e))}else{var u=qt(t,e,n);if(!u.matched)return null;o=u.consumedSegments,a=n.slice(u.lastChild),r=new at(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dn(e),Bt(e),e.component,e,hn(t),fn(t)+o.length,pn(e))}var l,c=(l=e).children?l.children:l.loadChildren?l._loadedConfig.routes:[],h=Vt(t,o,a,c.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),f=h.segmentGroup,d=h.slicedSegments;if(0===d.length&&f.hasChildren()){var p=this.processChildren(c,f);return null===p?null:[new et(r,p)]}if(0===c.length&&0===d.length)return[new et(r,[])];var v=Bt(e)===i,_=this.processSegment(c,f,d,v?de:i);return null===_?null:[new et(r,_)]}}]),e}();function cn(e){var t,n=[],i=new Set,r=_createForOfIteratorHelper(e);try{var o=function(){var e,r=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(r))return n.push(r),"continue";var o=n.find(function(e){return r.value.routeConfig===e.value.routeConfig});void 0!==o?((e=o.children).push.apply(e,_toConsumableArray(r.children)),i.add(o)):n.push(r)};for(r.s();!(t=r.n()).done;)o()}catch(c){r.e(c)}finally{r.f()}var a,s=_createForOfIteratorHelper(i);try{for(s.s();!(a=s.n()).done;){var u=a.value,l=cn(u.children);n.push(new et(u.value,l))}}catch(c){s.e(c)}finally{s.f()}return n.filter(function(e){return!i.has(e)})}function hn(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function fn(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function dn(e){return e.data||{}}function pn(e){return e.resolve||{}}function vn(e){return(0,V.w)(function(t){var n=e(t);return n?(0,a.D)(n).pipe((0,q.U)(function(){return t})):(0,s.of)(t)})}var _n=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),mn=new r.OlP("ROUTES"),gn=function(){function e(t,n,i,r){_classCallCheck(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return _createClass(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe((0,q.U)(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var o=i.create(e);return new Ot(be(o.injector.get(mn,void 0,r.XFs.Self|r.XFs.Optional)).map(Ut),o)}),b(function(e){throw t._loader$=void 0,e}));return t._loader$=new p.c(i,function(){return new v.xQ}).pipe((0,K.x)()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?(0,a.D)(this.loader.load(e)):xe(e()).pipe((0,Y.zg)(function(e){return e instanceof r.YKP?(0,s.of)(e):(0,a.D)(t.compiler.compileModuleAsync(e))}))}}]),e}(),yn=function e(){_classCallCheck(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new kn,this.attachRef=null},kn=function(){function e(){_classCallCheck(this,e),this.contexts=new Map}return _createClass(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new yn,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),bn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Cn(e){throw e}function wn(e,t,n){return t.parse("/")}function xn(e,t){return(0,s.of)(null)}var En={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Sn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},An=function(){var e=function(){function e(t,n,i,o,a,s,l,c){var h=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=o,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new v.xQ,this.errorHandler=Cn,this.malformedUriErrorHandler=wn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:xn,afterPreactivation:xn},this.urlHandlingStrategy=new bn,this.routeReuseStrategy=new _n,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=a.get(r.h0i),this.console=a.get(r.c2e);var f=a.get(r.R0b);this.isNgZoneEnabled=f instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Ie(new Re([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new gn(s,l,function(e){return h.triggerEvent(new ae(e))},function(e){return h.triggerEvent(new se(e))}),this.routerState=it(this.currentUrlTree,this.rootComponentType),this.transitions=new u.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(e,[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe((0,x.h)(function(e){return 0!==e.id}),(0,q.U)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),(0,V.w)(function(e){var i=!1,r=!1;return(0,s.of)(e).pipe((0,G.b)(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,V.w)(function(e){var i=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString(),o=("reload"===t.onSameUrlNavigation||i)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl);if(On(e.source)&&(t.browserUrlTree=e.rawUrl),o)return(0,s.of)(e).pipe((0,V.w)(function(e){var i=t.transitions.getValue();return n.next(new J(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?d.E:Promise.resolve(e)}),function(e,t,n,i){return(0,V.w)(function(r){return function(e,t,n,i,r){return new Xt(e,t,n,i,r).apply()}(e,t,n,r.extractedUrl,i).pipe((0,q.U)(function(e){return Object.assign(Object.assign({},r),{urlAfterRedirects:e})}))})}(t.ngModule.injector,t.configLoader,t.urlSerializer,t.config),(0,G.b)(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,o,a){return(0,Y.zg)(function(i){return function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var u=new ln(e,t,n,i,o,a).recognize();return null===u?un(new sn):(0,s.of)(u)}catch(r){return un(r)}}(e,n,i.urlAfterRedirects,(u=i.urlAfterRedirects,t.serializeUrl(u)),o,a).pipe((0,q.U)(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var u})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),(0,G.b)(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,e),t.browserUrlTree=e.urlAfterRedirects);var i=new te(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(i&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var a=e.id,u=e.extractedUrl,l=e.source,c=e.restoredState,h=e.extras,f=new J(a,t.serializeUrl(u),l,c);n.next(f);var p=it(u,t.rootComponentType).snapshot;return(0,s.of)(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:u,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),d.E}),vn(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),(0,G.b)(function(e){var n=new ne(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,q.U)(function(e){return Object.assign(Object.assign({},e),{guards:nn(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return(0,Y.zg)(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,u=o.canActivateChecks,l=o.canDeactivateChecks;return 0===l.length&&0===u.length?(0,s.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return(0,a.D)(e).pipe((0,Y.zg)(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,s.of)(!0);var a=o.map(function(o){var a,s=rn(o,t,r);if(function(e){return e&&Tt(e.canDeactivate)}(s))a=xe(s.canDeactivate(e,t,n,i));else{if(!Tt(s))throw new Error("Invalid CanDeactivate guard");a=xe(s(e,t,n,i))}return a.pipe(U())});return(0,s.of)(a).pipe(Rt())}(e.component,e.route,n,t,i)}),U(function(e){return!0!==e},!0))}(l,i,r,e).pipe((0,Y.zg)(function(n){return n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,i){return(0,a.D)(t).pipe((0,z.b)(function(t){return(0,h.z)(function(e,t){return null!==e&&t&&t(new ue(e)),(0,s.of)(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new ce(e)),(0,s.of)(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return(0,f.P)(function(){var r=t.guards.map(function(r){var o,a=rn(r,t.node,n);if(function(e){return e&&Tt(e.canActivateChild)}(a))o=xe(a.canActivateChild(i,e));else{if(!Tt(a))throw new Error("Invalid CanActivateChild guard");o=xe(a(i,e))}return o.pipe(U())});return(0,s.of)(r).pipe(Rt())})});return(0,s.of)(r).pipe(Rt())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return(0,s.of)(!0);var r=i.map(function(i){return(0,f.P)(function(){var r,o=rn(i,t,n);if(function(e){return e&&Tt(e.canActivate)}(o))r=xe(o.canActivate(t,e));else{if(!Tt(o))throw new Error("Invalid CanActivate guard");r=xe(o(t,e))}return r.pipe(U())})});return(0,s.of)(r).pipe(Rt())}(e,t.route,n))}),U(function(e){return!0!==e},!0))}(i,u,e,t):(0,s.of)(n)}),(0,q.U)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),(0,G.b)(function(e){if(Pt(e.guardsResult)){var n=me('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new ie(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),(0,x.h)(function(e){return!!e.guardsResult||(t.restoreHistory(e),t.cancelNavigationTransition(e,""),!1)}),vn(function(e){if(e.guards.canActivateChecks.length)return(0,s.of)(e).pipe((0,G.b)(function(e){var n=new re(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,V.w)(function(e){var n=!1;return(0,s.of)(e).pipe(function(e,t){return(0,Y.zg)(function(n){var i=n.targetSnapshot,r=n.guards.canActivateChecks;if(!r.length)return(0,s.of)(n);var o=0;return(0,a.D)(r).pipe((0,z.b)(function(n){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return(0,s.of)({});var o={};return(0,a.D)(r).pipe((0,Y.zg)(function(r){return function(e,t,n,i){var r=rn(e,t,i);return xe(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe((0,G.b)(function(e){o[r]=e}))}),S(1),(0,Y.zg)(function(){return Object.keys(o).length===r.length?(0,s.of)(o):d.E}))}(e._resolve,e,t,i).pipe((0,q.U)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),ot(e,n).resolve),null}))}(n.route,i,e,t)}),(0,G.b)(function(){return o++}),S(1),(0,Y.zg)(function(e){return o===r.length?(0,s.of)(n):d.E}))})}(t.paramsInheritanceStrategy,t.ngModule.injector),(0,G.b)({next:function(){return n=!0},complete:function(){n||(t.restoreHistory(e),t.cancelNavigationTransition(e,"At least one route resolver didn't emit any value."))}}))}),(0,G.b)(function(e){var n=new oe(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),vn(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),(0,q.U)(function(e){var n=function(e,t,n){var i=ft(e,t._root,n?n._root:void 0);return new nt(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),(0,G.b)(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,e),t.browserUrlTree=e.urlAfterRedirects)}),function(e,t,n){return(0,q.U)(function(i){return new St(t,i.targetRouterState,i.currentRouterState,n).activate(e),i})}(t.rootContexts,t.routeReuseStrategy,function(e){return t.triggerEvent(e)}),(0,G.b)({next:function(){i=!0},complete:function(){i=!0}}),function(e){return function(t){return t.lift(new Z(e))}}(function(){if(!i&&!r){var n="Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId);"replace"===t.canceledNavigationResolution?(t.restoreHistory(e),t.cancelNavigationTransition(e,n)):t.cancelNavigationTransition(e,n)}t.currentNavigation=null}),b(function(i){if(r=!0,function(e){return e&&e[_e]}(i)){var o=Pt(i.url);o||(t.navigated=!0,t.restoreHistory(e,!0));var a=new $(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(a),o?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree),r={skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||On(e.source)};t.scheduleNavigation(n,"imperative",null,r,{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.restoreHistory(e,!0);var s=new ee(e.id,t.serializeUrl(e.extractedUrl),i);n.next(s);try{e.resolve(t.errorHandler(i))}catch(a){e.reject(a)}}return d.E}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return t.transitionId!==e.transitionId||!n||!("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source)}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){Lt(e),this.config=e.map(Ut),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,s=n||this.routerState.root,u=a?this.currentUrlTree.fragment:r,l=null;switch(o){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(e,t,n,i,r){if(0===n.length)return _t(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new gt(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return we(i.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(_toConsumableArray(e),[{outlets:o}])}if(i.segmentPath)return[].concat(_toConsumableArray(e),[i.segmentPath])}return"string"!=typeof i?[].concat(_toConsumableArray(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(_toConsumableArray(e),[i])},[]);return new gt(n,t,i)}(n);if(o.toRoot())return _t(t.root,new Re([],{}),t,i,r);var a=function(e,t,n){if(e.isAbsolute)return new yt(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new yt(i,i===t.root,0)}var r=pt(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new yt(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?bt(a.segmentGroup,a.index,o.commands):kt(a.segmentGroup,a.index,o.commands);return _t(a.segmentGroup,s,t,i,r)}(s,this.currentUrlTree,e,l,null!=u?u:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Pt(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(t=this.currentNavigation)||void 0===t?void 0:t.finalUrl)||0===r?this.currentUrlTree===(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,t){var n=new $(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(n),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":t}:{navigationId:e}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.DyG),r.LFG(Le),r.LFG(kn),r.LFG(i.Ye),r.LFG(r.zs3),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(void 0))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}();function On(e){return"imperative"!==e}var Tn=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new v.xQ,null==i&&r.setAttribute(o.nativeElement,"tabindex","0")}return _createClass(e,[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(An),r.Y36(rt),r.$8M("tabindex"),r.Y36(r.Qsj),r.Y36(r.SBq))},e.\u0275dir=r.lG2({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&r.NdJ("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),e}(),Pn=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.onChanges=new v.xQ,this.subscription=t.events.subscribe(function(e){e instanceof X&&r.updateTargetUrlAndHref()})}return _createClass(e,[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,i,r){if(0!==e||t||n||i||r||"string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(An),r.Y36(rt),r.Y36(i.S$))},e.\u0275dir=r.lG2({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&r.NdJ("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(r.Ikx("href",t.href,r.LSH),r.uIk("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),e}();function In(e){return""===e||!!e}var Rn=function(){var e=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.name=o||de,t.onChildOutletCreated(this.name,this)}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new Dn(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(kn),r.Y36(r.s_b),r.Y36(r._Vd),r.$8M("name"),r.Y36(r.sBO))},e.\u0275dir=r.lG2({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),Dn=function(){function e(t,n,i){_classCallCheck(this,e),this.route=t,this.childContexts=n,this.parent=i}return _createClass(e,[{key:"get",value:function(e,t){return e===rt?this.route:e===kn?this.childContexts:this.parent.get(e,t)}}]),e}(),Mn=function e(){_classCallCheck(this,e)},Ln=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return(0,s.of)(null)}}]),e}(),Fn=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new gn(n,i,function(e){return t.triggerEvent(new ae(e))},function(e){return t.triggerEvent(new se(e))})}return _createClass(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe((0,x.h)(function(e){return e instanceof X}),(0,z.b)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(r.h0i);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var s=o._loadedConfig;i.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(e,o)):o.children&&i.push(this.processRoutes(e,o.children))}}catch(u){r.e(u)}finally{r.f()}return(0,a.D)(i).pipe((0,W.J)(),(0,q.U)(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?(0,s.of)(t._loadedConfig):n.loader.load(e.injector,t)).pipe((0,Y.zg)(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(An),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(Mn))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Nn=function(){var e=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof J?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof X&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof fe&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new fe(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(An),r.LFG(i.EM),r.LFG(void 0))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Un=new r.OlP("ROUTER_CONFIGURATION"),Bn=new r.OlP("ROUTER_FORROOT_GUARD"),Zn=[i.Ye,{provide:Le,useClass:Fe},{provide:An,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new An(null,e,t,n,i,r,o,be(a));return u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,c),s.enableTracing&&c.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),c},deps:[Le,kn,i.Ye,r.zs3,r.v3s,r.Sil,mn,Un,[function(){return function e(){_classCallCheck(this,e)}}(),new r.FiY],[function(){return function e(){_classCallCheck(this,e)}}(),new r.FiY]]},kn,{provide:rt,useFactory:function(e){return e.routerState.root},deps:[An]},{provide:r.v3s,useClass:r.EAV},Fn,Ln,function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return t().pipe(b(function(){return(0,s.of)(null)}))}}]),e}(),{provide:Un,useValue:{enableTracing:!1}}];function jn(){return new r.PXZ("Router",An)}var qn=function(){var e=function(){function e(t,n){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Zn,Yn(t),{provide:Bn,useFactory:zn,deps:[[An,new r.FiY,new r.tp0]]},{provide:Un,useValue:n||{}},{provide:i.S$,useFactory:Hn,deps:[i.lw,[new r.tBr(i.mr),new r.FiY],Un]},{provide:Nn,useFactory:Vn,deps:[An,i.EM,Un]},{provide:Mn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ln},{provide:r.PXZ,multi:!0,useFactory:jn},[Gn,{provide:r.ip1,multi:!0,useFactory:Kn,deps:[Gn]},{provide:Qn,useFactory:Wn,deps:[Gn]},{provide:r.tb,multi:!0,useExisting:Qn}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Yn(t)]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(Bn,8),r.LFG(An,8))},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}();function Vn(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Nn(e,t,n)}function Hn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new i.Do(e,t):new i.b0(e,t)}function zn(e){return"guarded"}function Yn(e){return[{provide:r.deG,multi:!0,useValue:e},{provide:mn,multi:!0,useValue:e}]}var Gn=function(){var e=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new v.xQ}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(i.V_,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(An),r=e.injector.get(Un);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?(0,s.of)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Un),n=this.injector.get(Fn),i=this.injector.get(Nn),o=this.injector.get(An),a=this.injector.get(r.z2F);e===a.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&o.initialNavigation(),n.setUpPreloading(),i.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.zs3))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}();function Kn(e){return e.appInitializer.bind(e)}function Wn(e){return e.bootstrapListener.bind(e)}var Qn=new r.OlP("Router Initializer")},6215:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var i=n(9765),r=n(7971),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._value=e,i}return _createClass(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=_get(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.N;return this._value}},{key:"next",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=e)}}]),n}(i.xQ)},1593:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var i=n(9193),r=n(5917),o=n(7574),a=function(){function e(t,n,i){_classCallCheck(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,r.of)(this.value);case"E":return e=this.error,new o.y(function(t){return t.error(e)});case"C":return(0,i.c)()}var e;throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();a.completeNotification=new a("C"),a.undefinedValueNotification=new a("N",void 0)},7574:function(e,t,n){"use strict";n.d(t,{y:function(){return c}});var i,r=n(7393),o=n(9181),a=n(6490),s=n(6554),u=n(4487),l=n(2494),c=((i=function(e){function t(e){_classCallCheck(this,t),this._isScalar=!1,e&&(this._subscribe=e)}return _createClass(t,[{key:"lift",value:function(e){var n=new t;return n.source=this,n.operator=e,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,s=function(e,t,n){if(e){if(e instanceof r.L)return e;if(e[o.b])return e[o.b]()}return e||t||n?new r.L(e,t,n):new r.L(a.c)}(e,t,n);if(s.add(i?i.call(s,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),l.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){l.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,i=t.destination,o=t.isStopped;if(n||o)return!1;e=i&&i instanceof r.L?i:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=h(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:e,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n4&&void 0!==arguments[4]?arguments[4]:new s(e,n,i);if(!r.closed)return t instanceof l.y?t.subscribe(r):(0,u.s)(t)(r)}var h=n(6693),f={};function d(){for(var e=arguments.length,t=new Array(e),n=0;n1?Array.prototype.slice.call(arguments):e)},i,n)})}function u(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(t,n),o=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,h=e.length;c1&&"number"==typeof t[t.length-1]&&(s=t.pop())):"number"==typeof l&&(s=t.pop()),null===u&&1===t.length&&t[0]instanceof i.y?t[0]:(0,o.J)(s)((0,a.n)(t,u))}},5917:function(e,t,n){"use strict";n.d(t,{of:function(){return a}});var i=n(4869),r=n(6693),o=n(4087);function a(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:i.P;return function(e){return function(t){return t.lift(new o(e))}}(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=-1;return(0,u.k)(t)?r=Number(t)<1?1:Number(t):(0,l.K)(t)&&(n=t),(0,l.K)(n)||(n=i.P),new s.y(function(t){var i=(0,u.k)(e)?e:+e-n.now();return n.schedule(c,i,{index:0,period:r,subscriber:t})})}(e,t)})}},4612:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var i=n(9773);function r(e,t){return(0,i.zg)(e,t,1)}},4395:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var i=n(7393),r=n(3637);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P;return function(n){return n.lift(new a(e,t))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.dueTime=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return _createClass(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(u,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(i.L);function u(e){e.debouncedNext()}},7519:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var i=n(7393);function r(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.compare=t,this.keySelector=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.compare,this.keySelector))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return _createClass(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(n){return this.destination.error(n)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(i.L)},5435:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var i=n(7393);function r(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).predicate=i,o.thisArg=r,o.count=0,o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(i.L)},8002:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});var i=n(7393);function r(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||_assertThisInitialized(o),o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(i.L)},3282:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var i=n(9773),r=n(4487);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,i.zg)(r.y,e)}},9773:function(e,t,n){"use strict";n.d(t,{zg:function(){return a}});var i=n(8002),r=n(4402),o=n(5345);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(o){return o.pipe(a(function(n,o){return(0,r.D)(e(n,o)).pipe((0,i.U)(function(e,i){return t(n,e,o,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new s(e,n))})}var s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.project,this.concurrent))}}]),e}(),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(o.Ds)},1307:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var i=n(7393);function r(){return function(e){return e.lift(new o(e))}}var o=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new a(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).connectable=i,r}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}else this.connection=null}}]),n}(i.L)},3653:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var i=n(7393);function r(e){return function(t){return t.lift(new o(e))}}var o=function(){function e(t){_classCallCheck(this,e),this.total=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.total))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(i.L)},9761:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var i=n(8071),r=n(4869);function o(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"schedule",value:function(e){return this}}]),n}(n(5319).w))},6102:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var i,r=((i=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}()).now=function(){return Date.now()},i),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.now;return _classCallCheck(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==_assertThisInitialized(i)?n.delegate.now():o()})).actions=[],i.active=!1,i.scheduled=void 0,i}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(r)},4581:function(e,t,n){"use strict";n.d(t,{E:function(){return c}});var i=1,r=Promise.resolve(),o={};function a(e){return e in o&&(delete o[e],!0)}var s=function(e){var t=i++;return o[t]=!0,r.then(function(){return a(t)&&e()}),t},u=function(e){a(e)},l=n(6465),c=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=s(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(u(t),e.scheduled=void 0)}}]),n}(l.o))},3637:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var i=n(6465),r=new(n(6102).v)(i.o)},377:function(e,t,n){"use strict";n.d(t,{hZ:function(){return i}});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},7971:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},4449:function(e,t,n){"use strict";function i(e){setTimeout(function(){throw e},0)}n.d(t,{z:function(){return i}})},4487:function(e,t,n){"use strict";function i(e){return e}n.d(t,{y:function(){return i}})},9796:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var i=Array.isArray||function(e){return e&&"number"==typeof e.length}},9489:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},9105:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,{m:function(){return i}})},6561:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var i=n(9796);function r(e){return!(0,i.k)(e)&&e-parseFloat(e)+1>=0}},1555:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,{K:function(){return i}})},5639:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var i=n(7574);function r(e){return!!e&&(e instanceof i.y||"function"==typeof e.lift&&"function"==typeof e.subscribe)}},4072:function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,{t:function(){return i}})},4869:function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,{K:function(){return i}})},7444:function(e,t,n){"use strict";n.d(t,{s:function(){return c}});var i=n(5015),r=n(4449),o=n(377),a=n(6554),s=n(9489),u=n(4072),l=n(1555),c=function(e){if(e&&"function"==typeof e[a.L])return function(e){return function(t){var n=e[a.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}}(e);if((0,s.z)(e))return(0,i.V)(e);if((0,u.t)(e))return function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,r.z),t}}(e);if(e&&"function"==typeof e[o.hZ])return function(e){return function(t){for(var n=e[o.hZ]();;){var i=void 0;try{i=n.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}}(e);var t="You provided ".concat((0,l.K)(e)?"an invalid object":"'".concat(e,"'")," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.");throw new TypeError(t)}},5015:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var i=function(e){return function(t){for(var n=0,i=e.length;n0?(this.dialogRef.afterClosed().subscribe(function(t){e.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.P;return(!(0,a.k)(e)||e<0)&&(e=0),(!t||"function"!=typeof t.schedule)&&(t=o.P),new r.y(function(n){return n.add(t.schedule(s,e,{subscriber:n,counter:0,period:e})),n})}(1e3).subscribe(function(t){var n=e.data.autoclose-1e3*(t+1);e.setExtra(n),n<=0&&e.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(function(t){e.closed()}),this.subscription=this.data.checkClose.subscribe(function(t){window.setTimeout(function(){e.doClose()})}))}},{key:"initYesNo",value:function(){}},{key:"ngOnInit",value:function(){this.data.type===m.yesno?this.initYesNo():this.initAlert()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.Y36(i.so),u.Y36(i.WI))},e.\u0275cmp=u.Xpm({type:e,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"]],template:function(e,t){1&e&&(u._UZ(0,"h4",0),u.ALo(1,"safeHtml"),u._UZ(2,"mat-dialog-content",1),u.ALo(3,"safeHtml"),u.TgZ(4,"mat-dialog-actions"),u.YNc(5,d,4,1,"button",2),u.YNc(6,p,3,0,"button",2),u.YNc(7,v,3,0,"button",2),u.qZA()),2&e&&(u.Q6J("innerHtml",u.lcZ(1,5,t.data.title),u.oJD),u.xp6(2),u.Q6J("innerHTML",u.lcZ(3,7,t.data.body),u.oJD),u.xp6(3),u.Q6J("ngIf",0===t.data.type),u.xp6(1),u.Q6J("ngIf",1===t.data.type),u.xp6(1),u.Q6J("ngIf",1===t.data.type))},directives:[i.uh,i.xY,i.H8,l.O5,c.lW,i.ZT,h.P],pipes:[f.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}(),y=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialog=t}return _createClass(e,[{key:"alert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=window.innerWidth<800?"80%":"40%";return this.dialog.open(g,{width:r,data:{title:e,body:t,autoclose:n,checkClose:i,type:m.alert},disableClose:!0})}},{key:"yesno",value:function(e,t){var n=window.innerWidth<800?"80%":"40%";return this.dialog.open(g,{width:n,data:{title:e,body:t,type:m.yesno},disableClose:!0}).componentInstance.yesno}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.LFG(i.uw))},e.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac}),e}()},2870:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var i,r=n(7574),o=((i=function(){function e(t){_classCallCheck(this,e),this.api=t,this.delay=t.config.launcher_wait_time}return _createClass(e,[{key:"launchURL",value:function(t){var n=this,i="init",o=function(e){var t=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof e?t=e:403===e.status&&(t=django.gettext("Your session has expired. Please, login again")),window.setTimeout(function(){n.showAlert(django.gettext("Error"),t,5e3),403===e.status&&window.setTimeout(function(){n.api.logout()},5e3)})};if("udsa://"===t.substring(0,7)){var a=t.split("//")[1].split("/"),s=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new r.y(function(e){var t=0,r=function i(){s.componentInstance&&n.api.status(a[0],a[1]).subscribe(function(r){"ready"===r.status?(t?Date.now()-t>5*n.delay&&(s.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),s.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(t=Date.now(),s.componentInstance.data.title=django.gettext("Service ready"),s.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(i,n.delay)):"accessed"===r.status?(s.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),e.next(!0),e.complete()):"running"===r.status?window.setTimeout(i,n.delay):(e.next(!0),e.complete(),o())},function(t){e.next(!0),e.complete(),o(t)})};window.setTimeout(function e(){if("init"===i)window.setTimeout(e,n.delay);else{if("error"===i||"stop"===i)return;window.setTimeout(r)}})}));this.api.enabler(a[0],a[1]).subscribe(function(e){if(e.error)i="error",n.api.gui.alert(django.gettext("Error launching service"),e.error);else{if(e.url.startsWith("/"))return s.componentInstance&&s.componentInstance.close(),i="stop",void n.launchURL(e.url);"https:"===window.location.protocol&&(e.url=e.url.replace("uds://","udss://")),i="enabled",n.doLaunch(e.url)}},function(e){n.api.logout()})}else var u=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new r.y(function(i){window.setTimeout(function r(){u.componentInstance&&n.api.transportUrl(t).subscribe(function(t){if(t.url)if(i.next(!0),i.complete(),-1!==t.url.indexOf("o_s_w=")){var a=/(.*)&o_s_w=.*/.exec(t.url);window.location.href=a[1]}else{var s="global";if(-1!==t.url.indexOf("o_n_w=")){var u=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(t.url);u&&(s=u[2],t.url=u[1])}e.transportsWindow[s]&&e.transportsWindow[s].close(),e.transportsWindow[s]=window.open(t.url,"uds_trans_"+s)}else t.running?window.setTimeout(r,n.delay):(i.next(!0),i.complete(),o(t.error))},function(e){i.next(!0),i.complete(),o(e)})})}))}},{key:"showAlert",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return this.api.gui.alert(django.gettext("Launching service"),'

'+e+'

'+t+"

",n,i)}},{key:"doLaunch",value:function(e){var t=document.getElementById("hiddenUdsLauncherIFrame");if(null===t){var n=document.createElement("div");n.id="testID",n.innerHTML='',document.body.appendChild(n),t=document.getElementById("hiddenUdsLauncherIFrame")}t.contentWindow.location.href=e}}]),e}()).transportsWindow={},i)},4902:function _(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G:function(){return LoginComponent}});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3018),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(665),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8295),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9983),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8583),_angular_material_button__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1095),_angular_material_select__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7441),_angular_material_core__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2458),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template(e,t){if(1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&e){var n=t.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",n.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",n.name," ")}}function LoginComponent_div_22_Template(e,t){if(1&e){var n=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(1,"mat-form-field",17),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(2,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(e){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(n),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(e.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()}if(2&e){var i=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",i.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",i.auths)}}var LoginComponent=function(){var LoginComponent=function(){function LoginComponent(e){_classCallCheck(this,LoginComponent),this.api=e,this.title="UDS Enterprise",this.title=e.config.site_name,this.auths=e.config.authenticators.slice(0),this.auths.sort(function(e,t){return e.priority-t.priority})}return _createClass(LoginComponent,[{key:"ngOnInit",value:function(){document.getElementById("loginform").action=this.api.config.urls.login;var e=document.getElementById("token");e.name=this.api.csrfField,e.value=this.api.csrfToken,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}},{key:"changeAuth",value:function changeAuth(auth){this.auth.value=auth;var doCustomAuth=function doCustomAuth(data){eval(data)},_iterator22=_createForOfIteratorHelper(this.auths),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var Ke=_step22.value;Ke.id===auth&&Ke.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml(Ke.id).subscribe(function(e){return doCustomAuth(e)}))}}catch(err){_iterator22.e(err)}finally{_iterator22.f()}}},{key:"launch",value:function(){return document.getElementById("loginform").submit(),!0}}]),LoginComponent}();return LoginComponent.\u0275fac=function(e){return new(e||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return t.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(2,"input",2),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(10,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(11,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(12,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(17,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(18,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(24,"button",15),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",t.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",t.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",t.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,t.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_button__WEBPACK_IMPORTED_MODULE_7__.lW,_angular_material_select__WEBPACK_IMPORTED_MODULE_8__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_9__.ey],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent}()},7918:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var i,r=n(3018),o=((i=function(){function e(t){_classCallCheck(this,e),this.el=t}return _createClass(e,[{key:"ngOnInit",value:function(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}]),e}()).\u0275fac=function(e){return new(e||i)(r.Y36(r.SBq))},i.\u0275dir=r.lG2({type:i,selectors:[["uds-translate"]]}),i)},3513:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var i=function(){function e(t){_classCallCheck(this,e),this.user=t.user,this.role=t.role,this.admin=t.admin}return _createClass(e,[{key:"isStaff",get:function(){return"staff"===this.role||"admin"===this.role}},{key:"isAdmin",get:function(){return"admin"===this.role}},{key:"isLogged",get:function(){return null!=this.user}},{key:"isRestricted",get:function(){return"restricted"===this.role}}]),e}()},7540:function _(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return UDSApiService}});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3018),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1841),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3183),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8741),UDSApiService=function(){var UDSApiService=function(){function UDSApiService(e,t,n){_classCallCheck(this,UDSApiService),this.http=e,this.gui=t,this.router=n,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}return _createClass(UDSApiService,[{key:"config",get:function(){return udsData.config}},{key:"csrfField",get:function(){return csrf.csrfField}},{key:"csrfToken",get:function(){return csrf.csrfToken}},{key:"staffInfo",get:function(){return udsData.info}},{key:"plugins",get:function(){return udsData.plugins}},{key:"actors",get:function(){return udsData.actors}},{key:"errors",get:function(){return udsData.errors}},{key:"enabler",value:function(e,t){var n=this.config.urls.enabler.replace("param1",e).replace("param2",t);return this.http.get(n)}},{key:"status",value:function(e,t){var n=this.config.urls.status.replace("param1",e).replace("param2",t);return this.http.get(n)}},{key:"action",value:function(e,t){var n=this.config.urls.action.replace("param1",t).replace("param2",e);return this.http.get(n)}},{key:"transportUrl",value:function(e){return this.http.get(e)}},{key:"galleryImageURL",value:function(e){return this.config.urls.galleryImage.replace("param1",e)}},{key:"transportIconURL",value:function(e){return this.config.urls.transportIcon.replace("param1",e)}},{key:"staticURL",value:function(e){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+e:"/static/"+e}},{key:"getServicesInformation",value:function(){return this.http.get(this.config.urls.services)}},{key:"getErrorInformation",value:function(e){return this.http.get(this.config.urls.error.replace("9999",e))}},{key:"executeCustomJSForServiceLaunch",value:function executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}},{key:"gotoAdmin",value:function(){window.location.href=this.config.urls.admin}},{key:"logout",value:function(){window.location.href=this.config.urls.logout}},{key:"launchURL",value:function(e){this.plugin.launchURL(e)}},{key:"getAuthCustomHtml",value:function(e){return this.http.get(this.config.urls.customAuth+e,{responseType:"text"})}}]),UDSApiService}();return UDSApiService.\u0275fac=function(e){return new(e||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService}()},2340:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i={production:!0}},6445:function(e,t,n){"use strict";var i,r,o=n(9075),a=n(3018),s=n(9490),u=n(9765),l=n(739),c=n(8071),h=n(7574),f=n(5257),d=n(3653),p=n(4395),v=n(8002),_=n(9761),m=n(6782),g=n(521),y=((i=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||i)},i.\u0275mod=a.oAB({type:i}),i.\u0275inj=a.cJS({}),i),k=new Set,b=function(){var e=function(){function e(t){_classCallCheck(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):C}return _createClass(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!k.has(e))try{r||((r=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(r)),r.sheet&&(r.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),k.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(g.t4))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(g.t4))},token:e,providedIn:"root"}),e}();function C(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var w=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new u.xQ}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return x((0,s.Eq)(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=x((0,s.Eq)(e)).map(function(e){return t._registerQuery(e).observable}),i=(0,l.aj)(n);return(i=(0,c.z)(i.pipe((0,f.q)(1)),i.pipe((0,d.T)(1),(0,p.b)(0)))).pipe((0,v.U)(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new h.y(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe((0,_.O)(n),(0,v.U)(function(t){var n=t.matches;return{query:e,matches:n}}),(0,m.R)(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(b),a.LFG(a.R0b))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(b),a.LFG(a.R0b))},token:e,providedIn:"root"}),e}();function x(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var E=n(1841),S=n(8741),A=n(7540),O=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"canActivate",value:function(e,t){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(A.n))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),T=n(4902),P=n(7918),I=n(8583);function R(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw().download(e.url)}),a.TgZ(1,"div",7),a._UZ(2,"img",8),a.qZA(),a.TgZ(3,"div",9),a._uU(4),a.qZA(),a.TgZ(5,"div",10),a._uU(6),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.Tol(r.css(i)),a.xp6(2),a.Q6J("src",r.img(i.name),a.LSH),a.xp6(2),a.lnq(" ",r.legacy(i)," ",i.name," (",i.url.split(".").pop(),") "),a.xp6(2),a.hij(" ",i.description," ")}}var D=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"download",value:function(e){window.location.href=e}},{key:"img",value:function(e){return this.api.staticURL("modern/img/"+e+".png")}},{key:"css",value:function(e){var t=["plugin"];return e.legacy&&t.push("legacy"),t}},{key:"legacy",value:function(e){return e.legacy?"Legacy":""}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a.TgZ(3,"h1"),a.TgZ(4,"uds-translate"),a._uU(5,"UDS Client"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.YNc(7,R,7,7,"div",4),a.qZA(),a.TgZ(8,"div",5),a.TgZ(9,"ul"),a.TgZ(10,"li"),a.TgZ(11,"uds-translate"),a._uU(12,"Download UDS client for your platform"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(7),a.Q6J("ngForOf",t.api.plugins))},directives:[P.P,I.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem}"]}),e}(),M=n(6498);function L(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw().download(e.url)}),a.TgZ(1,"div",7),a._UZ(2,"img",8),a.qZA(),a._UZ(3,"div",9),a.ALo(4,"safeHtml"),a._UZ(5,"div",10),a.ALo(6,"safeHtml"),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.Tol(r.css(i.name)),a.xp6(2),a.Q6J("src",r.img(i.name),a.LSH),a.xp6(1),a.Q6J("innerHTML",a.lcZ(4,5,i.name),a.oJD),a.xp6(2),a.Q6J("innerHTML",a.lcZ(6,7,i.description),a.oJD)}}var F=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.actors=[];var t=[];this.api.actors.forEach(function(n){n.name.includes("legacy")?t.push(n):e.actors.push(n)}),t.forEach(function(t){e.actors.push(t)})}},{key:"download",value:function(e){window.location.href=e}},{key:"img",value:function(e){var t=e.split(".").pop().toLowerCase(),n="Linux";return"exe"===t?n="Windows":"pkg"===t&&(n="MacOS"),this.api.staticURL("modern/img/"+n+".png")}},{key:"css",value:function(e){var t=["actor"];return e.toLowerCase().includes("legacy")&&t.push("legacy"),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a.TgZ(3,"h1"),a.TgZ(4,"uds-translate"),a._uU(5,"Downloads"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.YNc(7,L,7,9,"div",4),a.qZA(),a.TgZ(8,"div",5),a.TgZ(9,"ul"),a.TgZ(10,"li"),a.TgZ(11,"uds-translate"),a._uU(12,"Always download the UDS actor matching your platform"),a.qZA(),a.qZA(),a.TgZ(13,"li"),a.TgZ(14,"uds-translate"),a._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(7),a.Q6J("ngForOf",t.actors))},directives:[P.P,I.sg],pipes:[M.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:bold;overflow:hidden}"]}),e}(),N=n(5319),U=n(8345),B=0,Z=new a.OlP("CdkAccordion"),j=function(){var e=function(){function e(){_classCallCheck(this,e),this._stateChanges=new u.xQ,this._openCloseAllActions=new u.xQ,this.id="cdk-accordion-"+B++,this._multi=!1}return _createClass(e,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=(0,s.Ig)(e)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[a._Bn([{provide:Z,useExisting:e}]),a.TTD]}),e}(),q=0,V=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=N.w.EMPTY,this.closed=new a.vpe,this.opened=new a.vpe,this.destroyed=new a.vpe,this.expandedChange=new a.vpe,this.id="cdk-accordion-child-"+q++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen(function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return _createClass(e,[{key:"expanded",get:function(){return this._expanded},set:function(e){e=(0,s.Ig)(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,s.Ig)(e)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe(function(t){e.disabled||(e.expanded=t)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Z,12),a.Y36(a.sBO),a.Y36(U.A8))},e.\u0275dir=a.lG2({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[a._Bn([{provide:Z,useValue:void 0}])]}),e}(),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),z=n(7636),Y=n(2458),G=n(9238),K=n(7519),W=n(5435),Q=n(6461),J=n(6237),X=n(9193),$=n(6682),ee=n(7238),te=["body"];function ne(e,t){}var ie=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],re=["mat-expansion-panel-header","*","mat-action-row"];function oe(e,t){if(1&e&&a._UZ(0,"span",2),2&e){var n=a.oxw();a.Q6J("@indicatorRotate",n._getExpandedState())}}var ae=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],se=["mat-panel-title","mat-panel-description","*"],ue=new a.OlP("MAT_ACCORDION"),le="225ms cubic-bezier(0.4,0.0,0.2,1)",ce={indicatorRotate:(0,ee.X$)("indicatorRotate",[(0,ee.SB)("collapsed, void",(0,ee.oB)({transform:"rotate(0deg)"})),(0,ee.SB)("expanded",(0,ee.oB)({transform:"rotate(180deg)"})),(0,ee.eR)("expanded <=> collapsed, void => collapsed",(0,ee.jt)(le))]),bodyExpansion:(0,ee.X$)("bodyExpansion",[(0,ee.SB)("collapsed, void",(0,ee.oB)({height:"0px",visibility:"hidden"})),(0,ee.SB)("expanded",(0,ee.oB)({height:"*",visibility:"visible"})),(0,ee.eR)("expanded <=> collapsed, void => collapsed",(0,ee.jt)(le))])},he=function(){var e=function e(t){_classCallCheck(this,e),this._template=t};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.Rgc))},e.\u0275dir=a.lG2({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e}(),fe=0,de=new a.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),pe=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,l,c){var h;return _classCallCheck(this,n),(h=t.call(this,e,i,r))._viewContainerRef=o,h._animationMode=l,h._hideToggle=!1,h.afterExpand=new a.vpe,h.afterCollapse=new a.vpe,h._inputChanges=new u.xQ,h._headerId="mat-expansion-panel-header-"+fe++,h._bodyAnimationDone=new u.xQ,h.accordion=e,h._document=s,h._bodyAnimationDone.pipe((0,K.x)(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){"void"!==e.fromState&&("expanded"===e.toState?h.afterExpand.emit():"collapsed"===e.toState&&h.afterCollapse.emit())}),c&&(h.hideToggle=c.hideToggle),h}return _createClass(n,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=(0,s.Ig)(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe((0,_.O)(null),(0,W.h)(function(){return e.expanded&&!e._portal}),(0,f.q)(1)).subscribe(function(){e._portal=new z.UE(e._lazyContent._template,e._viewContainerRef)})}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}]),n}(V);return e.\u0275fac=function(t){return new(t||e)(a.Y36(ue,12),a.Y36(a.sBO),a.Y36(U.A8),a.Y36(a.s_b),a.Y36(I.K0),a.Y36(J.Qb,8),a.Y36(de,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,he,5),2&e)&&(a.iGM(i=a.CRH())&&(t._lazyContent=i.first))},viewQuery:function(e,t){var n;(1&e&&a.Gf(te,5),2&e)&&(a.iGM(n=a.CRH())&&(t._body=n.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&a.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[a._Bn([{provide:ue,useValue:void 0}]),a.qOj,a.TTD],ngContentSelectors:re,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(a.F$t(ie),a.Hsn(0),a.TgZ(1,"div",0,1),a.NdJ("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),a.TgZ(3,"div",2),a.Hsn(4,1),a.YNc(5,ne,0,0,"ng-template",3),a.qZA(),a.Hsn(6,2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),a.uIk("aria-labelledby",t._headerId),a.xp6(4),a.Q6J("cdkPortalOutlet",t._portal))},directives:[z.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ce.bodyExpansion]},changeDetection:0}),e}(),ve=(0,Y.sb)(function e(){_classCallCheck(this,e)}),_e=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u){var l;_classCallCheck(this,n),(l=t.call(this)).panel=e,l._element=i,l._focusMonitor=r,l._changeDetectorRef=o,l._animationMode=s,l._parentChangeSubscription=N.w.EMPTY;var c=e.accordion?e.accordion._stateChanges.pipe((0,W.h)(function(e){return!(!e.hideToggle&&!e.togglePosition)})):X.E;return l.tabIndex=parseInt(u||"")||0,l._parentChangeSubscription=(0,$.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,W.h)(function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)}))).subscribe(function(){return l._changeDetectorRef.markForCheck()}),e.closed.pipe((0,W.h)(function(){return e._containsFocus()})).subscribe(function(){return r.focusVia(i,"program")}),a&&(l.expandedHeight=a.expandedHeight,l.collapsedHeight=a.collapsedHeight),l}return _createClass(n,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(e){switch(e.keyCode){case Q.L_:case Q.K5:(0,Q.Vb)(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._element).subscribe(function(t){t&&e.panel.accordion&&e.panel.accordion._handleHeaderFocus(e)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),n}(ve);return e.\u0275fac=function(t){return new(t||e)(a.Y36(pe,1),a.Y36(a.SBq),a.Y36(G.tE),a.Y36(a.sBO),a.Y36(de,8),a.Y36(J.Qb,8),a.$8M("tabindex"))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&a.NdJ("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(a.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),a.Udp("height",t._getHeaderHeight()),a.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[a.qOj],ngContentSelectors:se,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(a.F$t(ae),a.TgZ(0,"span",0),a.Hsn(1),a.Hsn(2,1),a.Hsn(3,2),a.qZA(),a.YNc(4,oe,1,1,"span",1)),2&e&&(a.xp6(4),a.Q6J("ngIf",t._showToggle()))},directives:[I.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[ce.indicatorRotate]},changeDetection:0}),e}(),me=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),e}(),ge=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e}(),ye=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._ownHeaders=new a.n_E,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return _createClass(n,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=(0,s.Ig)(e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe((0,_.O)(this._headers)).subscribe(function(t){e._ownHeaders.reset(t.filter(function(t){return t.panel.accordion===e})),e._ownHeaders.notifyOnChanges()}),this._keyManager=new G.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(e){this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),n}(j);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,_e,5),2&e)&&(a.iGM(i=a.CRH())&&(t._headers=i))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[a._Bn([{provide:ue,useExisting:t}]),a.qOj]}),t}(),ke=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[I.ez,Y.BQ,H,z.eL]]}),e}();function be(e,t){if(1&e&&(a.TgZ(0,"li"),a.TgZ(1,"uds-translate"),a._uU(2,"Detected proxy ip"),a.qZA(),a._uU(3),a.qZA()),2&e){var n=a.oxw(2);a.xp6(3),a.hij(": ",n.api.staffInfo.ip_proxy,"")}}function Ce(e,t){if(1&e&&(a.TgZ(0,"li"),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n)}}function we(e,t){if(1&e&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n)}}function xe(e,t){if(1&e&&(a.TgZ(0,"div",1),a.TgZ(1,"h1"),a.TgZ(2,"uds-translate"),a._uU(3,"Information"),a.qZA(),a.qZA(),a.TgZ(4,"mat-accordion"),a.TgZ(5,"mat-expansion-panel"),a.TgZ(6,"mat-expansion-panel-header",2),a.TgZ(7,"mat-panel-title"),a._uU(8," IPs "),a.qZA(),a.TgZ(9,"mat-panel-description"),a.TgZ(10,"uds-translate"),a._uU(11,"Client IP"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(12,"ol"),a.TgZ(13,"li"),a.TgZ(14,"uds-translate"),a._uU(15,"Client IP"),a.qZA(),a._uU(16),a.qZA(),a.YNc(17,be,4,1,"li",3),a.qZA(),a.qZA(),a.TgZ(18,"mat-expansion-panel"),a.TgZ(19,"mat-expansion-panel-header",2),a.TgZ(20,"mat-panel-title"),a.TgZ(21,"uds-translate"),a._uU(22,"Transports"),a.qZA(),a.qZA(),a.TgZ(23,"mat-panel-description"),a.TgZ(24,"uds-translate"),a._uU(25,"UDS transports for this client"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(26,"ol"),a.YNc(27,Ce,2,1,"li",4),a.qZA(),a.qZA(),a.TgZ(28,"mat-expansion-panel"),a.TgZ(29,"mat-expansion-panel-header",2),a.TgZ(30,"mat-panel-title"),a.TgZ(31,"uds-translate"),a._uU(32,"Networks"),a.qZA(),a.qZA(),a.TgZ(33,"mat-panel-description"),a.TgZ(34,"uds-translate"),a._uU(35,"UDS networks for this IP"),a.qZA(),a.qZA(),a.qZA(),a.YNc(36,we,2,1,"span",4),a._uU(37,"\xa0 "),a.qZA(),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.xp6(16),a.hij(": ",n.api.staffInfo.ip,""),a.xp6(1),a.Q6J("ngIf",n.api.staffInfo.ip_proxy!==n.api.staffInfo.ip),a.xp6(10),a.Q6J("ngForOf",n.api.staffInfo.transports),a.xp6(9),a.Q6J("ngForOf",n.api.staffInfo.networks)}}var Ee=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(e,t){1&e&&a.YNc(0,xe,38,4,"div",0),2&e&&a.Q6J("ngIf",t.api.staffInfo)},directives:[I.O5,P.P,ye,pe,_e,ge,me,I.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4}"]}),e}(),Se=n(2759),Ae=n(3342),Oe=n(8295),Te=n(9983),Pe=["input"],Ie=function(){var e=function(){function e(){_classCallCheck(this,e),this.updateEvent=new a.vpe}return _createClass(e,[{key:"ngAfterViewInit",value:function(){var e=this;(0,Se.R)(this.input.nativeElement,"keyup").pipe((0,W.h)(Boolean),(0,p.b)(600),(0,K.x)(),(0,Ae.b)(function(){return e.update(e.input.nativeElement.value)})).subscribe()}},{key:"update",value:function(e){this.updateEvent.emit(e.toLowerCase())}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-filter"]],viewQuery:function(e,t){var n;(1&e&&a.Gf(Pe,7),2&e)&&(a.iGM(n=a.CRH())&&(t.input=n.first))},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"mat-form-field",1),a.TgZ(2,"mat-label"),a.TgZ(3,"uds-translate"),a._uU(4,"Filter"),a.qZA(),a.qZA(),a._UZ(5,"input",2,3),a.TgZ(7,"i",4),a._uU(8,"search"),a.qZA(),a.qZA(),a.qZA())},directives:[Oe.KE,Oe.hX,P.P,Te.Nt,Oe.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),e}(),Re=n(5917),De=n(4581),Me=n(3190),Le=n(3637),Fe=n(7393),Ne=n(1593);function Ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Le.P,n=function(e){return e instanceof Date&&!isNaN(+e)}(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new Be(n,t))}}var Be=function(){function e(t,n){_classCallCheck(this,e),this.delay=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Ze(e,this.delay,this.scheduler))}}]),e}(),Ze=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return _createClass(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new je(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(Ne.P.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Ne.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(Fe.L),je=function e(t,n){_classCallCheck(this,e),this.time=t,this.notification=n},qe=n(625),Ve=n(9243),He=n(946),ze=["mat-menu-item",""];function Ye(e,t){1&e&&(a.O4$(),a.TgZ(0,"svg",2),a._UZ(1,"polygon",3),a.qZA())}var Ge=["*"];function Ke(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",0),a.NdJ("keydown",function(e){return a.CHM(n),a.oxw()._handleKeydown(e)})("click",function(){return a.CHM(n),a.oxw().closed.emit("click")})("@transformMenu.start",function(e){return a.CHM(n),a.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return a.CHM(n),a.oxw()._onAnimationDone(e)}),a.TgZ(1,"div",1),a.Hsn(2),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),a.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var We={transformMenu:(0,ee.X$)("transformMenu",[(0,ee.SB)("void",(0,ee.oB)({opacity:0,transform:"scale(0.8)"})),(0,ee.eR)("void => enter",(0,ee.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.oB)({opacity:1,transform:"scale(1)"}))),(0,ee.eR)("* => void",(0,ee.jt)("100ms 25ms linear",(0,ee.oB)({opacity:0})))]),fadeInItems:(0,ee.X$)("fadeInItems",[(0,ee.SB)("showing",(0,ee.oB)({opacity:1})),(0,ee.eR)("void => *",[(0,ee.oB)({opacity:0}),(0,ee.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Qe=new a.OlP("MatMenuContent"),Je=new a.OlP("MAT_MENU_PANEL"),Xe=(0,Y.Kr)((0,Y.Id)(function(){return function e(){_classCallCheck(this,e)}}())),$e=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s;return _classCallCheck(this,n),(s=t.call(this))._elementRef=e,s._focusMonitor=r,s._parentMenu=o,s._changeDetectorRef=a,s.role="menuitem",s._hovered=new u.xQ,s._focused=new u.xQ,s._highlighted=!1,s._triggersSubmenu=!1,o&&o.addItem&&o.addItem(_assertThisInitialized(s)),s}return _createClass(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t=this,n=Math.min(this._baseElevation+e,24),i="".concat(this._elevationPrefix).concat(n),r=Object.keys(this._classList).find(function(e){return e.startsWith(t._elevationPrefix)});(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe((0,_.O)(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(et))},e.\u0275dir=a.lG2({type:e,contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,Qe,5),a.Suo(n,$e,5),a.Suo(n,$e,4)),2&e)&&(a.iGM(i=a.CRH())&&(t.lazyContent=i.first),a.iGM(i=a.CRH())&&(t._allItems=i),a.iGM(i=a.CRH())&&(t.items=i))},viewQuery:function(e,t){var n;(1&e&&a.Gf(a.Rgc,5),2&e)&&(a.iGM(n=a.CRH())&&(t.templateRef=n.first))},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),it=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i,r))._elevationPrefix="mat-elevation-z",o._baseElevation=4,o}return n}(nt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(et))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&a.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[a._Bn([{provide:Je,useExisting:e}]),a.qOj],ngContentSelectors:Ge,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(a.F$t(),a.YNc(0,Ke,3,6,"ng-template"))},directives:[I.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[We.transformMenu,We.fadeInItems]},changeDetection:0}),e}(),rt=new a.OlP("mat-menu-scroll-strategy"),ot={provide:rt,deps:[qe.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},at=(0,g.i$)({passive:!0}),st=function(){var e=function(){function e(t,n,i,r,o,s,u,l){var c=this;_classCallCheck(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=u,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=N.w.EMPTY,this._hoverSubscription=N.w.EMPTY,this._menuCloseSubscription=N.w.EMPTY,this._handleTouchStart=function(e){(0,G.yG)(e)||(c._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new a.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof nt?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,at),s&&(s._triggersSubmenu=this.triggersSubmenu())}return _createClass(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),("click"===e||"tab"===e)&&t._parentMaterialMenu&&t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,at),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof nt&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof nt?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe((0,W.h)(function(e){return"void"===e.toState}),(0,f.q)(1),(0,m.R)(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new qe.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,u=a,l=n,c=i,h=0;this.triggersSubmenu()?(c=n="before"===this.menu.xPosition?"start":"end",i=l="end"===n?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",u="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:l,overlayY:o,offsetY:h},{originX:i,originY:s,overlayX:c,overlayY:o,offsetY:h},{originX:n,originY:u,overlayX:l,overlayY:a,offsetY:-h},{originX:i,originY:u,overlayX:c,overlayY:a,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Re.of)(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,W.h)(function(t){return t!==e._menuItemInstance}),(0,W.h)(function(){return e._menuOpen})):(0,Re.of)();return(0,$.T)(t,i,r,n)}},{key:"_handleMousedown",value:function(e){(0,G.X6)(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;(t===Q.K5||t===Q.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===Q.SV&&"ltr"===this.dir||t===Q.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,W.h)(function(t){return t===e._menuItemInstance&&!t.disabled}),Ue(0,De.E)).subscribe(function(){e._openedBy="mouse",e.menu instanceof nt&&e.menu._isAnimating?e.menu._animationDone.pipe((0,f.q)(1),Ue(0,De.E),(0,m.R)(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new z.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(a.s_b),a.Y36(rt),a.Y36(Je,8),a.Y36($e,10),a.Y36(He.Is,8),a.Y36(G.tE))},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&a.NdJ("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&a.uIk("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),ut=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[ot],imports:[Y.BQ]}),e}(),lt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[ot],imports:[[I.ez,Y.BQ,Y.si,qe.U8,ut],Ve.ZD,Y.BQ,ut]}),e}(),ct={tooltipState:(0,ee.X$)("state",[(0,ee.SB)("initial, void, hidden",(0,ee.oB)({opacity:0,transform:"scale(0)"})),(0,ee.SB)("visible",(0,ee.oB)({transform:"scale(1)"})),(0,ee.eR)("* => visible",(0,ee.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,ee.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,ee.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,ee.eR)("* => hidden",(0,ee.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.oB)({opacity:0})))])},ht="tooltip-panel",ft=(0,g.i$)({passive:!0}),dt=new a.OlP("mat-tooltip-scroll-strategy"),pt={provide:dt,deps:[qe.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},vt=new a.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),_t=function(){var e=function(){function e(t,n,i,r,o,a,s,l,c,h,f,d){var p=this;_classCallCheck(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=l,this._dir=h,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new u.xQ,this._handleKeydown=function(e){p._isTooltipVisible()&&e.keyCode===Q.hY&&!(0,Q.Vb)(e)&&(e.preventDefault(),e.stopPropagation(),p._ngZone.run(function(){return p.hide(0)}))},this._scrollStrategy=c,this._document=d,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe((0,m.R)(this._destroyed)).subscribe(function(){p._overlayRef&&p._updatePosition(p._overlayRef)}),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",p._handleKeydown)})}return _createClass(e,[{key:"position",get:function(){return this._position},set:function(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,s.Ig)(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,m.R)(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=_slicedToArray(t,2),i=n[0],r=n[1];e.removeEventListener(i,r,ft)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new z.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,m.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe((0,m.R)(this._destroyed)).subscribe(function(t){e._updateCurrentPositionClass(t.connectionPair),e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-").concat(ht),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,m.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,m.R)(this._destroyed)).subscribe(function(){var t;return null===(t=e._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var t=e.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,f.q)(1),(0,m.R)(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_updateCurrentPositionClass",value:function(e){var t,n=e.overlayY,i=e.originX,r=e.originY;if((t="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===r?"above":"below")!==this._currentPosition){var o=this._overlayRef;if(o){var a="".concat(this._cssClassPrefix,"-").concat(ht,"-");o.removePanelClass(a+this._currentPosition),o.addPanelClass(a+t)}this._currentPosition=t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=_slicedToArray(e,2),i=n[0],r=n[1];t._elementRef.nativeElement.addEventListener(i,r,ft)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t!==n&&!n.contains(t)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),("on"===e||!t.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(Ve.mF),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(g.t4),a.Y36(G.$s),a.Y36(G.tE),a.Y36(void 0),a.Y36(He.Is),a.Y36(void 0),a.Y36(I.K0))},e.\u0275dir=a.lG2({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),mt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u,l,c,h,f,d){var p;return _classCallCheck(this,n),(p=t.call(this,e,i,r,o,a,s,u,l,c,h,f,d))._tooltipComponent=yt,p}return n}(_t);return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(Ve.mF),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(g.t4),a.Y36(G.$s),a.Y36(G.tE),a.Y36(dt),a.Y36(He.Is,8),a.Y36(vt,8),a.Y36(I.K0))},e.\u0275dir=a.lG2({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[a.qOj]}),e}(),gt=function(){var e=function(){function e(t){_classCallCheck(this,e),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new u.xQ}return _createClass(e,[{key:"show",value:function(e){var t=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=void 0,t._onShow(),t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=void 0,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO))},e.\u0275dir=a.lG2({type:e}),e}(),yt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e))._breakpointObserver=i,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return n}(gt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO),a.Y36(w))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&a.Udp("zoom","visible"===t._visibility?1:null)},features:[a.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(a.TgZ(0,"div",0),a.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),a.ALo(1,"async"),a._uU(2),a.qZA()),2&e)&&(a.ekj("mat-tooltip-handset",null==(n=a.lcZ(1,5,t._isHandset))?null:n.matches),a.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),a.xp6(2),a.Oqu(t.message))},directives:[I.mk],pipes:[I.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ct.tooltipState]},changeDetection:0}),e}(),kt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[pt],imports:[[G.rt,I.ez,qe.U8,Y.BQ],Y.BQ,Ve.ZD]}),e}(),bt=n(1095);function Ct(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(2).launch(e)}),a.TgZ(1,"div",15),a._UZ(2,"img",9),a._uU(3),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw(2);a.xp6(2),a.Q6J("src",r.getTransportIcon(i.id),a.LSH),a.xp6(1),a.hij(" ",i.name," ")}}function wt(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).action("release")}),a.TgZ(1,"i",16),a._uU(2,"delete"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4," Release service"),a.qZA(),a.qZA()}}function xt(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).action("reset")}),a.TgZ(1,"i",16),a._uU(2,"refresh"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4," Reset service"),a.qZA(),a.qZA()}}function Et(e,t){if(1&e&&(a.TgZ(0,"button",17),a.TgZ(1,"uds-translate"),a._uU(2,"Connections"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(2);a.Q6J("matMenuTriggerFor",n)}}function St(e,t){if(1&e&&(a.TgZ(0,"button",17),a.TgZ(1,"uds-translate"),a._uU(2,"Actions"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(5);a.Q6J("matMenuTriggerFor",n)}}function At(e,t){if(1&e&&(a.TgZ(0,"button",18),a.TgZ(1,"i",16),a._uU(2,"menu"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(9);a.Q6J("matMenuTriggerFor",n)}}function Ot(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"mat-menu",null,1),a.YNc(3,Ct,4,2,"button",2),a.qZA(),a.TgZ(4,"mat-menu",null,3),a.YNc(6,wt,5,0,"button",4),a.YNc(7,xt,5,0,"button",4),a.qZA(),a.TgZ(8,"mat-menu",null,5),a.YNc(10,Et,3,1,"button",6),a.YNc(11,St,3,1,"button",6),a.qZA(),a.TgZ(12,"div",7),a.TgZ(13,"div",8),a.NdJ("click",function(){return a.CHM(n),a.oxw().launch(null)}),a._UZ(14,"img",9),a.qZA(),a.TgZ(15,"div",10),a.TgZ(16,"span",11),a._uU(17),a.qZA(),a.qZA(),a.TgZ(18,"div",12),a.YNc(19,At,3,1,"button",13),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(3),a.Q6J("ngForOf",i.service.transports),a.xp6(3),a.Q6J("ngIf",i.service.allow_users_remove),a.xp6(1),a.Q6J("ngIf",i.service.allow_users_reset),a.xp6(3),a.Q6J("ngIf",i.showTransportsMenu()),a.xp6(1),a.Q6J("ngIf",i.hasActions()),a.xp6(1),a.Q6J("ngClass",i.serviceClass)("matTooltipDisabled",""===i.serviceTooltip)("matTooltip",i.serviceTooltip),a.xp6(2),a.Q6J("src",i.serviceImage,a.LSH),a.xp6(2),a.Q6J("ngClass",i.serviceNameClass),a.xp6(1),a.Oqu(i.serviceName),a.xp6(2),a.Q6J("ngIf",i.hasMenu())}}var Tt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"serviceImage",get:function(){return this.api.galleryImageURL(this.service.imageId)}},{key:"serviceName",get:function(){var e=this.service.visual_name;return e.length>32&&(e=e.substring(0,29)+"..."),e}},{key:"serviceTooltip",get:function(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}},{key:"serviceClass",get:function(){var e=["service"];return null!=this.service.to_be_replaced?e.push("tobereplaced"):this.service.maintenance?e.push("maintenance"):this.service.not_accesible?e.push("forbidden"):this.service.in_use&&e.push("inuse"),e.length>1&&e.push("alert"),e}},{key:"serviceNameClass",get:function(){var e=[],t=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return t>=16&&e.push("small-"+t.toString()),e}},{key:"getTransportIcon",value:function(e){return this.api.transportIconURL(e)}},{key:"hasActions",value:function(){return this.service.allow_users_remove||this.service.allow_users_reset}},{key:"showTransportsMenu",value:function(){return this.service.transports.length>1&&this.service.show_transports}},{key:"hasMenu",value:function(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}},{key:"notifyNotLaunching",value:function(e){this.api.gui.alert('

'+django.gettext("Launcher")+"

",e)}},{key:"launch",value:function(e){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){var t=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching('

'+django.gettext("This service is currently not accesible due to schedule restrictions.")+'

'+t+'

')}else(null===e||!1===this.service.show_transports)&&(e=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(e.link)}},{key:"action",value:function(e){var t=this,n=("release"===e?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,i="release"===e?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(n,django.gettext("Are you sure?")).subscribe(function(r){r&&t.api.action(e,t.service.id).subscribe(function(e){e&&t.api.gui.alert(n,i)})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(e,t){1&e&&a.YNc(0,Ot,20,12,"div",0),2&e&&a.Q6J("ngIf",t.service.transports.length>0)},directives:[I.O5,it,I.sg,I.mk,mt,$e,P.P,st,bt.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:rgba(0,0,0,.22);display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22)}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;border-radius:1px;background-color:rgba(255,255,255,.8)}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:"Material Icons";font-weight:normal;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"}']}),e}();function Pt(e,t){1&e&&a._UZ(0,"uds-service",8),2&e&&a.Q6J("service",t.$implicit)}function It(e,t){if(1&e&&(a.TgZ(0,"mat-expansion-panel",1),a.TgZ(1,"mat-expansion-panel-header",2),a.TgZ(2,"mat-panel-title"),a.TgZ(3,"div",3),a._UZ(4,"img",4),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"mat-panel-description",5),a._uU(7),a.qZA(),a.qZA(),a.TgZ(8,"div",6),a.YNc(9,Pt,1,1,"uds-service",7),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.Q6J("expanded",n.expanded),a.xp6(1),a.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),a.xp6(3),a.Q6J("src",n.groupImage,a.LSH),a.xp6(1),a.hij(" ",n.group.name,""),a.xp6(2),a.hij(" ",n.group.comments," "),a.xp6(2),a.Q6J("ngForOf",n.sortedServices)}}var Rt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.expanded=!1}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"groupImage",get:function(){return this.api.galleryImageURL(this.group.imageUuid)}},{key:"hasVisibleServices",get:function(){return this.services.length>0}},{key:"sortedServices",get:function(){return this.services.sort(function(e,t){return e.name>t.name?1:e.name0&&void 0!==arguments[0]?arguments[0]:"";this.group=[];var n=null;this.servicesInformation.services.filter(function(e){return!t||e.visual_name.toLowerCase().includes(t)||e.group.name.toLowerCase().includes(t)}).sort(function(e,t){return e.group.priority!==t.group.priority?e.group.priority-t.group.priority:e.group.id>t.group.id?1:e.group.id=t.api.config.min_for_filter&&t.api.config.site_filter_on_top),a.xp6(3),a.Q6J("ngForOf",t.group),a.xp6(1),a.Q6J("ngIf",t.servicesInformation.services.length>=t.api.config.min_for_filter&&!t.api.config.site_filter_on_top))},directives:[I.O5,ye,I.sg,Ee,Ie,Rt],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),e}(),Ut=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.api=t,this.route=n}return _createClass(e,[{key:"ngOnInit",value:function(){this.getError()}},{key:"getError",value:function(){var e=this,t=this.route.snapshot.paramMap.get("id");"19"===t&&(this.returnUrl="/mfa"),this.error="",this.api.getErrorInformation(t).subscribe(function(t){e.error=t.error})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n),a.Y36(S.gz))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-error"]],decls:14,vars:2,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],["mat-raised-button","","color","warn",3,"routerLink"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.O4$(),a.TgZ(2,"svg",2),a._UZ(3,"path",3),a.qZA(),a.TgZ(4,"svg",4),a._UZ(5,"path",5),a.qZA(),a.qZA(),a.kcU(),a.TgZ(6,"h1",6),a.TgZ(7,"uds-translate"),a._uU(8,"An error has occurred"),a.qZA(),a.qZA(),a.TgZ(9,"p",7),a._uU(10),a.qZA(),a.TgZ(11,"a",8),a.TgZ(12,"uds-translate"),a._uU(13,"Return"),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(10),a.hij(" ",t.error," "),a.xp6(1),a.Q6J("routerLink",t.returnUrl))},directives:[P.P,bt.zs,S.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),e}(),Bt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.year=(new Date).getFullYear()}return _createClass(e,[{key:"ngOnInit",value:function(){this.year<2021&&(this.year=2021)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-about"]],decls:45,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"h1"),a._uU(2),a.qZA(),a.TgZ(3,"h3"),a.TgZ(4,"a",1),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"h4"),a.TgZ(7,"uds-translate"),a._uU(8,"You can access UDS Open Source code at"),a.qZA(),a.TgZ(9,"a",2),a._uU(10,"OpenUDS github repository"),a.qZA(),a.qZA(),a.TgZ(11,"div",3),a.TgZ(12,"h2"),a.TgZ(13,"uds-translate"),a._uU(14,"UDS has been developed using these components:"),a.qZA(),a.qZA(),a.TgZ(15,"ul"),a.TgZ(16,"li"),a.TgZ(17,"a",4),a._uU(18,"Python"),a.qZA(),a.qZA(),a.TgZ(19,"li"),a.TgZ(20,"a",5),a._uU(21,"TypeScript"),a.qZA(),a.qZA(),a.TgZ(22,"li"),a.TgZ(23,"a",6),a._uU(24,"Django"),a.qZA(),a.qZA(),a.TgZ(25,"li"),a.TgZ(26,"a",7),a._uU(27,"Angular"),a.qZA(),a.qZA(),a.TgZ(28,"li"),a.TgZ(29,"a",8),a._uU(30,"Guacamole"),a.qZA(),a.qZA(),a.TgZ(31,"li"),a.TgZ(32,"a",9),a._uU(33,"weasyprint"),a.qZA(),a.qZA(),a.TgZ(34,"li"),a.TgZ(35,"a",10),a._uU(36,"Crystal project icons"),a.qZA(),a.qZA(),a.TgZ(37,"li"),a.TgZ(38,"a",11),a._uU(39,"Flattr Icons"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(40,"p"),a.TgZ(41,"small"),a._uU(42,"* "),a.TgZ(43,"uds-translate"),a._uU(44,"If you find that we missed any component, please let us know"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(2),a.AsE("Universal Desktop Services ",t.api.config.version," build ",t.api.config.version_stamp,""),a.xp6(3),a.hij(" \xa9 2012-",t.year," Virtual Cable S.L.U."))},directives:[P.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:normal}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px}"]}),e}(),Zt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"h1"),a.TgZ(3,"uds-translate"),a._uU(4,"UDS Service launcher"),a.qZA(),a.qZA(),a.TgZ(5,"h4"),a.TgZ(6,"uds-translate"),a._uU(7,"The service you have requested is being launched."),a.qZA(),a.qZA(),a.TgZ(8,"h5"),a.TgZ(9,"uds-translate"),a._uU(10,"Please, note that reloading this page will not work."),a.qZA(),a.qZA(),a.TgZ(11,"h5"),a.TgZ(12,"uds-translate"),a._uU(13,"To relaunch service, you will have to do it from origin."),a.qZA(),a.qZA(),a.TgZ(14,"h6"),a.TgZ(15,"uds-translate"),a._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),a.qZA(),a.qZA(),a.TgZ(17,"h6"),a.TgZ(18,"uds-translate"),a._uU(19,"You can obtain it from the"),a.qZA(),a._uU(20,"\xa0"),a.TgZ(21,"a",2),a.TgZ(22,"uds-translate"),a._uU(23,"UDS Client download page"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA())},directives:[P.P,S.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:rgba(0,0,0,.22);padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:normal}"]}),e}(),jt=n(665),qt=n(8553),Vt=["input"],Ht=function(e){return{enterDuration:e}},zt=["*"],Yt=new a.OlP("mat-checkbox-default-options",{providedIn:"root",factory:Gt});function Gt(){return{color:"accent",clickAction:"check-indeterminate"}}var Kt=0,Wt={color:"accent",clickAction:"check-indeterminate"},Qt={provide:jt.JU,useExisting:(0,a.Gpc)(function(){return $t}),multi:!0},Jt=function e(){_classCallCheck(this,e)},Xt=(0,Y.sb)((0,Y.pj)((0,Y.Kr)((0,Y.Id)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}())))),$t=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,u,l){var c;return _classCallCheck(this,n),(c=t.call(this,e))._changeDetectorRef=i,c._focusMonitor=r,c._ngZone=o,c._animationMode=u,c._options=l,c.ariaLabel="",c.ariaLabelledby=null,c._uniqueId="mat-checkbox-"+ ++Kt,c.id=c._uniqueId,c.labelPosition="after",c.name=null,c.change=new a.vpe,c.indeterminateChange=new a.vpe,c._onTouched=function(){},c._currentAnimationClass="",c._currentCheckState=0,c._controlValueAccessorChangeFn=function(){},c._checked=!1,c._disabled=!1,c._indeterminate=!1,c._options=c._options||Wt,c.color=c.defaultColor=c._options.color||Wt.color,c.tabIndex=parseInt(s)||0,c}return _createClass(n,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,s.Ig)(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){t||Promise.resolve().then(function(){e._onTouched(),e._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=(0,s.Ig)(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=(0,s.Ig)(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){n.classList.remove(i)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var e=new Jt;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t,n=this,i=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===i?!this.disabled&&"noop"===i&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(function(){n._indeterminate=!1,n.indeterminateChange.emit(n._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}]),n}(Xt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(G.tE),a.Y36(a.R0b),a.$8M("tabindex"),a.Y36(J.Qb,8),a.Y36(Yt,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;(1&e&&(a.Gf(Vt,5),a.Gf(Y.wG,5)),2&e)&&(a.iGM(n=a.CRH())&&(t._inputElement=n.first),a.iGM(n=a.CRH())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(a.Ikx("id",t.id),a.uIk("tabindex",null),a.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[a._Bn([Qt]),a.qOj],ngContentSelectors:zt,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(a.F$t(),a.TgZ(0,"label",0,1),a.TgZ(2,"span",2),a.TgZ(3,"input",3,4),a.NdJ("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),a.qZA(),a.TgZ(5,"span",5),a._UZ(6,"span",6),a.qZA(),a._UZ(7,"span",7),a.TgZ(8,"span",8),a.O4$(),a.TgZ(9,"svg",9),a._UZ(10,"path",10),a.qZA(),a.kcU(),a._UZ(11,"span",11),a.qZA(),a.qZA(),a.TgZ(12,"span",12,13),a.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),a.TgZ(14,"span",14),a._uU(15,"\xa0"),a.qZA(),a.Hsn(16),a.qZA(),a.qZA()),2&e){var n=a.MAs(1),i=a.MAs(13);a.uIk("for",t.inputId),a.xp6(2),a.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),a.xp6(1),a.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),a.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),a.xp6(2),a.Q6J("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",a.VKq(19,Ht,"NoopAnimations"===t._animationMode?0:150))}},directives:[Y.wG,qt.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),e}(),en=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),tn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[Y.si,Y.BQ,qt.Q8,en],Y.BQ,en]}),e}(),nn=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:Nt,canActivate:[O]},{path:"login",component:T.G},{path:"login/:id",component:T.G},{path:"mfa",component:function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){document.getElementById("mfaform").action=this.api.config.urls.mfa,this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}},{key:"launch",value:function(){return document.getElementById("mfaform").submit(),!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-mfa"]],decls:21,vars:2,consts:[["id","mfaform","method","post",3,"ngSubmit"],[1,"mfa-container"],[1,"mfa-brand"],[3,"src"],[1,"mfa-info"],[1,"mfa-form"],[1,"mfa-field"],["appearance","standard"],["matInput","","id","code","name","code","value","","required","","autofocus",""],["id","remember","name","remember"],[1,"mfa-button"],["mat-stroked-button","","color","primary","type","submit"]],template:function(e,t){1&e&&(a.TgZ(0,"form",0),a.NdJ("ngSubmit",function(){return t.launch()}),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a._UZ(3,"img",3),a.qZA(),a.TgZ(4,"div",4),a.TgZ(5,"uds-translate"),a._uU(6,"Login Verification"),a.qZA(),a.qZA(),a.TgZ(7,"div",5),a.TgZ(8,"div",6),a.TgZ(9,"mat-form-field",7),a.TgZ(10,"mat-label"),a._uU(11),a.qZA(),a._UZ(12,"input",8),a.qZA(),a.qZA(),a.TgZ(13,"div",6),a.TgZ(14,"mat-checkbox",9),a.TgZ(15,"uds-translate"),a._uU(16,"Remember Me"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(17,"div",10),a.TgZ(18,"button",11),a.TgZ(19,"uds-translate"),a._uU(20,"Submit"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(3),a.Q6J("src",t.api.staticURL("modern/img/login-img.png"),a.LSH),a.xp6(8),a.hij(" ",t.api.config.mfa.label," "))},directives:[jt._Y,jt.JL,jt.F,P.P,Oe.KE,Oe.hX,Te.Nt,$t,bt.lW],styles:[".mfa-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.mfa-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.mfa-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.mfa-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.mfa-form[_ngcontent-%COMP%]{min-width:80%}}"]}),e}()},{path:"client-download",component:D},{path:"downloads",component:F,canActivate:[O]},{path:"error/:id",component:Ut},{path:"about",component:Bt},{path:"ticket/launcher",component:Zt},{path:"**",redirectTo:"services"}],rn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[S.Bz.forRoot(nn,{relativeLinkResolution:"legacy"})],S.Bz]}),e}(),on=n(2238),an=n(7441),sn=["*",[["mat-toolbar-row"]]],un=["*","mat-toolbar-row"],ln=(0,Y.pj)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}()),cn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),hn=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e))._platform=i,o._document=r,o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(ln);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(g.t4),a.Y36(I.K0))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,cn,5),2&e)&&(a.iGM(i=a.CRH())&&(t._toolbarRows=i))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&a.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[a.qOj],ngContentSelectors:un,decls:2,vars:0,template:function(e,t){1&e&&(a.F$t(sn),a.Hsn(0),a.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),fn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[Y.BQ],Y.BQ]}),e}(),dn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[{provide:Oe.o2,useValue:{floatLabel:"always"}}],imports:[jt.u5,fn,bt.ot,lt,kt,ke,on.Is,Oe.lN,Te.c,an.LD,tn]}),e}();function pn(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",9),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(2).changeLang(e)}),a._uU(1),a.qZA()}if(2&e){var i=t.$implicit;a.xp6(1),a.Oqu(i.name)}}function vn(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",9),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).admin()}),a.TgZ(1,"i",23),a._uU(2,"dashboard"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4,"Dashboard"),a.qZA(),a.qZA()}}function _n(e,t){1&e&&(a.TgZ(0,"button",28),a.TgZ(1,"i",23),a._uU(2,"file_download"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4,"Downloads"),a.qZA(),a.qZA())}function mn(e,t){if(1&e&&(a.TgZ(0,"button",14),a._uU(1),a.qZA()),2&e){a.oxw();var n=a.MAs(8),i=a.oxw();a.Q6J("matMenuTriggerFor",n),a.xp6(1),a.Oqu(i.api.user.user)}}function gn(e,t){if(1&e&&(a.TgZ(0,"button",25),a._uU(1),a.TgZ(2,"i",23),a._uU(3,"arrow_drop_down"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(8),i=a.oxw();a.Q6J("matMenuTriggerFor",n),a.xp6(1),a.hij("",i.api.user.user," ")}}function yn(e,t){if(1&e){var n=a.EpF();a.ynx(0),a.TgZ(1,"form",1),a._UZ(2,"input",2),a._UZ(3,"input",3),a.qZA(),a.TgZ(4,"mat-menu",null,4),a.YNc(6,pn,2,1,"button",5),a.qZA(),a.TgZ(7,"mat-menu",null,6),a.YNc(9,vn,5,0,"button",7),a.YNc(10,_n,5,0,"button",8),a.TgZ(11,"button",9),a.NdJ("click",function(){return a.CHM(n),a.oxw().logout()}),a.TgZ(12,"i",10),a._uU(13,"exit_to_app"),a.qZA(),a.TgZ(14,"uds-translate"),a._uU(15,"Logout"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(16,"mat-menu",11,12),a.YNc(18,mn,2,2,"button",13),a.TgZ(19,"button",14),a._uU(20),a.qZA(),a.TgZ(21,"button",15),a.TgZ(22,"uds-translate"),a._uU(23,"UDS Client"),a.qZA(),a.qZA(),a.TgZ(24,"button",16),a.TgZ(25,"uds-translate"),a._uU(26,"About"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(27,"mat-toolbar",17),a.TgZ(28,"button",18),a._UZ(29,"img",19),a._uU(30),a.qZA(),a._UZ(31,"span",20),a.TgZ(32,"div",21),a.TgZ(33,"button",22),a.TgZ(34,"i",23),a._uU(35,"file_download"),a.qZA(),a.TgZ(36,"uds-translate"),a._uU(37,"UDS Client"),a.qZA(),a.qZA(),a.TgZ(38,"button",24),a.TgZ(39,"i",23),a._uU(40,"info"),a.qZA(),a.TgZ(41,"uds-translate"),a._uU(42,"About"),a.qZA(),a.qZA(),a.TgZ(43,"button",25),a._uU(44),a.TgZ(45,"i",23),a._uU(46,"arrow_drop_down"),a.qZA(),a.qZA(),a.YNc(47,gn,4,2,"button",26),a.qZA(),a.TgZ(48,"div",27),a.TgZ(49,"button",25),a.TgZ(50,"i",23),a._uU(51,"menu"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.BQk()}if(2&e){var i=a.MAs(5),r=a.MAs(17),o=a.oxw();a.xp6(1),a.s9C("action",o.api.config.urls.changeLang,a.LSH),a.xp6(1),a.s9C("name",o.api.csrfField),a.s9C("value",o.api.csrfToken),a.xp6(1),a.s9C("value",o.lang.id),a.xp6(3),a.Q6J("ngForOf",o.langs),a.xp6(3),a.Q6J("ngIf",o.api.user.isStaff),a.xp6(1),a.Q6J("ngIf",o.api.user.isStaff),a.xp6(8),a.Q6J("ngIf",o.api.user.isLogged),a.xp6(1),a.Q6J("matMenuTriggerFor",i),a.xp6(1),a.hij("",o.lang.name," "),a.xp6(9),a.Q6J("src",o.api.staticURL("modern/img/udsicon.png"),a.LSH),a.xp6(1),a.hij(" ",o.api.config.site_logo_name," "),a.xp6(13),a.Q6J("matMenuTriggerFor",i),a.xp6(1),a.hij("",o.lang.name," "),a.xp6(3),a.Q6J("ngIf",o.api.user.isLogged),a.xp6(2),a.Q6J("matMenuTriggerFor",r)}}var kn=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.style="";var n=t.config.language;this.langs=[];var i,r=_createForOfIteratorHelper(t.config.available_languages);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.id===n?this.lang=o:this.langs.push(o)}}catch(a){r.e(a)}finally{r.f()}}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"changeLang",value:function(e){return this.lang=e,document.getElementById("id_language").attributes.value.value=e.id,document.getElementById("form_language").submit(),!1}},{key:"admin",value:function(){this.api.gotoAdmin()}},{key:"logout",value:function(){this.api.logout()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(e,t){1&e&&a.YNc(0,yn,52,16,"ng-container",0),2&e&&a.Q6J("ngIf",""===t.api.config.urls.launch)},directives:[I.O5,jt._Y,jt.JL,jt.F,it,I.sg,$e,P.P,st,S.rH,hn,bt.lW],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),e}(),bn=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(e,t){1&e&&(a.TgZ(0,"div"),a.TgZ(1,"a",0),a._uU(2),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Q6J("href",t.api.config.site_copyright_link,a.LSH),a.xp6(1),a.Oqu(t.api.config.site_copyright_info))},styles:[""]}),e}(),Cn=function(){var e=function(){function e(){_classCallCheck(this,e),this.title="uds"}return _createClass(e,[{key:"ngOnInit",value:function(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-root"]],decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(e,t){1&e&&(a._UZ(0,"uds-navbar"),a.TgZ(1,"div",0),a.TgZ(2,"div",1),a._UZ(3,"router-outlet"),a.qZA(),a.TgZ(4,"div",2),a._UZ(5,"uds-footer"),a.qZA(),a.qZA())},directives:[kn,S.lC,bn],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),e}(),wn=n(3183),xn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e,bootstrap:[Cn]}),e.\u0275inj=a.cJS({providers:[A.n,wn.h],imports:[[o.b2,y,E.JF,rn,J.PW,dn]]}),e}();n(2340).N.production&&(0,a.G48)(),o.q6().bootstrapModule(xn).catch(function(e){return console.log(e)})}},function(e){e(e.s=6445)}])})(); \ No newline at end of file +(function(){function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)})(e)}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&_setPrototypeOf(r,n.prototype),r}).apply(null,arguments)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function l(e){return{type:6,styles:e,offset:null}}function c(e,t,n){return{type:0,name:e,styles:t,options:n}}function h(e){return{type:5,steps:e}}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function v(e){Promise.resolve(null).then(e)}var _=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;v(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),m=function(){function e(t){var n=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?v(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),g="!"},9238:function(e,t,n){"use strict";n.d(t,{rt:function(){return ne},s1:function(){return D},$s:function(){return T},Em:function(){return M},tE:function(){return J},qV:function(){return B},qm:function(){return te},Kd:function(){return K},X6:function(){return Z},yG:function(){return j}});var i=n(8583),r=n(3018),o=n(9765),a=n(5319),s=n(6215),u=n(5917),l=n(6461),c=n(3342),h=n(4395),f=n(5435),d=n(8002),p=n(5257),v=n(3653),_=n(7519),m=n(6782),g=n(9490),y=n(521),k=n(8553);function b(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var C,w="cdk-describedby-message-container",x="cdk-describedby-message",E="cdk-describedby-host",S=0,A=new Map,O=null,T=((C=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=P(t,n);"string"!=typeof t?(I(t),A.set(i,{messageElement:t,referenceCount:0})):A.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=P(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=A.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}O&&0===O.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[".concat(E,"]")),t=0;t-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return _createClass(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,c.b)(function(t){return e._pressedLetters.push(t)}),(0,h.b)(t),(0,f.h)(function(){return e._pressedLetters.length>0}),(0,d.U)(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case l.Mf:return void this.tabOut.next();case l.JH:if(this._vertical&&i){this.setNextItemActive();break}return;case l.LH:if(this._vertical&&i){this.setPreviousItemActive();break}return;case l.SV:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.oh:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.Sd:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case l.uR:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||(0,l.Vb)(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=l.A&&n<=l.Z||n>=l.xE&&n<=l.aO)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof r.n_E?this._items.toArray():this._items}}]),e}(),D=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(R),M=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._origin="program",e}return _createClass(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(R),L=function(){var e=function(){function e(t){_classCallCheck(this,e),this._platform=t}return _createClass(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t=function(e){try{return e.frameElement}catch(t){return null}}(function(e){return e.ownerDocument&&e.ownerDocument.defaultView||window}(e));if(t&&(-1===N(t)||!this.isVisible(t)))return!1;var n=e.nodeName.toLowerCase(),i=N(e);return e.hasAttribute("contenteditable")?-1!==i:!("iframe"===n||"object"===n||this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===n?!!e.hasAttribute("controls")&&-1!==i:"video"===n?-1!==i&&(null!==i||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||F(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4))},token:e,providedIn:"root"}),e}();function F(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function N(e){if(!F(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var U=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return _createClass(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusInitialElement(e))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusFirstTabbableElement(e))})})}},{key:"focusLastTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusLastTabbableElement(e))})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe((0,p.q)(1)).subscribe(e)}}]),e}(),B=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._checker=t,this._ngZone=n,this._document=i}return _createClass(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new U(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(L),r.LFG(r.R0b),r.LFG(i.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(L),r.LFG(r.R0b),r.LFG(i.K0))},token:e,providedIn:"root"}),e}();function Z(e){return 0===e.offsetX&&0===e.offsetY}function j(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈var q=new r.OlP("cdk-input-modality-detector-options"),V={ignoreKeys:[l.zL,l.jx,l.b2,l.MW,l.JU]},H=(0,y.i$)({passive:!0,capture:!0}),z=function(){var e=function(){function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._platform=t,this._mostRecentTarget=null,this._modality=new s.X(null),this._lastTouchMs=0,this._onKeydown=function(e){var t,n;(null===(n=null===(t=o._options)||void 0===t?void 0:t.ignoreKeys)||void 0===n?void 0:n.some(function(t){return t===e.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=(0,y.sA)(e))},this._onMousedown=function(e){Date.now()-o._lastTouchMs<650||(o._modality.next(Z(e)?"keyboard":"mouse"),o._mostRecentTarget=(0,y.sA)(e))},this._onTouchstart=function(e){j(e)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=(0,y.sA)(e))},this._options=Object.assign(Object.assign({},V),r),this.modalityDetected=this._modality.pipe((0,v.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,_.x)()),t.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",o._onKeydown,H),i.addEventListener("mousedown",o._onMousedown,H),i.addEventListener("touchstart",o._onTouchstart,H)})}return _createClass(e,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){!this._platform.isBrowser||(document.removeEventListener("keydown",this._onKeydown,H),document.removeEventListener("mousedown",this._onMousedown,H),document.removeEventListener("touchstart",this._onTouchstart,H))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4),r.LFG(r.R0b),r.LFG(i.K0),r.LFG(q,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4),r.LFG(r.R0b),r.LFG(i.K0),r.LFG(q,8))},token:e,providedIn:"root"}),e}(),Y=new r.OlP("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),G=new r.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),K=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return _createClass(e,[{key:"announce",value:function(e){for(var t,n,i,r=this,o=this._defaultOptions,a=arguments.length,s=new Array(a>1?a-1:0),u=1;u1&&void 0!==arguments[1]&&arguments[1],n=(0,g.fI)(e);if(!this._platform.isBrowser||1!==n.nodeType)return(0,u.of)(null);var i=(0,y.kV)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var a={checkChildren:t,subject:new o.xQ,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}},{key:"stopMonitoring",value:function(e){var t=(0,g.fI)(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=(0,g.fI)(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=_slicedToArray(e,2),r=n[0],o=n[1];return i._originChanged(r,t,o)}):(this._setOrigin(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOrigin",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){t._origin=e,t._originFromTouchInteraction="touch"===e&&n,0===t._detectionMode&&(clearTimeout(t._originTimeoutId),t._originTimeoutId=setTimeout(function(){return t._origin=null},t._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t),i=(0,y.sA)(e);!n||!n.checkChildren&&t!==i||this._originChanged(t,this._getFocusOrigin(i),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,Q),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,Q)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){t._getWindow().addEventListener("focus",t._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,m.R)(this._stopInputModalityDetector)).subscribe(function(e){t._setOrigin(e,!0)}))}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Q),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Q),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.R0b),r.LFG(y.t4),r.LFG(z),r.LFG(i.K0,8),r.LFG(W,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(r.R0b),r.LFG(y.t4),r.LFG(z),r.LFG(i.K0,8),r.LFG(W,8))},token:e,providedIn:"root"}),e}(),X="cdk-high-contrast-black-on-white",$="cdk-high-contrast-white-on-black",ee="cdk-high-contrast-active",te=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._document=n}return _createClass(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove(ee),e.remove(X),e.remove($),this._hasCheckedHighContrastMode=!0;var t=this.getHighContrastMode();1===t?(e.add(ee),e.add(X)):2===t&&(e.add(ee),e.add($))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(y.t4),r.LFG(i.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(y.t4),r.LFG(i.K0))},token:e,providedIn:"root"}),e}(),ne=function(){var e=function e(t){_classCallCheck(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(r.LFG(te))},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[[y.ud,k.Q8]]}),e}()},946:function(e,t,n){"use strict";n.d(t,{vT:function(){return u},Is:function(){return s}});var i,r=n(3018),o=n(8583),a=new r.OlP("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,r.f3M)(o.K0)}}),s=((i=function(){function e(t){if(_classCallCheck(this,e),this.value="ltr",this.change=new r.vpe,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}()).\u0275fac=function(e){return new(e||i)(r.LFG(a,8))},i.\u0275prov=r.Yz7({factory:function(){return new i(r.LFG(a,8))},token:i,providedIn:"root"}),i),u=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}()},8345:function(e,t,n){"use strict";n.d(t,{P3:function(){return l},Ov:function(){return h},A8:function(){return f},eX:function(){return c},k:function(){return d},Z9:function(){return s}});var i=n(5639),r=n(5917),o=n(9765),a=n(3018);function s(e){return e&&"function"==typeof e.connect}var u,l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._data=e,i}return _createClass(n,[{key:"connect",value:function(){return(0,i.b)(this._data)?this._data:(0,r.of)(this._data)}},{key:"disconnect",value:function(){}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),c=function(){function e(){_classCallCheck(this,e),this.viewCacheSize=20,this._viewCache=[]}return _createClass(e,[{key:"applyChanges",value:function(e,t,n,i,r){var o=this;e.forEachOperation(function(e,a,s){var u,l;null==e.previousIndex?l=(u=o._insertView(function(){return n(e,a,s)},s,t,i(e)))?1:0:null==s?(o._detachAndCacheView(a,t),l=3):(u=o._moveView(a,s,t,i(e)),l=2),r&&r({context:null==u?void 0:u.context,operation:l,record:e})})}},{key:"detach",value:function(){var e,t=_createForOfIteratorHelper(this._viewCache);try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(n){t.e(n)}finally{t.f()}this._viewCache=[]}},{key:"_insertView",value:function(e,t,n,i){var r=this._insertViewFromCache(t,n);if(!r){var o=e();return n.createEmbeddedView(o.templateRef,o.context,o.index)}r.context.$implicit=i}},{key:"_detachAndCacheView",value:function(e,t){var n=t.detach(e);this._maybeCacheView(n,t)}},{key:"_moveView",value:function(e,t,n,i){var r=n.get(e);return n.move(r,t),r.context.$implicit=i,r}},{key:"_maybeCacheView",value:function(e,t){if(this._viewCache.length0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.xQ,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return _createClass(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i1?t-1:0),i=1;it.height||e.scrollWidth>t.width}}]),e}(),b=function(){function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),C=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function w(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function x(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var E,S=function(){function e(t,n,i,r){_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return _createClass(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;w(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),A=((E=function e(t,n,i,r){var o=this;_classCallCheck(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new C},this.close=function(e){return new b(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new k(o._viewportRuler,o._document)},this.reposition=function(e){return new S(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r}).\u0275fac=function(e){return new(e||E)(r.LFG(i.mF),r.LFG(i.rL),r.LFG(r.R0b),r.LFG(s.K0))},E.\u0275prov=r.Yz7({factory:function(){return new E(r.LFG(i.mF),r.LFG(i.rL),r.LFG(r.R0b),r.LFG(s.K0))},token:E,providedIn:"root"}),E),O=function e(t){if(_classCallCheck(this,e),this.scrollStrategy=new C,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0))},token:e,providedIn:"root"}),e}(),R=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return _createClass(n,[{key:"add",value:function(e){_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(I);return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0))},token:e,providedIn:"root"}),e}(),D=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=(0,o.sA)(e),n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var a=n[i];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(t))break;a._outsidePointerEvents.next(e)}}},r}return _createClass(n,[{key:"add",value:function(e){if(_get(_getPrototypeOf(n.prototype),"add",this).call(this,e),!this._isAttached){var t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(I);return e.\u0275fac=function(t){return new(t||e)(r.LFG(s.K0),r.LFG(o.t4))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(s.K0),r.LFG(o.t4))},token:e,providedIn:"root"}),e}(),M="undefined"!=typeof window?window:{},L=void 0!==M.__karma__&&!!M.__karma__||void 0!==M.jasmine&&!!M.jasmine||void 0!==M.jest&&!!M.jest||void 0!==M.Mocha&&!!M.Mocha,F=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._platform=n,this._document=t}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e="cdk-overlay-container";if(this._platform.isBrowser||L)for(var t=this._document.querySelectorAll(".".concat(e,'[platform="server"], .').concat(e,'[platform="test"]')),n=0;nd&&(d=_,f=v)}}catch(m){p.e(m)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&j(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(U),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,r;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,r="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+r}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=V(t),o=e.x,a=e.y,s=this._getOffset(i,"x"),u=this._getOffset(i,"y");s&&(o+=s),u&&(a+=u);var l=0-a,c=a+r.height-n.height,h=this._subtractOverflows(r.width,0-o,o+r.width-n.width),f=this._subtractOverflows(r.height,l,c),d=h*f;return{visibleArea:d,isCompletelyWithinViewport:r.width*r.height===d,fitsInViewportVertically:f===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=q(this._overlayRef.getConfig().minHeight),a=q(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=a&&a<=r;return(e.fitsInViewportVertically||null!=o&&o<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=V(t),a=this._viewportRect,s=Math.max(e.x+o.width-a.width,0),u=Math.max(e.y+o.height-a.height,0),l=Math.max(a.top-n.top-e.y,0),c=Math.max(a.left-n.left-e.x,0);return i=o.width<=a.width?c||-s:e.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!l||"start"===t.overlayX&&l)s=u.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!l||"end"===t.overlayX&&l)a=e.x,o=u.right-e.x;else{var f=Math.min(u.right-e.x+u.left,e.x),d=this._lastBoundingBoxSize.width;o=2*f,a=e.x-f,o>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-d/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=(0,u.HM)(n.height),i.top=(0,u.HM)(n.top),i.bottom=(0,u.HM)(n.bottom),i.width=(0,u.HM)(n.width),i.left=(0,u.HM)(n.left),i.right=(0,u.HM)(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=(0,u.HM)(r)),o&&(i.maxWidth=(0,u.HM)(o))}this._lastBoundingBoxSize=n,j(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){j(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){j(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();j(n,this._getExactOverlayY(t,e,a)),j(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),c&&(s+="translateY(".concat(c,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=(0,u.HM)(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=(0,u.HM)(o.maxWidth):r&&(n.maxWidth="")),j(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=(0,u.HM)(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=(0,u.HM)(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:x(e,n),isOriginOutsideView:w(e,n),isOverlayClipped:x(t,n),isOverlayOutsideView:w(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(z),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),G=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return _createClass(e,[{key:"global",value:function(){return new Y}},{key:"connectedTo",value:function(e,t,n){return new H(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new Z(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.rL),r.LFG(s.K0),r.LFG(o.t4),r.LFG(F))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(i.rL),r.LFG(s.K0),r.LFG(o.t4),r.LFG(F))},token:e,providedIn:"root"}),e}(),K=0,W=function(){var e=function(){function e(t,n,i,r,o,a,s,u,l,c,h){_classCallCheck(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}return _createClass(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new O(e);return r.direction=r.direction||this._directionality.value,new N(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+K++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(r.z2F)),new l.u0(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(A),r.LFG(F),r.LFG(r._Vd),r.LFG(G),r.LFG(R),r.LFG(r.zs3),r.LFG(r.R0b),r.LFG(s.K0),r.LFG(a.Is),r.LFG(s.Ye),r.LFG(D))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Q=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],J=new r.OlP("cdk-connected-overlay-scroll-strategy"),X=function(){var e=function e(t){_classCallCheck(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.SBq))},e.\u0275dir=r.lG2({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),$=function(){var e=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this._overlay=t,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w.EMPTY,this._attachSubscription=h.w.EMPTY,this._detachSubscription=h.w.EMPTY,this._positionSubscription=h.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new r.vpe,this.positionChange=new r.vpe,this.attach=new r.vpe,this.detach=new r.vpe,this.overlayKeydown=new r.vpe,this.overlayOutsideClick=new r.vpe,this._templatePortal=new l.UE(n,i),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=(0,u.Ig)(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=(0,u.Ig)(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=(0,u.Ig)(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=(0,u.Ig)(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=(0,u.Ig)(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var e=this;(!this.positions||!this.positions.length)&&(this.positions=Q);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),t.keyCode===g.hY&&!e.disableClose&&!(0,g.Vb)(t)&&(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new O({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new p(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(W),r.Y36(r.Rgc),r.Y36(r.s_b),r.Y36(J),r.Y36(a.Is,8))},e.\u0275dir=r.lG2({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[r.TTD]}),e}(),ee={provide:J,deps:[W],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},te=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[W,ee],imports:[[a.vT,l.eL,i.Cl],i.Cl]}),e}()},521:function(e,t,n){"use strict";n.d(t,{t4:function(){return f},ud:function(){return d},sA:function(){return b},ht:function(){return k},kV:function(){return y},_i:function(){return g},qK:function(){return v},i$:function(){return _},Mq:function(){return m}});var i,r=n(3018),o=n(8583);try{i="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(s){i=!1}var a,s,u,l,c,h,f=((s=function e(t){_classCallCheck(this,e),this._platformId=t,this.isBrowser=this._platformId?(0,o.NF)(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&&!i)&&"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}).\u0275fac=function(e){return new(e||s)(r.LFG(r.Lbi))},s.\u0275prov=r.Yz7({factory:function(){return new s(r.LFG(r.Lbi))},token:s,providedIn:"root"}),s),d=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}(),p=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function v(){if(a)return a;if("object"!=typeof document||!document)return a=new Set(p);var e=document.createElement("input");return a=new Set(p.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function _(e){return function(){if(null==u&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return u=!0}}))}finally{u=u||!1}return u}()?e:!!e.capture}function m(){if(null==c){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return c=!1;if("scrollBehavior"in document.documentElement.style)c=!0;else{var e=Element.prototype.scrollTo;c=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return c}function g(){if("object"!=typeof document||!document)return 0;if(null==l){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),l=0,0===e.scrollLeft&&(e.scrollLeft=1,l=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return l}function y(e){if(function(){if(null==h){var e="undefined"!=typeof document?document.head:null;h=!(!e||!e.createShadowRoot&&!e.attachShadow)}return h}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function k(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}function b(e){return e.composedPath?e.composedPath()[0]:e.target}},7636:function(e,t,n){"use strict";n.d(t,{en:function(){return c},Pl:function(){return f},C5:function(){return s},u0:function(){return h},eL:function(){return d},UE:function(){return u}});var i,r=n(3018),o=n(8583),a=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(a),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return _createClass(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(n.prototype),"detach",this).call(this)}}]),n}(a),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).element=e instanceof r.SBq?e.nativeElement:e,i}return n}(a),c=function(){function e(){_classCallCheck(this,e),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof s?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof u?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof l?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),h=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s,u;return _classCallCheck(this,n),(u=t.call(this)).outletElement=e,u._componentFactoryResolver=i,u._appRef=r,u._defaultInjector=o,u.attachDomPortal=function(e){var t=e.element,i=u._document.createComment("dom-portal");t.parentNode.insertBefore(i,t),u.outletElement.appendChild(t),u._attachedPortal=e,_get((s=_assertThisInitialized(u),_getPrototypeOf(n.prototype)),"setDisposeFn",s).call(s,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},u._document=a,u}return _createClass(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),this._attachedPortal=e,i}},{key:"dispose",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(c),f=((i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,o){var a,s;return _classCallCheck(this,n),(s=t.call(this))._componentFactoryResolver=e,s._viewContainerRef=i,s._isInitialized=!1,s.attached=new r.vpe,s.attachDomPortal=function(e){var t=e.element,i=s._document.createComment("dom-portal");e.setAttachedHost(_assertThisInitialized(s)),t.parentNode.insertBefore(i,t),s._getRootNode().appendChild(t),s._attachedPortal=e,_get((a=_assertThisInitialized(s),_getPrototypeOf(n.prototype)),"setDisposeFn",a).call(a,function(){i.parentNode&&i.parentNode.replaceChild(t,i)})},s._document=o,s}return _createClass(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&_get(_getPrototypeOf(n.prototype),"detach",this).call(this),e&&_get(_getPrototypeOf(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(i,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),_get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(c)).\u0275fac=function(e){return new(e||i)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(o.K0))},i.\u0275dir=r.lG2({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),i),d=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}()},9243:function(e,t,n){"use strict";n.d(t,{ZD:function(){return y},mF:function(){return m},Cl:function(){return k},rL:function(){return g}});var i=n(9490),r=n(3018),o=n(6465),a=n(6102);new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(o.o));var s=n(9765),u=n(5917),l=n(7574),c=n(2759);n(4581),n(5319),n(5639),n(7393),new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(a.v))(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?_get(_getPrototypeOf(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(o.o)),n(1593),n(7971),n(8858),n(7519);var h=n(628),f=n(5435),d=(n(6782),n(9761),n(3190),n(521)),p=n(8583),v=n(946);n(8345);var _,m=((_=function(){function e(t,n,i){_classCallCheck(this,e),this._ngZone=t,this._platform=n,this._scrolled=new s.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return _createClass(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(function(){return t._scrolled.next(e)}))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new l.y(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe((0,h.e)(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):(0,u.of)()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,f.h)(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=(0,i.fI)(t),r=e.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var t=e._getWindow();return(0,c.R)(t.document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}()).\u0275fac=function(e){return new(e||_)(r.LFG(r.R0b),r.LFG(d.t4),r.LFG(p.K0,8))},_.\u0275prov=r.Yz7({factory:function(){return new _(r.LFG(r.R0b),r.LFG(d.t4),r.LFG(p.K0,8))},token:_,providedIn:"root"}),_),g=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this._platform=t,this._change=new s.xQ,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._viewportSize=null})})}return _createClass(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe((0,h.e)(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(d.t4),r.LFG(r.R0b),r.LFG(p.K0,8))},e.\u0275prov=r.Yz7({factory:function(){return new e(r.LFG(d.t4),r.LFG(r.R0b),r.LFG(p.K0,8))},token:e,providedIn:"root"}),e}(),y=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}(),k=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({imports:[[v.vT,d.ud,y],v.vT,y]}),e}()},9490:function(e,t,n){"use strict";n.d(t,{Eq:function(){return a},Ig:function(){return r},HM:function(){return s},fI:function(){return u},su:function(){return o}});var i=n(3018);function r(e){return null!=e&&"false"!="".concat(e)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function a(e){return Array.isArray(e)?e:[e]}function s(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function u(e){return e instanceof i.SBq?e.nativeElement:e}},8583:function(e,t,n){"use strict";n.d(t,{mr:function(){return b},Ov:function(){return Y},ez:function(){return G},K0:function(){return l},Do:function(){return w},V_:function(){return f},Ye:function(){return x},S$:function(){return y},mk:function(){return R},sg:function(){return M},O5:function(){return F},RF:function(){return Z},n9:function(){return j},ED:function(){return q},b0:function(){return C},lw:function(){return c},EM:function(){return Q},JF:function(){return $},NF:function(){return W},w_:function(){return u},bD:function(){return K},q:function(){return o},Mx:function(){return I},HT:function(){return a}});var i=n(3018),r=null;function o(){return r}function a(e){r||(r=e)}var s,u=function e(){_classCallCheck(this,e)},l=new i.OlP("DocumentToken"),c=((s=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}()).\u0275fac=function(e){return new(e||s)},s.\u0275prov=(0,i.Yz7)({factory:h,token:s,providedIn:"platform"}),s);function h(){return(0,i.LFG)(d)}var f=new i.OlP("Location Initialized"),d=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i._init(),i}return _createClass(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return o().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=o().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=o().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){p()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){p()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}]),n}(c);return e.\u0275fac=function(t){return new(t||e)(i.LFG(l))},e.\u0275prov=(0,i.Yz7)({factory:v,token:e,providedIn:"platform"}),e}();function p(){return!!window.history.pushState}function v(){return new d((0,i.LFG)(l))}function _(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function g(e){return e&&"?"!==e[0]?"?"+e:e}var y=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,i.Yz7)({factory:k,token:e,providedIn:"root"}),e}();function k(e){var t=(0,i.LFG)(l).location;return new C((0,i.LFG)(c),t&&t.origin||"")}var b=new i.OlP("appBaseHref"),C=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;if(_classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._removeListenerFns=[],null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)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.");return r._baseHref=i,_possibleConstructorReturn(r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return _(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(i.LFG(c),i.LFG(b,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),w=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",r._removeListenerFns=[],null!=i&&(r._baseHref=i),r}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=_(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(i.LFG(c),i.LFG(b,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),x=function(){var e=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;var o=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=m(S(o)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})})}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+g(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,S(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.LFG(y),i.LFG(c))},e.normalizeQueryParams=g,e.joinWithSlash=_,e.stripTrailingSlash=m,e.\u0275prov=(0,i.Yz7)({factory:E,token:e,providedIn:"root"}),e}();function E(){return new x((0,i.LFG)(y),(0,i.LFG)(c))}function S(e){return e.replace(/\/index.html$/,"")}var A=((A=A||{})[A.Zero=0]="Zero",A[A.One=1]="One",A[A.Two=2]="Two",A[A.Few=3]="Few",A[A.Many=4]="Many",A[A.Other=5]="Other",A),O=i.kL8,T=function e(){_classCallCheck(this,e)},P=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).locale=e,i}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(O(t||this.locale)(e)){case A.Zero:return"zero";case A.One:return"one";case A.Two:return"two";case A.Few:return"few";case A.Many:return"many";default:return"other"}}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.soG))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}();function I(e,t){t=encodeURIComponent(t);var n,i=_createForOfIteratorHelper(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=_slicedToArray(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[0],u=a[1];if(s.trim()===t)return decodeURIComponent(u)}}catch(l){i.e(l)}finally{i.f()}return null}var R=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(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&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,i.AaK)(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},e.\u0275dir=i.lG2({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),D=function(){function e(t,n,i,r){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),M=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat(function(e){return e.name||typeof e}(e),"'. NgFor only supports binding to Iterables such as Arrays."))}}if(this._differ){var t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new D(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new L(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var u=new L(e,s);n.push(u)}});for(var i=0;i0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,_toConsumableArray(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),d=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return _(e)}},{key:"encodeValue",value:function(e){return _(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}(),p=/%(\d[a-f0-9])/gi,v={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function _(e){return encodeURIComponent(e).replace(p,function(e,t){var n;return null!==(n=v[t])&&void 0!==n?n:e})}function m(e){return"".concat(e)}var g=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new d,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),r=_slicedToArray(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(m(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(m(t.value));-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),y=function(){function e(){_classCallCheck(this,e),this.map=new Map}return _createClass(e,[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function k(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function b(e){return"undefined"!=typeof Blob&&e instanceof Blob}function C(e){return"undefined"!=typeof FormData&&e instanceof FormData}var w=function(){function e(t,n,i,r){var o;if(_classCallCheck(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new f),this.context||(this.context=new y),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,u=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,l=n.headers||this.headers,c=n.params||this.params,h=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},l)),n.setParams&&(c=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},c)),new e(i,r,a,{params:c,headers:l,context:h,reportProgress:u,responseType:o,withCredentials:s})}}]),e}(),x=((x=x||{})[x.Sent=0]="Sent",x[x.UploadProgress=1]="UploadProgress",x[x.ResponseHeader=2]="ResponseHeader",x[x.DownloadProgress=3]="DownloadProgress",x[x.Response=4]="Response",x[x.User=5]="User",x),E=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,e),this.headers=t.headers||new f,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},S=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=x.ResponseHeader,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(E),A=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=x.Response,e.body=void 0!==i.body?i.body:null,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(E),O=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(E);function T(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var P,I=((P=function(){function e(t){_classCallCheck(this,e),this.handler=t}return _createClass(e,[{key:"request",value:function(e,t){var n,i,r,a=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof w?n=e:(i=c.headers instanceof f?c.headers:new f(c.headers),c.params&&(r=c.params instanceof g?c.params:new g({fromObject:c.params})),n=new w(e,t,void 0!==c.body?c.body:null,{headers:i,context:c.context,params:r,reportProgress:c.reportProgress,responseType:c.responseType||"json",withCredentials:c.withCredentials}));var h=(0,o.of)(n).pipe((0,s.b)(function(e){return a.handler.handle(e)}));if(e instanceof w||"events"===c.observe)return h;var d=h.pipe((0,u.h)(function(e){return e instanceof A}));switch(c.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return d.pipe((0,l.U)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return d.pipe((0,l.U)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return d.pipe((0,l.U)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return d.pipe((0,l.U)(function(e){return e.body}))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type ".concat(c.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new g).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,T(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,T(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,T(n,t))}}]),e}()).\u0275fac=function(e){return new(e||P)(r.LFG(c))},P.\u0275prov=r.Yz7({token:P,factory:P.\u0275fac}),P),R=function(){function e(t,n){_classCallCheck(this,e),this.next=t,this.interceptor=n}return _createClass(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),D=new r.OlP("HTTP_INTERCEPTORS"),M=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),L=/^\)\]\}',?\n/,F=function(){var e=function(){function e(t){_classCallCheck(this,e),this.xhrFactory=t}return _createClass(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new a.y(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,u=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new f(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new S({headers:r,status:t,statusText:n,url:o})},l=function(){var t=u(),r=t.headers,o=t.status,a=t.statusText,s=t.url,l=null;204!==o&&(l=void 0===i.response?i.responseText:i.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof l){var h=l;l=l.replace(L,"");try{l=""!==l?JSON.parse(l):null}catch(f){l=h,c&&(c=!1,l={error:f,text:l})}}c?(n.next(new A({body:l,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new O({error:l,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(e){var t=u().url,r=new O({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},h=!1,d=function(t){h||(n.next(u()),h=!0);var r={type:x.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&!!i.responseText&&(r.partialText=i.responseText),n.next(r)},p=function(e){var t={type:x.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",l),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),e.reportProgress&&(i.addEventListener("progress",d),null!==a&&i.upload&&i.upload.addEventListener("progress",p)),i.send(a),n.next({type:x.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",l),i.removeEventListener("timeout",c),e.reportProgress&&(i.removeEventListener("progress",d),null!==a&&i.upload&&i.upload.removeEventListener("progress",p)),i.readyState!==i.DONE&&i.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.JF))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),N=new r.OlP("XSRF_COOKIE_NAME"),U=new r.OlP("XSRF_HEADER_NAME"),B=function e(){_classCallCheck(this,e)},Z=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(i.K0),r.LFG(r.Lbi),r.LFG(N))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),j=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.tokenService=t,this.headerName=n}return _createClass(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null!==i&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(B),r.LFG(U))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),q=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.backend=t,this.injector=n,this.chain=null}return _createClass(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(D,[]);this.chain=t.reduceRight(function(e,t){return new R(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(h),r.LFG(r.zs3))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),V=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:j,useClass:M}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:N,useValue:t.cookieName}:[],t.headerName?{provide:U,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[j,{provide:D,useExisting:j,multi:!0},{provide:B,useClass:Z},{provide:N,useValue:"XSRF-TOKEN"},{provide:U,useValue:"X-XSRF-TOKEN"}]}),e}(),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[I,{provide:c,useClass:q},F,{provide:h,useExisting:F}],imports:[[V.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}()},3018:function(e,t,n){"use strict";n.d(t,{deG:function(){return ln},tb:function(){return Gu},AFp:function(){return qu},ip1:function(){return Zu},CZH:function(){return ju},hGG:function(){return Bl},z2F:function(){return Tl},sBO:function(){return zs},Sil:function(){return rl},_Vd:function(){return vs},EJc:function(){return Qu},SBq:function(){return ys},qLn:function(){return Ri},vpe:function(){return bu},gxx:function(){return bo},tBr:function(){return Fn},XFs:function(){return R},OlP:function(){return un},zs3:function(){return Lo},ZZ4:function(){return Us},aQg:function(){return Zs},soG:function(){return Wu},YKP:function(){return eu},v3s:function(){return Il},h0i:function(){return $s},PXZ:function(){return xl},R0b:function(){return sl},FiY:function(){return Nn},Lbi:function(){return Yu},g9A:function(){return zu},n_E:function(){return wu},Qsj:function(){return Cs},FYo:function(){return bs},JOm:function(){return Li},Tiy:function(){return xs},q3G:function(){return wi},tp0:function(){return Un},EAV:function(){return Ml},Rgc:function(){return Qs},dDg:function(){return pl},DyG:function(){return cn},GfV:function(){return Es},s_b:function(){return nu},ifc:function(){return N},eFA:function(){return El},G48:function(){return Cl},Gpc:function(){return v},f3M:function(){return Tn},X6Q:function(){return bl},_c5:function(){return Nl},VLi:function(){return _l},c2e:function(){return Ku},zSh:function(){return wo},wAp:function(){return ns},vHH:function(){return g},EiD:function(){return bi},mCW:function(){return oi},qzn:function(){return Kn},JVY:function(){return Qn},pB0:function(){return ei},eBb:function(){return Xn},L6k:function(){return Jn},LAX:function(){return $n},cg1:function(){return $a},Tjo:function(){return Fl},kL8:function(){return es},yhl:function(){return Wn},dqk:function(){return q},sIi:function(){return zo},CqO:function(){return ca},QGY:function(){return ua},F4k:function(){return la},RDi:function(){return Ae},AaK:function(){return f},z3N:function(){return Gn},qOj:function(){return No},TTD:function(){return ye},_Bn:function(){return fs},xp6:function(){return Cr},uIk:function(){return Wo},Tol:function(){return Pa},Gre:function(){return Ga},ekj:function(){return Ta},Suo:function(){return Lu},Xpm:function(){return $},lG2:function(){return ae},Yz7:function(){return C},cJS:function(){return w},oAB:function(){return ie},Yjl:function(){return se},Y36:function(){return $o},_UZ:function(){return ra},BQk:function(){return aa},ynx:function(){return oa},qZA:function(){return ia},TgZ:function(){return na},EpF:function(){return sa},n5z:function(){return nn},Ikx:function(){return Ka},LFG:function(){return On},$8M:function(){return on},NdJ:function(){return ha},CRH:function(){return Fu},kcU:function(){return bt},O4$:function(){return kt},oxw:function(){return _a},ALo:function(){return gu},lcZ:function(){return yu},Hsn:function(){return ya},F$t:function(){return ga},Q6J:function(){return ea},s9C:function(){return ka},VKq:function(){return _u},iGM:function(){return Du},MAs:function(){return Xo},CHM:function(){return Ye},oJD:function(){return xi},LSH:function(){return Ei},kYT:function(){return re},Udp:function(){return Oa},WFA:function(){return fa},d8E:function(){return Wa},YNc:function(){return Jo},_uU:function(){return qa},Oqu:function(){return Va},hij:function(){return Ha},AsE:function(){return za},lnq:function(){return Ya},Gf:function(){return Mu}});var i=n(9765),r=n(5319),o=n(7574),a=n(6682),s=n(2441),u=n(1307);function l(){return new i.xQ}function c(e){for(var t in e)if(e[t]===c)return t;throw Error("Could not find renamed property on target object.")}function h(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function f(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(f).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function d(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var p=c({__forward_ref__:c});function v(e){return e.__forward_ref__=v,e.toString=function(){return f(this())},e}function _(e){return m(e)?e():e}function m(e){return"function"==typeof e&&e.hasOwnProperty(p)&&e.__forward_ref__===v}var g=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(_wrapNativeSuper(Error));function y(e){return"string"==typeof e?e:null==e?"":String(e)}function k(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():y(e)}function b(e,t){var n=t?" in ".concat(t):"";throw new g("201","No provider for ".concat(k(e)," found").concat(n))}function C(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function w(e){return{providers:e.providers||[],imports:e.imports||[]}}function x(e){return E(e,O)||E(e,P)}function E(e,t){return e.hasOwnProperty(t)?e[t]:null}function S(e){return e&&(e.hasOwnProperty(T)||e.hasOwnProperty(I))?e[T]:null}var A,O=c({"\u0275prov":c}),T=c({"\u0275inj":c}),P=c({ngInjectableDef:c}),I=c({ngInjectorDef:c}),R=((R=R||{})[R.Default=0]="Default",R[R.Host=1]="Host",R[R.Self=2]="Self",R[R.SkipSelf=4]="SkipSelf",R[R.Optional=8]="Optional",R);function D(e){var t=A;return A=e,t}function M(e,t,n){var i=x(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&R.Optional?null:void 0!==t?t:void b(f(e),"Injector")}function L(e){return{toString:e}.toString()}var F=((F=F||{})[F.OnPush=0]="OnPush",F[F.Default=1]="Default",F),N=((N=N||{})[N.Emulated=0]="Emulated",N[N.None=2]="None",N[N.ShadowDom=3]="ShadowDom",N),U="undefined"!=typeof globalThis&&globalThis,B="undefined"!=typeof window&&window,Z="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,q=U||j||B||Z,V={},H=[],z=c({"\u0275cmp":c}),Y=c({"\u0275dir":c}),G=c({"\u0275pipe":c}),K=c({"\u0275mod":c}),W=c({"\u0275loc":c}),Q=c({"\u0275fac":c}),J=c({__NG_ELEMENT_ID__:c}),X=0;function $(e){return L(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===F.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||H,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||N.Emulated,id:"c",styles:e.styles||H,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=X++,n.inputs=oe(e.inputs,t),n.outputs=oe(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(ee)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(te)}:null,n})}function ee(e){return ue(e)||function(e){return e[Y]||null}(e)}function te(e){return function(e){return e[G]||null}(e)}var ne={};function ie(e){return L(function(){var t={type:e.type,bootstrap:e.bootstrap||H,declarations:e.declarations||H,imports:e.imports||H,exports:e.exports||H,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ne[e.id]=e.type),t})}function re(e,t){return L(function(){var n=le(e,!0);n.declarations=t.declarations||H,n.imports=t.imports||H,n.exports=t.exports||H})}function oe(e,t){if(null==e)return V;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var ae=$;function se(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function ue(e){return e[z]||null}function le(e,t){var n=e[K]||null;if(!n&&!0===t)throw new Error("Type ".concat(f(e)," does not have '\u0275mod' property."));return n}function ce(e){return Array.isArray(e)&&"object"==typeof e[1]}function he(e){return Array.isArray(e)&&!0===e[1]}function fe(e){return 0!=(8&e.flags)}function de(e){return 2==(2&e.flags)}function pe(e){return 1==(1&e.flags)}function ve(e){return null!==e.template}function _e(e){return 0!=(512&e[2])}function me(e,t){return e.hasOwnProperty(Q)?e[Q]:null}var ge=function(){function e(t,n,i){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function ye(){return ke}function ke(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ce),be}function be(){var e=xe(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===V)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Ce(e,t,n,i){var r=xe(e)||function(e,t){return e[we]=t}(e,{previous:V,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],u=a[s];o[s]=new ge(u&&u.currentValue,t,a===V),e[i]=t}ye.ngInherit=!0;var we="__ngSimpleChanges__";function xe(e){return e[we]||null}var Ee,Se="http://www.w3.org/2000/svg";function Ae(e){Ee=e}function Oe(){return void 0!==Ee?Ee:"undefined"!=typeof document?document:void 0}function Te(e){return!!e.listen}var Pe={createRenderer:function(e,t){return Oe()}};function Ie(e){for(;Array.isArray(e);)e=e[0];return e}function Re(e,t){return Ie(t[e])}function De(e,t){return Ie(t[e.index])}function Me(e,t){return e.data[t]}function Le(e,t){return e[t]}function Fe(e,t){var n=t[e];return ce(n)?n:n[0]}function Ne(e){return 4==(4&e[2])}function Ue(e){return 128==(128&e[2])}function Be(e,t){return null==t?null:e[t]}function Ze(e){e[18]=0}function je(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var qe={lFrame:dt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ve(){return qe.bindingsEnabled}function He(){return qe.lFrame.lView}function ze(){return qe.lFrame.tView}function Ye(e){return qe.lFrame.contextLView=e,e[8]}function Ge(){for(var e=Ke();null!==e&&64===e.type;)e=e.parent;return e}function Ke(){return qe.lFrame.currentTNode}function We(e,t){var n=qe.lFrame;n.currentTNode=e,n.isParent=t}function Qe(){return qe.lFrame.isParent}function Je(){qe.lFrame.isParent=!1}function Xe(){return qe.isInCheckNoChangesMode}function $e(e){qe.isInCheckNoChangesMode=e}function et(){var e=qe.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function tt(){return qe.lFrame.bindingIndex}function nt(){return qe.lFrame.bindingIndex++}function it(e){var t=qe.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function rt(e,t){var n=qe.lFrame;n.bindingIndex=n.bindingRootIndex=e,ot(t)}function ot(e){qe.lFrame.currentDirectiveIndex=e}function at(e){var t=qe.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function st(){return qe.lFrame.currentQueryIndex}function ut(e){qe.lFrame.currentQueryIndex=e}function lt(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function ct(e,t,n){if(n&R.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&R.Host||(i=lt(r),null===i||(r=r[15],10&i.type))););if(null===i)return!1;t=i,e=r}var o=qe.lFrame=ft();return o.currentTNode=t,o.lView=e,!0}function ht(e){var t=ft(),n=e[1];qe.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ft(){var e=qe.lFrame,t=null===e?null:e.child;return null===t?dt(e):t}function dt(e){var t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function pt(){var e=qe.lFrame;return qe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var vt=pt;function _t(){var e=pt();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function mt(){return qe.lFrame.selectedIndex}function gt(e){qe.lFrame.selectedIndex=e}function yt(){var e=qe.lFrame;return Me(e.tView,e.selectedIndex)}function kt(){qe.lFrame.currentNamespace=Se}function bt(){qe.lFrame.currentNamespace=null}function Ct(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[s]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var Ot=function e(t,n,i){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Tt(e,t,n){for(var i=Te(e),r=0;rt){a=o-1;break}}}for(;o>16}(e),i=t;n>0;)i=i[15],n--;return i}var Nt=!0;function Ut(e){var t=Nt;return Nt=e,t}var Bt=0;function Zt(e,t){var n=qt(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,jt(i.data,e),jt(t,null),jt(i.blueprint,null));var r=Vt(e,t),o=e.injectorIndex;if(Mt(r))for(var a=Lt(r),s=Ft(r,t),u=s[1].data,l=0;l<8;l++)t[o+l]=s[a+l]|u[a+l];return t[o+8]=r,o}function jt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function qt(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Vt(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Ht(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(J)&&(i=n[J]),null==i&&(i=n[J]=Bt++);var r=255&i;t.data[e+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:R.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(J)?e[J]:void 0;return"number"==typeof t?t>=0?255&t:Wt:t}(n);if("function"==typeof o){if(!ct(t,e,i))return i&R.Host?zt(r,n,i):Yt(t,n,i,r);try{var a=o(i);if(null!=a||i&R.Optional)return a;b(n)}finally{vt()}}else if("number"==typeof o){var s=null,u=qt(e,t),l=-1,c=i&R.Host?t[16][6]:null;for((-1===u||i&R.SkipSelf)&&(-1!==(l=-1===u?Vt(e,t):t[u+8])&&en(i,!1)?(s=t[1],u=Lt(l),t=Ft(l,t)):u=-1);-1!==u;){var h=t[1];if($t(o,u,h.data)){var f=Qt(u,t,n,s,i,c);if(f!==Kt)return f}-1!==(l=t[u+8])&&en(i,t[1].data[u+8]===c)&&$t(o,u,t)?(s=h,u=Lt(l),t=Ft(l,t)):u=-1}}}return Yt(t,n,i,r)}var Kt={};function Wt(){return new tn(Ge(),He())}function Qt(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],u=Jt(s,a,n,null==i?de(s)&&Nt:i!=a&&0!=(3&s.type),r&R.Host&&o===s);return null!==u?Xt(t,a,u,s):Kt}function Jt(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,u=e.directiveStart,l=o>>20,c=r?s+l:e.directiveEnd,h=i?s:s+l;h=u&&f.type===n)return h}if(r){var d=a[u];if(d&&ve(d)&&d.type===n)return u}return null}function Xt(e,t,n,i){var r=e[n],o=t.data;if(function(e){return e instanceof Ot}(r)){var a=r;a.resolving&&function(e,t){throw new g("200","Circular dependency in DI detected for ".concat(e))}(k(o[n]));var s=Ut(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?D(a.injectImpl):null;ct(e,i,R.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,o=i.ngOnInit,a=i.ngDoCheck;if(r){var s=ke(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,o[n],t)}finally{null!==u&&D(u),Ut(s),a.resolving=!1,vt()}}return r}function $t(e,t,n){return!!(n[t+(e>>5)]&1<=e.length?e.push(n):e.splice(t,0,n)}function pn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function vn(e,t){for(var n=[],i=0;i=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function mn(e,t){var n=gn(e,t);if(n>=0)return e[1|n]}function gn(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var yn,kn={},bn="__NG_DI_FLAG__",Cn="ngTempTokenPath",wn=/\n/gm,xn="__source",En=c({provide:String,useValue:c});function Sn(e){var t=yn;return yn=e,t}function An(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.Default;if(void 0===yn)throw new Error("inject() must be called from an injection context");return null===yn?M(e,void 0,t):yn.get(e,t&R.Optional?null:void 0,t)}function On(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.Default;return(A||An)(_(e),t)}var Tn=On;function Pn(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=f(t);if(Array.isArray(t))r=t.map(f).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):f(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(wn,"\n "))}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[Cn]=null,e}var Mn,Ln,Fn=In(sn("Inject",function(e){return{token:e}}),-1),Nn=In(sn("Optional"),8),Un=In(sn("SkipSelf"),4);function Bn(e){var t;return(null===(t=function(){if(void 0===Mn&&(Mn=null,q.trustedTypes))try{Mn=q.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(e){}return Mn}())||void 0===t?void 0:t.createHTML(e))||e}function Zn(e){var t;return(null===(t=function(){if(void 0===Ln&&(Ln=null,q.trustedTypes))try{Ln=q.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(e){}return Ln}())||void 0===t?void 0:t.createHTML(e))||e}var jn=function(){function e(t){_classCallCheck(this,e),this.changingThisBreaksApplicationSecurity=t}return _createClass(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity," (see https://g.co/ng/security#xss)")}}]),e}(),qn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(jn),Vn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(jn),Hn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(jn),zn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(jn),Yn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(jn);function Gn(e){return e instanceof jn?e.changingThisBreaksApplicationSecurity:e}function Kn(e,t){var n=Wn(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function Wn(e){return e instanceof jn&&e.getTypeName()||null}function Qn(e){return new qn(e)}function Jn(e){return new Vn(e)}function Xn(e){return new Hn(e)}function $n(e){return new zn(e)}function ei(e){return new Yn(e)}var ti=function(){function e(t){_classCallCheck(this,e),this.inertDocumentHelper=t}return _createClass(e,[{key:"getInertBodyElement",value:function(e){e=""+e;try{var t=(new window.DOMParser).parseFromString(Bn(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}]),e}(),ni=function(){function e(t){if(_classCallCheck(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return _createClass(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Bn(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Bn(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();fi.hasOwnProperty(t)&&!li.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(ki(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),gi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yi=/([^\#-~ |!])/g;function ki(e){return e.replace(/&/g,"&").replace(gi,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(yi,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function bi(e,t){var n=null;try{ui=ui||function(e){var t=new ni(e);return function(){try{return!!(new window.DOMParser).parseFromString(Bn(""),"text/html")}catch(e){return!1}}()?new ti(t):t}(e);var i=t?String(t):"";n=ui.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=ui.getInertBodyElement(i)}while(i!==o);return Bn((new mi).sanitizeChildren(Ci(n)||n))}finally{if(n)for(var a=Ci(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Ci(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var wi=((wi=wi||{})[wi.NONE=0]="NONE",wi[wi.HTML=1]="HTML",wi[wi.STYLE=2]="STYLE",wi[wi.SCRIPT=3]="SCRIPT",wi[wi.URL=4]="URL",wi[wi.RESOURCE_URL=5]="RESOURCE_URL",wi);function xi(e){var t=Si();return t?Zn(t.sanitize(wi.HTML,e)||""):Kn(e,"HTML")?Zn(Gn(e)):bi(Oe(),y(e))}function Ei(e){var t=Si();return t?t.sanitize(wi.URL,e)||"":Kn(e,"URL")?Gn(e):oi(y(e))}function Si(){var e=He();return e&&e[12]}var Ai="__ngContext__";function Oi(e,t){e[Ai]=t}function Ti(e){var t=function(e){return e[Ai]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Pi(e){return e.ngOriginalError}function Ii(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0&&(e[n-1][4]=i[4]);var o=pn(e,10+t);!function(e,t){or(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);var a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function zi(e,t){if(!(256&t[2])){var n=t[11];Te(n)&&n.destroyNode&&or(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Yi(e[1],e);for(;t;){var n=null;if(ce(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)ce(t)&&Yi(t[1],t),t=t[3];null===t&&(t=e),ce(t)&&Yi(t[1],t),n=t&&t[4]}t=n}}(t)}}function Yi(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i=0?i[r=l]():i[r=-l].unsubscribe(),o+=2}else{var c=i[r=n[o+1]];n[o].call(c)}if(null!==i){for(var h=r+1;ho?"":r[c+1].toLowerCase();var f=8&i?h:null;if(f&&-1!==lr(f,l,0)||2&i&&l!==h){if(vr(i))return!1;a=!0}}}}else{if(!a&&!vr(i)&&!vr(u))return!1;if(a&&vr(u))continue;a=!1,i=u|1&i}}return vr(i)||a}function vr(e){return 0==(1&e)}function _r(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!vr(a)&&(t+=yr(o,r),r=""),i=a,o=o||!vr(i);n++}return""!==r&&(t+=yr(o,r)),t}var br={};function Cr(e){wr(ze(),He(),mt()+e,Xe())}function wr(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&wt(t,r,n)}else{var o=e.preOrderHooks;null!==o&&xt(t,o,0,n)}gt(n)}function xr(e,t){return e<<17|t<<2}function Er(e){return e>>17&32767}function Sr(e){return 2|e}function Ar(e){return(131068&e)>>2}function Or(e,t){return-131069&e|t<<2}function Tr(e){return 1|e}function Pr(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i20&&wr(e,t,20,Xe()),n(i,r)}finally{gt(o)}}function Ur(e,t,n){if(fe(t))for(var i=t.directiveEnd,r=t.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:De,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(i,r,a)}}function Kr(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Wr(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Qr(e,t,n){if(n){if(t.exportAs)for(var i=0;i0&&ro(n)}}function ro(e){for(var t=Ui(e);null!==t;t=Bi(t))for(var n=10;n0&&ro(i)}var o=e[1].components;if(null!==o)for(var a=0;a0&&ro(s)}}function oo(e,t){var n=Fe(t,e),i=n[1];(function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:kn;if(t===kn){var n=new Error("NullInjectorError: No provider for ".concat(f(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),wo=new un("Set Injector scope."),xo={},Eo={};function So(){return void 0===ko&&(ko=new Co),ko}function Ao(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Oo(e,n,t||So(),i)}var Oo=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&fn(n,function(e){return r.processProvider(e,t,n)}),fn([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(bo,Io(void 0,this));var s=this.records.get(wo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:f(t))}return _createClass(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.Default;this.assertNotDestroyed();var i,r=Sn(this),o=D(void 0);try{if(!(n&R.SkipSelf)){var a=this.records.get(e);if(void 0===a){var s=("function"==typeof(i=e)||"object"==typeof i&&i instanceof un)&&x(e);a=s&&this.injectableDefInScope(s)?Io(To(e),xo):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(n&R.Self?So():this.parent).get(e,t=n&R.Optional&&t===kn?null:t)}catch(u){if("NullInjectorError"===u.name){if((u[Cn]=u[Cn]||[]).unshift(f(e)),r)throw u;return Dn(u,e,"R3InjectorError",this.source)}throw u}finally{D(o),Sn(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(f(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=_(e)))return!1;var r=S(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=S(o)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(a);try{fn(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,r=t.providers;fn(r,function(e){return i.processProvider(e,n,r||H)})},c=0;c0){var n=vn(t,"?");throw new Error("Can't resolve all parameters for ".concat(f(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[O]||e[P]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" 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 "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Po(e,t,n){var i;if(Do(e)){var r=_(e);return me(r)||To(r)}if(Ro(e))i=function(){return _(e.useValue)};else if(function(e){return!(!e||!e.useFactory)}(e))i=function(){return e.useFactory.apply(e,_toConsumableArray(Pn(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return On(_(e.useExisting))};else{var o=_(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return me(o)||To(o);i=function(){return _construct(o,_toConsumableArray(Pn(e.deps)))}}return i}function Io(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Ro(e){return null!==e&&"object"==typeof e&&En in e}function Do(e){return"function"==typeof e}var Mo=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=Ao(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},Lo=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Mo(e,t,""):Mo(e.providers,e.parent,e.name||"")}}]),e}();function Fo(e,t){Ct(Ti(e)[1],Ge())}function No(e){for(var t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0,i=[e];t;){var r=void 0;if(ve(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=Uo(e.inputs),o.declaredInputs=Uo(e.declaredInputs),o.outputs=Uo(e.outputs);var a=r.hostBindings;a&&jo(e,a);var s=r.viewQuery,u=r.contentQueries;if(s&&Bo(e,s),u&&Zo(e,u),h(e.inputs,r.inputs),h(e.declaredInputs,r.declaredInputs),h(e.outputs,r.outputs),ve(r)&&r.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var f=0;f=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Rt(r.hostAttrs,n=Rt(n,r.hostAttrs))}}(i)}function Uo(e){return e===V?{}:e===H?[]:e}function Bo(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function Zo(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function jo(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}Lo.THROW_IF_NOT_FOUND=kn,Lo.NULL=new Co,Lo.\u0275prov=C({token:Lo,providedIn:"any",factory:function(){return On(bo)}}),Lo.__NG_ELEMENT_ID__=-1;var qo=null;function Vo(){if(!qo){var e=q.Symbol;if(e&&e.iterator)qo=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:R.Default,n=He();return null===n?On(e,t):Gt(Ge(),n,_(e),t)}function ea(e,t,n){var i=He();return Go(i,nt(),t)&&zr(ze(),yt(),i,e,t,i[11],n,!1),ea}function ta(e,t,n,i,r){var o=r?"class":"style";mo(e,n,t.inputs[o],o,i)}function na(e,t,n,i){var r=He(),o=ze(),a=20+e,s=r[11],u=r[a]=qi(s,t,qe.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,u=Rr(t,e,2,r,Be(s,o));return Yr(t,n,u,Be(s,a)),null!==u.attrs&&yo(u,u.attrs,!1),null!==u.mergedAttrs&&yo(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(a,o,r,0,t,n,i):o.data[a];We(l,!0);var c=l.mergedAttrs;null!==c&&Tt(s,u,c);var h=l.classes;null!==h&&ur(s,u,h);var f=l.styles;null!==f&&sr(s,u,f),64!=(64&l.flags)&&er(o,r,u,l),0===qe.lFrame.elementDepthCount&&Oi(u,r),qe.lFrame.elementDepthCount++,pe(l)&&(Br(o,r,l),Ur(o,l,r)),null!==i&&Zr(r,l)}function ia(){var e=Ge();Qe()?Je():We(e=e.parent,!1);var t=e;qe.lFrame.elementDepthCount--;var n=ze();n.firstCreatePass&&(Ct(n,e),fe(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&ta(n,t,He(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&ta(n,t,He(),t.stylesWithoutHost,!1)}function ra(e,t,n,i){na(e,t,n,i),ia()}function oa(e,t,n){var i=He(),r=ze(),o=e+20,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=Be(o,i),s=Rr(t,e,8,"ng-container",a);return null!==a&&yo(s,a,!0),Yr(t,n,s,Be(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,r,i,t,n):r.data[o];We(a,!0);var s=i[o]=i[11].createComment("");er(r,i,s,a),Oi(s,i),pe(a)&&(Br(r,i,a),Ur(r,a,i)),null!=n&&Zr(i,a)}function aa(){var e=Ge(),t=ze();Qe()?Je():We(e=e.parent,!1),t.firstCreatePass&&(Ct(t,e),fe(e)&&t.queries.elementEnd(e))}function sa(){return He()}function ua(e){return!!e&&"function"==typeof e.then}function la(e){return!!e&&"function"==typeof e.subscribe}var ca=la;function ha(e,t,n,i){var r=He(),o=ze(),a=Ge();return da(o,r,r[11],a,e,t,!!n,i),ha}function fa(e,t){var n=Ge(),i=He(),r=ze();return da(r,i,vo(at(r.data),n,i),n,e,t,!1),fa}function da(e,t,n,i,r,o,a,s){var u=pe(i),l=e.firstCreatePass&&po(e),c=t[8],h=fo(t),f=!0;if(3&i.type||s){var d=De(i,t),p=s?s(d):d,v=h.length,_=s?function(e){return s(Ie(e[i.index]))}:i.index;if(Te(n)){var m=null;if(!s&&u&&(m=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,f=!1;else{o=va(i,t,c,o,!1);var g=n.listen(p,r,o);h.push(o,g),l&&l.push(r,_,v,v+1)}}else o=va(i,t,c,o,!0),p.addEventListener(r,o,a),h.push(o),l&&l.push(r,_,v,a)}else o=va(i,t,c,o,!1);var y,k=i.outputs;if(f&&null!==k&&(y=k[r])){var b=y.length;if(b)for(var C=0;C0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(qe.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,qe.lFrame.contextLView))[8]}(e)}function ma(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=He(),r=ze(),o=Rr(r,20+e,16,null,n||null);null===o.projection&&(o.projection=t),Je(),64!=(64&o.flags)&&function(e,t,n){ar(t[11],0,t,n,Gi(e,n,t),Xi(n.parent||t[6],n,t))}(r,i,o)}function ka(e,t,n){return ba(e,"",t,"",n),ka}function ba(e,t,n,i,r){var o=He(),a=Qo(o,t,n,i);return a!==br&&zr(ze(),yt(),o,e,a,o[11],r,!1),ba}function Ca(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?Er(o):Ar(o),u=!1;0!==s&&(!1===u||a);){var l=e[s+1];wa(e[s],t)&&(u=!0,e[s+1]=i?Tr(l):Sr(l)),s=i?Er(l):Ar(l)}u&&(e[n+1]=i?Sr(o):Tr(o))}function wa(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&gn(e,t)>=0}var xa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ea(e){return e.substring(xa.key,xa.keyEnd)}function Sa(e,t){var n=xa.textEnd;return n===t?-1:(t=xa.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,xa.key=t,n),Aa(e,t,n))}function Aa(e,t,n){for(;t=0;n=Sa(t,n))_n(e,Ea(t),!0)}function Ra(e,t,n,i){var r=He(),o=ze(),a=it(2);o.firstUpdatePass&&La(o,e,a,i),t!==br&&Go(r,a,t)&&Ua(o,o.data[mt()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=f(Gn(e)))),e}(t,n),i,a)}function Da(e,t,n,i){var r=ze(),o=it(2);r.firstUpdatePass&&La(r,null,o,i);var a=He();if(n!==br&&Go(a,o,n)){var s=r.data[mt()];if(ja(s,i)&&!Ma(r,o)){var u=i?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(n=d(u,n||"")),ta(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===br&&(r=H);for(var u=0,l=0,c=0=e.expandoStartIndex}function La(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[mt()],a=Ma(e,n);ja(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=at(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Na(n=Fa(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=Fa(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Ar(i))return e[Er(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[Er(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Na(s=Fa(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i,r=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else l=n;if(r)if(0!==u){var f=Er(e[s+1]);e[i+1]=xr(f,s),0!==f&&(e[f+1]=Or(e[f+1],i)),e[s+1]=function(e,t){return 131071&e|t<<17}(e[s+1],i)}else e[i+1]=xr(s,0),0!==s&&(e[s+1]=Or(e[s+1],i)),s=i;else e[i+1]=xr(u,0),0===s?s=i:e[u+1]=Or(e[u+1],i),u=i;c&&(e[i+1]=Sr(e[i+1])),Ca(e,l,i,!0),Ca(e,l,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&gn(o,t)>=0&&(n[i+1]=Tr(n[i+1]))}(t,l,e,i,o),a=xr(s,u),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function Fa(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[r],l=Array.isArray(u),c=l?u[1]:u,h=null===c,f=n[r+1];f===br&&(f=h?H:void 0);var d=h?mn(f,i):c===i?f:void 0;if(l&&!Za(d)&&(d=mn(u,i)),Za(d)&&(a=d,s))return a;var p=e[r+1];r=s?Er(p):Ar(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(a=mn(v,i))}return a}function Za(e){return void 0!==e}function ja(e,t){return 0!=(e.flags&(t?16:32))}function qa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=He(),i=ze(),r=e+20,o=i.firstCreatePass?Rr(i,r,1,t,null):i.data[r],a=n[r]=function(e,t){return Te(e)?e.createText(t):e.createTextNode(t)}(n[11],t);er(i,n,a,o),We(o,!1)}function Va(e){return Ha("",e,""),Va}function Ha(e,t,n){var i=He(),r=Qo(i,e,t,n);return r!==br&&go(i,mt(),r),Ha}function za(e,t,n,i,r){var o=He(),a=function(e,t,n,i,r,o){var a=Ko(e,tt(),n,r);return it(2),a?t+y(n)+i+y(r)+o:br}(o,e,t,n,i,r);return a!==br&&go(o,mt(),a),za}function Ya(e,t,n,i,r,o,a){var s=He(),u=function(e,t,n,i,r,o,a,s){var u=function(e,t,n,i,r){var o=Ko(e,t,n,i);return Go(e,t+2,r)||o}(e,tt(),n,r,a);return it(3),u?t+y(n)+i+y(r)+o+y(a)+s:br}(s,e,t,n,i,r,o,a);return u!==br&&go(s,mt(),u),Ya}function Ga(e,t,n){Da(_n,Ia,Qo(He(),e,t,n),!0)}function Ka(e,t,n){var i=He();return Go(i,nt(),t)&&zr(ze(),yt(),i,e,t,i[11],n,!0),Ka}function Wa(e,t,n){var i=He();if(Go(i,nt(),t)){var r=ze(),o=yt();zr(r,o,i,e,t,vo(at(r.data),o,i),n,!0)}return Wa}var Qa=void 0,Ja=["en",[["a","p"],["AM","PM"],Qa],[["AM","PM"],Qa,Qa],[["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"]],Qa,[["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"]],Qa,[["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}",Qa,"{1} 'at' {0}",Qa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Xa={};function $a(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=ts(t);if(n)return n;var i=t.split("-")[0];if(n=ts(i))return n;if("en"===i)return Ja;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function es(e){return $a(e)[ns.PluralCase]}function ts(e){return e in Xa||(Xa[e]=q.ng&&q.ng.common&&q.ng.common.locales&&q.ng.common.locales[e]),Xa[e]}var ns=((ns=ns||{})[ns.LocaleId=0]="LocaleId",ns[ns.DayPeriodsFormat=1]="DayPeriodsFormat",ns[ns.DayPeriodsStandalone=2]="DayPeriodsStandalone",ns[ns.DaysFormat=3]="DaysFormat",ns[ns.DaysStandalone=4]="DaysStandalone",ns[ns.MonthsFormat=5]="MonthsFormat",ns[ns.MonthsStandalone=6]="MonthsStandalone",ns[ns.Eras=7]="Eras",ns[ns.FirstDayOfWeek=8]="FirstDayOfWeek",ns[ns.WeekendRange=9]="WeekendRange",ns[ns.DateFormat=10]="DateFormat",ns[ns.TimeFormat=11]="TimeFormat",ns[ns.DateTimeFormat=12]="DateTimeFormat",ns[ns.NumberSymbols=13]="NumberSymbols",ns[ns.NumberFormats=14]="NumberFormats",ns[ns.CurrencyCode=15]="CurrencyCode",ns[ns.CurrencySymbol=16]="CurrencySymbol",ns[ns.CurrencyName=17]="CurrencyName",ns[ns.Currencies=18]="Currencies",ns[ns.Directionality=19]="Directionality",ns[ns.PluralCase=20]="PluralCase",ns[ns.ExtraData=21]="ExtraData",ns),is="en-US";function rs(e){(function(e,t){null==e&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(t,e)})(e,"Expected localeId to be defined"),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function os(e,t,n,i,r){if(e=_(e),Array.isArray(e))for(var o=0;o>20;if(Do(e)||!e.multi){var p=new Ot(l,r,$o),v=us(u,t,r?h:h+d,f);-1===v?(Ht(Zt(c,s),a,u),as(a,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var m=us(u,t,h+d,f),g=us(u,t,h,h+d),y=m>=0&&n[m],k=g>=0&&n[g];if(r&&!k||!r&&!y){Ht(Zt(c,s),a,u);var b=function(e,t,n,i,r){var o=new Ot(e,n,$o);return o.multi=[],o.index=t,o.componentProviders=0,ss(o,r,i&&!n),o}(r?cs:ls,n.length,r,i,l);!r&&k&&(n[g].providerFactory=b),as(a,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(b),s.push(b)}else as(a,e,m>-1?m:g,ss(n[r?g:m],l,!r&&i));!r&&i&&k&&n[g].componentProviders++}}}function as(e,t,n,i){var r=Do(t);if(r||function(e){return!!e.useClass}(t)){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function ss(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function us(e,t,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=ze();if(i.firstCreatePass){var r=ve(e);os(n,i.data,i.blueprint,r,!0),os(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var ds=function e(){_classCallCheck(this,e)},ps=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(f(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),vs=function e(){_classCallCheck(this,e)};function _s(){}function ms(e,t){return new ys(De(e,t))}vs.NULL=new ps;var gs,ys=((gs=function e(t){_classCallCheck(this,e),this.nativeElement=t}).__NG_ELEMENT_ID__=function(){return ms(Ge(),He())},gs);function ks(e){return e instanceof ys?e.nativeElement:e}var bs=function e(){_classCallCheck(this,e)},Cs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return ws()},e}(),ws=function(){var e=He(),t=Fe(Ge().index,e);return function(e){return e[11]}(ce(t)?t:e)},xs=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=C({token:e,providedIn:"root",factory:function(){return null}}),e}(),Es=function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Ss=new Es("12.2.4"),As=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return zo(e)}},{key:"create",value:function(e){return new Ts(e)}}]),e}(),Os=function(e,t){return t},Ts=function(){function e(t){_classCallCheck(this,e),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=t||Os}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&i.push(Ie(o)),he(o))for(var a=10;a-1&&(Hi(e,n),pn(t,n))}this._attachedToViewContainer=!1}zi(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Vr(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){so(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){uo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){$e(!0);try{uo(e,t,n)}finally{$e(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,or(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),Vs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._view=e,i}return _createClass(n,[{key:"detectChanges",value:function(){lo(this._view)}},{key:"checkNoChanges",value:function(){!function(e){$e(!0);try{lo(e)}finally{$e(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(qs),Hs=function(e){return function(e,t,n){if(de(e)&&!n){var i=Fe(e.index,t);return new qs(i,i)}return 47&e.type?new qs(t[16],t):null}(Ge(),He(),16==(16&e))},zs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Hs,e}(),Ys=[new Ms],Gs=new Us([new As]),Ks=new Zs(Ys),Ws=function(){return Xs(Ge(),He())},Qs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Ws,e}(),Js=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return _createClass(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Ir(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Mr(t,n,e),new qs(n)}}]),n}(Qs);function Xs(e,t){return 4&e.type?new Js(t,e,ms(e,t)):null}var $s=function e(){_classCallCheck(this,e)},eu=function e(){_classCallCheck(this,e)},tu=function(){return au(Ge(),He())},nu=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=tu,e}(),iu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return _createClass(n,[{key:"element",get:function(){return ms(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new tn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=Vt(this._hostTNode,this._hostLView);if(Mt(e)){var t=Ft(e,this._hostLView),n=Lt(e);return new tn(t[1].data[n+8],t)}return new tn(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=ru(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get($s,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(he(i[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=i[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(e))}}var u=this._adjustIndex(t),l=this._lContainer;!function(e,t,n,i){var r=10+i,o=n.length;i>0&&(n[r-1][4]=t),i1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(nu);function ru(e){return e[8]}function ou(e){return e[8]||(e[8]=[])}function au(e,t){var n,i=t[e.index];if(he(i))n=i;else{var r;if(8&e.type)r=Ie(i);else{var o=t[11];r=o.createComment("");var a=De(e,t);Ki(o,Ji(o,a),r,function(e,t){return Te(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=no(i,t,r,e),ao(t,n)}return new iu(n,e,t)}var su={},uu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).ngModule=e,i}return _createClass(n,[{key:"resolveComponentFactory",value:function(e){var t=ue(e);return new hu(t,this.ngModule)}}]),n}(vs);function lu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var cu=new un("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Di}}),hu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(kr).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return _createClass(n,[{key:"inputs",get:function(){return lu(this.componentDef.inputs)}},{key:"outputs",get:function(){return lu(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,su,r);return o!==su||i===su?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(bs,Pe),u=a.get(xs,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Te(e))return e.selectRootElement(t,n===N.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(l,n,this.componentDef.encapsulation):qi(s.createRenderer(null,this.componentDef),c,function(e){var t=e.toLowerCase();return"svg"===t?Se:"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:Di,clean:ho,playerHandler:null,flags:0},p=qr(0,null,null,1,0,null,null,null,null,null),v=Ir(null,p,d,f,null,null,s,l,u,a);ht(v);try{var _=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=Rr(a,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(yo(s,u,!0),null!==e&&(Tt(r,e,u),null!==s.classes&&ur(r,e,s.classes),null!==s.styles&&sr(r,e,s.styles)));var l=i.createRenderer(e,t),c=Ir(n,jr(t),null,t.onPush?64:16,n[20],s,i,l,null,null);return a.firstCreatePass&&(Ht(Zt(s,n),a,t.type),Wr(a,s),Jr(s,n.length,1)),ao(n,c),n[20]=c}(h,this.componentDef,v,s,l);if(h)if(n)Tt(l,h,["ng-version",Ss.full]);else{var m=function(e){for(var t=[],n=[],i=1,r=2;i0&&ur(l,h,y.join(" "))}if(o=Me(p,20),void 0!==t)for(var k=o.projection=[],b=0;b1&&void 0!==arguments[1]?arguments[1]:Lo.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.Default;return e===Lo||e===$s||e===bo?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}($s),vu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).moduleType=e,null!==le(e)&&function(e){var t=new Set;!function e(n){var i=le(n,!0),r=i.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(f(t)," vs ").concat(f(t.name)))}(r,du.get(r),n),du.set(r,n));var o,a=_createForOfIteratorHelper(Mi(i.imports));try{for(a.s();!(o=a.n()).done;){var s=o.value;t.has(s)||(t.add(s),e(s))}}catch(u){a.e(u)}finally{a.f()}}(e)}(e),i}return _createClass(n,[{key:"create",value:function(e){return new pu(this.moduleType,e)}}]),n}(eu);function _u(e,t,n,i){return mu(He(),et(),e,t,n,i)}function mu(e,t,n,i,r,o){var a=t+n;return Go(e,a,r)?function(e,t,n){return e[t]=n}(e,a+1,o?i.call(o,r):i(r)):function(e,t){var n=e[t];return n===br?void 0:n}(e,a+1)}function gu(e,t){var n,i=ze(),r=e+20;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new g("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=me(n.type)),a=D($o);try{var s=Ut(!1),u=o();return Ut(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,He(),r,u),u}finally{D(a)}}function yu(e,t,n){var i=e+20,r=He(),o=Le(r,i);return function(e,t){return Ho.isWrapped(t)&&(t=Ho.unwrap(t),e[tt()]=br),t}(r,function(e,t){return e[1].data[t].pure}(r,i)?mu(r,et(),t,o.transform,n,o):o.transform(n))}function ku(e){return function(t){setTimeout(e,void 0,t)}}var bu=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=i,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var o,a,s,u=e,l=t||function(){return null},c=i;if(e&&"object"==typeof e){var h=e;u=null===(o=h.next)||void 0===o?void 0:o.bind(h),l=null===(a=h.error)||void 0===a?void 0:a.bind(h),c=null===(s=h.complete)||void 0===s?void 0:s.bind(h)}this.__isAsync&&(l=ku(l),u&&(u=ku(u)),c&&(c=ku(c)));var f=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,{next:u,error:l,complete:c});return e instanceof r.w&&e.add(f),f}}]),n}(i.xQ);function Cu(){return this._results[Vo()]()}var wu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classCallCheck(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Vo(),i=e.prototype;i[n]||(i[n]=Cu)}return _createClass(e,[{key:"changes",get:function(){return this._changes||(this._changes=new bu)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){var n=this;n.dirty=!1;var i=hn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,e),this.predicate=t,this.flags=n,this.read=i},Au=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(a[s/2]);else{for(var l=o[s+1],c=t[-u],h=10;h0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!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,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(On(sl))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}(),vl=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,gl.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return gl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function _l(e){gl=e}var ml,gl=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),yl=!0,kl=!1;function bl(){return kl=!0,yl}function Cl(){if(kl)throw new Error("Cannot enable prod mode after platform setup.");yl=!1}var wl=new un("AllowMultipleToken"),xl=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function El(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new un(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Sl();if(!o||o.injector.get(wl,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:wo,useValue:"platform"});!function(e){if(ml&&!ml.destroyed&&!ml.injector.get(wl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ml=e.get(Al);var t=e.get(zu,null);t&&t.forEach(function(e){return e()})}(Lo.create({providers:a,name:i}))}return function(e){var t=Sl();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Sl(){return ml&&!ml.destroyed?ml:null}var Al=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n=this,i=function(e,t){return"noop"===e?new dl:("zone.js"===e?void 0:e)||new sl({enableLongStackTrace:bl(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)})}(t?t.ngZone:void 0,{ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1}),r=[{provide:sl,useValue:i}];return i.run(function(){var o=Lo.create({providers:r,parent:n.injector,name:e.moduleType.name}),a=e.create(o),s=a.injector.get(Ri,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.runOutsideAngular(function(){var e=i.onError.subscribe({next:function(e){s.handleError(e)}});a.onDestroy(function(){Pl(n._modules,a),e.unsubscribe()})}),function(e,i,r){try{var o=((s=a.injector.get(ju)).runInitializers(),s.donePromise.then(function(){return rs(a.injector.get(Wu,is)||is),n._moduleDoBootstrap(a),a}));return ua(o)?o.catch(function(t){throw i.runOutsideAngular(function(){return e.handleError(t)}),t}):o}catch(t){throw i.runOutsideAngular(function(){return e.handleError(t)}),t}var s}(s,i)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Ol({},n);return function(e,t,n){var i=new vu(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Tl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(f(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(On(Lo))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Ol(e,t){return Array.isArray(t)?t.reduce(Ol,e):Object.assign(Object.assign({},e),t)}var Tl=function(){var e=function(){function e(t,n,i,r,c){var h=this;_classCallCheck(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){h._zone.run(function(){h.tick()})}});var f=new o.y(function(e){h._stable=h._zone.isStable&&!h._zone.hasPendingMacrotasks&&!h._zone.hasPendingMicrotasks,h._zone.runOutsideAngular(function(){e.next(h._stable),e.complete()})}),d=new o.y(function(e){var t;h._zone.runOutsideAngular(function(){t=h._zone.onStable.subscribe(function(){sl.assertNotInAngularZone(),al(function(){!h._stable&&!h._zone.hasPendingMacrotasks&&!h._zone.hasPendingMicrotasks&&(h._stable=!0,e.next(!0))})})});var n=h._zone.onUnstable.subscribe(function(){sl.assertInAngularZone(),h._stable&&(h._stable=!1,h._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=(0,a.T)(f,d.pipe(function(e){return(0,u.x)()(function(e,t){return function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,s.N);return i.source=t,i.subjectFactory=n,i}}(l)(e))}))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof ds?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=function(e){return e.isBoundToModule}(n)?void 0:this._injector.get($s),o=n.create(Lo.NULL,[],t||n.selector,r),a=o.location.nativeElement,s=o.injector.get(pl,null),u=s&&o.injector.get(vl);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),Pl(i.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;){var i;t.value.detectChanges()}}catch(r){n.e(r)}finally{n.f()}}catch(i){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(i)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Pl(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Gu,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(On(sl),On(Lo),On(Ri),On(vs),On(ju))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Pl(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Il=function e(){_classCallCheck(this,e)},Rl=function e(){_classCallCheck(this,e)},Dl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Ml=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||Dl}return _createClass(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=_slicedToArray(e.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n(8255)(r).then(function(e){return e[o]}).then(function(e){return Ll(e,r,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),i=t[0],r=t[1],o="NgFactory";return void 0===r&&(r="default",o=""),n(8255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+o]}).then(function(e){return Ll(e,i,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(On(rl),On(Rl,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e}();function Ll(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Fl=function(e){return null},Nl=El(null,"core",[{provide:Yu,useValue:"unknown"},{provide:Al,deps:[Lo]},{provide:vl,deps:[]},{provide:Ku,deps:[]}]),Ul=[{provide:Tl,useClass:Tl,deps:[sl,Lo,Ri,vs,ju]},{provide:cu,deps:[sl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:ju,useClass:ju,deps:[[new Nn,Zu]]},{provide:rl,useClass:rl,deps:[]},Vu,{provide:Us,useFactory:function(){return Gs},deps:[]},{provide:Zs,useFactory:function(){return Ks},deps:[]},{provide:Wu,useFactory:function(e){return rs(e=e||"undefined"!=typeof $localize&&$localize.locale||is),e},deps:[[new Fn(Wu),new Nn,new Un]]},{provide:Qu,useValue:"USD"}],Bl=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)(On(Tl))},e.\u0275mod=ie({type:e}),e.\u0275inj=w({providers:Ul}),e}()},665:function(e,t,n){"use strict";n.d(t,{Zs:function(){return ce},sg:function(){return ae},u5:function(){return fe},Cf:function(){return h},JU:function(){return c},a5:function(){return P},JL:function(){return I},F:function(){return ne},_Y:function(){return ie}});var i=n(3018),r=(n(8583),n(7574)),o=n(9796),a=n(8002),s=n(1555),u=n(4402);function l(e,t){return new r.y(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var l=(0,u.D)(e[s]),c=!1;n.add(l.subscribe({next:function(e){c||(c=!0,a++),r[s]=e},error:function(e){return n.error(e)},complete:function(){(++o===i||!c)&&(a===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},l=0;l0){var r=i.filter(function(e){return e!==t.validator});r.length!==i.length&&(n=!0,e.setValidators(r))}}if(null!==t.asyncValidator){var o=C(e);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(e){return e!==t.asyncValidator});a.length!==o.length&&(n=!0,e.setAsyncValidators(a))}}}var s=function(){};return M(t._rawValidators,s),M(t._rawAsyncValidators,s),n}function N(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function U(e,t){L(e,t)}function B(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Z(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var j="VALID",q="INVALID",V="PENDING",H="DISABLED";function z(e){return(W(e)?e.validators:e)||null}function Y(e){return Array.isArray(e)?g(e):e||null}function G(e,t){return(W(t)?t.asyncValidators:e)||null}function K(e){return Array.isArray(e)?y(e):e||null}function W(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Q=function(){function e(t,n){_classCallCheck(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=Y(this._rawValidators),this._composedAsyncValidatorFn=K(this._rawAsyncValidators)}return _createClass(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===j}},{key:"invalid",get:function(){return this.status===q}},{key:"pending",get:function(){return this.status==V}},{key:"disabled",get:function(){return this.status===H}},{key:"enabled",get:function(){return this.status!==H}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=Y(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=K(e)}},{key:"addValidators",value:function(e){this.setValidators(E(e,this._rawValidators))}},{key:"addAsyncValidators",value:function(e){this.setAsyncValidators(E(e,this._rawAsyncValidators))}},{key:"removeValidators",value:function(e){this.setValidators(S(e,this._rawValidators))}},{key:"removeAsyncValidators",value:function(e){this.setAsyncValidators(S(e,this._rawAsyncValidators))}},{key:"hasValidator",value:function(e){return x(this._rawValidators,e)}},{key:"hasAsyncValidator",value:function(e){return x(this._rawAsyncValidators,e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=V,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=H,this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=j,this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===j||this.status===V)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?H:j}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=V,this._hasOwnPendingAsyncValidator=!0;var n=p(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;var i=e;return t.forEach(function(e){i=i instanceof X?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof $&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?H:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(V)?V:this._anyControlsHaveStatus(q)?q:j}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){W(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),J=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this,z(r),G(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),e}return _createClass(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){Z(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){Z(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(Q),X=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,z(i),G(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return _createClass(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof J?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(Q),$=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,z(i),G(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return _createClass(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof J?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(Q),ee={provide:T,useExisting:(0,i.Gpc)(function(){return ne})},te=Promise.resolve(null),ne=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new i.vpe,o.form=new X({},g(e),y(r)),o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),R(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Z(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path),i=new X({});U(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;te.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;te.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,B(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.Y36(h,10),i.Y36(f,10))},e.\u0275dir=i.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([ee]),i.qOj]}),e}(),ie=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.lG2({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),re=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({}),e}(),oe={provide:T,useExisting:(0,i.Gpc)(function(){return ae})},ae=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this)).validators=e,o.asyncValidators=r,o.submitted=!1,o._onCollectionChange=function(){return o._updateDomValue()},o.directives=[],o.form=null,o.ngSubmit=new i.vpe,o._setValidators(e),o._setAsyncValidators(r),o}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(F(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return R(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){D(e.control||null,e,!1),Z(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,B(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(D(n||null,t),i instanceof J&&(R(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);U(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return F(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){L(this.form,this),this._oldForm&&F(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(T);return e.\u0275fac=function(t){return new(t||e)(i.Y36(h,10),i.Y36(f,10))},e.\u0275dir=i.lG2({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([oe]),i.qOj,i.TTD]}),e}(),se={provide:h,useExisting:(0,i.Gpc)(function(){return le}),multi:!0},ue={provide:h,useExisting:(0,i.Gpc)(function(){return ce}),multi:!0},le=function(){var e=function(){function e(){_classCallCheck(this,e),this._required=!1}return _createClass(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?function(e){return function(e){return null==e||0===e.length}(e.value)?{required:!0}:null}(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.lG2({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t.required?"":null)},inputs:{required:"required"},features:[i._Bn([se])]}),e}(),ce=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"validate",value:function(e){return this.required?function(e){return!0===e.value?null:{required:!0}}(e):null}}]),n}(le);return t.\u0275fac=function(n){return(e||(e=i.n5z(t)))(n||t)},t.\u0275dir=i.lG2({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t.required?"":null)},features:[i._Bn([ue]),i.qOj]}),t}(),he=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[re]]}),e}(),fe=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[he]}),e}()},1095:function(e,t,n){"use strict";n.d(t,{zs:function(){return p},lW:function(){return d},ot:function(){return v}});var i,r=n(2458),o=n(6237),a=n(3018),s=n(9238),u=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],f=(0,r.pj)((0,r.Id)((0,r.Kr)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}()))),d=((i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;_classCallCheck(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,s=_createForOfIteratorHelper(h);try{for(s.s();!(a=s.n()).done;){var u=a.value;o._hasHostAttributes(u)&&o._getHostElement().classList.add(u)}}catch(l){s.e(l)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0;return function(e){_inherits(i,e);var n=_createSuper(i);function i(){var e;_classCallCheck(this,i);for(var r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},A),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,u=t-r.top,l=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-a+"px",c.style.top=u-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(l,"ms"),this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var h=new S(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,!i.persistent&&(!e||!n._isPointerDown)&&h.fadeOut()},l),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},A),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=(0,u.fI)(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(T))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(P),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=(0,r.X6)(e),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,O)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(T.forEach(function(t){e._triggerElement.removeEventListener(t,e,O)}),this._pointerUpEventsRegistered&&P.forEach(function(t){e._triggerElement.removeEventListener(t,e,O)}))}}]),e}(),R=new i.OlP("mat-ripple-global-options"),D=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new I(this,n,t,i)}return _createClass(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(c.t4),i.Y36(R,8),i.Y36(h.Qb,8))},e.\u0275dir=i.lG2({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),M=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[y,c.ud],y]}),e}(),L=function(){var e=function e(t){_classCallCheck(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(i.Y36(h.Qb,8))},e.\u0275cmp=i.Xpm({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),F=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[y]]}),e}(),N=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),U=k(function(){return function e(){_classCallCheck(this,e)}}()),B=0,Z=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,r;return _classCallCheck(this,n),(i=t.call(this))._labelId="mat-optgroup-label-"+B++,i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(U);return e.\u0275fac=function(t){return new(t||e)(i.Y36(N,8))},e.\u0275dir=i.lG2({type:e,inputs:{label:"label"},features:[i.qOj]}),e}(),j=new i.OlP("MatOptgroup"),q=0,V=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,e),this.source=t,this.isUserInput=n},H=function(){var e=function(){function e(t,n,r,o){_classCallCheck(this,e),this._element=t,this._changeDetectorRef=n,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+q++,this.onSelectionChange=new i.vpe,this._stateChanges=new l.xQ}return _createClass(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=(0,u.Ig)(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){(e.keyCode===f.K5||e.keyCode===f.L_)&&!(0,f.Vb)(e)&&(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new V(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(void 0),i.Y36(Z))},e.\u0275dir=i.lG2({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),z=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){return _classCallCheck(this,n),t.call(this,e,i,r,o)}return n}(H);return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(N,8),i.Y36(j,8))},e.\u0275cmp=i.Xpm({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:_,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,d,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,p,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[s.O5,D,L],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),e}();function Y(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;an+i?Math.max(0,e-i+t):n}var K=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({imports:[[M,s.ez,y,F]]}),e}()},2238:function(e,t,n){"use strict";n.d(t,{WI:function(){return O},uw:function(){return D},H8:function(){return U},ZT:function(){return L},xY:function(){return N},Is:function(){return Z},so:function(){return S},uh:function(){return F}});var i=n(625),r=n(7636),o=n(3018),a=n(2458),s=n(946),u=n(8583),l=n(9765),c=n(1439),h=n(5917),f=n(5435),d=n(5257),p=n(9761),v=n(521),_=n(7238),m=n(6461),g=n(9238);function y(e,t){}var k,b=function e(){_classCallCheck(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},C={dialogContainer:(0,_.X$)("dialogContainer",[(0,_.SB)("void, exit",(0,_.oB)({opacity:0,transform:"scale(0.7)"})),(0,_.SB)("enter",(0,_.oB)({transform:"none"})),(0,_.eR)("* => enter",(0,_.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,_.oB)({transform:"none",opacity:1}))),(0,_.eR)("* => void, * => exit",(0,_.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,_.oB)({opacity:0})))])},w=((k=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,s,u){var l;return _classCallCheck(this,n),(l=t.call(this))._elementRef=e,l._focusTrapFactory=i,l._changeDetectorRef=r,l._config=s,l._focusMonitor=u,l._animationStateChanged=new o.vpe,l._elementFocusedBeforeDialogWasOpened=null,l._closeInteractionType=null,l.attachDomPortal=function(e){return l._portalOutlet.hasAttached(),l._portalOutlet.attachDomPortal(e)},l._ariaLabelledBy=s.ariaLabelledBy||null,l._document=a,l}return _createClass(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=(0,v.ht)(),n=this._elementRef.nativeElement;(!t||t===this._document.body||t===n||n.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,v.ht)())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=(0,v.ht)();return e===t||e.contains(t)}}]),n}(r.en)).\u0275fac=function(e){return new(e||k)(o.Y36(o.SBq),o.Y36(g.qV),o.Y36(o.sBO),o.Y36(u.K0,8),o.Y36(b),o.Y36(g.tE))},k.\u0275dir=o.lG2({type:k,viewQuery:function(e,t){var n;1&e&&o.Gf(r.Pl,7),2&e&&o.iGM(n=o.CRH())&&(t._portalOutlet=n.first)},features:[o.qOj]}),k),x=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._state="enter",e}return _createClass(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):("exit"===t||"void"===t)&&this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(w);return t.\u0275fac=function(n){return(e||(e=o.n5z(t)))(n||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&o.WFA("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(o.Ikx("id",t._id),o.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),o.d8E("@dialogContainer",t._state))},features:[o.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&o.YNc(0,y,0,0,"ng-template",0)},directives:[r.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[C.dialogContainer]}}),t}(),E=0,S=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+E++;_classCallCheck(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new l.xQ,this._afterClosed=new l.xQ,this._beforeClosed=new l.xQ,this._state=0,n._id=r,n._animationStateChanged.pipe((0,f.h)(function(e){return"opened"===e.state}),(0,d.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe((0,f.h)(function(e){return"closed"===e.state}),(0,d.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe((0,f.h)(function(e){return e.keyCode===m.hY&&!i.disableClose&&!(0,m.Vb)(e)})).subscribe(function(e){e.preventDefault(),A(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():A(i,"mouse")})}return _createClass(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe((0,f.h)(function(e){return"closing"===e.state}),(0,d.q)(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function A(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var O=new o.OlP("MatDialogData"),T=new o.OlP("mat-dialog-default-options"),P=new o.OlP("mat-dialog-scroll-strategy"),I={provide:P,deps:[i.aV],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},R=function(){var e=function(){function e(t,n,i,r,o,a,s,u,h){var f=this;_classCallCheck(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=s,this._dialogContainerType=u,this._dialogDataToken=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.xQ,this._afterOpenedAtThisLevel=new l.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,c.P)(function(){return f.openDialogs.length?f._getAfterAllClosed():f._getAfterAllClosed().pipe((0,p.O)(void 0))}),this._scrollStrategy=a}return _createClass(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new b)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=o.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:b,useValue:t}]}),i=new r.C5(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var a=new this._dialogRefConstructor(n,t,i.id);if(e instanceof o.Rgc)t.attachTemplatePortal(new r.UE(e,null,{$implicit:i.data,dialogRef:a}));else{var s=this._createInjector(i,a,t),u=t.attachComponentPortal(new r.C5(e,i.viewContainerRef,s));a.componentInstance=u.instance}return a.updateSize(i.width,i.height).updatePosition(i.position),a}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!i||!i.get(s.Is,null,o.XFs.Optional))&&r.push({provide:s.Is,useValue:{value:e.direction,change:(0,h.of)()}}),o.zs3.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i!==e&&"SCRIPT"!==i.nodeName&&"STYLE"!==i.nodeName&&!i.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(i.aV),o.Y36(o.zs3),o.Y36(void 0),o.Y36(void 0),o.Y36(i.Xj),o.Y36(void 0),o.Y36(o.DyG),o.Y36(o.DyG),o.Y36(o.OlP))},e.\u0275dir=o.lG2({type:e}),e}(),D=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u){return _classCallCheck(this,n),t.call(this,e,i,o,s,u,a,S,x,O)}return n}(R);return e.\u0275fac=function(t){return new(t||e)(o.LFG(i.aV),o.LFG(o.zs3),o.LFG(u.Ye,8),o.LFG(T,8),o.LFG(P),o.LFG(e,12),o.LFG(i.Xj))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac}),e}(),M=0,L=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.dialogRef=t,this._elementRef=n,this._dialog=i,this.type="button"}return _createClass(e,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=B(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)}},{key:"_onButtonClick",value:function(e){A(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(S,8),o.Y36(o.SBq),o.Y36(D))},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,t){1&e&&o.NdJ("click",function(e){return t._onButtonClick(e)}),2&e&&o.uIk("aria-label",t.ariaLabel||null)("type",t.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[o.TTD]}),e}(),F=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-"+M++}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=B(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.Y36(S,8),o.Y36(o.SBq),o.Y36(D))},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&o.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),N=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),e}(),U=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),e}();function B(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}var Z=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({providers:[D,I],imports:[[i.U8,r.eL,a.BQ],a.BQ]}),e}()},8295:function(e,t,n){"use strict";n.d(t,{G_:function(){return K},o2:function(){return G},KE:function(){return W},Eo:function(){return U},lN:function(){return Q},hX:function(){return Z},R9:function(){return H}});var i=n(8553),r=n(8583),o=n(3018),a=n(2458),s=n(9490),u=n(9765),l=n(6682),c=n(2759),h=n(9761),f=n(6782),d=n(5257),p=n(7238),v=n(6237),_=n(946),m=n(521),g=["underline"],y=["connectionContainer"],k=["inputContainer"],b=["label"];function C(e,t){1&e&&(o.ynx(0),o.TgZ(1,"div",14),o._UZ(2,"div",15),o._UZ(3,"div",16),o._UZ(4,"div",17),o.qZA(),o.TgZ(5,"div",18),o._UZ(6,"div",15),o._UZ(7,"div",16),o._UZ(8,"div",17),o.qZA(),o.BQk())}function w(e,t){1&e&&(o.TgZ(0,"div",19),o.Hsn(1,1),o.qZA())}function x(e,t){if(1&e&&(o.ynx(0),o.Hsn(1,2),o.TgZ(2,"span"),o._uU(3),o.qZA(),o.BQk()),2&e){var n=o.oxw(2);o.xp6(3),o.Oqu(n._control.placeholder)}}function E(e,t){1&e&&o.Hsn(0,3,["*ngSwitchCase","true"])}function S(e,t){1&e&&(o.TgZ(0,"span",23),o._uU(1," *"),o.qZA())}function A(e,t){if(1&e){var n=o.EpF();o.TgZ(0,"label",20,21),o.NdJ("cdkObserveContent",function(){return o.CHM(n),o.oxw().updateOutlineGap()}),o.YNc(2,x,4,1,"ng-container",12),o.YNc(3,E,1,0,"ng-content",12),o.YNc(4,S,2,0,"span",22),o.qZA()}if(2&e){var i=o.oxw();o.ekj("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),o.Q6J("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),o.uIk("for",i._control.id)("aria-owns",i._control.id),o.xp6(2),o.Q6J("ngSwitchCase",!1),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function O(e,t){1&e&&(o.TgZ(0,"div",24),o.Hsn(1,4),o.qZA())}function T(e,t){if(1&e&&(o.TgZ(0,"div",25,26),o._UZ(2,"span",27),o.qZA()),2&e){var n=o.oxw();o.xp6(2),o.ekj("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function P(e,t){if(1&e&&(o.TgZ(0,"div"),o.Hsn(1,5),o.qZA()),2&e){var n=o.oxw();o.Q6J("@transitionMessages",n._subscriptAnimationState)}}function I(e,t){if(1&e&&(o.TgZ(0,"div",31),o._uU(1),o.qZA()),2&e){var n=o.oxw(2);o.Q6J("id",n._hintLabelId),o.xp6(1),o.Oqu(n.hintLabel)}}function R(e,t){if(1&e&&(o.TgZ(0,"div",28),o.YNc(1,I,2,2,"div",29),o.Hsn(2,6),o._UZ(3,"div",30),o.Hsn(4,7),o.qZA()),2&e){var n=o.oxw();o.Q6J("@transitionMessages",n._subscriptAnimationState),o.xp6(1),o.Q6J("ngIf",n.hintLabel)}}var D,M=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],L=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],F=new o.OlP("MatError"),N={transitionMessages:(0,p.X$)("transitionMessages",[(0,p.SB)("enter",(0,p.oB)({opacity:1,transform:"translateY(0%)"})),(0,p.eR)("void => enter",[(0,p.oB)({opacity:0,transform:"translateY(-5px)"}),(0,p.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},U=((D=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||D)},D.\u0275dir=o.lG2({type:D}),D),B=new o.OlP("MatHint"),Z=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["mat-label"]]}),e}(),j=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["mat-placeholder"]]}),e}(),q=new o.OlP("MatPrefix"),V=new o.OlP("MatSuffix"),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=o.lG2({type:e,selectors:[["","matSuffix",""]],features:[o._Bn([{provide:V,useExisting:e}])]}),e}(),z=0,Y=(0,a.pj)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}(),"primary"),G=new o.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),K=new o.OlP("MatFormField"),W=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,l,c){var h;return _classCallCheck(this,n),(h=t.call(this,e))._changeDetectorRef=i,h._dir=o,h._defaults=a,h._platform=s,h._ngZone=l,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new u.xQ,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-"+z++,h._labelId="mat-form-field-label-"+z++,h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==c,h.appearance=a&&a.appearance?a.appearance:"legacy",h._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,h}return _createClass(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=(0,s.Ig)(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe((0,h.O)(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe((0,f.R)(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe((0,f.R)(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),(0,l.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,f.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,c.R)(this._label.nativeElement,"transitionend").pipe((0,d.q)(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,_toConsumableArray(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,_toConsumableArray(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=e.children,l=this._getStartEnd(u[0].getBoundingClientRect()),c=0,h=0;h0?.75*c+10:0}for(var f=0;f-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(g);return e.\u0275fac=function(t){return new(t||e)(r.Y36(r.SBq),r.Y36(i.t4),r.Y36(p.a5,10),r.Y36(p.F,8),r.Y36(p.sg,8),r.Y36(f.rD),r.Y36(v,10),r.Y36(c),r.Y36(r.R0b),r.Y36(d.G_,8))},e.\u0275dir=r.lG2({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&r.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(r.Ikx("disabled",t.disabled)("required",t.required),r.uIk("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),r.ekj("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[r._Bn([{provide:d.Eo,useExisting:e}]),r.qOj,r.TTD]}),e}(),k=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({providers:[f.rD],imports:[[h,d.lN,f.BQ],h,d.lN]}),e}()},7441:function(e,t,n){"use strict";n.d(t,{gD:function(){return z},LD:function(){return Y}});var i=n(625),r=n(8583),o=n(3018),a=n(2458),s=n(8295),u=n(9243),l=n(9238),c=n(9490),h=n(8345),f=n(6461),d=n(9765),p=n(1439),v=n(6682),_=n(9761),m=n(3190),g=n(5257),y=n(5435),k=n(8002),b=n(7519),C=n(6782),w=n(7238),x=n(946),E=n(665),S=["trigger"],A=["panel"];function O(e,t){if(1&e&&(o.TgZ(0,"span",8),o._uU(1),o.qZA()),2&e){var n=o.oxw();o.xp6(1),o.Oqu(n.placeholder)}}function T(e,t){if(1&e&&(o.TgZ(0,"span",12),o._uU(1),o.qZA()),2&e){var n=o.oxw(2);o.xp6(1),o.Oqu(n.triggerValue)}}function P(e,t){1&e&&o.Hsn(0,0,["*ngSwitchCase","true"])}function I(e,t){if(1&e&&(o.TgZ(0,"span",9),o.YNc(1,T,2,1,"span",10),o.YNc(2,P,1,0,"ng-content",11),o.qZA()),2&e){var n=o.oxw();o.Q6J("ngSwitch",!!n.customTrigger),o.xp6(2),o.Q6J("ngSwitchCase",!0)}}function R(e,t){if(1&e){var n=o.EpF();o.TgZ(0,"div",13),o.TgZ(1,"div",14,15),o.NdJ("@transformPanel.done",function(e){return o.CHM(n),o.oxw()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return o.CHM(n),o.oxw()._handleKeydown(e)}),o.Hsn(3,1),o.qZA(),o.qZA()}if(2&e){var i=o.oxw();o.Q6J("@transformPanelWrap",void 0),o.xp6(1),o.Gre("mat-select-panel ",i._getPanelTheme(),""),o.Udp("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),o.Q6J("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),o.uIk("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var D,M=[[["mat-select-trigger"]],"*"],L=["mat-select-trigger","*"],F={transformPanelWrap:(0,w.X$)("transformPanelWrap",[(0,w.eR)("* => void",(0,w.IO)("@transformPanel",[(0,w.pV)()],{optional:!0}))]),transformPanel:(0,w.X$)("transformPanel",[(0,w.SB)("void",(0,w.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,w.SB)("showing",(0,w.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,w.SB)("showing-multiple",(0,w.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,w.eR)("void => *",(0,w.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,w.eR)("* => void",(0,w.jt)("100ms 25ms linear",(0,w.oB)({opacity:0})))])},N=0,U=new o.OlP("mat-select-scroll-strategy"),B=new o.OlP("MAT_SELECT_CONFIG"),Z={provide:U,deps:[i.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},j=function e(t,n){_classCallCheck(this,e),this.source=t,this.value=n},q=(0,a.Kr)((0,a.sb)((0,a.Id)((0,a.FD)(function(){return function e(t,n,i,r,o){_classCallCheck(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o}}())))),V=new o.OlP("MatSelectTrigger"),H=((D=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,s,u,l,c,h,f,b,C,w,x){var E,S,A,O;return _classCallCheck(this,n),(E=t.call(this,s,a,l,c,f))._viewportRuler=e,E._changeDetectorRef=i,E._ngZone=r,E._dir=u,E._parentFormField=h,E._liveAnnouncer=w,E._defaultOptions=x,E._panelOpen=!1,E._compareWith=function(e,t){return e===t},E._uid="mat-select-"+N++,E._triggerAriaLabelledBy=null,E._destroy=new d.xQ,E._onChange=function(){},E._onTouched=function(){},E._valueId="mat-select-value-"+N++,E._panelDoneAnimatingStream=new d.xQ,E._overlayPanelClass=(null===(S=E._defaultOptions)||void 0===S?void 0:S.overlayPanelClass)||"",E._focused=!1,E.controlType="mat-select",E._required=!1,E._multiple=!1,E._disableOptionCentering=null!==(O=null===(A=E._defaultOptions)||void 0===A?void 0:A.disableOptionCentering)&&void 0!==O&&O,E.ariaLabel="",E.optionSelectionChanges=(0,p.P)(function(){var e=E.options;return e?e.changes.pipe((0,_.O)(e),(0,m.w)(function(){return v.T.apply(void 0,_toConsumableArray(e.map(function(e){return e.onSelectionChange})))})):E._ngZone.onStable.pipe((0,g.q)(1),(0,m.w)(function(){return E.optionSelectionChanges}))}),E.openedChange=new o.vpe,E._openedStream=E.openedChange.pipe((0,y.h)(function(e){return e}),(0,k.U)(function(){})),E._closedStream=E.openedChange.pipe((0,y.h)(function(e){return!e}),(0,k.U)(function(){})),E.selectionChange=new o.vpe,E.valueChange=new o.vpe,E.ngControl&&(E.ngControl.valueAccessor=_assertThisInitialized(E)),null!=(null==x?void 0:x.typeaheadDebounceInterval)&&(E._typeaheadDebounceInterval=x.typeaheadDebounceInterval),E._scrollStrategyFactory=C,E._scrollStrategy=E._scrollStrategyFactory(),E.tabIndex=parseInt(b)||0,E.id=E.id,E}return _createClass(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,c.Ig)(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=(0,c.Ig)(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=(0,c.Ig)(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=(0,c.su)(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,b.x)(),(0,C.R)(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,C.R)(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe((0,_.O)(null),(0,C.R)(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=t===f.JH||t===f.LH||t===f.oh||t===f.SV,i=t===f.K5||t===f.L_,r=this._keyManager;if(!r.isTyping()&&i&&!(0,f.Vb)(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=n===f.JH||n===f.LH,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||n!==f.K5&&n!==f.L_||!t.activeItem||(0,f.Vb)(e))if(!r&&this._multiple&&n===f.A&&e.ctrlKey){e.preventDefault();var o=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(o?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this._overlayDir.positionChange.pipe((0,g.q)(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new l.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,C.R)(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe((0,C.R)(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):!e._panelOpen&&!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=(0,v.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,C.R)(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),v.T.apply(void 0,_toConsumableArray(this.options.map(function(e){return e._stateChanges}))).pipe((0,C.R)(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(q)).\u0275fac=function(e){return new(e||D)(o.Y36(u.rL),o.Y36(o.sBO),o.Y36(o.R0b),o.Y36(a.rD),o.Y36(o.SBq),o.Y36(x.Is,8),o.Y36(E.F,8),o.Y36(E.sg,8),o.Y36(s.G_,8),o.Y36(E.a5,10),o.$8M("tabindex"),o.Y36(U),o.Y36(l.Kd),o.Y36(B,8))},D.\u0275dir=o.lG2({type:D,viewQuery:function(e,t){var n;1&e&&(o.Gf(S,5),o.Gf(A,5),o.Gf(i.pI,5)),2&e&&(o.iGM(n=o.CRH())&&(t.trigger=n.first),o.iGM(n=o.CRH())&&(t.panel=n.first),o.iGM(n=o.CRH())&&(t._overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[o.qOj,o.TTD]}),D),z=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return _createClass(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,C.R)(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"_canOpen",this).call(this)&&(_get(_getPrototypeOf(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(function(){e._triggerFontSize&&e._overlayDir.overlayRef&&e._overlayDir.overlayRef.overlayElement&&(e._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t=(0,a.CB)(e,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:(0,a.jH)((e+t)*n,n,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),_get(_getPrototypeOf(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new j(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this._overlayDir.offsetX=Math.round(e),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,256),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=(0,a.CB)(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-t+e/2,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(H);return t.\u0275fac=function(n){return(e||(e=o.n5z(t)))(n||t)},t.\u0275cmp=o.Xpm({type:t,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;(1&e&&(o.Suo(n,V,5),o.Suo(n,a.ey,5),o.Suo(n,a.K7,5)),2&e)&&(o.iGM(i=o.CRH())&&(t.customTrigger=i.first),o.iGM(i=o.CRH())&&(t.options=i),o.iGM(i=o.CRH())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&o.NdJ("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(o.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),o.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[o._Bn([{provide:s.Eo,useExisting:t},{provide:a.HF,useExisting:t}]),o.qOj],ngContentSelectors:L,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(o.F$t(M),o.TgZ(0,"div",0,1),o.NdJ("click",function(){return t.toggle()}),o.TgZ(3,"div",2),o.YNc(4,O,2,1,"span",3),o.YNc(5,I,3,2,"span",4),o.qZA(),o.TgZ(6,"div",5),o._UZ(7,"div",6),o.qZA(),o.qZA(),o.YNc(8,R,4,14,"ng-template",7),o.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=o.MAs(1);o.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),o.xp6(3),o.Q6J("ngSwitch",t.empty),o.uIk("id",t._valueId),o.xp6(1),o.Q6J("ngSwitchCase",!0),o.xp6(1),o.Q6J("ngSwitchCase",!1),o.xp6(3),o.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[i.xu,r.RF,r.n9,i.pI,r.ED,r.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[F.transformPanelWrap,F.transformPanel]},changeDetection:0}),t}(),Y=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.oAB({type:e}),e.\u0275inj=o.cJS({providers:[Z],imports:[[r.ez,i.U8,a.Ng,a.BQ],u.ZD,s.lN,a.Ng,a.BQ]}),e}()},6237:function(e,t,n){"use strict";n.d(t,{Qb:function(){return Mt},PW:function(){return Ut}});var i=n(3018),r=n(9075),o=n(7238);function a(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function u(e){switch(e.length){case 0:return new o.ZN;case 1:return e[0];default:return new o.ZE(e)}}function l(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=[],u=[],l=-1,c=null;if(i.forEach(function(e){var n=e.offset,i=n==l,h=i&&c||{};Object.keys(e).forEach(function(n){var i=n,u=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,s),u){case o.k1:u=r[n];break;case o.l3:u=a[n];break;default:u=t.normalizeStyleValue(n,i,u,s)}h[i]=u}),i||u.push(h),c=h,l=n}),s.length){var h="\n - ";throw new Error("Unable to animate due to the following errors:".concat(h).concat(s.join(h)))}return u}function c(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&h(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&h(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&h(n,"destroy",e))})}}function h(e,t,n){var i=n.totalTime,r=f(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function f(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function d(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function p(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var v=function(e,t){return!1},_=function(e,t){return!1},m=function(e,t,n){return[]},g=s();(g||"undefined"!=typeof Element)&&(v=a()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},_=function(){if(g||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:_}(),m=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else U(e,n);return n}function Z(e,t,n){return n?t+":"+n+";":""}function j(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(oe(o,s)),"<"==a[0]&&("*"!=o||"*"!=s)&&t.push(oe(s,o))}(e,n,t)}):n.push(e),n}var ie=new Set(["true","1"]),re=new Set(["false","0"]);function oe(e,t){var n=ie.has(e)||re.has(e),i=ie.has(t)||re.has(t);return function(r,o){var a="*"==e||e==r,s="*"==t||t==o;return!a&&n&&"boolean"==typeof r&&(a=r?ie.has(e):re.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?ie.has(t):re.has(t)),a&&s}}var ae=new RegExp("s*:selfs*,?","g");function se(e,t,n){return new ue(e).build(t,n)}var ue=function(){function e(t){_classCallCheck(this,e),this._driver=t}return _createClass(e,[{key:"build",value:function(e,t){var n=new le(t);return this._resetContextStyleTimingState(n),ee(this,H(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,u=s.name;u.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,o.push(n.visitState(s,t))}),s.name=u}else if(1==e.type){var l=n.visitTransition(e,t);i+=l.queryCount,r+=l.depCount,a.push(l)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach(function(e){if(ce(e)){var t=e;Object.keys(t).forEach(function(e){Y(t[e]).forEach(function(e){o.hasOwnProperty(e)||r.add(e)})})}}),r.size){var a=K(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n=ee(this,H(e.animation),t);return{type:1,matchers:ne(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:he(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return ee(n,e,t)}),options:he(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=ee(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:he(e.options)}}},{key:"visitAnimate",value:function(e,t){var n=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return fe(N(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=fe(0,0,"");return r.dynamic=!0,r.strValue=i,r}return fe((n=n||N(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=n;var i,r=e.styles?e.styles:(0,o.oB)({});if(5==r.type)i=this.visitKeyframes(r,t);else{var a=e.styles,s=!1;if(!a){s=!0;var u={};n.easing&&(u.easing=n.easing),a=(0,o.oB)(u)}t.currentTime+=n.duration+n.delay;var l=this.visitStyle(a,t);l.isEmptyStep=s,i=l}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==o.l3?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(ce(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a=t.collectedStyles[t.currentQuerySelector],s=a[i],u=!0;s&&(o!=r&&o>=s.startTime&&r<=s.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(s.startTime,'ms" and "').concat(s.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),u=!1),o=s.startTime),u&&(a[i]={startTime:o,endTime:r}),t.options&&function(e,t,n){var i=t.params||{},r=Y(e);r.length&&r.forEach(function(e){i.hasOwnProperty(e)||n.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})}(e[i],t.options,t.errors)}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,u=0,l=e.steps.map(function(e){var i=n._makeStyleAst(e,t),l=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(ce(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(ce(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),s=s||c<0||c>1,a=a||c0&&r0?r==f?1:h*r:o[r],s=a*v;t.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:ee(this,H(e.animation),t),options:he(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:he(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:he(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(ae,"")),[e=e.replace(/@\*/g,R).replace(/@\w+/g,function(e){return R+"-"+e.substr(1)}).replace(/:animating/g,M),t]}(e.selector),2),o=r[0],a=r[1];t.currentQuerySelector=n.length?n+" "+o:o,d(t.collectedStyles,t.currentQuerySelector,{});var s=ee(this,H(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:he(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:N(e.timings,t.errors,!0);return{type:12,animation:ee(this,H(e.animation),t),timings:n,options:null}}}]),e}(),le=function e(t){_classCallCheck(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function ce(e){return!Array.isArray(e)&&"object"==typeof e}function he(e){return e?(e=U(e)).params&&(e.params=function(e){return e?U(e):null}(e.params)):e={},e}function fe(e,t,n){return{duration:e,delay:t,easing:n}}function de(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var pe=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),ve=new RegExp(":enter","g"),_e=new RegExp(":leave","g");function me(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new ge).buildKeyframes(e,t,n,i,r,o,a,s,u,l)}var ge=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new pe;var c=new ke(e,t,u,i,r,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),ee(this,n,c);var h=c.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,c.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[de(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?L(n.duration):null,o=null!=n.delay?L(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),ee(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ye);var a=L(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return ee(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?L(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),ee(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return N(t.params?G(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?L(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ye);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(u=s.currentTimeline),ee(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;ee(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}]),e}(),ye={},ke=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ye,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new be(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=L(i.duration)),null!=i.delay&&(r.delay=L(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){(!t||!a.hasOwnProperty(e))&&(a[e]=G(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=ye,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new Ce(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(ve,"."+this._enterClassName)).replace(_e,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,_toConsumableArray(s))}return!r&&0==a.length&&o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}]),e}(),be=function(){function e(t,n,i,r){_classCallCheck(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||o.l3,t._currentKeyframe[e]=o.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var a=i&&i.params||{},s=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]=o.l3}):B(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(s).forEach(function(e){var t=G(s[e],a,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:o.l3),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(a,s){var u=B(a,!0);Object.keys(u).forEach(function(e){var i=u[e];i==o.k1?t.add(e):i==o.l3&&n.add(e)}),i||(u.offset=s/e.duration),r.push(u)});var a=t.size?K(t.values()):[],s=n.size?K(n.values()):[];if(i){var u=r[0],l=U(u);u.offset=0,l.offset=1,r=[u,l]}return de(this.element,r,a,s,this.duration,this.startTime,this.easing,!1)}}]),e}(),Ce=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(u=t.call(this,e,i,s.delay)).keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=l,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,u=B(e[0],!1);u.offset=0,o.push(u);var l=B(e[0],!1);l.offset=we(s),o.push(l);for(var c=e.length-1,h=1;h<=c;h++){var f=B(e[h],!1);f.offset=we((n+f.offset*i)/a),o.push(f)}i=a,n=0,r="",e=o}return de(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(be);function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var xe=function e(){_classCallCheck(this,e)},Ee=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(e,t){return Q(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(Se[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(xe),Se=function(e){var t={};return e.forEach(function(e){return t[e]=!0}),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Ae(e,t,n,i,r,o,a,s,u,l,c,h,f){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:f}}var Oe={},Te=function(){function e(t,n,i){_classCallCheck(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return _createClass(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,u,l){var c=[],h=this.ast.options&&this.ast.options.params||Oe,f=this.buildStyles(n,a&&a.params||Oe,c),p=s&&s.params||Oe,v=this.buildStyles(i,p,c),_=new Set,m=new Map,g=new Map,y="void"===i,k={params:Object.assign(Object.assign({},h),p)},b=l?[]:me(e,t,this.ast.animation,r,o,f,v,k,u,c),C=0;if(b.forEach(function(e){C=Math.max(e.duration+e.delay,C)}),c.length)return Ae(t,this._triggerName,n,i,y,f,v,[],[],m,g,C,c);b.forEach(function(e){var n=e.element,i=d(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=d(g,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&_.add(n)});var w=K(_.values());return Ae(t,this._triggerName,n,i,y,f,v,b,w,m,g,C)}}]),e}(),Pe=function(){function e(t,n,i){_classCallCheck(this,e),this.styles=t,this.defaultParams=n,this.normalizer=i}return _createClass(e,[{key:"buildStyles",value:function(e,t){var n=this,i={},r=U(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach(function(e){var a=o[e];a.length>1&&(a=G(a,r,t));var s=n.normalizer.normalizePropertyName(e,t);a=n.normalizer.normalizeStyleValue(e,s,a,t),i[s]=a})}}),i}}]),e}(),Ie=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.name=t,this.ast=n,this._normalizer=i,this.transitionFactories=[],this.states={},n.states.forEach(function(e){r.states[e.name]=new Pe(e.style,e.options&&e.options.params||{},i)}),Re(this.states,"true","1"),Re(this.states,"false","0"),n.transitions.forEach(function(e){r.transitionFactories.push(new Te(t,e,r.states))}),this.fallbackTransition=function(e,t,n){return new Te(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},t)}(t,this.states)}return _createClass(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Re(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var De=new pe,Me=function(){function e(t,n,i){_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var n=[],i=se(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=l(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],s=this._animations[e],l=new Map;if(s?(n=me(this._driver,t,s,T,P,{},{},r,De,a)).forEach(function(e){var t=d(l,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));l.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,o.l3)})});var c=u(n.map(function(e){var t=l.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=c,c.onDestroy(function(){return i.destroy(e)}),this.players.push(c),c}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=f(t,"","","");return c(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);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(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Le="ng-animate-queued",Fe="ng-animate-disabled",Ne=".ng-animate-disabled",Ue=[],Be={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ze={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},je="__ng_removed",qe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var o=U(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),Ve="void",He=new qe(Ve),ze=function(){function e(t,n,i){_classCallCheck(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,$e(n,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=d(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var u=d(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||($e(e,I),$e(e,I+"-"+t),u[t]=He),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete u[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new Ge(this.id,t,e),s=this._engine.statesByElement.get(e);s||($e(e,I),$e(e,I+"-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],l=new qe(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[t]=l,u||(u=He),l.value===Ve||u.value!==l.value){var c=d(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=o.matchTransition(u.value,l.value,e,l.params),f=!1;if(!h){if(!r)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:l,player:a,isFallbackTransition:f}),f||($e(e,Le),a.onStart(function(){et(e,Le)})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),$e(e,Fe)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),et(e,Fe))}},{key:"removeNode",value:function(e,t,n,i){if(Ke(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t[je]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return Ke(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,R,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,M,!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return u(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e[je];if(n&&n.setForRemoval){if(e[je]=Be,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,Ne)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Ne,!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;I--)this._namespaceList[I].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(A.push(t),n.collectedEnterElements.length){var a=o[je];if(a&&a.setForMove)return void t.destroy()}var u=!p||!n.driver.containsElement(p,o),f=E.get(o),v=m.get(o),_=n._buildInstruction(e,i,v,f,u);if(_.errors&&_.errors.length)O.push(_);else{if(u)return t.onStart(function(){return V(o,_.fromStyles)}),t.onDestroy(function(){return q(o,_.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return V(o,_.fromStyles)}),t.onDestroy(function(){return q(o,_.toStyles)}),void r.push(t);_.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(o,_.timelines),s.push({instruction:_,player:t,element:o}),_.queriedElements.forEach(function(e){return d(l,e,[]).push(t)}),_.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),_.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=h.get(t);i||h.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(O.length){var R=[];O.forEach(function(e){R.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return R.push("- ".concat(e,"\n"))})}),A.forEach(function(e){return e.destroy()}),this.reportError(R)}var D=new Map,L=new Map;s.forEach(function(e){var t=e.element;i.has(t)&&(L.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,D))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){d(D,t,[]).push(e),e.destroy()})});var F=y.filter(function(e){return it(e,c,h)}),N=new Map;Qe(N,this.driver,b,h,o.l3).forEach(function(e){it(e,c,h)&&F.push(e)});var U=new Map;_.forEach(function(e,t){Qe(U,n.driver,new Set(e),c,o.k1)}),F.forEach(function(e){var t=N.get(e),n=U.get(e);N.set(e,Object.assign(Object.assign({},t),n))});var B=[],Z=[],j={};s.forEach(function(e){var t=e.element,o=e.player,s=e.instruction;if(i.has(t)){if(f.has(t))return o.onDestroy(function(){return q(t,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var l=j;if(L.size>1){for(var c=t,h=[];c=c.parentNode;){var d=L.get(c);if(d){l=d;break}h.push(c)}h.forEach(function(e){return L.set(e,l)})}var p=n._buildAnimation(o.namespaceId,s,D,a,U,N);if(o.setRealPlayer(p),l===j)B.push(o);else{var v=n.playersByElement.get(l);v&&v.length&&(o.parentPlayer=u(v)),r.push(o)}}else V(t,s.fromStyles),o.onDestroy(function(){return q(t,s.toStyles)}),Z.push(o),f.has(t)&&r.push(o)}),Z.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=u(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var H=0;H0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new o.ZN(e.duration,e.delay)}}]),e}(),Ge=function(){function e(t,n,i){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new o.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return c(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){d(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Ke(e){return e&&1===e.nodeType}function We(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Qe(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(We(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);(!n||0==n.length)&&(i[je]=Ze,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return We(e,o[s++])}),a}function Je(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}var Xe="$$classes";function $e(e,t){if(e.classList)e.classList.add(t);else{var n=e[Xe];n||(n=e[Xe]={}),n[t]=!0}}function et(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Xe];n&&delete n[t]}}function tt(e,t,n){u(n).onDone(function(){return e.processLeaveNode(t)})}function nt(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function ot(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=st(t[0]),t.length>1&&(i=st(t[t.length-1]))):t&&(n=st(t)),n||i?new at(e,n,i):null}var at=function(){function e(t,n,i){_classCallCheck(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(V(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}]),e}();function st(e){for(var t=null,n=Object.keys(e),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),vt(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){var n=mt(e,"").split(","),i=pt(n,t);i>=0&&(n.splice(i,1),_t(e,"",n.join(",")))}(this._element,this._name))}}]),e}();function ft(e,t,n){_t(e,"PlayState",n,dt(e,t))}function dt(e,t){var n=mt(e,"");return n.indexOf(",")>0?pt(n.split(","),t):pt([n],t)}function pt(e,t){for(var n=0;n=0)return n;return-1}function vt(e,t,n){n?e.removeEventListener(ct,t):e.addEventListener(ct,t)}function _t(e,t,n,i){var r=lt+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function mt(e,t){return e.style[lt+t]||""}var gt=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new ht(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:te(e.element,i))})}this.currentSnapshot=t}}]),e}(),yt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=E(i),r}return _createClass(n,[{key:"init",value:function(){var e=this;this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;!this._startingStyles||(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(o.ZN),kt=function(){function e(){_classCallCheck(this,e),this._count=0}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return b(e)}},{key:"matchesElement",value:function(e,t){return C(e,t)}},{key:"containsElement",value:function(e,t){return w(e,t)}},{key:"query",value:function(e,t,n){return x(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return E(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof gt}),s={};X(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var u=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"==n||"easing"==n||(t[n]=e[n])})}),t}(t=$(e,t,s));if(0==n)return new yt(e,u);var l="gen_css_kf_"+this._count++,c=this.buildKeyframeElement(e,l,t);(function(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(e).appendChild(c);var h=ot(e,t),f=new gt(e,t,l,n,i,r,u,h);return f.onDestroy(function(){var e;(e=c).parentNode.removeChild(e)}),f}}]),e}(),bt=function(){function e(t,n,i,r){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:te(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Ct=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(wt().toString()),this._cssKeyframesDriver=new kt}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return b(e)}},{key:"matchesElement",value:function(e,t){return C(e,t)}},{key:"containsElement",value:function(e,t){return w(e,t)}},{key:"query",value:function(e,t,n){return x(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var u={},l=o.filter(function(e){return e instanceof bt});X(n,i)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var c=ot(e,t=$(e,t=t.map(function(e){return B(e,!1)}),u));return new bt(e,t,s,c)}}]),e}();function wt(){return a()&&Element.prototype.animate||{}}var xt=n(8583),Et=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var o;return _classCallCheck(this,n),(o=t.call(this))._nextAnimationId=0,o._renderer=e.createRenderer(r.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}}),o}return _createClass(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?(0,o.vP)(e):e;return Ot(this._renderer,null,t,"register",[n]),new St(t,this._renderer)}}]),n}(o._j);return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.FYo),i.LFG(xt.K0))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),St=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return _createClass(n,[{key:"create",value:function(e,t){return new At(this._id,e,t||{},this._renderer)}}]),n}(o.LC),At=function(){function e(t,n,i,r){_classCallCheck(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&t==Tt?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),Rt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,i,r,o)).factory=e,a.namespaceId=i,a}return _createClass(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&t==Tt?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i=this;if("@"==t.charAt(0)){var r,o=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),a=t.substr(1),s="";return"@"!=a.charAt(0)&&(a=(r=_slicedToArray(function(e){var t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(a),2))[0],s=r[1]),this.engine.listen(this.namespaceId,o,a,s,function(e){i.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(It),Dt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){return _classCallCheck(this,n),t.call(this,e.body,i,r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(rt);return e.\u0275fac=function(t){return new(t||e)(i.LFG(xt.K0),i.LFG(O),i.LFG(xe))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e}(),Mt=new i.OlP("AnimationModuleType"),Lt=[{provide:o._j,useClass:Et},{provide:xe,useFactory:function(){return new Ee}},{provide:rt,useClass:Dt},{provide:i.FYo,useFactory:function(e,t,n){return new Pt(e,t,n)},deps:[r.se,rt,i.R0b]}],Ft=[{provide:O,useFactory:function(){return"function"==typeof wt()?new Ct:new kt}},{provide:Mt,useValue:"BrowserAnimations"}].concat(Lt),Nt=[{provide:O,useClass:A},{provide:Mt,useValue:"NoopAnimations"}].concat(Lt),Ut=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?Nt:Ft}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({providers:Ft,imports:[r.b2]}),e}()},9075:function(e,t,n){"use strict";n.d(t,{b2:function(){return N},H7:function(){return D},q6:function(){return L},se:function(){return w}});var i,r,o=n(8583),a=n(3018),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){e.parentNode&&e.parentNode.removeChild(e)}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getBaseHref",value:function(e){var t=(u=u||document.querySelector("base"))?u.getAttribute("href"):null;return null==t?null:function(e){(i=i||document.createElement("a")).setAttribute("href",e);var t=i.pathname;return"/"===t.charAt(0)?t:"/".concat(t)}(t)}},{key:"resetBaseElement",value:function(){u=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(e){return(0,o.Mx)(document.cookie,e)}}],[{key:"makeCurrent",value:function(){(0,o.HT)(new n)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).supportsDOMEvents=!0,e}return n}(o.w_)),u=null,l=new a.OlP("TRANSITION_ID"),c=[{provide:a.ip1,useFactory:function(e,t,n){return function(){n.get(a.CZH).donePromise.then(function(){for(var n=(0,o.q)(),i=t.querySelectorAll('style[ng-transition="'.concat(e,'"]')),r=0;r1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},a.dqk.getAllAngularTestabilities=function(){return e.getAllTestabilities()},a.dqk.getAllAngularRootElements=function(){return e.getAllRootElements()},a.dqk.frameworkStabilizers||(a.dqk.frameworkStabilizers=[]),a.dqk.frameworkStabilizers.push(function(e){var t=a.dqk.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?(0,o.q)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){(0,a.VLi)(new e)}}]),e}(),f=((r=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||r)},r.\u0275prov=a.Yz7({token:r,factory:r.\u0275fac}),r),d=new a.OlP("EventManagerPlugins"),p=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&P.hasOwnProperty(t)&&(t=P[t]))}return T[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),O.forEach(function(i){i!=n&&I[i](e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(v);return e.\u0275fac=function(t){return new(t||e)(a.LFG(o.K0))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac}),e}(),D=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=(0,a.Yz7)({factory:function(){return(0,a.LFG)(M)},token:e,providedIn:"root"}),e}(),M=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i}return _createClass(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case a.q3G.NONE:return t;case a.q3G.HTML:return(0,a.qzn)(t,"HTML")?(0,a.z3N)(t):(0,a.EiD)(this._doc,String(t)).toString();case a.q3G.STYLE:return(0,a.qzn)(t,"Style")?(0,a.z3N)(t):t;case a.q3G.SCRIPT:if((0,a.qzn)(t,"Script"))return(0,a.z3N)(t);throw new Error("unsafe value used in a script context");case a.q3G.URL:return(0,a.yhl)(t),(0,a.qzn)(t,"URL")?(0,a.z3N)(t):(0,a.mCW)(String(t));case a.q3G.RESOURCE_URL:if((0,a.qzn)(t,"ResourceURL"))return(0,a.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return(0,a.JVY)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return(0,a.L6k)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return(0,a.eBb)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return(0,a.LAX)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return(0,a.pB0)(e)}}]),n}(D);return e.\u0275fac=function(t){return new(t||e)(a.LFG(o.K0))},e.\u0275prov=(0,a.Yz7)({factory:function(){return function(e){return new M(e.get(o.K0))}((0,a.LFG)(a.gxx))},token:e,providedIn:"root"}),e}(),L=(0,a.eFA)(a._c5,"browser",[{provide:a.Lbi,useValue:o.bD},{provide:a.g9A,useValue:function(){s.makeCurrent(),h.init()},multi:!0},{provide:o.K0,useFactory:function(){return(0,a.RDi)(document),document},deps:[]}]),F=[[],{provide:a.zSh,useValue:"root"},{provide:a.qLn,useFactory:function(){return new a.qLn},deps:[]},{provide:d,useClass:A,multi:!0,deps:[o.K0,a.R0b,a.Lbi]},{provide:d,useClass:R,multi:!0,deps:[o.K0]},[],{provide:w,useClass:w,deps:[p,m,a.AFp]},{provide:a.FYo,useExisting:w},{provide:_,useExisting:m},{provide:m,useClass:m,deps:[o.K0]},{provide:a.dDg,useClass:a.dDg,deps:[a.R0b]},{provide:p,useClass:p,deps:[d,a.R0b]},{provide:o.JF,useClass:f,deps:[]},[]],N=function(){var e=function(){function e(t){if(_classCallCheck(this,e),t)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.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:a.AFp,useValue:t.appId},{provide:l,useExisting:a.AFp},c]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(e,12))},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:F,imports:[o.ez,a.hGG]}),e}();"undefined"!=typeof window&&window},8741:function(e,t,n){"use strict";n.d(t,{gz:function(){return rt},F0:function(){return An},rH:function(){return Tn},yS:function(){return Pn},Bz:function(){return qn},lC:function(){return Rn}});var i=n(8583),r=n(3018),o=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),a=n(4402),s=n(5917),u=n(6215),l=n(739),c=n(7574),h=n(8071),f=n(1439),d=n(9193),p=n(2441),v=n(9765),_=n(7393);function m(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new g(e,t,n))}}var g=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new y(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),y=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return _createClass(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(_.L),k=n(5345);function b(e){return function(t){var n=new C(e),i=t.lift(n);return n.caught=i}}var C=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new w(e,this.selector,this.caught))}}]),e}(),w=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return _createClass(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var i=new k.IY(this);this.add(i);var r=(0,k.ft)(t,i);r!==i&&this.add(r)}}}]),n}(k.Ds),x=n(5435),E=n(7108);function S(e){return function(t){return 0===e?(0,d.c)():t.lift(new A(e))}}var A=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new E.W}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new O(e,this.total))}}]),e}(),O=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:R;return function(t){return t.lift(new P(e))}}var P=function(){function e(t){_classCallCheck(this,e),this.errorFactory=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new I(e,this.errorFactory))}}]),e}(),I=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(_.L);function R(){return new o}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new M(e))}}var M=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new L(e,this.defaultValue))}}]),e}(),L=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return _createClass(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(_.L),F=n(4487),N=n(5257);function U(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?(0,x.h)(function(t,n){return e(t,n,i)}):F.y,(0,N.q)(1),n?D(t):T(function(){return new o}))}}var B=n(5319),Z=function(){function e(t){_classCallCheck(this,e),this.callback=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new j(e,this.callback))}}]),e}(),j=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).add(new B.w(i)),r}return n}(_.L),q=n(8002),V=n(3190),H=n(9761),z=n(4612),Y=n(9773),G=n(3342),K=n(1307),W=n(3282),Q=function e(t,n){_classCallCheck(this,e),this.id=t,this.url=n},J=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Q),X=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Q),$=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).reason=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Q),ee=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).error=r,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Q),te=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ne=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ie=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s;return _classCallCheck(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,s.state=o,s.shouldActivate=a,s}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(Q),re=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),oe=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(Q),ae=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),se=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),ue=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),le=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),ce=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),he=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),fe=function(){function e(t,n,i){_classCallCheck(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),de="primary",pe=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function ve(e){return new pe(e)}var _e="ngNavigationCancelingError";function me(e){var t=Error("NavigationCancelingError: "+e);return t[_e]=!0,t}function ge(e,t,n){var i=n.path.split("/");if(i.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||i.length0?e[e.length-1]:null}function we(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function xe(e){return(0,r.CqO)(e)?e:(0,r.QGY)(e)?(0,a.D)(Promise.resolve(e)):(0,s.of)(e)}var Ee={exact:function e(t,n,i){if(!Me(t.segments,n.segments)||!Pe(t.segments,n.segments,i)||t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children)if(!t.children[r]||!e(t.children[r],n.children[r],i))return!1;return!0},subset:Oe},Se={exact:function(e,t){return ye(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return ke(e[n],t[n])})},ignored:function(){return!0}};function Ae(e,t,n){return Ee[n.paths](e.root,t.root,n.matrixParams)&&Se[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Oe(e,t,n){return Te(e,t,t.segments,n)}function Te(e,t,n,i){if(e.segments.length>n.length){var r=e.segments.slice(0,n.length);return!(!Me(r,n)||t.hasChildren()||!Pe(r,n,i))}if(e.segments.length===n.length){if(!Me(e.segments,n)||!Pe(e.segments,n,i))return!1;for(var o in t.children)if(!e.children[o]||!Oe(e.children[o],t.children[o],i))return!1;return!0}var a=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!(Me(e.segments,a)&&Pe(e.segments,a,i)&&e.children[de])&&Te(e.children[de],t,s,i)}function Pe(e,t,n){return t.every(function(t,i){return Se[n](e[i].parameters,t.parameters)})}var Ie=function(){function e(t,n,i){_classCallCheck(this,e),this.root=t,this.queryParams=n,this.fragment=i}return _createClass(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ve(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Ne.serialize(this)}}]),e}(),Re=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.segments=t,this.children=n,this.parent=null,we(n,function(e,t){return e.parent=i})}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Ue(this)}}]),e}(),De=function(){function e(t,n){_classCallCheck(this,e),this.path=t,this.parameters=n}return _createClass(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=ve(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return ze(this)}}]),e}();function Me(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var Le=function e(){_classCallCheck(this,e)},Fe=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new Qe(e);return new Ie(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t;return"".concat("/".concat(Be(e.root,!0)),function(e){var t=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(je(t),"=").concat(je(e))}).join("&"):"".concat(je(t),"=").concat(je(n))}).filter(function(e){return!!e});return t.length?"?".concat(t.join("&")):""}(e.queryParams)).concat("string"==typeof e.fragment?"#".concat((t=e.fragment,encodeURI(t))):"")}}]),e}(),Ne=new Fe;function Ue(e){return e.segments.map(function(e){return ze(e)}).join("/")}function Be(e,t){if(!e.hasChildren())return Ue(e);if(t){var n=e.children[de]?Be(e.children[de],!1):"",i=[];return we(e.children,function(e,t){t!==de&&i.push("".concat(t,":").concat(Be(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return we(e.children,function(e,i){i===de&&(n=n.concat(t(e,i)))}),we(e.children,function(e,i){i!==de&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return n===de?[Be(e.children[de],!1)]:["".concat(n,":").concat(Be(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children[de]?"".concat(Ue(e),"/").concat(r[0]):"".concat(Ue(e),"/(").concat(r.join("//"),")")}function Ze(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function je(e){return Ze(e).replace(/%3B/gi,";")}function qe(e){return Ze(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ve(e){return decodeURIComponent(e)}function He(e){return Ve(e.replace(/\+/g,"%20"))}function ze(e){return"".concat(qe(e.path)).concat(function(e){return Object.keys(e).map(function(t){return";".concat(qe(t),"=").concat(qe(e[t]))}).join("")}(e.parameters))}var Ye=/^[^\/()?;=#]+/;function Ge(e){var t=e.match(Ye);return t?t[0]:""}var Ke=/^[^=?&#]+/,We=/^[^?&#]+/,Qe=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Re([],{}):new Re([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[de]=new Re(e,t)),n}},{key:"parseSegment",value:function(){var e=Ge(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new De(Ve(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Ge(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Ge(this.remaining);i&&(n=i,this.capture(n))}e[Ve(t)]=Ve(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Ke);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(We);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=He(t),o=He(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Ge(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=de);var o=this.parseChildren();t[r]=1===Object.keys(o).length?o[de]:new Re([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Je=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=Xe(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=Xe(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=$e(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return $e(e,this._root).map(function(e){return e.value})}}]),e}();function Xe(e,t){if(e===t.value)return t;var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=Xe(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function $e(e,t){if(e===t.value)return[t];var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=$e(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var et=function(){function e(t,n){_classCallCheck(this,e),this.value=t,this.children=n}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function tt(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var nt=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).snapshot=i,ut(_assertThisInitialized(r),e),r}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Je);function it(e,t){var n=function(e,t){var n=new at([],{},{},"",{},de,t,null,e.root,-1,{});return new st("",new et(n,[]))}(e,t),i=new u.X([new De("",{})]),r=new u.X({}),o=new u.X({}),a=new u.X({}),s=new u.X(""),l=new rt(i,r,a,s,o,de,t,n.root);return l.snapshot=n.root,new nt(new et(l,[]),n)}var rt=function(){function e(t,n,i,r,o,a,s,u){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return _createClass(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,q.U)(function(e){return ve(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,q.U)(function(e){return ve(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var at=function(){function e(t,n,i,r,o,a,s,u,l,c,h){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return _createClass(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=ve(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=ve(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),st=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,i)).url=e,ut(_assertThisInitialized(r),i),r}return _createClass(n,[{key:"toString",value:function(){return lt(this._root)}}]),n}(Je);function ut(e,t){t.value._routerState=e,t.children.forEach(function(t){return ut(e,t)})}function lt(e){var t=e.children.length>0?" { ".concat(e.children.map(lt).join(", ")," } "):"";return"".concat(e.value).concat(t)}function ct(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ye(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ye(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&pt(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(vt);if(r&&r!==Ce(i))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),yt=function e(t,n,i){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function kt(e,t,n){if(e||(e=new Re([],{})),0===e.segments.length&&e.hasChildren())return bt(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=e.segments[r],s=n[i];if(vt(s))break;var u="".concat(s),l=i0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!Et(u,l,a))return o;i+=2}else{if(!Et(u,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},jt):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||ge)(n,e,t);if(!r)return Object.assign({},jt);var o={};we(r.posParams,function(e,t){o[t]=e.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Vt(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return Ht(e,t,n)&&Bt(n)!==de})}(e,n,i)){var o=new Re(t,function(e,t,n,i){var r={};r[de]=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,a=_createForOfIteratorHelper(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&Bt(s)!==de){var u=new Re([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,r[Bt(s)]=u}}}catch(l){a.e(l)}finally{a.f()}return r}(e,t,i,new Re(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return Ht(e,t,n)})}(e,n,i)){var a=new Re(e.segments,function(e,t,n,i,r,o){var a,s={},u=_createForOfIteratorHelper(i);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(Ht(e,n,l)&&!r[Bt(l)]){var c=new Re([],{});c._sourceSegment=e,c._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[Bt(l)]=c}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new Re(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Ht(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function zt(e,t,n,i){return!!(Bt(e)===i||i!==de&&Ht(t,n,e))&&("**"===e.path||qt(t,e,n).matched)}function Yt(e,t,n){return 0===t.length&&!e.children[n]}var Gt=function e(t){_classCallCheck(this,e),this.segmentGroup=t||null},Kt=function e(t){_classCallCheck(this,e),this.urlTree=t};function Wt(e){return new c.y(function(t){return t.error(new Gt(e))})}function Qt(e){return new c.y(function(t){return t.error(new Kt(e))})}function Jt(e){return new c.y(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var Xt=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(r.h0i)}return _createClass(e,[{key:"apply",value:function(){var e=this,t=Vt(this.urlTree.root,[],[],this.config).segmentGroup,n=new Re(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,de).pipe((0,q.U)(function(t){return e.createUrlTree($t(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(b(function(t){if(t instanceof Kt)return e.allowRedirects=!1,e.match(t.urlTree);throw t instanceof Gt?e.noMatchError(t):t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,de).pipe((0,q.U)(function(n){return t.createUrlTree($t(n),e.queryParams,e.fragment)})).pipe(b(function(e){throw e instanceof Gt?t.noMatchError(e):e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new Re([],_defineProperty({},de,e)):e;return new Ie(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe((0,q.U)(function(e){return new Re([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],s=0,u=Object.keys(n.children);s=2;return function(i){return i.pipe(e?(0,x.h)(function(t,n){return e(t,n,i)}):F.y,S(1),n?D(t):T(function(){return new o}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,u){var l=this;return(0,a.D)(n).pipe((0,z.b)(function(o){return l.expandSegmentAgainstRoute(e,t,n,o,i,r,u).pipe(b(function(e){if(e instanceof Gt)return(0,s.of)(null);throw e}))}),U(function(e){return!!e}),b(function(e,n){if(e instanceof o||"EmptyError"===e.name){if(Yt(t,i,r))return(0,s.of)(new Re([],{}));throw new Gt(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return zt(i,t,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):Wt(t):Wt(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Qt(o):this.lineralizeSegments(n,o).pipe((0,Y.zg)(function(n){var o=new Re(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=qt(t,i,r),u=s.matched,l=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!u)return Wt(t);var f=this.applyRedirectCommands(l,i.redirectTo,h);return i.redirectTo.startsWith("/")?Qt(f):this.lineralizeSegments(i,f).pipe((0,Y.zg)(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(c)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,s.of)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe((0,q.U)(function(e){return n._loadedConfig=e,new Re(i,{})})):(0,s.of)(new Re(i,{}));var a=qt(t,n,i),u=a.matched,l=a.consumedSegments,c=a.lastChild;if(!u)return Wt(t);var h=i.slice(c);return this.getChildConfig(e,n,i).pipe((0,Y.zg)(function(e){var i=e.module,a=e.routes,u=Vt(t,l,h,a),c=u.segmentGroup,f=u.slicedSegments,d=new Re(c.segments,c.children);if(0===f.length&&d.hasChildren())return o.expandChildren(i,a,d).pipe((0,q.U)(function(e){return new Re(l,e)}));if(0===a.length&&0===f.length)return(0,s.of)(new Re(l,{}));var p=Bt(n)===r;return o.expandSegment(i,d,a,f,p?de:r,!0).pipe((0,q.U)(function(e){return new Re(l.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?(0,s.of)(new Ot(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?(0,s.of)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe((0,Y.zg)(function(n){return n?i.configLoader.load(e.injector,t).pipe((0,q.U)(function(e){return t._loadedConfig=e,e})):(r=t,new c.y(function(e){return e.error(me("Cannot load children because the guard of the route \"path: '".concat(r.path,"'\" returned false")))}));var r})):(0,s.of)(new Ot([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;if(!r||0===r.length)return(0,s.of)(!0);var o=r.map(function(i){var r,o,a=e.get(i);if((o=a)&&Tt(o.canLoad))r=a.canLoad(t,n);else{if(!Tt(a))throw new Error("Invalid CanLoad guard");r=a(t,n)}return xe(r)});return(0,s.of)(o).pipe(Rt(),(0,G.b)(function(e){if(Pt(e)){var t=me('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),(0,q.U)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,s.of)(n);if(i.numberOfChildren>1||!i.children[de])return Jt(e.redirectTo);i=i.children[de]}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new Ie(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return we(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return we(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new Re(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return e}}]),e}();function $t(e){for(var t={},n=0,i=Object.keys(e.children);n0||o.hasChildren())&&(t[r]=o)}return function(e){if(1===e.numberOfChildren&&e.children[de]){var t=e.children[de];return new Re(e.segments.concat(t.segments),t.children)}return e}(new Re(e.segments,t))}var en=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},tn=function e(t,n){_classCallCheck(this,e),this.component=t,this.route=n};function nn(e,t,n){var i=e._root;return on(i,t?t._root:null,n,[i.value])}function rn(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function on(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=tt(t);return e.children.forEach(function(e){(function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Me(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Me(e.url,t.url)||!ye(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ht(e,t)||!ye(e.queryParams,t.queryParams);case"paramsChange":default:return!ht(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new en(i)):(o.data=a.data,o._resolvedData=a._resolvedData),on(e,t,o.component?s?s.children:null:n,i,r),u&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new tn(s.outlet.component,a))}else a&&an(t,s,r),r.canActivateChecks.push(new en(i)),on(e,null,o.component?s?s.children:null:n,i,r)})(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),we(o,function(e,t){return an(e,n.getContext(t),r)}),r}function an(e,t,n){var i=tt(e),r=e.value;we(i,function(e,i){an(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new tn(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var sn=function e(){_classCallCheck(this,e)};function un(e){return new c.y(function(t){return t.error(e)})}var ln=function(){function e(t,n,i,r,o,a){_classCallCheck(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return _createClass(e,[{key:"recognize",value:function(){var e=Vt(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,de);if(null===t)return null;var n=new at([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},de,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new et(n,t),r=new st(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=ot(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i0?Ce(n).parameters:{};r=new at(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dn(e),Bt(e),e.component,e,hn(t),fn(t)+n.length,pn(e))}else{var u=qt(t,e,n);if(!u.matched)return null;o=u.consumedSegments,a=n.slice(u.lastChild),r=new at(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,dn(e),Bt(e),e.component,e,hn(t),fn(t)+o.length,pn(e))}var l,c=(l=e).children?l.children:l.loadChildren?l._loadedConfig.routes:[],h=Vt(t,o,a,c.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),f=h.segmentGroup,d=h.slicedSegments;if(0===d.length&&f.hasChildren()){var p=this.processChildren(c,f);return null===p?null:[new et(r,p)]}if(0===c.length&&0===d.length)return[new et(r,[])];var v=Bt(e)===i,_=this.processSegment(c,f,d,v?de:i);return null===_?null:[new et(r,_)]}}]),e}();function cn(e){var t,n=[],i=new Set,r=_createForOfIteratorHelper(e);try{var o=function(){var e,r=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(r))return n.push(r),"continue";var o=n.find(function(e){return r.value.routeConfig===e.value.routeConfig});void 0!==o?((e=o.children).push.apply(e,_toConsumableArray(r.children)),i.add(o)):n.push(r)};for(r.s();!(t=r.n()).done;)o()}catch(c){r.e(c)}finally{r.f()}var a,s=_createForOfIteratorHelper(i);try{for(s.s();!(a=s.n()).done;){var u=a.value,l=cn(u.children);n.push(new et(u.value,l))}}catch(c){s.e(c)}finally{s.f()}return n.filter(function(e){return!i.has(e)})}function hn(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function fn(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function dn(e){return e.data||{}}function pn(e){return e.resolve||{}}function vn(e){return(0,V.w)(function(t){var n=e(t);return n?(0,a.D)(n).pipe((0,q.U)(function(){return t})):(0,s.of)(t)})}var _n=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),mn=new r.OlP("ROUTES"),gn=function(){function e(t,n,i,r){_classCallCheck(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return _createClass(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe((0,q.U)(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var o=i.create(e);return new Ot(be(o.injector.get(mn,void 0,r.XFs.Self|r.XFs.Optional)).map(Ut),o)}),b(function(e){throw t._loader$=void 0,e}));return t._loader$=new p.c(i,function(){return new v.xQ}).pipe((0,K.x)()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?(0,a.D)(this.loader.load(e)):xe(e()).pipe((0,Y.zg)(function(e){return e instanceof r.YKP?(0,s.of)(e):(0,a.D)(t.compiler.compileModuleAsync(e))}))}}]),e}(),yn=function e(){_classCallCheck(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new kn,this.attachRef=null},kn=function(){function e(){_classCallCheck(this,e),this.contexts=new Map}return _createClass(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new yn,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),bn=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Cn(e){throw e}function wn(e,t,n){return t.parse("/")}function xn(e,t){return(0,s.of)(null)}var En={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Sn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},An=function(){var e=function(){function e(t,n,i,o,a,s,l,c){var h=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=o,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new v.xQ,this.errorHandler=Cn,this.malformedUriErrorHandler=wn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:xn,afterPreactivation:xn},this.urlHandlingStrategy=new bn,this.routeReuseStrategy=new _n,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=a.get(r.h0i),this.console=a.get(r.c2e);var f=a.get(r.R0b);this.isNgZoneEnabled=f instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new Ie(new Re([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new gn(s,l,function(e){return h.triggerEvent(new ae(e))},function(e){return h.triggerEvent(new se(e))}),this.routerState=it(this.currentUrlTree,this.rootComponentType),this.transitions=new u.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(e,[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe((0,x.h)(function(e){return 0!==e.id}),(0,q.U)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),(0,V.w)(function(e){var i=!1,r=!1;return(0,s.of)(e).pipe((0,G.b)(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,V.w)(function(e){var i=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString(),o=("reload"===t.onSameUrlNavigation||i)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl);if(On(e.source)&&(t.browserUrlTree=e.rawUrl),o)return(0,s.of)(e).pipe((0,V.w)(function(e){var i=t.transitions.getValue();return n.next(new J(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?d.E:Promise.resolve(e)}),function(e,t,n,i){return(0,V.w)(function(r){return function(e,t,n,i,r){return new Xt(e,t,n,i,r).apply()}(e,t,n,r.extractedUrl,i).pipe((0,q.U)(function(e){return Object.assign(Object.assign({},r),{urlAfterRedirects:e})}))})}(t.ngModule.injector,t.configLoader,t.urlSerializer,t.config),(0,G.b)(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,o,a){return(0,Y.zg)(function(i){return function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var u=new ln(e,t,n,i,o,a).recognize();return null===u?un(new sn):(0,s.of)(u)}catch(r){return un(r)}}(e,n,i.urlAfterRedirects,(u=i.urlAfterRedirects,t.serializeUrl(u)),o,a).pipe((0,q.U)(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var u})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),(0,G.b)(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,e),t.browserUrlTree=e.urlAfterRedirects);var i=new te(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(i&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var a=e.id,u=e.extractedUrl,l=e.source,c=e.restoredState,h=e.extras,f=new J(a,t.serializeUrl(u),l,c);n.next(f);var p=it(u,t.rootComponentType).snapshot;return(0,s.of)(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:u,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),d.E}),vn(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),(0,G.b)(function(e){var n=new ne(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,q.U)(function(e){return Object.assign(Object.assign({},e),{guards:nn(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return(0,Y.zg)(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,u=o.canActivateChecks,l=o.canDeactivateChecks;return 0===l.length&&0===u.length?(0,s.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return(0,a.D)(e).pipe((0,Y.zg)(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,s.of)(!0);var a=o.map(function(o){var a,s=rn(o,t,r);if(function(e){return e&&Tt(e.canDeactivate)}(s))a=xe(s.canDeactivate(e,t,n,i));else{if(!Tt(s))throw new Error("Invalid CanDeactivate guard");a=xe(s(e,t,n,i))}return a.pipe(U())});return(0,s.of)(a).pipe(Rt())}(e.component,e.route,n,t,i)}),U(function(e){return!0!==e},!0))}(l,i,r,e).pipe((0,Y.zg)(function(n){return n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,i){return(0,a.D)(t).pipe((0,z.b)(function(t){return(0,h.z)(function(e,t){return null!==e&&t&&t(new ue(e)),(0,s.of)(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new ce(e)),(0,s.of)(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return(0,f.P)(function(){var r=t.guards.map(function(r){var o,a=rn(r,t.node,n);if(function(e){return e&&Tt(e.canActivateChild)}(a))o=xe(a.canActivateChild(i,e));else{if(!Tt(a))throw new Error("Invalid CanActivateChild guard");o=xe(a(i,e))}return o.pipe(U())});return(0,s.of)(r).pipe(Rt())})});return(0,s.of)(r).pipe(Rt())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return(0,s.of)(!0);var r=i.map(function(i){return(0,f.P)(function(){var r,o=rn(i,t,n);if(function(e){return e&&Tt(e.canActivate)}(o))r=xe(o.canActivate(t,e));else{if(!Tt(o))throw new Error("Invalid CanActivate guard");r=xe(o(t,e))}return r.pipe(U())})});return(0,s.of)(r).pipe(Rt())}(e,t.route,n))}),U(function(e){return!0!==e},!0))}(i,u,e,t):(0,s.of)(n)}),(0,q.U)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),(0,G.b)(function(e){if(Pt(e.guardsResult)){var n=me('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new ie(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),(0,x.h)(function(e){return!!e.guardsResult||(t.restoreHistory(e),t.cancelNavigationTransition(e,""),!1)}),vn(function(e){if(e.guards.canActivateChecks.length)return(0,s.of)(e).pipe((0,G.b)(function(e){var n=new re(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),(0,V.w)(function(e){var n=!1;return(0,s.of)(e).pipe(function(e,t){return(0,Y.zg)(function(n){var i=n.targetSnapshot,r=n.guards.canActivateChecks;if(!r.length)return(0,s.of)(n);var o=0;return(0,a.D)(r).pipe((0,z.b)(function(n){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return(0,s.of)({});var o={};return(0,a.D)(r).pipe((0,Y.zg)(function(r){return function(e,t,n,i){var r=rn(e,t,i);return xe(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe((0,G.b)(function(e){o[r]=e}))}),S(1),(0,Y.zg)(function(){return Object.keys(o).length===r.length?(0,s.of)(o):d.E}))}(e._resolve,e,t,i).pipe((0,q.U)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),ot(e,n).resolve),null}))}(n.route,i,e,t)}),(0,G.b)(function(){return o++}),S(1),(0,Y.zg)(function(e){return o===r.length?(0,s.of)(n):d.E}))})}(t.paramsInheritanceStrategy,t.ngModule.injector),(0,G.b)({next:function(){return n=!0},complete:function(){n||(t.restoreHistory(e),t.cancelNavigationTransition(e,"At least one route resolver didn't emit any value."))}}))}),(0,G.b)(function(e){var n=new oe(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),vn(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,o=e.rawUrl,a=e.extras,s=a.skipLocationChange,u=a.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),(0,q.U)(function(e){var n=function(e,t,n){var i=ft(e,t._root,n?n._root:void 0);return new nt(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),(0,G.b)(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,e),t.browserUrlTree=e.urlAfterRedirects)}),function(e,t,n){return(0,q.U)(function(i){return new St(t,i.targetRouterState,i.currentRouterState,n).activate(e),i})}(t.rootContexts,t.routeReuseStrategy,function(e){return t.triggerEvent(e)}),(0,G.b)({next:function(){i=!0},complete:function(){i=!0}}),function(e){return function(t){return t.lift(new Z(e))}}(function(){if(!i&&!r){var n="Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId);"replace"===t.canceledNavigationResolution?(t.restoreHistory(e),t.cancelNavigationTransition(e,n)):t.cancelNavigationTransition(e,n)}t.currentNavigation=null}),b(function(i){if(r=!0,function(e){return e&&e[_e]}(i)){var o=Pt(i.url);o||(t.navigated=!0,t.restoreHistory(e,!0));var a=new $(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(a),o?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree),r={skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||On(e.source)};t.scheduleNavigation(n,"imperative",null,r,{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.restoreHistory(e,!0);var s=new ee(e.id,t.serializeUrl(e.extractedUrl),i);n.next(s);try{e.resolve(t.errorHandler(i))}catch(a){e.reject(a)}}return d.E}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return t.transitionId!==e.transitionId||!n||!("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source)}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){Lt(e),this.config=e.map(Ut),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,s=n||this.routerState.root,u=a?this.currentUrlTree.fragment:r,l=null;switch(o){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(e,t,n,i,r){if(0===n.length)return _t(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new gt(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return we(i.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(_toConsumableArray(e),[{outlets:o}])}if(i.segmentPath)return[].concat(_toConsumableArray(e),[i.segmentPath])}return"string"!=typeof i?[].concat(_toConsumableArray(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(_toConsumableArray(e),[i])},[]);return new gt(n,t,i)}(n);if(o.toRoot())return _t(t.root,new Re([],{}),t,i,r);var a=function(e,t,n){if(e.isAbsolute)return new yt(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new yt(i,i===t.root,0)}var r=pt(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new yt(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?bt(a.segmentGroup,a.index,o.commands):kt(a.segmentGroup,a.index,o.commands);return _t(a.segmentGroup,s,t,i,r)}(s,this.currentUrlTree,e,l,null!=u?u:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Pt(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(t=this.currentNavigation)||void 0===t?void 0:t.finalUrl)||0===r?this.currentUrlTree===(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,t){var n=new $(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(n),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":t}:{navigationId:e}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.DyG),r.LFG(Le),r.LFG(kn),r.LFG(i.Ye),r.LFG(r.zs3),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(void 0))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}();function On(e){return"imperative"!==e}var Tn=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new v.xQ,null==i&&r.setAttribute(o.nativeElement,"tabindex","0")}return _createClass(e,[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(An),r.Y36(rt),r.$8M("tabindex"),r.Y36(r.Qsj),r.Y36(r.SBq))},e.\u0275dir=r.lG2({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&r.NdJ("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),e}(),Pn=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.onChanges=new v.xQ,this.subscription=t.events.subscribe(function(e){e instanceof X&&r.updateTargetUrlAndHref()})}return _createClass(e,[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,i,r){if(0!==e||t||n||i||r||"string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:In(this.skipLocationChange),replaceUrl:In(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:In(this.preserveFragment)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(An),r.Y36(rt),r.Y36(i.S$))},e.\u0275dir=r.lG2({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&r.NdJ("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(r.Ikx("href",t.href,r.LSH),r.uIk("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),e}();function In(e){return""===e||!!e}var Rn=function(){var e=function(){function e(t,n,i,o,a){_classCallCheck(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.name=o||de,t.onChildOutletCreated(this.name,this)}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new Dn(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Y36(kn),r.Y36(r.s_b),r.Y36(r._Vd),r.$8M("name"),r.Y36(r.sBO))},e.\u0275dir=r.lG2({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),Dn=function(){function e(t,n,i){_classCallCheck(this,e),this.route=t,this.childContexts=n,this.parent=i}return _createClass(e,[{key:"get",value:function(e,t){return e===rt?this.route:e===kn?this.childContexts:this.parent.get(e,t)}}]),e}(),Mn=function e(){_classCallCheck(this,e)},Ln=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return(0,s.of)(null)}}]),e}(),Fn=function(){var e=function(){function e(t,n,i,r,o){_classCallCheck(this,e),this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new gn(n,i,function(e){return t.triggerEvent(new ae(e))},function(e){return t.triggerEvent(new se(e))})}return _createClass(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe((0,x.h)(function(e){return e instanceof X}),(0,z.b)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(r.h0i);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var s=o._loadedConfig;i.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(e,o)):o.children&&i.push(this.processRoutes(e,o.children))}}catch(u){r.e(u)}finally{r.f()}return(0,a.D)(i).pipe((0,W.J)(),(0,q.U)(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?(0,s.of)(t._loadedConfig):n.loader.load(e.injector,t)).pipe((0,Y.zg)(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(An),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(Mn))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Nn=function(){var e=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return _createClass(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof J?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof X&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof fe&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new fe(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(An),r.LFG(i.EM),r.LFG(void 0))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}(),Un=new r.OlP("ROUTER_CONFIGURATION"),Bn=new r.OlP("ROUTER_FORROOT_GUARD"),Zn=[i.Ye,{provide:Le,useClass:Fe},{provide:An,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new An(null,e,t,n,i,r,o,be(a));return u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,c),s.enableTracing&&c.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),c},deps:[Le,kn,i.Ye,r.zs3,r.v3s,r.Sil,mn,Un,[function(){return function e(){_classCallCheck(this,e)}}(),new r.FiY],[function(){return function e(){_classCallCheck(this,e)}}(),new r.FiY]]},kn,{provide:rt,useFactory:function(e){return e.routerState.root},deps:[An]},{provide:r.v3s,useClass:r.EAV},Fn,Ln,function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return t().pipe(b(function(){return(0,s.of)(null)}))}}]),e}(),{provide:Un,useValue:{enableTracing:!1}}];function jn(){return new r.PXZ("Router",An)}var qn=function(){var e=function(){function e(t,n){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Zn,Yn(t),{provide:Bn,useFactory:zn,deps:[[An,new r.FiY,new r.tp0]]},{provide:Un,useValue:n||{}},{provide:i.S$,useFactory:Hn,deps:[i.lw,[new r.tBr(i.mr),new r.FiY],Un]},{provide:Nn,useFactory:Vn,deps:[An,i.EM,Un]},{provide:Mn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ln},{provide:r.PXZ,multi:!0,useFactory:jn},[Gn,{provide:r.ip1,multi:!0,useFactory:Kn,deps:[Gn]},{provide:Qn,useFactory:Wn,deps:[Gn]},{provide:r.tb,multi:!0,useExisting:Qn}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Yn(t)]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(Bn,8),r.LFG(An,8))},e.\u0275mod=r.oAB({type:e}),e.\u0275inj=r.cJS({}),e}();function Vn(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Nn(e,t,n)}function Hn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new i.Do(e,t):new i.b0(e,t)}function zn(e){return"guarded"}function Yn(e){return[{provide:r.deG,multi:!0,useValue:e},{provide:mn,multi:!0,useValue:e}]}var Gn=function(){var e=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new v.xQ}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(i.V_,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(An),r=e.injector.get(Un);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?(0,s.of)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Un),n=this.injector.get(Fn),i=this.injector.get(Nn),o=this.injector.get(An),a=this.injector.get(r.z2F);e===a.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&o.initialNavigation(),n.setUpPreloading(),i.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.LFG(r.zs3))},e.\u0275prov=r.Yz7({token:e,factory:e.\u0275fac}),e}();function Kn(e){return e.appInitializer.bind(e)}function Wn(e){return e.bootstrapListener.bind(e)}var Qn=new r.OlP("Router Initializer")},6215:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var i=n(9765),r=n(7971),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._value=e,i}return _createClass(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=_get(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.N;return this._value}},{key:"next",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=e)}}]),n}(i.xQ)},1593:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var i=n(9193),r=n(5917),o=n(7574),a=function(){function e(t,n,i){_classCallCheck(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,r.of)(this.value);case"E":return e=this.error,new o.y(function(t){return t.error(e)});case"C":return(0,i.c)()}var e;throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();a.completeNotification=new a("C"),a.undefinedValueNotification=new a("N",void 0)},7574:function(e,t,n){"use strict";n.d(t,{y:function(){return c}});var i,r=n(7393),o=n(9181),a=n(6490),s=n(6554),u=n(4487),l=n(2494),c=((i=function(e){function t(e){_classCallCheck(this,t),this._isScalar=!1,e&&(this._subscribe=e)}return _createClass(t,[{key:"lift",value:function(e){var n=new t;return n.source=this,n.operator=e,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,s=function(e,t,n){if(e){if(e instanceof r.L)return e;if(e[o.b])return e[o.b]()}return e||t||n?new r.L(e,t,n):new r.L(a.c)}(e,t,n);if(s.add(i?i.call(s,this.source):this.source||l.v.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),l.v.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){l.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,i=t.destination,o=t.isStopped;if(n||o)return!1;e=i&&i instanceof r.L?i:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=h(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:e,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n4&&void 0!==arguments[4]?arguments[4]:new s(e,n,i);if(!r.closed)return t instanceof l.y?t.subscribe(r):(0,u.s)(t)(r)}var h=n(6693),f={};function d(){for(var e=arguments.length,t=new Array(e),n=0;n1?Array.prototype.slice.call(arguments):e)},i,n)})}function u(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(t,n),o=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,h=e.length;c1&&"number"==typeof t[t.length-1]&&(s=t.pop())):"number"==typeof l&&(s=t.pop()),null===u&&1===t.length&&t[0]instanceof i.y?t[0]:(0,o.J)(s)((0,a.n)(t,u))}},5917:function(e,t,n){"use strict";n.d(t,{of:function(){return a}});var i=n(4869),r=n(6693),o=n(4087);function a(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:i.P;return function(e){return function(t){return t.lift(new o(e))}}(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=-1;return(0,u.k)(t)?r=Number(t)<1?1:Number(t):(0,l.K)(t)&&(n=t),(0,l.K)(n)||(n=i.P),new s.y(function(t){var i=(0,u.k)(e)?e:+e-n.now();return n.schedule(c,i,{index:0,period:r,subscriber:t})})}(e,t)})}},4612:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var i=n(9773);function r(e,t){return(0,i.zg)(e,t,1)}},4395:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var i=n(7393),r=n(3637);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.P;return function(n){return n.lift(new a(e,t))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.dueTime=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return _createClass(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(u,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(i.L);function u(e){e.debouncedNext()}},7519:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var i=n(7393);function r(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.compare=t,this.keySelector=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.compare,this.keySelector))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return _createClass(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(n){return this.destination.error(n)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(i.L)},5435:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var i=n(7393);function r(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).predicate=i,o.thisArg=r,o.count=0,o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(i.L)},8002:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});var i=n(7393);function r(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||_assertThisInitialized(o),o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(i.L)},3282:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var i=n(9773),r=n(4487);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,i.zg)(r.y,e)}},9773:function(e,t,n){"use strict";n.d(t,{zg:function(){return a}});var i=n(8002),r=n(4402),o=n(5345);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(o){return o.pipe(a(function(n,o){return(0,r.D)(e(n,o)).pipe((0,i.U)(function(e,i){return t(n,e,o,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new s(e,n))})}var s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.project,this.concurrent))}}]),e}(),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(o.Ds)},1307:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var i=n(7393);function r(){return function(e){return e.lift(new o(e))}}var o=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new a(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).connectable=i,r}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()}}else this.connection=null}}]),n}(i.L)},3653:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var i=n(7393);function r(e){return function(t){return t.lift(new o(e))}}var o=function(){function e(t){_classCallCheck(this,e),this.total=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new a(e,this.total))}}]),e}(),a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(i.L)},9761:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var i=n(8071),r=n(4869);function o(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"schedule",value:function(e){return this}}]),n}(n(5319).w))},6102:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var i,r=((i=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}()).now=function(){return Date.now()},i),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.now;return _classCallCheck(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==_assertThisInitialized(i)?n.delegate.now():o()})).actions=[],i.active=!1,i.scheduled=void 0,i}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(r)},4581:function(e,t,n){"use strict";n.d(t,{E:function(){return c}});var i=1,r=Promise.resolve(),o={};function a(e){return e in o&&(delete o[e],!0)}var s=function(e){var t=i++;return o[t]=!0,r.then(function(){return a(t)&&e()}),t},u=function(e){a(e)},l=n(6465),c=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=s(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(u(t),e.scheduled=void 0)}}]),n}(l.o))},3637:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var i=n(6465),r=new(n(6102).v)(i.o)},377:function(e,t,n){"use strict";n.d(t,{hZ:function(){return i}});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},7971:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},4449:function(e,t,n){"use strict";function i(e){setTimeout(function(){throw e},0)}n.d(t,{z:function(){return i}})},4487:function(e,t,n){"use strict";function i(e){return e}n.d(t,{y:function(){return i}})},9796:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var i=Array.isArray||function(e){return e&&"number"==typeof e.length}},9489:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},9105:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,{m:function(){return i}})},6561:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var i=n(9796);function r(e){return!(0,i.k)(e)&&e-parseFloat(e)+1>=0}},1555:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,{K:function(){return i}})},5639:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var i=n(7574);function r(e){return!!e&&(e instanceof i.y||"function"==typeof e.lift&&"function"==typeof e.subscribe)}},4072:function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,{t:function(){return i}})},4869:function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,{K:function(){return i}})},7444:function(e,t,n){"use strict";n.d(t,{s:function(){return c}});var i=n(5015),r=n(4449),o=n(377),a=n(6554),s=n(9489),u=n(4072),l=n(1555),c=function(e){if(e&&"function"==typeof e[a.L])return function(e){return function(t){var n=e[a.L]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}}(e);if((0,s.z)(e))return(0,i.V)(e);if((0,u.t)(e))return function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,r.z),t}}(e);if(e&&"function"==typeof e[o.hZ])return function(e){return function(t){for(var n=e[o.hZ]();;){var i=void 0;try{i=n.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}}(e);var t="You provided ".concat((0,l.K)(e)?"an invalid object":"'".concat(e,"'")," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.");throw new TypeError(t)}},5015:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var i=function(e){return function(t){for(var n=0,i=e.length;n0?(this.dialogRef.afterClosed().subscribe(function(t){e.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.P;return(!(0,a.k)(e)||e<0)&&(e=0),(!t||"function"!=typeof t.schedule)&&(t=o.P),new r.y(function(n){return n.add(t.schedule(s,e,{subscriber:n,counter:0,period:e})),n})}(1e3).subscribe(function(t){var n=e.data.autoclose-1e3*(t+1);e.setExtra(n),n<=0&&e.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(function(t){e.closed()}),this.subscription=this.data.checkClose.subscribe(function(t){window.setTimeout(function(){e.doClose()})}))}},{key:"initYesNo",value:function(){}},{key:"ngOnInit",value:function(){this.data.type===m.yesno?this.initYesNo():this.initAlert()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.Y36(i.so),u.Y36(i.WI))},e.\u0275cmp=u.Xpm({type:e,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"]],template:function(e,t){1&e&&(u._UZ(0,"h4",0),u.ALo(1,"safeHtml"),u._UZ(2,"mat-dialog-content",1),u.ALo(3,"safeHtml"),u.TgZ(4,"mat-dialog-actions"),u.YNc(5,d,4,1,"button",2),u.YNc(6,p,3,0,"button",2),u.YNc(7,v,3,0,"button",2),u.qZA()),2&e&&(u.Q6J("innerHtml",u.lcZ(1,5,t.data.title),u.oJD),u.xp6(2),u.Q6J("innerHTML",u.lcZ(3,7,t.data.body),u.oJD),u.xp6(3),u.Q6J("ngIf",0===t.data.type),u.xp6(1),u.Q6J("ngIf",1===t.data.type),u.xp6(1),u.Q6J("ngIf",1===t.data.type))},directives:[i.uh,i.xY,i.H8,l.O5,c.lW,i.ZT,h.P],pipes:[f.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),e}(),y=function(){var e=function(){function e(t){_classCallCheck(this,e),this.dialog=t}return _createClass(e,[{key:"alert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=window.innerWidth<800?"80%":"40%";return this.dialog.open(g,{width:r,data:{title:e,body:t,autoclose:n,checkClose:i,type:m.alert},disableClose:!0})}},{key:"yesno",value:function(e,t){var n=window.innerWidth<800?"80%":"40%";return this.dialog.open(g,{width:n,data:{title:e,body:t,type:m.yesno},disableClose:!0}).componentInstance.yesno}}]),e}();return e.\u0275fac=function(t){return new(t||e)(u.LFG(i.uw))},e.\u0275prov=u.Yz7({token:e,factory:e.\u0275fac}),e}()},2870:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var i,r=n(7574),o=((i=function(){function e(t){_classCallCheck(this,e),this.api=t,this.delay=t.config.launcher_wait_time}return _createClass(e,[{key:"launchURL",value:function(t){var n=this,i="init",o=function(e){var t=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof e?t=e:403===e.status&&(t=django.gettext("Your session has expired. Please, login again")),window.setTimeout(function(){n.showAlert(django.gettext("Error"),t,5e3),403===e.status&&window.setTimeout(function(){n.api.logout()},5e3)})};if("udsa://"===t.substring(0,7)){var a=t.split("//")[1].split("/"),s=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new r.y(function(e){var t=0,r=function i(){s.componentInstance&&n.api.status(a[0],a[1]).subscribe(function(r){"ready"===r.status?(t?Date.now()-t>5*n.delay&&(s.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),s.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(t=Date.now(),s.componentInstance.data.title=django.gettext("Service ready"),s.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(i,n.delay)):"accessed"===r.status?(s.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),e.next(!0),e.complete()):"running"===r.status?window.setTimeout(i,n.delay):(e.next(!0),e.complete(),o())},function(t){e.next(!0),e.complete(),o(t)})};window.setTimeout(function e(){if("init"===i)window.setTimeout(e,n.delay);else{if("error"===i||"stop"===i)return;window.setTimeout(r)}})}));this.api.enabler(a[0],a[1]).subscribe(function(e){if(e.error)i="error",n.api.gui.alert(django.gettext("Error launching service"),e.error);else{if(e.url.startsWith("/"))return s.componentInstance&&s.componentInstance.close(),i="stop",void n.launchURL(e.url);"https:"===window.location.protocol&&(e.url=e.url.replace("uds://","udss://")),i="enabled",n.doLaunch(e.url)}},function(e){n.api.logout()})}else var u=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new r.y(function(i){window.setTimeout(function r(){u.componentInstance&&n.api.transportUrl(t).subscribe(function(t){if(t.url)if(i.next(!0),i.complete(),-1!==t.url.indexOf("o_s_w=")){var a=/(.*)&o_s_w=.*/.exec(t.url);window.location.href=a[1]}else{var s="global";if(-1!==t.url.indexOf("o_n_w=")){var u=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(t.url);u&&(s=u[2],t.url=u[1])}e.transportsWindow[s]&&e.transportsWindow[s].close(),e.transportsWindow[s]=window.open(t.url,"uds_trans_"+s)}else t.running?window.setTimeout(r,n.delay):(i.next(!0),i.complete(),o(t.error))},function(e){i.next(!0),i.complete(),o(e)})})}))}},{key:"showAlert",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return this.api.gui.alert(django.gettext("Launching service"),'

'+e+'

'+t+"

",n,i)}},{key:"doLaunch",value:function(e){var t=document.getElementById("hiddenUdsLauncherIFrame");if(null===t){var n=document.createElement("div");n.id="testID",n.innerHTML='',document.body.appendChild(n),t=document.getElementById("hiddenUdsLauncherIFrame")}t.contentWindow.location.href=e}}]),e}()).transportsWindow={},i)},4902:function _(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{G:function(){return LoginComponent}});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3018),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(665),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8295),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9983),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8583),_angular_material_button__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1095),_angular_material_select__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7441),_angular_material_core__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(2458),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template(e,t){if(1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&e){var n=t.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",n.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",n.name," ")}}function LoginComponent_div_22_Template(e,t){if(1&e){var n=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(1,"mat-form-field",17),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(2,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(e){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(n),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(e.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()}if(2&e){var i=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",i.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",i.auths)}}var LoginComponent=function(){var LoginComponent=function(){function LoginComponent(e){_classCallCheck(this,LoginComponent),this.api=e,this.title="UDS Enterprise",this.title=e.config.site_name,this.auths=e.config.authenticators.slice(0),this.auths.sort(function(e,t){return e.priority-t.priority})}return _createClass(LoginComponent,[{key:"ngOnInit",value:function(){document.getElementById("loginform").action=this.api.config.urls.login;var e=document.getElementById("token");e.name=this.api.csrfField,e.value=this.api.csrfToken,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}},{key:"changeAuth",value:function changeAuth(auth){this.auth.value=auth;var doCustomAuth=function doCustomAuth(data){eval(data)},_iterator22=_createForOfIteratorHelper(this.auths),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var Ke=_step22.value;Ke.id===auth&&Ke.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml(Ke.id).subscribe(function(e){return doCustomAuth(e)}))}}catch(err){_iterator22.e(err)}finally{_iterator22.f()}}},{key:"launch",value:function(){return document.getElementById("loginform").submit(),!0}}]),LoginComponent}();return LoginComponent.\u0275fac=function(e){return new(e||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,t){1&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return t.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(2,"input",2),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(10,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(11,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(12,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(17,"mat-form-field",10),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(18,"mat-label"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(24,"button",15),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&e&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",t.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",t.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",t.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,t.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_button__WEBPACK_IMPORTED_MODULE_7__.lW,_angular_material_select__WEBPACK_IMPORTED_MODULE_8__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_9__.ey],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent}()},7918:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var i,r=n(3018),o=((i=function(){function e(t){_classCallCheck(this,e),this.el=t}return _createClass(e,[{key:"ngOnInit",value:function(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}]),e}()).\u0275fac=function(e){return new(e||i)(r.Y36(r.SBq))},i.\u0275dir=r.lG2({type:i,selectors:[["uds-translate"]]}),i)},3513:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var i=function(){function e(t){_classCallCheck(this,e),this.user=t.user,this.role=t.role,this.admin=t.admin}return _createClass(e,[{key:"isStaff",get:function(){return"staff"===this.role||"admin"===this.role}},{key:"isAdmin",get:function(){return"admin"===this.role}},{key:"isLogged",get:function(){return null!=this.user}},{key:"isRestricted",get:function(){return"restricted"===this.role}}]),e}()},7540:function _(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return UDSApiService}});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3018),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1841),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3183),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8741),UDSApiService=function(){var UDSApiService=function(){function UDSApiService(e,t,n){_classCallCheck(this,UDSApiService),this.http=e,this.gui=t,this.router=n,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}return _createClass(UDSApiService,[{key:"config",get:function(){return udsData.config}},{key:"csrfField",get:function(){return csrf.csrfField}},{key:"csrfToken",get:function(){return csrf.csrfToken}},{key:"staffInfo",get:function(){return udsData.info}},{key:"plugins",get:function(){return udsData.plugins}},{key:"actors",get:function(){return udsData.actors}},{key:"errors",get:function(){return udsData.errors}},{key:"enabler",value:function(e,t){var n=this.config.urls.enabler.replace("param1",e).replace("param2",t);return this.http.get(n)}},{key:"status",value:function(e,t){var n=this.config.urls.status.replace("param1",e).replace("param2",t);return this.http.get(n)}},{key:"action",value:function(e,t){var n=this.config.urls.action.replace("param1",t).replace("param2",e);return this.http.get(n)}},{key:"transportUrl",value:function(e){return this.http.get(e)}},{key:"galleryImageURL",value:function(e){return this.config.urls.galleryImage.replace("param1",e)}},{key:"transportIconURL",value:function(e){return this.config.urls.transportIcon.replace("param1",e)}},{key:"staticURL",value:function(e){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+e:"/static/"+e}},{key:"getServicesInformation",value:function(){return this.http.get(this.config.urls.services)}},{key:"getErrorInformation",value:function(e){return this.http.get(this.config.urls.error.replace("9999",e))}},{key:"executeCustomJSForServiceLaunch",value:function executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}},{key:"gotoAdmin",value:function(){window.location.href=this.config.urls.admin}},{key:"logout",value:function(){window.location.href=this.config.urls.logout}},{key:"launchURL",value:function(e){this.plugin.launchURL(e)}},{key:"getAuthCustomHtml",value:function(e){return this.http.get(this.config.urls.customAuth+e,{responseType:"text"})}}]),UDSApiService}();return UDSApiService.\u0275fac=function(e){return new(e||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService}()},2340:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i={production:!0}},6445:function(e,t,n){"use strict";var i,r,o=n(9075),a=n(3018),s=n(9490),u=n(9765),l=n(739),c=n(8071),h=n(7574),f=n(5257),d=n(3653),p=n(4395),v=n(8002),_=n(9761),m=n(6782),g=n(521),y=((i=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||i)},i.\u0275mod=a.oAB({type:i}),i.\u0275inj=a.cJS({}),i),k=new Set,b=function(){var e=function(){function e(t){_classCallCheck(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):C}return _createClass(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!k.has(e))try{r||((r=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(r)),r.sheet&&(r.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),k.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(g.t4))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(g.t4))},token:e,providedIn:"root"}),e}();function C(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var w=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new u.xQ}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return x((0,s.Eq)(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=x((0,s.Eq)(e)).map(function(e){return t._registerQuery(e).observable}),i=(0,l.aj)(n);return(i=(0,c.z)(i.pipe((0,f.q)(1)),i.pipe((0,d.T)(1),(0,p.b)(0)))).pipe((0,v.U)(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new h.y(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe((0,_.O)(n),(0,v.U)(function(t){var n=t.matches;return{query:e,matches:n}}),(0,m.R)(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(b),a.LFG(a.R0b))},e.\u0275prov=a.Yz7({factory:function(){return new e(a.LFG(b),a.LFG(a.R0b))},token:e,providedIn:"root"}),e}();function x(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var E=n(1841),S=n(8741),A=n(7540),O=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"canActivate",value:function(e,t){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.LFG(A.n))},e.\u0275prov=a.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}(),T=n(4902),P=n(7918),I=n(8583);function R(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw().download(e.url)}),a.TgZ(1,"div",7),a._UZ(2,"img",8),a.qZA(),a.TgZ(3,"div",9),a._uU(4),a.qZA(),a.TgZ(5,"div",10),a._uU(6),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.Tol(r.css(i)),a.xp6(2),a.Q6J("src",r.img(i.name),a.LSH),a.xp6(2),a.lnq(" ",r.legacy(i)," ",i.name," (",i.url.split(".").pop(),") "),a.xp6(2),a.hij(" ",i.description," ")}}var D=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"download",value:function(e){window.location.href=e}},{key:"img",value:function(e){return this.api.staticURL("modern/img/"+e+".png")}},{key:"css",value:function(e){var t=["plugin"];return e.legacy&&t.push("legacy"),t}},{key:"legacy",value:function(e){return e.legacy?"Legacy":""}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a.TgZ(3,"h1"),a.TgZ(4,"uds-translate"),a._uU(5,"UDS Client"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.YNc(7,R,7,7,"div",4),a.qZA(),a.TgZ(8,"div",5),a.TgZ(9,"ul"),a.TgZ(10,"li"),a.TgZ(11,"uds-translate"),a._uU(12,"Download UDS client for your platform"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(7),a.Q6J("ngForOf",t.api.plugins))},directives:[P.P,I.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem}"]}),e}(),M=n(6498);function L(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw().download(e.url)}),a.TgZ(1,"div",7),a._UZ(2,"img",8),a.qZA(),a._UZ(3,"div",9),a.ALo(4,"safeHtml"),a._UZ(5,"div",10),a.ALo(6,"safeHtml"),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw();a.Tol(r.css(i.name)),a.xp6(2),a.Q6J("src",r.img(i.name),a.LSH),a.xp6(1),a.Q6J("innerHTML",a.lcZ(4,5,i.name),a.oJD),a.xp6(2),a.Q6J("innerHTML",a.lcZ(6,7,i.description),a.oJD)}}var F=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.actors=[];var t=[];this.api.actors.forEach(function(n){n.name.includes("legacy")?t.push(n):e.actors.push(n)}),t.forEach(function(t){e.actors.push(t)})}},{key:"download",value:function(e){window.location.href=e}},{key:"img",value:function(e){var t=e.split(".").pop().toLowerCase(),n="Linux";return"exe"===t?n="Windows":"pkg"===t&&(n="MacOS"),this.api.staticURL("modern/img/"+n+".png")}},{key:"css",value:function(e){var t=["actor"];return e.toLowerCase().includes("legacy")&&t.push("legacy"),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a.TgZ(3,"h1"),a.TgZ(4,"uds-translate"),a._uU(5,"Downloads"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.TgZ(6,"div",3),a.YNc(7,L,7,9,"div",4),a.qZA(),a.TgZ(8,"div",5),a.TgZ(9,"ul"),a.TgZ(10,"li"),a.TgZ(11,"uds-translate"),a._uU(12,"Always download the UDS actor matching your platform"),a.qZA(),a.qZA(),a.TgZ(13,"li"),a.TgZ(14,"uds-translate"),a._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(7),a.Q6J("ngForOf",t.actors))},directives:[P.P,I.sg],pipes:[M.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);background-color:rgba(0,0,0,.102)}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:bold;overflow:hidden}"]}),e}(),N=n(5319),U=n(8345),B=0,Z=new a.OlP("CdkAccordion"),j=function(){var e=function(){function e(){_classCallCheck(this,e),this._stateChanges=new u.xQ,this._openCloseAllActions=new u.xQ,this.id="cdk-accordion-"+B++,this._multi=!1}return _createClass(e,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=(0,s.Ig)(e)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[a._Bn([{provide:Z,useExisting:e}]),a.TTD]}),e}(),q=0,V=function(){var e=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.accordion=t,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=N.w.EMPTY,this.closed=new a.vpe,this.opened=new a.vpe,this.destroyed=new a.vpe,this.expandedChange=new a.vpe,this.id="cdk-accordion-child-"+q++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen(function(e,t){r.accordion&&!r.accordion.multi&&r.accordion.id===t&&r.id!==e&&(r.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return _createClass(e,[{key:"expanded",get:function(){return this._expanded},set:function(e){e=(0,s.Ig)(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,s.Ig)(e)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe(function(t){e.disabled||(e.expanded=t)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(Z,12),a.Y36(a.sBO),a.Y36(U.A8))},e.\u0275dir=a.lG2({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[a._Bn([{provide:Z,useValue:void 0}])]}),e}(),H=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),z=n(7636),Y=n(2458),G=n(9238),K=n(7519),W=n(5435),Q=n(6461),J=n(6237),X=n(9193),$=n(6682),ee=n(7238),te=["body"];function ne(e,t){}var ie=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],re=["mat-expansion-panel-header","*","mat-action-row"];function oe(e,t){if(1&e&&a._UZ(0,"span",2),2&e){var n=a.oxw();a.Q6J("@indicatorRotate",n._getExpandedState())}}var ae=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],se=["mat-panel-title","mat-panel-description","*"],ue=new a.OlP("MAT_ACCORDION"),le="225ms cubic-bezier(0.4,0.0,0.2,1)",ce={indicatorRotate:(0,ee.X$)("indicatorRotate",[(0,ee.SB)("collapsed, void",(0,ee.oB)({transform:"rotate(0deg)"})),(0,ee.SB)("expanded",(0,ee.oB)({transform:"rotate(180deg)"})),(0,ee.eR)("expanded <=> collapsed, void => collapsed",(0,ee.jt)(le))]),bodyExpansion:(0,ee.X$)("bodyExpansion",[(0,ee.SB)("collapsed, void",(0,ee.oB)({height:"0px",visibility:"hidden"})),(0,ee.SB)("expanded",(0,ee.oB)({height:"*",visibility:"visible"})),(0,ee.eR)("expanded <=> collapsed, void => collapsed",(0,ee.jt)(le))])},he=function(){var e=function e(t){_classCallCheck(this,e),this._template=t};return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.Rgc))},e.\u0275dir=a.lG2({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e}(),fe=0,de=new a.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),pe=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,l,c){var h;return _classCallCheck(this,n),(h=t.call(this,e,i,r))._viewContainerRef=o,h._animationMode=l,h._hideToggle=!1,h.afterExpand=new a.vpe,h.afterCollapse=new a.vpe,h._inputChanges=new u.xQ,h._headerId="mat-expansion-panel-header-"+fe++,h._bodyAnimationDone=new u.xQ,h.accordion=e,h._document=s,h._bodyAnimationDone.pipe((0,K.x)(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){"void"!==e.fromState&&("expanded"===e.toState?h.afterExpand.emit():"collapsed"===e.toState&&h.afterCollapse.emit())}),c&&(h.hideToggle=c.hideToggle),h}return _createClass(n,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(e){this._hideToggle=(0,s.Ig)(e)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(e){this._togglePosition=e}},{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var e=this;this._lazyContent&&this.opened.pipe((0,_.O)(null),(0,W.h)(function(){return e.expanded&&!e._portal}),(0,f.q)(1)).subscribe(function(){e._portal=new z.UE(e._lazyContent._template,e._viewContainerRef)})}},{key:"ngOnChanges",value:function(e){this._inputChanges.next(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}]),n}(V);return e.\u0275fac=function(t){return new(t||e)(a.Y36(ue,12),a.Y36(a.sBO),a.Y36(U.A8),a.Y36(a.s_b),a.Y36(I.K0),a.Y36(J.Qb,8),a.Y36(de,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,he,5),2&e)&&(a.iGM(i=a.CRH())&&(t._lazyContent=i.first))},viewQuery:function(e,t){var n;(1&e&&a.Gf(te,5),2&e)&&(a.iGM(n=a.CRH())&&(t._body=n.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&a.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[a._Bn([{provide:ue,useValue:void 0}]),a.qOj,a.TTD],ngContentSelectors:re,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(a.F$t(ie),a.Hsn(0),a.TgZ(1,"div",0,1),a.NdJ("@bodyExpansion.done",function(e){return t._bodyAnimationDone.next(e)}),a.TgZ(3,"div",2),a.Hsn(4,1),a.YNc(5,ne,0,0,"ng-template",3),a.qZA(),a.Hsn(6,2),a.qZA()),2&e&&(a.xp6(1),a.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),a.uIk("aria-labelledby",t._headerId),a.xp6(4),a.Q6J("cdkPortalOutlet",t._portal))},directives:[z.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ce.bodyExpansion]},changeDetection:0}),e}(),ve=(0,Y.sb)(function e(){_classCallCheck(this,e)}),_e=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u){var l;_classCallCheck(this,n),(l=t.call(this)).panel=e,l._element=i,l._focusMonitor=r,l._changeDetectorRef=o,l._animationMode=s,l._parentChangeSubscription=N.w.EMPTY;var c=e.accordion?e.accordion._stateChanges.pipe((0,W.h)(function(e){return!(!e.hideToggle&&!e.togglePosition)})):X.E;return l.tabIndex=parseInt(u||"")||0,l._parentChangeSubscription=(0,$.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,W.h)(function(e){return!!(e.hideToggle||e.disabled||e.togglePosition)}))).subscribe(function(){return l._changeDetectorRef.markForCheck()}),e.closed.pipe((0,W.h)(function(){return e._containsFocus()})).subscribe(function(){return r.focusVia(i,"program")}),a&&(l.expandedHeight=a.expandedHeight,l.collapsedHeight=a.collapsedHeight),l}return _createClass(n,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(e){switch(e.keyCode){case Q.L_:case Q.K5:(0,Q.Vb)(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._element).subscribe(function(t){t&&e.panel.accordion&&e.panel.accordion._handleHeaderFocus(e)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),n}(ve);return e.\u0275fac=function(t){return new(t||e)(a.Y36(pe,1),a.Y36(a.SBq),a.Y36(G.tE),a.Y36(a.sBO),a.Y36(de,8),a.Y36(J.Qb,8),a.$8M("tabindex"))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&a.NdJ("click",function(){return t._toggle()})("keydown",function(e){return t._keydown(e)}),2&e&&(a.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),a.Udp("height",t._getHeaderHeight()),a.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[a.qOj],ngContentSelectors:se,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(a.F$t(ae),a.TgZ(0,"span",0),a.Hsn(1),a.Hsn(2,1),a.Hsn(3,2),a.qZA(),a.YNc(4,oe,1,1,"span",1)),2&e&&(a.xp6(4),a.Q6J("ngIf",t._showToggle()))},directives:[I.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}\n'],encapsulation:2,data:{animation:[ce.indicatorRotate]},changeDetection:0}),e}(),me=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),e}(),ge=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e}(),ye=function(){var e,t=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._ownHeaders=new a.n_E,e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}return _createClass(n,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(e){this._hideToggle=(0,s.Ig)(e)}},{key:"ngAfterContentInit",value:function(){var e=this;this._headers.changes.pipe((0,_.O)(this._headers)).subscribe(function(t){e._ownHeaders.reset(t.filter(function(t){return t.panel.accordion===e})),e._ownHeaders.notifyOnChanges()}),this._keyManager=new G.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(e){this._keyManager.onKeydown(e)}},{key:"_handleHeaderFocus",value:function(e){this._keyManager.updateActiveItem(e)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),n}(j);return t.\u0275fac=function(n){return(e||(e=a.n5z(t)))(n||t)},t.\u0275dir=a.lG2({type:t,selectors:[["mat-accordion"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,_e,5),2&e)&&(a.iGM(i=a.CRH())&&(t._headers=i))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&a.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[a._Bn([{provide:ue,useExisting:t}]),a.qOj]}),t}(),ke=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[I.ez,Y.BQ,H,z.eL]]}),e}();function be(e,t){if(1&e&&(a.TgZ(0,"li"),a.TgZ(1,"uds-translate"),a._uU(2,"Detected proxy ip"),a.qZA(),a._uU(3),a.qZA()),2&e){var n=a.oxw(2);a.xp6(3),a.hij(": ",n.api.staffInfo.ip_proxy,"")}}function Ce(e,t){if(1&e&&(a.TgZ(0,"li"),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n)}}function we(e,t){if(1&e&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&e){var n=t.$implicit;a.xp6(1),a.Oqu(n)}}function xe(e,t){if(1&e&&(a.TgZ(0,"div",1),a.TgZ(1,"h1"),a.TgZ(2,"uds-translate"),a._uU(3,"Information"),a.qZA(),a.qZA(),a.TgZ(4,"mat-accordion"),a.TgZ(5,"mat-expansion-panel"),a.TgZ(6,"mat-expansion-panel-header",2),a.TgZ(7,"mat-panel-title"),a._uU(8," IPs "),a.qZA(),a.TgZ(9,"mat-panel-description"),a.TgZ(10,"uds-translate"),a._uU(11,"Client IP"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(12,"ol"),a.TgZ(13,"li"),a.TgZ(14,"uds-translate"),a._uU(15,"Client IP"),a.qZA(),a._uU(16),a.qZA(),a.YNc(17,be,4,1,"li",3),a.qZA(),a.qZA(),a.TgZ(18,"mat-expansion-panel"),a.TgZ(19,"mat-expansion-panel-header",2),a.TgZ(20,"mat-panel-title"),a.TgZ(21,"uds-translate"),a._uU(22,"Transports"),a.qZA(),a.qZA(),a.TgZ(23,"mat-panel-description"),a.TgZ(24,"uds-translate"),a._uU(25,"UDS transports for this client"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(26,"ol"),a.YNc(27,Ce,2,1,"li",4),a.qZA(),a.qZA(),a.TgZ(28,"mat-expansion-panel"),a.TgZ(29,"mat-expansion-panel-header",2),a.TgZ(30,"mat-panel-title"),a.TgZ(31,"uds-translate"),a._uU(32,"Networks"),a.qZA(),a.qZA(),a.TgZ(33,"mat-panel-description"),a.TgZ(34,"uds-translate"),a._uU(35,"UDS networks for this IP"),a.qZA(),a.qZA(),a.qZA(),a.YNc(36,we,2,1,"span",4),a._uU(37,"\xa0 "),a.qZA(),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.xp6(16),a.hij(": ",n.api.staffInfo.ip,""),a.xp6(1),a.Q6J("ngIf",n.api.staffInfo.ip_proxy!==n.api.staffInfo.ip),a.xp6(10),a.Q6J("ngForOf",n.api.staffInfo.transports),a.xp6(9),a.Q6J("ngForOf",n.api.staffInfo.networks)}}var Ee=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(e,t){1&e&&a.YNc(0,xe,38,4,"div",0),2&e&&a.Q6J("ngIf",t.api.staffInfo)},directives:[I.O5,P.P,ye,pe,_e,ge,me,I.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4}"]}),e}(),Se=n(2759),Ae=n(3342),Oe=n(8295),Te=n(9983),Pe=["input"],Ie=function(){var e=function(){function e(){_classCallCheck(this,e),this.updateEvent=new a.vpe}return _createClass(e,[{key:"ngAfterViewInit",value:function(){var e=this;(0,Se.R)(this.input.nativeElement,"keyup").pipe((0,W.h)(Boolean),(0,p.b)(600),(0,K.x)(),(0,Ae.b)(function(){return e.update(e.input.nativeElement.value)})).subscribe()}},{key:"update",value:function(e){this.updateEvent.emit(e.toLowerCase())}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-filter"]],viewQuery:function(e,t){var n;(1&e&&a.Gf(Pe,7),2&e)&&(a.iGM(n=a.CRH())&&(t.input=n.first))},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"mat-form-field",1),a.TgZ(2,"mat-label"),a.TgZ(3,"uds-translate"),a._uU(4,"Filter"),a.qZA(),a.qZA(),a._UZ(5,"input",2,3),a.TgZ(7,"i",4),a._uU(8,"search"),a.qZA(),a.qZA(),a.qZA())},directives:[Oe.KE,Oe.hX,P.P,Te.Nt,Oe.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),e}(),Re=n(5917),De=n(4581),Me=n(3190),Le=n(3637),Fe=n(7393),Ne=n(1593);function Ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Le.P,n=function(e){return e instanceof Date&&!isNaN(+e)}(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new Be(n,t))}}var Be=function(){function e(t,n){_classCallCheck(this,e),this.delay=t,this.scheduler=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Ze(e,this.delay,this.scheduler))}}]),e}(),Ze=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return _createClass(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new je(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(Ne.P.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Ne.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(Fe.L),je=function e(t,n){_classCallCheck(this,e),this.time=t,this.notification=n},qe=n(625),Ve=n(9243),He=n(946),ze=["mat-menu-item",""];function Ye(e,t){1&e&&(a.O4$(),a.TgZ(0,"svg",2),a._UZ(1,"polygon",3),a.qZA())}var Ge=["*"];function Ke(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div",0),a.NdJ("keydown",function(e){return a.CHM(n),a.oxw()._handleKeydown(e)})("click",function(){return a.CHM(n),a.oxw().closed.emit("click")})("@transformMenu.start",function(e){return a.CHM(n),a.oxw()._onAnimationStart(e)})("@transformMenu.done",function(e){return a.CHM(n),a.oxw()._onAnimationDone(e)}),a.TgZ(1,"div",1),a.Hsn(2),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.Q6J("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),a.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var We={transformMenu:(0,ee.X$)("transformMenu",[(0,ee.SB)("void",(0,ee.oB)({opacity:0,transform:"scale(0.8)"})),(0,ee.eR)("void => enter",(0,ee.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.oB)({opacity:1,transform:"scale(1)"}))),(0,ee.eR)("* => void",(0,ee.jt)("100ms 25ms linear",(0,ee.oB)({opacity:0})))]),fadeInItems:(0,ee.X$)("fadeInItems",[(0,ee.SB)("showing",(0,ee.oB)({opacity:1})),(0,ee.eR)("void => *",[(0,ee.oB)({opacity:0}),(0,ee.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Qe=new a.OlP("MatMenuContent"),Je=new a.OlP("MAT_MENU_PANEL"),Xe=(0,Y.Kr)((0,Y.Id)(function(){return function e(){_classCallCheck(this,e)}}())),$e=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a){var s;return _classCallCheck(this,n),(s=t.call(this))._elementRef=e,s._focusMonitor=r,s._parentMenu=o,s._changeDetectorRef=a,s.role="menuitem",s._hovered=new u.xQ,s._focused=new u.xQ,s._highlighted=!1,s._triggersSubmenu=!1,o&&o.addItem&&o.addItem(_assertThisInitialized(s)),s}return _createClass(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t=this,n=Math.min(this._baseElevation+e,24),i="".concat(this._elevationPrefix).concat(n),r=Object.keys(this._classList).find(function(e){return e.startsWith(t._elevationPrefix)});(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe((0,_.O)(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(et))},e.\u0275dir=a.lG2({type:e,contentQueries:function(e,t,n){var i;(1&e&&(a.Suo(n,Qe,5),a.Suo(n,$e,5),a.Suo(n,$e,4)),2&e)&&(a.iGM(i=a.CRH())&&(t.lazyContent=i.first),a.iGM(i=a.CRH())&&(t._allItems=i),a.iGM(i=a.CRH())&&(t.items=i))},viewQuery:function(e,t){var n;(1&e&&a.Gf(a.Rgc,5),2&e)&&(a.iGM(n=a.CRH())&&(t.templateRef=n.first))},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),it=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e,i,r))._elevationPrefix="mat-elevation-z",o._baseElevation=4,o}return n}(nt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(et))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&a.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[a._Bn([{provide:Je,useExisting:e}]),a.qOj],ngContentSelectors:Ge,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(a.F$t(),a.YNc(0,Ke,3,6,"ng-template"))},directives:[I.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[We.transformMenu,We.fadeInItems]},changeDetection:0}),e}(),rt=new a.OlP("mat-menu-scroll-strategy"),ot={provide:rt,deps:[qe.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},at=(0,g.i$)({passive:!0}),st=function(){var e=function(){function e(t,n,i,r,o,s,u,l){var c=this;_classCallCheck(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=u,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=N.w.EMPTY,this._hoverSubscription=N.w.EMPTY,this._menuCloseSubscription=N.w.EMPTY,this._handleTouchStart=function(e){(0,G.yG)(e)||(c._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new a.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof nt?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,at),s&&(s._triggersSubmenu=this.triggersSubmenu())}return _createClass(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),("click"===e||"tab"===e)&&t._parentMaterialMenu&&t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,at),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof nt&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof nt?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe((0,W.h)(function(e){return"void"===e.toState}),(0,f.q)(1),(0,m.R)(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new qe.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,u=a,l=n,c=i,h=0;this.triggersSubmenu()?(c=n="before"===this.menu.xPosition?"start":"end",i=l="end"===n?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",u="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:l,overlayY:o,offsetY:h},{originX:i,originY:s,overlayX:c,overlayY:o,offsetY:h},{originX:n,originY:u,overlayX:l,overlayY:a,offsetY:-h},{originX:i,originY:u,overlayX:c,overlayY:a,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Re.of)(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,W.h)(function(t){return t!==e._menuItemInstance}),(0,W.h)(function(){return e._menuOpen})):(0,Re.of)();return(0,$.T)(t,i,r,n)}},{key:"_handleMousedown",value:function(e){(0,G.X6)(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;(t===Q.K5||t===Q.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===Q.SV&&"ltr"===this.dir||t===Q.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,W.h)(function(t){return t===e._menuItemInstance&&!t.disabled}),Ue(0,De.E)).subscribe(function(){e._openedBy="mouse",e.menu instanceof nt&&e.menu._isAnimating?e.menu._animationDone.pipe((0,f.q)(1),Ue(0,De.E),(0,m.R)(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new z.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(a.s_b),a.Y36(rt),a.Y36(Je,8),a.Y36($e,10),a.Y36(He.Is,8),a.Y36(G.tE))},e.\u0275dir=a.lG2({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&a.NdJ("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&a.uIk("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),ut=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[ot],imports:[Y.BQ]}),e}(),lt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[ot],imports:[[I.ez,Y.BQ,Y.si,qe.U8,ut],Ve.ZD,Y.BQ,ut]}),e}(),ct={tooltipState:(0,ee.X$)("state",[(0,ee.SB)("initial, void, hidden",(0,ee.oB)({opacity:0,transform:"scale(0)"})),(0,ee.SB)("visible",(0,ee.oB)({transform:"scale(1)"})),(0,ee.eR)("* => visible",(0,ee.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,ee.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,ee.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,ee.eR)("* => hidden",(0,ee.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.oB)({opacity:0})))])},ht="tooltip-panel",ft=(0,g.i$)({passive:!0}),dt=new a.OlP("mat-tooltip-scroll-strategy"),pt={provide:dt,deps:[qe.aV],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},vt=new a.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),_t=function(){var e=function(){function e(t,n,i,r,o,a,s,l,c,h,f,d){var p=this;_classCallCheck(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=s,this._focusMonitor=l,this._dir=h,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new u.xQ,this._handleKeydown=function(e){p._isTooltipVisible()&&e.keyCode===Q.hY&&!(0,Q.Vb)(e)&&(e.preventDefault(),e.stopPropagation(),p._ngZone.run(function(){return p.hide(0)}))},this._scrollStrategy=c,this._document=d,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe((0,m.R)(this._destroyed)).subscribe(function(){p._overlayRef&&p._updatePosition(p._overlayRef)}),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",p._handleKeydown)})}return _createClass(e,[{key:"position",get:function(){return this._position},set:function(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,s.Ig)(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,m.R)(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=_slicedToArray(t,2),i=n[0],r=n[1];e.removeEventListener(i,r,ft)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new z.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,m.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe((0,m.R)(this._destroyed)).subscribe(function(t){e._updateCurrentPositionClass(t.connectionPair),e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-").concat(ht),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,m.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,m.R)(this._destroyed)).subscribe(function(){var t;return null===(t=e._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var t=e.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,f.q)(1),(0,m.R)(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_updateCurrentPositionClass",value:function(e){var t,n=e.overlayY,i=e.originX,r=e.originY;if((t="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===r?"above":"below")!==this._currentPosition){var o=this._overlayRef;if(o){var a="".concat(this._cssClassPrefix,"-").concat(ht,"-");o.removePanelClass(a+this._currentPosition),o.addPanelClass(a+t)}this._currentPosition=t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=_slicedToArray(e,2),i=n[0],r=n[1];t._elementRef.nativeElement.addEventListener(i,r,ft)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t!==n&&!n.contains(t)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),("on"===e||!t.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(Ve.mF),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(g.t4),a.Y36(G.$s),a.Y36(G.tE),a.Y36(void 0),a.Y36(He.Is),a.Y36(void 0),a.Y36(I.K0))},e.\u0275dir=a.lG2({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),mt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,a,s,u,l,c,h,f,d){var p;return _classCallCheck(this,n),(p=t.call(this,e,i,r,o,a,s,u,l,c,h,f,d))._tooltipComponent=yt,p}return n}(_t);return e.\u0275fac=function(t){return new(t||e)(a.Y36(qe.aV),a.Y36(a.SBq),a.Y36(Ve.mF),a.Y36(a.s_b),a.Y36(a.R0b),a.Y36(g.t4),a.Y36(G.$s),a.Y36(G.tE),a.Y36(dt),a.Y36(He.Is,8),a.Y36(vt,8),a.Y36(I.K0))},e.\u0275dir=a.lG2({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[a.qOj]}),e}(),gt=function(){var e=function(){function e(t){_classCallCheck(this,e),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new u.xQ}return _createClass(e,[{key:"show",value:function(e){var t=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=void 0,t._onShow(),t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=void 0,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO))},e.\u0275dir=a.lG2({type:e}),e}(),yt=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e))._breakpointObserver=i,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return n}(gt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.sBO),a.Y36(w))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&a.Udp("zoom","visible"===t._visibility?1:null)},features:[a.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;(1&e&&(a.TgZ(0,"div",0),a.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),a.ALo(1,"async"),a._uU(2),a.qZA()),2&e)&&(a.ekj("mat-tooltip-handset",null==(n=a.lcZ(1,5,t._isHandset))?null:n.matches),a.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),a.xp6(2),a.Oqu(t.message))},directives:[I.mk],pipes:[I.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ct.tooltipState]},changeDetection:0}),e}(),kt=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[pt],imports:[[G.rt,I.ez,qe.U8,Y.BQ],Y.BQ,Ve.ZD]}),e}(),bt=n(1095);function Ct(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(2).launch(e)}),a.TgZ(1,"div",15),a._UZ(2,"img",9),a._uU(3),a.qZA(),a.qZA()}if(2&e){var i=t.$implicit,r=a.oxw(2);a.xp6(2),a.Q6J("src",r.getTransportIcon(i.id),a.LSH),a.xp6(1),a.hij(" ",i.name," ")}}function wt(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).action("release")}),a.TgZ(1,"i",16),a._uU(2,"delete"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4," Release service"),a.qZA(),a.qZA()}}function xt(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",14),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).action("reset")}),a.TgZ(1,"i",16),a._uU(2,"refresh"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4," Reset service"),a.qZA(),a.qZA()}}function Et(e,t){if(1&e&&(a.TgZ(0,"button",17),a.TgZ(1,"uds-translate"),a._uU(2,"Connections"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(2);a.Q6J("matMenuTriggerFor",n)}}function St(e,t){if(1&e&&(a.TgZ(0,"button",17),a.TgZ(1,"uds-translate"),a._uU(2,"Actions"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(5);a.Q6J("matMenuTriggerFor",n)}}function At(e,t){if(1&e&&(a.TgZ(0,"button",18),a.TgZ(1,"i",16),a._uU(2,"menu"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(9);a.Q6J("matMenuTriggerFor",n)}}function Ot(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"div"),a.TgZ(1,"mat-menu",null,1),a.YNc(3,Ct,4,2,"button",2),a.qZA(),a.TgZ(4,"mat-menu",null,3),a.YNc(6,wt,5,0,"button",4),a.YNc(7,xt,5,0,"button",4),a.qZA(),a.TgZ(8,"mat-menu",null,5),a.YNc(10,Et,3,1,"button",6),a.YNc(11,St,3,1,"button",6),a.qZA(),a.TgZ(12,"div",7),a.TgZ(13,"div",8),a.NdJ("click",function(){return a.CHM(n),a.oxw().launch(null)}),a._UZ(14,"img",9),a.qZA(),a.TgZ(15,"div",10),a.TgZ(16,"span",11),a._uU(17),a.qZA(),a.qZA(),a.TgZ(18,"div",12),a.YNc(19,At,3,1,"button",13),a.qZA(),a.qZA(),a.qZA()}if(2&e){var i=a.oxw();a.xp6(3),a.Q6J("ngForOf",i.service.transports),a.xp6(3),a.Q6J("ngIf",i.service.allow_users_remove),a.xp6(1),a.Q6J("ngIf",i.service.allow_users_reset),a.xp6(3),a.Q6J("ngIf",i.showTransportsMenu()),a.xp6(1),a.Q6J("ngIf",i.hasActions()),a.xp6(1),a.Q6J("ngClass",i.serviceClass)("matTooltipDisabled",""===i.serviceTooltip)("matTooltip",i.serviceTooltip),a.xp6(2),a.Q6J("src",i.serviceImage,a.LSH),a.xp6(2),a.Q6J("ngClass",i.serviceNameClass),a.xp6(1),a.Oqu(i.serviceName),a.xp6(2),a.Q6J("ngIf",i.hasMenu())}}var Tt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"serviceImage",get:function(){return this.api.galleryImageURL(this.service.imageId)}},{key:"serviceName",get:function(){var e=this.service.visual_name;return e.length>32&&(e=e.substring(0,29)+"..."),e}},{key:"serviceTooltip",get:function(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}},{key:"serviceClass",get:function(){var e=["service"];return null!=this.service.to_be_replaced?e.push("tobereplaced"):this.service.maintenance?e.push("maintenance"):this.service.not_accesible?e.push("forbidden"):this.service.in_use&&e.push("inuse"),e.length>1&&e.push("alert"),e}},{key:"serviceNameClass",get:function(){var e=[],t=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return t>=16&&e.push("small-"+t.toString()),e}},{key:"getTransportIcon",value:function(e){return this.api.transportIconURL(e)}},{key:"hasActions",value:function(){return this.service.allow_users_remove||this.service.allow_users_reset}},{key:"showTransportsMenu",value:function(){return this.service.transports.length>1&&this.service.show_transports}},{key:"hasMenu",value:function(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}},{key:"notifyNotLaunching",value:function(e){this.api.gui.alert('

'+django.gettext("Launcher")+"

",e)}},{key:"launch",value:function(e){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){var t=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching('

'+django.gettext("This service is currently not accesible due to schedule restrictions.")+'

'+t+'

')}else(null===e||!1===this.service.show_transports)&&(e=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(e.link)}},{key:"action",value:function(e){var t=this,n=("release"===e?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,i="release"===e?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(n,django.gettext("Are you sure?")).subscribe(function(r){r&&t.api.action(e,t.service.id).subscribe(function(e){e&&t.api.gui.alert(n,i)})})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(e,t){1&e&&a.YNc(0,Ot,20,12,"div",0),2&e&&a.Q6J("ngIf",t.service.transports.length>0)},directives:[I.O5,it,I.sg,I.mk,mt,$e,P.P,st,bt.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:rgba(0,0,0,.22);display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22)}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;border-radius:1px;background-color:rgba(255,255,255,.8)}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:"Material Icons";font-weight:normal;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"}']}),e}();function Pt(e,t){1&e&&a._UZ(0,"uds-service",8),2&e&&a.Q6J("service",t.$implicit)}function It(e,t){if(1&e&&(a.TgZ(0,"mat-expansion-panel",1),a.TgZ(1,"mat-expansion-panel-header",2),a.TgZ(2,"mat-panel-title"),a.TgZ(3,"div",3),a._UZ(4,"img",4),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"mat-panel-description",5),a._uU(7),a.qZA(),a.qZA(),a.TgZ(8,"div",6),a.YNc(9,Pt,1,1,"uds-service",7),a.qZA(),a.qZA()),2&e){var n=a.oxw();a.Q6J("expanded",n.expanded),a.xp6(1),a.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),a.xp6(3),a.Q6J("src",n.groupImage,a.LSH),a.xp6(1),a.hij(" ",n.group.name,""),a.xp6(2),a.hij(" ",n.group.comments," "),a.xp6(2),a.Q6J("ngForOf",n.sortedServices)}}var Rt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.expanded=!1}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"groupImage",get:function(){return this.api.galleryImageURL(this.group.imageUuid)}},{key:"hasVisibleServices",get:function(){return this.services.length>0}},{key:"sortedServices",get:function(){return this.services.sort(function(e,t){return e.name>t.name?1:e.name0&&void 0!==arguments[0]?arguments[0]:"";this.group=[];var n=null;this.servicesInformation.services.filter(function(e){return!t||e.visual_name.toLowerCase().includes(t)||e.group.name.toLowerCase().includes(t)}).sort(function(e,t){return e.group.priority!==t.group.priority?e.group.priority-t.group.priority:e.group.id>t.group.id?1:e.group.id=t.api.config.min_for_filter&&t.api.config.site_filter_on_top),a.xp6(3),a.Q6J("ngForOf",t.group),a.xp6(1),a.Q6J("ngIf",t.servicesInformation.services.length>=t.api.config.min_for_filter&&!t.api.config.site_filter_on_top))},directives:[I.O5,ye,I.sg,Ee,Ie,Rt],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),e}(),Ut=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.api=t,this.route=n}return _createClass(e,[{key:"ngOnInit",value:function(){this.getError()}},{key:"getError",value:function(){var e=this,t=this.route.snapshot.paramMap.get("id");"19"===t&&(this.returnUrl="/mfa"),this.error="",this.api.getErrorInformation(t).subscribe(function(t){e.error=t.error})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n),a.Y36(S.gz))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-error"]],decls:14,vars:2,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],["mat-raised-button","","color","warn",3,"routerLink"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.O4$(),a.TgZ(2,"svg",2),a._UZ(3,"path",3),a.qZA(),a.TgZ(4,"svg",4),a._UZ(5,"path",5),a.qZA(),a.qZA(),a.kcU(),a.TgZ(6,"h1",6),a.TgZ(7,"uds-translate"),a._uU(8,"An error has occurred"),a.qZA(),a.qZA(),a.TgZ(9,"p",7),a._uU(10),a.qZA(),a.TgZ(11,"a",8),a.TgZ(12,"uds-translate"),a._uU(13,"Return"),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(10),a.hij(" ",t.error," "),a.xp6(1),a.Q6J("routerLink",t.returnUrl))},directives:[P.P,bt.zs,S.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),e}(),Bt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.year=(new Date).getFullYear()}return _createClass(e,[{key:"ngOnInit",value:function(){this.year<2021&&(this.year=2021)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-about"]],decls:45,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"h1"),a._uU(2),a.qZA(),a.TgZ(3,"h3"),a.TgZ(4,"a",1),a._uU(5),a.qZA(),a.qZA(),a.TgZ(6,"h4"),a.TgZ(7,"uds-translate"),a._uU(8,"You can access UDS Open Source code at"),a.qZA(),a.TgZ(9,"a",2),a._uU(10,"OpenUDS github repository"),a.qZA(),a.qZA(),a.TgZ(11,"div",3),a.TgZ(12,"h2"),a.TgZ(13,"uds-translate"),a._uU(14,"UDS has been developed using these components:"),a.qZA(),a.qZA(),a.TgZ(15,"ul"),a.TgZ(16,"li"),a.TgZ(17,"a",4),a._uU(18,"Python"),a.qZA(),a.qZA(),a.TgZ(19,"li"),a.TgZ(20,"a",5),a._uU(21,"TypeScript"),a.qZA(),a.qZA(),a.TgZ(22,"li"),a.TgZ(23,"a",6),a._uU(24,"Django"),a.qZA(),a.qZA(),a.TgZ(25,"li"),a.TgZ(26,"a",7),a._uU(27,"Angular"),a.qZA(),a.qZA(),a.TgZ(28,"li"),a.TgZ(29,"a",8),a._uU(30,"Guacamole"),a.qZA(),a.qZA(),a.TgZ(31,"li"),a.TgZ(32,"a",9),a._uU(33,"weasyprint"),a.qZA(),a.qZA(),a.TgZ(34,"li"),a.TgZ(35,"a",10),a._uU(36,"Crystal project icons"),a.qZA(),a.qZA(),a.TgZ(37,"li"),a.TgZ(38,"a",11),a._uU(39,"Flattr Icons"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(40,"p"),a.TgZ(41,"small"),a._uU(42,"* "),a.TgZ(43,"uds-translate"),a._uU(44,"If you find that we missed any component, please let us know"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(2),a.AsE("Universal Desktop Services ",t.api.config.version," build ",t.api.config.version_stamp,""),a.xp6(3),a.hij(" \xa9 2012-",t.year," Virtual Cable S.L.U."))},directives:[P.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:normal}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px}"]}),e}(),Zt=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(e,t){1&e&&(a.TgZ(0,"div",0),a.TgZ(1,"div",1),a.TgZ(2,"h1"),a.TgZ(3,"uds-translate"),a._uU(4,"UDS Service launcher"),a.qZA(),a.qZA(),a.TgZ(5,"h4"),a.TgZ(6,"uds-translate"),a._uU(7,"The service you have requested is being launched."),a.qZA(),a.qZA(),a.TgZ(8,"h5"),a.TgZ(9,"uds-translate"),a._uU(10,"Please, note that reloading this page will not work."),a.qZA(),a.qZA(),a.TgZ(11,"h5"),a.TgZ(12,"uds-translate"),a._uU(13,"To relaunch service, you will have to do it from origin."),a.qZA(),a.qZA(),a.TgZ(14,"h6"),a.TgZ(15,"uds-translate"),a._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),a.qZA(),a.qZA(),a.TgZ(17,"h6"),a.TgZ(18,"uds-translate"),a._uU(19,"You can obtain it from the"),a.qZA(),a._uU(20,"\xa0"),a.TgZ(21,"a",2),a.TgZ(22,"uds-translate"),a._uU(23,"UDS Client download page"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA())},directives:[P.P,S.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px rgba(0,0,0,.251),0 10px 10px rgba(0,0,0,.22);transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:rgba(0,0,0,.22);padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:normal}"]}),e}(),jt=n(665),qt=n(8553),Vt=["input"],Ht=function(e){return{enterDuration:e}},zt=["*"],Yt=new a.OlP("mat-checkbox-default-options",{providedIn:"root",factory:Gt});function Gt(){return{color:"accent",clickAction:"check-indeterminate"}}var Kt=0,Wt={color:"accent",clickAction:"check-indeterminate"},Qt={provide:jt.JU,useExisting:(0,a.Gpc)(function(){return $t}),multi:!0},Jt=function e(){_classCallCheck(this,e)},Xt=(0,Y.sb)((0,Y.pj)((0,Y.Kr)((0,Y.Id)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}())))),$t=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,o,s,u,l){var c;return _classCallCheck(this,n),(c=t.call(this,e))._changeDetectorRef=i,c._focusMonitor=r,c._ngZone=o,c._animationMode=u,c._options=l,c.ariaLabel="",c.ariaLabelledby=null,c._uniqueId="mat-checkbox-"+ ++Kt,c.id=c._uniqueId,c.labelPosition="after",c.name=null,c.change=new a.vpe,c.indeterminateChange=new a.vpe,c._onTouched=function(){},c._currentAnimationClass="",c._currentCheckState=0,c._controlValueAccessorChangeFn=function(){},c._checked=!1,c._disabled=!1,c._indeterminate=!1,c._options=c._options||Wt,c.color=c.defaultColor=c._options.color||Wt.color,c.tabIndex=parseInt(s)||0,c}return _createClass(n,[{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,s.Ig)(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){t||Promise.resolve().then(function(){e._onTouched(),e._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=(0,s.Ig)(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=(0,s.Ig)(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){n.classList.remove(i)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var e=new Jt;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t,n=this,i=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===i?!this.disabled&&"noop"===i&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(function(){n._indeterminate=!1,n.indeterminateChange.emit(n._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(n)}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}]),n}(Xt);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(G.tE),a.Y36(a.R0b),a.$8M("tabindex"),a.Y36(J.Qb,8),a.Y36(Yt,8))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;(1&e&&(a.Gf(Vt,5),a.Gf(Y.wG,5)),2&e)&&(a.iGM(n=a.CRH())&&(t._inputElement=n.first),a.iGM(n=a.CRH())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(a.Ikx("id",t.id),a.uIk("tabindex",null),a.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[a._Bn([Qt]),a.qOj],ngContentSelectors:zt,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(a.F$t(),a.TgZ(0,"label",0,1),a.TgZ(2,"span",2),a.TgZ(3,"input",3,4),a.NdJ("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),a.qZA(),a.TgZ(5,"span",5),a._UZ(6,"span",6),a.qZA(),a._UZ(7,"span",7),a.TgZ(8,"span",8),a.O4$(),a.TgZ(9,"svg",9),a._UZ(10,"path",10),a.qZA(),a.kcU(),a._UZ(11,"span",11),a.qZA(),a.qZA(),a.TgZ(12,"span",12,13),a.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),a.TgZ(14,"span",14),a._uU(15,"\xa0"),a.qZA(),a.Hsn(16),a.qZA(),a.qZA()),2&e){var n=a.MAs(1),i=a.MAs(13);a.uIk("for",t.inputId),a.xp6(2),a.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),a.xp6(1),a.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),a.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),a.xp6(2),a.Q6J("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",a.VKq(19,Ht,"NoopAnimations"===t._animationMode?0:150))}},directives:[Y.wG,qt.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),e}(),en=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({}),e}(),tn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[Y.si,Y.BQ,qt.Q8,en],Y.BQ,en]}),e}(),nn=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:Nt,canActivate:[O]},{path:"login",component:T.G},{path:"login/:id",component:T.G},{path:"mfa",component:function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){document.getElementById("mfaform").action=this.api.config.urls.mfa,this.api.user.isLogged&&this.api.router.navigate(["/"]),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}},{key:"launch",value:function(){return document.getElementById("mfaform").submit(),!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-mfa"]],decls:21,vars:2,consts:[["id","mfaform","method","post",3,"ngSubmit"],[1,"mfa-container"],[1,"mfa-brand"],[3,"src"],[1,"mfa-info"],[1,"mfa-form"],[1,"mfa-field"],["appearance","standard"],["matInput","","id","code","name","code","value","","required","","autofocus",""],["id","remember","name","remember"],[1,"mfa-button"],["mat-stroked-button","","color","primary","type","submit"]],template:function(e,t){1&e&&(a.TgZ(0,"form",0),a.NdJ("ngSubmit",function(){return t.launch()}),a.TgZ(1,"div",1),a.TgZ(2,"div",2),a._UZ(3,"img",3),a.qZA(),a.TgZ(4,"div",4),a.TgZ(5,"uds-translate"),a._uU(6,"Login Verification"),a.qZA(),a.qZA(),a.TgZ(7,"div",5),a.TgZ(8,"div",6),a.TgZ(9,"mat-form-field",7),a.TgZ(10,"mat-label"),a._uU(11),a.qZA(),a._UZ(12,"input",8),a.qZA(),a.qZA(),a.TgZ(13,"div",6),a.TgZ(14,"mat-checkbox",9),a.TgZ(15,"uds-translate"),a._uU(16,"Remember Me"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(17,"div",10),a.TgZ(18,"button",11),a.TgZ(19,"uds-translate"),a._uU(20,"Submit"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.qZA()),2&e&&(a.xp6(3),a.Q6J("src",t.api.staticURL("modern/img/login-img.png"),a.LSH),a.xp6(8),a.hij(" ",t.api.config.mfa.label," "))},directives:[jt._Y,jt.JL,jt.F,P.P,Oe.KE,Oe.hX,Te.Nt,$t,bt.lW],styles:[".mfa-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.mfa-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px rgba(0,0,0,.141),0 3px 1px -2px rgba(0,0,0,.122),0 1px 5px rgba(0,0,0,.2);transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.mfa-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.mfa-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.mfa-form[_ngcontent-%COMP%]{min-width:80%}}"]}),e}()},{path:"client-download",component:D},{path:"downloads",component:F,canActivate:[O]},{path:"error/:id",component:Ut},{path:"about",component:Bt},{path:"ticket/launcher",component:Zt},{path:"**",redirectTo:"services"}],rn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[S.Bz.forRoot(nn,{relativeLinkResolution:"legacy"})],S.Bz]}),e}(),on=n(2238),an=n(7441),sn=["*",[["mat-toolbar-row"]]],un=["*","mat-toolbar-row"],ln=(0,Y.pj)(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}()),cn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=a.lG2({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),hn=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var o;return _classCallCheck(this,n),(o=t.call(this,e))._platform=i,o._document=r,o}return _createClass(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(ln);return e.\u0275fac=function(t){return new(t||e)(a.Y36(a.SBq),a.Y36(g.t4),a.Y36(I.K0))},e.\u0275cmp=a.Xpm({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;(1&e&&a.Suo(n,cn,5),2&e)&&(a.iGM(i=a.CRH())&&(t._toolbarRows=i))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&a.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[a.qOj],ngContentSelectors:un,decls:2,vars:0,template:function(e,t){1&e&&(a.F$t(sn),a.Hsn(0),a.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),fn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({imports:[[Y.BQ],Y.BQ]}),e}(),dn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e}),e.\u0275inj=a.cJS({providers:[{provide:Oe.o2,useValue:{floatLabel:"always"}}],imports:[jt.u5,fn,bt.ot,lt,kt,ke,on.Is,Oe.lN,Te.c,an.LD,tn]}),e}();function pn(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",9),a.NdJ("click",function(){var e=a.CHM(n).$implicit;return a.oxw(2).changeLang(e)}),a._uU(1),a.qZA()}if(2&e){var i=t.$implicit;a.xp6(1),a.Oqu(i.name)}}function vn(e,t){if(1&e){var n=a.EpF();a.TgZ(0,"button",9),a.NdJ("click",function(){return a.CHM(n),a.oxw(2).admin()}),a.TgZ(1,"i",23),a._uU(2,"dashboard"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4,"Dashboard"),a.qZA(),a.qZA()}}function _n(e,t){1&e&&(a.TgZ(0,"button",28),a.TgZ(1,"i",23),a._uU(2,"file_download"),a.qZA(),a.TgZ(3,"uds-translate"),a._uU(4,"Downloads"),a.qZA(),a.qZA())}function mn(e,t){if(1&e&&(a.TgZ(0,"button",14),a._uU(1),a.qZA()),2&e){a.oxw();var n=a.MAs(8),i=a.oxw();a.Q6J("matMenuTriggerFor",n),a.xp6(1),a.Oqu(i.api.user.user)}}function gn(e,t){if(1&e&&(a.TgZ(0,"button",25),a._uU(1),a.TgZ(2,"i",23),a._uU(3,"arrow_drop_down"),a.qZA(),a.qZA()),2&e){a.oxw();var n=a.MAs(8),i=a.oxw();a.Q6J("matMenuTriggerFor",n),a.xp6(1),a.hij("",i.api.user.user," ")}}function yn(e,t){if(1&e){var n=a.EpF();a.ynx(0),a.TgZ(1,"form",1),a._UZ(2,"input",2),a._UZ(3,"input",3),a.qZA(),a.TgZ(4,"mat-menu",null,4),a.YNc(6,pn,2,1,"button",5),a.qZA(),a.TgZ(7,"mat-menu",null,6),a.YNc(9,vn,5,0,"button",7),a.YNc(10,_n,5,0,"button",8),a.TgZ(11,"button",9),a.NdJ("click",function(){return a.CHM(n),a.oxw().logout()}),a.TgZ(12,"i",10),a._uU(13,"exit_to_app"),a.qZA(),a.TgZ(14,"uds-translate"),a._uU(15,"Logout"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(16,"mat-menu",11,12),a.YNc(18,mn,2,2,"button",13),a.TgZ(19,"button",14),a._uU(20),a.qZA(),a.TgZ(21,"button",15),a.TgZ(22,"uds-translate"),a._uU(23,"UDS Client"),a.qZA(),a.qZA(),a.TgZ(24,"button",16),a.TgZ(25,"uds-translate"),a._uU(26,"About"),a.qZA(),a.qZA(),a.qZA(),a.TgZ(27,"mat-toolbar",17),a.TgZ(28,"button",18),a._UZ(29,"img",19),a._uU(30),a.qZA(),a._UZ(31,"span",20),a.TgZ(32,"div",21),a.TgZ(33,"button",22),a.TgZ(34,"i",23),a._uU(35,"file_download"),a.qZA(),a.TgZ(36,"uds-translate"),a._uU(37,"UDS Client"),a.qZA(),a.qZA(),a.TgZ(38,"button",24),a.TgZ(39,"i",23),a._uU(40,"info"),a.qZA(),a.TgZ(41,"uds-translate"),a._uU(42,"About"),a.qZA(),a.qZA(),a.TgZ(43,"button",25),a._uU(44),a.TgZ(45,"i",23),a._uU(46,"arrow_drop_down"),a.qZA(),a.qZA(),a.YNc(47,gn,4,2,"button",26),a.qZA(),a.TgZ(48,"div",27),a.TgZ(49,"button",25),a.TgZ(50,"i",23),a._uU(51,"menu"),a.qZA(),a.qZA(),a.qZA(),a.qZA(),a.BQk()}if(2&e){var i=a.MAs(5),r=a.MAs(17),o=a.oxw();a.xp6(1),a.s9C("action",o.api.config.urls.changeLang,a.LSH),a.xp6(1),a.s9C("name",o.api.csrfField),a.s9C("value",o.api.csrfToken),a.xp6(1),a.s9C("value",o.lang.id),a.xp6(3),a.Q6J("ngForOf",o.langs),a.xp6(3),a.Q6J("ngIf",o.api.user.isStaff),a.xp6(1),a.Q6J("ngIf",o.api.user.isStaff),a.xp6(8),a.Q6J("ngIf",o.api.user.isLogged),a.xp6(1),a.Q6J("matMenuTriggerFor",i),a.xp6(1),a.hij("",o.lang.name," "),a.xp6(9),a.Q6J("src",o.api.staticURL("modern/img/udsicon.png"),a.LSH),a.xp6(1),a.hij(" ",o.api.config.site_logo_name," "),a.xp6(13),a.Q6J("matMenuTriggerFor",i),a.xp6(1),a.hij("",o.lang.name," "),a.xp6(3),a.Q6J("ngIf",o.api.user.isLogged),a.xp6(2),a.Q6J("matMenuTriggerFor",r)}}var kn=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t,this.style="";var n=t.config.language;this.langs=[];var i,r=_createForOfIteratorHelper(t.config.available_languages);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.id===n?this.lang=o:this.langs.push(o)}}catch(a){r.e(a)}finally{r.f()}}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"changeLang",value:function(e){return this.lang=e,document.getElementById("id_language").attributes.value.value=e.id,document.getElementById("form_language").submit(),!1}},{key:"admin",value:function(){this.api.gotoAdmin()}},{key:"logout",value:function(){this.api.logout()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(e,t){1&e&&a.YNc(0,yn,52,16,"ng-container",0),2&e&&a.Q6J("ngIf",""===t.api.config.urls.launch)},directives:[I.O5,jt._Y,jt.JL,jt.F,it,I.sg,$e,P.P,st,S.rH,hn,bt.lW],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),e}(),bn=function(){var e=function(){function e(t){_classCallCheck(this,e),this.api=t}return _createClass(e,[{key:"ngOnInit",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(a.Y36(A.n))},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(e,t){1&e&&(a.TgZ(0,"div"),a.TgZ(1,"a",0),a._uU(2),a.qZA(),a.qZA()),2&e&&(a.xp6(1),a.Q6J("href",t.api.config.site_copyright_link,a.LSH),a.xp6(1),a.Oqu(t.api.config.site_copyright_info))},styles:[""]}),e}(),Cn=function(){var e=function(){function e(){_classCallCheck(this,e),this.title="uds"}return _createClass(e,[{key:"ngOnInit",value:function(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=a.Xpm({type:e,selectors:[["uds-root"]],decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(e,t){1&e&&(a._UZ(0,"uds-navbar"),a.TgZ(1,"div",0),a.TgZ(2,"div",1),a._UZ(3,"router-outlet"),a.qZA(),a.TgZ(4,"div",2),a._UZ(5,"uds-footer"),a.qZA(),a.qZA())},directives:[kn,S.lC,bn],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),e}(),wn=n(3183),xn=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=a.oAB({type:e,bootstrap:[Cn]}),e.\u0275inj=a.cJS({providers:[A.n,wn.h],imports:[[o.b2,y,E.JF,rn,J.PW,dn]]}),e}();n(2340).N.production&&(0,a.G48)(),o.q6().bootstrapModule(xn).catch(function(e){return console.log(e)})}},function(e){e(e.s=6445)}])})(); \ No newline at end of file diff --git a/server/src/uds/web/views/modern.py b/server/src/uds/web/views/modern.py index 3756146bd..c99b50e11 100644 --- a/server/src/uds/web/views/modern.py +++ b/server/src/uds/web/views/modern.py @@ -170,10 +170,11 @@ def servicesData(request: ExtendedHttpRequestWithUser) -> HttpResponse: # The MFA page does not needs CRF token, so we disable it @csrf_exempt def mfa(request: ExtendedHttpRequest) -> HttpResponse: - if not request.user or request.authorized: # If no user, or user is already authorized, redirect to index + if ( + not request.user or request.authorized + ): # If no user, or user is already authorized, redirect to index return HttpResponseRedirect(reverse('page.index')) # No user, no MFA - mfaProvider: 'models.MFA' = request.user.manager.mfa if not mfaProvider: return HttpResponseRedirect(reverse('page.index')) @@ -238,10 +239,14 @@ def mfa(request: ExtendedHttpRequest) -> HttpResponse: pass # Will render again the page else: # Make MFA send a code - mfaInstance.process(userHashValue, mfaIdentifier, validity=validity) - # store on session the start time of the MFA process if not already stored - if 'mfa_start_time' not in request.session: - request.session['mfa_start_time'] = time.time() + try: + mfaInstance.process(userHashValue, mfaIdentifier, validity=validity) + # store on session the start time of the MFA process if not already stored + if 'mfa_start_time' not in request.session: + request.session['mfa_start_time'] = time.time() + except Exception: + logger.exception('Error processing MFA') + return errors.errorView(request, errors.UNKNOWN_ERROR) # Compose a nice "XX years, XX months, XX days, XX hours, XX minutes" string from mfaProvider.remember_device remember_device = '' From 4db98684d374318c0768da545c7fda1b141b139b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Fri, 24 Jun 2022 13:27:45 +0200 Subject: [PATCH 14/15] refactorized --- server/src/uds/mfas/{email => Email}/__init__.py | 0 server/src/uds/mfas/{email => Email}/mail.png | Bin server/src/uds/mfas/{email => Email}/mfa.py | 0 server/src/uds/mfas/{sample => Sample}/__init__.py | 0 server/src/uds/mfas/{sample => Sample}/mfa.py | 0 server/src/uds/mfas/{sample => Sample}/sample.png | Bin 6 files changed, 0 insertions(+), 0 deletions(-) rename server/src/uds/mfas/{email => Email}/__init__.py (100%) rename server/src/uds/mfas/{email => Email}/mail.png (100%) rename server/src/uds/mfas/{email => Email}/mfa.py (100%) rename server/src/uds/mfas/{sample => Sample}/__init__.py (100%) rename server/src/uds/mfas/{sample => Sample}/mfa.py (100%) rename server/src/uds/mfas/{sample => Sample}/sample.png (100%) diff --git a/server/src/uds/mfas/email/__init__.py b/server/src/uds/mfas/Email/__init__.py similarity index 100% rename from server/src/uds/mfas/email/__init__.py rename to server/src/uds/mfas/Email/__init__.py diff --git a/server/src/uds/mfas/email/mail.png b/server/src/uds/mfas/Email/mail.png similarity index 100% rename from server/src/uds/mfas/email/mail.png rename to server/src/uds/mfas/Email/mail.png diff --git a/server/src/uds/mfas/email/mfa.py b/server/src/uds/mfas/Email/mfa.py similarity index 100% rename from server/src/uds/mfas/email/mfa.py rename to server/src/uds/mfas/Email/mfa.py diff --git a/server/src/uds/mfas/sample/__init__.py b/server/src/uds/mfas/Sample/__init__.py similarity index 100% rename from server/src/uds/mfas/sample/__init__.py rename to server/src/uds/mfas/Sample/__init__.py diff --git a/server/src/uds/mfas/sample/mfa.py b/server/src/uds/mfas/Sample/mfa.py similarity index 100% rename from server/src/uds/mfas/sample/mfa.py rename to server/src/uds/mfas/Sample/mfa.py diff --git a/server/src/uds/mfas/sample/sample.png b/server/src/uds/mfas/Sample/sample.png similarity index 100% rename from server/src/uds/mfas/sample/sample.png rename to server/src/uds/mfas/Sample/sample.png From 77e021a3719341ef55dd395a0b37c287c084c7a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Mon, 27 Jun 2022 21:30:59 +0200 Subject: [PATCH 15/15] Fixed auth mfaIdentifier to provide userName --- server/src/uds/core/auths/authenticator.py | 4 +++- server/src/uds/web/views/auth.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/server/src/uds/core/auths/authenticator.py b/server/src/uds/core/auths/authenticator.py index 14f6b4be3..07ee9d59c 100644 --- a/server/src/uds/core/auths/authenticator.py +++ b/server/src/uds/core/auths/authenticator.py @@ -290,13 +290,15 @@ class Authenticator(Module): # pylint: disable=too-many-public-methods """ return [] - def mfaIdentifier(self) -> str: + def mfaIdentifier(self, username: str) -> str: """ If this method is provided by an authenticator, the user will be allowed to enter a MFA code You must return the value used by a MFA provider to identify the user (i.e. email, phone number, etc) If not provided, or the return value is '', the user will be allowed to access UDS without MFA Note: Field capture will be responsible of provider. Put it on MFA tab of user form. + Take into consideration that mfaIdentifier will never be invoked if the user has not been + previously authenticated. (that is, authenticate method has already been called) """ return '' diff --git a/server/src/uds/web/views/auth.py b/server/src/uds/web/views/auth.py index b5b0a595e..6d2cc4da3 100644 --- a/server/src/uds/web/views/auth.py +++ b/server/src/uds/web/views/auth.py @@ -139,7 +139,7 @@ def authCallback_stage2( request.authorized = True if authenticator.getType().providesMfa() and authenticator.mfa: authInstance = authenticator.getInstance() - if authInstance.mfaIdentifier(): + if authInstance.mfaIdentifier(user.name): request.authorized = False # We can ask for MFA so first disauthorize user response = HttpResponseRedirect( reverse('page.mfa') @@ -256,6 +256,7 @@ def ticketAuth( webLogin(request, None, usr, password) request.user = usr # Temporarily store this user as "authenticated" user, next requests will be done using session + request.authorized = True # User is authorized request.session['ticket'] = '1' # Store that user access is done using ticket # Transport must always be automatic for ticket authentication